aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2000-11-18 06:43:49 +0000
committerSven Gothel <[email protected]>2000-11-18 06:43:49 +0000
commit880653d31a8f1ff8384fdbc75b84934bceecfdb8 (patch)
treebdafb71416f176d2a4b73bf716c9dc3f13685a8b
Initial revision
-rw-r--r--C2J/ASCII_CharStream.java379
-rw-r--r--C2J/C.jj578
-rw-r--r--C2J/C2C.jj721
-rw-r--r--C2J/C2J.java5679
-rw-r--r--C2J/C2J.jj1305
-rw-r--r--C2J/C2JConstants.java188
-rw-r--r--C2J/C2JTokenManager.java1623
-rw-r--r--C2J/CFuncDeclaration.java959
-rw-r--r--C2J/CFuncVariable.java186
-rw-r--r--C2J/ParseException.java189
-rw-r--r--C2J/Token.java79
-rw-r--r--C2J/TokenMgrError.java131
-rw-r--r--C2J/gl-enum-auto.java1317
-rw-r--r--C2J/gl-funcnames.skel445
-rw-r--r--C2J/gl-proto-auto.java6955
-rw-r--r--C2J/gl-proto-dynauto-jni12.c23574
-rw-r--r--C2J/gl-proto-dynauto-tst-jni12.c26371
-rw-r--r--C2J/gl-proto-dynauto-tst.c26371
-rw-r--r--C2J/gl-proto-dynauto.c23574
-rw-r--r--C2J/gl-protoVirt-auto.java6955
-rw-r--r--C2J/glu-enum-auto.java114
-rw-r--r--C2J/glu-proto-auto-jni12.c2080
-rw-r--r--C2J/glu-proto-auto-tst-jni12.c2409
-rw-r--r--C2J/glu-proto-auto-tst.c2409
-rw-r--r--C2J/glu-proto-auto.c2080
-rw-r--r--C2J/glu-proto-auto.java704
-rw-r--r--C2J/glu-protoVirt-auto.java704
-rwxr-xr-xC2J/makefile402
-rw-r--r--C2J/manual/gl-enum-manualCoded.java20
-rw-r--r--C2J/manual/gl-manualCodedImplJNI.c34
-rw-r--r--C2J/manual/gl-manualCodedImplJNI1.java18
-rw-r--r--C2J/manual/gl-manualCodedImplJNI2.java14
-rw-r--r--C2J/manual/gl-manualCodedVirt1.java26
-rw-r--r--C2J/manual/gl-manualCodedVirt2.java2
-rw-r--r--C2J/manual/glu-enum-manualCoded.java17
-rw-r--r--C2J/manual/glu-manualCodedImplJNI.c213
-rw-r--r--C2J/manual/glu-manualCodedImplJNI.h13
-rw-r--r--C2J/manual/glu-manualCodedImplJNI1.java17
-rw-r--r--C2J/manual/glu-manualCodedImplJNI2.java117
-rw-r--r--C2J/manual/glu-manualCodedVirt.java60
-rw-r--r--C2J/mesa33-header/gl.h2199
-rw-r--r--C2J/mesa33-header/glext.h3275
-rw-r--r--C2J/mesa33-header/glu.h513
-rw-r--r--C2J/mesa33-header/glx.h150
-rw-r--r--C2J/mesa33-header/pre2orig-enum.awk3
-rw-r--r--C2J/mesa33-header/pre2orig-proto.awk3
-rwxr-xr-xC2J/mesa33-header/prepare-enum.sh22
-rwxr-xr-xC2J/mesa33-header/prepare-proto.sh10
-rw-r--r--C2J/warning.skel6
-rw-r--r--CHANGES.txt1314
-rw-r--r--CNativeCode/.OpenGL_JauJNI12_dynfuncs.c.swpbin0 -> 16384 bytes
-rw-r--r--CNativeCode/GLCallbackHelperJNI.c238
-rw-r--r--CNativeCode/GLCallbackHelperJNI.h71
-rw-r--r--CNativeCode/GLUCallbackJNI.c639
-rw-r--r--CNativeCode/GLUCallbackJNI.h62
-rw-r--r--CNativeCode/OpenGLU_JauJNI12_funcs.c2354
-rw-r--r--CNativeCode/OpenGLU_JauJNI12tst_funcs.c2683
-rw-r--r--CNativeCode/OpenGLU_JauJNI_funcs.c2354
-rw-r--r--CNativeCode/OpenGLU_JauJNInf_funcs.c2354
-rw-r--r--CNativeCode/OpenGLU_JauJNItst_funcs.c2683
-rw-r--r--CNativeCode/OpenGLU_funcs.c.skel55
-rw-r--r--CNativeCode/OpenGL_JauJNI12_dynfuncs.c23658
-rw-r--r--CNativeCode/OpenGL_JauJNI12tst_dynfuncs.c26455
-rw-r--r--CNativeCode/OpenGL_JauJNI_dynfuncs.c23658
-rw-r--r--CNativeCode/OpenGL_JauJNInf_dynfuncs.c23658
-rw-r--r--CNativeCode/OpenGL_JauJNItst_dynfuncs.c26455
-rwxr-xr-xCNativeCode/OpenGL_Win32.c1110
-rwxr-xr-xCNativeCode/OpenGL_Win32_JDirect.c182
-rw-r--r--CNativeCode/OpenGL_X11.c1320
-rw-r--r--CNativeCode/OpenGL_funcs.c.skel44
-rw-r--r--CNativeCode/OpenGL_mac.c2027
-rw-r--r--CNativeCode/OpenGL_misc.c887
-rw-r--r--CNativeCode/OpenGL_misc.h28
-rwxr-xr-xCNativeCode/getProtos11
-rw-r--r--CNativeCode/jni12tools.c516
-rw-r--r--CNativeCode/jnitools.c560
-rw-r--r--CNativeCode/jnitools.h122
-rw-r--r--CNativeCode/mac_console.c119
-rw-r--r--CNativeCode/mac_console.h16
-rw-r--r--CNativeCode/mac_nop_main.c1
-rw-r--r--CNativeCode/macppcdefs.h7
-rwxr-xr-xCNativeCode/makeFuncs4
-rw-r--r--CNativeCode/misc/context.h18
-rw-r--r--CNativeCode/misc/glx_pbuffers.txt80
-rw-r--r--CNativeCode/winstuff.h.skel33
-rw-r--r--COMPILATION.txt234
-rw-r--r--INSTALL.txt261
-rw-r--r--INSTALLER.txt52
-rw-r--r--Installer/.htaccess1
-rw-r--r--Installer/CHANGES.txt82
-rw-r--r--Installer/FileTool.java645
-rw-r--r--Installer/FilelistGL4JArchiv.java.skel11
-rw-r--r--Installer/FilelistGL4JClasses.java.skel11
-rw-r--r--Installer/FilelistGLUTFontArchiv.java.skel11
-rw-r--r--Installer/FilelistGLUTFontClasses.java.skel11
-rw-r--r--Installer/FilelistHPUXPaRisc.java.skel11
-rw-r--r--Installer/FilelistLinuxI386GlibcXF86.java.skel11
-rw-r--r--Installer/FilelistLinuxPPCGlibcXF86.java.skel11
-rw-r--r--Installer/FilelistMacOSPPC.java.skel11
-rw-r--r--Installer/FilelistOS.java6
-rw-r--r--Installer/FilelistPNGArchiv.java11
-rw-r--r--Installer/FilelistPNGClasses.java11
-rw-r--r--Installer/FilelistSGIIrix62Mips.java.skel11
-rw-r--r--Installer/FilelistSUNSolaris26Sparc.java.skel11
-rw-r--r--Installer/FilelistTool.java66
-rw-r--r--Installer/FilelistWin32I386.java.skel11
-rw-r--r--Installer/FilelistWin95I386OpenGL.java11
-rw-r--r--Installer/GL4JInst.html24
-rw-r--r--Installer/GL4JInst.java730
-rw-r--r--Installer/GL4JInst_cacert_ns.html58
-rw-r--r--Installer/GL4JInst_f13plugin.html44
-rw-r--r--Installer/GL4JInst_fie.html13
-rw-r--r--Installer/GL4JInst_fns.html12
-rw-r--r--Installer/GL4JInst_fstd.html12
-rw-r--r--Installer/GL4JInst_ie.html24
-rw-r--r--Installer/GL4JInst_ie_check.html41
-rw-r--r--Installer/GL4JInst_ns.html23
-rw-r--r--Installer/MSJVMVersionApplet.java33
-rw-r--r--Installer/MachineCtrl.java988
-rw-r--r--Installer/README.txt87
-rw-r--r--Installer/index.html33
-rw-r--r--Installer/install.bat12
-rwxr-xr-xInstaller/install.sh9
-rw-r--r--Installer/java.policy51
-rwxr-xr-xInstaller/makeJar-Unix.sh16
-rwxr-xr-xInstaller/makeMSIESignedCab.sh19
-rwxr-xr-xInstaller/makeNetscapeSignedJar-Unix.sh33
-rwxr-xr-xInstaller/makeNetscapeSignedJar-Win32.sh33
-rw-r--r--Installer/versiondef.sh11
-rw-r--r--Installer/versionundef.sh5
-rw-r--r--Java2.txt67
-rw-r--r--LICENSE.txt35
-rw-r--r--LINKS.html97
-rw-r--r--MS-JVM.txt73
-rw-r--r--MacOS9PPC/MacOS9PPC/gl4java-jdk1_1-libsbin0 -> 141431 bytes
-rw-r--r--MacOS9PPC/MacOS9PPC/gl4java-jdk1_2-libsbin0 -> 119953 bytes
-rw-r--r--MacOS9PPC/demo-scripts/Accanti0
-rw-r--r--MacOS9PPC/demo-scripts/GLImageViewerCanvas0
-rw-r--r--MacOS9PPC/demo-scripts/GLLandscapeWorld0
-rw-r--r--MacOS9PPC/demo-scripts/Gears0
-rw-r--r--MacOS9PPC/demo-scripts/Morph3D0
-rw-r--r--MacOS9PPC/demo-scripts/PngTextureTestApplet0
-rw-r--r--MacOS9PPC/demo-scripts/Read Me1
-rw-r--r--MacOS9PPC/demo-scripts/Select0
-rw-r--r--MacOS9PPC/demo-scripts/Stencil0
-rw-r--r--MacOS9PPC/demo-scripts/SwingOffScreenDemo10
-rw-r--r--MacOS9PPC/demo-scripts/Tess0
-rw-r--r--MacOS9PPC/demo-scripts/Tessdemo0
-rw-r--r--MacOS9PPC/demo-scripts/tesswind0
-rw-r--r--MacOS9PPC/demo-scripts/tex/DAISYX.pngbin0 -> 17768 bytes
-rw-r--r--MacOS9PPC/gl4java-macos9ppc-install/GL4JavaInfo0
-rw-r--r--MacOS9PPC/gl4java-macos9ppc-install/Icon 0
-rw-r--r--MacOS9PPC/gl4java-macos9ppc-install/Read Me1
-rw-r--r--MacOS9PPC/gl4java-macos9ppc-install/gl4j-applescript-installer0
-rw-r--r--MacOS9PPC/gl4java-macos9ppc-install/sysextensions/Icon 0
-rw-r--r--MacOS9PPC/gl4java-macos9ppc-install/sysextensions/MRJ Libraries/Icon 0
-rw-r--r--MacOS9PPC/gl4java-macos9ppc-install/sysextensions/MRJ Libraries/MRJClasses/Icon 0
-rw-r--r--MacOS9PPC/java11X/java11Xbin0 -> 37447 bytes
-rw-r--r--Netscape.txt91
-rw-r--r--PNG-LICENSE.txt17
-rw-r--r--PNG-README.txt161
-rw-r--r--README.AdamKing.txt105
-rw-r--r--README.GLXDRI.txt130
-rw-r--r--README.RonCemer.txt375
-rw-r--r--README.SGI-IRIX9
-rw-r--r--README.txt88
-rw-r--r--SwingUsage.txt33
-rw-r--r--THANXS.txt54
-rw-r--r--Tesselation.txt30
-rw-r--r--Trademarks.txt14
-rw-r--r--VERSIONS.txt43
-rwxr-xr-xWin32VC6/GL4JavaJauGLJNI/GL4JavaJauGLJNI.dsp63
-rwxr-xr-xWin32VC6/GL4JavaJauGLJNI/GL4JavaJauGLJNI.plg33
-rwxr-xr-xWin32VC6/GL4JavaJauGLJNI12/GL4JavaJauGLJNI12.dsp63
-rwxr-xr-xWin32VC6/GL4JavaJauGLJNI12/GL4JavaJauGLJNI12.plg33
-rwxr-xr-xWin32VC6/GL4JavaJauGLJNI12tst/GL4JavaJauGLJNI12tst.dsp63
-rwxr-xr-xWin32VC6/GL4JavaJauGLJNI12tst/GL4JavaJauGLJNI12tst.plg33
-rwxr-xr-xWin32VC6/GL4JavaJauGLJNI_g/GL4JavaJauGLJNI_g.dsp63
-rwxr-xr-xWin32VC6/GL4JavaJauGLJNInf/GL4JavaJauGLJNInf.dsp63
-rwxr-xr-xWin32VC6/GL4JavaJauGLJNInf/GL4JavaJauGLJNInf.plg33
-rwxr-xr-xWin32VC6/GL4JavaJauGLJNItst/GL4JavaJauGLJNItst.dsp63
-rwxr-xr-xWin32VC6/GL4JavaJauGLJNItst/GL4JavaJauGLJNItst.plg33
-rwxr-xr-xWin32VC6/GL4JavaJauGLUJNI/GL4JavaJauGLUJNI.dsp67
-rwxr-xr-xWin32VC6/GL4JavaJauGLUJNI/GL4JavaJauGLUJNI.plg37
-rwxr-xr-xWin32VC6/GL4JavaJauGLUJNI12/GL4JavaJauGLUJNI12.dsp67
-rwxr-xr-xWin32VC6/GL4JavaJauGLUJNI12/GL4JavaJauGLUJNI12.plg34
-rwxr-xr-xWin32VC6/GL4JavaJauGLUJNI12tst/GL4JavaJauGLUJNI12tst.dsp67
-rwxr-xr-xWin32VC6/GL4JavaJauGLUJNI12tst/GL4JavaJauGLUJNI12tst.plg34
-rwxr-xr-xWin32VC6/GL4JavaJauGLUJNInf/GL4JavaJauGLUJNI.dsp67
-rwxr-xr-xWin32VC6/GL4JavaJauGLUJNInf/GL4JavaJauGLUJNI.plg34
-rwxr-xr-xWin32VC6/GL4JavaJauGLUJNItst/GL4JavaJauGLUJNItst.dsp67
-rwxr-xr-xWin32VC6/GL4JavaJauGLUJNItst/GL4JavaJauGLUJNItst.plg34
-rwxr-xr-xWin32VC6/GL4JavaJauGljJNI/GL4JavaJauGljJNI.dsp75
-rwxr-xr-xWin32VC6/GL4JavaJauGljJNI/GL4JavaJauGljJNI.plg43
-rwxr-xr-xWin32VC6/GL4JavaJauGljJNI12/GL4JavaJauGljJNI12.dsp75
-rwxr-xr-xWin32VC6/GL4JavaJauGljJNI12/GL4JavaJauGljJNI12.plg36
-rwxr-xr-xWin32VC6/GL4JavaJauGljJNI_g/GL4JavaJauGljJNI_g.dsp75
-rwxr-xr-xWin32VC6/GL4JavaMSJDirect/GL4JavaMSJDirect.dsp63
-rwxr-xr-xWin32VC6/GL4JavaMSJDirect/GL4JavaMSJDirect.plg33
-rw-r--r--Win32VC6/Win32VC6.dsp93
-rwxr-xr-xWin32VC6/Win32VC6.dsw173
-rw-r--r--capsapi_classes.zipbin0 -> 41258 bytes
-rwxr-xr-xdemos.html59
-rw-r--r--demos/GLLandScape/GLLandScape-readme.txt58
-rw-r--r--demos/GLLandScape/GLLandScape1-big.html14
-rw-r--r--demos/GLLandScape/GLLandScape1-big_plugin13.html46
-rw-r--r--demos/GLLandScape/GLLandScape1.html14
-rw-r--r--demos/GLLandScape/GLLandScape1.java714
-rw-r--r--demos/GLLandScape/GLLandScape1Applet.java399
-rw-r--r--demos/GLLandScape/GLLandScape1_plugin13.html46
-rw-r--r--demos/GLLandScape/GLLandScape1w1-big.html14
-rw-r--r--demos/GLLandScape/GLLandScape1w1-big_plugin13.html46
-rw-r--r--demos/GLLandScape/GLLandScape1w1.html14
-rw-r--r--demos/GLLandScape/GLLandScape1w1.java781
-rw-r--r--demos/GLLandScape/GLLandScape1w1Applet$SpeedTimerbin0 -> 1521 bytes
-rwxr-xr-xdemos/GLLandScape/GLLandScape1w1Applet.java416
-rw-r--r--demos/GLLandScape/GLLandScape1w1_plugin13.html46
-rw-r--r--demos/GLLandScape/GlutPlaneObj.java112
-rw-r--r--demos/GLLandScape/LICENSE.txt36
-rw-r--r--demos/GLLandScape/index.html52
-rw-r--r--demos/HodglimsNeHe/Lesson1.html35
-rw-r--r--demos/HodglimsNeHe/Lesson1.java261
-rw-r--r--demos/HodglimsNeHe/Lesson11.html35
-rw-r--r--demos/HodglimsNeHe/Lesson11.java382
-rw-r--r--demos/HodglimsNeHe/Lesson11_plugin13.html66
-rw-r--r--demos/HodglimsNeHe/Lesson12.html46
-rw-r--r--demos/HodglimsNeHe/Lesson12.java437
-rw-r--r--demos/HodglimsNeHe/Lesson12_plugin13.html77
-rw-r--r--demos/HodglimsNeHe/Lesson16.html51
-rw-r--r--demos/HodglimsNeHe/Lesson16.java551
-rw-r--r--demos/HodglimsNeHe/Lesson16_plugin13.html82
-rw-r--r--demos/HodglimsNeHe/Lesson18.html50
-rw-r--r--demos/HodglimsNeHe/Lesson18.java459
-rw-r--r--demos/HodglimsNeHe/Lesson18_plugin13.html81
-rw-r--r--demos/HodglimsNeHe/Lesson1_plugin13.html66
-rw-r--r--demos/HodglimsNeHe/Lesson2.html35
-rw-r--r--demos/HodglimsNeHe/Lesson2.java280
-rw-r--r--demos/HodglimsNeHe/Lesson2_plugin13.html66
-rw-r--r--demos/HodglimsNeHe/Lesson3.html35
-rw-r--r--demos/HodglimsNeHe/Lesson3.java284
-rw-r--r--demos/HodglimsNeHe/Lesson3_plugin13.html66
-rw-r--r--demos/HodglimsNeHe/Lesson4.html35
-rw-r--r--demos/HodglimsNeHe/Lesson4.java304
-rw-r--r--demos/HodglimsNeHe/Lesson4_plugin13.html66
-rw-r--r--demos/HodglimsNeHe/Lesson5.html35
-rw-r--r--demos/HodglimsNeHe/Lesson5.java355
-rw-r--r--demos/HodglimsNeHe/Lesson5_plugin13.html66
-rw-r--r--demos/HodglimsNeHe/Lesson6.html35
-rw-r--r--demos/HodglimsNeHe/Lesson6.java357
-rw-r--r--demos/HodglimsNeHe/Lesson6_plugin13.html66
-rw-r--r--demos/HodglimsNeHe/Lesson7.html50
-rw-r--r--demos/HodglimsNeHe/Lesson7.java504
-rw-r--r--demos/HodglimsNeHe/Lesson7_plugin13.html81
-rw-r--r--demos/HodglimsNeHe/Lesson8.html51
-rw-r--r--demos/HodglimsNeHe/Lesson8.java545
-rw-r--r--demos/HodglimsNeHe/Lesson8_plugin13.html82
-rw-r--r--demos/HodglimsNeHe/Lesson9.html47
-rw-r--r--demos/HodglimsNeHe/Lesson9.java451
-rw-r--r--demos/HodglimsNeHe/Lesson9_plugin13.html78
-rw-r--r--demos/HodglimsNeHe/data/Star.pngbin0 -> 7183 bytes
-rw-r--r--demos/HodglimsNeHe/data/crate.pngbin0 -> 118727 bytes
-rw-r--r--demos/HodglimsNeHe/data/cube.pngbin0 -> 37079 bytes
-rw-r--r--demos/HodglimsNeHe/data/glass.pngbin0 -> 32955 bytes
-rw-r--r--demos/HodglimsNeHe/data/nehe.pngbin0 -> 34169 bytes
-rw-r--r--demos/HodglimsNeHe/data/tim.pngbin0 -> 95984 bytes
-rw-r--r--demos/HodglimsNeHe/index.html38
-rw-r--r--demos/HodglimsNeHe/index_plugin13.html41
-rwxr-xr-xdemos/Java2Applet.bat1
-rwxr-xr-xdemos/Java2AppletB.bat1
-rwxr-xr-xdemos/Java2AppletC.bat1
-rw-r--r--demos/MiscDemos/DrawColoredPrimitives.html14
-rwxr-xr-xdemos/MiscDemos/DrawColoredPrimitives.java142
-rw-r--r--demos/MiscDemos/DrawColoredPrimitives2.html16
-rw-r--r--demos/MiscDemos/DrawColoredPrimitives2.java302
-rw-r--r--demos/MiscDemos/DrawColoredPrimitives2_plugin13.html48
-rw-r--r--demos/MiscDemos/DrawColoredPrimitives_plugin13.html46
-rwxr-xr-xdemos/MiscDemos/GLImageViewerCanvas.java126
-rwxr-xr-xdemos/MiscDemos/GLImageViewerWorld.java112
-rwxr-xr-xdemos/MiscDemos/GLImageWorld1.java456
-rwxr-xr-xdemos/MiscDemos/PerformanceCheck.sh56
-rw-r--r--demos/MiscDemos/PerformanceEtc/profile.jdk1.2-sun48
-rw-r--r--demos/MiscDemos/PerformanceEtc/profile.jdk1.3-ibm52
-rw-r--r--demos/MiscDemos/PerformanceEtc/profile.jdk1.3-sun52
-rw-r--r--demos/MiscDemos/PerformanceEtc/profile.jdk118-ibm48
-rw-r--r--demos/MiscDemos/PerformanceEtc/profile.jdk118_v150
-rw-r--r--demos/MiscDemos/PerformanceLogs/gl4j2.4.1-linux-ppc-500mhz-xf68-4.0.1-DRI-soft.log82
-rw-r--r--demos/MiscDemos/PerformanceLogs/gl4j2.4.1-linux-x86-350mhz-Mesa321-soft-gears.log130
-rw-r--r--demos/MiscDemos/PerformanceLogs/gl4j2.4.1-linux-x86-350mhz-xf68-4.0.1-DRI-soft-gears.log137
-rw-r--r--demos/MiscDemos/PerformanceLogs/gl4j2.4.1-linux-x86-350mhz-xf68-4.0.1-NVidia-GForce256-gears.log131
-rw-r--r--demos/MiscDemos/PerformanceLogs/index.html15
-rw-r--r--demos/MiscDemos/SharedGLTest.java73
-rw-r--r--demos/MiscDemos/SharedGLTest2.html13
-rwxr-xr-xdemos/MiscDemos/SharedGLTest2.java144
-rw-r--r--demos/MiscDemos/SharedGLTest2_plugin13.html45
-rw-r--r--demos/MiscDemos/TriangleRotate.html14
-rwxr-xr-xdemos/MiscDemos/TriangleRotate.java139
-rw-r--r--demos/MiscDemos/TriangleRotate_plugin13.html46
-rw-r--r--demos/MiscDemos/accanti.html17
-rw-r--r--demos/MiscDemos/accanti.java258
-rw-r--r--demos/MiscDemos/accanti_plugin13.html48
-rw-r--r--demos/MiscDemos/alpha3D.html17
-rw-r--r--demos/MiscDemos/alpha3D.java287
-rw-r--r--demos/MiscDemos/alpha3D_plugin13.html48
-rw-r--r--demos/MiscDemos/anti.html17
-rw-r--r--demos/MiscDemos/anti.java162
-rw-r--r--demos/MiscDemos/anti_plugin13.html48
-rw-r--r--demos/MiscDemos/coloredCross.java111
-rw-r--r--demos/MiscDemos/depthcue.html17
-rw-r--r--demos/MiscDemos/depthcue.java140
-rw-r--r--demos/MiscDemos/depthcue_plugin13.html48
-rw-r--r--demos/MiscDemos/gears.html13
-rw-r--r--demos/MiscDemos/gears.java437
-rw-r--r--demos/MiscDemos/gears_plugin13.html45
-rw-r--r--demos/MiscDemos/glJavaFontTest1.java120
-rw-r--r--demos/MiscDemos/glutFontBitmapTest.html15
-rw-r--r--demos/MiscDemos/glutFontBitmapTest.java137
-rw-r--r--demos/MiscDemos/glutFontBitmapTest2Applet$glutFbin0 -> 5910 bytes
-rw-r--r--demos/MiscDemos/glutFontBitmapTest2Applet.html16
-rw-r--r--demos/MiscDemos/glutFontBitmapTest2Applet.java319
-rw-r--r--demos/MiscDemos/glutFontBitmapTest2Applet_plugin13.html48
-rw-r--r--demos/MiscDemos/glutFontBitmapTest_plugin13.html47
-rw-r--r--demos/MiscDemos/glutFontStrokeTest.html15
-rw-r--r--demos/MiscDemos/glutFontStrokeTest.java128
-rw-r--r--demos/MiscDemos/glutFontStrokeTest_plugin13.html47
-rw-r--r--demos/MiscDemos/index.html78
-rw-r--r--demos/MiscDemos/index_plugin13.html80
-rw-r--r--demos/MiscDemos/morph3d.html17
-rwxr-xr-xdemos/MiscDemos/morph3d.java1060
-rw-r--r--demos/MiscDemos/morph3d_plugin13.html48
-rw-r--r--demos/MiscDemos/nurbs.html14
-rw-r--r--demos/MiscDemos/nurbs.java314
-rw-r--r--demos/MiscDemos/nurbs_plugin13.html46
-rw-r--r--demos/MiscDemos/pngTextureTestApplet.html16
-rwxr-xr-xdemos/MiscDemos/pngTextureTestApplet.java420
-rw-r--r--demos/MiscDemos/pngTextureTestApplet_plugin13.html48
-rw-r--r--demos/MiscDemos/select.html17
-rw-r--r--demos/MiscDemos/select.java596
-rw-r--r--demos/MiscDemos/select_plugin13.html49
-rw-r--r--demos/MiscDemos/spectex.html14
-rw-r--r--demos/MiscDemos/spectex.java336
-rw-r--r--demos/MiscDemos/spectex_plugin13.html46
-rw-r--r--demos/MiscDemos/stencil.html20
-rw-r--r--demos/MiscDemos/stencil.java342
-rw-r--r--demos/MiscDemos/stencil_plugin13.html51
-rw-r--r--demos/MiscDemos/teaambient.html17
-rwxr-xr-xdemos/MiscDemos/teaambient.java182
-rw-r--r--demos/MiscDemos/teaambient_plugin13.html48
-rw-r--r--demos/MiscDemos/teapots.html17
-rw-r--r--demos/MiscDemos/teapots.java279
-rw-r--r--demos/MiscDemos/teapots_plugin13.html48
-rw-r--r--demos/MiscDemos/tess.h40
-rw-r--r--demos/MiscDemos/tess.html15
-rw-r--r--demos/MiscDemos/tess.java298
-rw-r--r--demos/MiscDemos/tess_plugin13.html47
-rw-r--r--demos/MiscDemos/tessdemo.html15
-rwxr-xr-xdemos/MiscDemos/tessdemo.java667
-rw-r--r--demos/MiscDemos/tessdemo_plugin13.html47
-rw-r--r--demos/MiscDemos/tesswind.html15
-rwxr-xr-xdemos/MiscDemos/tesswind.java464
-rw-r--r--demos/MiscDemos/tesswind_plugin13.html47
-rw-r--r--demos/MiscDemos/tex/DAISYX.pngbin0 -> 17768 bytes
-rw-r--r--demos/MiscDemos/tex/a.tgabin0 -> 450018 bytes
-rw-r--r--demos/MiscDemos/tex/gleeson_head.jpgbin0 -> 6065 bytes
-rwxr-xr-xdemos/MiscDemos/tex/gnu-head-sm.pngbin0 -> 1915 bytes
-rwxr-xr-xdemos/MiscDemos/tex/jaulogo-300x80.pngbin0 -> 12576 bytes
-rw-r--r--demos/RectRenderSpeed/GL4JCanvas.java674
-rw-r--r--demos/RectRenderSpeed/GL4JTests2.java149
-rwxr-xr-xdemos/RectRenderSpeed/GL4JTests2.sh12
-rw-r--r--demos/RectRenderSpeed/perfomance-Linux-300MHzPII-Mesa1
-rw-r--r--demos/RectRenderSpeed/perfomance-Linux-300MHzPII-MesaRivaTNT2.txt167
-rw-r--r--demos/RectRenderSpeed/perfomance-Linux-350MHzPII-Mesa1
-rw-r--r--demos/RectRenderSpeed/perfomance-Linux-350MHzPII-MesaRivaTNT2.txt168
-rw-r--r--demos/RectRenderSpeed/perfomance-Win32-400MHzPII-Matr1
-rw-r--r--demos/RectRenderSpeed/perfomance-Win32-400MHzPII-MatroxG200.txt247
-rw-r--r--demos/RonsDemos/DemoTex1.java4158
-rw-r--r--demos/RonsDemos/FullScreenGears.java18
-rw-r--r--demos/RonsDemos/GL4JDemos.pvkbin0 -> 332 bytes
-rw-r--r--demos/RonsDemos/GL4JDemos.spcbin0 -> 452 bytes
-rw-r--r--demos/RonsDemos/HardCodedTexture.java31
-rw-r--r--demos/RonsDemos/MatrixFuncs.java200
-rw-r--r--demos/RonsDemos/animApplet.skel125
-rw-r--r--demos/RonsDemos/dinoshade.html21
-rwxr-xr-xdemos/RonsDemos/dinoshade.java1104
-rw-r--r--demos/RonsDemos/dinoshade_plugin13.html52
-rw-r--r--demos/RonsDemos/dof.html17
-rw-r--r--demos/RonsDemos/dof.java513
-rw-r--r--demos/RonsDemos/dof_plugin13.html48
-rw-r--r--demos/RonsDemos/fog.html18
-rw-r--r--demos/RonsDemos/fog.java266
-rw-r--r--demos/RonsDemos/fog_plugin13.html49
-rw-r--r--demos/RonsDemos/gears.html23
-rw-r--r--demos/RonsDemos/gears.java432
-rw-r--r--demos/RonsDemos/gears_plugin13.html54
-rw-r--r--demos/RonsDemos/gl4java.policy27
-rw-r--r--demos/RonsDemos/glutplane.html19
-rw-r--r--demos/RonsDemos/glutplane.java334
-rw-r--r--demos/RonsDemos/glutplane_plugin13.html50
-rw-r--r--demos/RonsDemos/index.html123
-rw-r--r--demos/RonsDemos/index_plugin13.html124
-rw-r--r--demos/RonsDemos/logo.html45
-rw-r--r--demos/RonsDemos/logo.java1091
-rw-r--r--demos/RonsDemos/logo_plugin13.html76
-rw-r--r--demos/RonsDemos/material.html17
-rw-r--r--demos/RonsDemos/material.java416
-rw-r--r--demos/RonsDemos/material_plugin13.html48
-rw-r--r--demos/RonsDemos/mipmap.html17
-rw-r--r--demos/RonsDemos/mipmap.java317
-rw-r--r--demos/RonsDemos/mipmap_plugin13.html48
-rw-r--r--demos/RonsDemos/molehill.html17
-rw-r--r--demos/RonsDemos/molehill.java286
-rw-r--r--demos/RonsDemos/molehill_plugin13.html48
-rw-r--r--demos/RonsDemos/moth.html19
-rw-r--r--demos/RonsDemos/moth.java1149
-rw-r--r--demos/RonsDemos/moth_plugin13.html50
-rw-r--r--demos/RonsDemos/movelight.html20
-rw-r--r--demos/RonsDemos/movelight.java322
-rw-r--r--demos/RonsDemos/movelight_plugin13.html51
-rw-r--r--demos/RonsDemos/nonAnimApplet.skel120
-rw-r--r--demos/RonsDemos/particle.html26
-rw-r--r--demos/RonsDemos/particle.java613
-rw-r--r--demos/RonsDemos/particle_plugin13.html57
-rw-r--r--demos/RonsDemos/pointblast.html19
-rw-r--r--demos/RonsDemos/pointblast.java664
-rw-r--r--demos/RonsDemos/pointblast_plugin13.html50
-rw-r--r--demos/RonsDemos/polyoff.html23
-rw-r--r--demos/RonsDemos/polyoff.java332
-rw-r--r--demos/RonsDemos/polyoff_plugin13.html54
-rw-r--r--demos/RonsDemos/quadric.html17
-rw-r--r--demos/RonsDemos/quadric.java250
-rw-r--r--demos/RonsDemos/quadric_plugin13.html48
-rw-r--r--demos/RonsDemos/reflect.html22
-rw-r--r--demos/RonsDemos/reflect.java424
-rw-r--r--demos/RonsDemos/reflect_plugin13.html53
-rw-r--r--demos/RonsDemos/renormal.html18
-rw-r--r--demos/RonsDemos/renormal.java112
-rw-r--r--demos/RonsDemos/renormal_plugin13.html49
-rw-r--r--demos/RonsDemos/rings.html18
-rw-r--r--demos/RonsDemos/rings.java406
-rw-r--r--demos/RonsDemos/rings_plugin13.html49
-rwxr-xr-xdemos/RonsDemos/sappletviewer.bat1
-rwxr-xr-xdemos/RonsDemos/sappletviewer.sh3
-rw-r--r--demos/RonsDemos/scube.html27
-rw-r--r--demos/RonsDemos/scube.java590
-rw-r--r--demos/RonsDemos/scube_plugin13.html58
-rw-r--r--demos/RonsDemos/shadowvol.html18
-rw-r--r--demos/RonsDemos/shadowvol.java458
-rw-r--r--demos/RonsDemos/shadowvol_plugin13.html49
-rw-r--r--demos/RonsDemos/softshadow.html19
-rw-r--r--demos/RonsDemos/softshadow.java528
-rw-r--r--demos/RonsDemos/softshadow_plugin13.html50
-rw-r--r--demos/RonsDemos/spots.html17
-rw-r--r--demos/RonsDemos/spots.java384
-rw-r--r--demos/RonsDemos/spots_plugin13.html48
-rw-r--r--demos/RonsDemos/star.html22
-rw-r--r--demos/RonsDemos/star.java349
-rw-r--r--demos/RonsDemos/star_plugin13.html53
-rw-r--r--demos/RonsDemos/steam.html22
-rw-r--r--demos/RonsDemos/steam.java791
-rw-r--r--demos/RonsDemos/steam_plugin13.html53
-rw-r--r--demos/RonsDemos/surface.html18
-rw-r--r--demos/RonsDemos/surface.java263
-rw-r--r--demos/RonsDemos/surface_plugin13.html49
-rw-r--r--demos/RonsDemos/teapots.html17
-rw-r--r--demos/RonsDemos/teapots.java465
-rw-r--r--demos/RonsDemos/teapots_plugin13.html48
-rw-r--r--demos/RonsDemos/texgen.html22
-rw-r--r--demos/RonsDemos/texgen.java478
-rw-r--r--demos/RonsDemos/texgen_plugin13.html53
-rw-r--r--demos/RonsDemos/texobj.html18
-rw-r--r--demos/RonsDemos/texobj.java233
-rw-r--r--demos/RonsDemos/texobj_plugin13.html49
-rw-r--r--demos/RonsDemos/text3d.html17
-rw-r--r--demos/RonsDemos/text3d.java682
-rw-r--r--demos/RonsDemos/text3d_plugin13.html48
-rw-r--r--demos/SwingDemos/CrossColorJPanel.java55
-rw-r--r--demos/SwingDemos/DrawColoredPrimitivesJPanel.java79
-rwxr-xr-xdemos/SwingDemos/GLSwingDemoApplet.java168
-rw-r--r--demos/SwingDemos/GearsJPanel.java382
-rw-r--r--demos/SwingDemos/InternalGLFrameDemo1.java248
-rw-r--r--demos/SwingDemos/MatrixFuncs.java200
-rw-r--r--demos/SwingDemos/TessJPanel.java244
-rwxr-xr-xdemos/SwingDemos/gears.java370
-rw-r--r--demos/SwingDemos/test/GLJPanel/GLJPanel.java694
-rw-r--r--demos/SwingDemos/test/GLJPanel/test1.java158
-rw-r--r--demos/SwingDemos/test/GLJPanel/test2.java115
-rw-r--r--demos/SwingDemos/test/GLPanel-AWTGraphics/GLPanel.java676
-rw-r--r--demos/SwingDemos/test/GLPanel-AWTGraphics/test1.java137
-rw-r--r--demos/SwingDemos/test/GLPanel-GLGraphics/GLGraphics.java513
-rw-r--r--demos/SwingDemos/test/GLPanel-GLGraphics/GLPanel.java692
-rw-r--r--demos/SwingDemos/test/GLPanel-GLGraphics/test1.java129
-rwxr-xr-xdemos/change2GL4JavaV2.sh23
-rw-r--r--demos/demoCvs.java57
-rw-r--r--demos/demoCvsAnim.java57
-rw-r--r--demos/gl4java.policy60
-rw-r--r--demos/glDemosCvs.html14
-rw-r--r--demos/glDemosCvs.java620
-rw-r--r--demos/glLogoCvs.java765
-rw-r--r--demos/glLogoCvsApplet.html14
-rw-r--r--demos/glLogoCvsApplet.java71
-rw-r--r--demos/glLogoCvsAppletDbg.java125
-rw-r--r--demos/glLogoCvsAppletJ2P.html45
-rw-r--r--demos/glOlympicCvsApplet.html14
-rw-r--r--demos/glOlympicCvsApplet.java78
-rw-r--r--demos/glOlympicCvsAppletJ2P.html45
-rw-r--r--demos/glOlympicSwingApplet.html14
-rw-r--r--demos/glOlympicSwingApplet.java125
-rwxr-xr-xdemos/glStencilTest.java95
-rwxr-xr-xdemos/glc2glj32
-rwxr-xr-xdemos/index.html62
-rw-r--r--demos/java.policy56
-rw-r--r--demos/lunaL.ppmbin0 -> 98362 bytes
-rw-r--r--demos/makefile36
-rw-r--r--demos/natives/bc5/cube.c289
-rw-r--r--demos/natives/bc5/cube.idebin0 -> 43014 bytes
-rw-r--r--demos/natives/bc5/testGL1.c224
-rw-r--r--demos/natives/bc5/testGL1.idebin0 -> 43014 bytes
-rw-r--r--demos/natives/wgl.c517
-rw-r--r--demos/natives/wgl.h81
-rw-r--r--demos/natives/x11/cube.c95
-rw-r--r--demos/natives/x11/gears.c374
-rwxr-xr-xdemos/natives/x11/makeGears.sh3
-rw-r--r--demos/natives/x11/makefile30
-rw-r--r--demos/natives/x11/makefile.mesa30
-rw-r--r--demos/natives/x11/makefile.x1130
-rw-r--r--demos/natives/x11/olympic.c409
-rw-r--r--demos/natives/x11/testGL1.c222
-rw-r--r--demos/natives/x11/testGL2.c517
-rw-r--r--demos/natives/x11/wave.c500
-rw-r--r--demos/olympicCvs.java282
-rwxr-xr-xdemos/sappletviewer.bat1
-rwxr-xr-xdemos/sappletviewer.sh4
-rw-r--r--demos/starCvs.java205
-rw-r--r--demos/starCvs.java-orig444
-rwxr-xr-xdemos/test-jni12tst.sh3
-rwxr-xr-xdemos/test-jnitst.sh3
-rwxr-xr-xdemos/test.sh3
-rw-r--r--demos/test1Cvs.java100
-rw-r--r--demos/testTextPPM1.html13
-rwxr-xr-xdemos/testTextPPM1.java496
-rw-r--r--demos/testTextPPM1J2P.html43
-rw-r--r--demos/waveCvs.java634
-rw-r--r--docs-src/GL4Java.tex1573
-rw-r--r--docs-src/OGLJavaBasic.tex786
-rwxr-xr-xdocs-src/UpdateHtml38
-rw-r--r--docs-src/images/JAVA.85.GIFbin0 -> 2680 bytes
-rw-r--r--docs-src/images/blueball.gifbin0 -> 398 bytes
-rw-r--r--docs-src/images/change_begin.gifbin0 -> 133 bytes
-rw-r--r--docs-src/images/change_begin_right.gifbin0 -> 128 bytes
-rw-r--r--docs-src/images/change_delete.gifbin0 -> 257 bytes
-rw-r--r--docs-src/images/change_delete_right.gifbin0 -> 257 bytes
-rw-r--r--docs-src/images/change_end.gifbin0 -> 135 bytes
-rw-r--r--docs-src/images/change_end_right.gifbin0 -> 127 bytes
-rw-r--r--docs-src/images/contents.xbm12
-rw-r--r--docs-src/images/contents_motif.gifbin0 -> 225 bytes
-rw-r--r--docs-src/images/coolbutton.gifbin0 -> 4775 bytes
-rw-r--r--docs-src/images/cross_ref_motif.gifbin0 -> 78 bytes
-rw-r--r--docs-src/images/cupHJbutton.gifbin0 -> 1474 bytes
-rw-r--r--docs-src/images/foot_motif.gifbin0 -> 87 bytes
-rw-r--r--docs-src/images/gamelanbutton.gifbin0 -> 4700 bytes
-rw-r--r--docs-src/images/greenball.gifbin0 -> 398 bytes
-rw-r--r--docs-src/images/icons.html42
-rw-r--r--docs-src/images/image.gifbin0 -> 195 bytes
-rw-r--r--docs-src/images/index_motif.gifbin0 -> 180 bytes
-rw-r--r--docs-src/images/invis_anchor.xbm4
-rw-r--r--docs-src/images/j2j.gifbin0 -> 3129 bytes
-rw-r--r--docs-src/images/jarswebsearch.gifbin0 -> 4442 bytes
-rw-r--r--docs-src/images/next_group_motif.gifbin0 -> 259 bytes
-rw-r--r--docs-src/images/next_group_motif_gr.gifbin0 -> 259 bytes
-rw-r--r--docs-src/images/next_motif.gifbin0 -> 172 bytes
-rw-r--r--docs-src/images/next_motif_gr.gifbin0 -> 172 bytes
-rw-r--r--docs-src/images/ogl.gifbin0 -> 15232 bytes
-rw-r--r--docs-src/images/ogl_sm.gifbin0 -> 1842 bytes
-rw-r--r--docs-src/images/ogla.gifbin0 -> 65244 bytes
-rw-r--r--docs-src/images/ogla_sm.gifbin0 -> 24003 bytes
-rw-r--r--docs-src/images/orangeball.gifbin0 -> 398 bytes
-rw-r--r--docs-src/images/pinkball.gifbin0 -> 398 bytes
-rw-r--r--docs-src/images/previous_group_motif.gifbin0 -> 303 bytes
-rw-r--r--docs-src/images/previous_group_motif_gr.gifbin0 -> 303 bytes
-rw-r--r--docs-src/images/previous_motif.gifbin0 -> 220 bytes
-rw-r--r--docs-src/images/previous_motif_gr.gifbin0 -> 220 bytes
-rw-r--r--docs-src/images/purpleball.gifbin0 -> 398 bytes
-rw-r--r--docs-src/images/redball.gifbin0 -> 398 bytes
-rw-r--r--docs-src/images/smi.logo.gifbin0 -> 2408 bytes
-rw-r--r--docs-src/images/up_motif.gifbin0 -> 145 bytes
-rw-r--r--docs-src/images/up_motif_gr.gifbin0 -> 145 bytes
-rw-r--r--docs-src/images/whiteball.gifbin0 -> 275 bytes
-rw-r--r--docs-src/images/yellowball.gifbin0 -> 398 bytes
-rw-r--r--docs/html/images/JAVA.85.GIFbin0 -> 2680 bytes
-rw-r--r--docs/html/images/blueball.gifbin0 -> 398 bytes
-rw-r--r--docs/html/images/change_begin.gifbin0 -> 133 bytes
-rw-r--r--docs/html/images/change_begin_right.gifbin0 -> 128 bytes
-rw-r--r--docs/html/images/change_delete.gifbin0 -> 257 bytes
-rw-r--r--docs/html/images/change_delete_right.gifbin0 -> 257 bytes
-rw-r--r--docs/html/images/change_end.gifbin0 -> 135 bytes
-rw-r--r--docs/html/images/change_end_right.gifbin0 -> 127 bytes
-rw-r--r--docs/html/images/contents.xbm12
-rw-r--r--docs/html/images/contents_motif.gifbin0 -> 225 bytes
-rw-r--r--docs/html/images/coolbutton.gifbin0 -> 4775 bytes
-rw-r--r--docs/html/images/cross_ref_motif.gifbin0 -> 78 bytes
-rw-r--r--docs/html/images/cupHJbutton.gifbin0 -> 1474 bytes
-rw-r--r--docs/html/images/foot_motif.gifbin0 -> 87 bytes
-rw-r--r--docs/html/images/gamelanbutton.gifbin0 -> 4700 bytes
-rw-r--r--docs/html/images/greenball.gifbin0 -> 398 bytes
-rw-r--r--docs/html/images/icons.html42
-rw-r--r--docs/html/images/image.gifbin0 -> 195 bytes
-rw-r--r--docs/html/images/index_motif.gifbin0 -> 180 bytes
-rw-r--r--docs/html/images/invis_anchor.xbm4
-rw-r--r--docs/html/images/j2j.gifbin0 -> 3129 bytes
-rw-r--r--docs/html/images/jarswebsearch.gifbin0 -> 4442 bytes
-rw-r--r--docs/html/images/next_group_motif.gifbin0 -> 259 bytes
-rw-r--r--docs/html/images/next_group_motif_gr.gifbin0 -> 259 bytes
-rw-r--r--docs/html/images/next_motif.gifbin0 -> 172 bytes
-rw-r--r--docs/html/images/next_motif_gr.gifbin0 -> 172 bytes
-rw-r--r--docs/html/images/ogl.gifbin0 -> 15232 bytes
-rw-r--r--docs/html/images/ogl_sm.gifbin0 -> 1842 bytes
-rw-r--r--docs/html/images/ogla.gifbin0 -> 65244 bytes
-rw-r--r--docs/html/images/ogla_sm.gifbin0 -> 24003 bytes
-rw-r--r--docs/html/images/orangeball.gifbin0 -> 398 bytes
-rw-r--r--docs/html/images/pinkball.gifbin0 -> 398 bytes
-rw-r--r--docs/html/images/previous_group_motif.gifbin0 -> 303 bytes
-rw-r--r--docs/html/images/previous_group_motif_gr.gifbin0 -> 303 bytes
-rw-r--r--docs/html/images/previous_motif.gifbin0 -> 220 bytes
-rw-r--r--docs/html/images/previous_motif_gr.gifbin0 -> 220 bytes
-rw-r--r--docs/html/images/purpleball.gifbin0 -> 398 bytes
-rw-r--r--docs/html/images/redball.gifbin0 -> 398 bytes
-rw-r--r--docs/html/images/smi.logo.gifbin0 -> 2408 bytes
-rw-r--r--docs/html/images/up_motif.gifbin0 -> 145 bytes
-rw-r--r--docs/html/images/up_motif_gr.gifbin0 -> 145 bytes
-rw-r--r--docs/html/images/whiteball.gifbin0 -> 275 bytes
-rw-r--r--docs/html/images/yellowball.gifbin0 -> 398 bytes
-rw-r--r--docs/images/baby-gnu.pngbin0 -> 3131 bytes
-rw-r--r--docs/images/gleeson_head.pngbin0 -> 37331 bytes
-rw-r--r--docs/images/gnu-and-penguin-color-300x276.pngbin0 -> 83474 bytes
-rw-r--r--docs/images/gnu-type.pngbin0 -> 4718 bytes
-rw-r--r--docs/images/gnubanner.jpgbin0 -> 9733 bytes
-rw-r--r--docs/images/jaulogo-hp-300x80.pngbin0 -> 12982 bytes
-rw-r--r--docs/images/overviewA.fig118
-rw-r--r--docs/images/overviewA.pngbin0 -> 8102 bytes
-rw-r--r--docs/images/philosophical-gnu-sm.pngbin0 -> 9590 bytes
-rw-r--r--docs/images/reiss-head.jpgbin0 -> 21496 bytes
-rw-r--r--docs/images/whats-gnu.pngbin0 -> 5363 bytes
-rw-r--r--docs/index.html36
-rw-r--r--docs/introduction/Overview.sdabin0 -> 28672 bytes
-rw-r--r--docs/introduction/architecture.html47
-rw-r--r--docs/introduction/benefits.html147
-rw-r--r--docs/introduction/competitors.html51
-rw-r--r--docs/introduction/future.html80
-rw-r--r--docs/introduction/gleeson_head.pngbin0 -> 37331 bytes
-rw-r--r--docs/introduction/history.html84
-rw-r--r--docs/introduction/index.html70
-rw-r--r--docs/introduction/motivation.html134
-rw-r--r--docs/introduction/purpose.html101
-rw-r--r--docs/introduction/thanxs.html61
-rw-r--r--docs/introduction/trademarks.html64
-rw-r--r--gl4java.html89
-rw-r--r--gl4java/GL4JavaInitException.java10
-rw-r--r--gl4java/GL4JavaReflections.java163
-rw-r--r--gl4java/GLContext.java.skel2251
-rw-r--r--gl4java/GLEnum.java1347
-rw-r--r--gl4java/GLFunc.java7438
-rw-r--r--gl4java/GLFuncJauJNI.java6997
-rw-r--r--gl4java/GLFuncJauJNInf.java6997
-rw-r--r--gl4java/GLUEnum.java141
-rw-r--r--gl4java/GLUFunc.java774
-rw-r--r--gl4java/GLUFuncJauJNI.java848
-rw-r--r--gl4java/GLUFuncJauJNInf.java848
-rw-r--r--gl4java/applet/SimpleGLAnimApplet1.java270
-rw-r--r--gl4java/awt/GLAnimCanvas.java686
-rw-r--r--gl4java/awt/GLCanvas.java695
-rwxr-xr-xgl4java/awt/GLImageCanvas.java402
-rw-r--r--gl4java/jau/awt/WinHandleAccess.java21
-rw-r--r--gl4java/jau/awt/macintosh/MacHandleAccess.java89
-rw-r--r--gl4java/jau/awt/motif/X11HandleAccess.java86
-rw-r--r--gl4java/jau/awt/windows/MSWin32HandleAccess.java60
-rw-r--r--gl4java/jau/awt/windows/Win32HandleAccess.java84
-rw-r--r--gl4java/swing/GLAnimJPanel.java720
-rw-r--r--gl4java/swing/GLJPanel.java865
-rw-r--r--gl4java/swing/GLJPanel.java,v959
-rw-r--r--gl4java/swing/SimpleGLJApplet1.java292
-rw-r--r--gl4java/system/GljMSJDirect.java77
-rw-r--r--gl4java/utils/Test.java359
-rw-r--r--gl4java/utils/Tool.java158
-rw-r--r--gl4java/utils/glut/GLUTEnum.java40
-rw-r--r--gl4java/utils/glut/GLUTFunc.java54
-rw-r--r--gl4java/utils/glut/GLUTFuncLightImpl.java847
-rw-r--r--gl4java/utils/glut/fonts/BitmapCharRec.java28
-rw-r--r--gl4java/utils/glut/fonts/BitmapFontRec.java24
-rw-r--r--gl4java/utils/glut/fonts/CoordRec.java19
-rw-r--r--gl4java/utils/glut/fonts/GLUTBitmapFont.java12
-rw-r--r--gl4java/utils/glut/fonts/GLUTFuncLightImplWithFonts.java300
-rw-r--r--gl4java/utils/glut/fonts/GLUTStrokeFont.java5
-rw-r--r--gl4java/utils/glut/fonts/LICENSE.txt28
-rw-r--r--gl4java/utils/glut/fonts/Makefile110
-rw-r--r--gl4java/utils/glut/fonts/MonoRoman.stroke503
-rw-r--r--gl4java/utils/glut/fonts/Roman.stroke604
-rw-r--r--gl4java/utils/glut/fonts/StrokeCharRec.java24
-rw-r--r--gl4java/utils/glut/fonts/StrokeFontRec.java25
-rw-r--r--gl4java/utils/glut/fonts/StrokeRec.java20
-rw-r--r--gl4java/utils/glut/fonts/capturexfont.c371
-rw-r--r--gl4java/utils/glut/fonts/data/glutBitmap8By13.java2048
-rw-r--r--gl4java/utils/glut/fonts/data/glutBitmap9By15.java2050
-rw-r--r--gl4java/utils/glut/fonts/data/glutBitmapHelvetica10.java1769
-rw-r--r--gl4java/utils/glut/fonts/data/glutBitmapHelvetica12.java1779
-rw-r--r--gl4java/utils/glut/fonts/data/glutBitmapHelvetica18.java1888
-rw-r--r--gl4java/utils/glut/fonts/data/glutBitmapTimesRoman10.java1768
-rw-r--r--gl4java/utils/glut/fonts/data/glutBitmapTimesRoman24.java2051
-rw-r--r--gl4java/utils/glut/fonts/data/glutStrokeMonoRoman.java2458
-rw-r--r--gl4java/utils/glut/fonts/data/glutStrokeRoman.java2458
-rw-r--r--gl4java/utils/glut/fonts/stroke.h134
-rw-r--r--gl4java/utils/glut/fonts/strokegen.y658
-rw-r--r--gl4java/utils/glut/fonts/strokelex.l134
-rw-r--r--gl4java/utils/textures/AWTTextureLoader.java169
-rw-r--r--gl4java/utils/textures/IOTextureLoader.java67
-rw-r--r--gl4java/utils/textures/PPMAsciiTextureLoader.java88
-rw-r--r--gl4java/utils/textures/PngTextureLoader.java160
-rw-r--r--gl4java/utils/textures/TGATextureGrabber.java61
-rw-r--r--gl4java/utils/textures/TGATextureLoader.java111
-rw-r--r--gl4java/utils/textures/TextureGrabber.java116
-rw-r--r--gl4java/utils/textures/TextureLoader.java41
-rwxr-xr-xgl4java/utils/textures/TextureTool.java610
-rw-r--r--makefile851
-rwxr-xr-xmklibs/mkexp.aix93
-rwxr-xr-xmklibs/mkslib-debug.linux66
-rwxr-xr-xmklibs/mkslib.aix92
-rwxr-xr-xmklibs/mkslib.irix6.2-gcc66
-rwxr-xr-xmklibs/mkslib.linux66
-rwxr-xr-xmklibs/mkslib.solaris-gcc63
-rw-r--r--symbols.mak.linux-java2-xf86-ppc47
-rw-r--r--symbols.mak.linux-java2-xf86-x8647
-rw-r--r--symbols.mak.sgi-irix65-mips-gcc47
-rw-r--r--symbols.mak.sgi-irix65-mips-gcc-brian47
-rw-r--r--symbols.mak.solaris-sunos-56-sparc-gcc-brian45
-rw-r--r--symbols.mak.solaris-sunos-57-sparc-gcc45
-rw-r--r--symbols.mak.win32-java250
734 files changed, 416540 insertions, 0 deletions
diff --git a/C2J/ASCII_CharStream.java b/C2J/ASCII_CharStream.java
new file mode 100644
index 0000000..45d639c
--- /dev/null
+++ b/C2J/ASCII_CharStream.java
@@ -0,0 +1,379 @@
+/* Generated By:JavaCC: Do not edit this line. ASCII_CharStream.java Version 0.7pre6 */
+/**
+ * An implementation of interface CharStream, where the stream is assumed to
+ * contain only ASCII characters (without unicode processing).
+ */
+
+public final class ASCII_CharStream
+{
+ public static final boolean staticFlag = true;
+ static int bufsize;
+ static int available;
+ static int tokenBegin;
+ static public int bufpos = -1;
+ static private int bufline[];
+ static private int bufcolumn[];
+
+ static private int column = 0;
+ static private int line = 1;
+
+ static private boolean prevCharIsCR = false;
+ static private boolean prevCharIsLF = false;
+
+ static private java.io.Reader inputStream;
+
+ static private char[] buffer;
+ static private int maxNextCharInd = 0;
+ static private int inBuf = 0;
+
+ static private final void ExpandBuff(boolean wrapAround)
+ {
+ char[] newbuffer = new char[bufsize + 2048];
+ int newbufline[] = new int[bufsize + 2048];
+ int newbufcolumn[] = new int[bufsize + 2048];
+
+ try
+ {
+ if (wrapAround)
+ {
+ System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin);
+ System.arraycopy(buffer, 0, newbuffer,
+ bufsize - tokenBegin, bufpos);
+ buffer = newbuffer;
+
+ System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin);
+ System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos);
+ bufline = newbufline;
+
+ System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin);
+ System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos);
+ bufcolumn = newbufcolumn;
+
+ maxNextCharInd = (bufpos += (bufsize - tokenBegin));
+ }
+ else
+ {
+ System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin);
+ buffer = newbuffer;
+
+ System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin);
+ bufline = newbufline;
+
+ System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin);
+ bufcolumn = newbufcolumn;
+
+ maxNextCharInd = (bufpos -= tokenBegin);
+ }
+ }
+ catch (Throwable t)
+ {
+ throw new Error(t.getMessage());
+ }
+
+
+ bufsize += 2048;
+ available = bufsize;
+ tokenBegin = 0;
+ }
+
+ static private final void FillBuff() throws java.io.IOException
+ {
+ if (maxNextCharInd == available)
+ {
+ if (available == bufsize)
+ {
+ if (tokenBegin > 2048)
+ {
+ bufpos = maxNextCharInd = 0;
+ available = tokenBegin;
+ }
+ else if (tokenBegin < 0)
+ bufpos = maxNextCharInd = 0;
+ else
+ ExpandBuff(false);
+ }
+ else if (available > tokenBegin)
+ available = bufsize;
+ else if ((tokenBegin - available) < 2048)
+ ExpandBuff(true);
+ else
+ available = tokenBegin;
+ }
+
+ int i;
+ try {
+ if ((i = inputStream.read(buffer, maxNextCharInd,
+ available - maxNextCharInd)) == -1)
+ {
+ inputStream.close();
+ throw new java.io.IOException();
+ }
+ else
+ maxNextCharInd += i;
+ return;
+ }
+ catch(java.io.IOException e) {
+ --bufpos;
+ backup(0);
+ if (tokenBegin == -1)
+ tokenBegin = bufpos;
+ throw e;
+ }
+ }
+
+ static public final char BeginToken() throws java.io.IOException
+ {
+ tokenBegin = -1;
+ char c = readChar();
+ tokenBegin = bufpos;
+
+ return c;
+ }
+
+ static private final void UpdateLineColumn(char c)
+ {
+ column++;
+
+ if (prevCharIsLF)
+ {
+ prevCharIsLF = false;
+ line += (column = 1);
+ }
+ else if (prevCharIsCR)
+ {
+ prevCharIsCR = false;
+ if (c == '\n')
+ {
+ prevCharIsLF = true;
+ }
+ else
+ line += (column = 1);
+ }
+
+ switch (c)
+ {
+ case '\r' :
+ prevCharIsCR = true;
+ break;
+ case '\n' :
+ prevCharIsLF = true;
+ break;
+ case '\t' :
+ column--;
+ column += (8 - (column & 07));
+ break;
+ default :
+ break;
+ }
+
+ bufline[bufpos] = line;
+ bufcolumn[bufpos] = column;
+ }
+
+ static public final char readChar() throws java.io.IOException
+ {
+ if (inBuf > 0)
+ {
+ --inBuf;
+ return (char)((char)0xff & buffer[(bufpos == bufsize - 1) ? (bufpos = 0) : ++bufpos]);
+ }
+
+ if (++bufpos >= maxNextCharInd)
+ FillBuff();
+
+ char c = (char)((char)0xff & buffer[bufpos]);
+
+ UpdateLineColumn(c);
+ return (c);
+ }
+
+ /**
+ * @deprecated
+ * @see #getEndColumn
+ */
+
+ static public final int getColumn() {
+ return bufcolumn[bufpos];
+ }
+
+ /**
+ * @deprecated
+ * @see #getEndLine
+ */
+
+ static public final int getLine() {
+ return bufline[bufpos];
+ }
+
+ static public final int getEndColumn() {
+ return bufcolumn[bufpos];
+ }
+
+ static public final int getEndLine() {
+ return bufline[bufpos];
+ }
+
+ static public final int getBeginColumn() {
+ return bufcolumn[tokenBegin];
+ }
+
+ static public final int getBeginLine() {
+ return bufline[tokenBegin];
+ }
+
+ static public final void backup(int amount) {
+
+ inBuf += amount;
+ if ((bufpos -= amount) < 0)
+ bufpos += bufsize;
+ }
+
+ public ASCII_CharStream(java.io.Reader dstream, int startline,
+ int startcolumn, int buffersize)
+ {
+ if (inputStream != null)
+ throw new Error("\n ERROR: Second call to the constructor of a static ASCII_CharStream. You must\n" +
+ " either use ReInit() or set the JavaCC option STATIC to false\n" +
+ " during the generation of this class.");
+ inputStream = dstream;
+ line = startline;
+ column = startcolumn - 1;
+
+ available = bufsize = buffersize;
+ buffer = new char[buffersize];
+ bufline = new int[buffersize];
+ bufcolumn = new int[buffersize];
+ }
+
+ public ASCII_CharStream(java.io.Reader dstream, int startline,
+ int startcolumn)
+ {
+ this(dstream, startline, startcolumn, 4096);
+ }
+ static public void ReInit(java.io.Reader dstream, int startline,
+ int startcolumn, int buffersize)
+ {
+ inputStream = dstream;
+ line = startline;
+ column = startcolumn - 1;
+
+ if (buffer == null || buffersize != buffer.length)
+ {
+ available = bufsize = buffersize;
+ buffer = new char[buffersize];
+ bufline = new int[buffersize];
+ bufcolumn = new int[buffersize];
+ }
+ prevCharIsLF = prevCharIsCR = false;
+ tokenBegin = inBuf = maxNextCharInd = 0;
+ bufpos = -1;
+ }
+
+ static public void ReInit(java.io.Reader dstream, int startline,
+ int startcolumn)
+ {
+ ReInit(dstream, startline, startcolumn, 4096);
+ }
+ public ASCII_CharStream(java.io.InputStream dstream, int startline,
+ int startcolumn, int buffersize)
+ {
+ this(new java.io.InputStreamReader(dstream), startline, startcolumn, 4096);
+ }
+
+ public ASCII_CharStream(java.io.InputStream dstream, int startline,
+ int startcolumn)
+ {
+ this(dstream, startline, startcolumn, 4096);
+ }
+
+ static public void ReInit(java.io.InputStream dstream, int startline,
+ int startcolumn, int buffersize)
+ {
+ ReInit(new java.io.InputStreamReader(dstream), startline, startcolumn, 4096);
+ }
+ static public void ReInit(java.io.InputStream dstream, int startline,
+ int startcolumn)
+ {
+ ReInit(dstream, startline, startcolumn, 4096);
+ }
+ static public final String GetImage()
+ {
+ if (bufpos >= tokenBegin)
+ return new String(buffer, tokenBegin, bufpos - tokenBegin + 1);
+ else
+ return new String(buffer, tokenBegin, bufsize - tokenBegin) +
+ new String(buffer, 0, bufpos + 1);
+ }
+
+ static public final char[] GetSuffix(int len)
+ {
+ char[] ret = new char[len];
+
+ if ((bufpos + 1) >= len)
+ System.arraycopy(buffer, bufpos - len + 1, ret, 0, len);
+ else
+ {
+ System.arraycopy(buffer, bufsize - (len - bufpos - 1), ret, 0,
+ len - bufpos - 1);
+ System.arraycopy(buffer, 0, ret, len - bufpos - 1, bufpos + 1);
+ }
+
+ return ret;
+ }
+
+ static public void Done()
+ {
+ buffer = null;
+ bufline = null;
+ bufcolumn = null;
+ }
+
+ /**
+ * Method to adjust line and column numbers for the start of a token.<BR>
+ */
+ static public void adjustBeginLineColumn(int newLine, int newCol)
+ {
+ int start = tokenBegin;
+ int len;
+
+ if (bufpos >= tokenBegin)
+ {
+ len = bufpos - tokenBegin + inBuf + 1;
+ }
+ else
+ {
+ len = bufsize - tokenBegin + bufpos + 1 + inBuf;
+ }
+
+ int i = 0, j = 0, k = 0;
+ int nextColDiff = 0, columnDiff = 0;
+
+ while (i < len &&
+ bufline[j = start % bufsize] == bufline[k = ++start % bufsize])
+ {
+ bufline[j] = newLine;
+ nextColDiff = columnDiff + bufcolumn[k] - bufcolumn[j];
+ bufcolumn[j] = newCol + columnDiff;
+ columnDiff = nextColDiff;
+ i++;
+ }
+
+ if (i < len)
+ {
+ bufline[j] = newLine++;
+ bufcolumn[j] = newCol + columnDiff;
+
+ while (i++ < len)
+ {
+ if (bufline[j = start % bufsize] != bufline[++start % bufsize])
+ bufline[j] = newLine++;
+ else
+ bufline[j] = newLine;
+ }
+ }
+
+ line = bufline[j];
+ column = bufcolumn[j];
+ }
+
+}
diff --git a/C2J/C.jj b/C2J/C.jj
new file mode 100644
index 0000000..ca07ea2
--- /dev/null
+++ b/C2J/C.jj
@@ -0,0 +1,578 @@
+/*
+
+ C grammar defintion for use with JavaCC
+ Contributed by Doug South ([email protected]) 21/3/97
+
+ This parser assumes that the C source file has been preprocessed : all
+ #includes have been included and all macros have been expanded. I accomplish
+ this with "gcc -P -E <source file> > <output file>".
+
+ There is a problem with compiler specific types, such as __signed, __const,
+ __inline__, etc. These types can be added as typedef types before the parser
+ is run on a file. See main() for an example. I have also found a strange little
+ compiler specific "type" if you can call it that. It is __attribute__, but it
+ does not seem to be used as a type. I found that just deleting the __attribute__
+ and the following "offensive" code works.
+
+ This grammar also prints out all the types defined while parsing the file. This
+ is done via a call to printTypes() when the parser is complete. If you do not want
+ this, just comment out the printTypes() method call in the production rule
+ TranslationUnit(), which BTW is the root node for parsing a C source file.
+
+ I have not in anyway extensively tested this grammar, in fact it is barely tested,
+ but I imagine it is better to have a starting point for a C grammar other than from
+ scratch. It has not been optimized in anyway, my main aim was to get a parser that
+ works. Lookahead may not be optimum at choice points and may even be insufficient at
+ times. I choose to err on the side of not optimum if I made a choice at all.
+
+ If you use this grammar, I would appreciate hearing from you. I will try to maintain
+ this grammar to the best of my ability, but at this point in time, this is only a side
+ hobby (unless someone wants to pay me for doing JavaCC work!). In that regards, I am
+ interested in hearing bugs and comments.
+
+ TODO:
+
+ Insert the appropiate code to enable C source trees from this grammar.
+
+ */
+
+PARSER_BEGIN(CParser)
+
+import java.util.*;
+
+ public class CParser{
+
+ // Hastable for storing typedef types
+ private static Hashtable types = new Hashtable();
+
+ // Stack for determining when the parser
+ // is parsing a typdef definition.
+ private static Stack typedefParsingStack = new Stack();
+
+ // Returns true if the given string is
+ // a typedef type.
+ private static boolean isType(String type){
+
+ if(types.get(type) != null){
+ return true;
+ }
+ return false;
+ }
+
+ // Add a typedef type to those already defined
+ private static void addType(String type){
+ types.put(type, Boolean.TRUE);
+ }
+
+ // Prints out all the types used in parsing the c source
+ private static void printTypes(){
+
+ Enumeration enum = types.keys();
+
+ while(enum.hasMoreElements()){
+ System.out.println(enum.nextElement());
+ }
+ }
+
+ // Run the parser
+ public static void main ( String args [ ] ) {
+ CParser parser ;
+
+ // Hack to include type "special types"
+ types.put("__signed__", Boolean.TRUE);
+ types.put("__const", Boolean.TRUE);
+ types.put("__inline__", Boolean.TRUE);
+ types.put("__signed", Boolean.TRUE);
+
+ if(args.length == 0){
+ System.out.println("C Parser Version 0.1Alpha: Reading from standard input . . .");
+ parser = new CParser(System.in);
+ }
+ else if(args.length == 1){
+ System.out.println("C Parser Version 0.1Alpha: Reading from file " + args[0] + " . . ." );
+ try {
+ parser = new CParser(new java.io.FileInputStream(args[0]));
+ }
+ catch(java.io.FileNotFoundException e){
+ System.out.println("C Parser Version 0.1: File " + args[0] + " not found.");
+ return ;
+ }
+ }
+ else {
+ System.out.println("C Parser Version 0.1Alpha: Usage is one of:");
+ System.out.println(" java CParser < inputfile");
+ System.out.println("OR");
+ System.out.println(" java CParser inputfile");
+ return ;
+ }
+ try {
+ parser.TranslationUnit();
+ System.out.println("C Parser Version 0.1Alpha: Java program parsed successfully.");
+ }
+ catch(ParseError e){
+ System.out.println("C Parser Version 0.1Alpha: Encountered errors during parse.");
+ }
+ }
+ }
+
+PARSER_END(CParser)
+
+SKIP : {
+ " "
+| "\t"
+| "\n"
+| "\r"
+| <"//" (~["\n","\r"])* ("\n" | "\r" | "\r\n")>
+| <"/*" (~["*"])* "*" ("*" | ~["*","/"] (~["*"])* "*")* "/">
+}
+
+TOKEN : {
+ <INTEGER_LITERAL: <DECIMAL_LITERAL> (["l","L"])? | <HEX_LITERAL> (["l","L"])? | <OCTAL_LITERAL> (["l","L"])?>
+| <#DECIMAL_LITERAL: ["1"-"9"] (["0"-"9"])*>
+| <#HEX_LITERAL: "0" ["x","X"] (["0"-"9","a"-"f","A"-"F"])+>
+| <#OCTAL_LITERAL: "0" (["0"-"7"])*>
+| <FLOATING_POINT_LITERAL: (["0"-"9"])+ "." (["0"-"9"])* (<EXPONENT>)? (["f","F","d","D"])? | "." (["0"-"9"])+ (<EXPONENT>)? (["f","F","d","D"])? | (["0"-"9"])+ <EXPONENT> (["f","F","d","D"])? | (["0"-"9"])+ (<EXPONENT>)? ["f","F","d","D"]>
+| <#EXPONENT: ["e","E"] (["+","-"])? (["0"-"9"])+>
+| <CHARACTER_LITERAL: "\'" (~["\'","\\","\n","\r"] | "\\" (["n","t","b","r","f","\\","\'","\""] | ["0"-"7"] (["0"-"7"])? | ["0"-"3"] ["0"-"7"] ["0"-"7"])) "\'">
+| <STRING_LITERAL: "\"" (~["\"","\\","\n","\r"] | "\\" (["n","t","b","r","f","\\","\'","\""] | ["0"-"7"] (["0"-"7"])? | ["0"-"3"] ["0"-"7"] ["0"-"7"]))* "\"">
+}
+
+TOKEN : {
+ <CONTINUE: "continue"> |
+ <VOLATILE: "volatile"> |
+ <REGISTER: "register"> |
+ <UNSIGNED: "unsigned"> |
+ <TYPEDEF: "typedef"> |
+ <DFLT: "default"> |
+ <DOUBLE: "double"> |
+ <SIZEOF: "sizeof"> |
+ <SWITCH: "switch"> |
+ <RETURN: "return"> |
+ <EXTERN: "extern"> |
+ <STRUCT: "struct"> |
+ <STATIC: "static"> |
+ <SIGNED: "signed"> |
+ <WHILE: "while"> |
+ <BREAK: "break"> |
+ <UNION: "union"> |
+ <CONST: "const"> |
+ <FLOAT: "float"> |
+ <SHORT: "short"> |
+ <ELSE: "else"> |
+ <CASE: "case"> |
+ <LONG: "long"> |
+ <ENUM: "enum"> |
+ <AUTO: "auto"> |
+ <VOID: "void"> |
+ <CHAR: "char"> |
+ <GOTO: "goto"> |
+ <FOR: "for"> |
+ <INT: "int"> |
+ <IF: "if"> |
+ <DO: "do">
+}
+
+TOKEN : {
+ <IDENTIFIER: <LETTER> (<LETTER> | <DIGIT>)*>
+| <#LETTER: ["$","A"-"Z","_","a"-"z"]>
+| <#DIGIT: ["0"-"9"]>
+}
+
+void TranslationUnit() : {}
+{
+ (ExternalDeclaration())+
+ {printTypes();}
+}
+
+void ExternalDeclaration() : {}
+{
+ ( LOOKAHEAD( FunctionDefinition() ) FunctionDefinition() | Declaration())
+}
+
+void FunctionDefinition() : {}
+{
+ [LOOKAHEAD(DeclarationSpecifiers()) DeclarationSpecifiers()] Declarator() [ DeclarationList() ]
+ CompoundStatement()
+}
+
+void Declaration() : {}
+{
+ DeclarationSpecifiers() [ InitDeclaratorList() ] ";"
+}
+
+void DeclarationList() : {}
+{
+ ( LOOKAHEAD(Declaration()) Declaration() )+
+}
+
+void DeclarationSpecifiers() : {}
+{
+ StorageClassSpecifier() [ LOOKAHEAD(DeclarationSpecifiers())
+ DeclarationSpecifiers() ] |
+ TypeSpecifier() [ LOOKAHEAD(DeclarationSpecifiers())
+ DeclarationSpecifiers() ] |
+ TypeQualifier() [ LOOKAHEAD(DeclarationSpecifiers())
+ DeclarationSpecifiers() ]
+}
+
+void StorageClassSpecifier() : {}
+{
+ ( <AUTO> | <REGISTER> | <STATIC> | <EXTERN> | <TYPEDEF>
+ {
+ typedefParsingStack.push(Boolean.TRUE);
+ } )
+}
+
+void TypeSpecifier() : {}
+{
+ ( <VOID> | <CHAR> | <SHORT> | <INT> | <LONG> | <FLOAT> | <DOUBLE> | <SIGNED> |
+ <UNSIGNED> | StructOrUnionSpecifier() | EnumSpecifier() | LOOKAHEAD( { isType(getToken(1).image) } )TypedefName() )
+}
+
+void TypeQualifier() : {}
+{
+ ( <CONST> | <VOLATILE> )
+}
+
+void StructOrUnionSpecifier() : {}
+{
+ {
+ typedefParsingStack.push(Boolean.FALSE);
+ }
+
+ StructOrUnion() ( LOOKAHEAD(3) [ <IDENTIFIER> ] "{" StructDeclarationList() "}" | <IDENTIFIER> )
+
+ {
+ typedefParsingStack.pop();
+ }
+}
+
+void StructOrUnion() : {}
+{
+ ( <STRUCT> | <UNION> )
+}
+
+void StructDeclarationList() : {}
+{
+ (StructDeclaration())+
+}
+
+void InitDeclaratorList() : {}
+{
+ InitDeclarator() ("," InitDeclarator())*
+ {
+ // Finished with a typedefDeclaration??
+ if(!(typedefParsingStack.empty()) && ((Boolean)typedefParsingStack.peek()).booleanValue()){
+ typedefParsingStack.pop();
+ }
+ }
+}
+
+void InitDeclarator() : {}
+{
+ Declarator() [ "=" Initializer() ]
+}
+
+void StructDeclaration() : {}
+{
+ SpecifierQualifierList() StructDeclaratorList() ";"
+}
+
+void SpecifierQualifierList() : {}
+{
+ TypeSpecifier() [ LOOKAHEAD(SpecifierQualifierList())
+ SpecifierQualifierList() ]|
+ TypeQualifier() [ LOOKAHEAD(SpecifierQualifierList())
+ SpecifierQualifierList() ]
+}
+
+void StructDeclaratorList() : {}
+{
+ StructDeclarator() ( "," StructDeclarator() )*
+}
+
+void StructDeclarator() : {}
+{
+ ( LOOKAHEAD(3) Declarator() | [ Declarator() ] ":" ConstantExpression() )
+}
+
+void EnumSpecifier() : {}
+{
+ <ENUM> ( LOOKAHEAD(3) [ <IDENTIFIER> ] "{" EnumeratorList() "}" | <IDENTIFIER> )
+}
+
+void EnumeratorList() : {}
+{
+ Enumerator() ("," Enumerator())*
+}
+
+void Enumerator() : {}
+{
+ <IDENTIFIER> [ "=" ConstantExpression() ]
+}
+
+void Declarator() : {}
+{
+ [ Pointer() ] DirectDeclarator()
+}
+
+void DirectDeclarator() : { Token t;}
+{
+ ( t = <IDENTIFIER>
+
+ { if(!(typedefParsingStack.empty()) && ((Boolean)typedefParsingStack.peek()).booleanValue()){
+ addType(t.image);
+ }
+ }
+ | "(" Declarator() ")" )
+
+ ( "[" [ ConstantExpression() ] "]" |
+ LOOKAHEAD(3) "(" ParameterTypeList() ")" |
+ "(" [ IdentifierList() ] ")" )*
+}
+
+void Pointer() : {}
+{
+ "*" [ TypeQualifierList() ] [ Pointer() ]
+}
+
+void TypeQualifierList() : {}
+{
+ (TypeQualifier())+
+}
+
+void ParameterTypeList() : {}
+{
+ ParameterList() ["," "..." ]
+}
+
+void ParameterList() : {}
+{
+ ParameterDeclaration() (LOOKAHEAD(2) "," ParameterDeclaration())*
+}
+
+void ParameterDeclaration() : {}
+{
+ DeclarationSpecifiers() ( LOOKAHEAD(Declarator()) Declarator() | [ AbstractDeclarator() ] )
+}
+
+void IdentifierList() : {}
+{
+ <IDENTIFIER> ("," <IDENTIFIER>)*
+}
+
+void Initializer() : {}
+{
+ ( AssignmentExpression() |
+ "{" InitializerList() [","] "}" )
+}
+
+void InitializerList() : {}
+{
+ Initializer() (LOOKAHEAD(2) "," Initializer())*
+}
+
+void TypeName() : {}
+{
+ SpecifierQualifierList() [ AbstractDeclarator() ]
+
+}
+
+void AbstractDeclarator() : {}
+{
+ ( LOOKAHEAD(3) Pointer() |
+ [Pointer()] DirectAbstractDeclarator() )
+}
+
+void DirectAbstractDeclarator() : {}
+{
+ ( LOOKAHEAD(2) "(" AbstractDeclarator() ")" |
+ "[" [ConstantExpression()] "]" |
+ "(" [ParameterTypeList()] ")" )
+
+ ( "[" [ ConstantExpression() ] "]" | "(" [ ParameterTypeList() ] ")" )*
+}
+
+void TypedefName() : {}
+{
+ <IDENTIFIER>
+}
+
+void Statement() : {}
+{
+ ( LOOKAHEAD(2) LabeledStatement() |
+ ExpressionStatement() |
+ CompoundStatement() |
+ SelectionStatement() |
+ IterationStatement() |
+ JumpStatement() )
+}
+
+void LabeledStatement() : {}
+{
+ ( <IDENTIFIER> ":" Statement() |
+ <CASE> ConstantExpression() ":" Statement() |
+ <DFLT> ":" Statement() )
+}
+
+void ExpressionStatement() : {}
+{
+ [ Expression() ] ";"
+}
+
+void CompoundStatement() : {}
+{
+ "{" [ LOOKAHEAD(DeclarationList()) DeclarationList() ]
+ [ StatementList() ]
+ "}"
+}
+
+void StatementList() : {}
+{
+ (Statement())+
+}
+
+void SelectionStatement() : {}
+{
+ ( <IF> "(" Expression() ")" Statement() [ LOOKAHEAD(2) <ELSE> Statement() ] |
+ <SWITCH> "(" Expression() ")" Statement() )
+}
+
+void IterationStatement() : {}
+{
+ ( <WHILE> "(" Expression() ")" Statement() |
+ <DO> Statement() <WHILE> "(" Expression() ")" ";" |
+ <FOR> "(" [ Expression() ] ";" [ Expression() ] ";" [ Expression() ] ")" Statement() )
+}
+
+void JumpStatement() : {}
+{
+ ( <GOTO> <IDENTIFIER> ";" |
+ <CONTINUE> ";" |
+ <BREAK> ";" |
+ <RETURN> [ Expression() ] ";" )
+}
+
+void Expression() : {}
+{
+ AssignmentExpression() ( "," AssignmentExpression() )*
+}
+
+void AssignmentExpression() : {}
+{
+ LOOKAHEAD(UnaryExpression() AssignmentOperator()) UnaryExpression() AssignmentOperator() AssignmentExpression() |
+ LOOKAHEAD(3) ConditionalExpression()
+}
+
+void AssignmentOperator() : {}
+{
+ ( "=" | "*=" | "/=" | "%=" | "+=" | "-=" | "<<=" | ">>=" | "&=" | "^=" | "|=" )
+}
+
+void ConditionalExpression() : {}
+{
+ LogicalORExpression() [ "?" Expression() ":" ConditionalExpression() ]
+}
+
+void ConstantExpression() : {}
+{
+ ConditionalExpression()
+}
+
+void LogicalORExpression() : {}
+{
+ LogicalANDExpression() [ "||" LogicalORExpression() ]
+}
+
+void LogicalANDExpression() : {}
+{
+ InclusiveORExpression() [ "&&" LogicalANDExpression() ]
+}
+
+void InclusiveORExpression() : {}
+{
+ ExclusiveORExpression() [ "|" InclusiveORExpression() ]
+}
+
+void ExclusiveORExpression() : {}
+{
+ ANDExpression() [ "^" ExclusiveORExpression() ]
+}
+
+void ANDExpression() : {}
+{
+ EqualityExpression() [ "&" ANDExpression() ]
+}
+
+void EqualityExpression() : {}
+{
+ RelationalExpression() [ ( "==" | "!=" ) EqualityExpression() ]
+}
+
+void RelationalExpression() : {}
+{
+ ShiftExpression() [ ( "<" | ">" | "<=" | ">=" ) RelationalExpression() ]
+}
+
+void ShiftExpression() : {}
+{
+ AdditiveExpression() [ ( "<<" | ">>" ) ShiftExpression() ]
+}
+
+void AdditiveExpression() : {}
+{
+ MultiplicativeExpression() [ ( "+" | "-" ) AdditiveExpression() ]
+}
+
+void MultiplicativeExpression() : {}
+{
+ CastExpression() [ ( "*" | "/" | "%" ) MultiplicativeExpression() ]
+}
+
+void CastExpression() : {}
+{
+ ( LOOKAHEAD("(" TypeName() ")" CastExpression() ) "(" TypeName() ")" CastExpression() |
+ UnaryExpression() )
+}
+
+void UnaryExpression() : {}
+{
+ ( LOOKAHEAD(3) PostfixExpression() |
+ "++" UnaryExpression() |
+ "--" UnaryExpression() |
+ UnaryOperator() CastExpression() |
+ <SIZEOF> ( LOOKAHEAD(UnaryExpression() ) UnaryExpression() | "(" TypeName() ")" ) )
+}
+
+void UnaryOperator() : {}
+{
+ ( "&" | "*" | "+" | "-" | "~" | "!" )
+}
+
+void PostfixExpression() : {}
+{
+ PrimaryExpression() ( "[" Expression() "]" |
+ "(" [ LOOKAHEAD(ArgumentExpressionList() ) ArgumentExpressionList() ] ")" |
+ "." <IDENTIFIER> |
+ "->" <IDENTIFIER> |
+ "++" |
+ "--" )*
+}
+
+void PrimaryExpression() : {}
+{
+ ( <IDENTIFIER> |
+ Constant() |
+ "(" Expression() ")" )
+}
+
+void ArgumentExpressionList() : {}
+{
+ AssignmentExpression() ( "," AssignmentExpression() )*
+}
+
+void Constant() : {}
+{
+ <INTEGER_LITERAL> | <FLOATING_POINT_LITERAL> | <CHARACTER_LITERAL> | <STRING_LITERAL>
+}
+
diff --git a/C2J/C2C.jj b/C2J/C2C.jj
new file mode 100644
index 0000000..bd70c9a
--- /dev/null
+++ b/C2J/C2C.jj
@@ -0,0 +1,721 @@
+/*
+
+ C grammar defintion for use with JavaCC
+ Contributed by Doug South ([email protected]) 21/3/97
+
+ This parser assumes that the C source file has been preprocessed : all
+ #includes have been included and all macros have been expanded. I accomplish
+ this with "gcc -P -E <source file> > <output file>".
+
+ There is a problem with compiler specific types, such as __signed, __const,
+ __inline__, etc. These types can be added as typedef types before the parser
+ is run on a file. See main() for an example. I have also found a strange little
+ compiler specific "type" if you can call it that. It is __attribute__, but it
+ does not seem to be used as a type. I found that just deleting the __attribute__
+ and the following "offensive" code works.
+
+ This grammar also prints out all the types defined while parsing the file. This
+ is done via a call to printTypes() when the parser is complete. If you do not want
+ this, just comment out the printTypes() method call in the production rule
+ TranslationUnit(), which BTW is the root node for parsing a C source file.
+
+ I have not in anyway extensively tested this grammar, in fact it is barely tested,
+ but I imagine it is better to have a starting point for a C grammar other than from
+ scratch. It has not been optimized in anyway, my main aim was to get a parser that
+ works. Lookahead may not be optimum at choice points and may even be insufficient at
+ times. I choose to err on the side of not optimum if I made a choice at all.
+
+ If you use this grammar, I would appreciate hearing from you. I will try to maintain
+ this grammar to the best of my ability, but at this point in time, this is only a side
+ hobby (unless someone wants to pay me for doing JavaCC work!). In that regards, I am
+ interested in hearing bugs and comments.
+
+ TODO:
+
+ Insert the appropiate code to enable C source trees from this grammar.
+
+ */
+
+PARSER_BEGIN(C2C)
+
+import java.util.*;
+
+ public class C2C{
+
+ public static String src ;
+
+ // Hastable for storing typedef types
+ private static Hashtable types = new Hashtable();
+
+ // Stack for determining when the parser
+ // is parsing a typdef definition.
+ private static Stack typedefParsingStack = new Stack();
+
+ // Returns true if the given string is
+ // a typedef type.
+ private static boolean isType(String type){
+
+ if(types.get(type) != null){
+ return true;
+ }
+ return false;
+ }
+
+ // Add a typedef type to those already defined
+ private static void addType(String type){
+ types.put(type, Boolean.TRUE);
+ }
+
+ // Prints out all the types used in parsing the c source
+ private static void printTypes(){
+
+ Enumeration enum = types.keys();
+
+ while(enum.hasMoreElements()){
+ System.out.println(enum.nextElement());
+ }
+ }
+
+ // Run the parser
+ public static void main ( String args [ ] ) {
+ C2C parser ;
+
+ // Hack to include type "special types"
+ types.put("__signed__", Boolean.TRUE);
+ types.put("__const", Boolean.TRUE);
+ types.put("__inline__", Boolean.TRUE);
+ types.put("__signed", Boolean.TRUE);
+
+ if(args.length == 0){
+ System.out.println("C Parser Version 0.1Alpha: Reading from standard input . . .");
+ parser = new C2C(System.in);
+ }
+ else if(args.length == 1){
+ System.out.println("C Parser Version 0.1Alpha: Reading from file " + args[0] + " . . ." );
+ try {
+ parser = new C2C(new java.io.FileInputStream(args[0]));
+ }
+ catch(java.io.FileNotFoundException e){
+ System.out.println("C Parser Version 0.1: File " + args[0] + " not found.");
+ return ;
+ }
+ }
+ else {
+ System.out.println("C Parser Version 0.1Alpha: Usage is one of:");
+ System.out.println(" java C2C < inputfile");
+ System.out.println("OR");
+ System.out.println(" java C2C inputfile");
+ return ;
+ }
+ try {
+ src = new String();
+ parser.TranslationUnit();
+ System.out.println("/* C Parser Version 0.1Alpha: Java program parsed successfully. */");
+ }
+ catch(ParseError e){
+ System.out.println("/* C Parser Version 0.1Alpha: Encountered errors during parse. */");
+ }
+ System.out.println(src);
+ }
+ }
+
+PARSER_END(C2C)
+
+SKIP : {
+ " "
+| "\t"
+| "\n"
+| "\r"
+| <"//" (~["\n","\r"])* ("\n" | "\r" | "\r\n")>
+| <"/*" (~["*"])* "*" ("*" | ~["*","/"] (~["*"])* "*")* "/">
+}
+
+TOKEN : {
+ <INTEGER_LITERAL: <DECIMAL_LITERAL> (["l","L"])? | <HEX_LITERAL> (["l","L"])? | <OCTAL_LITERAL> (["l","L"])?>
+| <#DECIMAL_LITERAL: ["1"-"9"] (["0"-"9"])*>
+| <#HEX_LITERAL: "0" ["x","X"] (["0"-"9","a"-"f","A"-"F"])+>
+| <#OCTAL_LITERAL: "0" (["0"-"7"])*>
+| <FLOATING_POINT_LITERAL: (["0"-"9"])+ "." (["0"-"9"])* (<EXPONENT>)? (["f","F","d","D"])? | "." (["0"-"9"])+ (<EXPONENT>)? (["f","F","d","D"])? | (["0"-"9"])+ <EXPONENT> (["f","F","d","D"])? | (["0"-"9"])+ (<EXPONENT>)? ["f","F","d","D"]>
+| <#EXPONENT: ["e","E"] (["+","-"])? (["0"-"9"])+>
+| <CHARACTER_LITERAL: "\'" (~["\'","\\","\n","\r"] | "\\" (["n","t","b","r","f","\\","\'","\""] | ["0"-"7"] (["0"-"7"])? | ["0"-"3"] ["0"-"7"] ["0"-"7"])) "\'">
+| <STRING_LITERAL: "\"" (~["\"","\\","\n","\r"] | "\\" (["n","t","b","r","f","\\","\'","\""] | ["0"-"7"] (["0"-"7"])? | ["0"-"3"] ["0"-"7"] ["0"-"7"]))* "\"">
+}
+
+TOKEN : {
+ <CONTINUE: "continue"> |
+ <VOLATILE: "volatile"> |
+ <REGISTER: "register"> |
+ <UNSIGNED: "unsigned"> |
+ <TYPEDEF: "typedef"> |
+ <DFLT: "default"> |
+ <DOUBLE: "double"> |
+ <SIZEOF: "sizeof"> |
+ <SWITCH: "switch"> |
+ <RETURN: "return"> |
+ <EXTERN: "extern"> |
+ <STRUCT: "struct"> |
+ <STATIC: "static"> |
+ <SIGNED: "signed"> |
+ <WHILE: "while"> |
+ <BREAK: "break"> |
+ <UNION: "union"> |
+ <CONST: "const"> |
+ <FLOAT: "float"> |
+ <SHORT: "short"> |
+ <ELSE: "else"> |
+ <CASE: "case"> |
+ <LONG: "long"> |
+ <ENUM: "enum"> |
+ <AUTO: "auto"> |
+ <VOID: "void"> |
+ <CHAR: "char"> |
+ <GOTO: "goto"> |
+ <FOR: "for"> |
+ <INT: "int"> |
+ <IF: "if"> |
+ <DO: "do"> |
+ <GLbyte: "GLbyte"> |
+ <GLshort: "GLshort"> |
+ <GLint: "GLint"> |
+ <GLfloat: "GLfloat"> |
+ <GLclampf: "GLclampf"> |
+ <GLdouble: "GLdouble"> |
+ <GLclampd: "GLclampd"> |
+ <GLubyte: "GLubyte"> |
+ <GLboolean: "GLboolean"> |
+ <GLushort: "GLushort"> |
+ <GLuint: "GLuint"> |
+ <GLenum: "GLenum"> |
+ <GLbitfield: "GLbitfield">
+}
+
+TOKEN : {
+ <IDENTIFIER: <LETTER> (<LETTER> | <DIGIT>)*>
+| <#LETTER: ["$","A"-"Z","_","a"-"z"]>
+| <#DIGIT: ["0"-"9"]>
+}
+
+void TranslationUnit() : {}
+{
+ (ExternalDeclaration())+
+ { /* printTypes(); */ }
+}
+
+void ExternalDeclaration() : {}
+{
+ ( LOOKAHEAD( FunctionDefinition() ) FunctionDefinition() | Declaration())
+}
+
+void FunctionDefinition() : {}
+{
+ [LOOKAHEAD(DeclarationSpecifiers()) DeclarationSpecifiers()] Declarator() [ DeclarationList() ]
+ CompoundStatement()
+}
+
+void Declaration() : {}
+{
+ DeclarationSpecifiers() [ InitDeclaratorList() ]
+ ";" { src=src+";\n"; }
+}
+
+void DeclarationList() : {}
+{
+ ( LOOKAHEAD(Declaration()) Declaration() )+
+}
+
+void DeclarationSpecifiers() : {}
+{
+ StorageClassSpecifier() [ LOOKAHEAD(DeclarationSpecifiers())
+ DeclarationSpecifiers() ] |
+ TypeSpecifier() [ LOOKAHEAD(DeclarationSpecifiers())
+ DeclarationSpecifiers() ] |
+ TypeQualifier() [ LOOKAHEAD(DeclarationSpecifiers())
+ DeclarationSpecifiers() ]
+}
+
+void StorageClassSpecifier() :
+{ Token t; }
+{
+ ( t=<AUTO> { src=src+t.image+" "; }|
+ t=<REGISTER> { src=src+t.image+" "; }|
+ t=<STATIC> { src=src+t.image+" "; }|
+ t=<EXTERN> { src=src+t.image+" "; }|
+ t=<TYPEDEF> { src=src+t.image+" "; }
+ {
+ typedefParsingStack.push(Boolean.TRUE);
+ } )
+}
+
+void TypeSpecifier() :
+{ Token t; }
+{
+ ( t=<VOID> { src=src+t.image+" "; } |
+ t=<CHAR> { src=src+t.image+" "; } |
+ t=<SHORT> { src=src+t.image+" "; } |
+ t=<INT> { src=src+t.image+" "; }|
+ t=<LONG> { src=src+t.image+" "; }|
+ t=<FLOAT> { src=src+t.image+" "; }|
+ t=<DOUBLE> { src=src+t.image+" "; }|
+ t=<SIGNED> { src=src+t.image+" "; }|
+ t=<UNSIGNED> { src=src+t.image+" "; }|
+ StructOrUnionSpecifier() |
+ EnumSpecifier() |
+ LOOKAHEAD( { isType(getToken(1).image) } )TypedefName() )
+}
+
+void TypeQualifier() :
+{ Token t; }
+{
+ ( t=<CONST> { src=src+t.image+" "; } |
+ t=<VOLATILE> { src=src+t.image+" "; } )
+}
+
+void StructOrUnionSpecifier() :
+{ Token t; }
+{
+ {
+ typedefParsingStack.push(Boolean.FALSE);
+ }
+
+ StructOrUnion() ( LOOKAHEAD(3)
+ [ t=<IDENTIFIER> { src=src+t.image+" "; } ]
+ "{" { src=src+"{\n"; } StructDeclarationList()
+ "}" { src=src+"}\n"; } |
+ t=<IDENTIFIER> { src=src+t.image+" "; })
+ {
+ typedefParsingStack.pop();
+ }
+}
+
+void StructOrUnion() :
+{ Token t; }
+{
+ ( t=<STRUCT> { src=src+t.image+" "; } |
+ t=<UNION> { src=src+t.image+" "; } )
+}
+
+void StructDeclarationList() : {}
+{
+ (StructDeclaration())+
+}
+
+void InitDeclaratorList() : {}
+{
+ InitDeclarator() (
+ "," { src=src+", "; } InitDeclarator())*
+ {
+ // Finished with a typedefDeclaration??
+ if(!(typedefParsingStack.empty()) && ((Boolean)typedefParsingStack.peek()).booleanValue()){
+ typedefParsingStack.pop();
+ }
+ }
+}
+
+void InitDeclarator() : {}
+{
+ Declarator() [ "=" { src=src+"= "; } Initializer() ]
+}
+
+void StructDeclaration() : {}
+{
+ SpecifierQualifierList() StructDeclaratorList()
+ ";" { src=src+";\n"; }
+}
+
+void SpecifierQualifierList() : {}
+{
+ TypeSpecifier() [ LOOKAHEAD(SpecifierQualifierList())
+ SpecifierQualifierList() ]|
+ TypeQualifier() [ LOOKAHEAD(SpecifierQualifierList())
+ SpecifierQualifierList() ]
+}
+
+void StructDeclaratorList() : {}
+{
+ StructDeclarator() ( "," { src=src+", "; } StructDeclarator() )*
+}
+
+void StructDeclarator() : {}
+{
+ ( LOOKAHEAD(3) Declarator() | [ Declarator() ]
+ ":" { src=src+": "; } ConstantExpression() )
+}
+
+void EnumSpecifier() :
+{ Token t; }
+{
+ t=<ENUM> { src=src+t.image+" "; } ( LOOKAHEAD(3)
+ [ t=<IDENTIFIER> { src=src+t.image+" "; } ]
+ "{" { src=src+"{\n"; } EnumeratorList()
+ "}" { src=src+"}\n"; } |
+ t=<IDENTIFIER> { src=src+t.image+" "; } )
+}
+
+void EnumeratorList() : {}
+{
+ Enumerator() ("," { src=src+",\n"; } Enumerator())*
+}
+
+void Enumerator() :
+{ Token t; }
+{
+ t=<IDENTIFIER> { src=src+t.image+" "; }
+ [ "=" { src=src+"= "; } ConstantExpression() ]
+}
+
+void Declarator() : {}
+{
+ [ Pointer() ] DirectDeclarator()
+}
+
+void DirectDeclarator() : { Token t;}
+{
+ ( t = <IDENTIFIER>
+ { src=src+t.image+" ";
+ if(!(typedefParsingStack.empty()) &&
+ ((Boolean)typedefParsingStack.peek()).booleanValue())
+ {
+ addType(t.image);
+ }
+ }
+ | "(" { src=src+"( "; } Declarator() ")" { src=src+") "; } )
+
+ ( "[" { src=src+"[ "; } [ ConstantExpression() ] "]" { src=src+"] "; } |
+ LOOKAHEAD(3) "(" { src=src+"( "; } ParameterTypeList()
+ ")" { src=src+") "; } |
+ "(" { src=src+"( "; } [ IdentifierList() ] ")" { src=src+") "; } )*
+}
+
+void Pointer() : {}
+{
+ "*" { src=src+"* "; } [ TypeQualifierList() ] [ Pointer() ]
+}
+
+void TypeQualifierList() : {}
+{
+ (TypeQualifier())+
+}
+
+void ParameterTypeList() : {}
+{
+ ParameterList() ["," { src=src+", "; } "..." { src=src+"..."; } ]
+}
+
+void ParameterList() : {}
+{
+ ParameterDeclaration() (LOOKAHEAD(2)
+ "," { src=src+", "; } ParameterDeclaration())*
+}
+
+void ParameterDeclaration() : {}
+{
+ DeclarationSpecifiers() ( LOOKAHEAD(Declarator()) Declarator() | [ AbstractDeclarator() ] )
+}
+
+void IdentifierList() :
+{ Token t; }
+{
+ t=<IDENTIFIER> { src=src+t.image+" "; }
+ ("," { src=src+", "; } t=<IDENTIFIER> { src=src+t.image+" "; } )*
+}
+
+void Initializer() : {}
+{
+ ( AssignmentExpression() |
+ "{" { src=src+"{\n"; } InitializerList()
+ ["," { src=src+", "; } ] "}" { src=src+"}\n"; } )
+}
+
+void InitializerList() : {}
+{
+ Initializer() (LOOKAHEAD(2) "," { src=src+", "; } Initializer())*
+}
+
+void TypeName() : {}
+{
+ SpecifierQualifierList() [ AbstractDeclarator() ]
+
+}
+
+void AbstractDeclarator() : {}
+{
+ ( LOOKAHEAD(3) Pointer() |
+ [Pointer()] DirectAbstractDeclarator() )
+}
+
+void DirectAbstractDeclarator() : {}
+{
+ ( LOOKAHEAD(2)
+ "(" { src=src+"( "; } AbstractDeclarator()
+ ")" { src=src+") "; } |
+ "[" { src=src+"[ "; } [ConstantExpression()]
+ "]" { src=src+"] "; } |
+ "(" { src=src+"( "; } [ParameterTypeList()]
+ ")" { src=src+") "; } )
+ (
+ "[" { src=src+"[ "; } [ ConstantExpression() ]
+ "]" { src=src+"] "; } |
+ "(" { src=src+"( "; } [ ParameterTypeList() ]
+ ")" { src=src+") "; } )*
+}
+
+void TypedefName() :
+{ Token t; }
+{
+ t=<IDENTIFIER> { src=src+t.image+" "; }
+}
+
+void Statement() : {}
+{
+ ( LOOKAHEAD(2) LabeledStatement() |
+ ExpressionStatement() |
+ CompoundStatement() |
+ SelectionStatement() |
+ IterationStatement() |
+ JumpStatement() )
+}
+
+void LabeledStatement() :
+{ Token t; }
+{
+ ( t=<IDENTIFIER> { src=src+t.image+" "; }
+ ":" { src=src+": "; } Statement() |
+ t=<CASE> { src=src+t.image+" "; } ConstantExpression()
+ ":"{ src=src+": "; } Statement() |
+ t=<DFLT> { src=src+t.image+" "; }
+ ":"{ src=src+": "; } Statement() )
+}
+
+void ExpressionStatement() : {}
+{
+ [ Expression() ] ";"{ src=src+";\n"; }
+}
+
+void CompoundStatement() : {}
+{
+ "{" { src=src+"{\n"; } [ LOOKAHEAD(DeclarationList()) DeclarationList() ]
+ [ StatementList() ]
+ "}"{ src=src+"}\n"; }
+}
+
+void StatementList() : {}
+{
+ (Statement())+
+}
+
+void SelectionStatement() :
+{ Token t; }
+{
+ ( t=<IF> { src=src+t.image+" "; }
+ "(" { src=src+"( "; } Expression()
+ ")" { src=src+")\n"; } Statement() [ LOOKAHEAD(2)
+ t=<ELSE> { src=src+t.image+" "; } Statement() ] |
+ t=<SWITCH> { src=src+t.image+" "; }
+ "(" { src=src+"( "; } Expression()
+ ")" { src=src+")\n"; } Statement() )
+}
+
+void IterationStatement() :
+{ Token t; }
+{
+ ( t=<WHILE> { src=src+t.image+" "; }
+ "(" { src=src+"( "; } Expression()
+ ")" { src=src+")\n"; } Statement() |
+ t=<DO> { src=src+t.image+"\n"; } Statement()
+ t=<WHILE> { src=src+t.image+" "; }
+ "(" { src=src+"( "; } Expression()
+ ")" ";" { src=src+");\n"; } |
+ t=<FOR> { src=src+t.image+" "; }
+ "(" { src=src+"( "; } [ Expression() ]
+ ";" { src=src+"; "; } [ Expression() ]
+ ";" { src=src+"; "; } [ Expression() ]
+ ")" { src=src+")\n"; }
+ Statement() )
+}
+
+void JumpStatement() :
+{ Token t; }
+{
+ ( t=<GOTO> { src=src+t.image+" "; } t=<IDENTIFIER> { src=src+t.image+" "; }
+ ";" { src=src+";\n"; } |
+ t=<CONTINUE> { src=src+t.image+" "; } ";" { src=src+";\n"; } |
+ t=<BREAK> { src=src+t.image+" "; } ";" { src=src+";\n"; } |
+ t=<RETURN> { src=src+t.image+" "; }
+ [ Expression() ] ";" { src=src+";\n"; } )
+}
+
+void Expression() : {}
+{
+ AssignmentExpression() ( "," { src=src+", "; } AssignmentExpression() )*
+}
+
+void AssignmentExpression() : {}
+{
+ LOOKAHEAD(UnaryExpression() AssignmentOperator()) UnaryExpression() AssignmentOperator() AssignmentExpression() |
+ LOOKAHEAD(3) ConditionalExpression()
+}
+
+void AssignmentOperator() : {}
+{
+ ( "=" { src=src+"= "; } |
+ "*=" { src=src+"*= "; } |
+ "/=" { src=src+"/= "; } |
+ "%=" { src=src+"%= "; } |
+ "+=" { src=src+"+= "; } |
+ "-=" { src=src+"-= "; } |
+ "<<=" { src=src+"<<= "; } |
+ ">>=" { src=src+">>= "; } |
+ "&=" { src=src+"&= "; } |
+ "^=" { src=src+"^= "; } |
+ "|=" { src=src+"|= "; } )
+}
+
+void ConditionalExpression() : {}
+{
+ LogicalORExpression()
+ [ "?" { src=src+"? "; } Expression() ":" { src=src+": "; }
+ ConditionalExpression() ]
+}
+
+void ConstantExpression() : {}
+{
+ ConditionalExpression()
+}
+
+void LogicalORExpression() : {}
+{
+ LogicalANDExpression()
+ [ "||" { src=src+"|| "; } LogicalORExpression() ]
+}
+
+void LogicalANDExpression() : {}
+{
+ InclusiveORExpression()
+ [ "&&" { src=src+"&& "; } LogicalANDExpression() ]
+}
+
+void InclusiveORExpression() : {}
+{
+ ExclusiveORExpression()
+ [ "|" { src=src+"| "; } InclusiveORExpression() ]
+}
+
+void ExclusiveORExpression() : {}
+{
+ ANDExpression()
+ [ "^" { src=src+"^ "; } ExclusiveORExpression() ]
+}
+
+void ANDExpression() : {}
+{
+ EqualityExpression()
+ [ "&" { src=src+"& "; } ANDExpression() ]
+}
+
+void EqualityExpression() : {}
+{
+ RelationalExpression()
+ [ ( "==" { src=src+"== "; } | "!=" { src=src+"!= "; } )
+ EqualityExpression() ]
+}
+
+void RelationalExpression() : {}
+{
+ ShiftExpression()
+ [ ( "<" { src=src+"< "; } |
+ ">" { src=src+"> "; } |
+ "<=" { src=src+"<= "; } |
+ ">=" { src=src+">= "; } ) RelationalExpression() ]
+}
+
+void ShiftExpression() : {}
+{
+ AdditiveExpression()
+ [ ( "<<" { src=src+"<< "; } | ">>" { src=src+">> "; } ) ShiftExpression() ]
+}
+
+void AdditiveExpression() : {}
+{
+ MultiplicativeExpression()
+ [ ( "+" { src=src+"+ "; } | "-" { src=src+"- "; } ) AdditiveExpression() ]
+}
+
+void MultiplicativeExpression() : {}
+{
+ CastExpression()
+ [ ( "*" { src=src+"* "; } |
+ "/" { src=src+"/ "; } |
+ "%" { src=src+"% "; } ) MultiplicativeExpression() ]
+}
+
+void CastExpression() :
+{ String help1= new String();
+ String help2= new String();
+}
+{
+ ( LOOKAHEAD( "(" TypeName(help1) ")" CastExpression(help2) )
+ { src=src+"( "+help1+") "+help2; }
+ "(" { src=src+"( "; } TypeName() ")" { src=src+") "; } CastExpression() |
+ UnaryExpression() )
+}
+
+void UnaryExpression() :
+{ Token t; }
+{
+ ( LOOKAHEAD(3) PostfixExpression() |
+ "++" { src=src+"++ "; } UnaryExpression() |
+ "--" { src=src+"-- "; } UnaryExpression() |
+ UnaryOperator() CastExpression() |
+ t=<SIZEOF> { src=src+t.image+" "; }
+ ( LOOKAHEAD(UnaryExpression() ) UnaryExpression() |
+ "(" { src=src+"( "; } TypeName() ")" { src=src+") "; } ) )
+}
+
+void UnaryOperator() : {}
+{
+ ( "&" { src=src+"& "; } |
+ "*" { src=src+"* "; } |
+ "+" { src=src+"+ "; } |
+ "-" { src=src+"- "; } |
+ "~" { src=src+"~ "; } |
+ "!" { src=src+"! "; } )
+}
+
+void PostfixExpression() :
+{ Token t; }
+{
+ PrimaryExpression()
+ ( "[" { src=src+"[ "; } Expression() "]" { src=src+"] "; } |
+ "(" { src=src+"( "; }
+ [ LOOKAHEAD(ArgumentExpressionList() ) ArgumentExpressionList() ]
+ ")" { src=src+") "; } |
+ "." { src=src+". "; } t=<IDENTIFIER> { src=src+t.image+" "; } |
+ "->" { src=src+"-> "; } t=<IDENTIFIER> { src=src+t.image+" "; } |
+ "++" { src=src+"++ "; } |
+ "--" { src=src+"-- "; } )*
+}
+
+void PrimaryExpression() :
+{ Token t; }
+{
+ ( t=<IDENTIFIER> { src=src+t.image+" "; } |
+ Constant() |
+ "(" { src=src+"( "; } Expression() ")" { src=src+") "; } )
+}
+
+void ArgumentExpressionList() :
+{ }
+{
+ AssignmentExpression()
+ ( "," { src=src+", "; } AssignmentExpression() )*
+}
+
+void Constant() :
+{ Token t; }
+{
+ t=<INTEGER_LITERAL> { src=src+t.image+" "; } |
+ t=<FLOATING_POINT_LITERAL> { src=src+t.image+" "; } |
+ t=<CHARACTER_LITERAL> { src=src+t.image+" "; } |
+ t=<STRING_LITERAL> { src=src+t.image+" "; }
+}
+
diff --git a/C2J/C2J.java b/C2J/C2J.java
new file mode 100644
index 0000000..c6105c6
--- /dev/null
+++ b/C2J/C2J.java
@@ -0,0 +1,5679 @@
+/* Generated By:JavaCC: Do not edit this line. C2J.java */
+import java.util.*;
+
+ public class C2J implements C2JConstants {
+
+ public static final String version = "C2J Parser Version 1.4 Beta" ;
+ public static final String vendor = "Jausoft - Sven Goethel Software Development";
+
+ public static final int EXPORT_JNI_JAVA = 1;
+ public static final int EXPORT_JNI_JAVA_FINAL = 2;
+ public static final int EXPORT_MSJDIRECT_JAVA = 3;
+ public static final int EXPORT_JNI_C = 4; // strong binding
+ public static final int EXPORT_JNI_C_DYN = 5; // dyn. binding
+ public static final int EXPORT_GL_FUNC_NAMES = 10;
+
+ public static final int MODIFIER_JNI_CRITICAL_ARRAY = 1;
+ public static final int MODIFIER_JNI_COPY_CHECK = 2; // experimental trial ..
+
+ public static int exportMode;
+ public static int exportModifier;
+ public static boolean verbose=false ;
+ public static boolean syntaxVerbose=false ;
+ public static boolean echoMode=false ;
+ public static String clazzName;
+ public static String dllname;
+
+ public static int lastEnumValue=0;
+
+ //
+ // Holder of the parsed c-code
+ //
+ public static String cSrc;
+
+ // Hastable for storing typedef types
+ private static Hashtable types = new Hashtable();
+
+ // Stack for determining when the parser
+ // is parsing a typdef definition.
+ private static Stack typedefParsingStack = new Stack();
+
+ // Returns true if the given string is
+ // a typedef type.
+ private static boolean isType(String type){
+
+ if(types.get(type) != null){
+ return true;
+ }
+ return false;
+ }
+
+ // Add a typedef type to those already defined
+ private static void addType(String type){
+ types.put(type, Boolean.TRUE);
+ cSrc += "\n\t/* WARNING TYPE ADDED : "+type+" */\n";
+ }
+
+ // Prints out all the types used in parsing the c source
+ private static void printTypes(){
+
+ Enumeration enum = types.keys();
+
+ while(enum.hasMoreElements()){
+ System.out.println(enum.nextElement());
+ }
+ }
+
+ public static void printUsage()
+ {
+ System.out.println("Usage is one of:");
+ System.out.println(" java C2J [-v] [-s] [-echo] [jnic|jnijava|jnijavaf|msjava|echo] <ClassName> < inputfile");
+ System.out.println("OR");
+ System.out.println(" java C2J [-v] [-s] [-echo] [-jnic-criticalarray] [-jnic-trial] [jnic|jnic-dyn|jnijava|msjava <dllname>|glfnames] <ClassName> inputfile");
+ System.out.println(" , inputfile is a C-HeaderFile (Preprocessed).");
+ System.out.println(" , where <ClassName> must be full qualified with an underscore instead of an dot - if not in (any) Java-Mode.");
+ System.out.println(" , where -v means verbose");
+ System.out.println(" , where -s means including the syntax-states in Output commentary");
+ System.out.println(" , where -echo means including the parsed C-Code in Output commentary");
+ System.out.println(" , where -jnic-criticalarray includes experimental JNI-C Code");
+ System.out.println(" , where -jnic-trial includes experimental JNI-C Code");
+ System.out.println(" , where jnic produces JNI-C Code (strong binding)");
+ System.out.println(" , where jnic-dyn produces JNI-C Code (dynamic binding)");
+ System.out.println(" , where jnijava produces JNI-Java Code (non final)");
+ System.out.println(" , where jnijavaf produces JNI-Java Code (final)");
+ System.out.println(" , where msjava <dllname> produces MSJVM-Java Code for the DLL <dllname>");
+ System.out.println(" , where glfnames produces all GL function names");
+ System.out.println(" , where echo just prints the parsed C-Code\n");
+ System.out.println(" E.g.");
+ System.out.println(" java C2J jnic myPackage_myClass a.h > a.c");
+ System.out.println(" java C2J jnijava myPackage_myClass a.h > a.java");
+ System.out.println(" java C2J jnijavaf myPackage_myClass a.h > aFinalMethods.java");
+ System.out.println(" java C2J msjava OPENGL32 myPackage_myClass a.h > aMSVersion.java");
+ System.out.println(" java C2J -echo myPackage_myClass a.h > aCopy.h");
+ System.out.println(" ( ALL OpenGL GL<type>'s are mapped to JNI types )");
+ }
+
+ // Run the parser
+ public static void main ( String args [ ] )
+ {
+ C2J parser ;
+
+ // Hack to include type "special types"
+ /*
+ types.put("__signed__", Boolean.TRUE);
+ types.put("__const", Boolean.TRUE);
+ types.put("__inline__", Boolean.TRUE);
+ types.put("__signed", Boolean.TRUE);
+ */
+
+ int i;
+ String inputFile = null;
+
+ exportMode = -1; /* error */
+ exportModifier = 0;
+ verbose=false;
+ echoMode=false;
+
+ if(args.length==0)
+ {
+ printUsage();
+ return;
+ }
+
+ for(i=0; i<args.length ; i++)
+ {
+ if(exportMode<=0)
+ {
+ if( args[i].equals("-v") )
+ verbose=true;
+ if( args[i].equals("-s") )
+ syntaxVerbose=true;
+ else if( args[i].equals("-echo") )
+ {
+ echoMode = true;
+ }
+ else if( args[i].equals("-jnic-criticalarray") )
+ {
+ exportModifier |= MODIFIER_JNI_CRITICAL_ARRAY ;
+ }
+ else if( args[i].equals("-jnic-trial") )
+ {
+ exportModifier |= MODIFIER_JNI_COPY_CHECK ;
+ }
+ else if( args[i].equals("jnic") )
+ {
+ exportMode = EXPORT_JNI_C;
+ }
+ else if( args[i].equals("jnic-dyn") )
+ {
+ exportMode = EXPORT_JNI_C_DYN;
+ }
+ else if( args[i].equals("jnijava") )
+ {
+ exportMode = EXPORT_JNI_JAVA;
+ }
+ else if( args[i].equals("jnijavaf") )
+ {
+ exportMode = EXPORT_JNI_JAVA_FINAL;
+ }
+ else if( args[i].equals("glfnames") )
+ {
+ exportMode = EXPORT_GL_FUNC_NAMES;
+ }
+ else if( args[i].equals("msjava") && i+1<args.length )
+ {
+ exportMode = EXPORT_MSJDIRECT_JAVA;
+ i++;
+ dllname = args[i];
+ }
+ } else if (clazzName==null) {
+ clazzName = args[i];
+ } else if(inputFile==null) {
+ inputFile = args[i];
+ } else
+ exportMode=0;
+ }
+
+ String info = new String();
+
+ if(inputFile==null)
+ {
+ info += "/**\n * "+version+"\n * "+vendor+"\n * Reading from standard input . . .";
+ info += "\n * Destination-Class: "+clazzName+ " ! \n */\n";
+ } else {
+ info += "/**\n * "+version+"\n * "+vendor+"\n * Reading from file: "+inputFile+" . . .";
+ info += "\n * Destination-Class: "+clazzName+ " ! \n */\n";
+ }
+ System.err.println(info);
+ System.out.println(info);
+
+ if(inputFile==null)
+ {
+ parser = new C2J(System.in);
+ }
+ else {
+ try {
+ parser = new C2J(new java.io.FileInputStream(inputFile));
+ }
+ catch(java.io.FileNotFoundException e){
+ System.out.println("/* File " + inputFile + " not found. */");
+ return ;
+ }
+ }
+
+ try {
+
+ cSrc = new String();
+
+ parser.TranslationUnit();
+ System.out.println("/* "+version+": Java program parsed successfully. */ ");
+ }
+ catch(ParseException e){
+ System.out.println("/* "+version+": Encountered errors during parse. */ ");
+ System.out.println("/* ");
+ System.out.println(e);
+ System.out.println(" */");
+ }
+ }
+
+ static final public void TranslationUnit() throws ParseException {
+ label_1:
+ while (true) {
+ ExternalDeclaration();
+ if (jj_2_1(1)) {
+ ;
+ } else {
+ break label_1;
+ }
+ }
+
+ }
+
+ static final public void ExternalDeclaration() throws ParseException {
+ CFuncDeclaration cfunc = null;
+ if (jj_2_2(2147483647)) {
+ cfunc = FunctionDefinition();
+ } else if (jj_2_3(1)) {
+ cfunc = Declaration(null);
+ } else {
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ if(echoMode)
+ {
+ System.out.println("/**");
+ System.out.println(" * Original Function-Prototype :");
+ System.out.println(" * <pre> ");
+ System.out.print (" ");
+ System.out.print(cSrc);
+ System.out.println(" * </pre> ");
+ System.out.println(" */");
+ cSrc=new String();
+ }
+ if(verbose)
+ {
+ String tmp = new String();
+
+ tmp += "/*\n";
+
+ if(cfunc!=null)
+ tmp += cfunc.toString();
+ else
+ tmp += "NO CFUNC INSTANCE";
+
+ tmp += "\n*/";
+
+ System.out.println(tmp);
+ }
+
+ if(cfunc==null)
+ {
+ System.err.println("ERROR(ExternalDeclaration): no CFuncDeclaration instance received !");
+ {if (true) return;}
+ }
+ if(!cfunc.isValid())
+ {
+ String name = null;
+ if(cfunc.funcSpec!=null)
+ {
+ name=cfunc.funcSpec.identifier;
+ if(name==null)
+ name=cfunc.funcSpec.toString();
+ }
+ if(name==null)
+ name="<UNKNOWN>";
+ System.err.println("WARNING(ExternalDeclaration): Function :<"+
+ name+"> can not be proceded - invalid !");
+ {if (true) return;}
+ }
+
+ switch(exportMode)
+ {
+ case EXPORT_JNI_JAVA :
+ System.out.println(cfunc.toJniJavaCode(false));
+ break;
+ case EXPORT_JNI_JAVA_FINAL :
+ System.out.println(cfunc.toJniJavaCode(true));
+ break;
+ case EXPORT_JNI_C :
+ case EXPORT_JNI_C_DYN :
+ System.out.println(cfunc.toJniCCode(clazzName, exportMode,
+ exportModifier));
+ break;
+ case EXPORT_GL_FUNC_NAMES:
+ System.out.println("\t\t\""+cfunc.funcSpec.identifier+"\", ");
+ break;
+ case EXPORT_MSJDIRECT_JAVA :
+ System.out.println(cfunc.toMsJDirectCode(dllname));
+ break;
+ }
+ }
+
+ static final public CFuncDeclaration FunctionDefinition() throws ParseException {
+ CFuncDeclaration cfunc= new CFuncDeclaration();
+ if (jj_2_4(2147483647)) {
+ DeclarationSpecifiers(cfunc);
+ } else {
+ ;
+ }
+ Declarator(cfunc);
+ if (jj_2_5(1)) {
+ DeclarationList(cfunc);
+ } else {
+ ;
+ }
+ CompoundStatement();
+ {if (true) return cfunc;}
+ throw new Error("Missing return statement in function");
+ }
+
+ static final public CFuncDeclaration Declaration(CFuncDeclaration cfunc) throws ParseException {
+ if(cfunc==null) cfunc = new CFuncDeclaration();
+ DeclarationSpecifiers(cfunc);
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IDENTIFIER:
+ case 75:
+ case 79:
+ InitDeclaratorList(cfunc);
+ break;
+ default:
+ jj_la1[0] = jj_gen;
+ ;
+ }
+ jj_consume_token(69);
+ cSrc += ";\n";
+ {if (true) return cfunc;}
+ throw new Error("Missing return statement in function");
+ }
+
+ static final public void DeclarationList(CFuncDeclaration cfunc) throws ParseException {
+ label_2:
+ while (true) {
+ Declaration(cfunc);
+ if (jj_2_6(2147483647)) {
+ ;
+ } else {
+ break label_2;
+ }
+ }
+ }
+
+ static final public void DeclarationSpecifiers(CFuncDeclaration cfunc) throws ParseException {
+ CFuncVariable cfvar=null;
+ if(cfunc!=null) cfvar=cfunc.getLastIncompleteVar();
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case REGISTER:
+ case TYPEDEF:
+ case EXTERN:
+ case STATIC:
+ case AUTO:
+ StorageClassSpecifier(cfunc);
+ if (jj_2_7(2147483647)) {
+ DeclarationSpecifiers(cfunc);
+ } else {
+ ;
+ }
+ break;
+ default:
+ jj_la1[1] = jj_gen;
+ if (jj_2_10(1)) {
+ cfvar = TypeSpecifier(cfvar);
+ if(cfunc!=null)
+ {
+ cfunc.setWorkingVar(cfvar);
+ }
+ if (jj_2_8(2147483647)) {
+ DeclarationSpecifiers(cfunc);
+ } else {
+ ;
+ }
+ } else {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case VOLATILE:
+ case CONST:
+ cfvar = TypeQualifier(cfvar);
+ if(cfunc!=null)
+ {
+ cfunc.setWorkingVar(cfvar);
+ }
+ if (jj_2_9(2147483647)) {
+ DeclarationSpecifiers(cfunc);
+ } else {
+ ;
+ }
+ break;
+ default:
+ jj_la1[2] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ }
+ }
+
+ static final public void StorageClassSpecifier(CFuncDeclaration cfunc) throws ParseException {
+ Token t;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case AUTO:
+ t = jj_consume_token(AUTO);
+ cSrc += t.image+" ";
+ break;
+ case REGISTER:
+ t = jj_consume_token(REGISTER);
+ cSrc += t.image+" ";
+ break;
+ case STATIC:
+ t = jj_consume_token(STATIC);
+ cSrc += t.image+" ";
+ break;
+ case EXTERN:
+ t = jj_consume_token(EXTERN);
+ cSrc += t.image+" ";
+ break;
+ case TYPEDEF:
+ t = jj_consume_token(TYPEDEF);
+ cSrc += t.image+" ";
+ typedefParsingStack.push(Boolean.TRUE);
+ break;
+ default:
+ jj_la1[3] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+
+ static final public CFuncVariable TypeSpecifier(CFuncVariable cfvar) throws ParseException {
+ String typeJava; Token t=null; boolean isVoid=false;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case UNSIGNED:
+ case DOUBLE:
+ case SIGNED:
+ case FLOAT:
+ case SHORT:
+ case LONG:
+ case VOID:
+ case CHAR:
+ case INT:
+ case GLvoid:
+ case GLbyte:
+ case GLshort:
+ case GLint:
+ case GLsizei:
+ case GLfloat:
+ case GLclampf:
+ case GLdouble:
+ case GLclampd:
+ case GLubyte:
+ case GLboolean:
+ case GLushort:
+ case GLuint:
+ case GLenum:
+ case GLbitfield:
+ case GLUquadricObj:
+ case GLUnurbsObj:
+ case GLUtesselator:
+ case GLUtriangulatorObj:
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case UNSIGNED:
+ case DOUBLE:
+ case SIGNED:
+ case FLOAT:
+ case SHORT:
+ case LONG:
+ case VOID:
+ case CHAR:
+ case INT:
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case VOID:
+ t = jj_consume_token(VOID);
+ typeJava=t.image;
+ isVoid=true;
+ cSrc += t.image+" ";
+ break;
+ case CHAR:
+ t = jj_consume_token(CHAR);
+ typeJava="byte";
+ cSrc += t.image+" ";
+ break;
+ case SHORT:
+ t = jj_consume_token(SHORT);
+ typeJava=t.image;
+ cSrc += t.image+" ";
+ break;
+ case INT:
+ t = jj_consume_token(INT);
+ typeJava=t.image;
+ cSrc += t.image+" ";
+ break;
+ case FLOAT:
+ t = jj_consume_token(FLOAT);
+ typeJava=t.image;
+ cSrc += t.image+" ";
+ break;
+ case DOUBLE:
+ t = jj_consume_token(DOUBLE);
+ typeJava=t.image;
+ cSrc += t.image+" ";
+ break;
+ case UNSIGNED:
+ t = jj_consume_token(UNSIGNED);
+ typeJava="int";
+ cSrc += t.image+" ";
+ break;
+ case SIGNED:
+ t = jj_consume_token(SIGNED);
+ typeJava="int";
+ cSrc += t.image+" ";
+ break;
+ case LONG:
+ t = jj_consume_token(LONG);
+ typeJava=t.image;
+ cSrc += t.image+" ";
+ break;
+ default:
+ jj_la1[4] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ if(cfvar==null)
+ cfvar = new CFuncVariable();
+
+ cfvar.typeC = t.image;
+ cfvar.typeJava = typeJava;
+ cfvar.isVoid = isVoid;
+
+ {if (true) return cfvar;}
+ break;
+ case GLvoid:
+ case GLbyte:
+ case GLshort:
+ case GLint:
+ case GLsizei:
+ case GLfloat:
+ case GLclampf:
+ case GLdouble:
+ case GLclampd:
+ case GLubyte:
+ case GLboolean:
+ case GLushort:
+ case GLuint:
+ case GLenum:
+ case GLbitfield:
+ case GLUquadricObj:
+ case GLUnurbsObj:
+ case GLUtesselator:
+ case GLUtriangulatorObj:
+ cfvar = TypeSpecifierGL(cfvar);
+ {if (true) return cfvar;}
+ break;
+ default:
+ jj_la1[5] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ break;
+ case STRUCT:
+ case UNION:
+ StructOrUnionSpecifier();
+ break;
+ case ENUM:
+ EnumSpecifier();
+ break;
+ default:
+ jj_la1[6] = jj_gen;
+ if (isType(getToken(1).image)) {
+ TypedefName();
+ } else {
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ {if (true) return null;}
+ throw new Error("Missing return statement in function");
+ }
+
+ static final public CFuncVariable TypeSpecifierGL(CFuncVariable cfvar) throws ParseException {
+ String typeJava; Token t=null; boolean isVoid=false;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case GLvoid:
+ t = jj_consume_token(GLvoid);
+ typeJava="void";
+ cSrc += t.image+" ";
+ isVoid=true;
+ break;
+ case GLbyte:
+ t = jj_consume_token(GLbyte);
+ typeJava="byte";
+ cSrc += t.image+" ";
+ break;
+ case GLshort:
+ t = jj_consume_token(GLshort);
+ typeJava="short";
+ cSrc += t.image+" ";
+ break;
+ case GLint:
+ t = jj_consume_token(GLint);
+ typeJava="int";
+ cSrc += t.image+" ";
+ break;
+ case GLsizei:
+ t = jj_consume_token(GLsizei);
+ typeJava="int";
+ cSrc += t.image+" ";
+ break;
+ case GLfloat:
+ t = jj_consume_token(GLfloat);
+ typeJava="float";
+ cSrc += t.image+" ";
+ break;
+ case GLclampf:
+ t = jj_consume_token(GLclampf);
+ typeJava="float";
+ cSrc += t.image+" ";
+ break;
+ case GLdouble:
+ t = jj_consume_token(GLdouble);
+ typeJava="double";
+ cSrc += t.image+" ";
+ break;
+ case GLclampd:
+ t = jj_consume_token(GLclampd);
+ typeJava="double";
+ cSrc += t.image+" ";
+ break;
+ case GLubyte:
+ t = jj_consume_token(GLubyte);
+ typeJava="byte";
+ cSrc += t.image+" ";
+ break;
+ case GLboolean:
+ t = jj_consume_token(GLboolean);
+ typeJava="boolean";
+ cSrc += t.image+" ";
+ break;
+ case GLushort:
+ t = jj_consume_token(GLushort);
+ typeJava="short";
+ cSrc += t.image+" ";
+ break;
+ case GLuint:
+ t = jj_consume_token(GLuint);
+ typeJava="int";
+ cSrc += t.image+" ";
+ break;
+ case GLenum:
+ t = jj_consume_token(GLenum);
+ typeJava="int";
+ cSrc += t.image+" ";
+ break;
+ case GLbitfield:
+ t = jj_consume_token(GLbitfield);
+ typeJava="int";
+ cSrc += t.image+" ";
+ break;
+ case GLUquadricObj:
+ t = jj_consume_token(GLUquadricObj);
+ typeJava="int";
+ cSrc += t.image+" ";
+ break;
+ case GLUnurbsObj:
+ t = jj_consume_token(GLUnurbsObj);
+ typeJava="int";
+ cSrc += t.image+" ";
+ break;
+ case GLUtesselator:
+ t = jj_consume_token(GLUtesselator);
+ typeJava="int";
+ cSrc += t.image+" ";
+ break;
+ case GLUtriangulatorObj:
+ t = jj_consume_token(GLUtriangulatorObj);
+ typeJava="int";
+ cSrc += t.image+" ";
+ break;
+ default:
+ jj_la1[7] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ if(cfvar==null)
+ cfvar = new CFuncVariable();
+ cfvar.typeC = t.image;
+ cfvar.typeJava = typeJava;
+ cfvar.isVoid = isVoid;
+
+ {if (true) return cfvar;}
+ throw new Error("Missing return statement in function");
+ }
+
+ static final public CFuncVariable TypeQualifier(CFuncVariable cfvar) throws ParseException {
+ Token t;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case CONST:
+ t = jj_consume_token(CONST);
+ cSrc += t.image+" ";
+ if(cfvar==null)
+ cfvar = new CFuncVariable();
+ cfvar.isConst=true;
+ {if (true) return cfvar;}
+ break;
+ case VOLATILE:
+ t = jj_consume_token(VOLATILE);
+ cSrc += t.image+" "; {if (true) return cfvar;}
+ break;
+ default:
+ jj_la1[8] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ throw new Error("Missing return statement in function");
+ }
+
+ static final public void StructOrUnionSpecifier() throws ParseException {
+ Token t;
+ typedefParsingStack.push(Boolean.FALSE);
+ StructOrUnion();
+ if (jj_2_11(3)) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IDENTIFIER:
+ t = jj_consume_token(IDENTIFIER);
+ cSrc += t.image+" ";
+ if(syntaxVerbose)
+ cSrc += "/*StrucOrUnionSpec*/";
+ break;
+ default:
+ jj_la1[9] = jj_gen;
+ ;
+ }
+ jj_consume_token(70);
+ cSrc += "{\n";
+ StructDeclarationList();
+ jj_consume_token(71);
+ cSrc += "}\n";
+ } else {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IDENTIFIER:
+ t = jj_consume_token(IDENTIFIER);
+ cSrc += t.image+" ";
+ if(syntaxVerbose)
+ cSrc += "/*StrucOrUnionSpec2*/";
+ break;
+ default:
+ jj_la1[10] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ typedefParsingStack.pop();
+ }
+
+ static final public void StructOrUnion() throws ParseException {
+ Token t;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case STRUCT:
+ t = jj_consume_token(STRUCT);
+ cSrc += t.image+" ";
+ break;
+ case UNION:
+ t = jj_consume_token(UNION);
+ cSrc += t.image+" ";
+ break;
+ default:
+ jj_la1[11] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+
+ static final public void StructDeclarationList() throws ParseException {
+ label_3:
+ while (true) {
+ StructDeclaration();
+ if (jj_2_12(1)) {
+ ;
+ } else {
+ break label_3;
+ }
+ }
+ }
+
+ static final public void InitDeclaratorList(CFuncDeclaration cfunc) throws ParseException {
+ InitDeclarator(cfunc);
+ label_4:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 72:
+ ;
+ break;
+ default:
+ jj_la1[12] = jj_gen;
+ break label_4;
+ }
+ jj_consume_token(72);
+ cSrc += ", ";
+ InitDeclarator(cfunc);
+ }
+ // Finished with a typedefDeclaration??
+ if(!(typedefParsingStack.empty()) && ((Boolean)typedefParsingStack.peek()).booleanValue()){
+ typedefParsingStack.pop();
+ }
+ }
+
+ static final public void InitDeclarator(CFuncDeclaration cfunc) throws ParseException {
+ Declarator(cfunc);
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 73:
+ jj_consume_token(73);
+ cSrc += "= ";
+ Initializer();
+ break;
+ default:
+ jj_la1[13] = jj_gen;
+ ;
+ }
+ }
+
+ static final public void StructDeclaration() throws ParseException {
+ SpecifierQualifierList(null);
+ StructDeclaratorList();
+ jj_consume_token(69);
+ cSrc += ";\n";
+ }
+
+ static final public CFuncVariable SpecifierQualifierList(CFuncVariable cfvar) throws ParseException {
+ if (jj_2_15(1)) {
+ cfvar = TypeSpecifier(cfvar);
+ if (jj_2_13(2147483647)) {
+ SpecifierQualifierList(cfvar);
+ } else {
+ ;
+ }
+ {if (true) return cfvar;}
+ } else {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case VOLATILE:
+ case CONST:
+ cfvar = TypeQualifier(cfvar);
+ if (jj_2_14(2147483647)) {
+ SpecifierQualifierList(cfvar);
+ } else {
+ ;
+ }
+ {if (true) return cfvar;}
+ break;
+ default:
+ jj_la1[14] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ throw new Error("Missing return statement in function");
+ }
+
+ static final public void StructDeclaratorList() throws ParseException {
+ StructDeclarator();
+ label_5:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 72:
+ ;
+ break;
+ default:
+ jj_la1[15] = jj_gen;
+ break label_5;
+ }
+ jj_consume_token(72);
+ cSrc += ", ";
+ StructDeclarator();
+ }
+ }
+
+ static final public void StructDeclarator() throws ParseException {
+ if (jj_2_16(3)) {
+ Declarator(null);
+ } else {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IDENTIFIER:
+ case 74:
+ case 75:
+ case 79:
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IDENTIFIER:
+ case 75:
+ case 79:
+ Declarator(null);
+ break;
+ default:
+ jj_la1[16] = jj_gen;
+ ;
+ }
+ jj_consume_token(74);
+ cSrc += ": ";
+ ConstantExpression();
+ break;
+ default:
+ jj_la1[17] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ }
+
+ static final public void EnumSpecifier() throws ParseException {
+ Token t;
+ t = jj_consume_token(ENUM);
+ cSrc += t.image+" ";
+ if (jj_2_17(3)) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IDENTIFIER:
+ t = jj_consume_token(IDENTIFIER);
+ cSrc += t.image+" ";
+ break;
+ default:
+ jj_la1[18] = jj_gen;
+ ;
+ }
+ jj_consume_token(70);
+ cSrc += "{\n";
+ EnumeratorList();
+ jj_consume_token(71);
+ cSrc += "}\n";
+ } else {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IDENTIFIER:
+ t = jj_consume_token(IDENTIFIER);
+ cSrc += t.image+" ";
+ break;
+ default:
+ jj_la1[19] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ }
+
+ static final public void EnumeratorList() throws ParseException {
+ lastEnumValue=0;
+ Enumerator();
+ label_6:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 72:
+ ;
+ break;
+ default:
+ jj_la1[20] = jj_gen;
+ break label_6;
+ }
+ jj_consume_token(72);
+ cSrc += ",\n";
+ Enumerator();
+ }
+ cSrc += "\n\t;\n";
+ }
+
+ static final public void Enumerator() throws ParseException {
+ Token t; int startIdx;
+ t = jj_consume_token(IDENTIFIER);
+ cSrc += "\t"+t.image+" "; startIdx=-1;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 73:
+ jj_consume_token(73);
+ cSrc += "= "; startIdx=cSrc.length();
+ ConstantExpression();
+ break;
+ default:
+ jj_la1[21] = jj_gen;
+ ;
+ }
+ System.out.print("\tpublic static final int "+t.image+"\t= ");
+ if(startIdx>=0)
+ {
+ String valStr = cSrc.substring(startIdx, cSrc.length()).trim();
+ System.out.print(valStr);
+ int val = 0;
+ try {
+ val=Integer.decode(valStr).intValue();
+ lastEnumValue=val;
+ } catch (Exception ex) {
+ System.err.println("Error while decoding for <"+
+ t.image+">: <"+valStr+">");
+ lastEnumValue++;
+ }
+ } else {
+ lastEnumValue++;
+ System.out.print(lastEnumValue);
+ }
+ System.out.println(";");
+ }
+
+ static final public void Declarator(CFuncDeclaration cfunc) throws ParseException {
+ CFuncVariable cfvar=null;
+ if(cfunc!=null)
+ cfvar = cfunc.getWorkingVar();
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 79:
+ Pointer(cfvar);
+ break;
+ default:
+ jj_la1[22] = jj_gen;
+ ;
+ }
+ DirectDeclarator(cfunc);
+ }
+
+ static final public void DirectDeclarator(CFuncDeclaration cfunc) throws ParseException {
+ Token t;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IDENTIFIER:
+ t = jj_consume_token(IDENTIFIER);
+ cSrc+=t.image+" ";
+
+ if(syntaxVerbose)
+ cSrc += "/*DirectDecl1*/ ";
+
+ if(!(typedefParsingStack.empty()) &&
+ ((Boolean)typedefParsingStack.peek()).booleanValue())
+ {
+ addType(t.image);
+ }
+
+ if(cfunc==null)
+ {if (true) return;}
+
+ //
+ // Complete the variable declarations in the holder !
+ //
+ CFuncVariable cfvar = cfunc.getWorkingVar();
+
+ cfvar.identifier=t.image;
+ cfvar.complete=true;
+ break;
+ case 75:
+ jj_consume_token(75);
+ cSrc += "( ";
+ if(syntaxVerbose)
+ cSrc += "/*DirectDecl2*/ ";
+ Declarator(cfunc);
+ jj_consume_token(76);
+ cSrc += ") ";
+ break;
+ default:
+ jj_la1[23] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ label_7:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 75:
+ case 77:
+ ;
+ break;
+ default:
+ jj_la1[24] = jj_gen;
+ break label_7;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 77:
+ jj_consume_token(77);
+ cSrc += "[ ";
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTEGER_LITERAL:
+ case FLOATING_POINT_LITERAL:
+ case CHARACTER_LITERAL:
+ case STRING_LITERAL:
+ case SIZEOF:
+ case IDENTIFIER:
+ case 75:
+ case 79:
+ case 96:
+ case 105:
+ case 106:
+ case 109:
+ case 110:
+ case 111:
+ case 112:
+ ConstantExpression();
+ break;
+ default:
+ jj_la1[25] = jj_gen;
+ ;
+ }
+ jj_consume_token(78);
+ cSrc += "] ";
+ if(cfunc!=null)
+ {
+ CFuncVariable cfvar = (CFuncVariable)
+ cfunc.argList.elementAt(cfunc.argList.size()-1);
+ cfvar.arrayNumber++;
+ }
+ break;
+ default:
+ jj_la1[26] = jj_gen;
+ if (jj_2_19(3)) {
+ jj_consume_token(75);
+ cSrc += "( ";
+ if(syntaxVerbose)
+ cSrc += "/*DirectDecl3*/ ";
+ if (jj_2_18(1)) {
+ ParameterTypeList(cfunc);
+ } else {
+ ;
+ }
+ jj_consume_token(76);
+ cSrc += ") ";
+ } else {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 75:
+ jj_consume_token(75);
+ cSrc += "( ";
+ if(syntaxVerbose)
+ cSrc += "/*DirectDecl4*/ ";
+ IdentifierList();
+ jj_consume_token(76);
+ cSrc += ") ";
+ break;
+ default:
+ jj_la1[27] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ }
+ }
+ }
+
+ static final public void Pointer(CFuncVariable cfvar) throws ParseException {
+ jj_consume_token(79);
+ cSrc += "* ";
+ if(cfvar!=null)
+ {
+ if(cfvar.typeC!=null)
+ {
+ /**
+ * No Pointer - These GLU Types are allready
+ * "long" values for java -> pointer
+ */
+ if(cfvar.typeC.equals("GLUquadricObj") ||
+ cfvar.typeC.equals("GLUnurbsObj") ||
+ cfvar.typeC.equals("GLUtesselator") ||
+ cfvar.typeC.equals("GLUtriangulatorObj")
+ )
+ {
+ cfvar.isGLUPtrObject=true;
+ {if (true) return;}
+ }
+ }
+ cfvar.arrayNumber++;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case VOLATILE:
+ case CONST:
+ TypeQualifierList(null);
+ break;
+ default:
+ jj_la1[28] = jj_gen;
+ ;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 79:
+ Pointer(cfvar);
+ break;
+ default:
+ jj_la1[29] = jj_gen;
+ ;
+ }
+ }
+
+ static final public void TypeQualifierList(CFuncVariable cfvar) throws ParseException {
+ label_8:
+ while (true) {
+ TypeQualifier(cfvar);
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case VOLATILE:
+ case CONST:
+ ;
+ break;
+ default:
+ jj_la1[30] = jj_gen;
+ break label_8;
+ }
+ }
+ }
+
+ static final public void ParameterTypeList(CFuncDeclaration cfunc) throws ParseException {
+ ParameterList(cfunc);
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 72:
+ jj_consume_token(72);
+ cSrc += ", ";
+ jj_consume_token(80);
+ cSrc += "...";
+ break;
+ default:
+ jj_la1[31] = jj_gen;
+ ;
+ }
+ }
+
+ static final public void ParameterList(CFuncDeclaration cfunc) throws ParseException {
+ ParameterDeclaration(cfunc);
+ label_9:
+ while (true) {
+ if (jj_2_20(2)) {
+ ;
+ } else {
+ break label_9;
+ }
+ jj_consume_token(72);
+ cSrc += ", ";
+ ParameterDeclaration(cfunc);
+ }
+ }
+
+ static final public void ParameterDeclaration(CFuncDeclaration cfunc) throws ParseException {
+ DeclarationSpecifiers(cfunc);
+ if (jj_2_21(2147483647)) {
+ Declarator(cfunc);
+ } else {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 75:
+ case 77:
+ case 79:
+ AbstractDeclarator();
+ break;
+ default:
+ jj_la1[32] = jj_gen;
+ ;
+ }
+ }
+ if(cfunc!=null)
+ {
+ CFuncVariable cfvar = cfunc.getLastIncompleteVar();
+ if(cfvar!=null)
+ {
+ /**
+ * We may must squash the "void" Argument
+ * E.g. void function(void) !
+ */
+ if(cfvar.isVoid)
+ {
+ cfunc.argList.removeElementAt(
+ cfunc.argList.size()-1);
+ {if (true) return;}
+ }
+ /**
+ * We have a regular argument,
+ * so we must add an instance name here ...
+ */
+ cfvar.identifier="arg"+(cfunc.argList.size()-1);
+ cfvar.complete=true;
+ }
+ }
+ }
+
+/**
+ *
+ * J2C Declaration Changes END (JAU)
+ *
+ */
+ static final public void IdentifierList() throws ParseException {
+ Token t;
+ t = jj_consume_token(IDENTIFIER);
+ cSrc += t.image+" ";
+ if(syntaxVerbose)
+ cSrc += "/*IdentifierList*/ ";
+ label_10:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 72:
+ ;
+ break;
+ default:
+ jj_la1[33] = jj_gen;
+ break label_10;
+ }
+ jj_consume_token(72);
+ cSrc += ", ";
+ t = jj_consume_token(IDENTIFIER);
+ cSrc += t.image+" ";
+ if(syntaxVerbose)
+ cSrc += "/*IdentifierList2*/ ";
+ }
+ }
+
+ static final public void Initializer() throws ParseException {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTEGER_LITERAL:
+ case FLOATING_POINT_LITERAL:
+ case CHARACTER_LITERAL:
+ case STRING_LITERAL:
+ case SIZEOF:
+ case IDENTIFIER:
+ case 75:
+ case 79:
+ case 96:
+ case 105:
+ case 106:
+ case 109:
+ case 110:
+ case 111:
+ case 112:
+ AssignmentExpression();
+ break;
+ case 70:
+ jj_consume_token(70);
+ cSrc += "{\n";
+ InitializerList();
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 72:
+ jj_consume_token(72);
+ cSrc += ", ";
+ break;
+ default:
+ jj_la1[34] = jj_gen;
+ ;
+ }
+ jj_consume_token(71);
+ cSrc += "}\n";
+ break;
+ default:
+ jj_la1[35] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+
+ static final public void InitializerList() throws ParseException {
+ Initializer();
+ label_11:
+ while (true) {
+ if (jj_2_22(2)) {
+ ;
+ } else {
+ break label_11;
+ }
+ jj_consume_token(72);
+ cSrc += ", ";
+ Initializer();
+ }
+ }
+
+ static final public void TypeName() throws ParseException {
+ SpecifierQualifierList(null);
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 75:
+ case 77:
+ case 79:
+ AbstractDeclarator();
+ break;
+ default:
+ jj_la1[36] = jj_gen;
+ ;
+ }
+ }
+
+ static final public void AbstractDeclarator() throws ParseException {
+ if (jj_2_23(3)) {
+ Pointer(null);
+ } else {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 75:
+ case 77:
+ case 79:
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 79:
+ Pointer(null);
+ break;
+ default:
+ jj_la1[37] = jj_gen;
+ ;
+ }
+ DirectAbstractDeclarator();
+ break;
+ default:
+ jj_la1[38] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ }
+
+ static final public void DirectAbstractDeclarator() throws ParseException {
+ if (jj_2_25(2)) {
+ jj_consume_token(75);
+ cSrc += "( ";
+ AbstractDeclarator();
+ jj_consume_token(76);
+ cSrc += ") ";
+ } else {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 77:
+ jj_consume_token(77);
+ cSrc += "[ ";
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTEGER_LITERAL:
+ case FLOATING_POINT_LITERAL:
+ case CHARACTER_LITERAL:
+ case STRING_LITERAL:
+ case SIZEOF:
+ case IDENTIFIER:
+ case 75:
+ case 79:
+ case 96:
+ case 105:
+ case 106:
+ case 109:
+ case 110:
+ case 111:
+ case 112:
+ ConstantExpression();
+ break;
+ default:
+ jj_la1[39] = jj_gen;
+ ;
+ }
+ jj_consume_token(78);
+ cSrc += "] ";
+ break;
+ case 75:
+ jj_consume_token(75);
+ cSrc += "( ";
+ if (jj_2_24(1)) {
+ ParameterTypeList(null);
+ } else {
+ ;
+ }
+ jj_consume_token(76);
+ cSrc += ") ";
+ break;
+ default:
+ jj_la1[40] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ label_12:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 75:
+ case 77:
+ ;
+ break;
+ default:
+ jj_la1[41] = jj_gen;
+ break label_12;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 77:
+ jj_consume_token(77);
+ cSrc += "[ ";
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTEGER_LITERAL:
+ case FLOATING_POINT_LITERAL:
+ case CHARACTER_LITERAL:
+ case STRING_LITERAL:
+ case SIZEOF:
+ case IDENTIFIER:
+ case 75:
+ case 79:
+ case 96:
+ case 105:
+ case 106:
+ case 109:
+ case 110:
+ case 111:
+ case 112:
+ ConstantExpression();
+ break;
+ default:
+ jj_la1[42] = jj_gen;
+ ;
+ }
+ jj_consume_token(78);
+ cSrc += "] ";
+ break;
+ case 75:
+ jj_consume_token(75);
+ cSrc += "( ";
+ if (jj_2_26(1)) {
+ ParameterTypeList(null);
+ } else {
+ ;
+ }
+ jj_consume_token(76);
+ cSrc += ") ";
+ break;
+ default:
+ jj_la1[43] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ }
+
+ static final public void TypedefName() throws ParseException {
+ Token t;
+ t = jj_consume_token(IDENTIFIER);
+ cSrc += t.image+" /*TypedefName*/";
+ }
+
+ static final public void Statement() throws ParseException {
+ if (jj_2_27(2)) {
+ LabeledStatement();
+ } else {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTEGER_LITERAL:
+ case FLOATING_POINT_LITERAL:
+ case CHARACTER_LITERAL:
+ case STRING_LITERAL:
+ case SIZEOF:
+ case IDENTIFIER:
+ case 69:
+ case 75:
+ case 79:
+ case 96:
+ case 105:
+ case 106:
+ case 109:
+ case 110:
+ case 111:
+ case 112:
+ ExpressionStatement();
+ break;
+ case 70:
+ CompoundStatement();
+ break;
+ case SWITCH:
+ case IF:
+ SelectionStatement();
+ break;
+ case WHILE:
+ case FOR:
+ case DO:
+ IterationStatement();
+ break;
+ case CONTINUE:
+ case RETURN:
+ case BREAK:
+ case GOTO:
+ JumpStatement();
+ break;
+ default:
+ jj_la1[44] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ }
+
+ static final public void LabeledStatement() throws ParseException {
+ Token t;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IDENTIFIER:
+ t = jj_consume_token(IDENTIFIER);
+ cSrc += t.image+" ";
+ if(syntaxVerbose)
+ cSrc += "/*LabeledStatement*/ ";
+ jj_consume_token(74);
+ cSrc += ": ";
+ Statement();
+ break;
+ case CASE:
+ t = jj_consume_token(CASE);
+ cSrc += t.image+" ";
+ ConstantExpression();
+ jj_consume_token(74);
+ cSrc += ": ";
+ Statement();
+ break;
+ case DFLT:
+ t = jj_consume_token(DFLT);
+ cSrc += t.image+" ";
+ jj_consume_token(74);
+ cSrc += ": ";
+ Statement();
+ break;
+ default:
+ jj_la1[45] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+
+ static final public void ExpressionStatement() throws ParseException {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTEGER_LITERAL:
+ case FLOATING_POINT_LITERAL:
+ case CHARACTER_LITERAL:
+ case STRING_LITERAL:
+ case SIZEOF:
+ case IDENTIFIER:
+ case 75:
+ case 79:
+ case 96:
+ case 105:
+ case 106:
+ case 109:
+ case 110:
+ case 111:
+ case 112:
+ Expression();
+ break;
+ default:
+ jj_la1[46] = jj_gen;
+ ;
+ }
+ jj_consume_token(69);
+ cSrc += ";\n";
+ }
+
+ static final public void CompoundStatement() throws ParseException {
+ jj_consume_token(70);
+ cSrc += "{\n";
+ if (jj_2_28(2147483647)) {
+ DeclarationList(null);
+ } else {
+ ;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTEGER_LITERAL:
+ case FLOATING_POINT_LITERAL:
+ case CHARACTER_LITERAL:
+ case STRING_LITERAL:
+ case CONTINUE:
+ case DFLT:
+ case SIZEOF:
+ case SWITCH:
+ case RETURN:
+ case WHILE:
+ case BREAK:
+ case CASE:
+ case GOTO:
+ case FOR:
+ case IF:
+ case DO:
+ case IDENTIFIER:
+ case 69:
+ case 70:
+ case 75:
+ case 79:
+ case 96:
+ case 105:
+ case 106:
+ case 109:
+ case 110:
+ case 111:
+ case 112:
+ StatementList();
+ break;
+ default:
+ jj_la1[47] = jj_gen;
+ ;
+ }
+ jj_consume_token(71);
+ cSrc += "}\n";
+ }
+
+ static final public void StatementList() throws ParseException {
+ label_13:
+ while (true) {
+ Statement();
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTEGER_LITERAL:
+ case FLOATING_POINT_LITERAL:
+ case CHARACTER_LITERAL:
+ case STRING_LITERAL:
+ case CONTINUE:
+ case DFLT:
+ case SIZEOF:
+ case SWITCH:
+ case RETURN:
+ case WHILE:
+ case BREAK:
+ case CASE:
+ case GOTO:
+ case FOR:
+ case IF:
+ case DO:
+ case IDENTIFIER:
+ case 69:
+ case 70:
+ case 75:
+ case 79:
+ case 96:
+ case 105:
+ case 106:
+ case 109:
+ case 110:
+ case 111:
+ case 112:
+ ;
+ break;
+ default:
+ jj_la1[48] = jj_gen;
+ break label_13;
+ }
+ }
+ }
+
+ static final public void SelectionStatement() throws ParseException {
+ Token t;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IF:
+ t = jj_consume_token(IF);
+ cSrc += t.image+" ";
+ jj_consume_token(75);
+ cSrc += "( ";
+ Expression();
+ jj_consume_token(76);
+ cSrc += ")\n";
+ Statement();
+ if (jj_2_29(2)) {
+ t = jj_consume_token(ELSE);
+ cSrc += t.image+" ";
+ Statement();
+ } else {
+ ;
+ }
+ break;
+ case SWITCH:
+ t = jj_consume_token(SWITCH);
+ cSrc += t.image+" ";
+ jj_consume_token(75);
+ cSrc += "( ";
+ Expression();
+ jj_consume_token(76);
+ cSrc += ")\n";
+ Statement();
+ break;
+ default:
+ jj_la1[49] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+
+ static final public void IterationStatement() throws ParseException {
+ Token t;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case WHILE:
+ t = jj_consume_token(WHILE);
+ cSrc += t.image+" ";
+ jj_consume_token(75);
+ cSrc += "( ";
+ Expression();
+ jj_consume_token(76);
+ cSrc += ")\n";
+ Statement();
+ break;
+ case DO:
+ t = jj_consume_token(DO);
+ cSrc += t.image+"\n";
+ Statement();
+ t = jj_consume_token(WHILE);
+ cSrc += t.image+" ";
+ jj_consume_token(75);
+ cSrc += "( ";
+ Expression();
+ jj_consume_token(76);
+ jj_consume_token(69);
+ cSrc += ");\n";
+ break;
+ case FOR:
+ t = jj_consume_token(FOR);
+ cSrc += t.image+" ";
+ jj_consume_token(75);
+ cSrc += "( ";
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTEGER_LITERAL:
+ case FLOATING_POINT_LITERAL:
+ case CHARACTER_LITERAL:
+ case STRING_LITERAL:
+ case SIZEOF:
+ case IDENTIFIER:
+ case 75:
+ case 79:
+ case 96:
+ case 105:
+ case 106:
+ case 109:
+ case 110:
+ case 111:
+ case 112:
+ Expression();
+ break;
+ default:
+ jj_la1[50] = jj_gen;
+ ;
+ }
+ jj_consume_token(69);
+ cSrc += "; ";
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTEGER_LITERAL:
+ case FLOATING_POINT_LITERAL:
+ case CHARACTER_LITERAL:
+ case STRING_LITERAL:
+ case SIZEOF:
+ case IDENTIFIER:
+ case 75:
+ case 79:
+ case 96:
+ case 105:
+ case 106:
+ case 109:
+ case 110:
+ case 111:
+ case 112:
+ Expression();
+ break;
+ default:
+ jj_la1[51] = jj_gen;
+ ;
+ }
+ jj_consume_token(69);
+ cSrc += "; ";
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTEGER_LITERAL:
+ case FLOATING_POINT_LITERAL:
+ case CHARACTER_LITERAL:
+ case STRING_LITERAL:
+ case SIZEOF:
+ case IDENTIFIER:
+ case 75:
+ case 79:
+ case 96:
+ case 105:
+ case 106:
+ case 109:
+ case 110:
+ case 111:
+ case 112:
+ Expression();
+ break;
+ default:
+ jj_la1[52] = jj_gen;
+ ;
+ }
+ jj_consume_token(76);
+ cSrc += ")\n";
+ Statement();
+ break;
+ default:
+ jj_la1[53] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+
+ static final public void JumpStatement() throws ParseException {
+ Token t;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case GOTO:
+ t = jj_consume_token(GOTO);
+ cSrc += t.image+" ";
+ t = jj_consume_token(IDENTIFIER);
+ cSrc += t.image+" ";
+ if(syntaxVerbose)
+ cSrc += "/*JumpStat*/ ";
+ jj_consume_token(69);
+ cSrc += ";\n";
+ break;
+ case CONTINUE:
+ t = jj_consume_token(CONTINUE);
+ cSrc += t.image+" ";
+ jj_consume_token(69);
+ cSrc += ";\n";
+ break;
+ case BREAK:
+ t = jj_consume_token(BREAK);
+ cSrc += t.image+" ";
+ jj_consume_token(69);
+ cSrc += ";\n";
+ break;
+ case RETURN:
+ t = jj_consume_token(RETURN);
+ cSrc += t.image+" ";
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTEGER_LITERAL:
+ case FLOATING_POINT_LITERAL:
+ case CHARACTER_LITERAL:
+ case STRING_LITERAL:
+ case SIZEOF:
+ case IDENTIFIER:
+ case 75:
+ case 79:
+ case 96:
+ case 105:
+ case 106:
+ case 109:
+ case 110:
+ case 111:
+ case 112:
+ Expression();
+ break;
+ default:
+ jj_la1[54] = jj_gen;
+ ;
+ }
+ jj_consume_token(69);
+ cSrc += ";\n";
+ break;
+ default:
+ jj_la1[55] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+
+ static final public void Expression() throws ParseException {
+ AssignmentExpression();
+ label_14:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 72:
+ ;
+ break;
+ default:
+ jj_la1[56] = jj_gen;
+ break label_14;
+ }
+ jj_consume_token(72);
+ cSrc += ", ";
+ AssignmentExpression();
+ }
+ }
+
+ static final public void AssignmentExpression() throws ParseException {
+ if (jj_2_30(2147483647)) {
+ UnaryExpression();
+ AssignmentOperator();
+ AssignmentExpression();
+ } else if (jj_2_31(3)) {
+ ConditionalExpression();
+ } else {
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+
+ static final public void AssignmentOperator() throws ParseException {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 73:
+ jj_consume_token(73);
+ cSrc += "= ";
+ break;
+ case 81:
+ jj_consume_token(81);
+ cSrc += "*= ";
+ break;
+ case 82:
+ jj_consume_token(82);
+ cSrc += "/= ";
+ break;
+ case 83:
+ jj_consume_token(83);
+ cSrc += "%= ";
+ break;
+ case 84:
+ jj_consume_token(84);
+ cSrc += "+= ";
+ break;
+ case 85:
+ jj_consume_token(85);
+ cSrc += "-= ";
+ break;
+ case 86:
+ jj_consume_token(86);
+ cSrc += "<<= ";
+ break;
+ case 87:
+ jj_consume_token(87);
+ cSrc += ">>= ";
+ break;
+ case 88:
+ jj_consume_token(88);
+ cSrc += "&= ";
+ break;
+ case 89:
+ jj_consume_token(89);
+ cSrc += "^= ";
+ break;
+ case 90:
+ jj_consume_token(90);
+ cSrc += "|= ";
+ break;
+ default:
+ jj_la1[57] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+
+ static final public void ConditionalExpression() throws ParseException {
+ LogicalORExpression();
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 91:
+ jj_consume_token(91);
+ cSrc += "? ";
+ Expression();
+ jj_consume_token(74);
+ cSrc += ": ";
+ ConditionalExpression();
+ break;
+ default:
+ jj_la1[58] = jj_gen;
+ ;
+ }
+ }
+
+ static final public void ConstantExpression() throws ParseException {
+ ConditionalExpression();
+ }
+
+ static final public void LogicalORExpression() throws ParseException {
+ LogicalANDExpression();
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 92:
+ jj_consume_token(92);
+ cSrc += "|| ";
+ LogicalORExpression();
+ break;
+ default:
+ jj_la1[59] = jj_gen;
+ ;
+ }
+ }
+
+ static final public void LogicalANDExpression() throws ParseException {
+ InclusiveORExpression();
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 93:
+ jj_consume_token(93);
+ cSrc += "&& ";
+ LogicalANDExpression();
+ break;
+ default:
+ jj_la1[60] = jj_gen;
+ ;
+ }
+ }
+
+ static final public void InclusiveORExpression() throws ParseException {
+ ExclusiveORExpression();
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 94:
+ jj_consume_token(94);
+ cSrc += "| ";
+ InclusiveORExpression();
+ break;
+ default:
+ jj_la1[61] = jj_gen;
+ ;
+ }
+ }
+
+ static final public void ExclusiveORExpression() throws ParseException {
+ ANDExpression();
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 95:
+ jj_consume_token(95);
+ cSrc += "^ ";
+ ExclusiveORExpression();
+ break;
+ default:
+ jj_la1[62] = jj_gen;
+ ;
+ }
+ }
+
+ static final public void ANDExpression() throws ParseException {
+ EqualityExpression();
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 96:
+ jj_consume_token(96);
+ cSrc += "& ";
+ ANDExpression();
+ break;
+ default:
+ jj_la1[63] = jj_gen;
+ ;
+ }
+ }
+
+ static final public void EqualityExpression() throws ParseException {
+ RelationalExpression();
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 97:
+ case 98:
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 97:
+ jj_consume_token(97);
+ cSrc += "== ";
+ break;
+ case 98:
+ jj_consume_token(98);
+ cSrc += "!= ";
+ break;
+ default:
+ jj_la1[64] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ EqualityExpression();
+ break;
+ default:
+ jj_la1[65] = jj_gen;
+ ;
+ }
+ }
+
+ static final public void RelationalExpression() throws ParseException {
+ ShiftExpression();
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 99:
+ case 100:
+ case 101:
+ case 102:
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 99:
+ jj_consume_token(99);
+ cSrc += "< ";
+ break;
+ case 100:
+ jj_consume_token(100);
+ cSrc += "> ";
+ break;
+ case 101:
+ jj_consume_token(101);
+ cSrc += "<= ";
+ break;
+ case 102:
+ jj_consume_token(102);
+ cSrc += ">= ";
+ break;
+ default:
+ jj_la1[66] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ RelationalExpression();
+ break;
+ default:
+ jj_la1[67] = jj_gen;
+ ;
+ }
+ }
+
+ static final public void ShiftExpression() throws ParseException {
+ AdditiveExpression();
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 103:
+ case 104:
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 103:
+ jj_consume_token(103);
+ cSrc += "<< ";
+ break;
+ case 104:
+ jj_consume_token(104);
+ cSrc += ">> ";
+ break;
+ default:
+ jj_la1[68] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ ShiftExpression();
+ break;
+ default:
+ jj_la1[69] = jj_gen;
+ ;
+ }
+ }
+
+ static final public void AdditiveExpression() throws ParseException {
+ MultiplicativeExpression();
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 105:
+ case 106:
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 105:
+ jj_consume_token(105);
+ cSrc += "+ ";
+ break;
+ case 106:
+ jj_consume_token(106);
+ cSrc += "- ";
+ break;
+ default:
+ jj_la1[70] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ AdditiveExpression();
+ break;
+ default:
+ jj_la1[71] = jj_gen;
+ ;
+ }
+ }
+
+ static final public void MultiplicativeExpression() throws ParseException {
+ CastExpression();
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 79:
+ case 107:
+ case 108:
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 79:
+ jj_consume_token(79);
+ cSrc += "* ";
+ break;
+ case 107:
+ jj_consume_token(107);
+ cSrc += "/ ";
+ break;
+ case 108:
+ jj_consume_token(108);
+ cSrc += "% ";
+ break;
+ default:
+ jj_la1[72] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ MultiplicativeExpression();
+ break;
+ default:
+ jj_la1[73] = jj_gen;
+ ;
+ }
+ }
+
+ static final public void CastExpression() throws ParseException {
+ String help1= new String();
+ String help2= new String();
+ if (jj_2_32(2147483647)) {
+ cSrc += "( "+help1+") "+help2;
+ jj_consume_token(75);
+ cSrc += "( ";
+ TypeName();
+ jj_consume_token(76);
+ cSrc += ") ";
+ CastExpression();
+ } else {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTEGER_LITERAL:
+ case FLOATING_POINT_LITERAL:
+ case CHARACTER_LITERAL:
+ case STRING_LITERAL:
+ case SIZEOF:
+ case IDENTIFIER:
+ case 75:
+ case 79:
+ case 96:
+ case 105:
+ case 106:
+ case 109:
+ case 110:
+ case 111:
+ case 112:
+ UnaryExpression();
+ break;
+ default:
+ jj_la1[74] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ }
+
+ static final public void UnaryExpression() throws ParseException {
+ Token t;
+ if (jj_2_34(3)) {
+ PostfixExpression();
+ } else {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 109:
+ jj_consume_token(109);
+ cSrc += "++ ";
+ UnaryExpression();
+ break;
+ case 110:
+ jj_consume_token(110);
+ cSrc += "-- ";
+ UnaryExpression();
+ break;
+ case 79:
+ case 96:
+ case 105:
+ case 106:
+ case 111:
+ case 112:
+ UnaryOperator();
+ CastExpression();
+ break;
+ case SIZEOF:
+ t = jj_consume_token(SIZEOF);
+ cSrc += t.image+" ";
+ if (jj_2_33(2147483647)) {
+ UnaryExpression();
+ } else {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 75:
+ jj_consume_token(75);
+ cSrc += "( ";
+ TypeName();
+ jj_consume_token(76);
+ cSrc += ") ";
+ break;
+ default:
+ jj_la1[75] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ break;
+ default:
+ jj_la1[76] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ }
+
+ static final public void UnaryOperator() throws ParseException {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 96:
+ jj_consume_token(96);
+ cSrc += "& ";
+ break;
+ case 79:
+ jj_consume_token(79);
+ cSrc += "* ";
+ break;
+ case 105:
+ jj_consume_token(105);
+ cSrc += "+ ";
+ break;
+ case 106:
+ jj_consume_token(106);
+ cSrc += "- ";
+ break;
+ case 111:
+ jj_consume_token(111);
+ cSrc += "~ ";
+ break;
+ case 112:
+ jj_consume_token(112);
+ cSrc += "! ";
+ break;
+ default:
+ jj_la1[77] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+
+ static final public void PostfixExpression() throws ParseException {
+ Token t;
+ PrimaryExpression();
+ label_15:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 75:
+ case 77:
+ case 109:
+ case 110:
+ case 113:
+ case 114:
+ ;
+ break;
+ default:
+ jj_la1[78] = jj_gen;
+ break label_15;
+ }
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 77:
+ jj_consume_token(77);
+ cSrc += "[ ";
+ Expression();
+ jj_consume_token(78);
+ cSrc += "] ";
+ break;
+ case 75:
+ jj_consume_token(75);
+ cSrc += "( ";
+ if (jj_2_35(2147483647)) {
+ ArgumentExpressionList();
+ } else {
+ ;
+ }
+ jj_consume_token(76);
+ cSrc += ") ";
+ break;
+ case 113:
+ jj_consume_token(113);
+ cSrc += ". ";
+ t = jj_consume_token(IDENTIFIER);
+ cSrc += t.image+" ";
+ break;
+ case 114:
+ jj_consume_token(114);
+ cSrc += "-> ";
+ t = jj_consume_token(IDENTIFIER);
+ cSrc += t.image+" ";
+ break;
+ case 109:
+ jj_consume_token(109);
+ cSrc += "++ ";
+ break;
+ case 110:
+ jj_consume_token(110);
+ cSrc += "-- ";
+ break;
+ default:
+ jj_la1[79] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+ }
+
+ static final public void PrimaryExpression() throws ParseException {
+ Token t;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case IDENTIFIER:
+ t = jj_consume_token(IDENTIFIER);
+ cSrc += t.image+" ";
+ if(syntaxVerbose)
+ cSrc += "/*PrimaryExpr*/ ";
+ break;
+ case INTEGER_LITERAL:
+ case FLOATING_POINT_LITERAL:
+ case CHARACTER_LITERAL:
+ case STRING_LITERAL:
+ Constant();
+ break;
+ case 75:
+ jj_consume_token(75);
+ cSrc += "( ";
+ Expression();
+ jj_consume_token(76);
+ cSrc += ") ";
+ break;
+ default:
+ jj_la1[80] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+
+ static final public void ArgumentExpressionList() throws ParseException {
+ AssignmentExpression();
+ label_16:
+ while (true) {
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case 72:
+ ;
+ break;
+ default:
+ jj_la1[81] = jj_gen;
+ break label_16;
+ }
+ jj_consume_token(72);
+ cSrc += ", ";
+ AssignmentExpression();
+ }
+ }
+
+ static final public void Constant() throws ParseException {
+ Token t;
+ switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
+ case INTEGER_LITERAL:
+ t = jj_consume_token(INTEGER_LITERAL);
+ cSrc += t.image+" ";
+ break;
+ case FLOATING_POINT_LITERAL:
+ t = jj_consume_token(FLOATING_POINT_LITERAL);
+ cSrc += t.image+" ";
+ break;
+ case CHARACTER_LITERAL:
+ t = jj_consume_token(CHARACTER_LITERAL);
+ cSrc += t.image+" ";
+ break;
+ case STRING_LITERAL:
+ t = jj_consume_token(STRING_LITERAL);
+ cSrc += t.image+" ";
+ break;
+ default:
+ jj_la1[82] = jj_gen;
+ jj_consume_token(-1);
+ throw new ParseException();
+ }
+ }
+
+ static final private boolean jj_2_1(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_1();
+ jj_save(0, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_2(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_2();
+ jj_save(1, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_3(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_3();
+ jj_save(2, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_4(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_4();
+ jj_save(3, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_5(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_5();
+ jj_save(4, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_6(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_6();
+ jj_save(5, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_7(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_7();
+ jj_save(6, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_8(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_8();
+ jj_save(7, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_9(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_9();
+ jj_save(8, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_10(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_10();
+ jj_save(9, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_11(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_11();
+ jj_save(10, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_12(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_12();
+ jj_save(11, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_13(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_13();
+ jj_save(12, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_14(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_14();
+ jj_save(13, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_15(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_15();
+ jj_save(14, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_16(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_16();
+ jj_save(15, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_17(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_17();
+ jj_save(16, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_18(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_18();
+ jj_save(17, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_19(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_19();
+ jj_save(18, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_20(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_20();
+ jj_save(19, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_21(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_21();
+ jj_save(20, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_22(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_22();
+ jj_save(21, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_23(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_23();
+ jj_save(22, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_24(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_24();
+ jj_save(23, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_25(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_25();
+ jj_save(24, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_26(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_26();
+ jj_save(25, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_27(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_27();
+ jj_save(26, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_28(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_28();
+ jj_save(27, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_29(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_29();
+ jj_save(28, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_30(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_30();
+ jj_save(29, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_31(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_31();
+ jj_save(30, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_32(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_32();
+ jj_save(31, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_33(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_33();
+ jj_save(32, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_34(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_34();
+ jj_save(33, xla);
+ return retval;
+ }
+
+ static final private boolean jj_2_35(int xla) {
+ jj_la = xla; jj_lastpos = jj_scanpos = token;
+ boolean retval = !jj_3_35();
+ jj_save(34, xla);
+ return retval;
+ }
+
+ static final private boolean jj_3R_163() {
+ if (jj_3R_212()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_257()) { jj_scanpos = xsp; break; }
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ }
+ return false;
+ }
+
+ static final private boolean jj_3R_190() {
+ if (jj_scan_token(73)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_32()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_31() {
+ if (jj_3R_39()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_141() {
+ if (jj_3R_37()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_38()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_96()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_96() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_141()) {
+ jj_scanpos = xsp;
+ if (jj_3_31()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_44() {
+ if (jj_3R_18()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_55() {
+ if (jj_3R_103()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_112()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_249() {
+ if (jj_3R_131()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_248() {
+ if (jj_3R_131()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_17() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_44()) {
+ jj_scanpos = xsp;
+ if (jj_3_3()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_247() {
+ if (jj_3R_131()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_26() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3_15()) {
+ jj_scanpos = xsp;
+ if (jj_3R_55()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_15() {
+ if (jj_3R_22()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_111()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_131() {
+ if (jj_3R_96()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_223()) { jj_scanpos = xsp; break; }
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ }
+ return false;
+ }
+
+ static final private boolean jj_3R_250() {
+ if (jj_3R_131()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_178() {
+ if (jj_scan_token(RETURN)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_250()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(69)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_1() {
+ if (jj_3R_17()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_29() {
+ if (jj_scan_token(ELSE)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_36()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_177() {
+ if (jj_scan_token(BREAK)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(69)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_176() {
+ if (jj_scan_token(CONTINUE)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(69)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_25() {
+ if (jj_3R_26()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_163()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(69)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_150() {
+ if (jj_3R_27()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_190()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_175() {
+ if (jj_scan_token(GOTO)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(IDENTIFIER)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(69)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_125() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_175()) {
+ jj_scanpos = xsp;
+ if (jj_3R_176()) {
+ jj_scanpos = xsp;
+ if (jj_3R_177()) {
+ jj_scanpos = xsp;
+ if (jj_3R_178()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_151() {
+ if (jj_scan_token(72)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_150()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_28() {
+ if (jj_3R_21()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_174() {
+ if (jj_scan_token(FOR)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(75)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_247()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(69)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ xsp = jj_scanpos;
+ if (jj_3R_248()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(69)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ xsp = jj_scanpos;
+ if (jj_3R_249()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(76)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_36()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_105() {
+ if (jj_3R_150()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_151()) { jj_scanpos = xsp; break; }
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ }
+ return false;
+ }
+
+ static final private boolean jj_3R_173() {
+ if (jj_scan_token(DO)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_36()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(WHILE)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(75)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_131()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(76)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(69)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_12() {
+ if (jj_3R_25()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_24() {
+ Token xsp;
+ if (jj_3_12()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3_12()) { jj_scanpos = xsp; break; }
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ }
+ return false;
+ }
+
+ static final private boolean jj_3R_172() {
+ if (jj_scan_token(WHILE)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(75)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_131()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(76)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_36()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_211() {
+ if (jj_scan_token(UNION)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_210() {
+ if (jj_scan_token(STRUCT)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_98() {
+ if (jj_3R_21()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_124() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_172()) {
+ jj_scanpos = xsp;
+ if (jj_3R_173()) {
+ jj_scanpos = xsp;
+ if (jj_3R_174()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_162() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_210()) {
+ jj_scanpos = xsp;
+ if (jj_3R_211()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_171() {
+ if (jj_scan_token(SWITCH)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(75)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_131()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(76)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_36()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_11() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_23()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(70)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_24()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(71)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_170() {
+ if (jj_scan_token(IF)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(75)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_131()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(76)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_36()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3_29()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_123() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_170()) {
+ jj_scanpos = xsp;
+ if (jj_3R_171()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_224() {
+ if (jj_scan_token(IDENTIFIER)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_189() {
+ if (jj_3R_36()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_142() {
+ Token xsp;
+ if (jj_3R_189()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_189()) { jj_scanpos = xsp; break; }
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ }
+ return false;
+ }
+
+ static final private boolean jj_3R_99() {
+ if (jj_3R_142()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_23() {
+ if (jj_scan_token(IDENTIFIER)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_46() {
+ if (jj_scan_token(70)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_98()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ xsp = jj_scanpos;
+ if (jj_3R_99()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(71)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_169() {
+ if (jj_3R_131()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_122() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_169()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(69)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_108() {
+ if (jj_3R_162()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3_11()) {
+ jj_scanpos = xsp;
+ if (jj_3R_224()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_68() {
+ if (jj_scan_token(DFLT)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(74)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_36()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_149() {
+ if (jj_scan_token(VOLATILE)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_67() {
+ if (jj_scan_token(CASE)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_121()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(74)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_36()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_26() {
+ if (jj_3R_30()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_242() {
+ if (jj_3R_121()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_148() {
+ if (jj_scan_token(CONST)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_66() {
+ if (jj_scan_token(IDENTIFIER)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(74)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_36()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_103() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_148()) {
+ jj_scanpos = xsp;
+ if (jj_3R_149()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_35() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_66()) {
+ jj_scanpos = xsp;
+ if (jj_3R_67()) {
+ jj_scanpos = xsp;
+ if (jj_3R_68()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_24() {
+ if (jj_3R_30()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_73() {
+ if (jj_3R_125()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_235() {
+ if (jj_3R_121()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_72() {
+ if (jj_3R_124()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_71() {
+ if (jj_3R_123()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_70() {
+ if (jj_3R_46()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_69() {
+ if (jj_3R_122()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_27() {
+ if (jj_3R_35()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_36() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3_27()) {
+ jj_scanpos = xsp;
+ if (jj_3R_69()) {
+ jj_scanpos = xsp;
+ if (jj_3R_70()) {
+ jj_scanpos = xsp;
+ if (jj_3R_71()) {
+ jj_scanpos = xsp;
+ if (jj_3R_72()) {
+ jj_scanpos = xsp;
+ if (jj_3R_73()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_91() {
+ if (jj_3R_34()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_110() {
+ if (jj_scan_token(IDENTIFIER)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_237() {
+ if (jj_scan_token(75)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3_26()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(76)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_209() {
+ if (jj_scan_token(GLUtriangulatorObj)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_236() {
+ if (jj_scan_token(77)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_242()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(78)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_231() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_236()) {
+ jj_scanpos = xsp;
+ if (jj_3R_237()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_208() {
+ if (jj_scan_token(GLUtesselator)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_168() {
+ if (jj_scan_token(75)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3_24()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(76)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_207() {
+ if (jj_scan_token(GLUnurbsObj)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_167() {
+ if (jj_scan_token(77)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_235()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(78)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_206() {
+ if (jj_scan_token(GLUquadricObj)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_25() {
+ if (jj_scan_token(75)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_34()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(76)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_120() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3_25()) {
+ jj_scanpos = xsp;
+ if (jj_3R_167()) {
+ jj_scanpos = xsp;
+ if (jj_3R_168()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_231()) { jj_scanpos = xsp; break; }
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ }
+ return false;
+ }
+
+ static final private boolean jj_3_22() {
+ if (jj_scan_token(72)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_32()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_205() {
+ if (jj_scan_token(GLbitfield)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_119() {
+ if (jj_3R_33()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_65() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_119()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_120()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_23() {
+ if (jj_3R_33()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_204() {
+ if (jj_scan_token(GLenum)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_34() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3_23()) {
+ jj_scanpos = xsp;
+ if (jj_3R_65()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_203() {
+ if (jj_scan_token(GLuint)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_40() {
+ if (jj_3R_26()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_91()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_202() {
+ if (jj_scan_token(GLushort)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_238() {
+ if (jj_3R_32()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3_22()) { jj_scanpos = xsp; break; }
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ }
+ return false;
+ }
+
+ static final private boolean jj_3R_239() {
+ if (jj_scan_token(72)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_201() {
+ if (jj_scan_token(GLboolean)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_62() {
+ if (jj_scan_token(70)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_238()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_239()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(71)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_61() {
+ if (jj_3R_96()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_200() {
+ if (jj_scan_token(GLubyte)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_32() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_61()) {
+ jj_scanpos = xsp;
+ if (jj_3R_62()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_199() {
+ if (jj_scan_token(GLclampd)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_198() {
+ if (jj_scan_token(GLdouble)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_228() {
+ if (jj_scan_token(72)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(IDENTIFIER)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_197() {
+ if (jj_scan_token(GLclampf)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_214() {
+ if (jj_scan_token(IDENTIFIER)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_228()) { jj_scanpos = xsp; break; }
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ }
+ return false;
+ }
+
+ static final private boolean jj_3R_196() {
+ if (jj_scan_token(GLfloat)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_195() {
+ if (jj_scan_token(GLsizei)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_194() {
+ if (jj_scan_token(GLint)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_193() {
+ if (jj_scan_token(GLshort)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_192() {
+ if (jj_scan_token(GLbyte)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_20() {
+ if (jj_scan_token(72)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_31()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_191() {
+ if (jj_scan_token(GLvoid)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_161() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_191()) {
+ jj_scanpos = xsp;
+ if (jj_3R_192()) {
+ jj_scanpos = xsp;
+ if (jj_3R_193()) {
+ jj_scanpos = xsp;
+ if (jj_3R_194()) {
+ jj_scanpos = xsp;
+ if (jj_3R_195()) {
+ jj_scanpos = xsp;
+ if (jj_3R_196()) {
+ jj_scanpos = xsp;
+ if (jj_3R_197()) {
+ jj_scanpos = xsp;
+ if (jj_3R_198()) {
+ jj_scanpos = xsp;
+ if (jj_3R_199()) {
+ jj_scanpos = xsp;
+ if (jj_3R_200()) {
+ jj_scanpos = xsp;
+ if (jj_3R_201()) {
+ jj_scanpos = xsp;
+ if (jj_3R_202()) {
+ jj_scanpos = xsp;
+ if (jj_3R_203()) {
+ jj_scanpos = xsp;
+ if (jj_3R_204()) {
+ jj_scanpos = xsp;
+ if (jj_3R_205()) {
+ jj_scanpos = xsp;
+ if (jj_3R_206()) {
+ jj_scanpos = xsp;
+ if (jj_3R_207()) {
+ jj_scanpos = xsp;
+ if (jj_3R_208()) {
+ jj_scanpos = xsp;
+ if (jj_3R_209()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_21() {
+ if (jj_3R_27()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_107() {
+ if (jj_3R_161()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_54() {
+ if (jj_3R_110()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_53() {
+ if (jj_3R_109()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_52() {
+ if (jj_3R_108()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_64() {
+ if (jj_3R_33()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_227() {
+ if (jj_3R_34()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_215() {
+ if (jj_3R_27()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_216() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_227()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_31() {
+ if (jj_3R_20()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_215()) {
+ jj_scanpos = xsp;
+ if (jj_3R_216()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_160() {
+ if (jj_scan_token(LONG)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_60() {
+ if (jj_3R_31()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3_20()) { jj_scanpos = xsp; break; }
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ }
+ return false;
+ }
+
+ static final private boolean jj_3R_159() {
+ if (jj_scan_token(SIGNED)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_117() {
+ if (jj_scan_token(72)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(80)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_158() {
+ if (jj_scan_token(UNSIGNED)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_30() {
+ if (jj_3R_60()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_117()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_157() {
+ if (jj_scan_token(DOUBLE)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_166() {
+ if (jj_3R_103()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_118() {
+ Token xsp;
+ if (jj_3R_166()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_166()) { jj_scanpos = xsp; break; }
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ }
+ return false;
+ }
+
+ static final private boolean jj_3R_156() {
+ if (jj_scan_token(FLOAT)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_63() {
+ if (jj_3R_118()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_155() {
+ if (jj_scan_token(INT)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_154() {
+ if (jj_scan_token(SHORT)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_222() {
+ if (jj_scan_token(STRING_LITERAL)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_97() {
+ if (jj_scan_token(72)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_96()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_221() {
+ if (jj_scan_token(CHARACTER_LITERAL)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_220() {
+ if (jj_scan_token(FLOATING_POINT_LITERAL)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_153() {
+ if (jj_scan_token(CHAR)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_219() {
+ if (jj_scan_token(INTEGER_LITERAL)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_187() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_219()) {
+ jj_scanpos = xsp;
+ if (jj_3R_220()) {
+ jj_scanpos = xsp;
+ if (jj_3R_221()) {
+ jj_scanpos = xsp;
+ if (jj_3R_222()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_43() {
+ if (jj_3R_96()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_97()) { jj_scanpos = xsp; break; }
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ }
+ return false;
+ }
+
+ static final private boolean jj_3R_152() {
+ if (jj_scan_token(VOID)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_134() {
+ if (jj_scan_token(75)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_131()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(76)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_133() {
+ if (jj_3R_187()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_106() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_152()) {
+ jj_scanpos = xsp;
+ if (jj_3R_153()) {
+ jj_scanpos = xsp;
+ if (jj_3R_154()) {
+ jj_scanpos = xsp;
+ if (jj_3R_155()) {
+ jj_scanpos = xsp;
+ if (jj_3R_156()) {
+ jj_scanpos = xsp;
+ if (jj_3R_157()) {
+ jj_scanpos = xsp;
+ if (jj_3R_158()) {
+ jj_scanpos = xsp;
+ if (jj_3R_159()) {
+ jj_scanpos = xsp;
+ if (jj_3R_160()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_132() {
+ if (jj_scan_token(IDENTIFIER)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_35() {
+ if (jj_3R_43()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_51() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_106()) {
+ jj_scanpos = xsp;
+ if (jj_3R_107()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_94() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_132()) {
+ jj_scanpos = xsp;
+ if (jj_3R_133()) {
+ jj_scanpos = xsp;
+ if (jj_3R_134()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_33() {
+ if (jj_scan_token(79)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_63()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ xsp = jj_scanpos;
+ if (jj_3R_64()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_22() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_51()) {
+ jj_scanpos = xsp;
+ if (jj_3R_52()) {
+ jj_scanpos = xsp;
+ if (jj_3R_53()) {
+ jj_scanpos = xsp;
+ lookingAhead = true;
+ jj_semLA = isType(getToken(1).image);
+ lookingAhead = false;
+ if (!jj_semLA || jj_3R_54()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_140() {
+ if (jj_scan_token(110)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_188() {
+ if (jj_3R_43()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_139() {
+ if (jj_scan_token(109)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_9() {
+ if (jj_3R_20()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_147() {
+ if (jj_scan_token(TYPEDEF)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_138() {
+ if (jj_scan_token(114)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(IDENTIFIER)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_146() {
+ if (jj_scan_token(EXTERN)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_137() {
+ if (jj_scan_token(113)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(IDENTIFIER)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_135() {
+ if (jj_scan_token(77)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_131()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(78)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_95() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_135()) {
+ jj_scanpos = xsp;
+ if (jj_3R_136()) {
+ jj_scanpos = xsp;
+ if (jj_3R_137()) {
+ jj_scanpos = xsp;
+ if (jj_3R_138()) {
+ jj_scanpos = xsp;
+ if (jj_3R_139()) {
+ jj_scanpos = xsp;
+ if (jj_3R_140()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_165() {
+ if (jj_scan_token(75)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_214()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(76)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_145() {
+ if (jj_scan_token(STATIC)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_144() {
+ if (jj_scan_token(REGISTER)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_143() {
+ if (jj_scan_token(AUTO)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_136() {
+ if (jj_scan_token(75)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_188()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(76)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_33() {
+ if (jj_3R_37()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_100() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_143()) {
+ jj_scanpos = xsp;
+ if (jj_3R_144()) {
+ jj_scanpos = xsp;
+ if (jj_3R_145()) {
+ jj_scanpos = xsp;
+ if (jj_3R_146()) {
+ jj_scanpos = xsp;
+ if (jj_3R_147()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_18() {
+ if (jj_3R_30()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_42() {
+ if (jj_3R_94()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_95()) { jj_scanpos = xsp; break; }
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ }
+ return false;
+ }
+
+ static final private boolean jj_3R_184() {
+ if (jj_scan_token(112)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_8() {
+ if (jj_3R_20()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_183() {
+ if (jj_scan_token(111)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_104() {
+ if (jj_3R_20()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_182() {
+ if (jj_scan_token(106)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_181() {
+ if (jj_scan_token(105)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_180() {
+ if (jj_scan_token(79)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_179() {
+ if (jj_scan_token(96)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_127() {
+ if (jj_3R_37()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_126() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_179()) {
+ jj_scanpos = xsp;
+ if (jj_3R_180()) {
+ jj_scanpos = xsp;
+ if (jj_3R_181()) {
+ jj_scanpos = xsp;
+ if (jj_3R_182()) {
+ jj_scanpos = xsp;
+ if (jj_3R_183()) {
+ jj_scanpos = xsp;
+ if (jj_3R_184()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_19() {
+ if (jj_scan_token(75)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3_18()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(76)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_7() {
+ if (jj_3R_20()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_128() {
+ if (jj_scan_token(75)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_40()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(76)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_48() {
+ if (jj_3R_103()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_104()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_102() {
+ if (jj_3R_20()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_50() {
+ if (jj_3R_105()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_77() {
+ if (jj_scan_token(SIZEOF)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_127()) {
+ jj_scanpos = xsp;
+ if (jj_3R_128()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_264() {
+ if (jj_scan_token(106)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_76() {
+ if (jj_3R_126()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_41()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_32() {
+ if (jj_scan_token(75)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_40()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(76)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_41()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_75() {
+ if (jj_scan_token(110)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_37()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_74() {
+ if (jj_scan_token(109)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_37()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_34() {
+ if (jj_3R_42()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_261() {
+ if (jj_scan_token(104)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_213() {
+ if (jj_3R_121()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_101() {
+ if (jj_3R_20()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_37() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3_34()) {
+ jj_scanpos = xsp;
+ if (jj_3R_74()) {
+ jj_scanpos = xsp;
+ if (jj_3R_75()) {
+ jj_scanpos = xsp;
+ if (jj_3R_76()) {
+ jj_scanpos = xsp;
+ if (jj_3R_77()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_10() {
+ if (jj_3R_22()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_102()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_164() {
+ if (jj_scan_token(77)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_213()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(78)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_115() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_164()) {
+ jj_scanpos = xsp;
+ if (jj_3_19()) {
+ jj_scanpos = xsp;
+ if (jj_3R_165()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_6() {
+ if (jj_3R_19()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_93() {
+ if (jj_3R_37()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_47() {
+ if (jj_3R_100()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_101()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_20() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_47()) {
+ jj_scanpos = xsp;
+ if (jj_3_10()) {
+ jj_scanpos = xsp;
+ if (jj_3R_48()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_92() {
+ if (jj_scan_token(75)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_40()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(76)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_41()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_41() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_92()) {
+ jj_scanpos = xsp;
+ if (jj_3R_93()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_267() {
+ if (jj_scan_token(108)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_266() {
+ if (jj_scan_token(107)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_114() {
+ if (jj_scan_token(75)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_27()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(76)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_265() {
+ if (jj_scan_token(79)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_49() {
+ if (jj_3R_19()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_5() {
+ if (jj_3R_21()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_262() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_265()) {
+ jj_scanpos = xsp;
+ if (jj_3R_266()) {
+ jj_scanpos = xsp;
+ if (jj_3R_267()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_258()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_246() {
+ if (jj_scan_token(98)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_21() {
+ Token xsp;
+ if (jj_3R_49()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_49()) { jj_scanpos = xsp; break; }
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ }
+ return false;
+ }
+
+ static final private boolean jj_3R_263() {
+ if (jj_scan_token(105)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_258() {
+ if (jj_3R_41()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_262()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_259() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_263()) {
+ jj_scanpos = xsp;
+ if (jj_3R_264()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_251()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_4() {
+ if (jj_3R_20()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_260() {
+ if (jj_scan_token(103)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_19() {
+ if (jj_3R_20()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_50()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(69)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_251() {
+ if (jj_3R_258()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_259()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_252() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_260()) {
+ jj_scanpos = xsp;
+ if (jj_3R_261()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_243()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_256() {
+ if (jj_scan_token(102)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_255() {
+ if (jj_scan_token(101)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_243() {
+ if (jj_3R_251()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_252()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_254() {
+ if (jj_scan_token(100)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_253() {
+ if (jj_scan_token(99)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_45() {
+ if (jj_3R_20()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_244() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_253()) {
+ jj_scanpos = xsp;
+ if (jj_3R_254()) {
+ jj_scanpos = xsp;
+ if (jj_3R_255()) {
+ jj_scanpos = xsp;
+ if (jj_3R_256()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_240()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_18() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_45()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_27()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ xsp = jj_scanpos;
+ if (jj_3_5()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_46()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_113() {
+ if (jj_scan_token(IDENTIFIER)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_245() {
+ if (jj_scan_token(97)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_240() {
+ if (jj_3R_243()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_244()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_57() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_113()) {
+ jj_scanpos = xsp;
+ if (jj_3R_114()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_115()) { jj_scanpos = xsp; break; }
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ }
+ return false;
+ }
+
+ static final private boolean jj_3R_241() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_245()) {
+ jj_scanpos = xsp;
+ if (jj_3R_246()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_233()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_56() {
+ if (jj_3R_33()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_233() {
+ if (jj_3R_240()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_241()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_234() {
+ if (jj_scan_token(96)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_229()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_27() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_56()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_57()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_229() {
+ if (jj_3R_233()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_234()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_230() {
+ if (jj_scan_token(95)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_217()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_17() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_28()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(70)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_29()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(71)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_217() {
+ if (jj_3R_229()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_230()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_218() {
+ if (jj_scan_token(94)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_185()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_232() {
+ if (jj_3R_27()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_185() {
+ if (jj_3R_217()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_218()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_186() {
+ if (jj_scan_token(93)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_129()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_226() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_232()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(74)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_121()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_59() {
+ if (jj_scan_token(72)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_58()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_129() {
+ if (jj_3R_185()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_186()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_130() {
+ if (jj_scan_token(92)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_89()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_14() {
+ if (jj_3R_26()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_116() {
+ if (jj_scan_token(73)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_121()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_13() {
+ if (jj_3R_26()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_58() {
+ if (jj_scan_token(IDENTIFIER)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_116()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_89() {
+ if (jj_3R_129()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_130()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_3() {
+ if (jj_3R_19()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_112() {
+ if (jj_3R_26()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_121() {
+ if (jj_3R_39()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_29() {
+ if (jj_3R_58()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ while (true) {
+ xsp = jj_scanpos;
+ if (jj_3R_59()) { jj_scanpos = xsp; break; }
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ }
+ return false;
+ }
+
+ static final private boolean jj_3R_90() {
+ if (jj_scan_token(91)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_131()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_scan_token(74)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_39()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_257() {
+ if (jj_scan_token(72)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_212()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_111() {
+ if (jj_3R_26()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_225() {
+ if (jj_scan_token(IDENTIFIER)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_28() {
+ if (jj_scan_token(IDENTIFIER)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_39() {
+ if (jj_3R_89()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_90()) jj_scanpos = xsp;
+ else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_223() {
+ if (jj_scan_token(72)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_96()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_88() {
+ if (jj_scan_token(90)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_87() {
+ if (jj_scan_token(89)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_109() {
+ if (jj_scan_token(ENUM)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3_17()) {
+ jj_scanpos = xsp;
+ if (jj_3R_225()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_86() {
+ if (jj_scan_token(88)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_85() {
+ if (jj_scan_token(87)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_84() {
+ if (jj_scan_token(86)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_83() {
+ if (jj_scan_token(85)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_30() {
+ if (jj_3R_37()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ if (jj_3R_38()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_82() {
+ if (jj_scan_token(84)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_16() {
+ if (jj_3R_27()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_81() {
+ if (jj_scan_token(83)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3_2() {
+ if (jj_3R_18()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_80() {
+ if (jj_scan_token(82)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_212() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3_16()) {
+ jj_scanpos = xsp;
+ if (jj_3R_226()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_79() {
+ if (jj_scan_token(81)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_78() {
+ if (jj_scan_token(73)) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static final private boolean jj_3R_38() {
+ Token xsp;
+ xsp = jj_scanpos;
+ if (jj_3R_78()) {
+ jj_scanpos = xsp;
+ if (jj_3R_79()) {
+ jj_scanpos = xsp;
+ if (jj_3R_80()) {
+ jj_scanpos = xsp;
+ if (jj_3R_81()) {
+ jj_scanpos = xsp;
+ if (jj_3R_82()) {
+ jj_scanpos = xsp;
+ if (jj_3R_83()) {
+ jj_scanpos = xsp;
+ if (jj_3R_84()) {
+ jj_scanpos = xsp;
+ if (jj_3R_85()) {
+ jj_scanpos = xsp;
+ if (jj_3R_86()) {
+ jj_scanpos = xsp;
+ if (jj_3R_87()) {
+ jj_scanpos = xsp;
+ if (jj_3R_88()) return true;
+ if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
+ return false;
+ }
+
+ static private boolean jj_initialized_once = false;
+ static public C2JTokenManager token_source;
+ static ASCII_CharStream jj_input_stream;
+ static public Token token, jj_nt;
+ static private int jj_ntk;
+ static private Token jj_scanpos, jj_lastpos;
+ static private int jj_la;
+ static public boolean lookingAhead = false;
+ static private boolean jj_semLA;
+ static private int jj_gen;
+ static final private int[] jj_la1 = new int[83];
+ static final private int[] jj_la1_0 = {0x0,0xa0a0000,0x10000,0xa0a0000,0x10240000,0x10240000,0x94240000,0x0,0x10000,0x0,0x0,0x84000000,0x0,0x0,0x10000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x406880,0x0,0x0,0x10000,0x0,0x10000,0x0,0x0,0x0,0x0,0x406880,0x0,0x0,0x0,0x406880,0x0,0x0,0x406880,0x0,0x61c0e880,0x100000,0x406880,0x61d0e880,0x61d0e880,0x800000,0x406880,0x406880,0x406880,0x20000000,0x406880,0x41008000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x406880,0x0,0x400000,0x0,0x0,0x0,0x6880,0x0,0x6880,};
+ static final private int[] jj_la1_1 = {0x0,0x80,0x1,0x80,0x1326,0xffff9326,0xffff9366,0xffff8000,0x1,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x1,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x6c00,0x10,0x0,0x6c10,0x6c10,0x2000,0x0,0x0,0x0,0x4800,0x0,0x400,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,};
+ static final private int[] jj_la1_2 = {0x8804,0x0,0x0,0x0,0x0,0x3,0x3,0x3,0x0,0x4,0x4,0x0,0x100,0x200,0x0,0x100,0x8804,0x8c04,0x4,0x4,0x100,0x200,0x8000,0x804,0x2800,0x8804,0x2000,0x800,0x0,0x8000,0x0,0x100,0xa800,0x100,0x100,0x8844,0xa800,0x8000,0xa800,0x8804,0x2800,0x2800,0x8804,0x2800,0x8864,0x4,0x8804,0x8864,0x8864,0x0,0x8804,0x8804,0x8804,0x0,0x8804,0x0,0x100,0x7fe0200,0x8000000,0x10000000,0x20000000,0x40000000,0x80000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x8000,0x8000,0x8804,0x800,0x8000,0x8000,0x2800,0x2800,0x804,0x100,0x0,};
+ static final private int[] jj_la1_3 = {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1e601,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1e601,0x0,0x0,0x0,0x1e601,0x0,0x0,0x1e601,0x0,0x1e601,0x0,0x1e601,0x1e601,0x1e601,0x0,0x1e601,0x1e601,0x1e601,0x0,0x1e601,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x6,0x6,0x78,0x78,0x180,0x180,0x600,0x600,0x1800,0x1800,0x1e601,0x0,0x1e601,0x18601,0x66000,0x66000,0x0,0x0,0x0,};
+ static final private JJCalls[] jj_2_rtns = new JJCalls[35];
+ static private boolean jj_rescan = false;
+ static private int jj_gc = 0;
+
+ public C2J(java.io.InputStream stream) {
+ if (jj_initialized_once) {
+ System.out.println("ERROR: Second call to constructor of static parser. You must");
+ System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
+ System.out.println(" during parser generation.");
+ throw new Error();
+ }
+ jj_initialized_once = true;
+ jj_input_stream = new ASCII_CharStream(stream, 1, 1);
+ token_source = new C2JTokenManager(jj_input_stream);
+ token = new Token();
+ jj_ntk = -1;
+ jj_gen = 0;
+ for (int i = 0; i < 83; i++) jj_la1[i] = -1;
+ for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
+ }
+
+ static public void ReInit(java.io.InputStream stream) {
+ jj_input_stream.ReInit(stream, 1, 1);
+ token_source.ReInit(jj_input_stream);
+ token = new Token();
+ jj_ntk = -1;
+ jj_gen = 0;
+ for (int i = 0; i < 83; i++) jj_la1[i] = -1;
+ for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
+ }
+
+ public C2J(java.io.Reader stream) {
+ if (jj_initialized_once) {
+ System.out.println("ERROR: Second call to constructor of static parser. You must");
+ System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
+ System.out.println(" during parser generation.");
+ throw new Error();
+ }
+ jj_initialized_once = true;
+ jj_input_stream = new ASCII_CharStream(stream, 1, 1);
+ token_source = new C2JTokenManager(jj_input_stream);
+ token = new Token();
+ jj_ntk = -1;
+ jj_gen = 0;
+ for (int i = 0; i < 83; i++) jj_la1[i] = -1;
+ for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
+ }
+
+ static public void ReInit(java.io.Reader stream) {
+ jj_input_stream.ReInit(stream, 1, 1);
+ token_source.ReInit(jj_input_stream);
+ token = new Token();
+ jj_ntk = -1;
+ jj_gen = 0;
+ for (int i = 0; i < 83; i++) jj_la1[i] = -1;
+ for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
+ }
+
+ public C2J(C2JTokenManager tm) {
+ if (jj_initialized_once) {
+ System.out.println("ERROR: Second call to constructor of static parser. You must");
+ System.out.println(" either use ReInit() or set the JavaCC option STATIC to false");
+ System.out.println(" during parser generation.");
+ throw new Error();
+ }
+ jj_initialized_once = true;
+ token_source = tm;
+ token = new Token();
+ jj_ntk = -1;
+ jj_gen = 0;
+ for (int i = 0; i < 83; i++) jj_la1[i] = -1;
+ for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
+ }
+
+ public void ReInit(C2JTokenManager tm) {
+ token_source = tm;
+ token = new Token();
+ jj_ntk = -1;
+ jj_gen = 0;
+ for (int i = 0; i < 83; i++) jj_la1[i] = -1;
+ for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
+ }
+
+ static final private Token jj_consume_token(int kind) throws ParseException {
+ Token oldToken;
+ if ((oldToken = token).next != null) token = token.next;
+ else token = token.next = token_source.getNextToken();
+ jj_ntk = -1;
+ if (token.kind == kind) {
+ jj_gen++;
+ if (++jj_gc > 100) {
+ jj_gc = 0;
+ for (int i = 0; i < jj_2_rtns.length; i++) {
+ JJCalls c = jj_2_rtns[i];
+ while (c != null) {
+ if (c.gen < jj_gen) c.first = null;
+ c = c.next;
+ }
+ }
+ }
+ return token;
+ }
+ token = oldToken;
+ jj_kind = kind;
+ throw generateParseException();
+ }
+
+ static final private boolean jj_scan_token(int kind) {
+ if (jj_scanpos == jj_lastpos) {
+ jj_la--;
+ if (jj_scanpos.next == null) {
+ jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();
+ } else {
+ jj_lastpos = jj_scanpos = jj_scanpos.next;
+ }
+ } else {
+ jj_scanpos = jj_scanpos.next;
+ }
+ if (jj_rescan) {
+ int i = 0; Token tok = token;
+ while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }
+ if (tok != null) jj_add_error_token(kind, i);
+ }
+ return (jj_scanpos.kind != kind);
+ }
+
+ static final public Token getNextToken() {
+ if (token.next != null) token = token.next;
+ else token = token.next = token_source.getNextToken();
+ jj_ntk = -1;
+ jj_gen++;
+ return token;
+ }
+
+ static final public Token getToken(int index) {
+ Token t = lookingAhead ? jj_scanpos : token;
+ for (int i = 0; i < index; i++) {
+ if (t.next != null) t = t.next;
+ else t = t.next = token_source.getNextToken();
+ }
+ return t;
+ }
+
+ static final private int jj_ntk() {
+ if ((jj_nt=token.next) == null)
+ return (jj_ntk = (token.next=token_source.getNextToken()).kind);
+ else
+ return (jj_ntk = jj_nt.kind);
+ }
+
+ static private java.util.Vector jj_expentries = new java.util.Vector();
+ static private int[] jj_expentry;
+ static private int jj_kind = -1;
+ static private int[] jj_lasttokens = new int[100];
+ static private int jj_endpos;
+
+ static private void jj_add_error_token(int kind, int pos) {
+ if (pos >= 100) return;
+ if (pos == jj_endpos + 1) {
+ jj_lasttokens[jj_endpos++] = kind;
+ } else if (jj_endpos != 0) {
+ jj_expentry = new int[jj_endpos];
+ for (int i = 0; i < jj_endpos; i++) {
+ jj_expentry[i] = jj_lasttokens[i];
+ }
+ boolean exists = false;
+ for (java.util.Enumeration enum = jj_expentries.elements(); enum.hasMoreElements();) {
+ int[] oldentry = (int[])(enum.nextElement());
+ if (oldentry.length == jj_expentry.length) {
+ exists = true;
+ for (int i = 0; i < jj_expentry.length; i++) {
+ if (oldentry[i] != jj_expentry[i]) {
+ exists = false;
+ break;
+ }
+ }
+ if (exists) break;
+ }
+ }
+ if (!exists) jj_expentries.addElement(jj_expentry);
+ if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;
+ }
+ }
+
+ static final public ParseException generateParseException() {
+ jj_expentries.removeAllElements();
+ boolean[] la1tokens = new boolean[115];
+ for (int i = 0; i < 115; i++) {
+ la1tokens[i] = false;
+ }
+ if (jj_kind >= 0) {
+ la1tokens[jj_kind] = true;
+ jj_kind = -1;
+ }
+ for (int i = 0; i < 83; i++) {
+ if (jj_la1[i] == jj_gen) {
+ for (int j = 0; j < 32; j++) {
+ if ((jj_la1_0[i] & (1<<j)) != 0) {
+ la1tokens[j] = true;
+ }
+ if ((jj_la1_1[i] & (1<<j)) != 0) {
+ la1tokens[32+j] = true;
+ }
+ if ((jj_la1_2[i] & (1<<j)) != 0) {
+ la1tokens[64+j] = true;
+ }
+ if ((jj_la1_3[i] & (1<<j)) != 0) {
+ la1tokens[96+j] = true;
+ }
+ }
+ }
+ }
+ for (int i = 0; i < 115; i++) {
+ if (la1tokens[i]) {
+ jj_expentry = new int[1];
+ jj_expentry[0] = i;
+ jj_expentries.addElement(jj_expentry);
+ }
+ }
+ jj_endpos = 0;
+ jj_rescan_token();
+ jj_add_error_token(0, 0);
+ int[][] exptokseq = new int[jj_expentries.size()][];
+ for (int i = 0; i < jj_expentries.size(); i++) {
+ exptokseq[i] = (int[])jj_expentries.elementAt(i);
+ }
+ return new ParseException(token, exptokseq, tokenImage);
+ }
+
+ static final public void enable_tracing() {
+ }
+
+ static final public void disable_tracing() {
+ }
+
+ static final private void jj_rescan_token() {
+ jj_rescan = true;
+ for (int i = 0; i < 35; i++) {
+ JJCalls p = jj_2_rtns[i];
+ do {
+ if (p.gen > jj_gen) {
+ jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;
+ switch (i) {
+ case 0: jj_3_1(); break;
+ case 1: jj_3_2(); break;
+ case 2: jj_3_3(); break;
+ case 3: jj_3_4(); break;
+ case 4: jj_3_5(); break;
+ case 5: jj_3_6(); break;
+ case 6: jj_3_7(); break;
+ case 7: jj_3_8(); break;
+ case 8: jj_3_9(); break;
+ case 9: jj_3_10(); break;
+ case 10: jj_3_11(); break;
+ case 11: jj_3_12(); break;
+ case 12: jj_3_13(); break;
+ case 13: jj_3_14(); break;
+ case 14: jj_3_15(); break;
+ case 15: jj_3_16(); break;
+ case 16: jj_3_17(); break;
+ case 17: jj_3_18(); break;
+ case 18: jj_3_19(); break;
+ case 19: jj_3_20(); break;
+ case 20: jj_3_21(); break;
+ case 21: jj_3_22(); break;
+ case 22: jj_3_23(); break;
+ case 23: jj_3_24(); break;
+ case 24: jj_3_25(); break;
+ case 25: jj_3_26(); break;
+ case 26: jj_3_27(); break;
+ case 27: jj_3_28(); break;
+ case 28: jj_3_29(); break;
+ case 29: jj_3_30(); break;
+ case 30: jj_3_31(); break;
+ case 31: jj_3_32(); break;
+ case 32: jj_3_33(); break;
+ case 33: jj_3_34(); break;
+ case 34: jj_3_35(); break;
+ }
+ }
+ p = p.next;
+ } while (p != null);
+ }
+ jj_rescan = false;
+ }
+
+ static final private void jj_save(int index, int xla) {
+ JJCalls p = jj_2_rtns[index];
+ while (p.gen > jj_gen) {
+ if (p.next == null) { p = p.next = new JJCalls(); break; }
+ p = p.next;
+ }
+ p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;
+ }
+
+ static final class JJCalls {
+ int gen;
+ Token first;
+ int arg;
+ JJCalls next;
+ }
+
+ }
diff --git a/C2J/C2J.jj b/C2J/C2J.jj
new file mode 100644
index 0000000..4376c97
--- /dev/null
+++ b/C2J/C2J.jj
@@ -0,0 +1,1305 @@
+/*
+
+ This C2J parser is able to convert
+ C-Declarations to
+ - Java's JNI functions declaration
+ - The JNI C-Glue functions for native methods
+ with the same name !!
+ - Special support for OpenGL/GLU declarations,
+ because C2J is developed to develop GL4Java
+ - an OpenGL language mapping to Java !!!
+
+ LGPL Licensed - copyright by Sven Goethel,
+ 1999 Jausoft - Sven Goethel Software Development
+
+ C2J based upon:
+ ===============
+
+ C grammar defintion for use with JavaCC
+ Contributed by Doug South ([email protected]) 21/3/97
+
+ This parser assumes that the C source file has been preprocessed : all
+ #includes have been included and all macros have been expanded. I accomplish
+ this with "gcc -P -E <source file> > <output file>".
+
+ There is a problem with compiler specific types, such as __signed, __const,
+ __inline__, etc. These types can be added as typedef types before the parser
+ is run on a file. See main() for an example. I have also found a strange little
+ compiler specific "type" if you can call it that. It is __attribute__, but it
+ does not seem to be used as a type. I found that just deleting the __attribute__
+ and the following "offensive" code works.
+
+ This grammar also prints out all the types defined while parsing the file. This
+ is done via a call to printTypes() when the parser is complete. If you do not want
+ this, just comment out the printTypes() method call in the production rule
+ TranslationUnit(), which BTW is the root node for parsing a C source file.
+
+ I have not in anyway extensively tested this grammar, in fact it is barely tested,
+ but I imagine it is better to have a starting point for a C grammar other than from
+ scratch. It has not been optimized in anyway, my main aim was to get a parser that
+ works. Lookahead may not be optimum at choice points and may even be insufficient at
+ times. I choose to err on the side of not optimum if I made a choice at all.
+
+ If you use this grammar, I would appreciate hearing from you. I will try to maintain
+ this grammar to the best of my ability, but at this point in time, this is only a side
+ hobby (unless someone wants to pay me for doing JavaCC work!). In that regards, I am
+ interested in hearing bugs and comments.
+
+ TODO:
+
+ Insert the appropiate code to enable C source trees from this grammar.
+
+ */
+
+PARSER_BEGIN(C2J)
+
+import java.util.*;
+
+ public class C2J{
+
+ public static final String version = "C2J Parser Version 1.4 Beta" ;
+ public static final String vendor = "Jausoft - Sven Goethel Software Development";
+
+ public static final int EXPORT_JNI_JAVA = 1;
+ public static final int EXPORT_JNI_JAVA_FINAL = 2;
+ public static final int EXPORT_MSJDIRECT_JAVA = 3;
+ public static final int EXPORT_JNI_C = 4; // strong binding
+ public static final int EXPORT_JNI_C_DYN = 5; // dyn. binding
+ public static final int EXPORT_GL_FUNC_NAMES = 10;
+
+ public static final int MODIFIER_JNI_CRITICAL_ARRAY = 1;
+ public static final int MODIFIER_JNI_COPY_CHECK = 2; // experimental trial ..
+
+ public static int exportMode;
+ public static int exportModifier;
+ public static boolean verbose=false ;
+ public static boolean syntaxVerbose=false ;
+ public static boolean echoMode=false ;
+ public static String clazzName;
+ public static String dllname;
+
+ public static int lastEnumValue=0;
+
+ //
+ // Holder of the parsed c-code
+ //
+ public static String cSrc;
+
+ // Hastable for storing typedef types
+ private static Hashtable types = new Hashtable();
+
+ // Stack for determining when the parser
+ // is parsing a typdef definition.
+ private static Stack typedefParsingStack = new Stack();
+
+ // Returns true if the given string is
+ // a typedef type.
+ private static boolean isType(String type){
+
+ if(types.get(type) != null){
+ return true;
+ }
+ return false;
+ }
+
+ // Add a typedef type to those already defined
+ private static void addType(String type){
+ types.put(type, Boolean.TRUE);
+ cSrc += "\n\t/* WARNING TYPE ADDED : "+type+" */\n";
+ }
+
+ // Prints out all the types used in parsing the c source
+ private static void printTypes(){
+
+ Enumeration enum = types.keys();
+
+ while(enum.hasMoreElements()){
+ System.out.println(enum.nextElement());
+ }
+ }
+
+ public static void printUsage()
+ {
+ System.out.println("Usage is one of:");
+ System.out.println(" java C2J [-v] [-s] [-echo] [jnic|jnijava|jnijavaf|msjava|echo] <ClassName> < inputfile");
+ System.out.println("OR");
+ System.out.println(" java C2J [-v] [-s] [-echo] [-jnic-criticalarray] [-jnic-trial] [jnic|jnic-dyn|jnijava|msjava <dllname>|glfnames] <ClassName> inputfile");
+ System.out.println(" , inputfile is a C-HeaderFile (Preprocessed).");
+ System.out.println(" , where <ClassName> must be full qualified with an underscore instead of an dot - if not in (any) Java-Mode.");
+ System.out.println(" , where -v means verbose");
+ System.out.println(" , where -s means including the syntax-states in Output commentary");
+ System.out.println(" , where -echo means including the parsed C-Code in Output commentary");
+ System.out.println(" , where -jnic-criticalarray includes experimental JNI-C Code");
+ System.out.println(" , where -jnic-trial includes experimental JNI-C Code");
+ System.out.println(" , where jnic produces JNI-C Code (strong binding)");
+ System.out.println(" , where jnic-dyn produces JNI-C Code (dynamic binding)");
+ System.out.println(" , where jnijava produces JNI-Java Code (non final)");
+ System.out.println(" , where jnijavaf produces JNI-Java Code (final)");
+ System.out.println(" , where msjava <dllname> produces MSJVM-Java Code for the DLL <dllname>");
+ System.out.println(" , where glfnames produces all GL function names");
+ System.out.println(" , where echo just prints the parsed C-Code\n");
+ System.out.println(" E.g.");
+ System.out.println(" java C2J jnic myPackage_myClass a.h > a.c");
+ System.out.println(" java C2J jnijava myPackage_myClass a.h > a.java");
+ System.out.println(" java C2J jnijavaf myPackage_myClass a.h > aFinalMethods.java");
+ System.out.println(" java C2J msjava OPENGL32 myPackage_myClass a.h > aMSVersion.java");
+ System.out.println(" java C2J -echo myPackage_myClass a.h > aCopy.h");
+ System.out.println(" ( ALL OpenGL GL<type>'s are mapped to JNI types )");
+ }
+
+ // Run the parser
+ public static void main ( String args [ ] )
+ {
+ C2J parser ;
+
+ // Hack to include type "special types"
+ /*
+ types.put("__signed__", Boolean.TRUE);
+ types.put("__const", Boolean.TRUE);
+ types.put("__inline__", Boolean.TRUE);
+ types.put("__signed", Boolean.TRUE);
+ */
+
+ int i;
+ String inputFile = null;
+
+ exportMode = -1; /* error */
+ exportModifier = 0;
+ verbose=false;
+ echoMode=false;
+
+ if(args.length==0)
+ {
+ printUsage();
+ return;
+ }
+
+ for(i=0; i<args.length ; i++)
+ {
+ if(exportMode<=0)
+ {
+ if( args[i].equals("-v") )
+ verbose=true;
+ if( args[i].equals("-s") )
+ syntaxVerbose=true;
+ else if( args[i].equals("-echo") )
+ {
+ echoMode = true;
+ }
+ else if( args[i].equals("-jnic-criticalarray") )
+ {
+ exportModifier |= MODIFIER_JNI_CRITICAL_ARRAY ;
+ }
+ else if( args[i].equals("-jnic-trial") )
+ {
+ exportModifier |= MODIFIER_JNI_COPY_CHECK ;
+ }
+ else if( args[i].equals("jnic") )
+ {
+ exportMode = EXPORT_JNI_C;
+ }
+ else if( args[i].equals("jnic-dyn") )
+ {
+ exportMode = EXPORT_JNI_C_DYN;
+ }
+ else if( args[i].equals("jnijava") )
+ {
+ exportMode = EXPORT_JNI_JAVA;
+ }
+ else if( args[i].equals("jnijavaf") )
+ {
+ exportMode = EXPORT_JNI_JAVA_FINAL;
+ }
+ else if( args[i].equals("glfnames") )
+ {
+ exportMode = EXPORT_GL_FUNC_NAMES;
+ }
+ else if( args[i].equals("msjava") && i+1<args.length )
+ {
+ exportMode = EXPORT_MSJDIRECT_JAVA;
+ i++;
+ dllname = args[i];
+ }
+ } else if (clazzName==null) {
+ clazzName = args[i];
+ } else if(inputFile==null) {
+ inputFile = args[i];
+ } else
+ exportMode=0;
+ }
+
+ String info = new String();
+
+ if(inputFile==null)
+ {
+ info += "/**\n * "+version+"\n * "+vendor+"\n * Reading from standard input . . .";
+ info += "\n * Destination-Class: "+clazzName+ " ! \n */\n";
+ } else {
+ info += "/**\n * "+version+"\n * "+vendor+"\n * Reading from file: "+inputFile+" . . .";
+ info += "\n * Destination-Class: "+clazzName+ " ! \n */\n";
+ }
+ System.err.println(info);
+ System.out.println(info);
+
+ if(inputFile==null)
+ {
+ parser = new C2J(System.in);
+ }
+ else {
+ try {
+ parser = new C2J(new java.io.FileInputStream(inputFile));
+ }
+ catch(java.io.FileNotFoundException e){
+ System.out.println("/* File " + inputFile + " not found. */");
+ return ;
+ }
+ }
+
+ try {
+
+ cSrc = new String();
+
+ parser.TranslationUnit();
+ System.out.println("/* "+version+": Java program parsed successfully. */ ");
+ }
+ catch(ParseException e){
+ System.out.println("/* "+version+": Encountered errors during parse. */ ");
+ System.out.println("/* ");
+ System.out.println(e);
+ System.out.println(" */");
+ }
+ }
+ }
+
+PARSER_END(C2J)
+
+SKIP : {
+ " "
+| "\t"
+| "\n"
+| "\r"
+| <"//" (~["\n","\r"])* ("\n" | "\r" | "\r\n")>
+| <"/*" (~["*"])* "*" ("*" | ~["*","/"] (~["*"])* "*")* "/">
+}
+
+TOKEN : {
+ <INTEGER_LITERAL: <DECIMAL_LITERAL> (["l","L"])? | <HEX_LITERAL> (["l","L"])? | <OCTAL_LITERAL> (["l","L"])?>
+| <#DECIMAL_LITERAL: ["1"-"9"] (["0"-"9"])*>
+| <#HEX_LITERAL: "0" ["x","X"] (["0"-"9","a"-"f","A"-"F"])+>
+| <#OCTAL_LITERAL: "0" (["0"-"7"])*>
+| <FLOATING_POINT_LITERAL: (["0"-"9"])+ "." (["0"-"9"])* (<EXPONENT>)? (["f","F","d","D"])? | "." (["0"-"9"])+ (<EXPONENT>)? (["f","F","d","D"])? | (["0"-"9"])+ <EXPONENT> (["f","F","d","D"])? | (["0"-"9"])+ (<EXPONENT>)? ["f","F","d","D"]>
+| <#EXPONENT: ["e","E"] (["+","-"])? (["0"-"9"])+>
+| <CHARACTER_LITERAL: "\'" (~["\'","\\","\n","\r"] | "\\" (["n","t","b","r","f","\\","\'","\""] | ["0"-"7"] (["0"-"7"])? | ["0"-"3"] ["0"-"7"] ["0"-"7"])) "\'">
+| <STRING_LITERAL: "\"" (~["\"","\\","\n","\r"] | "\\" (["n","t","b","r","f","\\","\'","\""] | ["0"-"7"] (["0"-"7"])? | ["0"-"3"] ["0"-"7"] ["0"-"7"]))* "\"">
+}
+
+TOKEN : {
+ <CONTINUE: "continue"> |
+ <VOLATILE: "volatile"> |
+ <REGISTER: "register"> |
+ <UNSIGNED: "unsigned"> |
+ <TYPEDEF: "typedef"> |
+ <DFLT: "default"> |
+ <DOUBLE: "double"> |
+ <SIZEOF: "sizeof"> |
+ <SWITCH: "switch"> |
+ <RETURN: "return"> |
+ <EXTERN: "extern"> |
+ <STRUCT: "struct"> |
+ <STATIC: "static"> |
+ <SIGNED: "signed"> |
+ <WHILE: "while"> |
+ <BREAK: "break"> |
+ <UNION: "union"> |
+ <CONST: "const"> |
+ <FLOAT: "float"> |
+ <SHORT: "short"> |
+ <ELSE: "else"> |
+ <CASE: "case"> |
+ <LONG: "long"> |
+ <ENUM: "enum"> |
+ <AUTO: "auto"> |
+ <VOID: "void"> |
+ <CHAR: "char"> |
+ <GOTO: "goto"> |
+ <FOR: "for"> |
+ <INT: "int"> |
+ <IF: "if"> |
+ <DO: "do"> |
+ <GLvoid: "GLvoid"> |
+ <GLbyte: "GLbyte"> |
+ <GLshort: "GLshort"> |
+ <GLint: "GLint"> |
+ <GLsizei: "GLsizei"> |
+ <GLfloat: "GLfloat"> |
+ <GLclampf: "GLclampf"> |
+ <GLdouble: "GLdouble"> |
+ <GLclampd: "GLclampd"> |
+ <GLubyte: "GLubyte"> |
+ <GLboolean: "GLboolean"> |
+ <GLushort: "GLushort"> |
+ <GLuint: "GLuint"> |
+ <GLenum: "GLenum"> |
+ <GLbitfield: "GLbitfield"> |
+ <GLUquadricObj: "GLUquadricObj"> |
+ <GLUnurbsObj: "GLUnurbsObj"> |
+ <GLUtesselator: "GLUtesselator"> |
+ <GLUtriangulatorObj: "GLUtriangulatorObj">
+}
+
+TOKEN : {
+ <IDENTIFIER: <LETTER> (<LETTER> | <DIGIT>)*>
+| <#LETTER: ["$","A"-"Z","_","a"-"z"]>
+| <#DIGIT: ["0"-"9"]>
+}
+
+void TranslationUnit() : {}
+{
+ (ExternalDeclaration())+
+ { /* printTypes(); */ }
+}
+
+void ExternalDeclaration() :
+{ CFuncDeclaration cfunc = null; }
+{
+ ( LOOKAHEAD( FunctionDefinition() )
+ cfunc = FunctionDefinition() | cfunc = Declaration(null)
+ )
+ {
+ if(echoMode)
+ {
+ System.out.println("/**");
+ System.out.println(" * Original Function-Prototype :");
+ System.out.println(" * <pre> ");
+ System.out.print (" ");
+ System.out.print(cSrc);
+ System.out.println(" * </pre> ");
+ System.out.println(" */");
+ cSrc=new String();
+ }
+ if(verbose)
+ {
+ String tmp = new String();
+
+ tmp += "/*\n";
+
+ if(cfunc!=null)
+ tmp += cfunc.toString();
+ else
+ tmp += "NO CFUNC INSTANCE";
+
+ tmp += "\n*/";
+
+ System.out.println(tmp);
+ }
+
+ if(cfunc==null)
+ {
+ System.err.println("ERROR(ExternalDeclaration): no CFuncDeclaration instance received !");
+ return;
+ }
+ if(!cfunc.isValid())
+ {
+ String name = null;
+ if(cfunc.funcSpec!=null)
+ {
+ name=cfunc.funcSpec.identifier;
+ if(name==null)
+ name=cfunc.funcSpec.toString();
+ }
+ if(name==null)
+ name="<UNKNOWN>";
+ System.err.println("WARNING(ExternalDeclaration): Function :<"+
+ name+"> can not be proceded - invalid !");
+ return;
+ }
+
+ switch(exportMode)
+ {
+ case EXPORT_JNI_JAVA :
+ System.out.println(cfunc.toJniJavaCode(false));
+ break;
+ case EXPORT_JNI_JAVA_FINAL :
+ System.out.println(cfunc.toJniJavaCode(true));
+ break;
+ case EXPORT_JNI_C :
+ case EXPORT_JNI_C_DYN :
+ System.out.println(cfunc.toJniCCode(clazzName, exportMode,
+ exportModifier));
+ break;
+ case EXPORT_GL_FUNC_NAMES:
+ System.out.println("\t\t\""+cfunc.funcSpec.identifier+"\", ");
+ break;
+ case EXPORT_MSJDIRECT_JAVA :
+ System.out.println(cfunc.toMsJDirectCode(dllname));
+ break;
+ }
+ }
+}
+
+CFuncDeclaration FunctionDefinition() :
+{ CFuncDeclaration cfunc= new CFuncDeclaration(); }
+{
+ [ LOOKAHEAD(DeclarationSpecifiers(null)) DeclarationSpecifiers(cfunc)]
+ Declarator(cfunc) [ DeclarationList(cfunc) ]
+ CompoundStatement()
+ {
+ return cfunc;
+ }
+}
+
+CFuncDeclaration Declaration(CFuncDeclaration cfunc) :
+{ if(cfunc==null) cfunc = new CFuncDeclaration(); }
+{
+ DeclarationSpecifiers(cfunc) [ InitDeclaratorList(cfunc) ]
+ ";"
+ {
+ cSrc += ";\n";
+ return cfunc;
+ }
+}
+
+void DeclarationList(CFuncDeclaration cfunc) : {}
+{
+ ( LOOKAHEAD(Declaration(null)) Declaration(cfunc) )+
+}
+
+void DeclarationSpecifiers(CFuncDeclaration cfunc) :
+{ CFuncVariable cfvar=null;
+ if(cfunc!=null) cfvar=cfunc.getLastIncompleteVar();
+}
+{
+ StorageClassSpecifier(cfunc)
+ [ LOOKAHEAD(DeclarationSpecifiers(null))
+ DeclarationSpecifiers(cfunc) ]
+ |
+ cfvar=TypeSpecifier(cfvar)
+ {
+ if(cfunc!=null)
+ {
+ cfunc.setWorkingVar(cfvar);
+ }
+ }
+ [ LOOKAHEAD(DeclarationSpecifiers(null))
+ DeclarationSpecifiers(cfunc) ] |
+ cfvar=TypeQualifier(cfvar)
+ {
+ if(cfunc!=null)
+ {
+ cfunc.setWorkingVar(cfvar);
+ }
+ }
+ [ LOOKAHEAD(DeclarationSpecifiers(null))
+ DeclarationSpecifiers(cfunc) ]
+}
+
+void StorageClassSpecifier(CFuncDeclaration cfunc) :
+{ Token t; }
+{
+ ( t=<AUTO> { cSrc += t.image+" "; } |
+ t=<REGISTER> { cSrc += t.image+" "; }|
+ t=<STATIC> { cSrc += t.image+" "; } |
+ t=<EXTERN> { cSrc += t.image+" "; }|
+ t=<TYPEDEF> { cSrc += t.image+" "; }
+ {
+ typedefParsingStack.push(Boolean.TRUE);
+ } )
+}
+
+CFuncVariable TypeSpecifier(CFuncVariable cfvar) :
+{ String typeJava; Token t=null; boolean isVoid=false; }
+{
+ (
+ (
+ (
+ t=<VOID>
+ { typeJava=t.image;
+ isVoid=true;
+ cSrc += t.image+" ";
+ } |
+ t=<CHAR>
+ { typeJava="byte";
+ cSrc += t.image+" ";
+ } |
+ t=<SHORT>
+ { typeJava=t.image;
+ cSrc += t.image+" ";
+ } |
+ t=<INT>
+ { typeJava=t.image;
+ cSrc += t.image+" ";
+ } |
+ t=<FLOAT>
+ { typeJava=t.image;
+ cSrc += t.image+" ";
+ } |
+ t=<DOUBLE>
+ { typeJava=t.image;
+ cSrc += t.image+" ";
+ } |
+ t=<UNSIGNED>
+ { typeJava="int";
+ cSrc += t.image+" ";
+ } |
+ t=<SIGNED>
+ { typeJava="int";
+ cSrc += t.image+" ";
+ } |
+ t=<LONG>
+ { typeJava=t.image;
+ cSrc += t.image+" ";
+ }
+ )
+ {
+ if(cfvar==null)
+ cfvar = new CFuncVariable();
+
+ cfvar.typeC = t.image;
+ cfvar.typeJava = typeJava;
+ cfvar.isVoid = isVoid;
+
+ return cfvar;
+ }
+ | cfvar=TypeSpecifierGL(cfvar)
+ { return cfvar; }
+ ) |
+ StructOrUnionSpecifier() |
+ EnumSpecifier() |
+ LOOKAHEAD( { isType(getToken(1).image) } ) TypedefName()
+ )
+ { return null; }
+}
+
+CFuncVariable TypeSpecifierGL(CFuncVariable cfvar) :
+{ String typeJava; Token t=null; boolean isVoid=false; }
+{
+ (
+ t=<GLvoid>
+ { typeJava="void";
+ cSrc += t.image+" ";
+ isVoid=true;
+ } |
+ t=<GLbyte>
+ { typeJava="byte";
+ cSrc += t.image+" ";
+ } |
+ t=<GLshort>
+ { typeJava="short";
+ cSrc += t.image+" ";
+ } |
+ t=<GLint>
+ { typeJava="int";
+ cSrc += t.image+" ";
+ } |
+ t=<GLsizei>
+ { typeJava="int";
+ cSrc += t.image+" ";
+ } |
+ t=<GLfloat>
+ { typeJava="float";
+ cSrc += t.image+" ";
+ } |
+ t=<GLclampf>
+ { typeJava="float";
+ cSrc += t.image+" ";
+ } |
+ t=<GLdouble>
+ { typeJava="double";
+ cSrc += t.image+" ";
+ } |
+ t=<GLclampd>
+ { typeJava="double";
+ cSrc += t.image+" ";
+ } |
+ t=<GLubyte>
+ { typeJava="byte";
+ cSrc += t.image+" ";
+ } |
+ t=<GLboolean>
+ { typeJava="boolean";
+ cSrc += t.image+" ";
+ } |
+ t=<GLushort>
+ { typeJava="short";
+ cSrc += t.image+" ";
+ } |
+ t=<GLuint>
+ { typeJava="int";
+ cSrc += t.image+" ";
+ } |
+ t=<GLenum>
+ { typeJava="int";
+ cSrc += t.image+" ";
+ } |
+ t=<GLbitfield>
+ { typeJava="int";
+ cSrc += t.image+" ";
+ } |
+ t=<GLUquadricObj>
+ { typeJava="int";
+ cSrc += t.image+" ";
+ } |
+ t=<GLUnurbsObj>
+ { typeJava="int";
+ cSrc += t.image+" ";
+ } |
+ t=<GLUtesselator>
+ { typeJava="int";
+ cSrc += t.image+" ";
+ } |
+ t=<GLUtriangulatorObj>
+ { typeJava="int";
+ cSrc += t.image+" ";
+ }
+ )
+ {
+ if(cfvar==null)
+ cfvar = new CFuncVariable();
+ cfvar.typeC = t.image;
+ cfvar.typeJava = typeJava;
+ cfvar.isVoid = isVoid;
+
+ return cfvar;
+ }
+}
+
+CFuncVariable TypeQualifier(CFuncVariable cfvar) :
+{ Token t; }
+{
+ ( t=<CONST>
+ { cSrc += t.image+" ";
+ if(cfvar==null)
+ cfvar = new CFuncVariable();
+ cfvar.isConst=true;
+ return cfvar;
+ } |
+ t=<VOLATILE> { cSrc += t.image+" "; return cfvar; } )
+}
+
+void StructOrUnionSpecifier() :
+{ Token t; }
+{
+ {
+ typedefParsingStack.push(Boolean.FALSE);
+ }
+
+ StructOrUnion() ( LOOKAHEAD(3)
+ [ t=<IDENTIFIER>
+ {
+ cSrc += t.image+" ";
+ if(syntaxVerbose)
+ cSrc += "/*StrucOrUnionSpec*/";
+ }
+ ]
+ "{" { cSrc += "{\n"; } StructDeclarationList()
+ "}" { cSrc += "}\n"; } |
+ t=<IDENTIFIER>
+ {
+ cSrc += t.image+" ";
+ if(syntaxVerbose)
+ cSrc += "/*StrucOrUnionSpec2*/";
+ }
+ )
+ {
+ typedefParsingStack.pop();
+ }
+}
+
+void StructOrUnion() :
+{ Token t; }
+{
+ ( t=<STRUCT> { cSrc += t.image+" "; } |
+ t=<UNION> { cSrc += t.image+" "; } )
+}
+
+void StructDeclarationList() : {}
+{
+ (StructDeclaration())+
+}
+
+void InitDeclaratorList(CFuncDeclaration cfunc) : {}
+{
+ InitDeclarator(cfunc) (
+ "," { cSrc += ", "; } InitDeclarator(cfunc))*
+ {
+ // Finished with a typedefDeclaration??
+ if(!(typedefParsingStack.empty()) && ((Boolean)typedefParsingStack.peek()).booleanValue()){
+ typedefParsingStack.pop();
+ }
+ }
+}
+
+void InitDeclarator(CFuncDeclaration cfunc) : {}
+{
+ Declarator(cfunc) [ "=" { cSrc += "= "; } Initializer() ]
+}
+
+void StructDeclaration() : {}
+{
+ SpecifierQualifierList(null) StructDeclaratorList()
+ ";" { cSrc += ";\n"; }
+}
+
+CFuncVariable SpecifierQualifierList(CFuncVariable cfvar) : {}
+{
+ cfvar=TypeSpecifier(cfvar) [ LOOKAHEAD(SpecifierQualifierList(null))
+ SpecifierQualifierList(cfvar) ]
+ { return cfvar; } |
+ cfvar=TypeQualifier(cfvar) [ LOOKAHEAD(SpecifierQualifierList(null))
+ SpecifierQualifierList(cfvar) ]
+ { return cfvar; }
+}
+
+void StructDeclaratorList() : {}
+{
+ StructDeclarator() ( "," { cSrc += ", "; } StructDeclarator() )*
+}
+
+void StructDeclarator() : {}
+{
+ ( LOOKAHEAD(3) Declarator(null) | [ Declarator(null) ]
+ ":" { cSrc += ": "; } ConstantExpression() )
+}
+
+void EnumSpecifier() :
+{ Token t; }
+{
+ t=<ENUM> { cSrc += t.image+" "; } ( LOOKAHEAD(3)
+ [ t=<IDENTIFIER> { cSrc += t.image+" "; } ]
+ "{" { cSrc += "{\n"; } EnumeratorList()
+ "}" { cSrc += "}\n"; } |
+ t=<IDENTIFIER> { cSrc += t.image+" "; } )
+}
+
+void EnumeratorList() :
+{ lastEnumValue=0; }
+{
+ Enumerator() ("," { cSrc += ",\n"; } Enumerator())*
+ { cSrc += "\n\t;\n"; }
+}
+
+void Enumerator() :
+{ Token t; int startIdx; }
+{
+ t=<IDENTIFIER> { cSrc += "\t"+t.image+" "; startIdx=-1; }
+ [ "=" { cSrc += "= "; startIdx=cSrc.length(); } ConstantExpression() ]
+ {
+ System.out.print("\tpublic static final int "+t.image+"\t= ");
+ if(startIdx>=0)
+ {
+ String valStr = cSrc.substring(startIdx, cSrc.length()).trim();
+ System.out.print(valStr);
+ int val = 0;
+ try {
+ val=Integer.decode(valStr).intValue();
+ lastEnumValue=val;
+ } catch (Exception ex) {
+ System.err.println("Error while decoding for <"+
+ t.image+">: <"+valStr+">");
+ lastEnumValue++;
+ }
+ } else {
+ lastEnumValue++;
+ System.out.print(lastEnumValue);
+ }
+ System.out.println(";");
+ }
+}
+
+void Declarator(CFuncDeclaration cfunc) :
+{ CFuncVariable cfvar=null; }
+{
+ { if(cfunc!=null)
+ cfvar = cfunc.getWorkingVar();
+ }
+ [ Pointer(cfvar) ] DirectDeclarator(cfunc)
+}
+
+void DirectDeclarator(CFuncDeclaration cfunc) :
+{ Token t; }
+{
+ (
+ t = <IDENTIFIER>
+ { cSrc+=t.image+" ";
+
+ if(syntaxVerbose)
+ cSrc += "/*DirectDecl1*/ ";
+
+ if(!(typedefParsingStack.empty()) &&
+ ((Boolean)typedefParsingStack.peek()).booleanValue())
+ {
+ addType(t.image);
+ }
+
+ if(cfunc==null)
+ return;
+
+ //
+ // Complete the variable declarations in the holder !
+ //
+ CFuncVariable cfvar = cfunc.getWorkingVar();
+
+ cfvar.identifier=t.image;
+ cfvar.complete=true;
+ }
+
+ |
+
+ "("
+ { cSrc += "( ";
+ if(syntaxVerbose)
+ cSrc += "/*DirectDecl2*/ ";
+ }
+ Declarator(cfunc)
+ ")" { cSrc += ") "; }
+ )
+
+ (
+ "[" { cSrc += "[ "; }
+ [ ConstantExpression() ]
+ "]"
+ { cSrc += "] ";
+ if(cfunc!=null)
+ {
+ CFuncVariable cfvar = (CFuncVariable)
+ cfunc.argList.elementAt(cfunc.argList.size()-1);
+ cfvar.arrayNumber++;
+ }
+ }
+ |
+
+ LOOKAHEAD(3)
+ "("
+ {
+ cSrc += "( ";
+ if(syntaxVerbose)
+ cSrc += "/*DirectDecl3*/ ";
+ }
+ [ ParameterTypeList(cfunc) ]
+ ")"
+ { cSrc += ") "; }
+
+ |
+
+ "("
+ {
+ cSrc += "( ";
+ if(syntaxVerbose)
+ cSrc += "/*DirectDecl4*/ ";
+ }
+ IdentifierList()
+ ")" { cSrc += ") "; } )*
+}
+
+void Pointer(CFuncVariable cfvar) : {}
+{
+ "*"
+ {
+ cSrc += "* ";
+ if(cfvar!=null)
+ {
+ if(cfvar.typeC!=null)
+ {
+ /**
+ * No Pointer - These GLU Types are allready
+ * "long" values for java -> pointer
+ */
+ if(cfvar.typeC.equals("GLUquadricObj") ||
+ cfvar.typeC.equals("GLUnurbsObj") ||
+ cfvar.typeC.equals("GLUtesselator") ||
+ cfvar.typeC.equals("GLUtriangulatorObj")
+ )
+ {
+ cfvar.isGLUPtrObject=true;
+ return;
+ }
+ }
+ cfvar.arrayNumber++;
+ }
+ }
+ [ TypeQualifierList(null) ] [ Pointer(cfvar) ]
+}
+
+void TypeQualifierList(CFuncVariable cfvar) : {}
+{
+ (TypeQualifier(cfvar))+
+}
+
+void ParameterTypeList(CFuncDeclaration cfunc) : {}
+{
+ ParameterList(cfunc)
+ ["," { cSrc += ", "; } "..." { cSrc += "..."; } ]
+}
+
+void ParameterList(CFuncDeclaration cfunc) : {}
+{
+ ParameterDeclaration(cfunc) (LOOKAHEAD(2)
+ "," { cSrc += ", "; } ParameterDeclaration(cfunc))*
+}
+
+void ParameterDeclaration(CFuncDeclaration cfunc) : {}
+{
+ DeclarationSpecifiers(cfunc)
+ ( LOOKAHEAD(Declarator(null)) Declarator(cfunc) |
+ [ AbstractDeclarator() ] )
+ {
+ if(cfunc!=null)
+ {
+ CFuncVariable cfvar = cfunc.getLastIncompleteVar();
+ if(cfvar!=null)
+ {
+ /**
+ * We may must squash the "void" Argument
+ * E.g. void function(void) !
+ */
+ if(cfvar.isVoid)
+ {
+ cfunc.argList.removeElementAt(
+ cfunc.argList.size()-1);
+ return;
+ }
+ /**
+ * We have a regular argument,
+ * so we must add an instance name here ...
+ */
+ cfvar.identifier="arg"+(cfunc.argList.size()-1);
+ cfvar.complete=true;
+ }
+ }
+ }
+}
+
+/**
+ *
+ * J2C Declaration Changes END (JAU)
+ *
+ */
+
+void IdentifierList() :
+{ Token t; }
+{
+ t=<IDENTIFIER>
+ { cSrc += t.image+" ";
+ if(syntaxVerbose)
+ cSrc += "/*IdentifierList*/ ";
+ }
+ ("," { cSrc += ", "; } t=<IDENTIFIER>
+ { cSrc += t.image+" ";
+ if(syntaxVerbose)
+ cSrc += "/*IdentifierList2*/ ";
+ }
+ )*
+}
+
+void Initializer() : {}
+{
+ ( AssignmentExpression() |
+ "{" { cSrc += "{\n"; } InitializerList()
+ ["," { cSrc += ", "; } ] "}" { cSrc += "}\n"; } )
+}
+
+void InitializerList() : {}
+{
+ Initializer() (LOOKAHEAD(2) "," { cSrc += ", "; } Initializer())*
+}
+
+void TypeName() : {}
+{
+ SpecifierQualifierList(null) [ AbstractDeclarator() ]
+}
+
+void AbstractDeclarator() : {}
+{
+ ( LOOKAHEAD(3) Pointer(null) |
+ [Pointer(null)] DirectAbstractDeclarator() )
+}
+
+void DirectAbstractDeclarator() : {}
+{
+ ( LOOKAHEAD(2)
+ "(" { cSrc += "( "; } AbstractDeclarator()
+ ")" { cSrc += ") "; } |
+ "[" { cSrc += "[ "; } [ConstantExpression()]
+ "]" { cSrc += "] "; } |
+ "(" { cSrc += "( "; } [ParameterTypeList(null)]
+ ")" { cSrc += ") "; } )
+ (
+ "[" { cSrc += "[ "; } [ ConstantExpression() ]
+ "]" { cSrc += "] "; } |
+ "(" { cSrc += "( "; } [ ParameterTypeList(null) ]
+ ")" { cSrc += ") "; } )*
+}
+
+void TypedefName() :
+{ Token t; }
+{
+ t=<IDENTIFIER> { cSrc += t.image+" /*TypedefName*/"; }
+}
+
+void Statement() : {}
+{
+ ( LOOKAHEAD(2) LabeledStatement() |
+ ExpressionStatement() |
+ CompoundStatement() |
+ SelectionStatement() |
+ IterationStatement() |
+ JumpStatement() )
+}
+
+void LabeledStatement() :
+{ Token t; }
+{
+ ( t=<IDENTIFIER>
+ { cSrc += t.image+" ";
+ if(syntaxVerbose)
+ cSrc += "/*LabeledStatement*/ ";
+ }
+ ":" { cSrc += ": "; } Statement() |
+ t=<CASE> { cSrc += t.image+" "; } ConstantExpression()
+ ":"{ cSrc += ": "; } Statement() |
+ t=<DFLT> { cSrc += t.image+" "; }
+ ":"{ cSrc += ": "; } Statement() )
+}
+
+void ExpressionStatement() : {}
+{
+ [ Expression() ] ";"{ cSrc += ";\n"; }
+}
+
+void CompoundStatement() : {}
+{
+ "{" { cSrc += "{\n"; } [ LOOKAHEAD(DeclarationList(null)) DeclarationList(null) ]
+ [ StatementList() ]
+ "}"{ cSrc += "}\n"; }
+}
+
+void StatementList() : {}
+{
+ (Statement())+
+}
+
+void SelectionStatement() :
+{ Token t; }
+{
+ ( t=<IF> { cSrc += t.image+" "; }
+ "(" { cSrc += "( "; } Expression()
+ ")" { cSrc += ")\n"; } Statement() [ LOOKAHEAD(2)
+ t=<ELSE> { cSrc += t.image+" "; } Statement() ] |
+ t=<SWITCH> { cSrc += t.image+" "; }
+ "(" { cSrc += "( "; } Expression()
+ ")" { cSrc += ")\n"; } Statement() )
+}
+
+void IterationStatement() :
+{ Token t; }
+{
+ ( t=<WHILE> { cSrc += t.image+" "; }
+ "(" { cSrc += "( "; } Expression()
+ ")" { cSrc += ")\n"; } Statement() |
+ t=<DO> { cSrc += t.image+"\n"; } Statement()
+ t=<WHILE> { cSrc += t.image+" "; }
+ "(" { cSrc += "( "; } Expression()
+ ")" ";" { cSrc += ");\n"; } |
+ t=<FOR> { cSrc += t.image+" "; }
+ "(" { cSrc += "( "; } [ Expression() ]
+ ";" { cSrc += "; "; } [ Expression() ]
+ ";" { cSrc += "; "; } [ Expression() ]
+ ")" { cSrc += ")\n"; }
+ Statement() )
+}
+
+void JumpStatement() :
+{ Token t; }
+{
+ ( t=<GOTO> { cSrc += t.image+" "; }
+ t=<IDENTIFIER>
+ { cSrc += t.image+" ";
+ if(syntaxVerbose)
+ cSrc += "/*JumpStat*/ ";
+ }
+ ";" { cSrc += ";\n"; } |
+ t=<CONTINUE> { cSrc += t.image+" "; } ";" { cSrc += ";\n"; } |
+ t=<BREAK> { cSrc += t.image+" "; } ";" { cSrc += ";\n"; } |
+ t=<RETURN> { cSrc += t.image+" "; }
+ [ Expression() ] ";" { cSrc += ";\n"; } )
+}
+
+void Expression() : {}
+{
+ AssignmentExpression() ( "," { cSrc += ", "; } AssignmentExpression() )*
+}
+
+void AssignmentExpression() : {}
+{
+ LOOKAHEAD(UnaryExpression() AssignmentOperator()) UnaryExpression() AssignmentOperator() AssignmentExpression() |
+ LOOKAHEAD(3) ConditionalExpression()
+}
+
+void AssignmentOperator() : {}
+{
+ ( "=" { cSrc += "= "; } |
+ "*=" { cSrc += "*= "; } |
+ "/=" { cSrc += "/= "; } |
+ "%=" { cSrc += "%= "; } |
+ "+=" { cSrc += "+= "; } |
+ "-=" { cSrc += "-= "; } |
+ "<<=" { cSrc += "<<= "; } |
+ ">>=" { cSrc += ">>= "; } |
+ "&=" { cSrc += "&= "; } |
+ "^=" { cSrc += "^= "; } |
+ "|=" { cSrc += "|= "; } )
+}
+
+void ConditionalExpression() : {}
+{
+ LogicalORExpression()
+ [ "?" { cSrc += "? "; } Expression() ":" { cSrc += ": "; }
+ ConditionalExpression() ]
+}
+
+void ConstantExpression() : {}
+{
+ ConditionalExpression()
+}
+
+void LogicalORExpression() : {}
+{
+ LogicalANDExpression()
+ [ "||" { cSrc += "|| "; } LogicalORExpression() ]
+}
+
+void LogicalANDExpression() : {}
+{
+ InclusiveORExpression()
+ [ "&&" { cSrc += "&& "; } LogicalANDExpression() ]
+}
+
+void InclusiveORExpression() : {}
+{
+ ExclusiveORExpression()
+ [ "|" { cSrc += "| "; } InclusiveORExpression() ]
+}
+
+void ExclusiveORExpression() : {}
+{
+ ANDExpression()
+ [ "^" { cSrc += "^ "; } ExclusiveORExpression() ]
+}
+
+void ANDExpression() : {}
+{
+ EqualityExpression()
+ [ "&" { cSrc += "& "; } ANDExpression() ]
+}
+
+void EqualityExpression() : {}
+{
+ RelationalExpression()
+ [ ( "==" { cSrc += "== "; } | "!=" { cSrc += "!= "; } )
+ EqualityExpression() ]
+}
+
+void RelationalExpression() : {}
+{
+ ShiftExpression()
+ [ ( "<" { cSrc += "< "; } |
+ ">" { cSrc += "> "; } |
+ "<=" { cSrc += "<= "; } |
+ ">=" { cSrc += ">= "; } ) RelationalExpression() ]
+}
+
+void ShiftExpression() : {}
+{
+ AdditiveExpression()
+ [ ( "<<" { cSrc += "<< "; } | ">>" { cSrc += ">> "; } ) ShiftExpression() ]
+}
+
+void AdditiveExpression() : {}
+{
+ MultiplicativeExpression()
+ [ ( "+" { cSrc += "+ "; } | "-" { cSrc += "- "; } ) AdditiveExpression() ]
+}
+
+void MultiplicativeExpression() : {}
+{
+ CastExpression()
+ [ ( "*" { cSrc += "* "; } |
+ "/" { cSrc += "/ "; } |
+ "%" { cSrc += "% "; } ) MultiplicativeExpression() ]
+}
+
+void CastExpression() :
+{ String help1= new String();
+ String help2= new String();
+}
+{
+ ( LOOKAHEAD( "(" TypeName(help1) ")" CastExpression(help2) )
+ { cSrc += "( "+help1+") "+help2; }
+ "(" { cSrc += "( "; } TypeName() ")" { cSrc += ") "; } CastExpression() |
+ UnaryExpression() )
+}
+
+void UnaryExpression() :
+{ Token t; }
+{
+ ( LOOKAHEAD(3) PostfixExpression() |
+ "++" { cSrc += "++ "; } UnaryExpression() |
+ "--" { cSrc += "-- "; } UnaryExpression() |
+ UnaryOperator() CastExpression() |
+ t=<SIZEOF> { cSrc += t.image+" "; }
+ ( LOOKAHEAD(UnaryExpression() ) UnaryExpression() |
+ "(" { cSrc += "( "; } TypeName() ")" { cSrc += ") "; } ) )
+}
+
+void UnaryOperator() : {}
+{
+ ( "&" { cSrc += "& "; } |
+ "*" { cSrc += "* "; } |
+ "+" { cSrc += "+ "; } |
+ "-" { cSrc += "- "; } |
+ "~" { cSrc += "~ "; } |
+ "!" { cSrc += "! "; } )
+}
+
+void PostfixExpression() :
+{ Token t; }
+{
+ PrimaryExpression()
+ ( "[" { cSrc += "[ "; } Expression() "]" { cSrc += "] "; } |
+ "(" { cSrc += "( "; }
+ [ LOOKAHEAD(ArgumentExpressionList() ) ArgumentExpressionList() ]
+ ")" { cSrc += ") "; } |
+ "." { cSrc += ". "; } t=<IDENTIFIER> { cSrc += t.image+" "; } |
+ "->" { cSrc += "-> "; } t=<IDENTIFIER> { cSrc += t.image+" "; } |
+ "++" { cSrc += "++ "; } |
+ "--" { cSrc += "-- "; } )*
+}
+
+void PrimaryExpression() :
+{ Token t; }
+{
+ ( t=<IDENTIFIER>
+ { cSrc += t.image+" ";
+ if(syntaxVerbose)
+ cSrc += "/*PrimaryExpr*/ ";
+ } |
+ Constant() |
+ "(" { cSrc += "( "; } Expression() ")" { cSrc += ") "; } )
+}
+
+void ArgumentExpressionList() :
+{ }
+{
+ AssignmentExpression()
+ ( "," { cSrc += ", "; } AssignmentExpression() )*
+}
+
+void Constant() :
+{ Token t; }
+{
+ t=<INTEGER_LITERAL> { cSrc += t.image+" "; } |
+ t=<FLOATING_POINT_LITERAL> { cSrc += t.image+" "; } |
+ t=<CHARACTER_LITERAL> { cSrc += t.image+" "; } |
+ t=<STRING_LITERAL> { cSrc += t.image+" "; }
+}
+
diff --git a/C2J/C2JConstants.java b/C2J/C2JConstants.java
new file mode 100644
index 0000000..7f4c2ca
--- /dev/null
+++ b/C2J/C2JConstants.java
@@ -0,0 +1,188 @@
+/* Generated By:JavaCC: Do not edit this line. C2JConstants.java */
+public interface C2JConstants {
+
+ int EOF = 0;
+ int INTEGER_LITERAL = 7;
+ int DECIMAL_LITERAL = 8;
+ int HEX_LITERAL = 9;
+ int OCTAL_LITERAL = 10;
+ int FLOATING_POINT_LITERAL = 11;
+ int EXPONENT = 12;
+ int CHARACTER_LITERAL = 13;
+ int STRING_LITERAL = 14;
+ int CONTINUE = 15;
+ int VOLATILE = 16;
+ int REGISTER = 17;
+ int UNSIGNED = 18;
+ int TYPEDEF = 19;
+ int DFLT = 20;
+ int DOUBLE = 21;
+ int SIZEOF = 22;
+ int SWITCH = 23;
+ int RETURN = 24;
+ int EXTERN = 25;
+ int STRUCT = 26;
+ int STATIC = 27;
+ int SIGNED = 28;
+ int WHILE = 29;
+ int BREAK = 30;
+ int UNION = 31;
+ int CONST = 32;
+ int FLOAT = 33;
+ int SHORT = 34;
+ int ELSE = 35;
+ int CASE = 36;
+ int LONG = 37;
+ int ENUM = 38;
+ int AUTO = 39;
+ int VOID = 40;
+ int CHAR = 41;
+ int GOTO = 42;
+ int FOR = 43;
+ int INT = 44;
+ int IF = 45;
+ int DO = 46;
+ int GLvoid = 47;
+ int GLbyte = 48;
+ int GLshort = 49;
+ int GLint = 50;
+ int GLsizei = 51;
+ int GLfloat = 52;
+ int GLclampf = 53;
+ int GLdouble = 54;
+ int GLclampd = 55;
+ int GLubyte = 56;
+ int GLboolean = 57;
+ int GLushort = 58;
+ int GLuint = 59;
+ int GLenum = 60;
+ int GLbitfield = 61;
+ int GLUquadricObj = 62;
+ int GLUnurbsObj = 63;
+ int GLUtesselator = 64;
+ int GLUtriangulatorObj = 65;
+ int IDENTIFIER = 66;
+ int LETTER = 67;
+ int DIGIT = 68;
+
+ int DEFAULT = 0;
+
+ String[] tokenImage = {
+ "<EOF>",
+ "\" \"",
+ "\"\\t\"",
+ "\"\\n\"",
+ "\"\\r\"",
+ "<token of kind 5>",
+ "<token of kind 6>",
+ "<INTEGER_LITERAL>",
+ "<DECIMAL_LITERAL>",
+ "<HEX_LITERAL>",
+ "<OCTAL_LITERAL>",
+ "<FLOATING_POINT_LITERAL>",
+ "<EXPONENT>",
+ "<CHARACTER_LITERAL>",
+ "<STRING_LITERAL>",
+ "\"continue\"",
+ "\"volatile\"",
+ "\"register\"",
+ "\"unsigned\"",
+ "\"typedef\"",
+ "\"default\"",
+ "\"double\"",
+ "\"sizeof\"",
+ "\"switch\"",
+ "\"return\"",
+ "\"extern\"",
+ "\"struct\"",
+ "\"static\"",
+ "\"signed\"",
+ "\"while\"",
+ "\"break\"",
+ "\"union\"",
+ "\"const\"",
+ "\"float\"",
+ "\"short\"",
+ "\"else\"",
+ "\"case\"",
+ "\"long\"",
+ "\"enum\"",
+ "\"auto\"",
+ "\"void\"",
+ "\"char\"",
+ "\"goto\"",
+ "\"for\"",
+ "\"int\"",
+ "\"if\"",
+ "\"do\"",
+ "\"GLvoid\"",
+ "\"GLbyte\"",
+ "\"GLshort\"",
+ "\"GLint\"",
+ "\"GLsizei\"",
+ "\"GLfloat\"",
+ "\"GLclampf\"",
+ "\"GLdouble\"",
+ "\"GLclampd\"",
+ "\"GLubyte\"",
+ "\"GLboolean\"",
+ "\"GLushort\"",
+ "\"GLuint\"",
+ "\"GLenum\"",
+ "\"GLbitfield\"",
+ "\"GLUquadricObj\"",
+ "\"GLUnurbsObj\"",
+ "\"GLUtesselator\"",
+ "\"GLUtriangulatorObj\"",
+ "<IDENTIFIER>",
+ "<LETTER>",
+ "<DIGIT>",
+ "\";\"",
+ "\"{\"",
+ "\"}\"",
+ "\",\"",
+ "\"=\"",
+ "\":\"",
+ "\"(\"",
+ "\")\"",
+ "\"[\"",
+ "\"]\"",
+ "\"*\"",
+ "\"...\"",
+ "\"*=\"",
+ "\"/=\"",
+ "\"%=\"",
+ "\"+=\"",
+ "\"-=\"",
+ "\"<<=\"",
+ "\">>=\"",
+ "\"&=\"",
+ "\"^=\"",
+ "\"|=\"",
+ "\"?\"",
+ "\"||\"",
+ "\"&&\"",
+ "\"|\"",
+ "\"^\"",
+ "\"&\"",
+ "\"==\"",
+ "\"!=\"",
+ "\"<\"",
+ "\">\"",
+ "\"<=\"",
+ "\">=\"",
+ "\"<<\"",
+ "\">>\"",
+ "\"+\"",
+ "\"-\"",
+ "\"/\"",
+ "\"%\"",
+ "\"++\"",
+ "\"--\"",
+ "\"~\"",
+ "\"!\"",
+ "\".\"",
+ "\"->\"",
+ };
+
+}
diff --git a/C2J/C2JTokenManager.java b/C2J/C2JTokenManager.java
new file mode 100644
index 0000000..1d8ff29
--- /dev/null
+++ b/C2J/C2JTokenManager.java
@@ -0,0 +1,1623 @@
+/* Generated By:JavaCC: Do not edit this line. C2JTokenManager.java */
+import java.util.*;
+
+public class C2JTokenManager implements C2JConstants
+{
+private static final int jjStopStringLiteralDfa_0(int pos, long active0, long active1)
+{
+ switch (pos)
+ {
+ case 0:
+ if ((active1 & 0x2000000010000L) != 0L)
+ return 4;
+ if ((active1 & 0x80000040000L) != 0L)
+ return 49;
+ if ((active0 & 0xffffffffffff8000L) != 0L || (active1 & 0x3L) != 0L)
+ {
+ jjmatchedKind = 66;
+ return 28;
+ }
+ return -1;
+ case 1:
+ if ((active0 & 0x600000200000L) != 0L)
+ return 28;
+ if ((active0 & 0xffff9fffffdf8000L) != 0L || (active1 & 0x3L) != 0L)
+ {
+ if (jjmatchedPos != 1)
+ {
+ jjmatchedKind = 66;
+ jjmatchedPos = 1;
+ }
+ return 28;
+ }
+ return -1;
+ case 2:
+ if ((active0 & 0xffff87ffffff8000L) != 0L || (active1 & 0x3L) != 0L)
+ {
+ jjmatchedKind = 66;
+ jjmatchedPos = 2;
+ return 28;
+ }
+ if ((active0 & 0x180000000000L) != 0L)
+ return 28;
+ return -1;
+ case 3:
+ if ((active0 & 0x7f800000000L) != 0L)
+ return 28;
+ if ((active0 & 0xffff8007ffff8000L) != 0L || (active1 & 0x3L) != 0L)
+ {
+ jjmatchedKind = 66;
+ jjmatchedPos = 3;
+ return 28;
+ }
+ return -1;
+ case 4:
+ if ((active0 & 0x40007e0000000L) != 0L)
+ return 28;
+ if ((active0 & 0xfffb80001fff8000L) != 0L || (active1 & 0x3L) != 0L)
+ {
+ jjmatchedKind = 66;
+ jjmatchedPos = 4;
+ return 28;
+ }
+ return -1;
+ case 5:
+ if ((active0 & 0x180180001fe00000L) != 0L)
+ return 28;
+ if ((active0 & 0xe7fa0000001f8000L) != 0L || (active1 & 0x3L) != 0L)
+ {
+ jjmatchedKind = 66;
+ jjmatchedPos = 5;
+ return 28;
+ }
+ return -1;
+ case 6:
+ if ((active0 & 0xe6e0000000078000L) != 0L || (active1 & 0x3L) != 0L)
+ {
+ jjmatchedKind = 66;
+ jjmatchedPos = 6;
+ return 28;
+ }
+ if ((active0 & 0x11a000000180000L) != 0L)
+ return 28;
+ return -1;
+ case 7:
+ if ((active0 & 0x4e0000000078000L) != 0L)
+ return 28;
+ if ((active0 & 0xe200000000000000L) != 0L || (active1 & 0x3L) != 0L)
+ {
+ jjmatchedKind = 66;
+ jjmatchedPos = 7;
+ return 28;
+ }
+ return -1;
+ case 8:
+ if ((active0 & 0x200000000000000L) != 0L)
+ return 28;
+ if ((active0 & 0xe000000000000000L) != 0L || (active1 & 0x3L) != 0L)
+ {
+ jjmatchedKind = 66;
+ jjmatchedPos = 8;
+ return 28;
+ }
+ return -1;
+ case 9:
+ if ((active0 & 0xc000000000000000L) != 0L || (active1 & 0x3L) != 0L)
+ {
+ jjmatchedKind = 66;
+ jjmatchedPos = 9;
+ return 28;
+ }
+ if ((active0 & 0x2000000000000000L) != 0L)
+ return 28;
+ return -1;
+ case 10:
+ if ((active0 & 0x8000000000000000L) != 0L)
+ return 28;
+ if ((active0 & 0x4000000000000000L) != 0L || (active1 & 0x3L) != 0L)
+ {
+ jjmatchedKind = 66;
+ jjmatchedPos = 10;
+ return 28;
+ }
+ return -1;
+ case 11:
+ if ((active0 & 0x4000000000000000L) != 0L || (active1 & 0x3L) != 0L)
+ {
+ jjmatchedKind = 66;
+ jjmatchedPos = 11;
+ return 28;
+ }
+ return -1;
+ case 12:
+ if ((active1 & 0x2L) != 0L)
+ {
+ jjmatchedKind = 66;
+ jjmatchedPos = 12;
+ return 28;
+ }
+ if ((active0 & 0x4000000000000000L) != 0L || (active1 & 0x1L) != 0L)
+ return 28;
+ return -1;
+ case 13:
+ if ((active1 & 0x2L) != 0L)
+ {
+ jjmatchedKind = 66;
+ jjmatchedPos = 13;
+ return 28;
+ }
+ return -1;
+ case 14:
+ if ((active1 & 0x2L) != 0L)
+ {
+ jjmatchedKind = 66;
+ jjmatchedPos = 14;
+ return 28;
+ }
+ return -1;
+ case 15:
+ if ((active1 & 0x2L) != 0L)
+ {
+ jjmatchedKind = 66;
+ jjmatchedPos = 15;
+ return 28;
+ }
+ return -1;
+ case 16:
+ if ((active1 & 0x2L) != 0L)
+ {
+ jjmatchedKind = 66;
+ jjmatchedPos = 16;
+ return 28;
+ }
+ return -1;
+ default :
+ return -1;
+ }
+}
+private static final int jjStartNfa_0(int pos, long active0, long active1)
+{
+ return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0, active1), pos + 1);
+}
+static private final int jjStopAtPos(int pos, int kind)
+{
+ jjmatchedKind = kind;
+ jjmatchedPos = pos;
+ return pos + 1;
+}
+static private final int jjStartNfaWithStates_0(int pos, int kind, int state)
+{
+ jjmatchedKind = kind;
+ jjmatchedPos = pos;
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) { return pos + 1; }
+ return jjMoveNfa_0(state, pos + 1);
+}
+static private final int jjMoveStringLiteralDfa0_0()
+{
+ switch(curChar)
+ {
+ case 33:
+ jjmatchedKind = 112;
+ return jjMoveStringLiteralDfa1_0(0x0L, 0x400000000L);
+ case 37:
+ jjmatchedKind = 108;
+ return jjMoveStringLiteralDfa1_0(0x0L, 0x80000L);
+ case 38:
+ jjmatchedKind = 96;
+ return jjMoveStringLiteralDfa1_0(0x0L, 0x21000000L);
+ case 40:
+ return jjStopAtPos(0, 75);
+ case 41:
+ return jjStopAtPos(0, 76);
+ case 42:
+ jjmatchedKind = 79;
+ return jjMoveStringLiteralDfa1_0(0x0L, 0x20000L);
+ case 43:
+ jjmatchedKind = 105;
+ return jjMoveStringLiteralDfa1_0(0x0L, 0x200000100000L);
+ case 44:
+ return jjStopAtPos(0, 72);
+ case 45:
+ jjmatchedKind = 106;
+ return jjMoveStringLiteralDfa1_0(0x0L, 0x4400000200000L);
+ case 46:
+ jjmatchedKind = 113;
+ return jjMoveStringLiteralDfa1_0(0x0L, 0x10000L);
+ case 47:
+ jjmatchedKind = 107;
+ return jjMoveStringLiteralDfa1_0(0x0L, 0x40000L);
+ case 58:
+ return jjStopAtPos(0, 74);
+ case 59:
+ return jjStopAtPos(0, 69);
+ case 60:
+ jjmatchedKind = 99;
+ return jjMoveStringLiteralDfa1_0(0x0L, 0xa000400000L);
+ case 61:
+ jjmatchedKind = 73;
+ return jjMoveStringLiteralDfa1_0(0x0L, 0x200000000L);
+ case 62:
+ jjmatchedKind = 100;
+ return jjMoveStringLiteralDfa1_0(0x0L, 0x14000800000L);
+ case 63:
+ return jjStopAtPos(0, 91);
+ case 71:
+ return jjMoveStringLiteralDfa1_0(0xffff800000000000L, 0x3L);
+ case 91:
+ return jjStopAtPos(0, 77);
+ case 93:
+ return jjStopAtPos(0, 78);
+ case 94:
+ jjmatchedKind = 95;
+ return jjMoveStringLiteralDfa1_0(0x0L, 0x2000000L);
+ case 97:
+ return jjMoveStringLiteralDfa1_0(0x8000000000L, 0x0L);
+ case 98:
+ return jjMoveStringLiteralDfa1_0(0x40000000L, 0x0L);
+ case 99:
+ return jjMoveStringLiteralDfa1_0(0x21100008000L, 0x0L);
+ case 100:
+ return jjMoveStringLiteralDfa1_0(0x400000300000L, 0x0L);
+ case 101:
+ return jjMoveStringLiteralDfa1_0(0x4802000000L, 0x0L);
+ case 102:
+ return jjMoveStringLiteralDfa1_0(0x80200000000L, 0x0L);
+ case 103:
+ return jjMoveStringLiteralDfa1_0(0x40000000000L, 0x0L);
+ case 105:
+ return jjMoveStringLiteralDfa1_0(0x300000000000L, 0x0L);
+ case 108:
+ return jjMoveStringLiteralDfa1_0(0x2000000000L, 0x0L);
+ case 114:
+ return jjMoveStringLiteralDfa1_0(0x1020000L, 0x0L);
+ case 115:
+ return jjMoveStringLiteralDfa1_0(0x41cc00000L, 0x0L);
+ case 116:
+ return jjMoveStringLiteralDfa1_0(0x80000L, 0x0L);
+ case 117:
+ return jjMoveStringLiteralDfa1_0(0x80040000L, 0x0L);
+ case 118:
+ return jjMoveStringLiteralDfa1_0(0x10000010000L, 0x0L);
+ case 119:
+ return jjMoveStringLiteralDfa1_0(0x20000000L, 0x0L);
+ case 123:
+ return jjStopAtPos(0, 70);
+ case 124:
+ jjmatchedKind = 94;
+ return jjMoveStringLiteralDfa1_0(0x0L, 0x14000000L);
+ case 125:
+ return jjStopAtPos(0, 71);
+ case 126:
+ return jjStopAtPos(0, 111);
+ default :
+ return jjMoveNfa_0(0, 0);
+ }
+}
+static private final int jjMoveStringLiteralDfa1_0(long active0, long active1)
+{
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(0, active0, active1);
+ return 1;
+ }
+ switch(curChar)
+ {
+ case 38:
+ if ((active1 & 0x20000000L) != 0L)
+ return jjStopAtPos(1, 93);
+ break;
+ case 43:
+ if ((active1 & 0x200000000000L) != 0L)
+ return jjStopAtPos(1, 109);
+ break;
+ case 45:
+ if ((active1 & 0x400000000000L) != 0L)
+ return jjStopAtPos(1, 110);
+ break;
+ case 46:
+ return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x10000L);
+ case 60:
+ if ((active1 & 0x8000000000L) != 0L)
+ {
+ jjmatchedKind = 103;
+ jjmatchedPos = 1;
+ }
+ return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x400000L);
+ case 61:
+ if ((active1 & 0x20000L) != 0L)
+ return jjStopAtPos(1, 81);
+ else if ((active1 & 0x40000L) != 0L)
+ return jjStopAtPos(1, 82);
+ else if ((active1 & 0x80000L) != 0L)
+ return jjStopAtPos(1, 83);
+ else if ((active1 & 0x100000L) != 0L)
+ return jjStopAtPos(1, 84);
+ else if ((active1 & 0x200000L) != 0L)
+ return jjStopAtPos(1, 85);
+ else if ((active1 & 0x1000000L) != 0L)
+ return jjStopAtPos(1, 88);
+ else if ((active1 & 0x2000000L) != 0L)
+ return jjStopAtPos(1, 89);
+ else if ((active1 & 0x4000000L) != 0L)
+ return jjStopAtPos(1, 90);
+ else if ((active1 & 0x200000000L) != 0L)
+ return jjStopAtPos(1, 97);
+ else if ((active1 & 0x400000000L) != 0L)
+ return jjStopAtPos(1, 98);
+ else if ((active1 & 0x2000000000L) != 0L)
+ return jjStopAtPos(1, 101);
+ else if ((active1 & 0x4000000000L) != 0L)
+ return jjStopAtPos(1, 102);
+ break;
+ case 62:
+ if ((active1 & 0x10000000000L) != 0L)
+ {
+ jjmatchedKind = 104;
+ jjmatchedPos = 1;
+ }
+ else if ((active1 & 0x4000000000000L) != 0L)
+ return jjStopAtPos(1, 114);
+ return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x800000L);
+ case 76:
+ return jjMoveStringLiteralDfa2_0(active0, 0xffff800000000000L, active1, 0x3L);
+ case 97:
+ return jjMoveStringLiteralDfa2_0(active0, 0x1000000000L, active1, 0L);
+ case 101:
+ return jjMoveStringLiteralDfa2_0(active0, 0x1120000L, active1, 0L);
+ case 102:
+ if ((active0 & 0x200000000000L) != 0L)
+ return jjStartNfaWithStates_0(1, 45, 28);
+ break;
+ case 104:
+ return jjMoveStringLiteralDfa2_0(active0, 0x20420000000L, active1, 0L);
+ case 105:
+ return jjMoveStringLiteralDfa2_0(active0, 0x10400000L, active1, 0L);
+ case 108:
+ return jjMoveStringLiteralDfa2_0(active0, 0xa00000000L, active1, 0L);
+ case 110:
+ return jjMoveStringLiteralDfa2_0(active0, 0x104080040000L, active1, 0L);
+ case 111:
+ if ((active0 & 0x400000000000L) != 0L)
+ {
+ jjmatchedKind = 46;
+ jjmatchedPos = 1;
+ }
+ return jjMoveStringLiteralDfa2_0(active0, 0xd2100218000L, active1, 0L);
+ case 114:
+ return jjMoveStringLiteralDfa2_0(active0, 0x40000000L, active1, 0L);
+ case 116:
+ return jjMoveStringLiteralDfa2_0(active0, 0xc000000L, active1, 0L);
+ case 117:
+ return jjMoveStringLiteralDfa2_0(active0, 0x8000000000L, active1, 0L);
+ case 119:
+ return jjMoveStringLiteralDfa2_0(active0, 0x800000L, active1, 0L);
+ case 120:
+ return jjMoveStringLiteralDfa2_0(active0, 0x2000000L, active1, 0L);
+ case 121:
+ return jjMoveStringLiteralDfa2_0(active0, 0x80000L, active1, 0L);
+ case 124:
+ if ((active1 & 0x10000000L) != 0L)
+ return jjStopAtPos(1, 92);
+ break;
+ default :
+ break;
+ }
+ return jjStartNfa_0(0, active0, active1);
+}
+static private final int jjMoveStringLiteralDfa2_0(long old0, long active0, long old1, long active1)
+{
+ if (((active0 &= old0) | (active1 &= old1)) == 0L)
+ return jjStartNfa_0(0, old0, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(1, active0, active1);
+ return 2;
+ }
+ switch(curChar)
+ {
+ case 46:
+ if ((active1 & 0x10000L) != 0L)
+ return jjStopAtPos(2, 80);
+ break;
+ case 61:
+ if ((active1 & 0x400000L) != 0L)
+ return jjStopAtPos(2, 86);
+ else if ((active1 & 0x800000L) != 0L)
+ return jjStopAtPos(2, 87);
+ break;
+ case 85:
+ return jjMoveStringLiteralDfa3_0(active0, 0xc000000000000000L, active1, 0x3L);
+ case 97:
+ return jjMoveStringLiteralDfa3_0(active0, 0x20008000000L, active1, 0L);
+ case 98:
+ return jjMoveStringLiteralDfa3_0(active0, 0x2201000000000000L, active1, 0L);
+ case 99:
+ return jjMoveStringLiteralDfa3_0(active0, 0xa0000000000000L, active1, 0L);
+ case 100:
+ return jjMoveStringLiteralDfa3_0(active0, 0x40000000000000L, active1, 0L);
+ case 101:
+ return jjMoveStringLiteralDfa3_0(active0, 0x1000000040000000L, active1, 0L);
+ case 102:
+ return jjMoveStringLiteralDfa3_0(active0, 0x10000000100000L, active1, 0L);
+ case 103:
+ return jjMoveStringLiteralDfa3_0(active0, 0x10020000L, active1, 0L);
+ case 105:
+ return jjMoveStringLiteralDfa3_0(active0, 0x40100a0800000L, active1, 0L);
+ case 108:
+ return jjMoveStringLiteralDfa3_0(active0, 0x10000L, active1, 0L);
+ case 110:
+ return jjMoveStringLiteralDfa3_0(active0, 0x2100008000L, active1, 0L);
+ case 111:
+ return jjMoveStringLiteralDfa3_0(active0, 0x600000000L, active1, 0L);
+ case 112:
+ return jjMoveStringLiteralDfa3_0(active0, 0x80000L, active1, 0L);
+ case 114:
+ if ((active0 & 0x80000000000L) != 0L)
+ return jjStartNfaWithStates_0(2, 43, 28);
+ return jjMoveStringLiteralDfa3_0(active0, 0x4000000L, active1, 0L);
+ case 115:
+ return jjMoveStringLiteralDfa3_0(active0, 0xa001800040000L, active1, 0L);
+ case 116:
+ if ((active0 & 0x100000000000L) != 0L)
+ return jjStartNfaWithStates_0(2, 44, 28);
+ return jjMoveStringLiteralDfa3_0(active0, 0x48003000000L, active1, 0L);
+ case 117:
+ return jjMoveStringLiteralDfa3_0(active0, 0xd00004000200000L, active1, 0L);
+ case 118:
+ return jjMoveStringLiteralDfa3_0(active0, 0x800000000000L, active1, 0L);
+ case 122:
+ return jjMoveStringLiteralDfa3_0(active0, 0x400000L, active1, 0L);
+ default :
+ break;
+ }
+ return jjStartNfa_0(1, active0, active1);
+}
+static private final int jjMoveStringLiteralDfa3_0(long old0, long active0, long old1, long active1)
+{
+ if (((active0 &= old0) | (active1 &= old1)) == 0L)
+ return jjStartNfa_0(1, old0, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(2, active0, active1);
+ return 3;
+ }
+ switch(curChar)
+ {
+ case 97:
+ return jjMoveStringLiteralDfa4_0(active0, 0x240110000L, active1, 0L);
+ case 98:
+ return jjMoveStringLiteralDfa4_0(active0, 0x100000000200000L, active1, 0L);
+ case 100:
+ if ((active0 & 0x10000000000L) != 0L)
+ return jjStartNfaWithStates_0(3, 40, 28);
+ break;
+ case 101:
+ if ((active0 & 0x800000000L) != 0L)
+ return jjStartNfaWithStates_0(3, 35, 28);
+ else if ((active0 & 0x1000000000L) != 0L)
+ return jjStartNfaWithStates_0(3, 36, 28);
+ return jjMoveStringLiteralDfa4_0(active0, 0x2480000L, active1, 0L);
+ case 103:
+ if ((active0 & 0x2000000000L) != 0L)
+ return jjStartNfaWithStates_0(3, 37, 28);
+ break;
+ case 104:
+ return jjMoveStringLiteralDfa4_0(active0, 0x2000000000000L, active1, 0L);
+ case 105:
+ return jjMoveStringLiteralDfa4_0(active0, 0x2808000000060000L, active1, 0L);
+ case 108:
+ return jjMoveStringLiteralDfa4_0(active0, 0xb0000020000000L, active1, 0L);
+ case 109:
+ if ((active0 & 0x4000000000L) != 0L)
+ return jjStartNfaWithStates_0(3, 38, 28);
+ break;
+ case 110:
+ return jjMoveStringLiteralDfa4_0(active0, 0x9004000010000000L, active1, 0L);
+ case 111:
+ if ((active0 & 0x8000000000L) != 0L)
+ return jjStartNfaWithStates_0(3, 39, 28);
+ else if ((active0 & 0x40000000000L) != 0L)
+ return jjStartNfaWithStates_0(3, 42, 28);
+ return jjMoveStringLiteralDfa4_0(active0, 0x240800080000000L, active1, 0L);
+ case 113:
+ return jjMoveStringLiteralDfa4_0(active0, 0x4000000000000000L, active1, 0L);
+ case 114:
+ if ((active0 & 0x20000000000L) != 0L)
+ return jjStartNfaWithStates_0(3, 41, 28);
+ return jjMoveStringLiteralDfa4_0(active0, 0x400000000L, active1, 0L);
+ case 115:
+ return jjMoveStringLiteralDfa4_0(active0, 0x400000100000000L, active1, 0L);
+ case 116:
+ return jjMoveStringLiteralDfa4_0(active0, 0x8808000L, active1, 0x3L);
+ case 117:
+ return jjMoveStringLiteralDfa4_0(active0, 0x5000000L, active1, 0L);
+ case 121:
+ return jjMoveStringLiteralDfa4_0(active0, 0x1000000000000L, active1, 0L);
+ default :
+ break;
+ }
+ return jjStartNfa_0(2, active0, active1);
+}
+static private final int jjMoveStringLiteralDfa4_0(long old0, long active0, long old1, long active1)
+{
+ if (((active0 &= old0) | (active1 &= old1)) == 0L)
+ return jjStartNfa_0(2, old0, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(3, active0, active1);
+ return 4;
+ }
+ switch(curChar)
+ {
+ case 97:
+ return jjMoveStringLiteralDfa5_0(active0, 0xa0000000000000L, active1, 0L);
+ case 99:
+ return jjMoveStringLiteralDfa5_0(active0, 0x4800000L, active1, 0L);
+ case 100:
+ return jjMoveStringLiteralDfa5_0(active0, 0x80000L, active1, 0L);
+ case 101:
+ if ((active0 & 0x20000000L) != 0L)
+ return jjStartNfaWithStates_0(4, 29, 28);
+ return jjMoveStringLiteralDfa5_0(active0, 0x10000000L, active1, 0x1L);
+ case 103:
+ return jjMoveStringLiteralDfa5_0(active0, 0x40000L, active1, 0L);
+ case 104:
+ return jjMoveStringLiteralDfa5_0(active0, 0x400000000000000L, active1, 0L);
+ case 105:
+ return jjMoveStringLiteralDfa5_0(active0, 0x800008008000L, active1, 0L);
+ case 107:
+ if ((active0 & 0x40000000L) != 0L)
+ return jjStartNfaWithStates_0(4, 30, 28);
+ break;
+ case 108:
+ return jjMoveStringLiteralDfa5_0(active0, 0x200000L, active1, 0L);
+ case 110:
+ if ((active0 & 0x80000000L) != 0L)
+ return jjStartNfaWithStates_0(4, 31, 28);
+ return jjMoveStringLiteralDfa5_0(active0, 0x800000000000000L, active1, 0L);
+ case 111:
+ return jjMoveStringLiteralDfa5_0(active0, 0x212000000400000L, active1, 0L);
+ case 114:
+ return jjMoveStringLiteralDfa5_0(active0, 0x3000000L, active1, 0x2L);
+ case 115:
+ return jjMoveStringLiteralDfa5_0(active0, 0x20000L, active1, 0L);
+ case 116:
+ if ((active0 & 0x100000000L) != 0L)
+ return jjStartNfaWithStates_0(4, 32, 28);
+ else if ((active0 & 0x200000000L) != 0L)
+ return jjStartNfaWithStates_0(4, 33, 28);
+ else if ((active0 & 0x400000000L) != 0L)
+ return jjStartNfaWithStates_0(4, 34, 28);
+ else if ((active0 & 0x4000000000000L) != 0L)
+ return jjStartNfaWithStates_0(4, 50, 28);
+ return jjMoveStringLiteralDfa5_0(active0, 0x2001000000010000L, active1, 0L);
+ case 117:
+ return jjMoveStringLiteralDfa5_0(active0, 0xd040000000100000L, active1, 0L);
+ case 121:
+ return jjMoveStringLiteralDfa5_0(active0, 0x100000000000000L, active1, 0L);
+ case 122:
+ return jjMoveStringLiteralDfa5_0(active0, 0x8000000000000L, active1, 0L);
+ default :
+ break;
+ }
+ return jjStartNfa_0(3, active0, active1);
+}
+static private final int jjMoveStringLiteralDfa5_0(long old0, long active0, long old1, long active1)
+{
+ if (((active0 &= old0) | (active1 &= old1)) == 0L)
+ return jjStartNfa_0(3, old0, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(4, active0, active1);
+ return 5;
+ }
+ switch(curChar)
+ {
+ case 97:
+ return jjMoveStringLiteralDfa6_0(active0, 0x4010000000000000L, active1, 0L);
+ case 98:
+ return jjMoveStringLiteralDfa6_0(active0, 0x40000000000000L, active1, 0L);
+ case 99:
+ if ((active0 & 0x8000000L) != 0L)
+ return jjStartNfaWithStates_0(5, 27, 28);
+ break;
+ case 100:
+ if ((active0 & 0x10000000L) != 0L)
+ return jjStartNfaWithStates_0(5, 28, 28);
+ else if ((active0 & 0x800000000000L) != 0L)
+ return jjStartNfaWithStates_0(5, 47, 28);
+ break;
+ case 101:
+ if ((active0 & 0x200000L) != 0L)
+ return jjStartNfaWithStates_0(5, 21, 28);
+ else if ((active0 & 0x1000000000000L) != 0L)
+ return jjStartNfaWithStates_0(5, 48, 28);
+ return jjMoveStringLiteralDfa6_0(active0, 0x8000000080000L, active1, 0L);
+ case 102:
+ if ((active0 & 0x400000L) != 0L)
+ return jjStartNfaWithStates_0(5, 22, 28);
+ return jjMoveStringLiteralDfa6_0(active0, 0x2000000000000000L, active1, 0L);
+ case 104:
+ if ((active0 & 0x800000L) != 0L)
+ return jjStartNfaWithStates_0(5, 23, 28);
+ break;
+ case 105:
+ return jjMoveStringLiteralDfa6_0(active0, 0x10000L, active1, 0x2L);
+ case 108:
+ return jjMoveStringLiteralDfa6_0(active0, 0x200000000100000L, active1, 0L);
+ case 109:
+ if ((active0 & 0x1000000000000000L) != 0L)
+ return jjStartNfaWithStates_0(5, 60, 28);
+ return jjMoveStringLiteralDfa6_0(active0, 0xa0000000000000L, active1, 0L);
+ case 110:
+ if ((active0 & 0x1000000L) != 0L)
+ return jjStartNfaWithStates_0(5, 24, 28);
+ else if ((active0 & 0x2000000L) != 0L)
+ return jjStartNfaWithStates_0(5, 25, 28);
+ return jjMoveStringLiteralDfa6_0(active0, 0x48000L, active1, 0L);
+ case 111:
+ return jjMoveStringLiteralDfa6_0(active0, 0x400000000000000L, active1, 0L);
+ case 114:
+ return jjMoveStringLiteralDfa6_0(active0, 0x8002000000000000L, active1, 0L);
+ case 115:
+ return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x1L);
+ case 116:
+ if ((active0 & 0x4000000L) != 0L)
+ return jjStartNfaWithStates_0(5, 26, 28);
+ else if ((active0 & 0x800000000000000L) != 0L)
+ return jjStartNfaWithStates_0(5, 59, 28);
+ return jjMoveStringLiteralDfa6_0(active0, 0x100000000020000L, active1, 0L);
+ default :
+ break;
+ }
+ return jjStartNfa_0(4, active0, active1);
+}
+static private final int jjMoveStringLiteralDfa6_0(long old0, long active0, long old1, long active1)
+{
+ if (((active0 &= old0) | (active1 &= old1)) == 0L)
+ return jjStartNfa_0(4, old0, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(5, active0, active1);
+ return 6;
+ }
+ switch(curChar)
+ {
+ case 97:
+ return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x2L);
+ case 98:
+ return jjMoveStringLiteralDfa7_0(active0, 0x8000000000000000L, active1, 0L);
+ case 100:
+ return jjMoveStringLiteralDfa7_0(active0, 0x4000000000000000L, active1, 0L);
+ case 101:
+ if ((active0 & 0x100000000000000L) != 0L)
+ return jjStartNfaWithStates_0(6, 56, 28);
+ return jjMoveStringLiteralDfa7_0(active0, 0x200000000060000L, active1, 0L);
+ case 102:
+ if ((active0 & 0x80000L) != 0L)
+ return jjStartNfaWithStates_0(6, 19, 28);
+ break;
+ case 105:
+ if ((active0 & 0x8000000000000L) != 0L)
+ return jjStartNfaWithStates_0(6, 51, 28);
+ return jjMoveStringLiteralDfa7_0(active0, 0x2000000000000000L, active1, 0L);
+ case 108:
+ return jjMoveStringLiteralDfa7_0(active0, 0x40000000010000L, active1, 0L);
+ case 112:
+ return jjMoveStringLiteralDfa7_0(active0, 0xa0000000000000L, active1, 0L);
+ case 114:
+ return jjMoveStringLiteralDfa7_0(active0, 0x400000000000000L, active1, 0L);
+ case 115:
+ return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x1L);
+ case 116:
+ if ((active0 & 0x100000L) != 0L)
+ return jjStartNfaWithStates_0(6, 20, 28);
+ else if ((active0 & 0x2000000000000L) != 0L)
+ return jjStartNfaWithStates_0(6, 49, 28);
+ else if ((active0 & 0x10000000000000L) != 0L)
+ return jjStartNfaWithStates_0(6, 52, 28);
+ break;
+ case 117:
+ return jjMoveStringLiteralDfa7_0(active0, 0x8000L, active1, 0L);
+ default :
+ break;
+ }
+ return jjStartNfa_0(5, active0, active1);
+}
+static private final int jjMoveStringLiteralDfa7_0(long old0, long active0, long old1, long active1)
+{
+ if (((active0 &= old0) | (active1 &= old1)) == 0L)
+ return jjStartNfa_0(5, old0, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(6, active0, active1);
+ return 7;
+ }
+ switch(curChar)
+ {
+ case 97:
+ return jjMoveStringLiteralDfa8_0(active0, 0x200000000000000L, active1, 0L);
+ case 100:
+ if ((active0 & 0x40000L) != 0L)
+ return jjStartNfaWithStates_0(7, 18, 28);
+ else if ((active0 & 0x80000000000000L) != 0L)
+ return jjStartNfaWithStates_0(7, 55, 28);
+ break;
+ case 101:
+ if ((active0 & 0x8000L) != 0L)
+ return jjStartNfaWithStates_0(7, 15, 28);
+ else if ((active0 & 0x10000L) != 0L)
+ return jjStartNfaWithStates_0(7, 16, 28);
+ else if ((active0 & 0x40000000000000L) != 0L)
+ return jjStartNfaWithStates_0(7, 54, 28);
+ return jjMoveStringLiteralDfa8_0(active0, 0x2000000000000000L, active1, 0x1L);
+ case 102:
+ if ((active0 & 0x20000000000000L) != 0L)
+ return jjStartNfaWithStates_0(7, 53, 28);
+ break;
+ case 110:
+ return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x2L);
+ case 114:
+ if ((active0 & 0x20000L) != 0L)
+ return jjStartNfaWithStates_0(7, 17, 28);
+ return jjMoveStringLiteralDfa8_0(active0, 0x4000000000000000L, active1, 0L);
+ case 115:
+ return jjMoveStringLiteralDfa8_0(active0, 0x8000000000000000L, active1, 0L);
+ case 116:
+ if ((active0 & 0x400000000000000L) != 0L)
+ return jjStartNfaWithStates_0(7, 58, 28);
+ break;
+ default :
+ break;
+ }
+ return jjStartNfa_0(6, active0, active1);
+}
+static private final int jjMoveStringLiteralDfa8_0(long old0, long active0, long old1, long active1)
+{
+ if (((active0 &= old0) | (active1 &= old1)) == 0L)
+ return jjStartNfa_0(6, old0, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(7, active0, active1);
+ return 8;
+ }
+ switch(curChar)
+ {
+ case 79:
+ return jjMoveStringLiteralDfa9_0(active0, 0x8000000000000000L, active1, 0L);
+ case 103:
+ return jjMoveStringLiteralDfa9_0(active0, 0L, active1, 0x2L);
+ case 105:
+ return jjMoveStringLiteralDfa9_0(active0, 0x4000000000000000L, active1, 0L);
+ case 108:
+ return jjMoveStringLiteralDfa9_0(active0, 0x2000000000000000L, active1, 0x1L);
+ case 110:
+ if ((active0 & 0x200000000000000L) != 0L)
+ return jjStartNfaWithStates_0(8, 57, 28);
+ break;
+ default :
+ break;
+ }
+ return jjStartNfa_0(7, active0, active1);
+}
+static private final int jjMoveStringLiteralDfa9_0(long old0, long active0, long old1, long active1)
+{
+ if (((active0 &= old0) | (active1 &= old1)) == 0L)
+ return jjStartNfa_0(7, old0, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(8, active0, active1);
+ return 9;
+ }
+ switch(curChar)
+ {
+ case 97:
+ return jjMoveStringLiteralDfa10_0(active0, 0L, active1, 0x1L);
+ case 98:
+ return jjMoveStringLiteralDfa10_0(active0, 0x8000000000000000L, active1, 0L);
+ case 99:
+ return jjMoveStringLiteralDfa10_0(active0, 0x4000000000000000L, active1, 0L);
+ case 100:
+ if ((active0 & 0x2000000000000000L) != 0L)
+ return jjStartNfaWithStates_0(9, 61, 28);
+ break;
+ case 117:
+ return jjMoveStringLiteralDfa10_0(active0, 0L, active1, 0x2L);
+ default :
+ break;
+ }
+ return jjStartNfa_0(8, active0, active1);
+}
+static private final int jjMoveStringLiteralDfa10_0(long old0, long active0, long old1, long active1)
+{
+ if (((active0 &= old0) | (active1 &= old1)) == 0L)
+ return jjStartNfa_0(8, old0, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(9, active0, active1);
+ return 10;
+ }
+ switch(curChar)
+ {
+ case 79:
+ return jjMoveStringLiteralDfa11_0(active0, 0x4000000000000000L, active1, 0L);
+ case 106:
+ if ((active0 & 0x8000000000000000L) != 0L)
+ return jjStartNfaWithStates_0(10, 63, 28);
+ break;
+ case 108:
+ return jjMoveStringLiteralDfa11_0(active0, 0L, active1, 0x2L);
+ case 116:
+ return jjMoveStringLiteralDfa11_0(active0, 0L, active1, 0x1L);
+ default :
+ break;
+ }
+ return jjStartNfa_0(9, active0, active1);
+}
+static private final int jjMoveStringLiteralDfa11_0(long old0, long active0, long old1, long active1)
+{
+ if (((active0 &= old0) | (active1 &= old1)) == 0L)
+ return jjStartNfa_0(9, old0, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(10, active0, active1);
+ return 11;
+ }
+ switch(curChar)
+ {
+ case 97:
+ return jjMoveStringLiteralDfa12_0(active0, 0L, active1, 0x2L);
+ case 98:
+ return jjMoveStringLiteralDfa12_0(active0, 0x4000000000000000L, active1, 0L);
+ case 111:
+ return jjMoveStringLiteralDfa12_0(active0, 0L, active1, 0x1L);
+ default :
+ break;
+ }
+ return jjStartNfa_0(10, active0, active1);
+}
+static private final int jjMoveStringLiteralDfa12_0(long old0, long active0, long old1, long active1)
+{
+ if (((active0 &= old0) | (active1 &= old1)) == 0L)
+ return jjStartNfa_0(10, old0, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(11, active0, active1);
+ return 12;
+ }
+ switch(curChar)
+ {
+ case 106:
+ if ((active0 & 0x4000000000000000L) != 0L)
+ return jjStartNfaWithStates_0(12, 62, 28);
+ break;
+ case 114:
+ if ((active1 & 0x1L) != 0L)
+ return jjStartNfaWithStates_0(12, 64, 28);
+ break;
+ case 116:
+ return jjMoveStringLiteralDfa13_0(active0, 0L, active1, 0x2L);
+ default :
+ break;
+ }
+ return jjStartNfa_0(11, active0, active1);
+}
+static private final int jjMoveStringLiteralDfa13_0(long old0, long active0, long old1, long active1)
+{
+ if (((active0 &= old0) | (active1 &= old1)) == 0L)
+ return jjStartNfa_0(11, old0, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(12, 0L, active1);
+ return 13;
+ }
+ switch(curChar)
+ {
+ case 111:
+ return jjMoveStringLiteralDfa14_0(active1, 0x2L);
+ default :
+ break;
+ }
+ return jjStartNfa_0(12, 0L, active1);
+}
+static private final int jjMoveStringLiteralDfa14_0(long old1, long active1)
+{
+ if (((active1 &= old1)) == 0L)
+ return jjStartNfa_0(12, 0L, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(13, 0L, active1);
+ return 14;
+ }
+ switch(curChar)
+ {
+ case 114:
+ return jjMoveStringLiteralDfa15_0(active1, 0x2L);
+ default :
+ break;
+ }
+ return jjStartNfa_0(13, 0L, active1);
+}
+static private final int jjMoveStringLiteralDfa15_0(long old1, long active1)
+{
+ if (((active1 &= old1)) == 0L)
+ return jjStartNfa_0(13, 0L, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(14, 0L, active1);
+ return 15;
+ }
+ switch(curChar)
+ {
+ case 79:
+ return jjMoveStringLiteralDfa16_0(active1, 0x2L);
+ default :
+ break;
+ }
+ return jjStartNfa_0(14, 0L, active1);
+}
+static private final int jjMoveStringLiteralDfa16_0(long old1, long active1)
+{
+ if (((active1 &= old1)) == 0L)
+ return jjStartNfa_0(14, 0L, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(15, 0L, active1);
+ return 16;
+ }
+ switch(curChar)
+ {
+ case 98:
+ return jjMoveStringLiteralDfa17_0(active1, 0x2L);
+ default :
+ break;
+ }
+ return jjStartNfa_0(15, 0L, active1);
+}
+static private final int jjMoveStringLiteralDfa17_0(long old1, long active1)
+{
+ if (((active1 &= old1)) == 0L)
+ return jjStartNfa_0(15, 0L, old1);
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) {
+ jjStopStringLiteralDfa_0(16, 0L, active1);
+ return 17;
+ }
+ switch(curChar)
+ {
+ case 106:
+ if ((active1 & 0x2L) != 0L)
+ return jjStartNfaWithStates_0(17, 65, 28);
+ break;
+ default :
+ break;
+ }
+ return jjStartNfa_0(16, 0L, active1);
+}
+static private final void jjCheckNAdd(int state)
+{
+ if (jjrounds[state] != jjround)
+ {
+ jjstateSet[jjnewStateCnt++] = state;
+ jjrounds[state] = jjround;
+ }
+}
+static private final void jjAddStates(int start, int end)
+{
+ do {
+ jjstateSet[jjnewStateCnt++] = jjnextStates[start];
+ } while (start++ != end);
+}
+static private final void jjCheckNAddTwoStates(int state1, int state2)
+{
+ jjCheckNAdd(state1);
+ jjCheckNAdd(state2);
+}
+static private final void jjCheckNAddStates(int start, int end)
+{
+ do {
+ jjCheckNAdd(jjnextStates[start]);
+ } while (start++ != end);
+}
+static private final void jjCheckNAddStates(int start)
+{
+ jjCheckNAdd(jjnextStates[start]);
+ jjCheckNAdd(jjnextStates[start + 1]);
+}
+static final long[] jjbitVec0 = {
+ 0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL
+};
+static private final int jjMoveNfa_0(int startState, int curPos)
+{
+ int[] nextStates;
+ int startsAt = 0;
+ jjnewStateCnt = 60;
+ int i = 1;
+ jjstateSet[0] = startState;
+ int j, kind = 0x7fffffff;
+ for (;;)
+ {
+ if (++jjround == 0x7fffffff)
+ ReInitRounds();
+ if (curChar < 64)
+ {
+ long l = 1L << curChar;
+ MatchLoop: do
+ {
+ switch(jjstateSet[--i])
+ {
+ case 49:
+ if (curChar == 42)
+ jjCheckNAddTwoStates(55, 56);
+ else if (curChar == 47)
+ jjCheckNAddStates(0, 2);
+ break;
+ case 0:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(3, 9);
+ else if (curChar == 47)
+ jjAddStates(10, 11);
+ else if (curChar == 36)
+ {
+ if (kind > 66)
+ kind = 66;
+ jjCheckNAdd(28);
+ }
+ else if (curChar == 34)
+ jjCheckNAddStates(12, 14);
+ else if (curChar == 39)
+ jjAddStates(15, 16);
+ else if (curChar == 46)
+ jjCheckNAdd(4);
+ if ((0x3fe000000000000L & l) != 0L)
+ {
+ if (kind > 7)
+ kind = 7;
+ jjCheckNAddTwoStates(1, 2);
+ }
+ else if (curChar == 48)
+ {
+ if (kind > 7)
+ kind = 7;
+ jjCheckNAddStates(17, 19);
+ }
+ break;
+ case 1:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 7)
+ kind = 7;
+ jjCheckNAddTwoStates(1, 2);
+ break;
+ case 3:
+ if (curChar == 46)
+ jjCheckNAdd(4);
+ break;
+ case 4:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 11)
+ kind = 11;
+ jjCheckNAddStates(20, 22);
+ break;
+ case 6:
+ if ((0x280000000000L & l) != 0L)
+ jjCheckNAdd(7);
+ break;
+ case 7:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 11)
+ kind = 11;
+ jjCheckNAddTwoStates(7, 8);
+ break;
+ case 9:
+ if (curChar == 39)
+ jjAddStates(15, 16);
+ break;
+ case 10:
+ if ((0xffffff7fffffdbffL & l) != 0L)
+ jjCheckNAdd(11);
+ break;
+ case 11:
+ if (curChar == 39 && kind > 13)
+ kind = 13;
+ break;
+ case 13:
+ if ((0x8400000000L & l) != 0L)
+ jjCheckNAdd(11);
+ break;
+ case 14:
+ if ((0xff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(15, 11);
+ break;
+ case 15:
+ if ((0xff000000000000L & l) != 0L)
+ jjCheckNAdd(11);
+ break;
+ case 16:
+ if ((0xf000000000000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 17;
+ break;
+ case 17:
+ if ((0xff000000000000L & l) != 0L)
+ jjCheckNAdd(15);
+ break;
+ case 18:
+ if (curChar == 34)
+ jjCheckNAddStates(12, 14);
+ break;
+ case 19:
+ if ((0xfffffffbffffdbffL & l) != 0L)
+ jjCheckNAddStates(12, 14);
+ break;
+ case 21:
+ if ((0x8400000000L & l) != 0L)
+ jjCheckNAddStates(12, 14);
+ break;
+ case 22:
+ if (curChar == 34 && kind > 14)
+ kind = 14;
+ break;
+ case 23:
+ if ((0xff000000000000L & l) != 0L)
+ jjCheckNAddStates(23, 26);
+ break;
+ case 24:
+ if ((0xff000000000000L & l) != 0L)
+ jjCheckNAddStates(12, 14);
+ break;
+ case 25:
+ if ((0xf000000000000L & l) != 0L)
+ jjstateSet[jjnewStateCnt++] = 26;
+ break;
+ case 26:
+ if ((0xff000000000000L & l) != 0L)
+ jjCheckNAdd(24);
+ break;
+ case 27:
+ if (curChar != 36)
+ break;
+ if (kind > 66)
+ kind = 66;
+ jjCheckNAdd(28);
+ break;
+ case 28:
+ if ((0x3ff001000000000L & l) == 0L)
+ break;
+ if (kind > 66)
+ kind = 66;
+ jjCheckNAdd(28);
+ break;
+ case 29:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(3, 9);
+ break;
+ case 30:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(30, 31);
+ break;
+ case 31:
+ if (curChar != 46)
+ break;
+ if (kind > 11)
+ kind = 11;
+ jjCheckNAddStates(27, 29);
+ break;
+ case 32:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 11)
+ kind = 11;
+ jjCheckNAddStates(27, 29);
+ break;
+ case 34:
+ if ((0x280000000000L & l) != 0L)
+ jjCheckNAdd(35);
+ break;
+ case 35:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 11)
+ kind = 11;
+ jjCheckNAddTwoStates(35, 8);
+ break;
+ case 36:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(36, 37);
+ break;
+ case 38:
+ if ((0x280000000000L & l) != 0L)
+ jjCheckNAdd(39);
+ break;
+ case 39:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 11)
+ kind = 11;
+ jjCheckNAddTwoStates(39, 8);
+ break;
+ case 40:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddStates(30, 32);
+ break;
+ case 42:
+ if ((0x280000000000L & l) != 0L)
+ jjCheckNAdd(43);
+ break;
+ case 43:
+ if ((0x3ff000000000000L & l) != 0L)
+ jjCheckNAddTwoStates(43, 8);
+ break;
+ case 44:
+ if (curChar != 48)
+ break;
+ if (kind > 7)
+ kind = 7;
+ jjCheckNAddStates(17, 19);
+ break;
+ case 46:
+ if ((0x3ff000000000000L & l) == 0L)
+ break;
+ if (kind > 7)
+ kind = 7;
+ jjCheckNAddTwoStates(46, 2);
+ break;
+ case 47:
+ if ((0xff000000000000L & l) == 0L)
+ break;
+ if (kind > 7)
+ kind = 7;
+ jjCheckNAddTwoStates(47, 2);
+ break;
+ case 48:
+ if (curChar == 47)
+ jjAddStates(10, 11);
+ break;
+ case 50:
+ if ((0xffffffffffffdbffL & l) != 0L)
+ jjCheckNAddStates(0, 2);
+ break;
+ case 51:
+ if ((0x2400L & l) != 0L && kind > 5)
+ kind = 5;
+ break;
+ case 52:
+ if (curChar == 10 && kind > 5)
+ kind = 5;
+ break;
+ case 53:
+ if (curChar == 13)
+ jjstateSet[jjnewStateCnt++] = 52;
+ break;
+ case 54:
+ if (curChar == 42)
+ jjCheckNAddTwoStates(55, 56);
+ break;
+ case 55:
+ if ((0xfffffbffffffffffL & l) != 0L)
+ jjCheckNAddTwoStates(55, 56);
+ break;
+ case 56:
+ if (curChar == 42)
+ jjCheckNAddStates(33, 35);
+ break;
+ case 57:
+ if ((0xffff7bffffffffffL & l) != 0L)
+ jjCheckNAddTwoStates(58, 56);
+ break;
+ case 58:
+ if ((0xfffffbffffffffffL & l) != 0L)
+ jjCheckNAddTwoStates(58, 56);
+ break;
+ case 59:
+ if (curChar == 47 && kind > 6)
+ kind = 6;
+ break;
+ default : break;
+ }
+ } while(i != startsAt);
+ }
+ else if (curChar < 128)
+ {
+ long l = 1L << (curChar & 077);
+ MatchLoop: do
+ {
+ switch(jjstateSet[--i])
+ {
+ case 0:
+ case 28:
+ if ((0x7fffffe87fffffeL & l) == 0L)
+ break;
+ if (kind > 66)
+ kind = 66;
+ jjCheckNAdd(28);
+ break;
+ case 2:
+ if ((0x100000001000L & l) != 0L && kind > 7)
+ kind = 7;
+ break;
+ case 5:
+ if ((0x2000000020L & l) != 0L)
+ jjAddStates(36, 37);
+ break;
+ case 8:
+ if ((0x5000000050L & l) != 0L && kind > 11)
+ kind = 11;
+ break;
+ case 10:
+ if ((0xffffffffefffffffL & l) != 0L)
+ jjCheckNAdd(11);
+ break;
+ case 12:
+ if (curChar == 92)
+ jjAddStates(38, 40);
+ break;
+ case 13:
+ if ((0x14404410000000L & l) != 0L)
+ jjCheckNAdd(11);
+ break;
+ case 19:
+ if ((0xffffffffefffffffL & l) != 0L)
+ jjCheckNAddStates(12, 14);
+ break;
+ case 20:
+ if (curChar == 92)
+ jjAddStates(41, 43);
+ break;
+ case 21:
+ if ((0x14404410000000L & l) != 0L)
+ jjCheckNAddStates(12, 14);
+ break;
+ case 33:
+ if ((0x2000000020L & l) != 0L)
+ jjAddStates(44, 45);
+ break;
+ case 37:
+ if ((0x2000000020L & l) != 0L)
+ jjAddStates(46, 47);
+ break;
+ case 41:
+ if ((0x2000000020L & l) != 0L)
+ jjAddStates(48, 49);
+ break;
+ case 45:
+ if ((0x100000001000000L & l) != 0L)
+ jjCheckNAdd(46);
+ break;
+ case 46:
+ if ((0x7e0000007eL & l) == 0L)
+ break;
+ if (kind > 7)
+ kind = 7;
+ jjCheckNAddTwoStates(46, 2);
+ break;
+ case 50:
+ jjAddStates(0, 2);
+ break;
+ case 55:
+ jjCheckNAddTwoStates(55, 56);
+ break;
+ case 57:
+ case 58:
+ jjCheckNAddTwoStates(58, 56);
+ break;
+ default : break;
+ }
+ } while(i != startsAt);
+ }
+ else
+ {
+ int i2 = (curChar & 0xff) >> 6;
+ long l2 = 1L << (curChar & 077);
+ MatchLoop: do
+ {
+ switch(jjstateSet[--i])
+ {
+ case 10:
+ if ((jjbitVec0[i2] & l2) != 0L)
+ jjstateSet[jjnewStateCnt++] = 11;
+ break;
+ case 19:
+ if ((jjbitVec0[i2] & l2) != 0L)
+ jjAddStates(12, 14);
+ break;
+ case 50:
+ if ((jjbitVec0[i2] & l2) != 0L)
+ jjAddStates(0, 2);
+ break;
+ case 55:
+ if ((jjbitVec0[i2] & l2) != 0L)
+ jjCheckNAddTwoStates(55, 56);
+ break;
+ case 57:
+ case 58:
+ if ((jjbitVec0[i2] & l2) != 0L)
+ jjCheckNAddTwoStates(58, 56);
+ break;
+ default : break;
+ }
+ } while(i != startsAt);
+ }
+ if (kind != 0x7fffffff)
+ {
+ jjmatchedKind = kind;
+ jjmatchedPos = curPos;
+ kind = 0x7fffffff;
+ }
+ ++curPos;
+ if ((i = jjnewStateCnt) == (startsAt = 60 - (jjnewStateCnt = startsAt)))
+ return curPos;
+ try { curChar = input_stream.readChar(); }
+ catch(java.io.IOException e) { return curPos; }
+ }
+}
+static final int[] jjnextStates = {
+ 50, 51, 53, 30, 31, 36, 37, 40, 41, 8, 49, 54, 19, 20, 22, 10,
+ 12, 45, 47, 2, 4, 5, 8, 19, 20, 24, 22, 32, 33, 8, 40, 41,
+ 8, 56, 57, 59, 6, 7, 13, 14, 16, 21, 23, 25, 34, 35, 38, 39,
+ 42, 43,
+};
+public static final String[] jjstrLiteralImages = {
+"", null, null, null, null, null, null, null, null, null, null, null, null,
+null, null, "\143\157\156\164\151\156\165\145", "\166\157\154\141\164\151\154\145",
+"\162\145\147\151\163\164\145\162", "\165\156\163\151\147\156\145\144", "\164\171\160\145\144\145\146",
+"\144\145\146\141\165\154\164", "\144\157\165\142\154\145", "\163\151\172\145\157\146",
+"\163\167\151\164\143\150", "\162\145\164\165\162\156", "\145\170\164\145\162\156",
+"\163\164\162\165\143\164", "\163\164\141\164\151\143", "\163\151\147\156\145\144",
+"\167\150\151\154\145", "\142\162\145\141\153", "\165\156\151\157\156", "\143\157\156\163\164",
+"\146\154\157\141\164", "\163\150\157\162\164", "\145\154\163\145", "\143\141\163\145",
+"\154\157\156\147", "\145\156\165\155", "\141\165\164\157", "\166\157\151\144",
+"\143\150\141\162", "\147\157\164\157", "\146\157\162", "\151\156\164", "\151\146", "\144\157",
+"\107\114\166\157\151\144", "\107\114\142\171\164\145", "\107\114\163\150\157\162\164",
+"\107\114\151\156\164", "\107\114\163\151\172\145\151", "\107\114\146\154\157\141\164",
+"\107\114\143\154\141\155\160\146", "\107\114\144\157\165\142\154\145", "\107\114\143\154\141\155\160\144",
+"\107\114\165\142\171\164\145", "\107\114\142\157\157\154\145\141\156", "\107\114\165\163\150\157\162\164",
+"\107\114\165\151\156\164", "\107\114\145\156\165\155", "\107\114\142\151\164\146\151\145\154\144",
+"\107\114\125\161\165\141\144\162\151\143\117\142\152", "\107\114\125\156\165\162\142\163\117\142\152",
+"\107\114\125\164\145\163\163\145\154\141\164\157\162", "\107\114\125\164\162\151\141\156\147\165\154\141\164\157\162\117\142\152",
+null, null, null, "\73", "\173", "\175", "\54", "\75", "\72", "\50", "\51", "\133",
+"\135", "\52", "\56\56\56", "\52\75", "\57\75", "\45\75", "\53\75", "\55\75",
+"\74\74\75", "\76\76\75", "\46\75", "\136\75", "\174\75", "\77", "\174\174", "\46\46",
+"\174", "\136", "\46", "\75\75", "\41\75", "\74", "\76", "\74\75", "\76\75", "\74\74",
+"\76\76", "\53", "\55", "\57", "\45", "\53\53", "\55\55", "\176", "\41", "\56",
+"\55\76", };
+public static final String[] lexStateNames = {
+ "DEFAULT",
+};
+static final long[] jjtoToken = {
+ 0xffffffffffffe881L, 0x7ffffffffffe7L,
+};
+static final long[] jjtoSkip = {
+ 0x7eL, 0x0L,
+};
+static private ASCII_CharStream input_stream;
+static private final int[] jjrounds = new int[60];
+static private final int[] jjstateSet = new int[120];
+static protected char curChar;
+public C2JTokenManager(ASCII_CharStream stream)
+{
+ if (input_stream != null)
+ throw new TokenMgrError("ERROR: Second call to constructor of static lexer. You must use ReInit() to initialize the static variables.", TokenMgrError.STATIC_LEXER_ERROR);
+ input_stream = stream;
+}
+public C2JTokenManager(ASCII_CharStream stream, int lexState)
+{
+ this(stream);
+ SwitchTo(lexState);
+}
+static public void ReInit(ASCII_CharStream stream)
+{
+ jjmatchedPos = jjnewStateCnt = 0;
+ curLexState = defaultLexState;
+ input_stream = stream;
+ ReInitRounds();
+}
+static private final void ReInitRounds()
+{
+ int i;
+ jjround = 0x80000001;
+ for (i = 60; i-- > 0;)
+ jjrounds[i] = 0x80000000;
+}
+static public void ReInit(ASCII_CharStream stream, int lexState)
+{
+ ReInit(stream);
+ SwitchTo(lexState);
+}
+static public void SwitchTo(int lexState)
+{
+ if (lexState >= 1 || lexState < 0)
+ throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);
+ else
+ curLexState = lexState;
+}
+
+static private final Token jjFillToken()
+{
+ Token t = Token.newToken(jjmatchedKind);
+ t.kind = jjmatchedKind;
+ String im = jjstrLiteralImages[jjmatchedKind];
+ t.image = (im == null) ? input_stream.GetImage() : im;
+ t.beginLine = input_stream.getBeginLine();
+ t.beginColumn = input_stream.getBeginColumn();
+ t.endLine = input_stream.getEndLine();
+ t.endColumn = input_stream.getEndColumn();
+ return t;
+}
+
+static int curLexState = 0;
+static int defaultLexState = 0;
+static int jjnewStateCnt;
+static int jjround;
+static int jjmatchedPos;
+static int jjmatchedKind;
+
+public static final Token getNextToken()
+{
+ int kind;
+ Token specialToken = null;
+ Token matchedToken;
+ int curPos = 0;
+
+ EOFLoop :
+ for (;;)
+ {
+ try
+ {
+ curChar = input_stream.BeginToken();
+ }
+ catch(java.io.IOException e)
+ {
+ jjmatchedKind = 0;
+ matchedToken = jjFillToken();
+ return matchedToken;
+ }
+
+ try { input_stream.backup(0);
+ while (curChar <= 32 && (0x100002600L & (1L << curChar)) != 0L)
+ curChar = input_stream.BeginToken();
+ }
+ catch (java.io.IOException e1) { continue EOFLoop; }
+ jjmatchedKind = 0x7fffffff;
+ jjmatchedPos = 0;
+ curPos = jjMoveStringLiteralDfa0_0();
+ if (jjmatchedKind != 0x7fffffff)
+ {
+ if (jjmatchedPos + 1 < curPos)
+ input_stream.backup(curPos - jjmatchedPos - 1);
+ if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
+ {
+ matchedToken = jjFillToken();
+ return matchedToken;
+ }
+ else
+ {
+ continue EOFLoop;
+ }
+ }
+ int error_line = input_stream.getEndLine();
+ int error_column = input_stream.getEndColumn();
+ String error_after = null;
+ boolean EOFSeen = false;
+ try { input_stream.readChar(); input_stream.backup(1); }
+ catch (java.io.IOException e1) {
+ EOFSeen = true;
+ error_after = curPos <= 1 ? "" : input_stream.GetImage();
+ if (curChar == '\n' || curChar == '\r') {
+ error_line++;
+ error_column = 0;
+ }
+ else
+ error_column++;
+ }
+ if (!EOFSeen) {
+ input_stream.backup(1);
+ error_after = curPos <= 1 ? "" : input_stream.GetImage();
+ }
+ throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);
+ }
+}
+
+}
diff --git a/C2J/CFuncDeclaration.java b/C2J/CFuncDeclaration.java
new file mode 100644
index 0000000..b28740a
--- /dev/null
+++ b/C2J/CFuncDeclaration.java
@@ -0,0 +1,959 @@
+/**
+ * @(#) CFuncDeclaration.java
+ */
+
+import java.lang.System;
+import java.lang.String;
+import java.util.Vector;
+
+/**
+ * The function-declaration holder !
+ *
+ * @see CFuncVariable
+ * @version 1.00, 12. Novemeber 1999
+ * @author Sven Goethel
+ *
+ */
+public class CFuncDeclaration
+ implements Cloneable
+{
+ public boolean isValid;
+
+ public CFuncVariable funcSpec;
+ public Vector argList;
+
+
+ public static final String jniFuncPrefixStd= "Java_" ;
+ public static final String jniFuncArgPrefix="JNIEnv *env, jobject obj";
+
+ public static final int FUNC_ERROR = 0;
+ public static final int FUNC_OK = 1;
+ public static final int FUNC_TYPE_MISSING = 2;
+ public static final int FUNC_NAME_MISSING = 3;
+ public static final int FUNC_LASTARG_INCOMPLETE = 4;
+
+ public CFuncDeclaration()
+ {
+ isValid = true;
+ funcSpec = null;
+ argList = new Vector();
+ }
+
+ protected Object clone()
+ throws CloneNotSupportedException
+ {
+ int i;
+ CFuncDeclaration nobj = new CFuncDeclaration();
+
+ nobj.isValid=isValid;
+
+ try {
+ nobj.funcSpec=(CFuncVariable)funcSpec.clone();
+ } catch (Exception ex) {}
+
+ for(i=0; i<argList.size(); i++)
+ {
+ CFuncVariable cfvar = (CFuncVariable)
+ argList.elementAt(i);
+ try {
+ nobj.argList.addElement(cfvar.clone());
+ } catch (Exception ex) {}
+ }
+
+ return nobj;
+ }
+
+ public int getBuildState()
+ {
+ if(funcSpec==null ||
+ (funcSpec.typeC==null && funcSpec.typeJava==null)
+ )
+ {
+ return FUNC_TYPE_MISSING;
+ }
+
+ if(funcSpec!=null && funcSpec.identifier==null)
+ return FUNC_NAME_MISSING;
+
+ if(funcSpec==null)
+ {
+ System.err.println("ERROR: FunctionSpec is null !");
+ return FUNC_ERROR;
+ }
+
+ if(funcSpec!=null &&
+ (funcSpec.typeC==null || funcSpec.typeJava==null)
+ )
+ {
+ System.err.println("ERROR: FunctionSpec: typeC or typeJava is null !");
+ return FUNC_ERROR;
+ }
+
+ int i;
+ CFuncVariable cfvar = null;
+
+ for(i=0; i<argList.size(); i++)
+ {
+ cfvar = (CFuncVariable)argList.elementAt(i);
+ if(cfvar.complete==false && i<argList.size()-1)
+ {
+ System.err.println("ERROR: FunctionSpec: argList["+i+"] != complete - even if it is not the last working element !");
+ return FUNC_ERROR;
+ }
+ else if(cfvar.complete==true &&
+ ( cfvar.typeC == null ||
+ cfvar.typeJava == null ||
+ cfvar.identifier == null
+ )
+ )
+ {
+ System.err.println("ERROR: FunctionSpec: argList["+i+"] is set to complete - even if its members are not set complete !");
+ return FUNC_ERROR;
+ }
+ else if(cfvar.complete==false)
+ return FUNC_LASTARG_INCOMPLETE;
+ }
+ return FUNC_OK;
+ }
+
+ public boolean isValid()
+ {
+ return getBuildState()==FUNC_OK;
+ }
+
+ public CFuncVariable getWorkingVar()
+ {
+ int state = getBuildState();
+
+ if(state==FUNC_ERROR) return null;
+
+ if(funcSpec==null && state==FUNC_TYPE_MISSING)
+ {
+ funcSpec = new CFuncVariable();
+ return funcSpec;
+ }
+ else if(state==FUNC_TYPE_MISSING || state==FUNC_NAME_MISSING)
+ {
+ return funcSpec;
+ }
+ else if(state==FUNC_LASTARG_INCOMPLETE)
+ {
+ return (CFuncVariable)
+ argList.elementAt(argList.size()-1);
+ }
+
+ CFuncVariable cfvar = new CFuncVariable();
+ argList.addElement(cfvar);
+ return cfvar;
+ }
+
+ public void setWorkingVar(CFuncVariable cfvar)
+ {
+ int state = getBuildState();
+
+ if(state==FUNC_ERROR) return ;
+
+ if(funcSpec==null ||
+ state==FUNC_TYPE_MISSING || state==FUNC_NAME_MISSING
+ )
+ {
+ funcSpec=cfvar;
+ return;
+ }
+ else if(state==FUNC_LASTARG_INCOMPLETE)
+ {
+ argList.setElementAt(cfvar, argList.size()-1);
+ return;
+ }
+
+ argList.addElement(cfvar);
+ return;
+ }
+
+ public CFuncVariable getLastIncompleteVar()
+ {
+ int state = getBuildState();
+
+ if(state==FUNC_LASTARG_INCOMPLETE)
+ {
+ return (CFuncVariable)
+ argList.elementAt(argList.size()-1);
+ }
+
+ return null;
+ }
+
+ public String state2String()
+ {
+ int state = getBuildState();
+
+ return state2String(state);
+ }
+
+ public static String state2String(int state)
+ {
+ switch (state)
+ {
+ case FUNC_OK :
+ return "OK";
+ case FUNC_TYPE_MISSING:
+ return "TYPE MISSING";
+ case FUNC_NAME_MISSING:
+ return "NAME MISSING";
+ case FUNC_LASTARG_INCOMPLETE:
+ return "LAST ARG INCOMPLETE";
+ case FUNC_ERROR:
+ default:
+ return "ERROR";
+ }
+ }
+
+ public String args2JavaStrList()
+ {
+ String res = new String();
+ CFuncVariable cfvar;
+ int i,j;
+
+ for (i=0; i<argList.size(); i++)
+ {
+ cfvar = (CFuncVariable) argList.elementAt(i);
+ res += "\t\t" +
+ cfvar.getJavaTypeString() + " " +
+ cfvar.identifier ;
+
+ if(i<argList.size()-1)
+ res += ",\n";
+ else
+ res += "\n";
+ }
+ return res;
+ }
+
+ public String argsType2CStrList()
+ {
+ String res = new String();
+ CFuncVariable cfvar;
+ int i,j;
+
+ for (i=0; i<argList.size(); i++)
+ {
+ cfvar = (CFuncVariable) argList.elementAt(i);
+ res += cfvar.getCTypeString();
+
+ if(i<argList.size()-1)
+ res += ", ";
+ }
+ return res;
+ }
+
+ public String toString()
+ {
+ String tmp = new String();
+
+ tmp += state2String() + ": " ;
+
+ int i;
+ CFuncVariable cfvar = null;
+
+ if(funcSpec==null)
+ tmp+="<type> <name> (";
+ else
+ tmp+=funcSpec.toString()+" (\n";
+
+ for(i=0; i<argList.size(); i++)
+ {
+ cfvar = (CFuncVariable)argList.elementAt(i);
+ tmp+="\t"+i+": "+cfvar.toString()+", \n";
+ }
+ tmp += ");\n" ;
+
+ return tmp;
+ }
+
+ /**
+ * Generates a 'clone' of THIS instance AND
+ * changes the "typeJava" which must be a "void" Pointer
+ * in the arguments-vector,
+ * to another basic type, e.g. "typeJava":="int" !!
+ *
+ * @arg customType the new type
+ * @arg which the Void-Pointer number within the arg-vector,
+ * or "-1" for all Void-Pointer
+ * E.g.: "0" for ther first occurence of a Void-Pointer
+ * @return The changed clone of THIS
+ */
+ protected CFuncDeclaration getChangedVoidPtr2CustomPtrClone
+ (String customType, int which)
+ {
+ CFuncDeclaration tmp = null;
+
+ try {
+ tmp = (CFuncDeclaration) this.clone();
+ } catch (Exception ex)
+ { System.err.println(ex);}
+
+ if(tmp==null)
+ return null;
+
+ CFuncVariable cfvar;
+ int i,n;
+ boolean isNewTypeVoid = customType.equals("void");
+
+ for (i=0,n=0 ; i<tmp.argList.size(); i++)
+ {
+ cfvar = (CFuncVariable) tmp.argList.elementAt(i);
+ if(cfvar.isVoid && cfvar.arrayNumber>0)
+ {
+ if(which==n || which<0)
+ {
+ cfvar.typeJava=customType;
+ cfvar.isVoid=isNewTypeVoid;
+ }
+ if(which==n)
+ break; /* job done - leave loop */
+ n++;
+ }
+ }
+ return tmp;
+ }
+
+ protected String args2JNIStrList()
+ {
+ String res = new String();
+ CFuncVariable cfvar;
+ int i,j;
+
+ for (i=0; i<argList.size(); i++)
+ {
+ cfvar = (CFuncVariable) argList.elementAt(i);
+ res += ",\n\t\t" +
+ cfvar.getJNITypeString() + " " +
+ cfvar.identifier ;
+ }
+ return res;
+ }
+
+ protected int getNumberOfVoidPointerArgs()
+ {
+ CFuncVariable cfvar;
+ int i;
+ int n;
+
+ for (i=0, n=0; i<argList.size(); i++)
+ {
+ cfvar = (CFuncVariable) argList.elementAt(i);
+ if(cfvar.isVoid && cfvar.arrayNumber>0)
+ n++;
+ }
+ return n;
+ }
+
+ protected String getFuncArgsSignature()
+ {
+ String res = new String();
+ CFuncVariable cfvar;
+ int i,j;
+
+ res += "__";
+
+ for (i=0; i<argList.size(); i++)
+ {
+ cfvar = (CFuncVariable) argList.elementAt(i);
+ for (j=0; j<cfvar.arrayNumber; j++)
+ res+="_3"; /* "[" -> type[] */
+ if(cfvar.typeJava.equals("boolean"))
+ res+="Z";
+ else if(cfvar.typeJava.equals("byte"))
+ res+="B";
+ else if(cfvar.typeJava.equals("char"))
+ res+="C";
+ else if(cfvar.typeJava.equals("short"))
+ res+="S";
+ else if(cfvar.typeJava.equals("int"))
+ res+="I";
+ else if(cfvar.typeJava.equals("long"))
+ res+="J";
+ else if(cfvar.typeJava.equals("float"))
+ res+="F";
+ else if(cfvar.typeJava.equals("double"))
+ res+="D";
+ else if(cfvar.typeJava.equals("String"))
+ res+="Ljava_lang_String_2";
+ }
+ return res;
+ }
+
+ protected String __toJniJavaCode(boolean isFinal)
+ {
+ String res = new String();
+
+ if(funcSpec.arrayNumber>0)
+ {
+ System.err.println("ERROR: Pointer As Function-ReturnType is not supported yet !");
+ System.err.println("Function: "+funcSpec);
+ return "";
+ }
+
+ if(isFinal)
+ res += "\tpublic final native ";
+ else
+ res += "\tpublic native ";
+
+ res += funcSpec.getJavaTypeString() + " " +
+ funcSpec.identifier + " (\n";
+
+ res += args2JavaStrList();
+ res += "\t) ;\n";
+
+ return res;
+ }
+
+ public String toJniJavaCode(boolean isFinal)
+ {
+ int numberOfVoidPointerArgs = getNumberOfVoidPointerArgs();
+
+ if(numberOfVoidPointerArgs==0)
+ {
+ return __toJniJavaCode(isFinal);
+ }
+
+ CFuncDeclaration tmp = null;
+ String res = new String();
+
+ tmp=getChangedVoidPtr2CustomPtrClone("byte", -1);
+ if(tmp!=null) res+=tmp.__toJniJavaCode(isFinal);
+
+ tmp=getChangedVoidPtr2CustomPtrClone("short", -1);
+ if(tmp!=null) res+=tmp.__toJniJavaCode(isFinal);
+
+ tmp=getChangedVoidPtr2CustomPtrClone("int", -1);
+ if(tmp!=null) res+=tmp.__toJniJavaCode(isFinal);
+
+ tmp=getChangedVoidPtr2CustomPtrClone("float", -1);
+ if(tmp!=null) res+=tmp.__toJniJavaCode(isFinal);
+
+ tmp=getChangedVoidPtr2CustomPtrClone("double", -1);
+ if(tmp!=null) res+=tmp.__toJniJavaCode(isFinal);
+
+ tmp=getChangedVoidPtr2CustomPtrClone("boolean", -1);
+ if(tmp!=null) res+=tmp.__toJniJavaCode(isFinal);
+
+ tmp=getChangedVoidPtr2CustomPtrClone("long", -1);
+ if(tmp!=null) res+=tmp.__toJniJavaCode(isFinal);
+
+ return res;
+ }
+
+ protected String __toJniCCode(String clazzName, int exportMode,
+ int modifier, boolean overloaded)
+ {
+ String res = new String();
+ CFuncVariable cfvar;
+ int i;
+
+ if(funcSpec.arrayNumber>0)
+ {
+ System.err.println("ERROR: Pointer As Function-ReturnType is not supported yet !");
+ System.err.println("Function: "+funcSpec);
+ return "";
+ }
+
+ res += "\tJNIEXPORT " + funcSpec.getJNITypeString() +
+ " JNICALL\n" ;
+
+ res += "\t" +
+ jniFuncPrefixStd+clazzName+"_"+funcSpec.identifier;
+
+ if(overloaded)
+ res += getFuncArgsSignature();
+ res += " (\n";
+
+ res += "\t\t"+jniFuncArgPrefix;
+ res += args2JNIStrList();
+ res += ")\n";
+
+ res += "\t{\n";
+
+ if(exportMode==C2J.EXPORT_JNI_C_DYN)
+ {
+ //
+ // Add the global static OpenGL function pointer
+ //
+ res += "\t\tstatic "+funcSpec.getJNITypeString()+
+ " (CALLBACK *__func_ptr__)("+argsType2CStrList()+") = NULL;\n";
+ }
+
+ //
+ // Add the return variable
+ //
+ if(funcSpec.typeJava.equals("void")==false)
+ {
+ res += "\t\t"+funcSpec.getJNITypeString()+" ret;\n\n";
+ }
+
+ String jniCMethodBaseType;
+
+ //
+ // Adding the JNI access Methods
+ // for Arrays ...
+ // THE VARABLE DEFINITIONS
+ //
+ for (i=0; i<argList.size() ; i++ )
+ {
+ cfvar = (CFuncVariable) argList.elementAt(i);
+
+ if( cfvar.arrayNumber>0 )
+ {
+
+ jniCMethodBaseType = cfvar.getJniCMethodBaseType();
+
+ if( !cfvar.isConst ||
+ (modifier&C2J.MODIFIER_JNI_COPY_CHECK)>0 )
+ res += "\t\tjboolean isCopiedArray" +i+ " = JNI_FALSE;\n";
+
+ res += "\t\t" +
+ "j" + cfvar.typeJava +
+ " *ptr" + i +
+ " = NULL;\n";
+
+ if( (modifier&C2J.MODIFIER_JNI_COPY_CHECK )>0 )
+ {
+ //
+ // JAU COPY Warning, if copy is used !!!
+ //
+ res += "\t\tstatic int isWarned"+i+" = 0;\n";
+ }
+ }
+ }
+
+ res += "\n" ;
+
+ if(exportMode==C2J.EXPORT_JNI_C_DYN)
+ {
+ //
+ // Add the global static OpenGL function pointer assignment
+ //
+ res += "\t\tif(__func_ptr__==NULL) {\n";
+ res += "\t\t\t__func_ptr__ = ("+
+ funcSpec.getJNITypeString()+" (CALLBACK *)("+
+ argsType2CStrList()+"))\n"+
+ "\t\t\t\tgetGLProcAddressHelper(\""
+ +funcSpec.identifier+"\", NULL, 1, 0);\n";
+ res += "\t\t\tif(__func_ptr__==NULL)\n";
+ if(funcSpec.typeC.equals("void")==false)
+ res += "\t\t\t\treturn 0;\n";
+ else
+ res += "\t\t\t\treturn;\n";
+ res += "\t\t}\n";
+ }
+
+ //
+ // Adding the JNI access Methods
+ // for Arrays ...
+ // THE ARGUMENT ACCESS
+ //
+ for (i=0; i<argList.size() ; i++ )
+ {
+ cfvar = (CFuncVariable) argList.elementAt(i);
+
+ if( cfvar.arrayNumber>0 )
+ {
+ jniCMethodBaseType = cfvar.getJniCMethodBaseType();
+
+ res += "\t\tif("+cfvar.identifier+"!=NULL)\n";
+ res += "\t\t{\n";
+
+ if ( (modifier&C2J.MODIFIER_JNI_CRITICAL_ARRAY)>0 )
+ {
+ if( !cfvar.isConst ||
+ (modifier&C2J.MODIFIER_JNI_COPY_CHECK)>0 )
+ {
+ res += "\t\t\t" +
+ "ptr" + i + " = " +
+ "(j" + cfvar.typeJava + " *) " +
+ "(*env)->GetPrimitiveArrayCritical" +
+ "(env, " + cfvar.identifier + ", " +
+ "&isCopiedArray"+i+");\n";
+ } else {
+ res += "\t\t\t" +
+ "ptr" + i + " = " +
+ "(j" + cfvar.typeJava + " *) " +
+ "(*env)->GetPrimitiveArrayCritical" +
+ "(env, " + cfvar.identifier + ", 0);\n";
+ }
+ } else {
+ if( !cfvar.isConst ||
+ (modifier&C2J.MODIFIER_JNI_COPY_CHECK)>0 )
+ {
+ res += "\t\t\t" +
+ "ptr" + i + " = " +
+ "(*env)->Get" + jniCMethodBaseType +
+ "ArrayElements(env, " +
+ cfvar.identifier + ", " +
+ "&isCopiedArray"+i+");\n";
+ } else {
+ res += "\t\t\t" +
+ "ptr" + i + " = " +
+ "(*env)->Get" + jniCMethodBaseType +
+ "ArrayElements(env, " +
+ cfvar.identifier + ", 0);\n";
+ }
+ }
+ if( (modifier&C2J.MODIFIER_JNI_COPY_CHECK)>0 )
+ {
+ //
+ // JAU COPY Warning, if copy is used !!!
+ //
+ res += "\t\t\tif( isCopiedArray"+i+" == JNI_TRUE && isWarned"+i+"==0 ) {\n";
+ res += "\t\t\t\tisWarned"+i+"=1;\n";
+ res += "\t\t\t\tprintf(\"COPY by "+funcSpec.identifier+" arg: "+cfvar.identifier+"\");\n";
+ res += "\t\t\t}\n";
+ }
+ res += "\t\t}\n";
+
+ }
+ }
+
+ //
+ // Add the return variable assignment, incl. casting !
+ //
+ if(funcSpec.typeC.equals("void")==false)
+ {
+ res += "\t\tret = ("+funcSpec.getJNITypeString()+") ";
+ }
+ else res += "\t\t";
+
+ //
+ // Add the native function call !
+ //
+ if(exportMode==C2J.EXPORT_JNI_C)
+ res += funcSpec.identifier + " (\n";
+ else
+ res += "__func_ptr__ (\n";
+
+ for (i=0; i<argList.size() ; i++ )
+ {
+ cfvar = (CFuncVariable) argList.elementAt(i);
+
+ //
+ // add a casting to the found
+ // original type, e.g.: OpenGL-Types
+ //
+ res += "\t\t\t(" + cfvar.getCTypeString() +") ";
+
+ if( cfvar.arrayNumber>0 )
+ res += "ptr"+i;
+ else
+ res += cfvar.identifier;
+
+ if(i<argList.size()-1)
+ res += ",\n";
+ else
+ res += "\n";
+ }
+ res += "\t\t);\n\n";
+
+ //
+ // Adding the JNI release Methods
+ // for Arrays ... depending of const-Array and pinning
+ //
+ for (i=0; i<argList.size() ; i++ )
+ {
+ cfvar = (CFuncVariable) argList.elementAt(i);
+
+ if( cfvar.arrayNumber>0 )
+ {
+ jniCMethodBaseType = cfvar.getJniCMethodBaseType();
+
+ res += "\t\tif("+cfvar.identifier+"!=NULL)\n";
+ res += "\t\t{\n";
+ if ( (modifier&C2J.MODIFIER_JNI_CRITICAL_ARRAY)>0 )
+ {
+ if( !cfvar.isConst )
+ {
+ //
+ // Free the memory, or the pinning lock.
+ // A copy is needed,
+ // if the Get*Array method used
+ // the copy method !
+ //
+ res += "\t\t\t(*env)->ReleasePrimitiveArrayCritical" +
+ "(env, "+ cfvar.identifier +
+ ", ptr" + i + ", "
+ +"(isCopiedArray"+i+" == JNI_TRUE)?0:JNI_ABORT"
+ +");\n";
+ } else {
+ //
+ // Just free the memory, or the pinning lock.
+ // No copy needed,
+ // because of the const data type !
+ //
+ res += "\t\t\t(*env)->ReleasePrimitiveArrayCritical" +
+ "(env, "+ cfvar.identifier +
+ ", ptr" + i + ", JNI_ABORT);\n";
+ }
+ } else {
+ if( !cfvar.isConst )
+ {
+ //
+ // Free the memory, or the pinning lock.
+ // A copy is needed,
+ // if the Get*Array method used
+ // the copy method !
+ //
+ res += "\t\t\t(*env)->Release" +
+ jniCMethodBaseType+
+ "ArrayElements(env, "+
+ cfvar.identifier +
+ ", ptr" + i + ", "
+ +"(isCopiedArray"+i+" == JNI_TRUE)?0:JNI_ABORT"
+ +");\n";
+ } else {
+ //
+ // Just free the memory, or the pinning lock.
+ // No copy needed,
+ // because of the const data type !
+ //
+ res += "\t\t\t(*env)->Release" +
+ jniCMethodBaseType+
+ "ArrayElements(env, "+
+ cfvar.identifier +
+ ", ptr" + i + ", JNI_ABORT);\n";
+ }
+ }
+ res += "\t\t}\n";
+ }
+ }
+
+ //
+ // Let's give the baby to the caller ...
+ //
+ if(funcSpec.typeJava.equals("void")==false)
+ res += "\t\treturn ret;\n";
+ res += "\t}\n";
+
+ return res;
+ }
+
+ public String toJniCCode(String clazzName, int exportMode, int modifier)
+ {
+ int numberOfVoidPointerArgs = getNumberOfVoidPointerArgs();
+
+ if(numberOfVoidPointerArgs==0)
+ {
+ return __toJniCCode(clazzName, exportMode, modifier, false);
+ }
+
+ CFuncDeclaration tmp = null;
+ String res = new String();
+
+ tmp=getChangedVoidPtr2CustomPtrClone("byte", -1);
+ if(tmp!=null) res+=tmp.__toJniCCode(clazzName, exportMode, modifier, true);
+
+ tmp=getChangedVoidPtr2CustomPtrClone("short", -1);
+ if(tmp!=null) res+=tmp.__toJniCCode(clazzName, exportMode, modifier, true);
+
+ tmp=getChangedVoidPtr2CustomPtrClone("int", -1);
+ if(tmp!=null) res+=tmp.__toJniCCode(clazzName, exportMode, modifier, true);
+
+ tmp=getChangedVoidPtr2CustomPtrClone("float", -1);
+ if(tmp!=null) res+=tmp.__toJniCCode(clazzName, exportMode, modifier, true);
+
+ tmp=getChangedVoidPtr2CustomPtrClone("double", -1);
+ if(tmp!=null) res+=tmp.__toJniCCode(clazzName, exportMode, modifier, true);
+
+ tmp=getChangedVoidPtr2CustomPtrClone("boolean", -1);
+ if(tmp!=null) res+=tmp.__toJniCCode(clazzName, exportMode, modifier, true);
+
+ tmp=getChangedVoidPtr2CustomPtrClone("long", -1);
+ if(tmp!=null) res+=tmp.__toJniCCode(clazzName, exportMode, modifier, true);
+
+ return res;
+ }
+
+ protected String __toMsJDirectCode(String dllname)
+ {
+ String res = new String();
+ CFuncVariable cfvar;
+ int i;
+
+ if(funcSpec.arrayNumber>0)
+ {
+ System.err.println("ERROR: Pointer As Function-ReturnType is not supported yet !");
+ System.err.println("Function: "+funcSpec);
+ return "";
+ }
+
+ //
+ // Use The JDirect security tag to make security calls easy !
+ // This one grants access to all MSJVM's >=
+ // "Microsoft (R) VM for Java, 5.0 Release 5.0.0.3186"
+ // without signing the applet !!!
+ //
+ // Making the mapping from the "static native" wrapper function
+ // to the corresponding native function
+ //
+ res += "\t/**\n";
+ res += "\t * @dll.import(\""+dllname+"\",entrypoint=\""+
+ funcSpec.identifier+"\")\n";
+ res += "\t */\n";
+
+ //
+ // adding the "static native" wrapper function
+ //
+ res += "\tprivate static native ";
+ res += funcSpec.getJavaTypeString() +
+ " __" + funcSpec.identifier + " (\n";
+ res += args2JavaStrList();
+ res += "\t) ;\n";
+
+ //
+ // adding our GL4Java glue to the
+ // "static native" wrapper function
+ //
+ res += "\tpublic final ";
+ res += funcSpec.getJavaTypeString() +
+ " " + funcSpec.identifier + " (\n";
+ res += args2JavaStrList();
+ res += "\t)\n";
+ res += "\t{\n";
+ res += "\t\t";
+ if(funcSpec.typeJava.equals("void")==false)
+ res += "return ";
+ res += "__"+funcSpec.identifier+"(\n";
+ for (i=0; i<argList.size(); i++)
+ {
+ cfvar = (CFuncVariable) argList.elementAt(i);
+ res += "\t\t\t" + cfvar.identifier ;
+ if(i<argList.size()-1)
+ res += ",\n";
+ else
+ res += "\n";
+ }
+ res += "\t\t) ;\n";
+ res += "\t}\n";
+
+ return res;
+ }
+
+ public String toMsJDirectCode(String dllname)
+ {
+ int numberOfVoidPointerArgs = getNumberOfVoidPointerArgs();
+
+ if(numberOfVoidPointerArgs==0)
+ {
+ return __toMsJDirectCode(dllname);
+ }
+
+ CFuncDeclaration tmp = null;
+ String res = new String();
+
+ tmp=getChangedVoidPtr2CustomPtrClone("byte", -1);
+ if(tmp!=null) res+=tmp.__toMsJDirectCode(dllname);
+
+ tmp=getChangedVoidPtr2CustomPtrClone("short", -1);
+ if(tmp!=null) res+=tmp.__toMsJDirectCode(dllname);
+
+ tmp=getChangedVoidPtr2CustomPtrClone("int", -1);
+ if(tmp!=null) res+=tmp.__toMsJDirectCode(dllname);
+
+ tmp=getChangedVoidPtr2CustomPtrClone("float", -1);
+ if(tmp!=null) res+=tmp.__toMsJDirectCode(dllname);
+
+ tmp=getChangedVoidPtr2CustomPtrClone("double", -1);
+ if(tmp!=null) res+=tmp.__toMsJDirectCode(dllname);
+
+ tmp=getChangedVoidPtr2CustomPtrClone("boolean", -1);
+ if(tmp!=null) res+=tmp.__toMsJDirectCode(dllname);
+
+ tmp=getChangedVoidPtr2CustomPtrClone("long", -1);
+ if(tmp!=null) res+=tmp.__toMsJDirectCode(dllname);
+
+ return res;
+ }
+
+ /**
+ *
+ * For testing and documentation purposes !
+ *
+ * @param args The default cmd-line arguments,
+ * not used here !
+ *
+ * @return Nothing !
+ *
+ * @see CFuncDeclaration
+ * @see CFuncVariable
+ */
+ public static void main(String args[])
+ {
+ CFuncDeclaration cfunc;
+ CFuncVariable cfvar;
+ int i;
+ boolean doubleArray;
+
+ //
+ // Simulation fuer die Konvertierung nach Java (JNI+MS)
+ // und C (JNI Glue Functions)
+ //
+ System.out.println("\n\nTEST with getWorkingVar !!!!!!");
+ cfunc = new CFuncDeclaration();
+ System.out.println("creation: "+cfunc);
+ cfvar = cfunc.getWorkingVar();
+ System.out.println("after fetching 1st working var: "+cfunc);
+ cfvar.typeC = "int";
+ cfvar.typeJava = "int";
+ System.out.println("after setting funcSpec.type: "+cfunc);
+ cfvar.identifier = "testFunction";
+ cfvar.complete = true;
+ System.out.println("after setting funcSpec.name: "+cfunc);
+
+ for(i=0, doubleArray=false; i<4; i++)
+ {
+ cfvar = cfunc.getWorkingVar();
+ if(i%2==0)
+ {
+ cfvar.arrayNumber=doubleArray?1:2;
+ doubleArray=!doubleArray;
+ }
+ if(i%3==0)
+ cfvar.isConst=true;
+ cfvar.typeC = "int";
+ cfvar.typeJava = "int";
+ cfvar.identifier = "arg"+i;
+ cfvar.complete = true;
+ }
+ cfvar = cfunc.getWorkingVar();
+ cfvar.arrayNumber=1;
+ cfvar.typeC = "GLvoid";
+ cfvar.typeJava = "void";
+ cfvar.identifier = "anyptr1";
+ cfvar.isVoid = true;
+ cfvar.complete = true;
+
+ System.out.println("after all:"+cfunc);
+ System.out.println("\n\nTEST JNI JAVA (!final && final):");
+ System.out.println(cfunc.toJniJavaCode(false));
+ System.out.println(cfunc.toJniJavaCode(true));
+ System.out.println("\n\nTEST MS-JDirect Java:");
+ System.out.println(cfunc.toMsJDirectCode("OPENGL32"));
+ System.out.println("\n\nTEST JNI C:");
+ System.out.println(cfunc.toJniCCode("jau_Demo",
+ C2J.EXPORT_JNI_C_DYN, 0));
+
+ cfvar.arrayNumber=2;
+ cfvar.isConst=true;
+
+ System.out.println("\n\nTEST JNI JAVA (!final && final):");
+ System.out.println(cfunc.toJniJavaCode(false));
+ System.out.println(cfunc.toJniJavaCode(true));
+ System.out.println("\n\nTEST MS-JDirect Java:");
+ System.out.println(cfunc.toMsJDirectCode("GLU32"));
+ System.out.println("\n\nTEST JNI C:");
+ System.out.println(cfunc.toJniCCode("jau_Demo",
+ C2J.EXPORT_JNI_C_DYN, 0));
+
+ return;
+ }
+}
+
+
diff --git a/C2J/CFuncVariable.java b/C2J/CFuncVariable.java
new file mode 100644
index 0000000..a2e08f0
--- /dev/null
+++ b/C2J/CFuncVariable.java
@@ -0,0 +1,186 @@
+/**
+ * @(#) CFuncVariable.java
+ */
+
+import java.lang.String;
+
+/**
+ * The variable-declaration holder !
+ *
+ * @see CFuncDeclaration
+ * @version 1.00, 12. Novemeber 1999
+ * @author Sven Goethel
+ *
+ */
+public class CFuncVariable
+ implements Cloneable
+{
+
+ public boolean complete;
+
+ public boolean isVoid;
+ public boolean isConst;
+
+ public int arrayNumber;
+
+ public boolean isGLUPtrObject;
+
+ /**
+ * This Variable holds the base type
+ * of the original C type !
+ *
+ * E.g. "const int[][]" -> "int"
+ * "const GLint *" -> "GLint"
+ *
+ */
+ public String typeC;
+
+ /**
+ * This Variable holds the base type
+ * of the corresponding Java type !
+ *
+ * E.g. "const int[][]" -> "int"
+ * "const GLint *" -> "int"
+ *
+ */
+ public String typeJava;
+
+ /**
+ * This Variable holds the
+ * name of the variable !
+ *
+ * E.g. "const int[][] arg1;" -> "arg1"
+ *
+ */
+ public String identifier;
+
+ public CFuncVariable()
+ {
+ complete=false;
+
+ isVoid=false;
+ isConst=false;
+ isGLUPtrObject=false;
+
+ arrayNumber=0;
+
+ typeC = null;
+ typeJava = null;
+ identifier = null;
+ }
+
+ protected Object clone()
+ throws CloneNotSupportedException
+ {
+ CFuncVariable nobj=new CFuncVariable();
+ nobj.typeC=new String(typeC);
+ nobj.typeJava=new String(typeJava);
+ nobj.identifier=new String(identifier);
+ nobj.complete=complete;
+ nobj.isVoid=isVoid;
+ nobj.isConst=isConst;
+ nobj.arrayNumber=arrayNumber;
+ nobj.isGLUPtrObject=isGLUPtrObject;
+ return nobj;
+ }
+
+ public String toString()
+ {
+ int i;
+ String res = new String();
+ if(isConst)
+ res += "const ";
+ res += "("+typeC+"|"+typeJava+") ";
+ for(i=0; i<arrayNumber; i++)
+ res += "*";
+ if(isGLUPtrObject)
+ res += "*";
+ res += " "+identifier;
+ if(isVoid)
+ res += " /* Void */";
+ return res;
+ }
+
+ /**
+ * This Method extracts the
+ * correct Type-Part for the JNI-Access Methods !
+ * This is needed for Array-Types !
+ *
+ * E.g.:
+ * jintArray -> Int : (*env)->GetIntArrayElements(...)
+ */
+ public String getJniCMethodBaseType()
+ {
+ if(typeJava!=null)
+ {
+ return typeJava.substring(0, 1).toUpperCase() +
+ typeJava.substring(1, typeJava.length());
+ }
+
+ return null;
+ }
+
+ /**
+ * This Method returns the complete
+ * Java-Type-String for this variable.
+ *
+ */
+ public String getJavaTypeString()
+ {
+ int j;
+ String res = new String();
+
+ res+=typeJava;
+
+ for(j=0; j<arrayNumber; j++)
+ res+="[]";
+
+ return res;
+ }
+
+ /**
+ * This Method returns the complete
+ * JNI-Type-String for this variable.
+ *
+ */
+ public String getJNITypeString()
+ {
+ int j;
+ String res = new String();
+
+ if(isVoid)
+ res+=typeJava;
+ else
+ res+="j"+typeJava;
+
+ if(arrayNumber>0)
+ res+="Array";
+
+ return res;
+ }
+
+ /**
+ * This Method returns the complete
+ * C-Type-String for this variable.
+ *
+ */
+ public String getCTypeString()
+ {
+ int j;
+ String res = new String();
+
+ if(isConst)
+ res+="const ";
+
+ res+=typeC;
+
+ if(arrayNumber>0||isGLUPtrObject)
+ res+=" ";
+ for(j=0; j<arrayNumber; j++)
+ res+="*";
+ if(isGLUPtrObject)
+ res+="*";
+ return res;
+ }
+}
+
diff --git a/C2J/ParseException.java b/C2J/ParseException.java
new file mode 100644
index 0000000..bbb75b0
--- /dev/null
+++ b/C2J/ParseException.java
@@ -0,0 +1,189 @@
+/* Generated By:JavaCC: Do not edit this line. ParseException.java Version 0.7pre6 */
+/**
+ * This exception is thrown when parse errors are encountered.
+ * You can explicitly create objects of this exception type by
+ * calling the method generateParseException in the generated
+ * parser.
+ *
+ * You can modify this class to customize your error reporting
+ * mechanisms so long as you retain the public fields.
+ */
+public class ParseException extends Exception {
+
+ /**
+ * This constructor is used by the method "generateParseException"
+ * in the generated parser. Calling this constructor generates
+ * a new object of this type with the fields "currentToken",
+ * "expectedTokenSequences", and "tokenImage" set. The boolean
+ * flag "specialConstructor" is also set to true to indicate that
+ * this constructor was used to create this object.
+ * This constructor calls its super class with the empty string
+ * to force the "toString" method of parent class "Throwable" to
+ * print the error message in the form:
+ * ParseException: <result of getMessage>
+ */
+ public ParseException(Token currentTokenVal,
+ int[][] expectedTokenSequencesVal,
+ String[] tokenImageVal
+ )
+ {
+ super("");
+ specialConstructor = true;
+ currentToken = currentTokenVal;
+ expectedTokenSequences = expectedTokenSequencesVal;
+ tokenImage = tokenImageVal;
+ }
+
+ /**
+ * The following constructors are for use by you for whatever
+ * purpose you can think of. Constructing the exception in this
+ * manner makes the exception behave in the normal way - i.e., as
+ * documented in the class "Throwable". The fields "errorToken",
+ * "expectedTokenSequences", and "tokenImage" do not contain
+ * relevant information. The JavaCC generated code does not use
+ * these constructors.
+ */
+
+ public ParseException() {
+ super();
+ specialConstructor = false;
+ }
+
+ public ParseException(String message) {
+ super(message);
+ specialConstructor = false;
+ }
+
+ /**
+ * This variable determines which constructor was used to create
+ * this object and thereby affects the semantics of the
+ * "getMessage" method (see below).
+ */
+ protected boolean specialConstructor;
+
+ /**
+ * This is the last token that has been consumed successfully. If
+ * this object has been created due to a parse error, the token
+ * followng this token will (therefore) be the first error token.
+ */
+ public Token currentToken;
+
+ /**
+ * Each entry in this array is an array of integers. Each array
+ * of integers represents a sequence of tokens (by their ordinal
+ * values) that is expected at this point of the parse.
+ */
+ public int[][] expectedTokenSequences;
+
+ /**
+ * This is a reference to the "tokenImage" array of the generated
+ * parser within which the parse error occurred. This array is
+ * defined in the generated ...Constants interface.
+ */
+ public String[] tokenImage;
+
+ /**
+ * This method has the standard behavior when this object has been
+ * created using the standard constructors. Otherwise, it uses
+ * "currentToken" and "expectedTokenSequences" to generate a parse
+ * error message and returns it. If this object has been created
+ * due to a parse error, and you do not catch it (it gets thrown
+ * from the parser), then this method is called during the printing
+ * of the final stack trace, and hence the correct error message
+ * gets displayed.
+ */
+ public String getMessage() {
+ if (!specialConstructor) {
+ return super.getMessage();
+ }
+ String expected = "";
+ int maxSize = 0;
+ for (int i = 0; i < expectedTokenSequences.length; i++) {
+ if (maxSize < expectedTokenSequences[i].length) {
+ maxSize = expectedTokenSequences[i].length;
+ }
+ for (int j = 0; j < expectedTokenSequences[i].length; j++) {
+ expected += tokenImage[expectedTokenSequences[i][j]] + " ";
+ }
+ if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0) {
+ expected += "...";
+ }
+ expected += eol + " ";
+ }
+ String retval = "Encountered \"";
+ Token tok = currentToken.next;
+ for (int i = 0; i < maxSize; i++) {
+ if (i != 0) retval += " ";
+ if (tok.kind == 0) {
+ retval += tokenImage[0];
+ break;
+ }
+ retval += add_escapes(tok.image);
+ tok = tok.next;
+ }
+ retval += "\" at line " + currentToken.next.beginLine + ", column " + currentToken.next.beginColumn + "." + eol;
+ if (expectedTokenSequences.length == 1) {
+ retval += "Was expecting:" + eol + " ";
+ } else {
+ retval += "Was expecting one of:" + eol + " ";
+ }
+ retval += expected;
+ return retval;
+ }
+
+ /**
+ * The end of line string for this machine.
+ */
+ protected String eol = System.getProperty("line.separator", "\n");
+
+ /**
+ * Used to convert raw characters to their escaped version
+ * when these raw version cannot be used as part of an ASCII
+ * string literal.
+ */
+ protected String add_escapes(String str) {
+ StringBuffer retval = new StringBuffer();
+ char ch;
+ for (int i = 0; i < str.length(); i++) {
+ switch (str.charAt(i))
+ {
+ case 0 :
+ continue;
+ case '\b':
+ retval.append("\\b");
+ continue;
+ case '\t':
+ retval.append("\\t");
+ continue;
+ case '\n':
+ retval.append("\\n");
+ continue;
+ case '\f':
+ retval.append("\\f");
+ continue;
+ case '\r':
+ retval.append("\\r");
+ continue;
+ case '\"':
+ retval.append("\\\"");
+ continue;
+ case '\'':
+ retval.append("\\\'");
+ continue;
+ case '\\':
+ retval.append("\\\\");
+ continue;
+ default:
+ if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) {
+ String s = "0000" + Integer.toString(ch, 16);
+ retval.append("\\u" + s.substring(s.length() - 4, s.length()));
+ } else {
+ retval.append(ch);
+ }
+ continue;
+ }
+ }
+ return retval.toString();
+ }
+
+}
diff --git a/C2J/Token.java b/C2J/Token.java
new file mode 100644
index 0000000..4a72e32
--- /dev/null
+++ b/C2J/Token.java
@@ -0,0 +1,79 @@
+/* Generated By:JavaCC: Do not edit this line. Token.java Version 0.7pre3 */
+/**
+ * Describes the input token stream.
+ */
+
+public class Token {
+
+ /**
+ * An integer that describes the kind of this token. This numbering
+ * system is determined by JavaCCParser, and a table of these numbers is
+ * stored in the file ...Constants.java.
+ */
+ public int kind;
+
+ /**
+ * beginLine and beginColumn describe the position of the first character
+ * of this token; endLine and endColumn describe the position of the
+ * last character of this token.
+ */
+ public int beginLine, beginColumn, endLine, endColumn;
+
+ /**
+ * The string image of the token.
+ */
+ public String image;
+
+ /**
+ * A reference to the next regular (non-special) token from the input
+ * stream. If this is the last token from the input stream, or if the
+ * token manager has not read tokens beyond this one, this field is
+ * set to null. This is true only if this token is also a regular
+ * token. Otherwise, see below for a description of the contents of
+ * this field.
+ */
+ public Token next;
+
+ /**
+ * This field is used to access special tokens that occur prior to this
+ * token, but after the immediately preceding regular (non-special) token.
+ * If there are no such special tokens, this field is set to null.
+ * When there are more than one such special token, this field refers
+ * to the last of these special tokens, which in turn refers to the next
+ * previous special token through its specialToken field, and so on
+ * until the first special token (whose specialToken field is null).
+ * The next fields of special tokens refer to other special tokens that
+ * immediately follow it (without an intervening regular token). If there
+ * is no such token, this field is null.
+ */
+ public Token specialToken;
+
+ /**
+ * Returns the image.
+ */
+ public final String toString()
+ {
+ return image;
+ }
+
+ /**
+ * Returns a new Token object, by default. However, if you want, you
+ * can create and return subclass objects based on the value of ofKind.
+ * Simply add the cases to the switch for all those special cases.
+ * For example, if you have a subclass of Token called IDToken that
+ * you want to create if ofKind is ID, simlpy add something like :
+ *
+ * case MyParserConstants.ID : return new IDToken();
+ *
+ * to the following switch statement. Then you can cast matchedToken
+ * variable to the appropriate type and use it in your lexical actions.
+ */
+ public static final Token newToken(int ofKind)
+ {
+ switch(ofKind)
+ {
+ default : return new Token();
+ }
+ }
+
+}
diff --git a/C2J/TokenMgrError.java b/C2J/TokenMgrError.java
new file mode 100644
index 0000000..e967e4d
--- /dev/null
+++ b/C2J/TokenMgrError.java
@@ -0,0 +1,131 @@
+/* Generated By:JavaCC: Do not edit this line. TokenMgrError.java Version 0.7pre2 */
+public class TokenMgrError extends Error
+{
+ /*
+ * Ordinals for various reasons why an Error of this type can be thrown.
+ */
+
+ /**
+ * Lexical error occured.
+ */
+ static final int LEXICAL_ERROR = 0;
+
+ /**
+ * An attempt wass made to create a second instance of a static token manager.
+ */
+ static final int STATIC_LEXER_ERROR = 1;
+
+ /**
+ * Tried to change to an invalid lexical state.
+ */
+ static final int INVALID_LEXICAL_STATE = 2;
+
+ /**
+ * Detected (and bailed out of) an infinite loop in the token manager.
+ */
+ static final int LOOP_DETECTED = 3;
+
+ /**
+ * Indicates the reason why the exception is thrown. It will have
+ * one of the above 4 values.
+ */
+ int errorCode;
+
+ /**
+ * Replaces unprintable characters by their espaced (or unicode escaped)
+ * equivalents in the given string
+ */
+ protected static final String addEscapes(String str) {
+ StringBuffer retval = new StringBuffer();
+ char ch;
+ for (int i = 0; i < str.length(); i++) {
+ switch (str.charAt(i))
+ {
+ case 0 :
+ continue;
+ case '\b':
+ retval.append("\\b");
+ continue;
+ case '\t':
+ retval.append("\\t");
+ continue;
+ case '\n':
+ retval.append("\\n");
+ continue;
+ case '\f':
+ retval.append("\\f");
+ continue;
+ case '\r':
+ retval.append("\\r");
+ continue;
+ case '\"':
+ retval.append("\\\"");
+ continue;
+ case '\'':
+ retval.append("\\\'");
+ continue;
+ case '\\':
+ retval.append("\\\\");
+ continue;
+ default:
+ if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) {
+ String s = "0000" + Integer.toString(ch, 16);
+ retval.append("\\u" + s.substring(s.length() - 4, s.length()));
+ } else {
+ retval.append(ch);
+ }
+ continue;
+ }
+ }
+ return retval.toString();
+ }
+
+ /**
+ * Returns a detailed message for the Error when it is thrown by the
+ * token manager to indicate a lexical error.
+ * Parameters :
+ * EOFSeen : indicates if EOF caused the lexicl error
+ * curLexState : lexical state in which this error occured
+ * errorLine : line number when the error occured
+ * errorColumn : column number when the error occured
+ * errorAfter : prefix that was seen before this error occured
+ * curchar : the offending character
+ * Note: You can customize the lexical error message by modifying this method.
+ */
+ private static final String LexicalError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar) {
+ return("Lexical error at line " +
+ errorLine + ", column " +
+ errorColumn + ". Encountered: " +
+ (EOFSeen ? "<EOF> " : ("\"" + addEscapes(String.valueOf(curChar)) + "\"") + " (" + (int)curChar + "), ") +
+ "after : \"" + addEscapes(errorAfter) + "\"");
+ }
+
+ /**
+ * You can also modify the body of this method to customize your error messages.
+ * For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
+ * of end-users concern, so you can return something like :
+ *
+ * "Internal Error : Please file a bug report .... "
+ *
+ * from this method for such cases in the release version of your parser.
+ */
+ public String getMessage() {
+ return super.getMessage();
+ }
+
+ /*
+ * Constructors of various flavors follow.
+ */
+
+ public TokenMgrError() {
+ }
+
+ public TokenMgrError(String message, int reason) {
+ super(message);
+ errorCode = reason;
+ }
+
+ public TokenMgrError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar, int reason) {
+ this(LexicalError(EOFSeen, lexState, errorLine, errorColumn, errorAfter, curChar), reason);
+ }
+}
diff --git a/C2J/gl-enum-auto.java b/C2J/gl-enum-auto.java
new file mode 100644
index 0000000..97860ad
--- /dev/null
+++ b/C2J/gl-enum-auto.java
@@ -0,0 +1,1317 @@
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: gl-enum-auto.orig . . .
+ * Destination-Class: gl4java_GLEnum !
+ */
+
+ public static final int GL_1PASS_ARB = 0x80A1;
+ public static final int GL_1PASS_SGIS = 0x80A1;
+ public static final int GL_2D = 0x0600;
+ public static final int GL_2PASS_0_ARB = 0x80A2;
+ public static final int GL_2PASS_0_SGIS = 0x80A2;
+ public static final int GL_2PASS_1_ARB = 0x80A3;
+ public static final int GL_2PASS_1_SGIS = 0x80A3;
+ public static final int GL_2_BYTES = 0x1407;
+ public static final int GL_3D = 0x0601;
+ public static final int GL_3D_COLOR = 0x0602;
+ public static final int GL_3D_COLOR_TEXTURE = 0x0603;
+ public static final int GL_3_BYTES = 0x1408;
+ public static final int GL_422_AVERAGE_EXT = 0x80CE;
+ public static final int GL_422_EXT = 0x80CC;
+ public static final int GL_422_REV_AVERAGE_EXT = 0x80CF;
+ public static final int GL_422_REV_EXT = 0x80CD;
+ public static final int GL_4D_COLOR_TEXTURE = 0x0604;
+ public static final int GL_4PASS_0_ARB = 0x80A4;
+ public static final int GL_4PASS_0_SGIS = 0x80A4;
+ public static final int GL_4PASS_1_ARB = 0x80A5;
+ public static final int GL_4PASS_1_SGIS = 0x80A5;
+ public static final int GL_4PASS_2_ARB = 0x80A6;
+ public static final int GL_4PASS_2_SGIS = 0x80A6;
+ public static final int GL_4PASS_3_ARB = 0x80A7;
+ public static final int GL_4PASS_3_SGIS = 0x80A7;
+ public static final int GL_4_BYTES = 0x1409;
+ public static final int GL_ABGR_EXT = 0x8000;
+ public static final int GL_ACCUM = 0x0100;
+ public static final int GL_ACCUM_ALPHA_BITS = 0x0D5B;
+ public static final int GL_ACCUM_BLUE_BITS = 0x0D5A;
+ public static final int GL_ACCUM_BUFFER_BIT = 0x00000200;
+ public static final int GL_ACCUM_CLEAR_VALUE = 0x0B80;
+ public static final int GL_ACCUM_GREEN_BITS = 0x0D59;
+ public static final int GL_ACCUM_RED_BITS = 0x0D58;
+ public static final int GL_ACTIVE_TEXTURE_ARB = 0x84E0;
+ public static final int GL_ADD = 0x0104;
+ public static final int GL_ADD_SIGNED_EXT = 0x8574;
+ public static final int GL_ALIASED_LINE_WIDTH_RANGE = 0x846E;
+ public static final int GL_ALIASED_POINT_SIZE_RANGE = 0x846D;
+ public static final int GL_ALLOW_DRAW_FRG_HINT_PGI = 107024;
+ public static final int GL_ALLOW_DRAW_MEM_HINT_PGI = 107025;
+ public static final int GL_ALLOW_DRAW_OBJ_HINT_PGI = 107022;
+ public static final int GL_ALLOW_DRAW_WIN_HINT_PGI = 107023;
+ public static final int GL_ALL_ATTRIB_BITS = 0x000FFFFF;
+ public static final int GL_ALL_STATIC_DATA_IBM = 0x19294;
+ public static final int GL_ALPHA = 0x1906;
+ public static final int GL_ALPHA12 = 0x803D;
+ public static final int GL_ALPHA12_EXT = 0x803D;
+ public static final int GL_ALPHA16 = 0x803E;
+ public static final int GL_ALPHA16_EXT = 0x803E;
+ public static final int GL_ALPHA4 = 0x803B;
+ public static final int GL_ALPHA4_EXT = 0x803B;
+ public static final int GL_ALPHA8 = 0x803C;
+ public static final int GL_ALPHA8_EXT = 0x803C;
+ public static final int GL_ALPHA_BIAS = 0x0D1D;
+ public static final int GL_ALPHA_BITS = 0x0D55;
+ public static final int GL_ALPHA_MAX_CLAMP_INGR = 0x8567;
+ public static final int GL_ALPHA_MIN_CLAMP_INGR = 0x8563;
+ public static final int GL_ALPHA_SCALE = 0x0D1C;
+ public static final int GL_ALPHA_TEST = 0x0BC0;
+ public static final int GL_ALPHA_TEST_FUNC = 0x0BC1;
+ public static final int GL_ALPHA_TEST_REF = 0x0BC2;
+ public static final int GL_ALWAYS = 0x0207;
+ public static final int GL_ALWAYS_FAST_HINT_PGI = 107020;
+ public static final int GL_ALWAYS_SOFT_HINT_PGI = 107021;
+ public static final int GL_AMBIENT = 0x1200;
+ public static final int GL_AMBIENT_AND_DIFFUSE = 0x1602;
+ public static final int GL_AND = 0x1501;
+ public static final int GL_AND_INVERTED = 0x1504;
+ public static final int GL_AND_REVERSE = 0x1502;
+ public static final int GL_ARRAY_ELEMENT_LOCK_COUNT_EXT = 0x81A9;
+ public static final int GL_ARRAY_ELEMENT_LOCK_FIRST_EXT = 0x81A8;
+ public static final int GL_ATTENUATION_EXT = 0x834D;
+ public static final int GL_ATTRIB_STACK_DEPTH = 0x0BB0;
+ public static final int GL_AUTO_NORMAL = 0x0D80;
+ public static final int GL_AUX0 = 0x0409;
+ public static final int GL_AUX1 = 0x040A;
+ public static final int GL_AUX2 = 0x040B;
+ public static final int GL_AUX3 = 0x040C;
+ public static final int GL_AUX_BUFFERS = 0x0C00;
+ public static final int GL_AVERAGE_EXT = 0x8335;
+ public static final int GL_BACK = 0x0405;
+ public static final int GL_BACK_LEFT = 0x0402;
+ public static final int GL_BACK_NORMALS_HINT_PGI = 107043;
+ public static final int GL_BACK_RIGHT = 0x0403;
+ public static final int GL_BGR = 0x80E0;
+ public static final int GL_BGRA = 0x80E1;
+ public static final int GL_BGRA_EXT = 0x80E1;
+ public static final int GL_BGR_EXT = 0x80E0;
+ public static final int GL_BIAS_BY_NEGATIVE_ONE_HALF_NV = 0x8541;
+ public static final int GL_BINORMAL_ARRAY_EXT = 0x843A;
+ public static final int GL_BINORMAL_ARRAY_POINTER_EXT = 0x8443;
+ public static final int GL_BINORMAL_ARRAY_STRIDE_EXT = 0x8441;
+ public static final int GL_BINORMAL_ARRAY_TYPE_EXT = 0x8440;
+ public static final int GL_BITMAP = 0x1A00;
+ public static final int GL_BITMAP_TOKEN = 0x0704;
+ public static final int GL_BLEND = 0x0BE2;
+ public static final int GL_BLEND_COLOR_EXT = 0x8005;
+ public static final int GL_BLEND_DST = 0x0BE0;
+ public static final int GL_BLEND_DST_ALPHA_EXT = 0x80CA;
+ public static final int GL_BLEND_DST_ALPHA_INGR = 0x80CA;
+ public static final int GL_BLEND_DST_RGB_EXT = 0x80C8;
+ public static final int GL_BLEND_DST_RGB_INGR = 0x80C8;
+ public static final int GL_BLEND_EQUATION = 0x8009;
+ public static final int GL_BLEND_EQUATION_EXT = 0x8009;
+ public static final int GL_BLEND_SRC = 0x0BE1;
+ public static final int GL_BLEND_SRC_ALPHA_EXT = 0x80CB;
+ public static final int GL_BLEND_SRC_ALPHA_INGR = 0x80CB;
+ public static final int GL_BLEND_SRC_RGB_EXT = 0x80C9;
+ public static final int GL_BLEND_SRC_RGB_INGR = 0x80C9;
+ public static final int GL_BLUE = 0x1905;
+ public static final int GL_BLUE_BIAS = 0x0D1B;
+ public static final int GL_BLUE_BITS = 0x0D54;
+ public static final int GL_BLUE_MAX_CLAMP_INGR = 0x8566;
+ public static final int GL_BLUE_MIN_CLAMP_INGR = 0x8562;
+ public static final int GL_BLUE_SCALE = 0x0D1A;
+ public static final int GL_BYTE = 0x1400;
+ public static final int GL_C3F_V3F = 0x2A24;
+ public static final int GL_C4F_N3F_V3F = 0x2A26;
+ public static final int GL_C4UB_V2F = 0x2A22;
+ public static final int GL_C4UB_V3F = 0x2A23;
+ public static final int GL_CCW = 0x0901;
+ public static final int GL_CLAMP = 0x2900;
+ public static final int GL_CLAMP_TO_BORDER_SGIS = 0x812D;
+ public static final int GL_CLAMP_TO_EDGE = 0x812F;
+ public static final int GL_CLAMP_TO_EDGE_SGIS = 0x812F;
+ public static final int GL_CLEAR = 0x1500;
+ public static final int GL_CLIENT_ACTIVE_TEXTURE_ARB = 0x84E1;
+ public static final int GL_CLIENT_ALL_ATTRIB_BITS = 0xFFFFFFFF;
+ public static final int GL_CLIENT_ATTRIB_STACK_DEPTH = 0x0BB1;
+ public static final int GL_CLIENT_PIXEL_STORE_BIT = 0x00000001;
+ public static final int GL_CLIENT_VERTEX_ARRAY_BIT = 0x00000002;
+ public static final int GL_CLIP_FAR_HINT_PGI = 107041;
+ public static final int GL_CLIP_NEAR_HINT_PGI = 107040;
+ public static final int GL_CLIP_PLANE0 = 0x3000;
+ public static final int GL_CLIP_PLANE1 = 0x3001;
+ public static final int GL_CLIP_PLANE2 = 0x3002;
+ public static final int GL_CLIP_PLANE3 = 0x3003;
+ public static final int GL_CLIP_PLANE4 = 0x3004;
+ public static final int GL_CLIP_PLANE5 = 0x3005;
+ public static final int GL_CLIP_VOLUME_CLIPPING_HINT_EXT = 0x80F;
+ public static final int GL_CMYKA_EXT = 0x800D;
+ public static final int GL_CMYK_EXT = 0x800C;
+ public static final int GL_COEFF = 0x0A00;
+ public static final int GL_COLOR = 0x1800;
+ public static final int GL_COLOR_ARRAY = 0x8076;
+ public static final int GL_COLOR_ARRAY_COUNT_EXT = 0x8084;
+ public static final int GL_COLOR_ARRAY_EXT = 0x8076;
+ public static final int GL_COLOR_ARRAY_POINTER = 0x8090;
+ public static final int GL_COLOR_ARRAY_POINTER_EXT = 0x8090;
+ public static final int GL_COLOR_ARRAY_SIZE = 0x8081;
+ public static final int GL_COLOR_ARRAY_SIZE_EXT = 0x8081;
+ public static final int GL_COLOR_ARRAY_STRIDE = 0x8083;
+ public static final int GL_COLOR_ARRAY_STRIDE_EXT = 0x8083;
+ public static final int GL_COLOR_ARRAY_TYPE = 0x8082;
+ public static final int GL_COLOR_ARRAY_TYPE_EXT = 0x8082;
+ public static final int GL_COLOR_BUFFER_BIT = 0x00004000;
+ public static final int GL_COLOR_CLEAR_VALUE = 0x0C22;
+ public static final int GL_COLOR_INDEX = 0x1900;
+ public static final int GL_COLOR_INDEX12_EXT = 0x80E6;
+ public static final int GL_COLOR_INDEX16_EXT = 0x80E7;
+ public static final int GL_COLOR_INDEX1_EXT = 0x80E2;
+ public static final int GL_COLOR_INDEX2_EXT = 0x80E3;
+ public static final int GL_COLOR_INDEX4_EXT = 0x80E4;
+ public static final int GL_COLOR_INDEX8_EXT = 0x80E5;
+ public static final int GL_COLOR_INDEXES = 0x1603;
+ public static final int GL_COLOR_LOGIC_OP = 0x0BF2;
+ public static final int GL_COLOR_MATERIAL = 0x0B57;
+ public static final int GL_COLOR_MATERIAL_FACE = 0x0B55;
+ public static final int GL_COLOR_MATERIAL_PARAMETER = 0x0B56;
+ public static final int GL_COLOR_MATRIX = 0x80B1;
+ public static final int GL_COLOR_MATRIX_SGI = 0x80B1;
+ public static final int GL_COLOR_MATRIX_STACK_DEPTH = 0x80B2;
+ public static final int GL_COLOR_MATRIX_STACK_DEPTH_SGI = 0x80B2;
+ public static final int GL_COLOR_SUM_CLAMP_NV = 0x854F;
+ public static final int GL_COLOR_SUM_EXT = 0x8458;
+ public static final int GL_COLOR_TABLE = 0x80D0;
+ public static final int GL_COLOR_TABLE_ALPHA_SIZE = 0x80DD;
+ public static final int GL_COLOR_TABLE_ALPHA_SIZE_EXT = 0x80DD;
+ public static final int GL_COLOR_TABLE_ALPHA_SIZE_SGI = 0x80DD;
+ public static final int GL_COLOR_TABLE_BIAS = 0x80D7;
+ public static final int GL_COLOR_TABLE_BIAS_SGI = 0x80D7;
+ public static final int GL_COLOR_TABLE_BLUE_SIZE = 0x80DC;
+ public static final int GL_COLOR_TABLE_BLUE_SIZE_EXT = 0x80DC;
+ public static final int GL_COLOR_TABLE_BLUE_SIZE_SGI = 0x80DC;
+ public static final int GL_COLOR_TABLE_FORMAT = 0x80D8;
+ public static final int GL_COLOR_TABLE_FORMAT_EXT = 0x80D8;
+ public static final int GL_COLOR_TABLE_FORMAT_SGI = 0x80D8;
+ public static final int GL_COLOR_TABLE_GREEN_SIZE = 0x80DB;
+ public static final int GL_COLOR_TABLE_GREEN_SIZE_EXT = 0x80DB;
+ public static final int GL_COLOR_TABLE_GREEN_SIZE_SGI = 0x80DB;
+ public static final int GL_COLOR_TABLE_INTENSITY_SIZE = 0x80DF;
+ public static final int GL_COLOR_TABLE_INTENSITY_SIZE_EXT = 0x80DF;
+ public static final int GL_COLOR_TABLE_INTENSITY_SIZE_SGI = 0x80DF;
+ public static final int GL_COLOR_TABLE_LUMINANCE_SIZE = 0x80DE;
+ public static final int GL_COLOR_TABLE_LUMINANCE_SIZE_EXT = 0x80DE;
+ public static final int GL_COLOR_TABLE_LUMINANCE_SIZE_SGI = 0x80DE;
+ public static final int GL_COLOR_TABLE_RED_SIZE = 0x80DA;
+ public static final int GL_COLOR_TABLE_RED_SIZE_EXT = 0x80DA;
+ public static final int GL_COLOR_TABLE_RED_SIZE_SGI = 0x80DA;
+ public static final int GL_COLOR_TABLE_SCALE = 0x80D6;
+ public static final int GL_COLOR_TABLE_SCALE_SGI = 0x80D6;
+ public static final int GL_COLOR_TABLE_SGI = 0x80D0;
+ public static final int GL_COLOR_TABLE_SGI_80BC = 0x80BC;
+ public static final int GL_COLOR_TABLE_WIDTH = 0x80D9;
+ public static final int GL_COLOR_TABLE_WIDTH_EXT = 0x80D9;
+ public static final int GL_COLOR_TABLE_WIDTH_SGI = 0x80D9;
+ public static final int GL_COLOR_WRITEMASK = 0x0C23;
+ public static final int GL_COMBINE4_NV = 0x8503;
+ public static final int GL_COMBINER0_NV = 0x8550;
+ public static final int GL_COMBINER1_NV = 0x8551;
+ public static final int GL_COMBINER2_NV = 0x8552;
+ public static final int GL_COMBINER3_NV = 0x8553;
+ public static final int GL_COMBINER4_NV = 0x8554;
+ public static final int GL_COMBINER5_NV = 0x8555;
+ public static final int GL_COMBINER6_NV = 0x8556;
+ public static final int GL_COMBINER7_NV = 0x8557;
+ public static final int GL_COMBINER_AB_DOT_PRODUCT_NV = 0x8545;
+ public static final int GL_COMBINER_AB_OUTPUT_NV = 0x854A;
+ public static final int GL_COMBINER_BIAS_NV = 0x8549;
+ public static final int GL_COMBINER_CD_DOT_PRODUCT_NV = 0x8546;
+ public static final int GL_COMBINER_CD_OUTPUT_NV = 0x854B;
+ public static final int GL_COMBINER_COMPONENT_USAGE_NV = 0x8544;
+ public static final int GL_COMBINER_INPUT_NV = 0x8542;
+ public static final int GL_COMBINER_MAPPING_NV = 0x8543;
+ public static final int GL_COMBINER_MUX_SUM_NV = 0x8547;
+ public static final int GL_COMBINER_SCALE_NV = 0x8548;
+ public static final int GL_COMBINER_SUM_OUTPUT_NV = 0x854C;
+ public static final int GL_COMBINE_ALPHA_EXT = 0x8572;
+ public static final int GL_COMBINE_EXT = 0x8570;
+ public static final int GL_COMBINE_RGB_EXT = 0x8571;
+ public static final int GL_COMPILE = 0x1300;
+ public static final int GL_COMPILE_AND_EXECUTE = 0x1301;
+ public static final int GL_COMPRESSED_ALPHA_ARB = 0x84E9;
+ public static final int GL_COMPRESSED_INTENSITY_ARB = 0x84EC;
+ public static final int GL_COMPRESSED_LUMINANCE_ALPHA_ARB = 0x84EB;
+ public static final int GL_COMPRESSED_LUMINANCE_ARB = 0x84EA;
+ public static final int GL_COMPRESSED_RGBA_ARB = 0x84EE;
+ public static final int GL_COMPRESSED_RGB_ARB = 0x84ED;
+ public static final int GL_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A3;
+ public static final int GL_CONSERVE_MEMORY_HINT_PGI = 107005;
+ public static final int GL_CONSTANT_ALPHA = 0x8003;
+ public static final int GL_CONSTANT_ALPHA_EXT = 0x8003;
+ public static final int GL_CONSTANT_ATTENUATION = 0x1207;
+ public static final int GL_CONSTANT_BORDER = 0x8151;
+ public static final int GL_CONSTANT_COLOR = 0x8001;
+ public static final int GL_CONSTANT_COLOR0_NV = 0x852A;
+ public static final int GL_CONSTANT_COLOR1_NV = 0x852B;
+ public static final int GL_CONSTANT_COLOR_EXT = 0x8001;
+ public static final int GL_CONSTANT_EXT = 0x8576;
+ public static final int GL_CONVOLUTION_1D = 0x8010;
+ public static final int GL_CONVOLUTION_1D_EXT = 0x8010;
+ public static final int GL_CONVOLUTION_2D = 0x8011;
+ public static final int GL_CONVOLUTION_2D_EXT = 0x8011;
+ public static final int GL_CONVOLUTION_BORDER_COLOR = 0x8154;
+ public static final int GL_CONVOLUTION_BORDER_MODE = 0x8013;
+ public static final int GL_CONVOLUTION_BORDER_MODE_EXT = 0x8013;
+ public static final int GL_CONVOLUTION_FILTER_BIAS = 0x8015;
+ public static final int GL_CONVOLUTION_FILTER_BIAS_EXT = 0x8015;
+ public static final int GL_CONVOLUTION_FILTER_SCALE = 0x8014;
+ public static final int GL_CONVOLUTION_FILTER_SCALE_EXT = 0x8014;
+ public static final int GL_CONVOLUTION_FORMAT = 0x8017;
+ public static final int GL_CONVOLUTION_FORMAT_EXT = 0x8017;
+ public static final int GL_CONVOLUTION_HEIGHT = 0x8019;
+ public static final int GL_CONVOLUTION_HEIGHT_EXT = 0x8019;
+ public static final int GL_CONVOLUTION_WIDTH = 0x8018;
+ public static final int GL_CONVOLUTION_WIDTH_EXT = 0x8018;
+ public static final int GL_COPY = 0x1503;
+ public static final int GL_COPY_INVERTED = 0x150C;
+ public static final int GL_COPY_PIXEL_TOKEN = 0x0706;
+ public static final int GL_CUBIC_EXT = 0x8334;
+ public static final int GL_CULL_FACE = 0x0B44;
+ public static final int GL_CULL_FACE_MODE = 0x0B45;
+ public static final int GL_CULL_VERTEX_EXT = 0x81AA;
+ public static final int GL_CULL_VERTEX_EYE_POSITION_EXT = 0x81AB;
+ public static final int GL_CULL_VERTEX_IBM = 0x1928A;
+ public static final int GL_CULL_VERTEX_OBJECT_POSITION_EXT = 0x81AC;
+ public static final int GL_CURRENT_BINORMAL_EXT = 0x843C;
+ public static final int GL_CURRENT_BIT = 0x00000001;
+ public static final int GL_CURRENT_COLOR = 0x0B00;
+ public static final int GL_CURRENT_FOG_COORDINATE_EXT = 0x8453;
+ public static final int GL_CURRENT_INDEX = 0x0B01;
+ public static final int GL_CURRENT_NORMAL = 0x0B02;
+ public static final int GL_CURRENT_RASTER_COLOR = 0x0B04;
+ public static final int GL_CURRENT_RASTER_DISTANCE = 0x0B09;
+ public static final int GL_CURRENT_RASTER_INDEX = 0x0B05;
+ public static final int GL_CURRENT_RASTER_POSITION = 0x0B07;
+ public static final int GL_CURRENT_RASTER_POSITION_VALID = 0x0B08;
+ public static final int GL_CURRENT_RASTER_TEXTURE_COORDS = 0x0B06;
+ public static final int GL_CURRENT_SECONDARY_COLOR_EXT = 0x8459;
+ public static final int GL_CURRENT_TANGENT_EXT = 0x843B;
+ public static final int GL_CURRENT_TEXTURE_COORDS = 0x0B03;
+ public static final int GL_CURRENT_VERTEX_WEIGHT_EXT = 0x850B;
+ public static final int GL_CW = 0x0900;
+ public static final int GL_DECAL = 0x2101;
+ public static final int GL_DECR = 0x1E03;
+ public static final int GL_DECR_WRAP_EXT = 0x8508;
+ public static final int GL_DEPTH = 0x1801;
+ public static final int GL_DEPTH_BIAS = 0x0D1F;
+ public static final int GL_DEPTH_BITS = 0x0D56;
+ public static final int GL_DEPTH_BUFFER_BIT = 0x00000100;
+ public static final int GL_DEPTH_CLEAR_VALUE = 0x0B73;
+ public static final int GL_DEPTH_COMPONENT = 0x1902;
+ public static final int GL_DEPTH_COMPONENT16_SGIX = 0x81A5;
+ public static final int GL_DEPTH_COMPONENT24_SGIX = 0x81A6;
+ public static final int GL_DEPTH_COMPONENT32_SGIX = 0x81A7;
+ public static final int GL_DEPTH_FUNC = 0x0B74;
+ public static final int GL_DEPTH_RANGE = 0x0B70;
+ public static final int GL_DEPTH_SCALE = 0x0D1E;
+ public static final int GL_DEPTH_TEST = 0x0B71;
+ public static final int GL_DEPTH_WRITEMASK = 0x0B72;
+ public static final int GL_DETAIL_TEXTURE_2D_BINDING_SGIS = 0x8096;
+ public static final int GL_DETAIL_TEXTURE_2D_SGIS = 0x8095;
+ public static final int GL_DETAIL_TEXTURE_LEVEL_SGIS = 0x809A;
+ public static final int GL_DETAIL_TEXTURE_MODE_SGIS = 0x809B;
+ public static final int GL_DIFFUSE = 0x1201;
+ public static final int GL_DISCARD_NV = 0x8530;
+ public static final int GL_DISTANCE_ATTENUATION_EXT = 0x8129;
+ public static final int GL_DITHER = 0x0BD0;
+ public static final int GL_DOMAIN = 0x0A02;
+ public static final int GL_DONT_CARE = 0x1100;
+ public static final int GL_DOUBLE = 0x140A;
+ public static final int GL_DOUBLEBUFFER = 0x0C32;
+ public static final int GL_DRAW_BUFFER = 0x0C01;
+ public static final int GL_DRAW_PIXEL_TOKEN = 0x0705;
+ public static final int GL_DST_ALPHA = 0x0304;
+ public static final int GL_DST_COLOR = 0x0306;
+ public static final int GL_DUAL_ALPHA12_SGIS = 0x8112;
+ public static final int GL_DUAL_ALPHA16_SGIS = 0x8113;
+ public static final int GL_DUAL_ALPHA4_SGIS = 0x8110;
+ public static final int GL_DUAL_ALPHA8_SGIS = 0x8111;
+ public static final int GL_DUAL_INTENSITY12_SGIS = 0x811A;
+ public static final int GL_DUAL_INTENSITY16_SGIS = 0x811B;
+ public static final int GL_DUAL_INTENSITY4_SGIS = 0x8118;
+ public static final int GL_DUAL_INTENSITY8_SGIS = 0x8119;
+ public static final int GL_DUAL_LUMINANCE12_SGIS = 0x8116;
+ public static final int GL_DUAL_LUMINANCE16_SGIS = 0x8117;
+ public static final int GL_DUAL_LUMINANCE4_SGIS = 0x8114;
+ public static final int GL_DUAL_LUMINANCE8_SGIS = 0x8115;
+ public static final int GL_DUAL_LUMINANCE_ALPHA4_SGIS = 0x811C;
+ public static final int GL_DUAL_LUMINANCE_ALPHA8_SGIS = 0x811D;
+ public static final int GL_DUAL_TEXTURE_SELECT_SGIS = 0x8124;
+ public static final int GL_EDGE_FLAG = 0x0B43;
+ public static final int GL_EDGE_FLAG_ARRAY = 0x8079;
+ public static final int GL_EDGE_FLAG_ARRAY_COUNT_EXT = 0x808D;
+ public static final int GL_EDGE_FLAG_ARRAY_EXT = 0x8079;
+ public static final int GL_EDGE_FLAG_ARRAY_POINTER = 0x8093;
+ public static final int GL_EDGE_FLAG_ARRAY_POINTER_EXT = 0x8093;
+ public static final int GL_EDGE_FLAG_ARRAY_STRIDE = 0x808C;
+ public static final int GL_EDGE_FLAG_ARRAY_STRIDE_EXT = 0x808C;
+ public static final int GL_EMBOSS_CONSTANT_NV = 0x855E;
+ public static final int GL_EMBOSS_LIGHT_NV = 0x855D;
+ public static final int GL_EMBOSS_MAP_NV = 0x855F;
+ public static final int GL_EMISSION = 0x1600;
+ public static final int GL_ENABLE_BIT = 0x00002000;
+ public static final int GL_EQUAL = 0x0202;
+ public static final int GL_EQUIV = 0x1509;
+ public static final int GL_EVAL_BIT = 0x00010000;
+ public static final int GL_EXP = 0x0800;
+ public static final int GL_EXP2 = 0x0801;
+ public static final int GL_EXPAND_NEGATE_NV = 0x8539;
+ public static final int GL_EXPAND_NORMAL_NV = 0x8538;
+ public static final int GL_EXTENSIONS = 0x1F03;
+ public static final int GL_EYE_LINEAR = 0x2400;
+ public static final int GL_EYE_PLANE = 0x2502;
+ public static final int GL_EYE_PLANE_ABSOLUTE_NV = 0x855C;
+ public static final int GL_EYE_RADIAL_NV = 0x855B;
+ public static final int GL_E_TIMES_F_NV = 0x8531;
+ public static final int GL_FASTEST = 0x1101;
+ public static final int GL_FEEDBACK = 0x1C01;
+ public static final int GL_FEEDBACK_BUFFER_POINTER = 0x0DF0;
+ public static final int GL_FEEDBACK_BUFFER_SIZE = 0x0DF1;
+ public static final int GL_FEEDBACK_BUFFER_TYPE = 0x0DF2;
+ public static final int GL_FILL = 0x1B02;
+ public static final int GL_FILTER4_SGIS = 0x8146;
+ public static final int GL_FLAT = 0x1D00;
+ public static final int GL_FLOAT = 0x1406;
+ public static final int GL_FOG = 0x0B60;
+ public static final int GL_FOG_BIT = 0x00000080;
+ public static final int GL_FOG_COLOR = 0x0B66;
+ public static final int GL_FOG_COORDINATE_ARRAY_EXT = 0x8457;
+ public static final int GL_FOG_COORDINATE_ARRAY_POINTER_EXT = 0x8456;
+ public static final int GL_FOG_COORDINATE_ARRAY_STRIDE_EXT = 0x8455;
+ public static final int GL_FOG_COORDINATE_ARRAY_TYPE_EXT = 0x8454;
+ public static final int GL_FOG_COORDINATE_EXT = 0x8451;
+ public static final int GL_FOG_COORDINATE_SOURCE_EXT = 0x8450;
+ public static final int GL_FOG_DENSITY = 0x0B62;
+ public static final int GL_FOG_DISTANCE_MODE_NV = 0x855A;
+ public static final int GL_FOG_END = 0x0B64;
+ public static final int GL_FOG_FUNC_POINTS_SGIS = 0x812B;
+ public static final int GL_FOG_FUNC_SGIS = 0x812A;
+ public static final int GL_FOG_HINT = 0x0C54;
+ public static final int GL_FOG_INDEX = 0x0B61;
+ public static final int GL_FOG_MODE = 0x0B65;
+ public static final int GL_FOG_OFFSET_SGIX = 0x8198;
+ public static final int GL_FOG_OFFSET_VALUE_SGIX = 0x8199;
+ public static final int GL_FOG_SPECULAR_TEXTURE_WIN = 0x80EC;
+ public static final int GL_FOG_START = 0x0B63;
+ public static final int GL_FRAGMENT_COLOR_EXT = 0x834C;
+ public static final int GL_FRAGMENT_DEPTH_EXT = 0x8452;
+ public static final int GL_FRAGMENT_DEPTH_EXT_834B = 0x834B;
+ public static final int GL_FRAGMENT_MATERIAL_EXT = 0x8349;
+ public static final int GL_FRAGMENT_NORMAL_EXT = 0x834A;
+ public static final int GL_FRAMEZOOM_FACTOR_SGIX = 0x818C;
+ public static final int GL_FRAMEZOOM_SGIX = 0x818B;
+ public static final int GL_FRONT = 0x0404;
+ public static final int GL_FRONT_AND_BACK = 0x0408;
+ public static final int GL_FRONT_FACE = 0x0B46;
+ public static final int GL_FRONT_LEFT = 0x0400;
+ public static final int GL_FRONT_RIGHT = 0x0401;
+ public static final int GL_FULL_STIPPLE_HINT_PGI = 107033;
+ public static final int GL_FUNC_ADD = 0x8006;
+ public static final int GL_FUNC_ADD_EXT = 0x8006;
+ public static final int GL_FUNC_REVERSE_SUBTRACT = 0x800B;
+ public static final int GL_FUNC_REVERSE_SUBTRACT_EXT = 0x800B;
+ public static final int GL_FUNC_SUBTRACT = 0x800A;
+ public static final int GL_FUNC_SUBTRACT_EXT = 0x800A;
+ public static final int GL_GENERATE_MIPMAP_HINT_SGIS = 0x8192;
+ public static final int GL_GENERATE_MIPMAP_SGIS = 0x8191;
+ public static final int GL_GEQUAL = 0x0206;
+ public static final int GL_GLEXT_VERSION_EXT = 8;
+ public static final int GL_GLOBAL_ALPHA_FACTOR_SUN = 0x81DA;
+ public static final int GL_GLOBAL_ALPHA_SUN = 0x81D9;
+ public static final int GL_GREATER = 0x0204;
+ public static final int GL_GREEN = 0x1904;
+ public static final int GL_GREEN_BIAS = 0x0D19;
+ public static final int GL_GREEN_BITS = 0x0D53;
+ public static final int GL_GREEN_MAX_CLAMP_INGR = 0x8565;
+ public static final int GL_GREEN_MIN_CLAMP_INGR = 0x8561;
+ public static final int GL_GREEN_SCALE = 0x0D18;
+ public static final int GL_HALF_BIAS_NEGATE_NV = 0x853B;
+ public static final int GL_HALF_BIAS_NORMAL_NV = 0x853A;
+ public static final int GL_HINT_BIT = 0x00008000;
+ public static final int GL_HISTOGRAM = 0x8024;
+ public static final int GL_HISTOGRAM_ALPHA_SIZE = 0x802B;
+ public static final int GL_HISTOGRAM_ALPHA_SIZE_EXT = 0x802B;
+ public static final int GL_HISTOGRAM_BLUE_SIZE = 0x802A;
+ public static final int GL_HISTOGRAM_BLUE_SIZE_EXT = 0x802A;
+ public static final int GL_HISTOGRAM_EXT = 0x8024;
+ public static final int GL_HISTOGRAM_FORMAT = 0x8027;
+ public static final int GL_HISTOGRAM_FORMAT_EXT = 0x8027;
+ public static final int GL_HISTOGRAM_GREEN_SIZE = 0x8029;
+ public static final int GL_HISTOGRAM_GREEN_SIZE_EXT = 0x8029;
+ public static final int GL_HISTOGRAM_LUMINANCE_SIZE = 0x802C;
+ public static final int GL_HISTOGRAM_LUMINANCE_SIZE_EXT = 0x802C;
+ public static final int GL_HISTOGRAM_RED_SIZE = 0x8028;
+ public static final int GL_HISTOGRAM_RED_SIZE_EXT = 0x8028;
+ public static final int GL_HISTOGRAM_SINK = 0x802D;
+ public static final int GL_HISTOGRAM_SINK_EXT = 0x802D;
+ public static final int GL_HISTOGRAM_WIDTH = 0x8026;
+ public static final int GL_HISTOGRAM_WIDTH_EXT = 0x8026;
+ public static final int GL_INCR = 0x1E02;
+ public static final int GL_INCR_WRAP_EXT = 0x8507;
+ public static final int GL_INDEX_ARRAY = 0x8077;
+ public static final int GL_INDEX_ARRAY_COUNT_EXT = 0x8087;
+ public static final int GL_INDEX_ARRAY_EXT = 0x8077;
+ public static final int GL_INDEX_ARRAY_POINTER = 0x8091;
+ public static final int GL_INDEX_ARRAY_POINTER_EXT = 0x8091;
+ public static final int GL_INDEX_ARRAY_STRIDE = 0x8086;
+ public static final int GL_INDEX_ARRAY_STRIDE_EXT = 0x8086;
+ public static final int GL_INDEX_ARRAY_TYPE = 0x8085;
+ public static final int GL_INDEX_ARRAY_TYPE_EXT = 0x8085;
+ public static final int GL_INDEX_BITS = 0x0D51;
+ public static final int GL_INDEX_CLEAR_VALUE = 0x0C20;
+ public static final int GL_INDEX_LOGIC_OP = 0x0BF1;
+ public static final int GL_INDEX_MODE = 0x0C30;
+ public static final int GL_INDEX_OFFSET = 0x0D13;
+ public static final int GL_INDEX_SHIFT = 0x0D12;
+ public static final int GL_INDEX_WRITEMASK = 0x0C21;
+ public static final int GL_INSTRUMENT_BUFFER_POINTER_SGIX = 0x8180;
+ public static final int GL_INSTRUMENT_MEASUREMENTS_SGIX = 0x8181;
+ public static final int GL_INT = 0x1404;
+ public static final int GL_INTENSITY = 0x8049;
+ public static final int GL_INTENSITY12 = 0x804C;
+ public static final int GL_INTENSITY12_EXT = 0x804C;
+ public static final int GL_INTENSITY16 = 0x804D;
+ public static final int GL_INTENSITY16_EXT = 0x804D;
+ public static final int GL_INTENSITY4 = 0x804A;
+ public static final int GL_INTENSITY4_EXT = 0x804A;
+ public static final int GL_INTENSITY8 = 0x804B;
+ public static final int GL_INTENSITY8_EXT = 0x804B;
+ public static final int GL_INTENSITY_EXT = 0x8049;
+ public static final int GL_INTERLACE_READ_INGR = 0x8568;
+ public static final int GL_INTERLACE_SGIX = 0x8094;
+ public static final int GL_INTERPOLATE_EXT = 0x8575;
+ public static final int GL_INVALID_ENUM = 0x0500;
+ public static final int GL_INVALID_OPERATION = 0x0502;
+ public static final int GL_INVALID_VALUE = 0x0501;
+ public static final int GL_INVERT = 0x150A;
+ public static final int GL_INVERTED_SCREEN_W_REND = 0x8491;
+ public static final int GL_IR_INSTRUMENT1_SGIX = 0x817F;
+ public static final int GL_KEEP = 0x1E00;
+ public static final int GL_LEFT = 0x0406;
+ public static final int GL_LEQUAL = 0x0203;
+ public static final int GL_LESS = 0x0201;
+ public static final int GL_LIGHT0 = 0x4000;
+ public static final int GL_LIGHT1 = 0x4001;
+ public static final int GL_LIGHT2 = 0x4002;
+ public static final int GL_LIGHT3 = 0x4003;
+ public static final int GL_LIGHT4 = 0x4004;
+ public static final int GL_LIGHT5 = 0x4005;
+ public static final int GL_LIGHT6 = 0x4006;
+ public static final int GL_LIGHT7 = 0x4007;
+ public static final int GL_LIGHTING = 0x0B50;
+ public static final int GL_LIGHTING_BIT = 0x00000040;
+ public static final int GL_LIGHT_MODEL_AMBIENT = 0x0B53;
+ public static final int GL_LIGHT_MODEL_COLOR_CONTROL = 0x81F8;
+ public static final int GL_LIGHT_MODEL_COLOR_CONTROL_EXT = 0x81F8;
+ public static final int GL_LIGHT_MODEL_LOCAL_VIEWER = 0x0B51;
+ public static final int GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE = 0x85B0;
+ public static final int GL_LIGHT_MODEL_TWO_SIDE = 0x0B52;
+ public static final int GL_LINE = 0x1B01;
+ public static final int GL_LINEAR = 0x2601;
+ public static final int GL_LINEAR_ATTENUATION = 0x1208;
+ public static final int GL_LINEAR_CLIPMAP_LINEAR_SGIX = 0x8170;
+ public static final int GL_LINEAR_DETAIL_ALPHA_SGIS = 0x8098;
+ public static final int GL_LINEAR_DETAIL_COLOR_SGIS = 0x8099;
+ public static final int GL_LINEAR_DETAIL_SGIS = 0x8097;
+ public static final int GL_LINEAR_MIPMAP_LINEAR = 0x2703;
+ public static final int GL_LINEAR_MIPMAP_NEAREST = 0x2701;
+ public static final int GL_LINEAR_SHARPEN_ALPHA_SGIS = 0x80AE;
+ public static final int GL_LINEAR_SHARPEN_COLOR_SGIS = 0x80AF;
+ public static final int GL_LINEAR_SHARPEN_SGIS = 0x80AD;
+ public static final int GL_LINES = 0x0001;
+ public static final int GL_LINE_BIT = 0x00000004;
+ public static final int GL_LINE_LOOP = 0x0002;
+ public static final int GL_LINE_RESET_TOKEN = 0x0707;
+ public static final int GL_LINE_SMOOTH = 0x0B20;
+ public static final int GL_LINE_SMOOTH_HINT = 0x0C52;
+ public static final int GL_LINE_STIPPLE = 0x0B24;
+ public static final int GL_LINE_STIPPLE_PATTERN = 0x0B25;
+ public static final int GL_LINE_STIPPLE_REPEAT = 0x0B26;
+ public static final int GL_LINE_STRIP = 0x0003;
+ public static final int GL_LINE_TOKEN = 0x0702;
+ public static final int GL_LINE_WIDTH = 0x0B21;
+ public static final int GL_LINE_WIDTH_GRANULARITY = 0x0B23;
+ public static final int GL_LINE_WIDTH_RANGE = 0x0B22;
+ public static final int GL_LIST_BASE = 0x0B32;
+ public static final int GL_LIST_BIT = 0x00020000;
+ public static final int GL_LIST_INDEX = 0x0B33;
+ public static final int GL_LIST_MODE = 0x0B30;
+ public static final int GL_LIST_PRIORITY_SGIX = 0x8182;
+ public static final int GL_LOAD = 0x0101;
+ public static final int GL_LOGIC_OP = 0x0BF1;
+ public static final int GL_LOGIC_OP_MODE = 0x0BF0;
+ public static final int GL_LUMINANCE = 0x1909;
+ public static final int GL_LUMINANCE12 = 0x8041;
+ public static final int GL_LUMINANCE12_ALPHA12 = 0x8047;
+ public static final int GL_LUMINANCE12_ALPHA12_EXT = 0x8047;
+ public static final int GL_LUMINANCE12_ALPHA4 = 0x8046;
+ public static final int GL_LUMINANCE12_ALPHA4_EXT = 0x8046;
+ public static final int GL_LUMINANCE12_EXT = 0x8041;
+ public static final int GL_LUMINANCE16 = 0x8042;
+ public static final int GL_LUMINANCE16_ALPHA16 = 0x8048;
+ public static final int GL_LUMINANCE16_ALPHA16_EXT = 0x8048;
+ public static final int GL_LUMINANCE16_EXT = 0x8042;
+ public static final int GL_LUMINANCE4 = 0x803F;
+ public static final int GL_LUMINANCE4_ALPHA4 = 0x8043;
+ public static final int GL_LUMINANCE4_ALPHA4_EXT = 0x8043;
+ public static final int GL_LUMINANCE4_EXT = 0x803F;
+ public static final int GL_LUMINANCE6_ALPHA2 = 0x8044;
+ public static final int GL_LUMINANCE6_ALPHA2_EXT = 0x8044;
+ public static final int GL_LUMINANCE8 = 0x8040;
+ public static final int GL_LUMINANCE8_ALPHA8 = 0x8045;
+ public static final int GL_LUMINANCE8_ALPHA8_EXT = 0x8045;
+ public static final int GL_LUMINANCE8_EXT = 0x8040;
+ public static final int GL_LUMINANCE_ALPHA = 0x190A;
+ public static final int GL_MAP1_BINORMAL_EXT = 0x8446;
+ public static final int GL_MAP1_COLOR_4 = 0x0D90;
+ public static final int GL_MAP1_GRID_DOMAIN = 0x0DD0;
+ public static final int GL_MAP1_GRID_SEGMENTS = 0x0DD1;
+ public static final int GL_MAP1_INDEX = 0x0D91;
+ public static final int GL_MAP1_NORMAL = 0x0D92;
+ public static final int GL_MAP1_TANGENT_EXT = 0x8444;
+ public static final int GL_MAP1_TEXTURE_COORD_1 = 0x0D93;
+ public static final int GL_MAP1_TEXTURE_COORD_2 = 0x0D94;
+ public static final int GL_MAP1_TEXTURE_COORD_3 = 0x0D95;
+ public static final int GL_MAP1_TEXTURE_COORD_4 = 0x0D96;
+ public static final int GL_MAP1_VERTEX_3 = 0x0D97;
+ public static final int GL_MAP1_VERTEX_4 = 0x0D98;
+ public static final int GL_MAP2_BINORMAL_EXT = 0x8447;
+ public static final int GL_MAP2_COLOR_4 = 0x0DB0;
+ public static final int GL_MAP2_GRID_DOMAIN = 0x0DD2;
+ public static final int GL_MAP2_GRID_SEGMENTS = 0x0DD3;
+ public static final int GL_MAP2_INDEX = 0x0DB1;
+ public static final int GL_MAP2_NORMAL = 0x0DB2;
+ public static final int GL_MAP2_TANGENT_EXT = 0x8445;
+ public static final int GL_MAP2_TEXTURE_COORD_1 = 0x0DB3;
+ public static final int GL_MAP2_TEXTURE_COORD_2 = 0x0DB4;
+ public static final int GL_MAP2_TEXTURE_COORD_3 = 0x0DB5;
+ public static final int GL_MAP2_TEXTURE_COORD_4 = 0x0DB6;
+ public static final int GL_MAP2_VERTEX_3 = 0x0DB7;
+ public static final int GL_MAP2_VERTEX_4 = 0x0DB8;
+ public static final int GL_MAP_COLOR = 0x0D10;
+ public static final int GL_MAP_STENCIL = 0x0D11;
+ public static final int GL_MATRIX_MODE = 0x0BA0;
+ public static final int GL_MAX = 0x8008;
+ public static final int GL_MAX_3D_TEXTURE_SIZE = 0x8073;
+ public static final int GL_MAX_3D_TEXTURE_SIZE_EXT = 0x8073;
+ public static final int GL_MAX_4D_TEXTURE_SIZE_SGIS = 0x8138;
+ public static final int GL_MAX_ATTRIB_STACK_DEPTH = 0x0D35;
+ public static final int GL_MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B;
+ public static final int GL_MAX_CLIPMAP_DEPTH_SGIX = 0x8177;
+ public static final int GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX = 0x8178;
+ public static final int GL_MAX_CLIP_PLANES = 0x0D32;
+ public static final int GL_MAX_COLOR_MATRIX_STACK_DEPTH = 0x80B3;
+ public static final int GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI = 0x80B3;
+ public static final int GL_MAX_CONVOLUTION_HEIGHT = 0x801B;
+ public static final int GL_MAX_CONVOLUTION_HEIGHT_EXT = 0x801B;
+ public static final int GL_MAX_CONVOLUTION_WIDTH = 0x801A;
+ public static final int GL_MAX_CONVOLUTION_WIDTH_EXT = 0x801A;
+ public static final int GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT = 0x851C;
+ public static final int GL_MAX_ELEMENTS_INDICES = 0x80E9;
+ public static final int GL_MAX_ELEMENTS_INDICES_EXT = 0x80E9;
+ public static final int GL_MAX_ELEMENTS_VERTICES = 0x80E8;
+ public static final int GL_MAX_ELEMENTS_VERTICES_EXT = 0x80E8;
+ public static final int GL_MAX_EVAL_ORDER = 0x0D30;
+ public static final int GL_MAX_EXT = 0x8008;
+ public static final int GL_MAX_FOG_FUNC_POINTS_SGIS = 0x812C;
+ public static final int GL_MAX_FRAMEZOOM_FACTOR_SGIX = 0x818D;
+ public static final int GL_MAX_GENERAL_COMBINERS_NV = 0x854D;
+ public static final int GL_MAX_LIGHTS = 0x0D31;
+ public static final int GL_MAX_LIST_NESTING = 0x0B31;
+ public static final int GL_MAX_MODELVIEW_STACK_DEPTH = 0x0D36;
+ public static final int GL_MAX_NAME_STACK_DEPTH = 0x0D37;
+ public static final int GL_MAX_PIXEL_MAP_TABLE = 0x0D34;
+ public static final int GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT = 0x8337;
+ public static final int GL_MAX_PROJECTION_STACK_DEPTH = 0x0D38;
+ public static final int GL_MAX_SHININESS_NV = 0x8507;
+ public static final int GL_MAX_SPOT_EXPONENT_NV = 0x8508;
+ public static final int GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;
+ public static final int GL_MAX_TEXTURE_SIZE = 0x0D33;
+ public static final int GL_MAX_TEXTURE_STACK_DEPTH = 0x0D39;
+ public static final int GL_MAX_TEXTURE_UNITS_ARB = 0x84E2;
+ public static final int GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV = 0x8520;
+ public static final int GL_MAX_VIEWPORT_DIMS = 0x0D3A;
+ public static final int GL_MIN = 0x8007;
+ public static final int GL_MINMAX = 0x802E;
+ public static final int GL_MINMAX_FORMAT = 0x802F;
+ public static final int GL_MINMAX_SINK = 0x8030;
+ public static final int GL_MIN_EXT = 0x8007;
+ public static final int GL_MIRRORED_REPEAT_IBM = 0x8370;
+ public static final int GL_MODELVIEW = 0x1700;
+ public static final int GL_MODELVIEW0_EXT = 0x1700;
+ public static final int GL_MODELVIEW0_STACK_DEPTH_EXT = 0x0BA3;
+ public static final int GL_MODELVIEW1_EXT = 0x850A;
+ public static final int GL_MODELVIEW1_STACK_DEPTH_EXT = 0x8502;
+ public static final int GL_MODELVIEW_MATRIX = 0x0BA6;
+ public static final int GL_MODELVIEW_STACK_DEPTH = 0x0BA3;
+ public static final int GL_MODULATE = 0x2100;
+ public static final int GL_MULT = 0x0103;
+ public static final int GL_MULTISAMPLE_ARBfunda = 0x809D;
+ public static final int GL_MULTISAMPLE_BIT_ARB = 0x20000000;
+ public static final int GL_MULTISAMPLE_BIT_EXT = 0x20000000;
+ public static final int GL_MULTISAMPLE_SGIS = 0x809D;
+ public static final int GL_N3F_V3F = 0x2A25;
+ public static final int GL_NAME_STACK_DEPTH = 0x0D70;
+ public static final int GL_NAND = 0x150E;
+ public static final int GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI = 107011;
+ public static final int GL_NATIVE_GRAPHICS_END_HINT_PGI = 107012;
+ public static final int GL_NATIVE_GRAPHICS_HANDLE_PGI = 107010;
+ public static final int GL_NEAREST = 0x2600;
+ public static final int GL_NEAREST_MIPMAP_LINEAR = 0x2702;
+ public static final int GL_NEAREST_MIPMAP_NEAREST = 0x2700;
+ public static final int GL_NEVER = 0x0200;
+ public static final int GL_NICEST = 0x1102;
+ public static final int GL_NONE = 0x0;
+ public static final int GL_NOOP = 0x1505;
+ public static final int GL_NOR = 0x1508;
+ public static final int GL_NORMALIZE = 0x0BA1;
+ public static final int GL_NORMAL_ARRAY = 0x8075;
+ public static final int GL_NORMAL_ARRAY_COUNT_EXT = 0x8080;
+ public static final int GL_NORMAL_ARRAY_EXT = 0x8075;
+ public static final int GL_NORMAL_ARRAY_POINTER = 0x808F;
+ public static final int GL_NORMAL_ARRAY_POINTER_EXT = 0x808F;
+ public static final int GL_NORMAL_ARRAY_STRIDE = 0x807F;
+ public static final int GL_NORMAL_ARRAY_STRIDE_EXT = 0x807F;
+ public static final int GL_NORMAL_ARRAY_TYPE = 0x807E;
+ public static final int GL_NORMAL_ARRAY_TYPE_EXT = 0x807E;
+ public static final int GL_NORMAL_MAP_EXT = 0x8511;
+ public static final int GL_NORMAL_MAP_NV = 0x8511;
+ public static final int GL_NOTEQUAL = 0x0205;
+ public static final int GL_NO_ERROR = 0x0;
+ public static final int GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A2;
+ public static final int GL_NUM_GENERAL_COMBINERS_NV = 0x854E;
+ public static final int GL_OBJECT_LINEAR = 0x2401;
+ public static final int GL_OBJECT_PLANE = 0x2501;
+ public static final int GL_OCCLUSION_TEST_HP = 0x8165;
+ public static final int GL_OCCLUSION_TEST_RESULT_HP = 0x8166;
+ public static final int GL_ONE = 0x1;
+ public static final int GL_ONE_MINUS_CONSTANT_ALPHA = 0x8004;
+ public static final int GL_ONE_MINUS_CONSTANT_ALPHA_EXT = 0x8004;
+ public static final int GL_ONE_MINUS_CONSTANT_COLOR = 0x8002;
+ public static final int GL_ONE_MINUS_CONSTANT_COLOR_EXT = 0x8002;
+ public static final int GL_ONE_MINUS_DST_ALPHA = 0x0305;
+ public static final int GL_ONE_MINUS_DST_COLOR = 0x0307;
+ public static final int GL_ONE_MINUS_SRC_ALPHA = 0x0303;
+ public static final int GL_ONE_MINUS_SRC_COLOR = 0x0301;
+ public static final int GL_OPERAND0_ALPHA_EXT = 0x8598;
+ public static final int GL_OPERAND0_RGB_EXT = 0x8590;
+ public static final int GL_OPERAND1_ALPHA_EXT = 0x8599;
+ public static final int GL_OPERAND1_RGB_EXT = 0x8591;
+ public static final int GL_OPERAND2_ALPHA_EXT = 0x859A;
+ public static final int GL_OPERAND2_RGB_EXT = 0x8592;
+ public static final int GL_OPERAND3_ALPHA_NV = 0x859B;
+ public static final int GL_OPERAND3_RGB_NV = 0x8593;
+ public static final int GL_OR = 0x1507;
+ public static final int GL_ORDER = 0x0A01;
+ public static final int GL_OR_INVERTED = 0x150D;
+ public static final int GL_OR_REVERSE = 0x150B;
+ public static final int GL_OUT_OF_MEMORY = 0x0505;
+ public static final int GL_PACK_ALIGNMENT = 0x0D05;
+ public static final int GL_PACK_CMYK_HINT_EXT = 0x800E;
+ public static final int GL_PACK_IMAGE_DEPTH_SGIS = 0x8131;
+ public static final int GL_PACK_IMAGE_HEIGHT = 0x806C;
+ public static final int GL_PACK_IMAGE_HEIGHT_EXT = 0x806C;
+ public static final int GL_PACK_LSB_FIRST = 0x0D01;
+ public static final int GL_PACK_ROW_LENGTH = 0x0D02;
+ public static final int GL_PACK_SKIP_IMAGES = 0x806B;
+ public static final int GL_PACK_SKIP_IMAGES_EXT = 0x806B;
+ public static final int GL_PACK_SKIP_PIXELS = 0x0D04;
+ public static final int GL_PACK_SKIP_ROWS = 0x0D03;
+ public static final int GL_PACK_SKIP_VOLUMES_SGIS = 0x8130;
+ public static final int GL_PACK_SWAP_BYTES = 0x0D00;
+ public static final int GL_PASS_THROUGH_TOKEN = 0x0700;
+ public static final int GL_PERSPECTIVE_CORRECTION_HINT = 0x0C50;
+ public static final int GL_PERTURB_EXT = 0x85AE;
+ public static final int GL_PHONG_HINT_WIN = 0x80EB;
+ public static final int GL_PHONG_WIN = 0x80EA;
+ public static final int GL_PIXEL_CUBIC_WEIGHT_EXT = 0x8333;
+ public static final int GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS = 0x1002;
+ public static final int GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS = 0x1001;
+ public static final int GL_PIXEL_GROUP_COLOR_SGIS = 0x1003;
+ public static final int GL_PIXEL_MAG_FILTER_EXT = 0x8331;
+ public static final int GL_PIXEL_MAP_A_TO_A = 0x0C79;
+ public static final int GL_PIXEL_MAP_A_TO_A_SIZE = 0x0CB9;
+ public static final int GL_PIXEL_MAP_B_TO_B = 0x0C78;
+ public static final int GL_PIXEL_MAP_B_TO_B_SIZE = 0x0CB8;
+ public static final int GL_PIXEL_MAP_G_TO_G = 0x0C77;
+ public static final int GL_PIXEL_MAP_G_TO_G_SIZE = 0x0CB7;
+ public static final int GL_PIXEL_MAP_I_TO_A = 0x0C75;
+ public static final int GL_PIXEL_MAP_I_TO_A_SIZE = 0x0CB5;
+ public static final int GL_PIXEL_MAP_I_TO_B = 0x0C74;
+ public static final int GL_PIXEL_MAP_I_TO_B_SIZE = 0x0CB4;
+ public static final int GL_PIXEL_MAP_I_TO_G = 0x0C73;
+ public static final int GL_PIXEL_MAP_I_TO_G_SIZE = 0x0CB3;
+ public static final int GL_PIXEL_MAP_I_TO_I = 0x0C70;
+ public static final int GL_PIXEL_MAP_I_TO_I_SIZE = 0x0CB0;
+ public static final int GL_PIXEL_MAP_I_TO_R = 0x0C72;
+ public static final int GL_PIXEL_MAP_I_TO_R_SIZE = 0x0CB2;
+ public static final int GL_PIXEL_MAP_R_TO_R = 0x0C76;
+ public static final int GL_PIXEL_MAP_R_TO_R_SIZE = 0x0CB6;
+ public static final int GL_PIXEL_MAP_S_TO_S = 0x0C71;
+ public static final int GL_PIXEL_MAP_S_TO_S_SIZE = 0x0CB1;
+ public static final int GL_PIXEL_MIN_FILTER_EXT = 0x8332;
+ public static final int GL_PIXEL_MODE_BIT = 0x00000020;
+ public static final int GL_PIXEL_TEXTURE_SGIS = 0x1000;
+ public static final int GL_PIXEL_TEX_GEN_MODE_SGIX = 0x832B;
+ public static final int GL_PIXEL_TEX_GEN_SGIX = 0x8139;
+ public static final int GL_PIXEL_TRANSFORM_2D_EXT = 0x8330;
+ public static final int GL_PIXEL_TRANSFORM_2D_MATRIX_EXT = 0x8338;
+ public static final int GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT = 0x8336;
+ public static final int GL_POINT = 0x1B00;
+ public static final int GL_POINTS = 0x0000;
+ public static final int GL_POINT_BIT = 0x00000002;
+ public static final int GL_POINT_FADE_THRESHOLD_SIZE_EXT = 0x8128;
+ public static final int GL_POINT_SIZE = 0x0B11;
+ public static final int GL_POINT_SIZE_GRANULARITY = 0x0B13;
+ public static final int GL_POINT_SIZE_MAX_EXT = 0x8127;
+ public static final int GL_POINT_SIZE_MIN_EXT = 0x8126;
+ public static final int GL_POINT_SIZE_RANGE = 0x0B12;
+ public static final int GL_POINT_SMOOTH = 0x0B10;
+ public static final int GL_POINT_SMOOTH_HINT = 0x0C51;
+ public static final int GL_POINT_TOKEN = 0x0701;
+ public static final int GL_POLYGON = 0x0009;
+ public static final int GL_POLYGON_BIT = 0x00000008;
+ public static final int GL_POLYGON_MODE = 0x0B40;
+ public static final int GL_POLYGON_OFFSET_BIAS_EXT = 0x8039;
+ public static final int GL_POLYGON_OFFSET_EXT = 0x8037;
+ public static final int GL_POLYGON_OFFSET_FACTOR = 0x8038;
+ public static final int GL_POLYGON_OFFSET_FACTOR_EXT = 0x8038;
+ public static final int GL_POLYGON_OFFSET_FILL = 0x8037;
+ public static final int GL_POLYGON_OFFSET_LINE = 0x2A02;
+ public static final int GL_POLYGON_OFFSET_POINT = 0x2A01;
+ public static final int GL_POLYGON_OFFSET_UNITS = 0x2A00;
+ public static final int GL_POLYGON_SMOOTH = 0x0B41;
+ public static final int GL_POLYGON_SMOOTH_HINT = 0x0C53;
+ public static final int GL_POLYGON_STIPPLE = 0x0B42;
+ public static final int GL_POLYGON_STIPPLE_BIT = 0x00000010;
+ public static final int GL_POLYGON_TOKEN = 0x0703;
+ public static final int GL_POSITION = 0x1203;
+ public static final int GL_POST_COLOR_MATRIX_ALPHA_BIAS = 0x80BB;
+ public static final int GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI = 0x80BB;
+ public static final int GL_POST_COLOR_MATRIX_ALPHA_SCALE = 0x80B7;
+ public static final int GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI = 0x80B7;
+ public static final int GL_POST_COLOR_MATRIX_BLUE_BIAS = 0x80BA;
+ public static final int GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI = 0x80BA;
+ public static final int GL_POST_COLOR_MATRIX_BLUE_SCALE = 0x80B6;
+ public static final int GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI = 0x80B6;
+ public static final int GL_POST_COLOR_MATRIX_COLOR_TABLE = 0x80D2;
+ public static final int GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI = 0x80D2;
+ public static final int GL_POST_COLOR_MATRIX_GREEN_BIAS = 0x80B9;
+ public static final int GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI = 0x80B9;
+ public static final int GL_POST_COLOR_MATRIX_GREEN_SCALE = 0x80B5;
+ public static final int GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI = 0x80B5;
+ public static final int GL_POST_COLOR_MATRIX_RED_BIAS = 0x80B8;
+ public static final int GL_POST_COLOR_MATRIX_RED_BIAS_SGI = 0x80B8;
+ public static final int GL_POST_COLOR_MATRIX_RED_SCALE = 0x80B4;
+ public static final int GL_POST_COLOR_MATRIX_RED_SCALE_SGI = 0x80B4;
+ public static final int GL_POST_CONVOLUTION_ALPHA_BIAS = 0x8023;
+ public static final int GL_POST_CONVOLUTION_ALPHA_BIAS_EXT = 0x8023;
+ public static final int GL_POST_CONVOLUTION_ALPHA_SCALE = 0x801F;
+ public static final int GL_POST_CONVOLUTION_ALPHA_SCALE_EXT = 0x801F;
+ public static final int GL_POST_CONVOLUTION_BLUE_BIAS = 0x8022;
+ public static final int GL_POST_CONVOLUTION_BLUE_BIAS_EXT = 0x8022;
+ public static final int GL_POST_CONVOLUTION_BLUE_SCALE = 0x801E;
+ public static final int GL_POST_CONVOLUTION_BLUE_SCALE_EXT = 0x801E;
+ public static final int GL_POST_CONVOLUTION_COLOR_TABLE = 0x80D1;
+ public static final int GL_POST_CONVOLUTION_COLOR_TABLE_SGI = 0x80D1;
+ public static final int GL_POST_CONVOLUTION_GREEN_BIAS = 0x8021;
+ public static final int GL_POST_CONVOLUTION_GREEN_BIAS_EXT = 0x8021;
+ public static final int GL_POST_CONVOLUTION_GREEN_SCALE = 0x801D;
+ public static final int GL_POST_CONVOLUTION_GREEN_SCALE_EXT = 0x801D;
+ public static final int GL_POST_CONVOLUTION_RED_BIAS = 0x8020;
+ public static final int GL_POST_CONVOLUTION_RED_BIAS_EXT = 0x8020;
+ public static final int GL_POST_CONVOLUTION_RED_SCALE = 0x801C;
+ public static final int GL_POST_CONVOLUTION_RED_SCALE_EXT = 0x801C;
+ public static final int GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX = 0x817B;
+ public static final int GL_POST_TEXTURE_FILTER_BIAS_SGIX = 0x8179;
+ public static final int GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX = 0x817C;
+ public static final int GL_POST_TEXTURE_FILTER_SCALE_SGIX = 0x817A;
+ public static final int GL_PREFER_DOUBLEBUFFER_HINT_PGI = 107000;
+ public static final int GL_PREVIOUS_EXT = 0x8578;
+ public static final int GL_PRIMARY_COLOR_EXT = 0x8577;
+ public static final int GL_PRIMARY_COLOR_NV = 0x852C;
+ public static final int GL_PROJECTION = 0x1701;
+ public static final int GL_PROJECTION_MATRIX = 0x0BA7;
+ public static final int GL_PROJECTION_STACK_DEPTH = 0x0BA4;
+ public static final int GL_PROXY_COLOR_TABLE = 0x80D3;
+ public static final int GL_PROXY_COLOR_TABLE_SGI = 0x80D3;
+ public static final int GL_PROXY_HISTOGRAM = 0x8025;
+ public static final int GL_PROXY_HISTOGRAM_EXT = 0x8025;
+ public static final int GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE = 0x80D5;
+ public static final int GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI = 0x80D5;
+ public static final int GL_PROXY_POST_CONVOLUTION_COLOR_TABLE = 0x80D4;
+ public static final int GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI = 0x80D4;
+ public static final int GL_PROXY_TEXTURE_1D = 0x8063;
+ public static final int GL_PROXY_TEXTURE_1D_EXT = 0x8063;
+ public static final int GL_PROXY_TEXTURE_2D = 0x8064;
+ public static final int GL_PROXY_TEXTURE_2D_EXT = 0x8064;
+ public static final int GL_PROXY_TEXTURE_3D = 0x8070;
+ public static final int GL_PROXY_TEXTURE_3D_EXT = 0x8070;
+ public static final int GL_PROXY_TEXTURE_4D_SGIS = 0x8135;
+ public static final int GL_PROXY_TEXTURE_COLOR_TABLE_SGI = 0x80BD;
+ public static final int GL_PROXY_TEXTURE_CUBE_MAP_EXT = 0x851B;
+ public static final int GL_Q = 0x2003;
+ public static final int GL_QUADRATIC_ATTENUATION = 0x1209;
+ public static final int GL_QUADS = 0x0007;
+ public static final int GL_QUAD_ALPHA4_SGIS = 0x811E;
+ public static final int GL_QUAD_ALPHA8_SGIS = 0x811F;
+ public static final int GL_QUAD_INTENSITY4_SGIS = 0x8122;
+ public static final int GL_QUAD_INTENSITY8_SGIS = 0x8123;
+ public static final int GL_QUAD_LUMINANCE4_SGIS0 = 0x8120;
+ public static final int GL_QUAD_LUMINANCE8_SGIS = 0x8121;
+ public static final int GL_QUAD_STRIP = 0x0008;
+ public static final int GL_QUAD_TEXTURE_SELECT_SGIS = 0x8125;
+ public static final int GL_R = 0x2002;
+ public static final int GL_R1UI_C3F_V3F_SUN = 0x85C6;
+ public static final int GL_R1UI_C4F_N3F_V3F_SUN = 0x85C8;
+ public static final int GL_R1UI_C4UB_V3F_SUN = 0x85C5;
+ public static final int GL_R1UI_N3F_V3F_SUN = 0x85C7;
+ public static final int GL_R1UI_T2F_C4F_N3F_V3F_SUN = 0x85CB;
+ public static final int GL_R1UI_T2F_N3F_V3F_SUN = 0x85CA;
+ public static final int GL_R1UI_T2F_V3F_SUN = 0x85C9;
+ public static final int GL_R1UI_V3F_SUN = 0x85C4;
+ public static final int GL_R3_G3_B2 = 0x2A10;
+ public static final int GL_READ_BUFFER = 0x0C02;
+ public static final int GL_RECLAIM_MEMORY_HINT_PGI = 107006;
+ public static final int GL_RED = 0x1903;
+ public static final int GL_REDUCE = 0x8016;
+ public static final int GL_REDUCE_EXT = 0x8016;
+ public static final int GL_RED_BIAS = 0x0D15;
+ public static final int GL_RED_BITS = 0x0D52;
+ public static final int GL_RED_MAX_CLAMP_INGR = 0x8564;
+ public static final int GL_RED_MIN_CLAMP_INGR = 0x8560;
+ public static final int GL_RED_SCALE = 0x0D14;
+ public static final int GL_REFERENCE_PLANE_EQUATION_SGIX = 0x817E;
+ public static final int GL_REFERENCE_PLANE_SGIX = 0x817D;
+ public static final int GL_REFLECTION_MAP_EXT = 0x8512;
+ public static final int GL_REFLECTION_MAP_NV = 0x8512;
+ public static final int GL_REGISTER_COMBINERS_NV = 0x8522;
+ public static final int GL_RENDER = 0x1C00;
+ public static final int GL_RENDERER = 0x1F01;
+ public static final int GL_RENDER_MODE = 0x0C40;
+ public static final int GL_REPEAT = 0x2901;
+ public static final int GL_REPLACE = 0x1E01;
+ public static final int GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN = 0x85C3;
+ public static final int GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN = 0x85C2;
+ public static final int GL_REPLACEMENT_CODE_ARRAY_SUN = 0x85C0;
+ public static final int GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN = 0x85C1;
+ public static final int GL_REPLACEMENT_CODE_SUN = 0x81D8;
+ public static final int GL_REPLACE_EXT = 0x8062;
+ public static final int GL_REPLACE_MIDDLE_SUN = 0x02;
+ public static final int GL_REPLACE_OLDEST_SUN = 0x03;
+ public static final int GL_REPLICATE_BORDER = 0x8153;
+ public static final int GL_RESCALE_NORMAL = 0x803A;
+ public static final int GL_RESCALE_NORMAL_EXT = 0x803A;
+ public static final int GL_RESTART_SUN = 0x01;
+ public static final int GL_RETURN = 0x0102;
+ public static final int GL_RGB = 0x1907;
+ public static final int GL_RGB10 = 0x8052;
+ public static final int GL_RGB10_A2 = 0x8059;
+ public static final int GL_RGB10_A2_EXT = 0x8059;
+ public static final int GL_RGB10_EXT = 0x8052;
+ public static final int GL_RGB12 = 0x8053;
+ public static final int GL_RGB12_EXT = 0x8053;
+ public static final int GL_RGB16 = 0x8054;
+ public static final int GL_RGB16_EXT = 0x8054;
+ public static final int GL_RGB2_EXT = 0x804E;
+ public static final int GL_RGB4 = 0x804F;
+ public static final int GL_RGB4_EXT = 0x804F;
+ public static final int GL_RGB5 = 0x8050;
+ public static final int GL_RGB5_A1 = 0x8057;
+ public static final int GL_RGB5_A1_EXT = 0x8057;
+ public static final int GL_RGB5_EXT = 0x8050;
+ public static final int GL_RGB8 = 0x8051;
+ public static final int GL_RGB8_EXT = 0x8051;
+ public static final int GL_RGBA = 0x1908;
+ public static final int GL_RGBA12 = 0x805A;
+ public static final int GL_RGBA12_EXT = 0x805A;
+ public static final int GL_RGBA16 = 0x805B;
+ public static final int GL_RGBA16_EXT = 0x805B;
+ public static final int GL_RGBA2 = 0x8055;
+ public static final int GL_RGBA2_EXT = 0x8055;
+ public static final int GL_RGBA4 = 0x8056;
+ public static final int GL_RGBA4_EXT = 0x8056;
+ public static final int GL_RGBA8 = 0x8058;
+ public static final int GL_RGBA8_EXT = 0x8058;
+ public static final int GL_RGBA_MODE = 0x0C31;
+ public static final int GL_RGB_SCALE_EXT = 0x8573;
+ public static final int GL_RIGHT = 0x0407;
+ public static final int GL_S = 0x2000;
+ public static final int GL_SAMPLES_ARB = 0x80A9;
+ public static final int GL_SAMPLES_SGIS = 0x80A9;
+ public static final int GL_SAMPLE_ALPHA_TO_COVERAGE_ARB = 0x809E;
+ public static final int GL_SAMPLE_ALPHA_TO_MASK_SGIS = 0x809E;
+ public static final int GL_SAMPLE_ALPHA_TO_ONE_ARB = 0x809F;
+ public static final int GL_SAMPLE_ALPHA_TO_ONE_SGIS = 0x809F;
+ public static final int GL_SAMPLE_BUFFERS_ARB = 0x80A8;
+ public static final int GL_SAMPLE_BUFFERS_SGIS = 0x80A8;
+ public static final int GL_SAMPLE_COVERAGE_ARB = 0x80A0;
+ public static final int GL_SAMPLE_COVERAGE_INVERT_ARB = 0x80AB;
+ public static final int GL_SAMPLE_COVERAGE_VALUE_ARB = 0x80AA;
+ public static final int GL_SAMPLE_MASK_INVERT_SGIS = 0x80AB;
+ public static final int GL_SAMPLE_MASK_SGIS = 0x80A0;
+ public static final int GL_SAMPLE_MASK_VALUE_SGIS = 0x80AA;
+ public static final int GL_SAMPLE_MAX_PASSES_ARB = 0x84E7;
+ public static final int GL_SAMPLE_PASS_ARB = 0x84E8;
+ public static final int GL_SAMPLE_PATTERN_SGIS = 0x80AC;
+ public static final int GL_SCALE_BY_FOUR_NV = 0x853F;
+ public static final int GL_SCALE_BY_ONE_HALF_NV = 0x8540;
+ public static final int GL_SCALE_BY_TWO_NV = 0x853E;
+ public static final int GL_SCISSOR_BIT = 0x00080000;
+ public static final int GL_SCISSOR_BOX = 0x0C10;
+ public static final int GL_SCISSOR_TEST = 0x0C11;
+ public static final int GL_SCREEN_COORDINATES_REND = 0x8490;
+ public static final int GL_SECONDARY_COLOR_ARRAY_EXT = 0x845E;
+ public static final int GL_SECONDARY_COLOR_ARRAY_POINTER_EXT = 0x845D;
+ public static final int GL_SECONDARY_COLOR_ARRAY_SIZE_EXT = 0x845A;
+ public static final int GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT = 0x845C;
+ public static final int GL_SECONDARY_COLOR_ARRAY_TYPE_EXT = 0x845B;
+ public static final int GL_SECONDARY_COLOR_NV = 0x852D;
+ public static final int GL_SELECT = 0x1C02;
+ public static final int GL_SELECTION_BUFFER_POINTER = 0x0DF3;
+ public static final int GL_SELECTION_BUFFER_SIZE = 0x0DF4;
+ public static final int GL_SEPARABLE_2D = 0x8012;
+ public static final int GL_SEPARABLE_2D_EXT = 0x8012;
+ public static final int GL_SEPARATE_SPECULAR_COLOR = 0x81FA;
+ public static final int GL_SEPARATE_SPECULAR_COLOR_EXT = 0x81FA;
+ public static final int GL_SET = 0x150F;
+ public static final int GL_SHADE_MODEL = 0x0B54;
+ public static final int GL_SHADOW_ATTENUATION_EXT = 0x834E;
+ public static final int GL_SHARED_TEXTURE_PALETTE_EXT = 0x81FB;
+ public static final int GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS = 0x80B0;
+ public static final int GL_SHININESS = 0x1601;
+ public static final int GL_SHORT = 0x1402;
+ public static final int GL_SIGNED_IDENTITY_NV = 0x853C;
+ public static final int GL_SIGNED_NEGATE_NV = 0x853D;
+ public static final int GL_SINGLE_COLOR = 0x81F9;
+ public static final int GL_SINGLE_COLOR_EXT = 0x81F9;
+ public static final int GL_SMOOTH = 0x1D01;
+ public static final int GL_SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23;
+ public static final int GL_SMOOTH_LINE_WIDTH_RANGE = 0x0B22;
+ public static final int GL_SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13;
+ public static final int GL_SMOOTH_POINT_SIZE_RANGE = 0x0B12;
+ public static final int GL_SOURCE0_ALPHA_EXT = 0x8588;
+ public static final int GL_SOURCE0_RGB_EXT = 0x8580;
+ public static final int GL_SOURCE1_ALPHA_EXT = 0x8589;
+ public static final int GL_SOURCE1_RGB_EXT = 0x8581;
+ public static final int GL_SOURCE2_ALPHA_EXT = 0x858A;
+ public static final int GL_SOURCE2_RGB_EXT = 0x8582;
+ public static final int GL_SOURCE3_ALPHA_NV = 0x858B;
+ public static final int GL_SOURCE3_RGB_NV = 0x8583;
+ public static final int GL_SPARE0_NV = 0x852E;
+ public static final int GL_SPARE0_PLUS_SECONDARY_COLOR_NV = 0x8532;
+ public static final int GL_SPARE1_NV = 0x852F;
+ public static final int GL_SPECULAR = 0x1202;
+ public static final int GL_SPHERE_MAP = 0x2402;
+ public static final int GL_SPOT_CUTOFF = 0x1206;
+ public static final int GL_SPOT_DIRECTION = 0x1204;
+ public static final int GL_SPOT_EXPONENT = 0x1205;
+ public static final int GL_SPRITE_AXIAL_SGIX = 0x814C;
+ public static final int GL_SPRITE_AXIS_SGIX = 0x814A;
+ public static final int GL_SPRITE_EYE_ALIGNED_SGIX = 0x814E;
+ public static final int GL_SPRITE_MODE_SGIX = 0x8149;
+ public static final int GL_SPRITE_OBJECT_ALIGNED_SGIX = 0x814D;
+ public static final int GL_SPRITE_SGIX = 0x8148;
+ public static final int GL_SPRITE_TRANSLATION_SGIX = 0x814B;
+ public static final int GL_SRC_ALPHA = 0x0302;
+ public static final int GL_SRC_ALPHA_SATURATE = 0x0308;
+ public static final int GL_SRC_COLOR = 0x0300;
+ public static final int GL_STACK_OVERFLOW = 0x0503;
+ public static final int GL_STACK_UNDERFLOW = 0x0504;
+ public static final int GL_STATIC_VERTEX_ARRAY_IBM = 0x19295;
+ public static final int GL_STENCIL = 0x1802;
+ public static final int GL_STENCIL_BITS = 0x0D57;
+ public static final int GL_STENCIL_BUFFER_BIT = 0x00000400;
+ public static final int GL_STENCIL_CLEAR_VALUE = 0x0B91;
+ public static final int GL_STENCIL_FAIL = 0x0B94;
+ public static final int GL_STENCIL_FUNC = 0x0B92;
+ public static final int GL_STENCIL_INDEX = 0x1901;
+ public static final int GL_STENCIL_PASS_DEPTH_FAIL = 0x0B95;
+ public static final int GL_STENCIL_PASS_DEPTH_PASS = 0x0B96;
+ public static final int GL_STENCIL_REF = 0x0B97;
+ public static final int GL_STENCIL_TEST = 0x0B90;
+ public static final int GL_STENCIL_VALUE_MASK = 0x0B93;
+ public static final int GL_STENCIL_WRITEMASK = 0x0B98;
+ public static final int GL_STEREO = 0x0C33;
+ public static final int GL_STRICT_DEPTHFUNC_HINT_PGI = 107030;
+ public static final int GL_STRICT_LIGHTING_HINT_PGI = 107031;
+ public static final int GL_STRICT_SCISSOR_HINT_PGI = 107032;
+ public static final int GL_SUBPIXEL_BITS = 0x0D50;
+ public static final int GL_T = 0x2001;
+ public static final int GL_T2F_C3F_V3F = 0x2A2A;
+ public static final int GL_T2F_C4F_N3F_V3F = 0x2A2C;
+ public static final int GL_T2F_C4UB_V3F = 0x2A29;
+ public static final int GL_T2F_N3F_V3F = 0x2A2B;
+ public static final int GL_T2F_V3F = 0x2A27;
+ public static final int GL_T4F_C4F_N3F_V4F = 0x2A2D;
+ public static final int GL_T4F_V4F = 0x2A28;
+ public static final int GL_TABLE_TOO_LARGE = 0x8031;
+ public static final int GL_TABLE_TOO_LARGE_EXT = 0x8031;
+ public static final int GL_TANGENT_ARRAY_EXT = 0x8439;
+ public static final int GL_TANGENT_ARRAY_POINTER_EXT = 0x8442;
+ public static final int GL_TANGENT_ARRAY_STRIDE_EXT = 0x843F;
+ public static final int GL_TANGENT_ARRAY_TYPE_EXT = 0x843E;
+ public static final int GL_TEXTURE = 0x1702;
+ public static final int GL_TEXTURE0_ARB = 0x84C0;
+ public static final int GL_TEXTURE10_ARB = 0x84CA;
+ public static final int GL_TEXTURE11_ARB = 0x84CB;
+ public static final int GL_TEXTURE12_ARB = 0x84CC;
+ public static final int GL_TEXTURE13_ARB = 0x84CD;
+ public static final int GL_TEXTURE14_ARB = 0x84CE;
+ public static final int GL_TEXTURE15_ARB = 0x84CF;
+ public static final int GL_TEXTURE16_ARB = 0x84D0;
+ public static final int GL_TEXTURE17_ARB = 0x84D1;
+ public static final int GL_TEXTURE18_ARB = 0x84D2;
+ public static final int GL_TEXTURE19_ARB = 0x84D3;
+ public static final int GL_TEXTURE1_ARB = 0x84C1;
+ public static final int GL_TEXTURE20_ARB = 0x84D4;
+ public static final int GL_TEXTURE21_ARB = 0x84D5;
+ public static final int GL_TEXTURE22_ARB = 0x84D6;
+ public static final int GL_TEXTURE23_ARB = 0x84D7;
+ public static final int GL_TEXTURE24_ARB = 0x84D8;
+ public static final int GL_TEXTURE25_ARB = 0x84D9;
+ public static final int GL_TEXTURE26_ARB = 0x84DA;
+ public static final int GL_TEXTURE27_ARB = 0x84DB;
+ public static final int GL_TEXTURE28_ARB = 0x84DC;
+ public static final int GL_TEXTURE29_ARB = 0x84DD;
+ public static final int GL_TEXTURE2_ARB = 0x84C2;
+ public static final int GL_TEXTURE30_ARB = 0x84DE;
+ public static final int GL_TEXTURE31_ARB = 0x84DF;
+ public static final int GL_TEXTURE3_ARB = 0x84C3;
+ public static final int GL_TEXTURE4_ARB = 0x84C4;
+ public static final int GL_TEXTURE5_ARB = 0x84C5;
+ public static final int GL_TEXTURE6_ARB = 0x84C6;
+ public static final int GL_TEXTURE7_ARB = 0x84C7;
+ public static final int GL_TEXTURE8_ARB = 0x84C8;
+ public static final int GL_TEXTURE9_ARB = 0x84C9;
+ public static final int GL_TEXTURE_1D = 0x0DE0;
+ public static final int GL_TEXTURE_1D_BINDING_EXT = 0x8068;
+ public static final int GL_TEXTURE_2D = 0x0DE1;
+ public static final int GL_TEXTURE_2D_BINDING_EXT = 0x8069;
+ public static final int GL_TEXTURE_3D = 0x806F;
+ public static final int GL_TEXTURE_3D_BINDING_EXT = 0x806A;
+ public static final int GL_TEXTURE_3D_EXT = 0x806F;
+ public static final int GL_TEXTURE_4DSIZE_SGIS = 0x8136;
+ public static final int GL_TEXTURE_4D_BINDING_SGIS = 0x814F;
+ public static final int GL_TEXTURE_4D_SGIS = 0x8134;
+ public static final int GL_TEXTURE_ALPHA_SIZE = 0x805F;
+ public static final int GL_TEXTURE_ALPHA_SIZE_EXT = 0x805F;
+ public static final int GL_TEXTURE_APPLICATION_MODE_EXT = 0x834F;
+ public static final int GL_TEXTURE_BASE_LEVEL = 0x813C;
+ public static final int GL_TEXTURE_BASE_LEVEL_SGIS = 0x813C;
+ public static final int GL_TEXTURE_BINDING_1D = 0x8068;
+ public static final int GL_TEXTURE_BINDING_2D = 0x8069;
+ public static final int GL_TEXTURE_BINDING_3D = 0x806A;
+ public static final int GL_TEXTURE_BINDING_CUBE_MAP_EXT = 0x8514;
+ public static final int GL_TEXTURE_BIT = 0x00040000;
+ public static final int GL_TEXTURE_BLUE_SIZE = 0x805E;
+ public static final int GL_TEXTURE_BLUE_SIZE_EXT = 0x805E;
+ public static final int GL_TEXTURE_BORDER = 0x1005;
+ public static final int GL_TEXTURE_BORDER_COLOR = 0x1004;
+ public static final int GL_TEXTURE_CLIPMAP_CENTER_SGIX = 0x8171;
+ public static final int GL_TEXTURE_CLIPMAP_DEPTH_SGIX = 0x8176;
+ public static final int GL_TEXTURE_CLIPMAP_FRAME_SGIX = 0x8172;
+ public static final int GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX = 0x8175;
+ public static final int GL_TEXTURE_CLIPMAP_OFFSET_SGIX = 0x8173;
+ public static final int GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX = 0x8174;
+ public static final int GL_TEXTURE_COMPARE_OPERATOR_SGIX = 0x819B;
+ public static final int GL_TEXTURE_COMPARE_SGIX = 0x819A;
+ public static final int GL_TEXTURE_COMPONENTS = 0x1003;
+ public static final int GL_TEXTURE_COMPRESSED_ARB = 0x86A1;
+ public static final int GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB = 0x86A0;
+ public static final int GL_TEXTURE_COMPRESSION_HINT_ARB = 0x84EF;
+ public static final int GL_TEXTURE_CONSTANT_DATA_SUNX = 0x81D6;
+ public static final int GL_TEXTURE_COORD_ARRAY = 0x8078;
+ public static final int GL_TEXTURE_COORD_ARRAY_COUNT_EXT = 0x808B;
+ public static final int GL_TEXTURE_COORD_ARRAY_EXT = 0x8078;
+ public static final int GL_TEXTURE_COORD_ARRAY_POINTER = 0x8092;
+ public static final int GL_TEXTURE_COORD_ARRAY_POINTER_EXT = 0x8092;
+ public static final int GL_TEXTURE_COORD_ARRAY_SIZE = 0x8088;
+ public static final int GL_TEXTURE_COORD_ARRAY_SIZE_EXT = 0x8088;
+ public static final int GL_TEXTURE_COORD_ARRAY_STRIDE = 0x808A;
+ public static final int GL_TEXTURE_COORD_ARRAY_STRIDE_EXT = 0x808A;
+ public static final int GL_TEXTURE_COORD_ARRAY_TYPE = 0x8089;
+ public static final int GL_TEXTURE_COORD_ARRAY_TYPE_EXT = 0x8089;
+ public static final int GL_TEXTURE_CUBE_MAP_EXT = 0x8513;
+ public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT = 0x8516;
+ public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT = 0x8518;
+ public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT = 0x851A;
+ public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT = 0x8515;
+ public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT = 0x8517;
+ public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT = 0x8519;
+ public static final int GL_TEXTURE_DEPTH = 0x8071;
+ public static final int GL_TEXTURE_DEPTH_EXT = 0x8071;
+ public static final int GL_TEXTURE_ENV = 0x2300;
+ public static final int GL_TEXTURE_ENV_BIAS_SGIX = 0x80BE;
+ public static final int GL_TEXTURE_ENV_COLOR = 0x2201;
+ public static final int GL_TEXTURE_ENV_MODE = 0x2200;
+ public static final int GL_TEXTURE_FILTER4_SIZE_SGIS = 0x8147;
+ public static final int GL_TEXTURE_FILTER_CONTROL_EXT = 0x8500;
+ public static final int GL_TEXTURE_GEN_MODE = 0x2500;
+ public static final int GL_TEXTURE_GEN_Q = 0x0C63;
+ public static final int GL_TEXTURE_GEN_R = 0x0C62;
+ public static final int GL_TEXTURE_GEN_S = 0x0C60;
+ public static final int GL_TEXTURE_GEN_T = 0x0C61;
+ public static final int GL_TEXTURE_GEQUAL_R_SGIX = 0x819D;
+ public static final int GL_TEXTURE_GREEN_SIZE = 0x805D;
+ public static final int GL_TEXTURE_GREEN_SIZE_EXT = 0x805D;
+ public static final int GL_TEXTURE_HEIGHT = 0x1001;
+ public static final int GL_TEXTURE_INDEX_SIZE_EXT = 0x80ED;
+ public static final int GL_TEXTURE_INTENSITY_SIZE = 0x8061;
+ public static final int GL_TEXTURE_INTENSITY_SIZE_EXT = 0x8061;
+ public static final int GL_TEXTURE_INTERNAL_FORMAT = 0x1003;
+ public static final int GL_TEXTURE_LEQUAL_R_SGIX = 0x819C;
+ public static final int GL_TEXTURE_LIGHT_EXT = 0x8350;
+ public static final int GL_TEXTURE_LOD_BIAS_EXT = 0x8501;
+ public static final int GL_TEXTURE_LOD_BIAS_R_SGIX = 0x8190;
+ public static final int GL_TEXTURE_LOD_BIAS_S_SGIX = 0x818E;
+ public static final int GL_TEXTURE_LOD_BIAS_T_SGIX = 0x818F;
+ public static final int GL_TEXTURE_LUMINANCE_SIZE = 0x8060;
+ public static final int GL_TEXTURE_LUMINANCE_SIZE_EXT = 0x8060;
+ public static final int GL_TEXTURE_MAG_FILTER = 0x2800;
+ public static final int GL_TEXTURE_MATERIAL_FACE_EXT = 0x8351;
+ public static final int GL_TEXTURE_MATERIAL_PARAMETER_EXT = 0x8352;
+ public static final int GL_TEXTURE_MATRIX = 0x0BA8;
+ public static final int GL_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
+ public static final int GL_TEXTURE_MAX_LEVEL = 0x813D;
+ public static final int GL_TEXTURE_MAX_LEVEL_SGIS = 0x813D;
+ public static final int GL_TEXTURE_MAX_LOD = 0x813B;
+ public static final int GL_TEXTURE_MAX_LOD_SGIS = 0x813B;
+ public static final int GL_TEXTURE_MIN_FILTER = 0x2801;
+ public static final int GL_TEXTURE_MIN_LOD = 0x813A;
+ public static final int GL_TEXTURE_MIN_LOD_SGIS = 0x813A;
+ public static final int GL_TEXTURE_NORMAL_EXT = 0x85AF;
+ public static final int GL_TEXTURE_PRIORITY = 0x8066;
+ public static final int GL_TEXTURE_PRIORITY_EXT = 0x8066;
+ public static final int GL_TEXTURE_RED_SIZE = 0x805C;
+ public static final int GL_TEXTURE_RED_SIZE_EXT = 0x805C;
+ public static final int GL_TEXTURE_RESIDENT = 0x8067;
+ public static final int GL_TEXTURE_RESIDENT_EXT = 0x8067;
+ public static final int GL_TEXTURE_STACK_DEPTH = 0x0BA5;
+ public static final int GL_TEXTURE_WIDTH = 0x1000;
+ public static final int GL_TEXTURE_WRAP_Q_SGIS = 0x8137;
+ public static final int GL_TEXTURE_WRAP_R = 0x8072;
+ public static final int GL_TEXTURE_WRAP_R_EXT = 0x8072;
+ public static final int GL_TEXTURE_WRAP_S = 0x2802;
+ public static final int GL_TEXTURE_WRAP_T = 0x2803;
+ public static final int GL_TRANSFORM_BIT = 0x00001000;
+ public static final int GL_TRANSFORM_HINT_APPLE = 0x85B1;
+ public static final int GL_TRANSPOSE_COLOR_MATRIX_ARB = 0x84E6;
+ public static final int GL_TRANSPOSE_MODELVIEW_MATRIX_ARB = 0x84E3;
+ public static final int GL_TRANSPOSE_PROJECTION_MATRIX_ARB = 0x84E4;
+ public static final int GL_TRANSPOSE_TEXTURE_MATRIX_ARB = 0x84E5;
+ public static final int GL_TRIANGLES = 0x0004;
+ public static final int GL_TRIANGLE_FAN = 0x0006;
+ public static final int GL_TRIANGLE_LIST_SUN = 0x81D7;
+ public static final int GL_TRIANGLE_STRIP = 0x0005;
+ public static final int GL_UNPACK_ALIGNMENT = 0x0CF5;
+ public static final int GL_UNPACK_CMYK_HINT_EXT = 0x800F;
+ public static final int GL_UNPACK_CONSTANT_DATA_SUNX = 0x81D5;
+ public static final int GL_UNPACK_IMAGE_DEPTH_SGIS = 0x8133;
+ public static final int GL_UNPACK_IMAGE_HEIGHT = 0x806E;
+ public static final int GL_UNPACK_IMAGE_HEIGHT_EXT = 0x806E;
+ public static final int GL_UNPACK_LSB_FIRST = 0x0CF1;
+ public static final int GL_UNPACK_ROW_LENGTH = 0x0CF2;
+ public static final int GL_UNPACK_SKIP_IMAGES = 0x806D;
+ public static final int GL_UNPACK_SKIP_IMAGES_EXT = 0x806D;
+ public static final int GL_UNPACK_SKIP_PIXELS = 0x0CF4;
+ public static final int GL_UNPACK_SKIP_ROWS = 0x0CF3;
+ public static final int GL_UNPACK_SKIP_VOLUMES_SGIS = 0x8132;
+ public static final int GL_UNPACK_SWAP_BYTES = 0x0CF0;
+ public static final int GL_UNSIGNED_BYTE = 0x1401;
+ public static final int GL_UNSIGNED_BYTE_2_3_3_REV = 0x8362;
+ public static final int GL_UNSIGNED_BYTE_3_3_2 = 0x8032;
+ public static final int GL_UNSIGNED_BYTE_3_3_2_EXT = 0x8032;
+ public static final int GL_UNSIGNED_IDENTITY_NV = 0x8536;
+ public static final int GL_UNSIGNED_INT = 0x1405;
+ public static final int GL_UNSIGNED_INT_10_10_10_2 = 0x8036;
+ public static final int GL_UNSIGNED_INT_10_10_10_2_EXT = 0x8036;
+ public static final int GL_UNSIGNED_INT_2_10_10_10_REV = 0x8368;
+ public static final int GL_UNSIGNED_INT_8_8_8_8 = 0x8035;
+ public static final int GL_UNSIGNED_INT_8_8_8_8_EXT = 0x8035;
+ public static final int GL_UNSIGNED_INT_8_8_8_8_REV = 0x8367;
+ public static final int GL_UNSIGNED_INVERT_NV = 0x8537;
+ public static final int GL_UNSIGNED_SHORT = 0x1403;
+ public static final int GL_UNSIGNED_SHORT_1_5_5_5_REV = 0x8366;
+ public static final int GL_UNSIGNED_SHORT_4_4_4_4 = 0x8033;
+ public static final int GL_UNSIGNED_SHORT_4_4_4_4_EXT = 0x8033;
+ public static final int GL_UNSIGNED_SHORT_4_4_4_4_REV = 0x8365;
+ public static final int GL_UNSIGNED_SHORT_5_5_5_1 = 0x8034;
+ public static final int GL_UNSIGNED_SHORT_5_5_5_1_EXT = 0x8034;
+ public static final int GL_UNSIGNED_SHORT_5_6_5 = 0x8363;
+ public static final int GL_UNSIGNED_SHORT_5_6_5_REV = 0x8364;
+ public static final int GL_V2F = 0x2A20;
+ public static final int GL_V3F = 0x2A21;
+ public static final int GL_VARIABLE_A_NV = 0x8523;
+ public static final int GL_VARIABLE_B_NV = 0x8524;
+ public static final int GL_VARIABLE_C_NV = 0x8525;
+ public static final int GL_VARIABLE_D_NV = 0x8526;
+ public static final int GL_VARIABLE_E_NV = 0x8527;
+ public static final int GL_VARIABLE_F_NV = 0x8528;
+ public static final int GL_VARIABLE_G_NV = 0x8529;
+ public static final int GL_VATERIAL_SIDE_HINT_PGI = 107052;
+ public static final int GL_VAT_AMBIENT_AND_DIFFUSE_BIT_PGI = 0x00200000;
+ public static final int GL_VAT_AMBIENT_BIT_PGI = 0x00100000;
+ public static final int GL_VAT_COLOR_INDEXES_BIT_PGI = 0x01000000;
+ public static final int GL_VAT_DIFFUSE_BIT_PGI = 0x00400000;
+ public static final int GL_VAT_EMISSION_BIT_PGI = 0x00800000;
+ public static final int GL_VAT_SHININESS_BIT_PGI = 0x02000000;
+ public static final int GL_VAT_SPECULAR_BIT_PGI = 0x04000000;
+ public static final int GL_VAX_VERTEX_HINT_PGI = 107053;
+ public static final int GL_VDGEFLAG_BIT_PGI = 0x00040000;
+ public static final int GL_VENDOR = 0x1F00;
+ public static final int GL_VERSION = 0x1F02;
+ public static final int GL_VERTEX23_BIT_PGI = 0x00000004;
+ public static final int GL_VERTEX4_BIT_PGI = 0x00000008;
+ public static final int GL_VERTEX_ARRAY = 0x8074;
+ public static final int GL_VERTEX_ARRAY_COUNT_EXT = 0x807D;
+ public static final int GL_VERTEX_ARRAY_EXT = 0x8074;
+ public static final int GL_VERTEX_ARRAY_POINTER = 0x808E;
+ public static final int GL_VERTEX_ARRAY_POINTER_EXT = 0x808E;
+ public static final int GL_VERTEX_ARRAY_RANGE_LENGTH_NV = 0x851E;
+ public static final int GL_VERTEX_ARRAY_RANGE_NV = 0x851D;
+ public static final int GL_VERTEX_ARRAY_RANGE_POINTER_NV = 0x8521;
+ public static final int GL_VERTEX_ARRAY_RANGE_VALID_NV = 0x851F;
+ public static final int GL_VERTEX_ARRAY_SIZE = 0x807A;
+ public static final int GL_VERTEX_ARRAY_SIZE_EXT = 0x807A;
+ public static final int GL_VERTEX_ARRAY_STRIDE = 0x807C;
+ public static final int GL_VERTEX_ARRAY_STRIDE_EXT = 0x807C;
+ public static final int GL_VERTEX_ARRAY_TYPE = 0x807B;
+ public static final int GL_VERTEX_ARRAY_TYPE_EXT = 0x807B;
+ public static final int GL_VERTEX_CONSISTENT_HINT_PGI = 107051;
+ public static final int GL_VERTEX_DATA_HINT_PGI = 107050;
+ public static final int GL_VERTEX_WEIGHTING_EXT = 0x8509;
+ public static final int GL_VERTEX_WEIGHT_ARRAY_EXT = 0x850C;
+ public static final int GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT = 0x8510;
+ public static final int GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT = 0x850D;
+ public static final int GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT = 0x850F;
+ public static final int GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT = 0x850E;
+ public static final int GL_VEXCOORD1_BIT_PGI = 0x10000000;
+ public static final int GL_VEXCOORD2_BIT_PGI = 0x20000000;
+ public static final int GL_VEXCOORD3_BIT_PGI = 0x40000000;
+ public static final int GL_VEXCOORD4_BIT_PGI = 0x80000000;
+ public static final int GL_VIEWPORT = 0x0BA2;
+ public static final int GL_VIEWPORT_BIT = 0x00000800;
+ public static final int GL_VNDEX_BIT_PGI = 0x00080000;
+ public static final int GL_VOLOR3_BIT_PGI = 0x00010000;
+ public static final int GL_VOLOR4_BIT_PGI = 0x00020000;
+ public static final int GL_VORMAL_BIT_PGI = 0x08000000;
+ public static final int GL_WIDE_LINE_HINT_PGI = 107042;
+ public static final int GL_WRAP_BORDER_SUN = 0x81D4;
+ public static final int GL_XOR = 0x1506;
+ public static final int GL_YCRCB_422_SGIX = 0x81BB;
+ public static final int GL_YCRCB_444_SGIX = 0x81BC;
+ public static final int GL_ZERO = 0x0;
+ public static final int GL_ZOOM_X = 0x0D16;
+ public static final int GL_ZOOM_Y = 0x0D17;
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/C2J/gl-funcnames.skel b/C2J/gl-funcnames.skel
new file mode 100644
index 0000000..e2298a4
--- /dev/null
+++ b/C2J/gl-funcnames.skel
@@ -0,0 +1,445 @@
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: gl-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLFuncJauJNI !
+ */
+
+ "glClearIndex",
+ "glClearColor",
+ "glClear",
+ "glIndexMask",
+ "glColorMask",
+ "glAlphaFunc",
+ "glBlendFunc",
+ "glLogicOp",
+ "glCullFace",
+ "glFrontFace",
+ "glPointSize",
+ "glLineWidth",
+ "glLineStipple",
+ "glPolygonMode",
+ "glPolygonOffset",
+ "glPolygonStipple",
+ "glGetPolygonStipple",
+ "glEdgeFlag",
+ "glEdgeFlagv",
+ "glScissor",
+ "glClipPlane",
+ "glGetClipPlane",
+ "glDrawBuffer",
+ "glReadBuffer",
+ "glEnable",
+ "glDisable",
+ "glIsEnabled",
+ "glEnableClientState",
+ "glDisableClientState",
+ "glGetBooleanv",
+ "glGetDoublev",
+ "glGetFloatv",
+ "glGetIntegerv",
+ "glPushAttrib",
+ "glPopAttrib",
+ "glPushClientAttrib",
+ "glPopClientAttrib",
+ "glRenderMode",
+ "glGetError",
+ "glFinish",
+ "glFlush",
+ "glHint",
+ "glClearDepth",
+ "glDepthFunc",
+ "glDepthMask",
+ "glDepthRange",
+ "glClearAccum",
+ "glAccum",
+ "glMatrixMode",
+ "glOrtho",
+ "glFrustum",
+ "glViewport",
+ "glPushMatrix",
+ "glPopMatrix",
+ "glLoadIdentity",
+ "glLoadMatrixd",
+ "glLoadMatrixf",
+ "glMultMatrixd",
+ "glMultMatrixf",
+ "glRotated",
+ "glRotatef",
+ "glScaled",
+ "glScalef",
+ "glTranslated",
+ "glTranslatef",
+ "glIsList",
+ "glDeleteLists",
+ "glGenLists",
+ "glNewList",
+ "glEndList",
+ "glCallList",
+ "glCallLists",
+ "glListBase",
+ "glBegin",
+ "glEnd",
+ "glVertex2d",
+ "glVertex2f",
+ "glVertex2i",
+ "glVertex2s",
+ "glVertex3d",
+ "glVertex3f",
+ "glVertex3i",
+ "glVertex3s",
+ "glVertex4d",
+ "glVertex4f",
+ "glVertex4i",
+ "glVertex4s",
+ "glVertex2dv",
+ "glVertex2fv",
+ "glVertex2iv",
+ "glVertex2sv",
+ "glVertex3dv",
+ "glVertex3fv",
+ "glVertex3iv",
+ "glVertex3sv",
+ "glVertex4dv",
+ "glVertex4fv",
+ "glVertex4iv",
+ "glVertex4sv",
+ "glNormal3b",
+ "glNormal3d",
+ "glNormal3f",
+ "glNormal3i",
+ "glNormal3s",
+ "glNormal3bv",
+ "glNormal3dv",
+ "glNormal3fv",
+ "glNormal3iv",
+ "glNormal3sv",
+ "glIndexd",
+ "glIndexf",
+ "glIndexi",
+ "glIndexs",
+ "glIndexub",
+ "glIndexdv",
+ "glIndexfv",
+ "glIndexiv",
+ "glIndexsv",
+ "glIndexubv",
+ "glColor3b",
+ "glColor3d",
+ "glColor3f",
+ "glColor3i",
+ "glColor3s",
+ "glColor3ub",
+ "glColor3ui",
+ "glColor3us",
+ "glColor4b",
+ "glColor4d",
+ "glColor4f",
+ "glColor4i",
+ "glColor4s",
+ "glColor4ub",
+ "glColor4ui",
+ "glColor4us",
+ "glColor3bv",
+ "glColor3dv",
+ "glColor3fv",
+ "glColor3iv",
+ "glColor3sv",
+ "glColor3ubv",
+ "glColor3uiv",
+ "glColor3usv",
+ "glColor4bv",
+ "glColor4dv",
+ "glColor4fv",
+ "glColor4iv",
+ "glColor4sv",
+ "glColor4ubv",
+ "glColor4uiv",
+ "glColor4usv",
+ "glTexCoord1d",
+ "glTexCoord1f",
+ "glTexCoord1i",
+ "glTexCoord1s",
+ "glTexCoord2d",
+ "glTexCoord2f",
+ "glTexCoord2i",
+ "glTexCoord2s",
+ "glTexCoord3d",
+ "glTexCoord3f",
+ "glTexCoord3i",
+ "glTexCoord3s",
+ "glTexCoord4d",
+ "glTexCoord4f",
+ "glTexCoord4i",
+ "glTexCoord4s",
+ "glTexCoord1dv",
+ "glTexCoord1fv",
+ "glTexCoord1iv",
+ "glTexCoord1sv",
+ "glTexCoord2dv",
+ "glTexCoord2fv",
+ "glTexCoord2iv",
+ "glTexCoord2sv",
+ "glTexCoord3dv",
+ "glTexCoord3fv",
+ "glTexCoord3iv",
+ "glTexCoord3sv",
+ "glTexCoord4dv",
+ "glTexCoord4fv",
+ "glTexCoord4iv",
+ "glTexCoord4sv",
+ "glRasterPos2d",
+ "glRasterPos2f",
+ "glRasterPos2i",
+ "glRasterPos2s",
+ "glRasterPos3d",
+ "glRasterPos3f",
+ "glRasterPos3i",
+ "glRasterPos3s",
+ "glRasterPos4d",
+ "glRasterPos4f",
+ "glRasterPos4i",
+ "glRasterPos4s",
+ "glRasterPos2dv",
+ "glRasterPos2fv",
+ "glRasterPos2iv",
+ "glRasterPos2sv",
+ "glRasterPos3dv",
+ "glRasterPos3fv",
+ "glRasterPos3iv",
+ "glRasterPos3sv",
+ "glRasterPos4dv",
+ "glRasterPos4fv",
+ "glRasterPos4iv",
+ "glRasterPos4sv",
+ "glRectd",
+ "glRectf",
+ "glRecti",
+ "glRects",
+ "glRectdv",
+ "glRectfv",
+ "glRectiv",
+ "glRectsv",
+ "glVertexPointer",
+ "glNormalPointer",
+ "glColorPointer",
+ "glIndexPointer",
+ "glTexCoordPointer",
+ "glEdgeFlagPointer",
+ "glGetPointerv",
+ "glArrayElement",
+ "glDrawArrays",
+ "glDrawElements",
+ "glInterleavedArrays",
+ "glShadeModel",
+ "glLightf",
+ "glLighti",
+ "glLightfv",
+ "glLightiv",
+ "glGetLightfv",
+ "glGetLightiv",
+ "glLightModelf",
+ "glLightModeli",
+ "glLightModelfv",
+ "glLightModeliv",
+ "glMaterialf",
+ "glMateriali",
+ "glMaterialfv",
+ "glMaterialiv",
+ "glGetMaterialfv",
+ "glGetMaterialiv",
+ "glColorMaterial",
+ "glPixelZoom",
+ "glPixelStoref",
+ "glPixelStorei",
+ "glPixelTransferf",
+ "glPixelTransferi",
+ "glPixelMapfv",
+ "glPixelMapuiv",
+ "glPixelMapusv",
+ "glGetPixelMapfv",
+ "glGetPixelMapuiv",
+ "glGetPixelMapusv",
+ "glBitmap",
+ "glReadPixels",
+ "glDrawPixels",
+ "glCopyPixels",
+ "glStencilFunc",
+ "glStencilMask",
+ "glStencilOp",
+ "glClearStencil",
+ "glTexGend",
+ "glTexGenf",
+ "glTexGeni",
+ "glTexGendv",
+ "glTexGenfv",
+ "glTexGeniv",
+ "glGetTexGendv",
+ "glGetTexGenfv",
+ "glGetTexGeniv",
+ "glTexEnvf",
+ "glTexEnvi",
+ "glTexEnvfv",
+ "glTexEnviv",
+ "glGetTexEnvfv",
+ "glGetTexEnviv",
+ "glTexParameterf",
+ "glTexParameteri",
+ "glTexParameterfv",
+ "glTexParameteriv",
+ "glGetTexParameterfv",
+ "glGetTexParameteriv",
+ "glGetTexLevelParameterfv",
+ "glGetTexLevelParameteriv",
+ "glTexImage1D",
+ "glTexImage2D",
+ "glGetTexImage",
+ "glGenTextures",
+ "glDeleteTextures",
+ "glBindTexture",
+ "glPrioritizeTextures",
+ "glAreTexturesResident",
+ "glIsTexture",
+ "glTexSubImage1D",
+ "glTexSubImage2D",
+ "glCopyTexImage1D",
+ "glCopyTexImage2D",
+ "glCopyTexSubImage1D",
+ "glCopyTexSubImage2D",
+ "glMap1d",
+ "glMap1f",
+ "glMap2d",
+ "glMap2f",
+ "glGetMapdv",
+ "glGetMapfv",
+ "glGetMapiv",
+ "glEvalCoord1d",
+ "glEvalCoord1f",
+ "glEvalCoord1dv",
+ "glEvalCoord1fv",
+ "glEvalCoord2d",
+ "glEvalCoord2f",
+ "glEvalCoord2dv",
+ "glEvalCoord2fv",
+ "glMapGrid1d",
+ "glMapGrid1f",
+ "glMapGrid2d",
+ "glMapGrid2f",
+ "glEvalPoint1",
+ "glEvalPoint2",
+ "glEvalMesh1",
+ "glEvalMesh2",
+ "glFogf",
+ "glFogi",
+ "glFogfv",
+ "glFogiv",
+ "glFeedbackBuffer",
+ "glPassThrough",
+ "glSelectBuffer",
+ "glInitNames",
+ "glLoadName",
+ "glPushName",
+ "glPopName",
+ "glDrawRangeElements",
+ "glTexImage3D",
+ "glTexSubImage3D",
+ "glCopyTexSubImage3D",
+ "glColorTable",
+ "glColorSubTable",
+ "glColorTableParameteriv",
+ "glColorTableParameterfv",
+ "glCopyColorSubTable",
+ "glCopyColorTable",
+ "glGetColorTable",
+ "glGetColorTableParameterfv",
+ "glGetColorTableParameteriv",
+ "glBlendEquation",
+ "glBlendColor",
+ "glHistogram",
+ "glResetHistogram",
+ "glGetHistogram",
+ "glGetHistogramParameterfv",
+ "glGetHistogramParameteriv",
+ "glMinmax",
+ "glResetMinmax",
+ "glGetMinmax",
+ "glGetMinmaxParameterfv",
+ "glGetMinmaxParameteriv",
+ "glConvolutionFilter1D",
+ "glConvolutionFilter2D",
+ "glConvolutionParameterf",
+ "glConvolutionParameterfv",
+ "glConvolutionParameteri",
+ "glConvolutionParameteriv",
+ "glCopyConvolutionFilter1D",
+ "glCopyConvolutionFilter2D",
+ "glGetConvolutionFilter",
+ "glGetConvolutionParameterfv",
+ "glGetConvolutionParameteriv",
+ "glSeparableFilter2D",
+ "glGetSeparableFilter",
+ "glBlendColorEXT",
+ "glPolygonOffsetEXT",
+ "glTexImage3DEXT",
+ "glTexSubImage3DEXT",
+ "glCopyTexSubImage3DEXT",
+ "glGenTexturesEXT",
+ "glDeleteTexturesEXT",
+ "glBindTextureEXT",
+ "glPrioritizeTexturesEXT",
+ "glAreTexturesResidentEXT",
+ "glIsTextureEXT",
+ "glVertexPointerEXT",
+ "glNormalPointerEXT",
+ "glColorPointerEXT",
+ "glIndexPointerEXT",
+ "glTexCoordPointerEXT",
+ "glEdgeFlagPointerEXT",
+ "glGetPointervEXT",
+ "glArrayElementEXT",
+ "glDrawArraysEXT",
+ "glBlendEquationEXT",
+ "glPointParameterfEXT",
+ "glPointParameterfvEXT",
+ "glColorTableEXT",
+ "glColorSubTableEXT",
+ "glGetColorTableEXT",
+ "glGetColorTableParameterfvEXT",
+ "glGetColorTableParameterivEXT",
+ "glLockArraysEXT",
+ "glUnlockArraysEXT",
+ "glActiveTextureARB",
+ "glClientActiveTextureARB",
+ "glMultiTexCoord1dARB",
+ "glMultiTexCoord1dvARB",
+ "glMultiTexCoord1fARB",
+ "glMultiTexCoord1fvARB",
+ "glMultiTexCoord1iARB",
+ "glMultiTexCoord1ivARB",
+ "glMultiTexCoord1sARB",
+ "glMultiTexCoord1svARB",
+ "glMultiTexCoord2dARB",
+ "glMultiTexCoord2dvARB",
+ "glMultiTexCoord2fARB",
+ "glMultiTexCoord2fvARB",
+ "glMultiTexCoord2iARB",
+ "glMultiTexCoord2ivARB",
+ "glMultiTexCoord2sARB",
+ "glMultiTexCoord2svARB",
+ "glMultiTexCoord3dARB",
+ "glMultiTexCoord3dvARB",
+ "glMultiTexCoord3fARB",
+ "glMultiTexCoord3fvARB",
+ "glMultiTexCoord3iARB",
+ "glMultiTexCoord3ivARB",
+ "glMultiTexCoord3sARB",
+ "glMultiTexCoord3svARB",
+ "glMultiTexCoord4dARB",
+ "glMultiTexCoord4dvARB",
+ "glMultiTexCoord4fARB",
+ "glMultiTexCoord4fvARB",
+ "glMultiTexCoord4iARB",
+ "glMultiTexCoord4ivARB",
+ "glMultiTexCoord4sARB",
+ "glMultiTexCoord4svARB",
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/C2J/gl-proto-auto.java b/C2J/gl-proto-auto.java
new file mode 100644
index 0000000..386ea7a
--- /dev/null
+++ b/C2J/gl-proto-auto.java
@@ -0,0 +1,6955 @@
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: gl-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearIndex ( GLfloat c ) ;
+ * </pre>
+ */
+ public final native void glClearIndex (
+ float c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ public final native void glClearColor (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClear ( GLbitfield mask ) ;
+ * </pre>
+ */
+ public final native void glClear (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexMask ( GLuint mask ) ;
+ * </pre>
+ */
+ public final native void glIndexMask (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMask ( GLboolean red , GLboolean green , GLboolean blue , GLboolean alpha ) ;
+ * </pre>
+ */
+ public final native void glColorMask (
+ boolean red,
+ boolean green,
+ boolean blue,
+ boolean alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAlphaFunc ( GLenum func , GLclampf ref ) ;
+ * </pre>
+ */
+ public final native void glAlphaFunc (
+ int func,
+ float ref
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendFunc ( GLenum sfactor , GLenum dfactor ) ;
+ * </pre>
+ */
+ public final native void glBlendFunc (
+ int sfactor,
+ int dfactor
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLogicOp ( GLenum opcode ) ;
+ * </pre>
+ */
+ public final native void glLogicOp (
+ int opcode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCullFace ( GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glCullFace (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrontFace ( GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glFrontFace (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointSize ( GLfloat size ) ;
+ * </pre>
+ */
+ public final native void glPointSize (
+ float size
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineWidth ( GLfloat width ) ;
+ * </pre>
+ */
+ public final native void glLineWidth (
+ float width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineStipple ( GLint factor , GLushort pattern ) ;
+ * </pre>
+ */
+ public final native void glLineStipple (
+ int factor,
+ short pattern
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonMode ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glPolygonMode (
+ int face,
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffset ( GLfloat factor , GLfloat units ) ;
+ * </pre>
+ */
+ public final native void glPolygonOffset (
+ float factor,
+ float units
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonStipple ( const GLubyte * mask ) ;
+ * </pre>
+ */
+ public final native void glPolygonStipple (
+ byte[] mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPolygonStipple ( GLubyte * mask ) ;
+ * </pre>
+ */
+ public final native void glGetPolygonStipple (
+ byte[] mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlag ( GLboolean flag ) ;
+ * </pre>
+ */
+ public final native void glEdgeFlag (
+ boolean flag
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagv ( const GLboolean * flag ) ;
+ * </pre>
+ */
+ public final native void glEdgeFlagv (
+ boolean[] flag
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScissor ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public final native void glScissor (
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClipPlane ( GLenum plane , const GLdouble * equation ) ;
+ * </pre>
+ */
+ public final native void glClipPlane (
+ int plane,
+ double[] equation
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetClipPlane ( GLenum plane , GLdouble * equation ) ;
+ * </pre>
+ */
+ public final native void glGetClipPlane (
+ int plane,
+ double[] equation
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glDrawBuffer (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glReadBuffer (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnable ( GLenum cap ) ;
+ * </pre>
+ */
+ public final native void glEnable (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisable ( GLenum cap ) ;
+ * </pre>
+ */
+ public final native void glDisable (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsEnabled ( GLenum cap ) ;
+ * </pre>
+ */
+ public final native boolean glIsEnabled (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ public final native void glEnableClientState (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ public final native void glDisableClientState (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetBooleanv ( GLenum pname , GLboolean * params ) ;
+ * </pre>
+ */
+ public final native void glGetBooleanv (
+ int pname,
+ boolean[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetDoublev ( GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ public final native void glGetDoublev (
+ int pname,
+ double[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetFloatv ( GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetFloatv (
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetIntegerv ( GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetIntegerv (
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ public final native void glPushAttrib (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopAttrib ( void ) ;
+ * </pre>
+ */
+ public final native void glPopAttrib (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushClientAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ public final native void glPushClientAttrib (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopClientAttrib ( void ) ;
+ * </pre>
+ */
+ public final native void glPopClientAttrib (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint glRenderMode ( GLenum mode ) ;
+ * </pre>
+ */
+ public final native int glRenderMode (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLenum glGetError ( void ) ;
+ * </pre>
+ */
+ public final native int glGetError (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFinish ( void ) ;
+ * </pre>
+ */
+ public final native void glFinish (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFlush ( void ) ;
+ * </pre>
+ */
+ public final native void glFlush (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHint ( GLenum target , GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glHint (
+ int target,
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearDepth ( GLclampd depth ) ;
+ * </pre>
+ */
+ public final native void glClearDepth (
+ double depth
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthFunc ( GLenum func ) ;
+ * </pre>
+ */
+ public final native void glDepthFunc (
+ int func
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthMask ( GLboolean flag ) ;
+ * </pre>
+ */
+ public final native void glDepthMask (
+ boolean flag
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthRange ( GLclampd near_val , GLclampd far_val ) ;
+ * </pre>
+ */
+ public final native void glDepthRange (
+ double near_val,
+ double far_val
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearAccum ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ public final native void glClearAccum (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAccum ( GLenum op , GLfloat value ) ;
+ * </pre>
+ */
+ public final native void glAccum (
+ int op,
+ float value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMatrixMode ( GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glMatrixMode (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glOrtho ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ public final native void glOrtho (
+ double left,
+ double right,
+ double bottom,
+ double top,
+ double near_val,
+ double far_val
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrustum ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ public final native void glFrustum (
+ double left,
+ double right,
+ double bottom,
+ double top,
+ double near_val,
+ double far_val
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glViewport ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public final native void glViewport (
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushMatrix ( void ) ;
+ * </pre>
+ */
+ public final native void glPushMatrix (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopMatrix ( void ) ;
+ * </pre>
+ */
+ public final native void glPopMatrix (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadIdentity ( void ) ;
+ * </pre>
+ */
+ public final native void glLoadIdentity (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ public final native void glLoadMatrixd (
+ double[] m
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ public final native void glLoadMatrixf (
+ float[] m
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ public final native void glMultMatrixd (
+ double[] m
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ public final native void glMultMatrixf (
+ float[] m
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotated ( GLdouble angle , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public final native void glRotated (
+ double angle,
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotatef ( GLfloat angle , GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public final native void glRotatef (
+ float angle,
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScaled ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public final native void glScaled (
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScalef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public final native void glScalef (
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslated ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public final native void glTranslated (
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslatef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public final native void glTranslatef (
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsList ( GLuint list ) ;
+ * </pre>
+ */
+ public final native boolean glIsList (
+ int list
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteLists ( GLuint list , GLsizei range ) ;
+ * </pre>
+ */
+ public final native void glDeleteLists (
+ int list,
+ int range
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLuint glGenLists ( GLsizei range ) ;
+ * </pre>
+ */
+ public final native int glGenLists (
+ int range
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNewList ( GLuint list , GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glNewList (
+ int list,
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEndList ( void ) ;
+ * </pre>
+ */
+ public final native void glEndList (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallList ( GLuint list ) ;
+ * </pre>
+ */
+ public final native void glCallList (
+ int list
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallLists ( GLsizei n , GLenum type , const GLvoid * lists ) ;
+ * </pre>
+ */
+ public final native void glCallLists (
+ int n,
+ int type,
+ byte[] lists
+ ) ;
+ public final native void glCallLists (
+ int n,
+ int type,
+ short[] lists
+ ) ;
+ public final native void glCallLists (
+ int n,
+ int type,
+ int[] lists
+ ) ;
+ public final native void glCallLists (
+ int n,
+ int type,
+ float[] lists
+ ) ;
+ public final native void glCallLists (
+ int n,
+ int type,
+ double[] lists
+ ) ;
+ public final native void glCallLists (
+ int n,
+ int type,
+ boolean[] lists
+ ) ;
+ public final native void glCallLists (
+ int n,
+ int type,
+ long[] lists
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glListBase ( GLuint base ) ;
+ * </pre>
+ */
+ public final native void glListBase (
+ int base
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBegin ( GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glBegin (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnd ( void ) ;
+ * </pre>
+ */
+ public final native void glEnd (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ public final native void glVertex2d (
+ double x,
+ double y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ public final native void glVertex2f (
+ float x,
+ float y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ public final native void glVertex2i (
+ int x,
+ int y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ public final native void glVertex2s (
+ short x,
+ short y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public final native void glVertex3d (
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public final native void glVertex3f (
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ public final native void glVertex3i (
+ int x,
+ int y,
+ int z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ public final native void glVertex3s (
+ short x,
+ short y,
+ short z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ public final native void glVertex4d (
+ double x,
+ double y,
+ double z,
+ double w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ public final native void glVertex4f (
+ float x,
+ float y,
+ float z,
+ float w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ public final native void glVertex4i (
+ int x,
+ int y,
+ int z,
+ int w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ public final native void glVertex4s (
+ short x,
+ short y,
+ short z,
+ short w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glVertex2dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glVertex2fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glVertex2iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glVertex2sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glVertex3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glVertex3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glVertex3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glVertex3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glVertex4dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glVertex4fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glVertex4iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glVertex4sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3b ( GLbyte nx , GLbyte ny , GLbyte nz ) ;
+ * </pre>
+ */
+ public final native void glNormal3b (
+ byte nx,
+ byte ny,
+ byte nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3d ( GLdouble nx , GLdouble ny , GLdouble nz ) ;
+ * </pre>
+ */
+ public final native void glNormal3d (
+ double nx,
+ double ny,
+ double nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3f ( GLfloat nx , GLfloat ny , GLfloat nz ) ;
+ * </pre>
+ */
+ public final native void glNormal3f (
+ float nx,
+ float ny,
+ float nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3i ( GLint nx , GLint ny , GLint nz ) ;
+ * </pre>
+ */
+ public final native void glNormal3i (
+ int nx,
+ int ny,
+ int nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3s ( GLshort nx , GLshort ny , GLshort nz ) ;
+ * </pre>
+ */
+ public final native void glNormal3s (
+ short nx,
+ short ny,
+ short nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ public final native void glNormal3bv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glNormal3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glNormal3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glNormal3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glNormal3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexd ( GLdouble c ) ;
+ * </pre>
+ */
+ public final native void glIndexd (
+ double c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexf ( GLfloat c ) ;
+ * </pre>
+ */
+ public final native void glIndexf (
+ float c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexi ( GLint c ) ;
+ * </pre>
+ */
+ public final native void glIndexi (
+ int c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexs ( GLshort c ) ;
+ * </pre>
+ */
+ public final native void glIndexs (
+ short c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexub ( GLubyte c ) ;
+ * </pre>
+ */
+ public final native void glIndexub (
+ byte c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexdv ( const GLdouble * c ) ;
+ * </pre>
+ */
+ public final native void glIndexdv (
+ double[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexfv ( const GLfloat * c ) ;
+ * </pre>
+ */
+ public final native void glIndexfv (
+ float[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexiv ( const GLint * c ) ;
+ * </pre>
+ */
+ public final native void glIndexiv (
+ int[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexsv ( const GLshort * c ) ;
+ * </pre>
+ */
+ public final native void glIndexsv (
+ short[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexubv ( const GLubyte * c ) ;
+ * </pre>
+ */
+ public final native void glIndexubv (
+ byte[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3b ( GLbyte red , GLbyte green , GLbyte blue ) ;
+ * </pre>
+ */
+ public final native void glColor3b (
+ byte red,
+ byte green,
+ byte blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3d ( GLdouble red , GLdouble green , GLdouble blue ) ;
+ * </pre>
+ */
+ public final native void glColor3d (
+ double red,
+ double green,
+ double blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3f ( GLfloat red , GLfloat green , GLfloat blue ) ;
+ * </pre>
+ */
+ public final native void glColor3f (
+ float red,
+ float green,
+ float blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3i ( GLint red , GLint green , GLint blue ) ;
+ * </pre>
+ */
+ public final native void glColor3i (
+ int red,
+ int green,
+ int blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3s ( GLshort red , GLshort green , GLshort blue ) ;
+ * </pre>
+ */
+ public final native void glColor3s (
+ short red,
+ short green,
+ short blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ub ( GLubyte red , GLubyte green , GLubyte blue ) ;
+ * </pre>
+ */
+ public final native void glColor3ub (
+ byte red,
+ byte green,
+ byte blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ui ( GLuint red , GLuint green , GLuint blue ) ;
+ * </pre>
+ */
+ public final native void glColor3ui (
+ int red,
+ int green,
+ int blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3us ( GLushort red , GLushort green , GLushort blue ) ;
+ * </pre>
+ */
+ public final native void glColor3us (
+ short red,
+ short green,
+ short blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4b ( GLbyte red , GLbyte green , GLbyte blue , GLbyte alpha ) ;
+ * </pre>
+ */
+ public final native void glColor4b (
+ byte red,
+ byte green,
+ byte blue,
+ byte alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4d ( GLdouble red , GLdouble green , GLdouble blue , GLdouble alpha ) ;
+ * </pre>
+ */
+ public final native void glColor4d (
+ double red,
+ double green,
+ double blue,
+ double alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4f ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ public final native void glColor4f (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4i ( GLint red , GLint green , GLint blue , GLint alpha ) ;
+ * </pre>
+ */
+ public final native void glColor4i (
+ int red,
+ int green,
+ int blue,
+ int alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4s ( GLshort red , GLshort green , GLshort blue , GLshort alpha ) ;
+ * </pre>
+ */
+ public final native void glColor4s (
+ short red,
+ short green,
+ short blue,
+ short alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ub ( GLubyte red , GLubyte green , GLubyte blue , GLubyte alpha ) ;
+ * </pre>
+ */
+ public final native void glColor4ub (
+ byte red,
+ byte green,
+ byte blue,
+ byte alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ui ( GLuint red , GLuint green , GLuint blue , GLuint alpha ) ;
+ * </pre>
+ */
+ public final native void glColor4ui (
+ int red,
+ int green,
+ int blue,
+ int alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4us ( GLushort red , GLushort green , GLushort blue , GLushort alpha ) ;
+ * </pre>
+ */
+ public final native void glColor4us (
+ short red,
+ short green,
+ short blue,
+ short alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ public final native void glColor3bv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glColor3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glColor3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glColor3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glColor3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ public final native void glColor3ubv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ public final native void glColor3uiv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ public final native void glColor3usv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ public final native void glColor4bv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glColor4dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glColor4fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glColor4iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glColor4sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ public final native void glColor4ubv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ public final native void glColor4uiv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ public final native void glColor4usv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1d ( GLdouble s ) ;
+ * </pre>
+ */
+ public final native void glTexCoord1d (
+ double s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1f ( GLfloat s ) ;
+ * </pre>
+ */
+ public final native void glTexCoord1f (
+ float s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1i ( GLint s ) ;
+ * </pre>
+ */
+ public final native void glTexCoord1i (
+ int s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1s ( GLshort s ) ;
+ * </pre>
+ */
+ public final native void glTexCoord1s (
+ short s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2d ( GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ public final native void glTexCoord2d (
+ double s,
+ double t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2f ( GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ public final native void glTexCoord2f (
+ float s,
+ float t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2i ( GLint s , GLint t ) ;
+ * </pre>
+ */
+ public final native void glTexCoord2i (
+ int s,
+ int t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2s ( GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ public final native void glTexCoord2s (
+ short s,
+ short t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3d ( GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ public final native void glTexCoord3d (
+ double s,
+ double t,
+ double r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3f ( GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ public final native void glTexCoord3f (
+ float s,
+ float t,
+ float r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3i ( GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ public final native void glTexCoord3i (
+ int s,
+ int t,
+ int r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3s ( GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ public final native void glTexCoord3s (
+ short s,
+ short t,
+ short r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4d ( GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ public final native void glTexCoord4d (
+ double s,
+ double t,
+ double r,
+ double q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4f ( GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ public final native void glTexCoord4f (
+ float s,
+ float t,
+ float r,
+ float q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4i ( GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ public final native void glTexCoord4i (
+ int s,
+ int t,
+ int r,
+ int q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4s ( GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ public final native void glTexCoord4s (
+ short s,
+ short t,
+ short r,
+ short q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord1dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord1fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord1iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord1sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord2dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord2fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord2iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord2sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord4dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord4fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord4iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord4sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ public final native void glRasterPos2d (
+ double x,
+ double y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ public final native void glRasterPos2f (
+ float x,
+ float y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ public final native void glRasterPos2i (
+ int x,
+ int y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ public final native void glRasterPos2s (
+ short x,
+ short y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public final native void glRasterPos3d (
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public final native void glRasterPos3f (
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ public final native void glRasterPos3i (
+ int x,
+ int y,
+ int z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ public final native void glRasterPos3s (
+ short x,
+ short y,
+ short z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ public final native void glRasterPos4d (
+ double x,
+ double y,
+ double z,
+ double w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ public final native void glRasterPos4f (
+ float x,
+ float y,
+ float z,
+ float w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ public final native void glRasterPos4i (
+ int x,
+ int y,
+ int z,
+ int w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ public final native void glRasterPos4s (
+ short x,
+ short y,
+ short z,
+ short w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos2dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos2fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos2iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos2sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos4dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos4fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos4iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos4sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectd ( GLdouble x1 , GLdouble y1 , GLdouble x2 , GLdouble y2 ) ;
+ * </pre>
+ */
+ public final native void glRectd (
+ double x1,
+ double y1,
+ double x2,
+ double y2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectf ( GLfloat x1 , GLfloat y1 , GLfloat x2 , GLfloat y2 ) ;
+ * </pre>
+ */
+ public final native void glRectf (
+ float x1,
+ float y1,
+ float x2,
+ float y2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRecti ( GLint x1 , GLint y1 , GLint x2 , GLint y2 ) ;
+ * </pre>
+ */
+ public final native void glRecti (
+ int x1,
+ int y1,
+ int x2,
+ int y2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRects ( GLshort x1 , GLshort y1 , GLshort x2 , GLshort y2 ) ;
+ * </pre>
+ */
+ public final native void glRects (
+ short x1,
+ short y1,
+ short x2,
+ short y2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectdv ( const GLdouble * v1 , const GLdouble * v2 ) ;
+ * </pre>
+ */
+ public final native void glRectdv (
+ double[] v1,
+ double[] v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectfv ( const GLfloat * v1 , const GLfloat * v2 ) ;
+ * </pre>
+ */
+ public final native void glRectfv (
+ float[] v1,
+ float[] v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectiv ( const GLint * v1 , const GLint * v2 ) ;
+ * </pre>
+ */
+ public final native void glRectiv (
+ int[] v1,
+ int[] v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectsv ( const GLshort * v1 , const GLshort * v2 ) ;
+ * </pre>
+ */
+ public final native void glRectsv (
+ short[] v1,
+ short[] v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public final native void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public final native void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public final native void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public final native void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public final native void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public final native void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public final native void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public final native void glNormalPointer (
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public final native void glNormalPointer (
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public final native void glNormalPointer (
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public final native void glNormalPointer (
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public final native void glNormalPointer (
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public final native void glNormalPointer (
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public final native void glNormalPointer (
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public final native void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public final native void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public final native void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public final native void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public final native void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public final native void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public final native void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public final native void glIndexPointer (
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public final native void glIndexPointer (
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public final native void glIndexPointer (
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public final native void glIndexPointer (
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public final native void glIndexPointer (
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public final native void glIndexPointer (
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public final native void glIndexPointer (
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public final native void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public final native void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public final native void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public final native void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public final native void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public final native void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public final native void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointer ( GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public final native void glEdgeFlagPointer (
+ int stride,
+ byte[] ptr
+ ) ;
+ public final native void glEdgeFlagPointer (
+ int stride,
+ short[] ptr
+ ) ;
+ public final native void glEdgeFlagPointer (
+ int stride,
+ int[] ptr
+ ) ;
+ public final native void glEdgeFlagPointer (
+ int stride,
+ float[] ptr
+ ) ;
+ public final native void glEdgeFlagPointer (
+ int stride,
+ double[] ptr
+ ) ;
+ public final native void glEdgeFlagPointer (
+ int stride,
+ boolean[] ptr
+ ) ;
+ public final native void glEdgeFlagPointer (
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointerv ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ public final native void glGetPointerv (
+ int pname,
+ byte[][] params
+ ) ;
+ public final native void glGetPointerv (
+ int pname,
+ short[][] params
+ ) ;
+ public final native void glGetPointerv (
+ int pname,
+ int[][] params
+ ) ;
+ public final native void glGetPointerv (
+ int pname,
+ float[][] params
+ ) ;
+ public final native void glGetPointerv (
+ int pname,
+ double[][] params
+ ) ;
+ public final native void glGetPointerv (
+ int pname,
+ boolean[][] params
+ ) ;
+ public final native void glGetPointerv (
+ int pname,
+ long[][] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElement ( GLint i ) ;
+ * </pre>
+ */
+ public final native void glArrayElement (
+ int i
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArrays ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ public final native void glDrawArrays (
+ int mode,
+ int first,
+ int count
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawElements ( GLenum mode , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ public final native void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ byte[] indices
+ ) ;
+ public final native void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ short[] indices
+ ) ;
+ public final native void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ int[] indices
+ ) ;
+ public final native void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ float[] indices
+ ) ;
+ public final native void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ double[] indices
+ ) ;
+ public final native void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ boolean[] indices
+ ) ;
+ public final native void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ long[] indices
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInterleavedArrays ( GLenum format , GLsizei stride , const GLvoid * pointer ) ;
+ * </pre>
+ */
+ public final native void glInterleavedArrays (
+ int format,
+ int stride,
+ byte[] pointer
+ ) ;
+ public final native void glInterleavedArrays (
+ int format,
+ int stride,
+ short[] pointer
+ ) ;
+ public final native void glInterleavedArrays (
+ int format,
+ int stride,
+ int[] pointer
+ ) ;
+ public final native void glInterleavedArrays (
+ int format,
+ int stride,
+ float[] pointer
+ ) ;
+ public final native void glInterleavedArrays (
+ int format,
+ int stride,
+ double[] pointer
+ ) ;
+ public final native void glInterleavedArrays (
+ int format,
+ int stride,
+ boolean[] pointer
+ ) ;
+ public final native void glInterleavedArrays (
+ int format,
+ int stride,
+ long[] pointer
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glShadeModel ( GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glShadeModel (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightf ( GLenum light , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public final native void glLightf (
+ int light,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLighti ( GLenum light , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public final native void glLighti (
+ int light,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightfv ( GLenum light , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glLightfv (
+ int light,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightiv ( GLenum light , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public final native void glLightiv (
+ int light,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightfv ( GLenum light , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetLightfv (
+ int light,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightiv ( GLenum light , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetLightiv (
+ int light,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public final native void glLightModelf (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeli ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public final native void glLightModeli (
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glLightModelfv (
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeliv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public final native void glLightModeliv (
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialf ( GLenum face , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public final native void glMaterialf (
+ int face,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMateriali ( GLenum face , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public final native void glMateriali (
+ int face,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialfv ( GLenum face , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glMaterialfv (
+ int face,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialiv ( GLenum face , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public final native void glMaterialiv (
+ int face,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialfv ( GLenum face , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetMaterialfv (
+ int face,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialiv ( GLenum face , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetMaterialiv (
+ int face,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMaterial ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glColorMaterial (
+ int face,
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelZoom ( GLfloat xfactor , GLfloat yfactor ) ;
+ * </pre>
+ */
+ public final native void glPixelZoom (
+ float xfactor,
+ float yfactor
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStoref ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public final native void glPixelStoref (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStorei ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public final native void glPixelStorei (
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public final native void glPixelTransferf (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public final native void glPixelTransferi (
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapfv ( GLenum map , GLint mapsize , const GLfloat * values ) ;
+ * </pre>
+ */
+ public final native void glPixelMapfv (
+ int map,
+ int mapsize,
+ float[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapuiv ( GLenum map , GLint mapsize , const GLuint * values ) ;
+ * </pre>
+ */
+ public final native void glPixelMapuiv (
+ int map,
+ int mapsize,
+ int[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapusv ( GLenum map , GLint mapsize , const GLushort * values ) ;
+ * </pre>
+ */
+ public final native void glPixelMapusv (
+ int map,
+ int mapsize,
+ short[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapfv ( GLenum map , GLfloat * values ) ;
+ * </pre>
+ */
+ public final native void glGetPixelMapfv (
+ int map,
+ float[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapuiv ( GLenum map , GLuint * values ) ;
+ * </pre>
+ */
+ public final native void glGetPixelMapuiv (
+ int map,
+ int[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapusv ( GLenum map , GLushort * values ) ;
+ * </pre>
+ */
+ public final native void glGetPixelMapusv (
+ int map,
+ short[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBitmap ( GLsizei width , GLsizei height , GLfloat xorig , GLfloat yorig , GLfloat xmove , GLfloat ymove , const GLubyte * bitmap ) ;
+ * </pre>
+ */
+ public final native void glBitmap (
+ int width,
+ int height,
+ float xorig,
+ float yorig,
+ float xmove,
+ float ymove,
+ byte[] bitmap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ public final native void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public final native void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public final native void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public final native void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public final native void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public final native void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public final native void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawPixels ( GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public final native void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public final native void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public final native void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public final native void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public final native void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public final native void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public final native void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum type ) ;
+ * </pre>
+ */
+ public final native void glCopyPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilFunc ( GLenum func , GLint ref , GLuint mask ) ;
+ * </pre>
+ */
+ public final native void glStencilFunc (
+ int func,
+ int ref,
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilMask ( GLuint mask ) ;
+ * </pre>
+ */
+ public final native void glStencilMask (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilOp ( GLenum fail , GLenum zfail , GLenum zpass ) ;
+ * </pre>
+ */
+ public final native void glStencilOp (
+ int fail,
+ int zfail,
+ int zpass
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearStencil ( GLint s ) ;
+ * </pre>
+ */
+ public final native void glClearStencil (
+ int s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGend ( GLenum coord , GLenum pname , GLdouble param ) ;
+ * </pre>
+ */
+ public final native void glTexGend (
+ int coord,
+ int pname,
+ double param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenf ( GLenum coord , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public final native void glTexGenf (
+ int coord,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeni ( GLenum coord , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public final native void glTexGeni (
+ int coord,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGendv ( GLenum coord , GLenum pname , const GLdouble * params ) ;
+ * </pre>
+ */
+ public final native void glTexGendv (
+ int coord,
+ int pname,
+ double[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenfv ( GLenum coord , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glTexGenfv (
+ int coord,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeniv ( GLenum coord , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public final native void glTexGeniv (
+ int coord,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGendv ( GLenum coord , GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ public final native void glGetTexGendv (
+ int coord,
+ int pname,
+ double[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGenfv ( GLenum coord , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetTexGenfv (
+ int coord,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGeniv ( GLenum coord , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetTexGeniv (
+ int coord,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public final native void glTexEnvf (
+ int target,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvi ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public final native void glTexEnvi (
+ int target,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glTexEnvfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnviv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public final native void glTexEnviv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnvfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetTexEnvfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnviv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetTexEnviv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public final native void glTexParameterf (
+ int target,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteri ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public final native void glTexParameteri (
+ int target,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glTexParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public final native void glTexParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetTexParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetTexParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameterfv ( GLenum target , GLint level , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetTexLevelParameterfv (
+ int target,
+ int level,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameteriv ( GLenum target , GLint level , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetTexLevelParameteriv (
+ int target,
+ int level,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage1D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public final native void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public final native void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public final native void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public final native void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public final native void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public final native void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public final native void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage2D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public final native void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public final native void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public final native void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public final native void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public final native void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public final native void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public final native void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexImage ( GLenum target , GLint level , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ public final native void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public final native void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public final native void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public final native void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public final native void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public final native void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public final native void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTextures ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ public final native void glGenTextures (
+ int n,
+ int[] textures
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTextures ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ public final native void glDeleteTextures (
+ int n,
+ int[] textures
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTexture ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ public final native void glBindTexture (
+ int target,
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTextures ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ public final native void glPrioritizeTextures (
+ int n,
+ int[] textures,
+ float[] priorities
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResident ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ public final native boolean glAreTexturesResident (
+ int n,
+ int[] textures,
+ boolean[] residences
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTexture ( GLuint texture ) ;
+ * </pre>
+ */
+ public final native boolean glIsTexture (
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLsizei width , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public final native void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public final native void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public final native void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public final native void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public final native void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public final native void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public final native void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public final native void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public final native void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public final native void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public final native void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public final native void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public final native void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public final native void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage1D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLint border ) ;
+ * </pre>
+ */
+ public final native void glCopyTexImage1D (
+ int target,
+ int level,
+ int internalformat,
+ int x,
+ int y,
+ int width,
+ int border
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage2D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height , GLint border ) ;
+ * </pre>
+ */
+ public final native void glCopyTexImage2D (
+ int target,
+ int level,
+ int internalformat,
+ int x,
+ int y,
+ int width,
+ int height,
+ int border
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ public final native void glCopyTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int x,
+ int y,
+ int width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public final native void glCopyTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint stride , GLint order , const GLdouble * points ) ;
+ * </pre>
+ */
+ public final native void glMap1d (
+ int target,
+ double u1,
+ double u2,
+ int stride,
+ int order,
+ double[] points
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint stride , GLint order , const GLfloat * points ) ;
+ * </pre>
+ */
+ public final native void glMap1f (
+ int target,
+ float u1,
+ float u2,
+ int stride,
+ int order,
+ float[] points
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint ustride , GLint uorder , GLdouble v1 , GLdouble v2 , GLint vstride , GLint vorder , const GLdouble * points ) ;
+ * </pre>
+ */
+ public final native void glMap2d (
+ int target,
+ double u1,
+ double u2,
+ int ustride,
+ int uorder,
+ double v1,
+ double v2,
+ int vstride,
+ int vorder,
+ double[] points
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint ustride , GLint uorder , GLfloat v1 , GLfloat v2 , GLint vstride , GLint vorder , const GLfloat * points ) ;
+ * </pre>
+ */
+ public final native void glMap2f (
+ int target,
+ float u1,
+ float u2,
+ int ustride,
+ int uorder,
+ float v1,
+ float v2,
+ int vstride,
+ int vorder,
+ float[] points
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapdv ( GLenum target , GLenum query , GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glGetMapdv (
+ int target,
+ int query,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapfv ( GLenum target , GLenum query , GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glGetMapfv (
+ int target,
+ int query,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapiv ( GLenum target , GLenum query , GLint * v ) ;
+ * </pre>
+ */
+ public final native void glGetMapiv (
+ int target,
+ int query,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1d ( GLdouble u ) ;
+ * </pre>
+ */
+ public final native void glEvalCoord1d (
+ double u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1f ( GLfloat u ) ;
+ * </pre>
+ */
+ public final native void glEvalCoord1f (
+ float u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ public final native void glEvalCoord1dv (
+ double[] u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ public final native void glEvalCoord1fv (
+ float[] u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2d ( GLdouble u , GLdouble v ) ;
+ * </pre>
+ */
+ public final native void glEvalCoord2d (
+ double u,
+ double v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2f ( GLfloat u , GLfloat v ) ;
+ * </pre>
+ */
+ public final native void glEvalCoord2f (
+ float u,
+ float v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ public final native void glEvalCoord2dv (
+ double[] u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ public final native void glEvalCoord2fv (
+ float[] u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1d ( GLint un , GLdouble u1 , GLdouble u2 ) ;
+ * </pre>
+ */
+ public final native void glMapGrid1d (
+ int un,
+ double u1,
+ double u2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1f ( GLint un , GLfloat u1 , GLfloat u2 ) ;
+ * </pre>
+ */
+ public final native void glMapGrid1f (
+ int un,
+ float u1,
+ float u2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2d ( GLint un , GLdouble u1 , GLdouble u2 , GLint vn , GLdouble v1 , GLdouble v2 ) ;
+ * </pre>
+ */
+ public final native void glMapGrid2d (
+ int un,
+ double u1,
+ double u2,
+ int vn,
+ double v1,
+ double v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2f ( GLint un , GLfloat u1 , GLfloat u2 , GLint vn , GLfloat v1 , GLfloat v2 ) ;
+ * </pre>
+ */
+ public final native void glMapGrid2f (
+ int un,
+ float u1,
+ float u2,
+ int vn,
+ float v1,
+ float v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint1 ( GLint i ) ;
+ * </pre>
+ */
+ public final native void glEvalPoint1 (
+ int i
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint2 ( GLint i , GLint j ) ;
+ * </pre>
+ */
+ public final native void glEvalPoint2 (
+ int i,
+ int j
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh1 ( GLenum mode , GLint i1 , GLint i2 ) ;
+ * </pre>
+ */
+ public final native void glEvalMesh1 (
+ int mode,
+ int i1,
+ int i2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh2 ( GLenum mode , GLint i1 , GLint i2 , GLint j1 , GLint j2 ) ;
+ * </pre>
+ */
+ public final native void glEvalMesh2 (
+ int mode,
+ int i1,
+ int i2,
+ int j1,
+ int j2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public final native void glFogf (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public final native void glFogi (
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glFogfv (
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogiv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public final native void glFogiv (
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFeedbackBuffer ( GLsizei size , GLenum type , GLfloat * buffer ) ;
+ * </pre>
+ */
+ public final native void glFeedbackBuffer (
+ int size,
+ int type,
+ float[] buffer
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPassThrough ( GLfloat token ) ;
+ * </pre>
+ */
+ public final native void glPassThrough (
+ float token
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSelectBuffer ( GLsizei size , GLuint * buffer ) ;
+ * </pre>
+ */
+ public final native void glSelectBuffer (
+ int size,
+ int[] buffer
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInitNames ( void ) ;
+ * </pre>
+ */
+ public final native void glInitNames (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadName ( GLuint name ) ;
+ * </pre>
+ */
+ public final native void glLoadName (
+ int name
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushName ( GLuint name ) ;
+ * </pre>
+ */
+ public final native void glPushName (
+ int name
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopName ( void ) ;
+ * </pre>
+ */
+ public final native void glPopName (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawRangeElements ( GLenum mode , GLuint start , GLuint end , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ public final native void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ byte[] indices
+ ) ;
+ public final native void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ short[] indices
+ ) ;
+ public final native void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ int[] indices
+ ) ;
+ public final native void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ float[] indices
+ ) ;
+ public final native void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ double[] indices
+ ) ;
+ public final native void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ boolean[] indices
+ ) ;
+ public final native void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ long[] indices
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public final native void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public final native void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public final native void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public final native void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public final native void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public final native void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public final native void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public final native void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public final native void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public final native void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public final native void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public final native void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public final native void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public final native void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public final native void glCopyTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTable ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ public final native void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ byte[] table
+ ) ;
+ public final native void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ short[] table
+ ) ;
+ public final native void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ int[] table
+ ) ;
+ public final native void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ float[] table
+ ) ;
+ public final native void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ double[] table
+ ) ;
+ public final native void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ boolean[] table
+ ) ;
+ public final native void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ long[] table
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTable ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ public final native void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ byte[] data
+ ) ;
+ public final native void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ short[] data
+ ) ;
+ public final native void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ int[] data
+ ) ;
+ public final native void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ float[] data
+ ) ;
+ public final native void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ double[] data
+ ) ;
+ public final native void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ boolean[] data
+ ) ;
+ public final native void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ long[] data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public final native void glColorTableParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glColorTableParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorSubTable ( GLenum target , GLsizei start , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ public final native void glCopyColorSubTable (
+ int target,
+ int start,
+ int x,
+ int y,
+ int width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorTable ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ public final native void glCopyColorTable (
+ int target,
+ int internalformat,
+ int x,
+ int y,
+ int width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTable ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ public final native void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ byte[] table
+ ) ;
+ public final native void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ short[] table
+ ) ;
+ public final native void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ int[] table
+ ) ;
+ public final native void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ float[] table
+ ) ;
+ public final native void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ double[] table
+ ) ;
+ public final native void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ boolean[] table
+ ) ;
+ public final native void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ long[] table
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetColorTableParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetColorTableParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquation ( GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glBlendEquation (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ public final native void glBlendColor (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHistogram ( GLenum target , GLsizei width , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ public final native void glHistogram (
+ int target,
+ int width,
+ int internalformat,
+ boolean sink
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetHistogram ( GLenum target ) ;
+ * </pre>
+ */
+ public final native void glResetHistogram (
+ int target
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogram ( GLenum target , GLboolean reset , GLenum format , GLenum type , GLvoid * values ) ;
+ * </pre>
+ */
+ public final native void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ byte[] values
+ ) ;
+ public final native void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ short[] values
+ ) ;
+ public final native void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ int[] values
+ ) ;
+ public final native void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ float[] values
+ ) ;
+ public final native void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ double[] values
+ ) ;
+ public final native void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ boolean[] values
+ ) ;
+ public final native void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ long[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetHistogramParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetHistogramParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMinmax ( GLenum target , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ public final native void glMinmax (
+ int target,
+ int internalformat,
+ boolean sink
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetMinmax ( GLenum target ) ;
+ * </pre>
+ */
+ public final native void glResetMinmax (
+ int target
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmax ( GLenum target , GLboolean reset , GLenum format , GLenum types , GLvoid * values ) ;
+ * </pre>
+ */
+ public final native void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ byte[] values
+ ) ;
+ public final native void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ short[] values
+ ) ;
+ public final native void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ int[] values
+ ) ;
+ public final native void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ float[] values
+ ) ;
+ public final native void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ double[] values
+ ) ;
+ public final native void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ boolean[] values
+ ) ;
+ public final native void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ long[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetMinmaxParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetMinmaxParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter1D ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ public final native void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ byte[] image
+ ) ;
+ public final native void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ short[] image
+ ) ;
+ public final native void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ int[] image
+ ) ;
+ public final native void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ float[] image
+ ) ;
+ public final native void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ double[] image
+ ) ;
+ public final native void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ boolean[] image
+ ) ;
+ public final native void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ long[] image
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ public final native void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] image
+ ) ;
+ public final native void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] image
+ ) ;
+ public final native void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] image
+ ) ;
+ public final native void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] image
+ ) ;
+ public final native void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] image
+ ) ;
+ public final native void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] image
+ ) ;
+ public final native void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] image
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterf ( GLenum target , GLenum pname , GLfloat params ) ;
+ * </pre>
+ */
+ public final native void glConvolutionParameterf (
+ int target,
+ int pname,
+ float params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glConvolutionParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteri ( GLenum target , GLenum pname , GLint params ) ;
+ * </pre>
+ */
+ public final native void glConvolutionParameteri (
+ int target,
+ int pname,
+ int params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public final native void glConvolutionParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter1D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ public final native void glCopyConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int x,
+ int y,
+ int width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter2D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public final native void glCopyConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionFilter ( GLenum target , GLenum format , GLenum type , GLvoid * image ) ;
+ * </pre>
+ */
+ public final native void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ byte[] image
+ ) ;
+ public final native void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ short[] image
+ ) ;
+ public final native void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ int[] image
+ ) ;
+ public final native void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ float[] image
+ ) ;
+ public final native void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ double[] image
+ ) ;
+ public final native void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ boolean[] image
+ ) ;
+ public final native void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ long[] image
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetConvolutionParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetConvolutionParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSeparableFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * row , const GLvoid * column ) ;
+ * </pre>
+ */
+ public final native void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] row,
+ byte[] column
+ ) ;
+ public final native void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] row,
+ short[] column
+ ) ;
+ public final native void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] row,
+ int[] column
+ ) ;
+ public final native void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] row,
+ float[] column
+ ) ;
+ public final native void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] row,
+ double[] column
+ ) ;
+ public final native void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] row,
+ boolean[] column
+ ) ;
+ public final native void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] row,
+ long[] column
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetSeparableFilter ( GLenum target , GLenum format , GLenum type , GLvoid * row , GLvoid * column , GLvoid * span ) ;
+ * </pre>
+ */
+ public final native void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ byte[] row,
+ byte[] column,
+ byte[] span
+ ) ;
+ public final native void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ short[] row,
+ short[] column,
+ short[] span
+ ) ;
+ public final native void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ int[] row,
+ int[] column,
+ int[] span
+ ) ;
+ public final native void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ float[] row,
+ float[] column,
+ float[] span
+ ) ;
+ public final native void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ double[] row,
+ double[] column,
+ double[] span
+ ) ;
+ public final native void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ boolean[] row,
+ boolean[] column,
+ boolean[] span
+ ) ;
+ public final native void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ long[] row,
+ long[] column,
+ long[] span
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColorEXT ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ public final native void glBlendColorEXT (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffsetEXT ( GLfloat factor , GLfloat bias ) ;
+ * </pre>
+ */
+ public final native void glPolygonOffsetEXT (
+ float factor,
+ float bias
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3DEXT ( GLenum target , GLint level , GLenum internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public final native void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public final native void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public final native void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public final native void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public final native void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public final native void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public final native void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public final native void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public final native void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public final native void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public final native void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public final native void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public final native void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public final native void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public final native void glCopyTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTexturesEXT ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ public final native void glGenTexturesEXT (
+ int n,
+ int[] textures
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTexturesEXT ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ public final native void glDeleteTexturesEXT (
+ int n,
+ int[] textures
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTextureEXT ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ public final native void glBindTextureEXT (
+ int target,
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTexturesEXT ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ public final native void glPrioritizeTexturesEXT (
+ int n,
+ int[] textures,
+ float[] priorities
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResidentEXT ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ public final native boolean glAreTexturesResidentEXT (
+ int n,
+ int[] textures,
+ boolean[] residences
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTextureEXT ( GLuint texture ) ;
+ * </pre>
+ */
+ public final native boolean glIsTextureEXT (
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public final native void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public final native void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public final native void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public final native void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public final native void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public final native void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public final native void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public final native void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public final native void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public final native void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public final native void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public final native void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public final native void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public final native void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public final native void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public final native void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public final native void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public final native void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public final native void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public final native void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public final native void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public final native void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public final native void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public final native void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public final native void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public final native void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public final native void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public final native void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public final native void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public final native void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public final native void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public final native void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public final native void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public final native void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public final native void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointerEXT ( GLsizei stride , GLsizei count , const GLboolean * ptr ) ;
+ * </pre>
+ */
+ public final native void glEdgeFlagPointerEXT (
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointervEXT ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ public final native void glGetPointervEXT (
+ int pname,
+ byte[][] params
+ ) ;
+ public final native void glGetPointervEXT (
+ int pname,
+ short[][] params
+ ) ;
+ public final native void glGetPointervEXT (
+ int pname,
+ int[][] params
+ ) ;
+ public final native void glGetPointervEXT (
+ int pname,
+ float[][] params
+ ) ;
+ public final native void glGetPointervEXT (
+ int pname,
+ double[][] params
+ ) ;
+ public final native void glGetPointervEXT (
+ int pname,
+ boolean[][] params
+ ) ;
+ public final native void glGetPointervEXT (
+ int pname,
+ long[][] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElementEXT ( GLint i ) ;
+ * </pre>
+ */
+ public final native void glArrayElementEXT (
+ int i
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArraysEXT ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ public final native void glDrawArraysEXT (
+ int mode,
+ int first,
+ int count
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquationEXT ( GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glBlendEquationEXT (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfEXT ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public final native void glPointParameterfEXT (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfvEXT ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glPointParameterfvEXT (
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableEXT ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ public final native void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ byte[] table
+ ) ;
+ public final native void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ short[] table
+ ) ;
+ public final native void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ int[] table
+ ) ;
+ public final native void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ float[] table
+ ) ;
+ public final native void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ double[] table
+ ) ;
+ public final native void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ boolean[] table
+ ) ;
+ public final native void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ long[] table
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTableEXT ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ public final native void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ byte[] data
+ ) ;
+ public final native void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ short[] data
+ ) ;
+ public final native void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ int[] data
+ ) ;
+ public final native void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ float[] data
+ ) ;
+ public final native void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ double[] data
+ ) ;
+ public final native void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ boolean[] data
+ ) ;
+ public final native void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ long[] data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableEXT ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ public final native void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ byte[] table
+ ) ;
+ public final native void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ short[] table
+ ) ;
+ public final native void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ int[] table
+ ) ;
+ public final native void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ float[] table
+ ) ;
+ public final native void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ double[] table
+ ) ;
+ public final native void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ boolean[] table
+ ) ;
+ public final native void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ long[] table
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfvEXT ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetColorTableParameterfvEXT (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterivEXT ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetColorTableParameterivEXT (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLockArraysEXT ( GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ public final native void glLockArraysEXT (
+ int first,
+ int count
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glUnlockArraysEXT ( void ) ;
+ * </pre>
+ */
+ public final native void glUnlockArraysEXT (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ public final native void glActiveTextureARB (
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClientActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ public final native void glClientActiveTextureARB (
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dARB ( GLenum target , GLdouble s ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord1dARB (
+ int target,
+ double s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord1dvARB (
+ int target,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fARB ( GLenum target , GLfloat s ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord1fARB (
+ int target,
+ float s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord1fvARB (
+ int target,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1iARB ( GLenum target , GLint s ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord1iARB (
+ int target,
+ int s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord1ivARB (
+ int target,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1sARB ( GLenum target , GLshort s ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord1sARB (
+ int target,
+ short s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord1svARB (
+ int target,
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dARB ( GLenum target , GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord2dARB (
+ int target,
+ double s,
+ double t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord2dvARB (
+ int target,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fARB ( GLenum target , GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord2fARB (
+ int target,
+ float s,
+ float t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord2fvARB (
+ int target,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2iARB ( GLenum target , GLint s , GLint t ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord2iARB (
+ int target,
+ int s,
+ int t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord2ivARB (
+ int target,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2sARB ( GLenum target , GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord2sARB (
+ int target,
+ short s,
+ short t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord2svARB (
+ int target,
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord3dARB (
+ int target,
+ double s,
+ double t,
+ double r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord3dvARB (
+ int target,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord3fARB (
+ int target,
+ float s,
+ float t,
+ float r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord3fvARB (
+ int target,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3iARB ( GLenum target , GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord3iARB (
+ int target,
+ int s,
+ int t,
+ int r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord3ivARB (
+ int target,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3sARB ( GLenum target , GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord3sARB (
+ int target,
+ short s,
+ short t,
+ short r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord3svARB (
+ int target,
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord4dARB (
+ int target,
+ double s,
+ double t,
+ double r,
+ double q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord4dvARB (
+ int target,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord4fARB (
+ int target,
+ float s,
+ float t,
+ float r,
+ float q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord4fvARB (
+ int target,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4iARB ( GLenum target , GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord4iARB (
+ int target,
+ int s,
+ int t,
+ int r,
+ int q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord4ivARB (
+ int target,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4sARB ( GLenum target , GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord4sARB (
+ int target,
+ short s,
+ short t,
+ short r,
+ short q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord4svARB (
+ int target,
+ short[] v
+ ) ;
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/C2J/gl-proto-dynauto-jni12.c b/C2J/gl-proto-dynauto-jni12.c
new file mode 100644
index 0000000..2861745
--- /dev/null
+++ b/C2J/gl-proto-dynauto-jni12.c
@@ -0,0 +1,23574 @@
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: gl-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearIndex ( GLfloat c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearIndex (
+ JNIEnv *env, jobject obj,
+ jfloat c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glClearIndex", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearColor (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glClearColor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClear ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClear (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glClear", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexMask ( GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexMask (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIndexMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMask ( GLboolean red , GLboolean green , GLboolean blue , GLboolean alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorMask (
+ JNIEnv *env, jobject obj,
+ jboolean red,
+ jboolean green,
+ jboolean blue,
+ jboolean alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean, GLboolean, GLboolean, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean, GLboolean, GLboolean, GLboolean))
+ getGLProcAddressHelper("glColorMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) red,
+ (GLboolean) green,
+ (GLboolean) blue,
+ (GLboolean) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAlphaFunc ( GLenum func , GLclampf ref ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glAlphaFunc (
+ JNIEnv *env, jobject obj,
+ jint func,
+ jfloat ref)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLclampf))
+ getGLProcAddressHelper("glAlphaFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func,
+ (GLclampf) ref
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendFunc ( GLenum sfactor , GLenum dfactor ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendFunc (
+ JNIEnv *env, jobject obj,
+ jint sfactor,
+ jint dfactor)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glBlendFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) sfactor,
+ (GLenum) dfactor
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLogicOp ( GLenum opcode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLogicOp (
+ JNIEnv *env, jobject obj,
+ jint opcode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glLogicOp", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) opcode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCullFace ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCullFace (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glCullFace", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrontFace ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFrontFace (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glFrontFace", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointSize ( GLfloat size ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointSize (
+ JNIEnv *env, jobject obj,
+ jfloat size)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glPointSize", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) size
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineWidth ( GLfloat width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLineWidth (
+ JNIEnv *env, jobject obj,
+ jfloat width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glLineWidth", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineStipple ( GLint factor , GLushort pattern ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLineStipple (
+ JNIEnv *env, jobject obj,
+ jint factor,
+ jshort pattern)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLushort))
+ getGLProcAddressHelper("glLineStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) factor,
+ (GLushort) pattern
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonMode ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonMode (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glPolygonMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffset ( GLfloat factor , GLfloat units ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonOffset (
+ JNIEnv *env, jobject obj,
+ jfloat factor,
+ jfloat units)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPolygonOffset", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) factor,
+ (GLfloat) units
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonStipple ( const GLubyte * mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonStipple (
+ JNIEnv *env, jobject obj,
+ jbyteArray mask)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glPolygonStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(mask!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, mask, 0);
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(mask!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, mask, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPolygonStipple ( GLubyte * mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPolygonStipple (
+ JNIEnv *env, jobject obj,
+ jbyteArray mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte *))
+ getGLProcAddressHelper("glGetPolygonStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(mask!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, mask, &isCopiedArray0);
+ }
+ __func_ptr__ (
+ (GLubyte *) ptr0
+ );
+
+ if(mask!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, mask, ptr0, (isCopiedArray0 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlag ( GLboolean flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlag (
+ JNIEnv *env, jobject obj,
+ jboolean flag)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean))
+ getGLProcAddressHelper("glEdgeFlag", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) flag
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagv ( const GLboolean * flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagv (
+ JNIEnv *env, jobject obj,
+ jbooleanArray flag)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLboolean *) = NULL;
+ jboolean *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLboolean *))
+ getGLProcAddressHelper("glEdgeFlagv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(flag!=NULL)
+ {
+ ptr0 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, flag, 0);
+ }
+ __func_ptr__ (
+ (const GLboolean *) ptr0
+ );
+
+ if(flag!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, flag, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScissor ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScissor (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glScissor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClipPlane ( GLenum plane , const GLdouble * equation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClipPlane (
+ JNIEnv *env, jobject obj,
+ jint plane,
+ jdoubleArray equation)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glClipPlane", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(equation!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, equation, 0);
+ }
+ __func_ptr__ (
+ (GLenum) plane,
+ (const GLdouble *) ptr1
+ );
+
+ if(equation!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, equation, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetClipPlane ( GLenum plane , GLdouble * equation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetClipPlane (
+ JNIEnv *env, jobject obj,
+ jint plane,
+ jdoubleArray equation)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetClipPlane", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(equation!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, equation, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) plane,
+ (GLdouble *) ptr1
+ );
+
+ if(equation!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, equation, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawBuffer (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDrawBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadBuffer (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glReadBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnable ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnable (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glEnable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisable ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDisable (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDisable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsEnabled ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsEnabled (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLenum) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glIsEnabled", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLenum) cap
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnableClientState (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glEnableClientState", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDisableClientState (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDisableClientState", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetBooleanv ( GLenum pname , GLboolean * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetBooleanv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean *))
+ getGLProcAddressHelper("glGetBooleanv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLboolean *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetDoublev ( GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetDoublev (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetDoublev", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLdouble *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetFloatv ( GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetFloatv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetFloatv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetIntegerv ( GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetIntegerv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint *))
+ getGLProcAddressHelper("glGetIntegerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushAttrib (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glPushAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopAttrib ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopAttrib (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushClientAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushClientAttrib (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glPushClientAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopClientAttrib ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopClientAttrib (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopClientAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint glRenderMode ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glRenderMode (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static jint (CALLBACK *__func_ptr__)(GLenum) = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glRenderMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ (GLenum) mode
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLenum glGetError ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetError (
+ JNIEnv *env, jobject obj)
+ {
+ static jint (CALLBACK *__func_ptr__)() = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)())
+ getGLProcAddressHelper("glGetError", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFinish ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFinish (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glFinish", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFlush ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFlush (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glFlush", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHint ( GLenum target , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glHint (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glHint", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearDepth ( GLclampd depth ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearDepth (
+ JNIEnv *env, jobject obj,
+ jdouble depth)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampd) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampd))
+ getGLProcAddressHelper("glClearDepth", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampd) depth
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthFunc ( GLenum func ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthFunc (
+ JNIEnv *env, jobject obj,
+ jint func)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDepthFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthMask ( GLboolean flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthMask (
+ JNIEnv *env, jobject obj,
+ jboolean flag)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean))
+ getGLProcAddressHelper("glDepthMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) flag
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthRange ( GLclampd near_val , GLclampd far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthRange (
+ JNIEnv *env, jobject obj,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampd, GLclampd) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampd, GLclampd))
+ getGLProcAddressHelper("glDepthRange", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampd) near_val,
+ (GLclampd) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearAccum ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearAccum (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glClearAccum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue,
+ (GLfloat) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAccum ( GLenum op , GLfloat value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glAccum (
+ JNIEnv *env, jobject obj,
+ jint op,
+ jfloat value)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glAccum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) op,
+ (GLfloat) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMatrixMode ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMatrixMode (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glMatrixMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glOrtho ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glOrtho (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glOrtho", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top,
+ (GLdouble) near_val,
+ (GLdouble) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrustum ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFrustum (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glFrustum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top,
+ (GLdouble) near_val,
+ (GLdouble) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glViewport ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glViewport (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glViewport", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushMatrix ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushMatrix (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPushMatrix", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopMatrix ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopMatrix (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopMatrix", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadIdentity ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadIdentity (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glLoadIdentity", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadMatrixd (
+ JNIEnv *env, jobject obj,
+ jdoubleArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glLoadMatrixd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, m, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadMatrixf (
+ JNIEnv *env, jobject obj,
+ jfloatArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glLoadMatrixf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, m, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultMatrixd (
+ JNIEnv *env, jobject obj,
+ jdoubleArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glMultMatrixd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, m, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultMatrixf (
+ JNIEnv *env, jobject obj,
+ jfloatArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glMultMatrixf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, m, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotated ( GLdouble angle , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRotated (
+ JNIEnv *env, jobject obj,
+ jdouble angle,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRotated", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) angle,
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotatef ( GLfloat angle , GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRotatef (
+ JNIEnv *env, jobject obj,
+ jfloat angle,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRotatef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) angle,
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScaled ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScaled (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glScaled", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScalef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScalef (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glScalef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslated ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTranslated (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTranslated", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslatef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTranslatef (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTranslatef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsList ( GLuint list ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsList (
+ JNIEnv *env, jobject obj,
+ jint list)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) list
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteLists ( GLuint list , GLsizei range ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteLists (
+ JNIEnv *env, jobject obj,
+ jint list,
+ jint range)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLsizei))
+ getGLProcAddressHelper("glDeleteLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list,
+ (GLsizei) range
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLuint glGenLists ( GLsizei range ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenLists (
+ JNIEnv *env, jobject obj,
+ jint range)
+ {
+ static jint (CALLBACK *__func_ptr__)(GLsizei) = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)(GLsizei))
+ getGLProcAddressHelper("glGenLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ (GLsizei) range
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNewList ( GLuint list , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNewList (
+ JNIEnv *env, jobject obj,
+ jint list,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLenum))
+ getGLProcAddressHelper("glNewList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEndList ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEndList (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glEndList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallList ( GLuint list ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallList (
+ JNIEnv *env, jobject obj,
+ jint list)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glCallList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallLists ( GLsizei n , GLenum type , const GLvoid * lists ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3B (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jbyteArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3S (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jshortArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3I (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jintArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3F (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jfloatArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3D (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jdoubleArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jbooleanArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3J (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jlongArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jlong *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glListBase ( GLuint base ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glListBase (
+ JNIEnv *env, jobject obj,
+ jint base)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glListBase", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) base
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBegin ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBegin (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBegin", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnd ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnd (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glEnd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glVertex2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glVertex2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glVertex3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glVertex3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z,
+ jdouble w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z,
+ (GLdouble) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z,
+ jfloat w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z,
+ (GLfloat) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z,
+ jint w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glVertex4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z,
+ (GLint) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z,
+ jshort w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glVertex4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z,
+ (GLshort) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3b ( GLbyte nx , GLbyte ny , GLbyte nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3b (
+ JNIEnv *env, jobject obj,
+ jbyte nx,
+ jbyte ny,
+ jbyte nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glNormal3b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) nx,
+ (GLbyte) ny,
+ (GLbyte) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3d ( GLdouble nx , GLdouble ny , GLdouble nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3d (
+ JNIEnv *env, jobject obj,
+ jdouble nx,
+ jdouble ny,
+ jdouble nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glNormal3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) nx,
+ (GLdouble) ny,
+ (GLdouble) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3f ( GLfloat nx , GLfloat ny , GLfloat nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3f (
+ JNIEnv *env, jobject obj,
+ jfloat nx,
+ jfloat ny,
+ jfloat nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glNormal3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) nx,
+ (GLfloat) ny,
+ (GLfloat) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3i ( GLint nx , GLint ny , GLint nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3i (
+ JNIEnv *env, jobject obj,
+ jint nx,
+ jint ny,
+ jint nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glNormal3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) nx,
+ (GLint) ny,
+ (GLint) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3s ( GLshort nx , GLshort ny , GLshort nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3s (
+ JNIEnv *env, jobject obj,
+ jshort nx,
+ jshort ny,
+ jshort nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glNormal3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) nx,
+ (GLshort) ny,
+ (GLshort) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glNormal3bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glNormal3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glNormal3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glNormal3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glNormal3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexd ( GLdouble c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexd (
+ JNIEnv *env, jobject obj,
+ jdouble c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glIndexd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexf ( GLfloat c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexf (
+ JNIEnv *env, jobject obj,
+ jfloat c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glIndexf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexi ( GLint c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexi (
+ JNIEnv *env, jobject obj,
+ jint c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glIndexi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexs ( GLshort c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexs (
+ JNIEnv *env, jobject obj,
+ jshort c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort))
+ getGLProcAddressHelper("glIndexs", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexub ( GLubyte c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexub (
+ JNIEnv *env, jobject obj,
+ jbyte c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte))
+ getGLProcAddressHelper("glIndexub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexdv ( const GLdouble * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexdv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glIndexdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexfv ( const GLfloat * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexfv (
+ JNIEnv *env, jobject obj,
+ jfloatArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glIndexfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexiv ( const GLint * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexiv (
+ JNIEnv *env, jobject obj,
+ jintArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glIndexiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexsv ( const GLshort * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexsv (
+ JNIEnv *env, jobject obj,
+ jshortArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glIndexsv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexubv ( const GLubyte * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glIndexubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3b ( GLbyte red , GLbyte green , GLbyte blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3b (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glColor3b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) red,
+ (GLbyte) green,
+ (GLbyte) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3d ( GLdouble red , GLdouble green , GLdouble blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3d (
+ JNIEnv *env, jobject obj,
+ jdouble red,
+ jdouble green,
+ jdouble blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glColor3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) red,
+ (GLdouble) green,
+ (GLdouble) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3f ( GLfloat red , GLfloat green , GLfloat blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3f (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glColor3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3i ( GLint red , GLint green , GLint blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3i (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glColor3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) red,
+ (GLint) green,
+ (GLint) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3s ( GLshort red , GLshort green , GLshort blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3s (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glColor3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) red,
+ (GLshort) green,
+ (GLshort) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ub ( GLubyte red , GLubyte green , GLubyte blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ub (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte, GLubyte, GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte, GLubyte, GLubyte))
+ getGLProcAddressHelper("glColor3ub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) red,
+ (GLubyte) green,
+ (GLubyte) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ui ( GLuint red , GLuint green , GLuint blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ui (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLuint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLuint, GLuint))
+ getGLProcAddressHelper("glColor3ui", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) red,
+ (GLuint) green,
+ (GLuint) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3us ( GLushort red , GLushort green , GLushort blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3us (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLushort, GLushort, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLushort, GLushort, GLushort))
+ getGLProcAddressHelper("glColor3us", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLushort) red,
+ (GLushort) green,
+ (GLushort) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4b ( GLbyte red , GLbyte green , GLbyte blue , GLbyte alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4b (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue,
+ jbyte alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glColor4b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) red,
+ (GLbyte) green,
+ (GLbyte) blue,
+ (GLbyte) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4d ( GLdouble red , GLdouble green , GLdouble blue , GLdouble alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4d (
+ JNIEnv *env, jobject obj,
+ jdouble red,
+ jdouble green,
+ jdouble blue,
+ jdouble alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glColor4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) red,
+ (GLdouble) green,
+ (GLdouble) blue,
+ (GLdouble) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4f ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4f (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glColor4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue,
+ (GLfloat) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4i ( GLint red , GLint green , GLint blue , GLint alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4i (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue,
+ jint alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glColor4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) red,
+ (GLint) green,
+ (GLint) blue,
+ (GLint) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4s ( GLshort red , GLshort green , GLshort blue , GLshort alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4s (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue,
+ jshort alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glColor4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) red,
+ (GLshort) green,
+ (GLshort) blue,
+ (GLshort) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ub ( GLubyte red , GLubyte green , GLubyte blue , GLubyte alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ub (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue,
+ jbyte alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte, GLubyte, GLubyte, GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte, GLubyte, GLubyte, GLubyte))
+ getGLProcAddressHelper("glColor4ub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) red,
+ (GLubyte) green,
+ (GLubyte) blue,
+ (GLubyte) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ui ( GLuint red , GLuint green , GLuint blue , GLuint alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ui (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue,
+ jint alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLuint, GLuint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLuint, GLuint, GLuint))
+ getGLProcAddressHelper("glColor4ui", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) red,
+ (GLuint) green,
+ (GLuint) blue,
+ (GLuint) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4us ( GLushort red , GLushort green , GLushort blue , GLushort alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4us (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue,
+ jshort alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLushort, GLushort, GLushort, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLushort, GLushort, GLushort, GLushort))
+ getGLProcAddressHelper("glColor4us", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLushort) red,
+ (GLushort) green,
+ (GLushort) blue,
+ (GLushort) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glColor3bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glColor3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glColor3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glColor3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glColor3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glColor3ubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3uiv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLuint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLuint *))
+ getGLProcAddressHelper("glColor3uiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLuint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3usv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLushort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLushort *))
+ getGLProcAddressHelper("glColor3usv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLushort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glColor4bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glColor4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glColor4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glColor4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glColor4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glColor4ubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4uiv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLuint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLuint *))
+ getGLProcAddressHelper("glColor4uiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLuint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4usv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLushort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLushort *))
+ getGLProcAddressHelper("glColor4usv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLushort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1d ( GLdouble s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1d (
+ JNIEnv *env, jobject obj,
+ jdouble s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glTexCoord1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1f ( GLfloat s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1f (
+ JNIEnv *env, jobject obj,
+ jfloat s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glTexCoord1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1i ( GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1i (
+ JNIEnv *env, jobject obj,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glTexCoord1i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1s ( GLshort s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1s (
+ JNIEnv *env, jobject obj,
+ jshort s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort))
+ getGLProcAddressHelper("glTexCoord1s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2d ( GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2f ( GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2i ( GLint s , GLint t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glTexCoord2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2s ( GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3d ( GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t,
+ jdouble r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3f ( GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t,
+ jfloat r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3i ( GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t,
+ jint r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glTexCoord3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t,
+ (GLint) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3s ( GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t,
+ jshort r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4d ( GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t,
+ jdouble r,
+ jdouble q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r,
+ (GLdouble) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4f ( GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t,
+ jfloat r,
+ jfloat q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r,
+ (GLfloat) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4i ( GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t,
+ jint r,
+ jint q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glTexCoord4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t,
+ (GLint) r,
+ (GLint) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4s ( GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t,
+ jshort r,
+ jshort q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r,
+ (GLshort) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord1dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord1fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord1iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord1sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glRasterPos2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glRasterPos3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z,
+ jdouble w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z,
+ (GLdouble) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z,
+ jfloat w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z,
+ (GLfloat) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z,
+ jint w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glRasterPos4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z,
+ (GLint) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z,
+ jshort w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z,
+ (GLshort) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectd ( GLdouble x1 , GLdouble y1 , GLdouble x2 , GLdouble y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectd (
+ JNIEnv *env, jobject obj,
+ jdouble x1,
+ jdouble y1,
+ jdouble x2,
+ jdouble y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRectd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x1,
+ (GLdouble) y1,
+ (GLdouble) x2,
+ (GLdouble) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectf ( GLfloat x1 , GLfloat y1 , GLfloat x2 , GLfloat y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectf (
+ JNIEnv *env, jobject obj,
+ jfloat x1,
+ jfloat y1,
+ jfloat x2,
+ jfloat y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRectf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x1,
+ (GLfloat) y1,
+ (GLfloat) x2,
+ (GLfloat) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRecti ( GLint x1 , GLint y1 , GLint x2 , GLint y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRecti (
+ JNIEnv *env, jobject obj,
+ jint x1,
+ jint y1,
+ jint x2,
+ jint y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glRecti", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x1,
+ (GLint) y1,
+ (GLint) x2,
+ (GLint) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRects ( GLshort x1 , GLshort y1 , GLshort x2 , GLshort y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRects (
+ JNIEnv *env, jobject obj,
+ jshort x1,
+ jshort y1,
+ jshort x2,
+ jshort y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRects", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x1,
+ (GLshort) y1,
+ (GLshort) x2,
+ (GLshort) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectdv ( const GLdouble * v1 , const GLdouble * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectdv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v1,
+ jdoubleArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *, const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *, const GLdouble *))
+ getGLProcAddressHelper("glRectdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v1, 0);
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v2, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0,
+ (const GLdouble *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectfv ( const GLfloat * v1 , const GLfloat * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectfv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v1,
+ jfloatArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *, const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *, const GLfloat *))
+ getGLProcAddressHelper("glRectfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v1, 0);
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v2, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0,
+ (const GLfloat *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectiv ( const GLint * v1 , const GLint * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectiv (
+ JNIEnv *env, jobject obj,
+ jintArray v1,
+ jintArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *, const GLint *) = NULL;
+ jint *ptr0 = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *, const GLint *))
+ getGLProcAddressHelper("glRectiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v1, 0);
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v2, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0,
+ (const GLint *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectsv ( const GLshort * v1 , const GLshort * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectsv (
+ JNIEnv *env, jobject obj,
+ jshortArray v1,
+ jshortArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *, const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *, const GLshort *))
+ getGLProcAddressHelper("glRectsv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v1, 0);
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v2, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0,
+ (const GLshort *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointer ( GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3B (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3S (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3I (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3F (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3D (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3Z (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3J (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jlong *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointerv ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3B (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbyteArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3S (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jshortArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3I (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3F (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3D (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3Z (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3J (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jlongArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElement ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glArrayElement (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glArrayElement", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArrays ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawArrays (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLsizei))
+ getGLProcAddressHelper("glDrawArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawElements ( GLenum mode , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3B (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jbyteArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3S (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jshortArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3I (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jintArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3F (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jfloatArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3D (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jdoubleArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jbooleanArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3J (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jlongArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInterleavedArrays ( GLenum format , GLsizei stride , const GLvoid * pointer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3B (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jbyteArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3S (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jshortArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3I (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jintArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3F (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jfloatArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3D (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jdoubleArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jbooleanArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3J (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jlongArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glShadeModel ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glShadeModel (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glShadeModel", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightf ( GLenum light , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightf (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glLightf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLighti ( GLenum light , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLighti (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glLighti", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightfv ( GLenum light , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightfv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glLightfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightiv ( GLenum light , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightiv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glLightiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightfv ( GLenum light , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetLightfv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetLightfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightiv ( GLenum light , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetLightiv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetLightiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModelf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glLightModelf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeli ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModeli (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glLightModeli", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModelfv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glLightModelfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeliv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModeliv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glLightModeliv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialf ( GLenum face , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialf (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glMaterialf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMateriali ( GLenum face , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMateriali (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glMateriali", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialfv ( GLenum face , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialfv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMaterialfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialiv ( GLenum face , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialiv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glMaterialiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialfv ( GLenum face , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMaterialfv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMaterialfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialiv ( GLenum face , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMaterialiv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMaterialiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMaterial ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorMaterial (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glColorMaterial", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelZoom ( GLfloat xfactor , GLfloat yfactor ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelZoom (
+ JNIEnv *env, jobject obj,
+ jfloat xfactor,
+ jfloat yfactor)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPixelZoom", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) xfactor,
+ (GLfloat) yfactor
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStoref ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelStoref (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPixelStoref", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStorei ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelStorei (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glPixelStorei", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelTransferf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPixelTransferf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelTransferi (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glPixelTransferi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapfv ( GLenum map , GLint mapsize , const GLfloat * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapfv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLfloat *))
+ getGLProcAddressHelper("glPixelMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, values, 0);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLfloat *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapuiv ( GLenum map , GLint mapsize , const GLuint * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapuiv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLuint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLuint *))
+ getGLProcAddressHelper("glPixelMapuiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, values, 0);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLuint *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapusv ( GLenum map , GLint mapsize , const GLushort * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapusv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLushort *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLushort *))
+ getGLProcAddressHelper("glPixelMapusv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, values, 0);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLushort *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapfv ( GLenum map , GLfloat * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapfv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetPixelMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLfloat *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapuiv ( GLenum map , GLuint * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapuiv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint *))
+ getGLProcAddressHelper("glGetPixelMapuiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLuint *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapusv ( GLenum map , GLushort * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapusv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLushort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLushort *))
+ getGLProcAddressHelper("glGetPixelMapusv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLushort *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBitmap ( GLsizei width , GLsizei height , GLfloat xorig , GLfloat yorig , GLfloat xmove , GLfloat ymove , const GLubyte * bitmap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBitmap (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jfloat xorig,
+ jfloat yorig,
+ jfloat xmove,
+ jfloat ymove,
+ jbyteArray bitmap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *) = NULL;
+ jbyte *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *))
+ getGLProcAddressHelper("glBitmap", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(bitmap!=NULL)
+ {
+ ptr6 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, bitmap, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLfloat) xorig,
+ (GLfloat) yorig,
+ (GLfloat) xmove,
+ (GLfloat) ymove,
+ (const GLubyte *) ptr6
+ );
+
+ if(bitmap!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, bitmap, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawPixels ( GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyPixels (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint type)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum))
+ getGLProcAddressHelper("glCopyPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) type
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilFunc ( GLenum func , GLint ref , GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilFunc (
+ JNIEnv *env, jobject obj,
+ jint func,
+ jint ref,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLuint))
+ getGLProcAddressHelper("glStencilFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func,
+ (GLint) ref,
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilMask ( GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilMask (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glStencilMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilOp ( GLenum fail , GLenum zfail , GLenum zpass ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilOp (
+ JNIEnv *env, jobject obj,
+ jint fail,
+ jint zfail,
+ jint zpass)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum))
+ getGLProcAddressHelper("glStencilOp", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) fail,
+ (GLenum) zfail,
+ (GLenum) zpass
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearStencil ( GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearStencil (
+ JNIEnv *env, jobject obj,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glClearStencil", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGend ( GLenum coord , GLenum pname , GLdouble param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGend (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdouble param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble))
+ getGLProcAddressHelper("glTexGend", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLdouble) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenf ( GLenum coord , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGenf (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexGenf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeni ( GLenum coord , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGeni (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexGeni", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGendv ( GLenum coord , GLenum pname , const GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGendv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLdouble *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLdouble *))
+ getGLProcAddressHelper("glTexGendv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLdouble *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenfv ( GLenum coord , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGenfv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexGenfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeniv ( GLenum coord , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGeniv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexGeniv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGendv ( GLenum coord , GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGendv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetTexGendv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLdouble *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGenfv ( GLenum coord , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGenfv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexGenfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGeniv ( GLenum coord , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGeniv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexGeniv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexEnvf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvi ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvi (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexEnvi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexEnvfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnviv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnviv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexEnviv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnvfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexEnvfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexEnvfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnviv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexEnviv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexEnviv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameterf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexParameterf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteri ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameteri (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexParameteri", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameterfv ( GLenum target , GLint level , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexLevelParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexLevelParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) pname,
+ (GLfloat *) ptr3
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameteriv ( GLenum target , GLint level , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexLevelParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexLevelParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) pname,
+ (GLint *) ptr3
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage1D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage2D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexImage ( GLenum target , GLint level , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTextures ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glGenTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTextures ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *))
+ getGLProcAddressHelper("glDeleteTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTexture ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBindTexture (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint))
+ getGLProcAddressHelper("glBindTexture", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLuint) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTextures ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPrioritizeTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jfloatArray priorities)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, const GLclampf *) = NULL;
+ jint *ptr1 = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *, const GLclampf *))
+ getGLProcAddressHelper("glPrioritizeTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, 0);
+ }
+ if(priorities!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, priorities, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (const GLclampf *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ if(priorities!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, priorities, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResident ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glAreTexturesResident (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jbooleanArray residences)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, GLboolean *) = NULL;
+ jboolean ret;
+
+ jint *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLsizei, const GLuint *, GLboolean *))
+ getGLProcAddressHelper("glAreTexturesResident", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, 0);
+ }
+ if(residences!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, residences, &isCopiedArray2);
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (GLboolean *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ if(residences!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, residences, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTexture ( GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsTexture (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsTexture", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) texture
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLsizei width , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage1D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLint border ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexImage1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint border)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint))
+ getGLProcAddressHelper("glCopyTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLint) border
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage2D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height , GLint border ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexImage2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint border)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint))
+ getGLProcAddressHelper("glCopyTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint stride , GLint order , const GLdouble * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap1d (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble u1,
+ jdouble u2,
+ jint stride,
+ jint order,
+ jdoubleArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *))
+ getGLProcAddressHelper("glMap1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, points, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) stride,
+ (GLint) order,
+ (const GLdouble *) ptr5
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, points, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint stride , GLint order , const GLfloat * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap1f (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat u1,
+ jfloat u2,
+ jint stride,
+ jint order,
+ jfloatArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *))
+ getGLProcAddressHelper("glMap1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, points, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) stride,
+ (GLint) order,
+ (const GLfloat *) ptr5
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, points, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint ustride , GLint uorder , GLdouble v1 , GLdouble v2 , GLint vstride , GLint vorder , const GLdouble * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap2d (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble u1,
+ jdouble u2,
+ jint ustride,
+ jint uorder,
+ jdouble v1,
+ jdouble v2,
+ jint vstride,
+ jint vorder,
+ jdoubleArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *) = NULL;
+ jdouble *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *))
+ getGLProcAddressHelper("glMap2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr9 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, points, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) ustride,
+ (GLint) uorder,
+ (GLdouble) v1,
+ (GLdouble) v2,
+ (GLint) vstride,
+ (GLint) vorder,
+ (const GLdouble *) ptr9
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, points, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint ustride , GLint uorder , GLfloat v1 , GLfloat v2 , GLint vstride , GLint vorder , const GLfloat * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap2f (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat u1,
+ jfloat u2,
+ jint ustride,
+ jint uorder,
+ jfloat v1,
+ jfloat v2,
+ jint vstride,
+ jint vorder,
+ jfloatArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *) = NULL;
+ jfloat *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *))
+ getGLProcAddressHelper("glMap2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr9 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, points, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) ustride,
+ (GLint) uorder,
+ (GLfloat) v1,
+ (GLfloat) v2,
+ (GLint) vstride,
+ (GLint) vorder,
+ (const GLfloat *) ptr9
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, points, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapdv ( GLenum target , GLenum query , GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapdv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetMapdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLdouble *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapfv ( GLenum target , GLenum query , GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLfloat *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapiv ( GLenum target , GLenum query , GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapiv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMapiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLint *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1d ( GLdouble u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1d (
+ JNIEnv *env, jobject obj,
+ jdouble u)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glEvalCoord1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) u
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1f ( GLfloat u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1f (
+ JNIEnv *env, jobject obj,
+ jfloat u)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glEvalCoord1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) u
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glEvalCoord1dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, u, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glEvalCoord1fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, u, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2d ( GLdouble u , GLdouble v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2d (
+ JNIEnv *env, jobject obj,
+ jdouble u,
+ jdouble v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glEvalCoord2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) u,
+ (GLdouble) v
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2f ( GLfloat u , GLfloat v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2f (
+ JNIEnv *env, jobject obj,
+ jfloat u,
+ jfloat v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glEvalCoord2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) u,
+ (GLfloat) v
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glEvalCoord2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, u, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glEvalCoord2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, u, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1d ( GLint un , GLdouble u1 , GLdouble u2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid1d (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jdouble u1,
+ jdouble u2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMapGrid1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLdouble) u1,
+ (GLdouble) u2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1f ( GLint un , GLfloat u1 , GLfloat u2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid1f (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jfloat u1,
+ jfloat u2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMapGrid1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLfloat) u1,
+ (GLfloat) u2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2d ( GLint un , GLdouble u1 , GLdouble u2 , GLint vn , GLdouble v1 , GLdouble v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid2d (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jdouble u1,
+ jdouble u2,
+ jint vn,
+ jdouble v1,
+ jdouble v2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMapGrid2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) vn,
+ (GLdouble) v1,
+ (GLdouble) v2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2f ( GLint un , GLfloat u1 , GLfloat u2 , GLint vn , GLfloat v1 , GLfloat v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid2f (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jfloat u1,
+ jfloat u2,
+ jint vn,
+ jfloat v1,
+ jfloat v2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMapGrid2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) vn,
+ (GLfloat) v1,
+ (GLfloat) v2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint1 ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalPoint1 (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glEvalPoint1", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint2 ( GLint i , GLint j ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalPoint2 (
+ JNIEnv *env, jobject obj,
+ jint i,
+ jint j)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glEvalPoint2", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i,
+ (GLint) j
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh1 ( GLenum mode , GLint i1 , GLint i2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalMesh1 (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint i1,
+ jint i2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint))
+ getGLProcAddressHelper("glEvalMesh1", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) i1,
+ (GLint) i2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh2 ( GLenum mode , GLint i1 , GLint i2 , GLint j1 , GLint j2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalMesh2 (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint i1,
+ jint i2,
+ jint j1,
+ jint j2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glEvalMesh2", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) i1,
+ (GLint) i2,
+ (GLint) j1,
+ (GLint) j2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glFogf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogi (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glFogi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogfv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glFogfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogiv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogiv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glFogiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFeedbackBuffer ( GLsizei size , GLenum type , GLfloat * buffer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFeedbackBuffer (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jfloatArray buffer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, GLfloat *))
+ getGLProcAddressHelper("glFeedbackBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(buffer!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, buffer, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLsizei) size,
+ (GLenum) type,
+ (GLfloat *) ptr2
+ );
+
+ if(buffer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, buffer, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPassThrough ( GLfloat token ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPassThrough (
+ JNIEnv *env, jobject obj,
+ jfloat token)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glPassThrough", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) token
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSelectBuffer ( GLsizei size , GLuint * buffer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSelectBuffer (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jintArray buffer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glSelectBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(buffer!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, buffer, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLsizei) size,
+ (GLuint *) ptr1
+ );
+
+ if(buffer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, buffer, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInitNames ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInitNames (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glInitNames", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadName ( GLuint name ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadName (
+ JNIEnv *env, jobject obj,
+ jint name)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glLoadName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) name
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushName ( GLuint name ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushName (
+ JNIEnv *env, jobject obj,
+ jint name)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glPushName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) name
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopName ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopName (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawRangeElements ( GLenum mode , GLuint start , GLuint end , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jbyteArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jshortArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jintArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jfloatArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jdoubleArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jbooleanArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jlongArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTable ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTable ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glColorTableParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glColorTableParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorSubTable ( GLenum target , GLsizei start , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyColorSubTable (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorTable ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyColorTable (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTable ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetColorTableParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetColorTableParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquation ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendEquation (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBlendEquation", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendColor (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glBlendColor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHistogram ( GLenum target , GLsizei width , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glHistogram (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint width,
+ jint internalformat,
+ jboolean sink)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, GLboolean))
+ getGLProcAddressHelper("glHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) width,
+ (GLenum) internalformat,
+ (GLboolean) sink
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetHistogram ( GLenum target ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glResetHistogram (
+ JNIEnv *env, jobject obj,
+ jint target)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glResetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogram ( GLenum target , GLboolean reset , GLenum format , GLenum type , GLvoid * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jbyteArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jdoubleArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jbooleanArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jlongArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogramParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetHistogramParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogramParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetHistogramParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMinmax ( GLenum target , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMinmax (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jboolean sink)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLboolean))
+ getGLProcAddressHelper("glMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLboolean) sink
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetMinmax ( GLenum target ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glResetMinmax (
+ JNIEnv *env, jobject obj,
+ jint target)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glResetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmax ( GLenum target , GLboolean reset , GLenum format , GLenum types , GLvoid * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jbyteArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jdoubleArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jbooleanArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jlongArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmaxParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMinmaxParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmaxParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMinmaxParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter1D ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jint *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterf ( GLenum target , GLenum pname , GLfloat params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameterf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glConvolutionParameterf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) params
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glConvolutionParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteri ( GLenum target , GLenum pname , GLint params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameteri (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glConvolutionParameteri", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) params
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glConvolutionParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter1D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyConvolutionFilter1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter2D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyConvolutionFilter2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionFilter ( GLenum target , GLenum format , GLenum type , GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetConvolutionParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetConvolutionParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSeparableFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * row , const GLvoid * column ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3B_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray row,
+ jbyteArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jbyte *ptr6 = NULL;
+ jbyte *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3S_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray row,
+ jshortArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jshort *ptr6 = NULL;
+ jshort *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3I_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray row,
+ jintArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jint *ptr6 = NULL;
+ jint *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jint *) (*env)->GetPrimitiveArrayCritical(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jint *) (*env)->GetPrimitiveArrayCritical(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3F_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray row,
+ jfloatArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jfloat *ptr6 = NULL;
+ jfloat *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray row,
+ jdoubleArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jdouble *ptr6 = NULL;
+ jdouble *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3Z_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray row,
+ jbooleanArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean *ptr6 = NULL;
+ jboolean *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3J_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray row,
+ jlongArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jlong *ptr6 = NULL;
+ jlong *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetSeparableFilter ( GLenum target , GLenum format , GLenum type , GLvoid * row , GLvoid * column , GLvoid * span ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3B_3B_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray row,
+ jbyteArray column,
+ jbyteArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3S_3S_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray row,
+ jshortArray column,
+ jshortArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3I_3I_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray row,
+ jintArray column,
+ jintArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3F_3F_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray row,
+ jfloatArray column,
+ jfloatArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3D_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray row,
+ jdoubleArray column,
+ jdoubleArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3Z_3Z_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray row,
+ jbooleanArray column,
+ jbooleanArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3J_3J_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray row,
+ jlongArray column,
+ jlongArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColorEXT ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendColorEXT (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glBlendColorEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffsetEXT ( GLfloat factor , GLfloat bias ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonOffsetEXT (
+ JNIEnv *env, jobject obj,
+ jfloat factor,
+ jfloat bias)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPolygonOffsetEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) factor,
+ (GLfloat) bias
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3DEXT ( GLenum target , GLint level , GLenum internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage3DEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTexturesEXT ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glGenTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTexturesEXT ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *))
+ getGLProcAddressHelper("glDeleteTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTextureEXT ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBindTextureEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint))
+ getGLProcAddressHelper("glBindTextureEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLuint) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTexturesEXT ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPrioritizeTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jfloatArray priorities)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, const GLclampf *) = NULL;
+ jint *ptr1 = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *, const GLclampf *))
+ getGLProcAddressHelper("glPrioritizeTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, 0);
+ }
+ if(priorities!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, priorities, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (const GLclampf *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ if(priorities!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, priorities, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResidentEXT ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glAreTexturesResidentEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jbooleanArray residences)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, GLboolean *) = NULL;
+ jboolean ret;
+
+ jint *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLsizei, const GLuint *, GLboolean *))
+ getGLProcAddressHelper("glAreTexturesResidentEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, 0);
+ }
+ if(residences!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, residences, &isCopiedArray2);
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (GLboolean *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ if(residences!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, residences, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTextureEXT ( GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsTextureEXT (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsTextureEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) texture
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointerEXT ( GLsizei stride , GLsizei count , const GLboolean * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointerEXT (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, const GLboolean *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, const GLboolean *))
+ getGLProcAddressHelper("glEdgeFlagPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLboolean *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointervEXT ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3B (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbyteArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3S (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jshortArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3I (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3F (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3D (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3Z (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3J (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jlongArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElementEXT ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glArrayElementEXT (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glArrayElementEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArraysEXT ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawArraysEXT (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLsizei))
+ getGLProcAddressHelper("glDrawArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquationEXT ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendEquationEXT (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBlendEquationEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfEXT ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointParameterfEXT (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPointParameterfEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfvEXT ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointParameterfvEXT (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glPointParameterfvEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableEXT ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTableEXT ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableEXT ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfvEXT ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterfvEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetColorTableParameterfvEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterivEXT ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterivEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetColorTableParameterivEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLockArraysEXT ( GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLockArraysEXT (
+ JNIEnv *env, jobject obj,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLsizei))
+ getGLProcAddressHelper("glLockArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glUnlockArraysEXT ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glUnlockArraysEXT (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glUnlockArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glActiveTextureARB (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glActiveTextureARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClientActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClientActiveTextureARB (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glClientActiveTextureARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dARB ( GLenum target , GLdouble s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord1dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord1dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fARB ( GLenum target , GLfloat s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord1fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord1fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1iARB ( GLenum target , GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glMultiTexCoord1iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord1ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1sARB ( GLenum target , GLshort s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord1sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord1svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dARB ( GLenum target , GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord2dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord2dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fARB ( GLenum target , GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord2fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord2fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2iARB ( GLenum target , GLint s , GLint t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord2iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord2ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2sARB ( GLenum target , GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord2sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord2svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t,
+ jdouble r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord3dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord3dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t,
+ jfloat r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord3fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord3fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3iARB ( GLenum target , GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t,
+ jint r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord3iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t,
+ (GLint) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord3ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3sARB ( GLenum target , GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t,
+ jshort r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord3sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord3svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t,
+ jdouble r,
+ jdouble q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord4dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r,
+ (GLdouble) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord4dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t,
+ jfloat r,
+ jfloat q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord4fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r,
+ (GLfloat) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord4fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4iARB ( GLenum target , GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t,
+ jint r,
+ jint q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord4iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t,
+ (GLint) r,
+ (GLint) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord4ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4sARB ( GLenum target , GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t,
+ jshort r,
+ jshort q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord4sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r,
+ (GLshort) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord4svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/C2J/gl-proto-dynauto-tst-jni12.c b/C2J/gl-proto-dynauto-tst-jni12.c
new file mode 100644
index 0000000..cc3e88b
--- /dev/null
+++ b/C2J/gl-proto-dynauto-tst-jni12.c
@@ -0,0 +1,26371 @@
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: gl-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearIndex ( GLfloat c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearIndex (
+ JNIEnv *env, jobject obj,
+ jfloat c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glClearIndex", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearColor (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glClearColor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClear ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClear (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glClear", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexMask ( GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexMask (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIndexMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMask ( GLboolean red , GLboolean green , GLboolean blue , GLboolean alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorMask (
+ JNIEnv *env, jobject obj,
+ jboolean red,
+ jboolean green,
+ jboolean blue,
+ jboolean alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean, GLboolean, GLboolean, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean, GLboolean, GLboolean, GLboolean))
+ getGLProcAddressHelper("glColorMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) red,
+ (GLboolean) green,
+ (GLboolean) blue,
+ (GLboolean) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAlphaFunc ( GLenum func , GLclampf ref ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glAlphaFunc (
+ JNIEnv *env, jobject obj,
+ jint func,
+ jfloat ref)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLclampf))
+ getGLProcAddressHelper("glAlphaFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func,
+ (GLclampf) ref
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendFunc ( GLenum sfactor , GLenum dfactor ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendFunc (
+ JNIEnv *env, jobject obj,
+ jint sfactor,
+ jint dfactor)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glBlendFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) sfactor,
+ (GLenum) dfactor
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLogicOp ( GLenum opcode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLogicOp (
+ JNIEnv *env, jobject obj,
+ jint opcode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glLogicOp", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) opcode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCullFace ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCullFace (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glCullFace", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrontFace ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFrontFace (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glFrontFace", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointSize ( GLfloat size ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointSize (
+ JNIEnv *env, jobject obj,
+ jfloat size)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glPointSize", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) size
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineWidth ( GLfloat width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLineWidth (
+ JNIEnv *env, jobject obj,
+ jfloat width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glLineWidth", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineStipple ( GLint factor , GLushort pattern ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLineStipple (
+ JNIEnv *env, jobject obj,
+ jint factor,
+ jshort pattern)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLushort))
+ getGLProcAddressHelper("glLineStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) factor,
+ (GLushort) pattern
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonMode ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonMode (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glPolygonMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffset ( GLfloat factor , GLfloat units ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonOffset (
+ JNIEnv *env, jobject obj,
+ jfloat factor,
+ jfloat units)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPolygonOffset", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) factor,
+ (GLfloat) units
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonStipple ( const GLubyte * mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonStipple (
+ JNIEnv *env, jobject obj,
+ jbyteArray mask)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glPolygonStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(mask!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, mask, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glPolygonStipple arg: mask");
+ }
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(mask!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, mask, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPolygonStipple ( GLubyte * mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPolygonStipple (
+ JNIEnv *env, jobject obj,
+ jbyteArray mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte *))
+ getGLProcAddressHelper("glGetPolygonStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(mask!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, mask, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glGetPolygonStipple arg: mask");
+ }
+ }
+ __func_ptr__ (
+ (GLubyte *) ptr0
+ );
+
+ if(mask!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, mask, ptr0, (isCopiedArray0 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlag ( GLboolean flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlag (
+ JNIEnv *env, jobject obj,
+ jboolean flag)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean))
+ getGLProcAddressHelper("glEdgeFlag", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) flag
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagv ( const GLboolean * flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagv (
+ JNIEnv *env, jobject obj,
+ jbooleanArray flag)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLboolean *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jboolean *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLboolean *))
+ getGLProcAddressHelper("glEdgeFlagv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(flag!=NULL)
+ {
+ ptr0 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, flag, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glEdgeFlagv arg: flag");
+ }
+ }
+ __func_ptr__ (
+ (const GLboolean *) ptr0
+ );
+
+ if(flag!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, flag, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScissor ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScissor (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glScissor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClipPlane ( GLenum plane , const GLdouble * equation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClipPlane (
+ JNIEnv *env, jobject obj,
+ jint plane,
+ jdoubleArray equation)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glClipPlane", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(equation!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, equation, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glClipPlane arg: equation");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) plane,
+ (const GLdouble *) ptr1
+ );
+
+ if(equation!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, equation, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetClipPlane ( GLenum plane , GLdouble * equation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetClipPlane (
+ JNIEnv *env, jobject obj,
+ jint plane,
+ jdoubleArray equation)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetClipPlane", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(equation!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, equation, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetClipPlane arg: equation");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) plane,
+ (GLdouble *) ptr1
+ );
+
+ if(equation!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, equation, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawBuffer (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDrawBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadBuffer (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glReadBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnable ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnable (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glEnable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisable ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDisable (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDisable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsEnabled ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsEnabled (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLenum) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glIsEnabled", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLenum) cap
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnableClientState (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glEnableClientState", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDisableClientState (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDisableClientState", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetBooleanv ( GLenum pname , GLboolean * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetBooleanv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean *))
+ getGLProcAddressHelper("glGetBooleanv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetBooleanv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLboolean *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetDoublev ( GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetDoublev (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetDoublev", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetDoublev arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLdouble *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetFloatv ( GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetFloatv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetFloatv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetFloatv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetIntegerv ( GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetIntegerv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint *))
+ getGLProcAddressHelper("glGetIntegerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetIntegerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushAttrib (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glPushAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopAttrib ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopAttrib (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushClientAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushClientAttrib (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glPushClientAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopClientAttrib ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopClientAttrib (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopClientAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint glRenderMode ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glRenderMode (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static jint (CALLBACK *__func_ptr__)(GLenum) = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glRenderMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ (GLenum) mode
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLenum glGetError ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetError (
+ JNIEnv *env, jobject obj)
+ {
+ static jint (CALLBACK *__func_ptr__)() = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)())
+ getGLProcAddressHelper("glGetError", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFinish ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFinish (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glFinish", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFlush ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFlush (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glFlush", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHint ( GLenum target , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glHint (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glHint", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearDepth ( GLclampd depth ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearDepth (
+ JNIEnv *env, jobject obj,
+ jdouble depth)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampd) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampd))
+ getGLProcAddressHelper("glClearDepth", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampd) depth
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthFunc ( GLenum func ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthFunc (
+ JNIEnv *env, jobject obj,
+ jint func)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDepthFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthMask ( GLboolean flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthMask (
+ JNIEnv *env, jobject obj,
+ jboolean flag)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean))
+ getGLProcAddressHelper("glDepthMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) flag
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthRange ( GLclampd near_val , GLclampd far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthRange (
+ JNIEnv *env, jobject obj,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampd, GLclampd) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampd, GLclampd))
+ getGLProcAddressHelper("glDepthRange", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampd) near_val,
+ (GLclampd) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearAccum ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearAccum (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glClearAccum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue,
+ (GLfloat) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAccum ( GLenum op , GLfloat value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glAccum (
+ JNIEnv *env, jobject obj,
+ jint op,
+ jfloat value)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glAccum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) op,
+ (GLfloat) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMatrixMode ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMatrixMode (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glMatrixMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glOrtho ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glOrtho (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glOrtho", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top,
+ (GLdouble) near_val,
+ (GLdouble) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrustum ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFrustum (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glFrustum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top,
+ (GLdouble) near_val,
+ (GLdouble) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glViewport ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glViewport (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glViewport", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushMatrix ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushMatrix (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPushMatrix", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopMatrix ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopMatrix (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopMatrix", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadIdentity ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadIdentity (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glLoadIdentity", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadMatrixd (
+ JNIEnv *env, jobject obj,
+ jdoubleArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glLoadMatrixd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, m, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glLoadMatrixd arg: m");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadMatrixf (
+ JNIEnv *env, jobject obj,
+ jfloatArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glLoadMatrixf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, m, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glLoadMatrixf arg: m");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultMatrixd (
+ JNIEnv *env, jobject obj,
+ jdoubleArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glMultMatrixd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, m, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glMultMatrixd arg: m");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultMatrixf (
+ JNIEnv *env, jobject obj,
+ jfloatArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glMultMatrixf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, m, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glMultMatrixf arg: m");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotated ( GLdouble angle , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRotated (
+ JNIEnv *env, jobject obj,
+ jdouble angle,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRotated", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) angle,
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotatef ( GLfloat angle , GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRotatef (
+ JNIEnv *env, jobject obj,
+ jfloat angle,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRotatef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) angle,
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScaled ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScaled (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glScaled", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScalef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScalef (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glScalef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslated ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTranslated (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTranslated", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslatef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTranslatef (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTranslatef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsList ( GLuint list ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsList (
+ JNIEnv *env, jobject obj,
+ jint list)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) list
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteLists ( GLuint list , GLsizei range ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteLists (
+ JNIEnv *env, jobject obj,
+ jint list,
+ jint range)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLsizei))
+ getGLProcAddressHelper("glDeleteLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list,
+ (GLsizei) range
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLuint glGenLists ( GLsizei range ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenLists (
+ JNIEnv *env, jobject obj,
+ jint range)
+ {
+ static jint (CALLBACK *__func_ptr__)(GLsizei) = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)(GLsizei))
+ getGLProcAddressHelper("glGenLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ (GLsizei) range
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNewList ( GLuint list , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNewList (
+ JNIEnv *env, jobject obj,
+ jint list,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLenum))
+ getGLProcAddressHelper("glNewList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEndList ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEndList (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glEndList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallList ( GLuint list ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallList (
+ JNIEnv *env, jobject obj,
+ jint list)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glCallList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallLists ( GLsizei n , GLenum type , const GLvoid * lists ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3B (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jbyteArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3S (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jshortArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3I (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jintArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3F (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jfloatArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3D (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jdoubleArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jbooleanArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3J (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jlongArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glListBase ( GLuint base ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glListBase (
+ JNIEnv *env, jobject obj,
+ jint base)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glListBase", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) base
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBegin ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBegin (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBegin", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnd ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnd (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glEnd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glVertex2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glVertex2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glVertex3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glVertex3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z,
+ jdouble w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z,
+ (GLdouble) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z,
+ jfloat w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z,
+ (GLfloat) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z,
+ jint w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glVertex4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z,
+ (GLint) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z,
+ jshort w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glVertex4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z,
+ (GLshort) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex2dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex2fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex2iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex2sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex3dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex3fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex3iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex3sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex4dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex4fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex4iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex4sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3b ( GLbyte nx , GLbyte ny , GLbyte nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3b (
+ JNIEnv *env, jobject obj,
+ jbyte nx,
+ jbyte ny,
+ jbyte nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glNormal3b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) nx,
+ (GLbyte) ny,
+ (GLbyte) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3d ( GLdouble nx , GLdouble ny , GLdouble nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3d (
+ JNIEnv *env, jobject obj,
+ jdouble nx,
+ jdouble ny,
+ jdouble nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glNormal3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) nx,
+ (GLdouble) ny,
+ (GLdouble) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3f ( GLfloat nx , GLfloat ny , GLfloat nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3f (
+ JNIEnv *env, jobject obj,
+ jfloat nx,
+ jfloat ny,
+ jfloat nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glNormal3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) nx,
+ (GLfloat) ny,
+ (GLfloat) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3i ( GLint nx , GLint ny , GLint nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3i (
+ JNIEnv *env, jobject obj,
+ jint nx,
+ jint ny,
+ jint nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glNormal3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) nx,
+ (GLint) ny,
+ (GLint) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3s ( GLshort nx , GLshort ny , GLshort nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3s (
+ JNIEnv *env, jobject obj,
+ jshort nx,
+ jshort ny,
+ jshort nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glNormal3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) nx,
+ (GLshort) ny,
+ (GLshort) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glNormal3bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glNormal3bv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glNormal3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glNormal3dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glNormal3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glNormal3fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glNormal3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glNormal3iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glNormal3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glNormal3sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexd ( GLdouble c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexd (
+ JNIEnv *env, jobject obj,
+ jdouble c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glIndexd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexf ( GLfloat c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexf (
+ JNIEnv *env, jobject obj,
+ jfloat c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glIndexf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexi ( GLint c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexi (
+ JNIEnv *env, jobject obj,
+ jint c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glIndexi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexs ( GLshort c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexs (
+ JNIEnv *env, jobject obj,
+ jshort c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort))
+ getGLProcAddressHelper("glIndexs", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexub ( GLubyte c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexub (
+ JNIEnv *env, jobject obj,
+ jbyte c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte))
+ getGLProcAddressHelper("glIndexub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexdv ( const GLdouble * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexdv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glIndexdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, c, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glIndexdv arg: c");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexfv ( const GLfloat * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexfv (
+ JNIEnv *env, jobject obj,
+ jfloatArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glIndexfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, c, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glIndexfv arg: c");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexiv ( const GLint * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexiv (
+ JNIEnv *env, jobject obj,
+ jintArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glIndexiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, c, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glIndexiv arg: c");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexsv ( const GLshort * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexsv (
+ JNIEnv *env, jobject obj,
+ jshortArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glIndexsv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, c, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glIndexsv arg: c");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexubv ( const GLubyte * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glIndexubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, c, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glIndexubv arg: c");
+ }
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3b ( GLbyte red , GLbyte green , GLbyte blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3b (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glColor3b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) red,
+ (GLbyte) green,
+ (GLbyte) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3d ( GLdouble red , GLdouble green , GLdouble blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3d (
+ JNIEnv *env, jobject obj,
+ jdouble red,
+ jdouble green,
+ jdouble blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glColor3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) red,
+ (GLdouble) green,
+ (GLdouble) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3f ( GLfloat red , GLfloat green , GLfloat blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3f (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glColor3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3i ( GLint red , GLint green , GLint blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3i (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glColor3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) red,
+ (GLint) green,
+ (GLint) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3s ( GLshort red , GLshort green , GLshort blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3s (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glColor3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) red,
+ (GLshort) green,
+ (GLshort) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ub ( GLubyte red , GLubyte green , GLubyte blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ub (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte, GLubyte, GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte, GLubyte, GLubyte))
+ getGLProcAddressHelper("glColor3ub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) red,
+ (GLubyte) green,
+ (GLubyte) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ui ( GLuint red , GLuint green , GLuint blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ui (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLuint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLuint, GLuint))
+ getGLProcAddressHelper("glColor3ui", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) red,
+ (GLuint) green,
+ (GLuint) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3us ( GLushort red , GLushort green , GLushort blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3us (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLushort, GLushort, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLushort, GLushort, GLushort))
+ getGLProcAddressHelper("glColor3us", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLushort) red,
+ (GLushort) green,
+ (GLushort) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4b ( GLbyte red , GLbyte green , GLbyte blue , GLbyte alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4b (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue,
+ jbyte alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glColor4b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) red,
+ (GLbyte) green,
+ (GLbyte) blue,
+ (GLbyte) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4d ( GLdouble red , GLdouble green , GLdouble blue , GLdouble alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4d (
+ JNIEnv *env, jobject obj,
+ jdouble red,
+ jdouble green,
+ jdouble blue,
+ jdouble alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glColor4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) red,
+ (GLdouble) green,
+ (GLdouble) blue,
+ (GLdouble) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4f ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4f (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glColor4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue,
+ (GLfloat) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4i ( GLint red , GLint green , GLint blue , GLint alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4i (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue,
+ jint alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glColor4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) red,
+ (GLint) green,
+ (GLint) blue,
+ (GLint) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4s ( GLshort red , GLshort green , GLshort blue , GLshort alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4s (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue,
+ jshort alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glColor4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) red,
+ (GLshort) green,
+ (GLshort) blue,
+ (GLshort) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ub ( GLubyte red , GLubyte green , GLubyte blue , GLubyte alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ub (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue,
+ jbyte alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte, GLubyte, GLubyte, GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte, GLubyte, GLubyte, GLubyte))
+ getGLProcAddressHelper("glColor4ub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) red,
+ (GLubyte) green,
+ (GLubyte) blue,
+ (GLubyte) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ui ( GLuint red , GLuint green , GLuint blue , GLuint alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ui (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue,
+ jint alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLuint, GLuint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLuint, GLuint, GLuint))
+ getGLProcAddressHelper("glColor4ui", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) red,
+ (GLuint) green,
+ (GLuint) blue,
+ (GLuint) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4us ( GLushort red , GLushort green , GLushort blue , GLushort alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4us (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue,
+ jshort alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLushort, GLushort, GLushort, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLushort, GLushort, GLushort, GLushort))
+ getGLProcAddressHelper("glColor4us", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLushort) red,
+ (GLushort) green,
+ (GLushort) blue,
+ (GLushort) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glColor3bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3bv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glColor3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glColor3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glColor3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glColor3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glColor3ubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3ubv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3uiv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLuint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLuint *))
+ getGLProcAddressHelper("glColor3uiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3uiv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLuint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3usv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLushort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLushort *))
+ getGLProcAddressHelper("glColor3usv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3usv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLushort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glColor4bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4bv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glColor4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glColor4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glColor4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glColor4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glColor4ubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4ubv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4uiv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLuint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLuint *))
+ getGLProcAddressHelper("glColor4uiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4uiv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLuint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4usv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLushort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLushort *))
+ getGLProcAddressHelper("glColor4usv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4usv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLushort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1d ( GLdouble s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1d (
+ JNIEnv *env, jobject obj,
+ jdouble s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glTexCoord1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1f ( GLfloat s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1f (
+ JNIEnv *env, jobject obj,
+ jfloat s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glTexCoord1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1i ( GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1i (
+ JNIEnv *env, jobject obj,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glTexCoord1i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1s ( GLshort s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1s (
+ JNIEnv *env, jobject obj,
+ jshort s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort))
+ getGLProcAddressHelper("glTexCoord1s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2d ( GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2f ( GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2i ( GLint s , GLint t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glTexCoord2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2s ( GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3d ( GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t,
+ jdouble r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3f ( GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t,
+ jfloat r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3i ( GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t,
+ jint r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glTexCoord3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t,
+ (GLint) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3s ( GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t,
+ jshort r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4d ( GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t,
+ jdouble r,
+ jdouble q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r,
+ (GLdouble) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4f ( GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t,
+ jfloat r,
+ jfloat q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r,
+ (GLfloat) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4i ( GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t,
+ jint r,
+ jint q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glTexCoord4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t,
+ (GLint) r,
+ (GLint) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4s ( GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t,
+ jshort r,
+ jshort q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r,
+ (GLshort) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord1dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord1dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord1fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord1fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord1iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord1iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord1sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord1sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord2dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord2fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord2iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord2sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord3dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord3fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord3iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord3sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord4dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord4fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord4iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord4sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glRasterPos2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glRasterPos3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z,
+ jdouble w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z,
+ (GLdouble) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z,
+ jfloat w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z,
+ (GLfloat) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z,
+ jint w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glRasterPos4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z,
+ (GLint) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z,
+ jshort w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z,
+ (GLshort) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos2dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos2fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos2iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos2sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos3dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos3fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos3iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos3sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos4dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos4fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos4iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos4sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectd ( GLdouble x1 , GLdouble y1 , GLdouble x2 , GLdouble y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectd (
+ JNIEnv *env, jobject obj,
+ jdouble x1,
+ jdouble y1,
+ jdouble x2,
+ jdouble y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRectd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x1,
+ (GLdouble) y1,
+ (GLdouble) x2,
+ (GLdouble) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectf ( GLfloat x1 , GLfloat y1 , GLfloat x2 , GLfloat y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectf (
+ JNIEnv *env, jobject obj,
+ jfloat x1,
+ jfloat y1,
+ jfloat x2,
+ jfloat y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRectf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x1,
+ (GLfloat) y1,
+ (GLfloat) x2,
+ (GLfloat) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRecti ( GLint x1 , GLint y1 , GLint x2 , GLint y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRecti (
+ JNIEnv *env, jobject obj,
+ jint x1,
+ jint y1,
+ jint x2,
+ jint y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glRecti", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x1,
+ (GLint) y1,
+ (GLint) x2,
+ (GLint) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRects ( GLshort x1 , GLshort y1 , GLshort x2 , GLshort y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRects (
+ JNIEnv *env, jobject obj,
+ jshort x1,
+ jshort y1,
+ jshort x2,
+ jshort y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRects", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x1,
+ (GLshort) y1,
+ (GLshort) x2,
+ (GLshort) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectdv ( const GLdouble * v1 , const GLdouble * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectdv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v1,
+ jdoubleArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *, const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *, const GLdouble *))
+ getGLProcAddressHelper("glRectdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v1, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRectdv arg: v1");
+ }
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v2, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glRectdv arg: v2");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0,
+ (const GLdouble *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectfv ( const GLfloat * v1 , const GLfloat * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectfv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v1,
+ jfloatArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *, const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *, const GLfloat *))
+ getGLProcAddressHelper("glRectfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v1, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRectfv arg: v1");
+ }
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v2, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glRectfv arg: v2");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0,
+ (const GLfloat *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectiv ( const GLint * v1 , const GLint * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectiv (
+ JNIEnv *env, jobject obj,
+ jintArray v1,
+ jintArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *, const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *, const GLint *))
+ getGLProcAddressHelper("glRectiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v1, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRectiv arg: v1");
+ }
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v2, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glRectiv arg: v2");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0,
+ (const GLint *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectsv ( const GLshort * v1 , const GLshort * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectsv (
+ JNIEnv *env, jobject obj,
+ jshortArray v1,
+ jshortArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *, const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *, const GLshort *))
+ getGLProcAddressHelper("glRectsv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v1, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRectsv arg: v1");
+ }
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v2, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glRectsv arg: v2");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0,
+ (const GLshort *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointer ( GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3B (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3S (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3I (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3F (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3D (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3Z (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3J (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointerv ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3B (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbyteArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3S (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jshortArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3I (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3F (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3D (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3Z (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3J (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jlongArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElement ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glArrayElement (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glArrayElement", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArrays ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawArrays (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLsizei))
+ getGLProcAddressHelper("glDrawArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawElements ( GLenum mode , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3B (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jbyteArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3S (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jshortArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3I (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jintArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3F (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jfloatArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3D (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jdoubleArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jbooleanArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3J (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jlongArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInterleavedArrays ( GLenum format , GLsizei stride , const GLvoid * pointer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3B (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jbyteArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3S (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jshortArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3I (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jintArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3F (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jfloatArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3D (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jdoubleArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jbooleanArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3J (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jlongArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glShadeModel ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glShadeModel (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glShadeModel", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightf ( GLenum light , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightf (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glLightf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLighti ( GLenum light , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLighti (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glLighti", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightfv ( GLenum light , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightfv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glLightfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glLightfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightiv ( GLenum light , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightiv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glLightiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glLightiv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightfv ( GLenum light , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetLightfv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetLightfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetLightfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightiv ( GLenum light , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetLightiv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetLightiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetLightiv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModelf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glLightModelf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeli ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModeli (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glLightModeli", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModelfv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glLightModelfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glLightModelfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeliv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModeliv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glLightModeliv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glLightModeliv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialf ( GLenum face , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialf (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glMaterialf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMateriali ( GLenum face , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMateriali (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glMateriali", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialfv ( GLenum face , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialfv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMaterialfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glMaterialfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialiv ( GLenum face , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialiv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glMaterialiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glMaterialiv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialfv ( GLenum face , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMaterialfv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMaterialfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMaterialfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialiv ( GLenum face , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMaterialiv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMaterialiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMaterialiv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMaterial ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorMaterial (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glColorMaterial", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelZoom ( GLfloat xfactor , GLfloat yfactor ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelZoom (
+ JNIEnv *env, jobject obj,
+ jfloat xfactor,
+ jfloat yfactor)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPixelZoom", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) xfactor,
+ (GLfloat) yfactor
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStoref ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelStoref (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPixelStoref", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStorei ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelStorei (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glPixelStorei", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelTransferf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPixelTransferf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelTransferi (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glPixelTransferi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapfv ( GLenum map , GLint mapsize , const GLfloat * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapfv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLfloat *))
+ getGLProcAddressHelper("glPixelMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glPixelMapfv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLfloat *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapuiv ( GLenum map , GLint mapsize , const GLuint * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapuiv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLuint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLuint *))
+ getGLProcAddressHelper("glPixelMapuiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glPixelMapuiv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLuint *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapusv ( GLenum map , GLint mapsize , const GLushort * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapusv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLushort *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLushort *))
+ getGLProcAddressHelper("glPixelMapusv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glPixelMapusv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLushort *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapfv ( GLenum map , GLfloat * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapfv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetPixelMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPixelMapfv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLfloat *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapuiv ( GLenum map , GLuint * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapuiv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint *))
+ getGLProcAddressHelper("glGetPixelMapuiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPixelMapuiv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLuint *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapusv ( GLenum map , GLushort * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapusv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLushort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLushort *))
+ getGLProcAddressHelper("glGetPixelMapusv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPixelMapusv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLushort *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBitmap ( GLsizei width , GLsizei height , GLfloat xorig , GLfloat yorig , GLfloat xmove , GLfloat ymove , const GLubyte * bitmap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBitmap (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jfloat xorig,
+ jfloat yorig,
+ jfloat xmove,
+ jfloat ymove,
+ jbyteArray bitmap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *))
+ getGLProcAddressHelper("glBitmap", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(bitmap!=NULL)
+ {
+ ptr6 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, bitmap, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glBitmap arg: bitmap");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLfloat) xorig,
+ (GLfloat) yorig,
+ (GLfloat) xmove,
+ (GLfloat) ymove,
+ (const GLubyte *) ptr6
+ );
+
+ if(bitmap!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, bitmap, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawPixels ( GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyPixels (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint type)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum))
+ getGLProcAddressHelper("glCopyPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) type
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilFunc ( GLenum func , GLint ref , GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilFunc (
+ JNIEnv *env, jobject obj,
+ jint func,
+ jint ref,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLuint))
+ getGLProcAddressHelper("glStencilFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func,
+ (GLint) ref,
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilMask ( GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilMask (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glStencilMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilOp ( GLenum fail , GLenum zfail , GLenum zpass ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilOp (
+ JNIEnv *env, jobject obj,
+ jint fail,
+ jint zfail,
+ jint zpass)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum))
+ getGLProcAddressHelper("glStencilOp", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) fail,
+ (GLenum) zfail,
+ (GLenum) zpass
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearStencil ( GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearStencil (
+ JNIEnv *env, jobject obj,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glClearStencil", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGend ( GLenum coord , GLenum pname , GLdouble param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGend (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdouble param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble))
+ getGLProcAddressHelper("glTexGend", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLdouble) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenf ( GLenum coord , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGenf (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexGenf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeni ( GLenum coord , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGeni (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexGeni", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGendv ( GLenum coord , GLenum pname , const GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGendv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLdouble *))
+ getGLProcAddressHelper("glTexGendv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexGendv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLdouble *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenfv ( GLenum coord , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGenfv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexGenfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexGenfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeniv ( GLenum coord , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGeniv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexGeniv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexGeniv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGendv ( GLenum coord , GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGendv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetTexGendv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexGendv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLdouble *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGenfv ( GLenum coord , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGenfv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexGenfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexGenfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGeniv ( GLenum coord , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGeniv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexGeniv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexGeniv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexEnvf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvi ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvi (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexEnvi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexEnvfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexEnvfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnviv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnviv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexEnviv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexEnviv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnvfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexEnvfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexEnvfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexEnvfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnviv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexEnviv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexEnviv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexEnviv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameterf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexParameterf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteri ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameteri (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexParameteri", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameterfv ( GLenum target , GLint level , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexLevelParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexLevelParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetTexLevelParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) pname,
+ (GLfloat *) ptr3
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameteriv ( GLenum target , GLint level , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexLevelParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexLevelParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetTexLevelParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) pname,
+ (GLint *) ptr3
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage1D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jbyte *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jshort *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jint *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jfloat *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jboolean *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jlong *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage2D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jbyte *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jshort *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jint *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jfloat *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jboolean *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jlong *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexImage ( GLenum target , GLint level , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTextures ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glGenTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGenTextures arg: textures");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTextures ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *))
+ getGLProcAddressHelper("glDeleteTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glDeleteTextures arg: textures");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTexture ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBindTexture (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint))
+ getGLProcAddressHelper("glBindTexture", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLuint) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTextures ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPrioritizeTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jfloatArray priorities)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, const GLclampf *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *, const GLclampf *))
+ getGLProcAddressHelper("glPrioritizeTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glPrioritizeTextures arg: textures");
+ }
+ }
+ if(priorities!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, priorities, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glPrioritizeTextures arg: priorities");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (const GLclampf *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ if(priorities!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, priorities, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResident ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glAreTexturesResident (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jbooleanArray residences)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, GLboolean *) = NULL;
+ jboolean ret;
+
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLsizei, const GLuint *, GLboolean *))
+ getGLProcAddressHelper("glAreTexturesResident", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glAreTexturesResident arg: textures");
+ }
+ }
+ if(residences!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, residences, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glAreTexturesResident arg: residences");
+ }
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (GLboolean *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ if(residences!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, residences, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTexture ( GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsTexture (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsTexture", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) texture
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLsizei width , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jbyte *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jshort *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jint *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jfloat *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jboolean *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jlong *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage1D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLint border ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexImage1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint border)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint))
+ getGLProcAddressHelper("glCopyTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLint) border
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage2D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height , GLint border ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexImage2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint border)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint))
+ getGLProcAddressHelper("glCopyTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint stride , GLint order , const GLdouble * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap1d (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble u1,
+ jdouble u2,
+ jint stride,
+ jint order,
+ jdoubleArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *))
+ getGLProcAddressHelper("glMap1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, points, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glMap1d arg: points");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) stride,
+ (GLint) order,
+ (const GLdouble *) ptr5
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, points, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint stride , GLint order , const GLfloat * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap1f (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat u1,
+ jfloat u2,
+ jint stride,
+ jint order,
+ jfloatArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *))
+ getGLProcAddressHelper("glMap1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, points, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glMap1f arg: points");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) stride,
+ (GLint) order,
+ (const GLfloat *) ptr5
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, points, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint ustride , GLint uorder , GLdouble v1 , GLdouble v2 , GLint vstride , GLint vorder , const GLdouble * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap2d (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble u1,
+ jdouble u2,
+ jint ustride,
+ jint uorder,
+ jdouble v1,
+ jdouble v2,
+ jint vstride,
+ jint vorder,
+ jdoubleArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jdouble *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *))
+ getGLProcAddressHelper("glMap2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr9 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, points, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glMap2d arg: points");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) ustride,
+ (GLint) uorder,
+ (GLdouble) v1,
+ (GLdouble) v2,
+ (GLint) vstride,
+ (GLint) vorder,
+ (const GLdouble *) ptr9
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, points, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint ustride , GLint uorder , GLfloat v1 , GLfloat v2 , GLint vstride , GLint vorder , const GLfloat * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap2f (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat u1,
+ jfloat u2,
+ jint ustride,
+ jint uorder,
+ jfloat v1,
+ jfloat v2,
+ jint vstride,
+ jint vorder,
+ jfloatArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jfloat *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *))
+ getGLProcAddressHelper("glMap2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr9 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, points, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glMap2f arg: points");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) ustride,
+ (GLint) uorder,
+ (GLfloat) v1,
+ (GLfloat) v2,
+ (GLint) vstride,
+ (GLint) vorder,
+ (const GLfloat *) ptr9
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, points, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapdv ( GLenum target , GLenum query , GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapdv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetMapdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMapdv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLdouble *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapfv ( GLenum target , GLenum query , GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMapfv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLfloat *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapiv ( GLenum target , GLenum query , GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapiv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMapiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMapiv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLint *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1d ( GLdouble u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1d (
+ JNIEnv *env, jobject obj,
+ jdouble u)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glEvalCoord1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) u
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1f ( GLfloat u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1f (
+ JNIEnv *env, jobject obj,
+ jfloat u)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glEvalCoord1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) u
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glEvalCoord1dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, u, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glEvalCoord1dv arg: u");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glEvalCoord1fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, u, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glEvalCoord1fv arg: u");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2d ( GLdouble u , GLdouble v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2d (
+ JNIEnv *env, jobject obj,
+ jdouble u,
+ jdouble v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glEvalCoord2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) u,
+ (GLdouble) v
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2f ( GLfloat u , GLfloat v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2f (
+ JNIEnv *env, jobject obj,
+ jfloat u,
+ jfloat v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glEvalCoord2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) u,
+ (GLfloat) v
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glEvalCoord2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, u, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glEvalCoord2dv arg: u");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glEvalCoord2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, u, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glEvalCoord2fv arg: u");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1d ( GLint un , GLdouble u1 , GLdouble u2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid1d (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jdouble u1,
+ jdouble u2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMapGrid1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLdouble) u1,
+ (GLdouble) u2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1f ( GLint un , GLfloat u1 , GLfloat u2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid1f (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jfloat u1,
+ jfloat u2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMapGrid1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLfloat) u1,
+ (GLfloat) u2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2d ( GLint un , GLdouble u1 , GLdouble u2 , GLint vn , GLdouble v1 , GLdouble v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid2d (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jdouble u1,
+ jdouble u2,
+ jint vn,
+ jdouble v1,
+ jdouble v2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMapGrid2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) vn,
+ (GLdouble) v1,
+ (GLdouble) v2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2f ( GLint un , GLfloat u1 , GLfloat u2 , GLint vn , GLfloat v1 , GLfloat v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid2f (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jfloat u1,
+ jfloat u2,
+ jint vn,
+ jfloat v1,
+ jfloat v2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMapGrid2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) vn,
+ (GLfloat) v1,
+ (GLfloat) v2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint1 ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalPoint1 (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glEvalPoint1", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint2 ( GLint i , GLint j ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalPoint2 (
+ JNIEnv *env, jobject obj,
+ jint i,
+ jint j)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glEvalPoint2", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i,
+ (GLint) j
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh1 ( GLenum mode , GLint i1 , GLint i2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalMesh1 (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint i1,
+ jint i2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint))
+ getGLProcAddressHelper("glEvalMesh1", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) i1,
+ (GLint) i2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh2 ( GLenum mode , GLint i1 , GLint i2 , GLint j1 , GLint j2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalMesh2 (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint i1,
+ jint i2,
+ jint j1,
+ jint j2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glEvalMesh2", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) i1,
+ (GLint) i2,
+ (GLint) j1,
+ (GLint) j2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glFogf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogi (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glFogi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogfv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glFogfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glFogfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogiv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogiv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glFogiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glFogiv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFeedbackBuffer ( GLsizei size , GLenum type , GLfloat * buffer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFeedbackBuffer (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jfloatArray buffer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, GLfloat *))
+ getGLProcAddressHelper("glFeedbackBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(buffer!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, buffer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glFeedbackBuffer arg: buffer");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) size,
+ (GLenum) type,
+ (GLfloat *) ptr2
+ );
+
+ if(buffer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, buffer, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPassThrough ( GLfloat token ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPassThrough (
+ JNIEnv *env, jobject obj,
+ jfloat token)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glPassThrough", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) token
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSelectBuffer ( GLsizei size , GLuint * buffer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSelectBuffer (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jintArray buffer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glSelectBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(buffer!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, buffer, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glSelectBuffer arg: buffer");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) size,
+ (GLuint *) ptr1
+ );
+
+ if(buffer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, buffer, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInitNames ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInitNames (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glInitNames", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadName ( GLuint name ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadName (
+ JNIEnv *env, jobject obj,
+ jint name)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glLoadName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) name
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushName ( GLuint name ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushName (
+ JNIEnv *env, jobject obj,
+ jint name)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glPushName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) name
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopName ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopName (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawRangeElements ( GLenum mode , GLuint start , GLuint end , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jbyteArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jshortArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jintArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jfloatArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jdoubleArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jbooleanArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jlongArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jbyte *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jshort *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jint *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jfloat *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jdouble *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jboolean *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jlong *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jbyte *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jshort *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jint *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jfloat *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jdouble *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jboolean *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jlong *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTable ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTable ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glColorTableParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glColorTableParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glColorTableParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glColorTableParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorSubTable ( GLenum target , GLsizei start , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyColorSubTable (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorTable ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyColorTable (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTable ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetColorTableParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetColorTableParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetColorTableParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetColorTableParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquation ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendEquation (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBlendEquation", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendColor (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glBlendColor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHistogram ( GLenum target , GLsizei width , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glHistogram (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint width,
+ jint internalformat,
+ jboolean sink)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, GLboolean))
+ getGLProcAddressHelper("glHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) width,
+ (GLenum) internalformat,
+ (GLboolean) sink
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetHistogram ( GLenum target ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glResetHistogram (
+ JNIEnv *env, jobject obj,
+ jint target)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glResetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogram ( GLenum target , GLboolean reset , GLenum format , GLenum type , GLvoid * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jbyteArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jdoubleArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jbooleanArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jlongArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogramParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetHistogramParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetHistogramParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogramParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetHistogramParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetHistogramParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMinmax ( GLenum target , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMinmax (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jboolean sink)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLboolean))
+ getGLProcAddressHelper("glMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLboolean) sink
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetMinmax ( GLenum target ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glResetMinmax (
+ JNIEnv *env, jobject obj,
+ jint target)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glResetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmax ( GLenum target , GLboolean reset , GLenum format , GLenum types , GLvoid * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jbyteArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jdoubleArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jbooleanArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jlongArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmaxParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMinmaxParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMinmaxParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmaxParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMinmaxParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMinmaxParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter1D ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jint *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterf ( GLenum target , GLenum pname , GLfloat params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameterf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glConvolutionParameterf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) params
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glConvolutionParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glConvolutionParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteri ( GLenum target , GLenum pname , GLint params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameteri (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glConvolutionParameteri", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) params
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glConvolutionParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glConvolutionParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter1D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyConvolutionFilter1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter2D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyConvolutionFilter2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionFilter ( GLenum target , GLenum format , GLenum type , GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetConvolutionParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetConvolutionParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetConvolutionParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetConvolutionParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSeparableFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * row , const GLvoid * column ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3B_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray row,
+ jbyteArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jbyte *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3S_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray row,
+ jshortArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jshort *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3I_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray row,
+ jintArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jint *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jint *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jint *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3F_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray row,
+ jfloatArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jfloat *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray row,
+ jdoubleArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3Z_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray row,
+ jbooleanArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jboolean *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3J_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray row,
+ jlongArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jlong *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetSeparableFilter ( GLenum target , GLenum format , GLenum type , GLvoid * row , GLvoid * column , GLvoid * span ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3B_3B_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray row,
+ jbyteArray column,
+ jbyteArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3S_3S_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray row,
+ jshortArray column,
+ jshortArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3I_3I_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray row,
+ jintArray column,
+ jintArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3F_3F_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray row,
+ jfloatArray column,
+ jfloatArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3D_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray row,
+ jdoubleArray column,
+ jdoubleArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3Z_3Z_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray row,
+ jbooleanArray column,
+ jbooleanArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3J_3J_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray row,
+ jlongArray column,
+ jlongArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColorEXT ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendColorEXT (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glBlendColorEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffsetEXT ( GLfloat factor , GLfloat bias ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonOffsetEXT (
+ JNIEnv *env, jobject obj,
+ jfloat factor,
+ jfloat bias)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPolygonOffsetEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) factor,
+ (GLfloat) bias
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3DEXT ( GLenum target , GLint level , GLenum internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jbyte *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jshort *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jint *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jfloat *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jdouble *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jboolean *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jlong *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jbyte *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jshort *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jint *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jfloat *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jdouble *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jboolean *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jlong *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage3DEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTexturesEXT ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glGenTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGenTexturesEXT arg: textures");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTexturesEXT ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *))
+ getGLProcAddressHelper("glDeleteTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glDeleteTexturesEXT arg: textures");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTextureEXT ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBindTextureEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint))
+ getGLProcAddressHelper("glBindTextureEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLuint) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTexturesEXT ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPrioritizeTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jfloatArray priorities)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, const GLclampf *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *, const GLclampf *))
+ getGLProcAddressHelper("glPrioritizeTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glPrioritizeTexturesEXT arg: textures");
+ }
+ }
+ if(priorities!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, priorities, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glPrioritizeTexturesEXT arg: priorities");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (const GLclampf *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ if(priorities!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, priorities, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResidentEXT ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glAreTexturesResidentEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jbooleanArray residences)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, GLboolean *) = NULL;
+ jboolean ret;
+
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLsizei, const GLuint *, GLboolean *))
+ getGLProcAddressHelper("glAreTexturesResidentEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glAreTexturesResidentEXT arg: textures");
+ }
+ }
+ if(residences!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, residences, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glAreTexturesResidentEXT arg: residences");
+ }
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (GLboolean *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ if(residences!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, residences, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTextureEXT ( GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsTextureEXT (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsTextureEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) texture
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointerEXT ( GLsizei stride , GLsizei count , const GLboolean * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointerEXT (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, const GLboolean *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, const GLboolean *))
+ getGLProcAddressHelper("glEdgeFlagPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glEdgeFlagPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLboolean *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointervEXT ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3B (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbyteArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3S (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jshortArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3I (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3F (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3D (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3Z (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3J (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jlongArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElementEXT ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glArrayElementEXT (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glArrayElementEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArraysEXT ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawArraysEXT (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLsizei))
+ getGLProcAddressHelper("glDrawArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquationEXT ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendEquationEXT (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBlendEquationEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfEXT ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointParameterfEXT (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPointParameterfEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfvEXT ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointParameterfvEXT (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glPointParameterfvEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glPointParameterfvEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableEXT ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTableEXT ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableEXT ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfvEXT ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterfvEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetColorTableParameterfvEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetColorTableParameterfvEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterivEXT ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterivEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetColorTableParameterivEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetColorTableParameterivEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLockArraysEXT ( GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLockArraysEXT (
+ JNIEnv *env, jobject obj,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLsizei))
+ getGLProcAddressHelper("glLockArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glUnlockArraysEXT ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glUnlockArraysEXT (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glUnlockArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glActiveTextureARB (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glActiveTextureARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClientActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClientActiveTextureARB (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glClientActiveTextureARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dARB ( GLenum target , GLdouble s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord1dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord1dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord1dvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fARB ( GLenum target , GLfloat s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord1fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord1fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord1fvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1iARB ( GLenum target , GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glMultiTexCoord1iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord1ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord1ivARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1sARB ( GLenum target , GLshort s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord1sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord1svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord1svARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dARB ( GLenum target , GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord2dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord2dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord2dvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fARB ( GLenum target , GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord2fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord2fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord2fvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2iARB ( GLenum target , GLint s , GLint t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord2iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord2ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord2ivARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2sARB ( GLenum target , GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord2sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord2svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord2svARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t,
+ jdouble r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord3dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord3dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord3dvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t,
+ jfloat r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord3fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord3fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord3fvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3iARB ( GLenum target , GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t,
+ jint r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord3iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t,
+ (GLint) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord3ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord3ivARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3sARB ( GLenum target , GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t,
+ jshort r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord3sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord3svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord3svARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t,
+ jdouble r,
+ jdouble q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord4dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r,
+ (GLdouble) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord4dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord4dvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t,
+ jfloat r,
+ jfloat q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord4fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r,
+ (GLfloat) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord4fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord4fvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4iARB ( GLenum target , GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t,
+ jint r,
+ jint q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord4iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t,
+ (GLint) r,
+ (GLint) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord4ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord4ivARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4sARB ( GLenum target , GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t,
+ jshort r,
+ jshort q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord4sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r,
+ (GLshort) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord4svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord4svARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/C2J/gl-proto-dynauto-tst.c b/C2J/gl-proto-dynauto-tst.c
new file mode 100644
index 0000000..648c2d7
--- /dev/null
+++ b/C2J/gl-proto-dynauto-tst.c
@@ -0,0 +1,26371 @@
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: gl-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearIndex ( GLfloat c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearIndex (
+ JNIEnv *env, jobject obj,
+ jfloat c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glClearIndex", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearColor (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glClearColor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClear ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClear (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glClear", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexMask ( GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexMask (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIndexMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMask ( GLboolean red , GLboolean green , GLboolean blue , GLboolean alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorMask (
+ JNIEnv *env, jobject obj,
+ jboolean red,
+ jboolean green,
+ jboolean blue,
+ jboolean alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean, GLboolean, GLboolean, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean, GLboolean, GLboolean, GLboolean))
+ getGLProcAddressHelper("glColorMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) red,
+ (GLboolean) green,
+ (GLboolean) blue,
+ (GLboolean) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAlphaFunc ( GLenum func , GLclampf ref ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glAlphaFunc (
+ JNIEnv *env, jobject obj,
+ jint func,
+ jfloat ref)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLclampf))
+ getGLProcAddressHelper("glAlphaFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func,
+ (GLclampf) ref
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendFunc ( GLenum sfactor , GLenum dfactor ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendFunc (
+ JNIEnv *env, jobject obj,
+ jint sfactor,
+ jint dfactor)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glBlendFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) sfactor,
+ (GLenum) dfactor
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLogicOp ( GLenum opcode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLogicOp (
+ JNIEnv *env, jobject obj,
+ jint opcode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glLogicOp", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) opcode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCullFace ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCullFace (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glCullFace", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrontFace ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFrontFace (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glFrontFace", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointSize ( GLfloat size ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointSize (
+ JNIEnv *env, jobject obj,
+ jfloat size)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glPointSize", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) size
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineWidth ( GLfloat width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLineWidth (
+ JNIEnv *env, jobject obj,
+ jfloat width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glLineWidth", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineStipple ( GLint factor , GLushort pattern ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLineStipple (
+ JNIEnv *env, jobject obj,
+ jint factor,
+ jshort pattern)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLushort))
+ getGLProcAddressHelper("glLineStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) factor,
+ (GLushort) pattern
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonMode ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonMode (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glPolygonMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffset ( GLfloat factor , GLfloat units ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonOffset (
+ JNIEnv *env, jobject obj,
+ jfloat factor,
+ jfloat units)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPolygonOffset", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) factor,
+ (GLfloat) units
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonStipple ( const GLubyte * mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonStipple (
+ JNIEnv *env, jobject obj,
+ jbyteArray mask)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glPolygonStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(mask!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, mask, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glPolygonStipple arg: mask");
+ }
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(mask!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, mask, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPolygonStipple ( GLubyte * mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPolygonStipple (
+ JNIEnv *env, jobject obj,
+ jbyteArray mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte *))
+ getGLProcAddressHelper("glGetPolygonStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(mask!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, mask, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glGetPolygonStipple arg: mask");
+ }
+ }
+ __func_ptr__ (
+ (GLubyte *) ptr0
+ );
+
+ if(mask!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, mask, ptr0, (isCopiedArray0 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlag ( GLboolean flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlag (
+ JNIEnv *env, jobject obj,
+ jboolean flag)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean))
+ getGLProcAddressHelper("glEdgeFlag", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) flag
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagv ( const GLboolean * flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagv (
+ JNIEnv *env, jobject obj,
+ jbooleanArray flag)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLboolean *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jboolean *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLboolean *))
+ getGLProcAddressHelper("glEdgeFlagv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(flag!=NULL)
+ {
+ ptr0 = (*env)->GetBooleanArrayElements(env, flag, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glEdgeFlagv arg: flag");
+ }
+ }
+ __func_ptr__ (
+ (const GLboolean *) ptr0
+ );
+
+ if(flag!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, flag, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScissor ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScissor (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glScissor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClipPlane ( GLenum plane , const GLdouble * equation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClipPlane (
+ JNIEnv *env, jobject obj,
+ jint plane,
+ jdoubleArray equation)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glClipPlane", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(equation!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, equation, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glClipPlane arg: equation");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) plane,
+ (const GLdouble *) ptr1
+ );
+
+ if(equation!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, equation, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetClipPlane ( GLenum plane , GLdouble * equation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetClipPlane (
+ JNIEnv *env, jobject obj,
+ jint plane,
+ jdoubleArray equation)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetClipPlane", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(equation!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, equation, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetClipPlane arg: equation");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) plane,
+ (GLdouble *) ptr1
+ );
+
+ if(equation!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, equation, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawBuffer (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDrawBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadBuffer (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glReadBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnable ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnable (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glEnable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisable ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDisable (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDisable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsEnabled ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsEnabled (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLenum) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glIsEnabled", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLenum) cap
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnableClientState (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glEnableClientState", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDisableClientState (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDisableClientState", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetBooleanv ( GLenum pname , GLboolean * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetBooleanv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean *))
+ getGLProcAddressHelper("glGetBooleanv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetBooleanv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLboolean *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetDoublev ( GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetDoublev (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetDoublev", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetDoublev arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLdouble *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetFloatv ( GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetFloatv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetFloatv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetFloatv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetIntegerv ( GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetIntegerv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint *))
+ getGLProcAddressHelper("glGetIntegerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetIntegerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushAttrib (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glPushAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopAttrib ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopAttrib (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushClientAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushClientAttrib (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glPushClientAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopClientAttrib ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopClientAttrib (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopClientAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint glRenderMode ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glRenderMode (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static jint (CALLBACK *__func_ptr__)(GLenum) = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glRenderMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ (GLenum) mode
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLenum glGetError ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetError (
+ JNIEnv *env, jobject obj)
+ {
+ static jint (CALLBACK *__func_ptr__)() = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)())
+ getGLProcAddressHelper("glGetError", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFinish ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFinish (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glFinish", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFlush ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFlush (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glFlush", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHint ( GLenum target , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glHint (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glHint", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearDepth ( GLclampd depth ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearDepth (
+ JNIEnv *env, jobject obj,
+ jdouble depth)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampd) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampd))
+ getGLProcAddressHelper("glClearDepth", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampd) depth
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthFunc ( GLenum func ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthFunc (
+ JNIEnv *env, jobject obj,
+ jint func)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDepthFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthMask ( GLboolean flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthMask (
+ JNIEnv *env, jobject obj,
+ jboolean flag)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean))
+ getGLProcAddressHelper("glDepthMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) flag
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthRange ( GLclampd near_val , GLclampd far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthRange (
+ JNIEnv *env, jobject obj,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampd, GLclampd) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampd, GLclampd))
+ getGLProcAddressHelper("glDepthRange", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampd) near_val,
+ (GLclampd) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearAccum ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearAccum (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glClearAccum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue,
+ (GLfloat) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAccum ( GLenum op , GLfloat value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glAccum (
+ JNIEnv *env, jobject obj,
+ jint op,
+ jfloat value)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glAccum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) op,
+ (GLfloat) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMatrixMode ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMatrixMode (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glMatrixMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glOrtho ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glOrtho (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glOrtho", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top,
+ (GLdouble) near_val,
+ (GLdouble) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrustum ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFrustum (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glFrustum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top,
+ (GLdouble) near_val,
+ (GLdouble) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glViewport ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glViewport (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glViewport", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushMatrix ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushMatrix (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPushMatrix", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopMatrix ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopMatrix (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopMatrix", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadIdentity ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadIdentity (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glLoadIdentity", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadMatrixd (
+ JNIEnv *env, jobject obj,
+ jdoubleArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glLoadMatrixd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, m, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glLoadMatrixd arg: m");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadMatrixf (
+ JNIEnv *env, jobject obj,
+ jfloatArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glLoadMatrixf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, m, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glLoadMatrixf arg: m");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultMatrixd (
+ JNIEnv *env, jobject obj,
+ jdoubleArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glMultMatrixd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, m, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glMultMatrixd arg: m");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultMatrixf (
+ JNIEnv *env, jobject obj,
+ jfloatArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glMultMatrixf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, m, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glMultMatrixf arg: m");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotated ( GLdouble angle , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRotated (
+ JNIEnv *env, jobject obj,
+ jdouble angle,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRotated", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) angle,
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotatef ( GLfloat angle , GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRotatef (
+ JNIEnv *env, jobject obj,
+ jfloat angle,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRotatef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) angle,
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScaled ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScaled (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glScaled", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScalef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScalef (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glScalef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslated ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTranslated (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTranslated", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslatef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTranslatef (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTranslatef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsList ( GLuint list ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsList (
+ JNIEnv *env, jobject obj,
+ jint list)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) list
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteLists ( GLuint list , GLsizei range ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteLists (
+ JNIEnv *env, jobject obj,
+ jint list,
+ jint range)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLsizei))
+ getGLProcAddressHelper("glDeleteLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list,
+ (GLsizei) range
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLuint glGenLists ( GLsizei range ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenLists (
+ JNIEnv *env, jobject obj,
+ jint range)
+ {
+ static jint (CALLBACK *__func_ptr__)(GLsizei) = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)(GLsizei))
+ getGLProcAddressHelper("glGenLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ (GLsizei) range
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNewList ( GLuint list , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNewList (
+ JNIEnv *env, jobject obj,
+ jint list,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLenum))
+ getGLProcAddressHelper("glNewList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEndList ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEndList (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glEndList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallList ( GLuint list ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallList (
+ JNIEnv *env, jobject obj,
+ jint list)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glCallList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallLists ( GLsizei n , GLenum type , const GLvoid * lists ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3B (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jbyteArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3S (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jshortArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3I (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jintArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3F (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jfloatArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3D (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jdoubleArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jbooleanArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3J (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jlongArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glListBase ( GLuint base ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glListBase (
+ JNIEnv *env, jobject obj,
+ jint base)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glListBase", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) base
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBegin ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBegin (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBegin", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnd ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnd (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glEnd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glVertex2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glVertex2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glVertex3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glVertex3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z,
+ jdouble w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z,
+ (GLdouble) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z,
+ jfloat w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z,
+ (GLfloat) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z,
+ jint w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glVertex4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z,
+ (GLint) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z,
+ jshort w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glVertex4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z,
+ (GLshort) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex2dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex2fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex2iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex2sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex3dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex3fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex3iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex3sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex4dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex4fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex4iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex4sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3b ( GLbyte nx , GLbyte ny , GLbyte nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3b (
+ JNIEnv *env, jobject obj,
+ jbyte nx,
+ jbyte ny,
+ jbyte nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glNormal3b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) nx,
+ (GLbyte) ny,
+ (GLbyte) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3d ( GLdouble nx , GLdouble ny , GLdouble nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3d (
+ JNIEnv *env, jobject obj,
+ jdouble nx,
+ jdouble ny,
+ jdouble nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glNormal3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) nx,
+ (GLdouble) ny,
+ (GLdouble) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3f ( GLfloat nx , GLfloat ny , GLfloat nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3f (
+ JNIEnv *env, jobject obj,
+ jfloat nx,
+ jfloat ny,
+ jfloat nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glNormal3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) nx,
+ (GLfloat) ny,
+ (GLfloat) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3i ( GLint nx , GLint ny , GLint nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3i (
+ JNIEnv *env, jobject obj,
+ jint nx,
+ jint ny,
+ jint nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glNormal3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) nx,
+ (GLint) ny,
+ (GLint) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3s ( GLshort nx , GLshort ny , GLshort nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3s (
+ JNIEnv *env, jobject obj,
+ jshort nx,
+ jshort ny,
+ jshort nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glNormal3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) nx,
+ (GLshort) ny,
+ (GLshort) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glNormal3bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glNormal3bv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glNormal3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glNormal3dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glNormal3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glNormal3fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glNormal3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glNormal3iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glNormal3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glNormal3sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexd ( GLdouble c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexd (
+ JNIEnv *env, jobject obj,
+ jdouble c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glIndexd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexf ( GLfloat c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexf (
+ JNIEnv *env, jobject obj,
+ jfloat c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glIndexf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexi ( GLint c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexi (
+ JNIEnv *env, jobject obj,
+ jint c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glIndexi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexs ( GLshort c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexs (
+ JNIEnv *env, jobject obj,
+ jshort c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort))
+ getGLProcAddressHelper("glIndexs", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexub ( GLubyte c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexub (
+ JNIEnv *env, jobject obj,
+ jbyte c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte))
+ getGLProcAddressHelper("glIndexub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexdv ( const GLdouble * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexdv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glIndexdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, c, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glIndexdv arg: c");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexfv ( const GLfloat * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexfv (
+ JNIEnv *env, jobject obj,
+ jfloatArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glIndexfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, c, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glIndexfv arg: c");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexiv ( const GLint * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexiv (
+ JNIEnv *env, jobject obj,
+ jintArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glIndexiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, c, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glIndexiv arg: c");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexsv ( const GLshort * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexsv (
+ JNIEnv *env, jobject obj,
+ jshortArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glIndexsv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, c, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glIndexsv arg: c");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexubv ( const GLubyte * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glIndexubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, c, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glIndexubv arg: c");
+ }
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3b ( GLbyte red , GLbyte green , GLbyte blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3b (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glColor3b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) red,
+ (GLbyte) green,
+ (GLbyte) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3d ( GLdouble red , GLdouble green , GLdouble blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3d (
+ JNIEnv *env, jobject obj,
+ jdouble red,
+ jdouble green,
+ jdouble blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glColor3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) red,
+ (GLdouble) green,
+ (GLdouble) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3f ( GLfloat red , GLfloat green , GLfloat blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3f (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glColor3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3i ( GLint red , GLint green , GLint blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3i (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glColor3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) red,
+ (GLint) green,
+ (GLint) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3s ( GLshort red , GLshort green , GLshort blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3s (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glColor3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) red,
+ (GLshort) green,
+ (GLshort) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ub ( GLubyte red , GLubyte green , GLubyte blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ub (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte, GLubyte, GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte, GLubyte, GLubyte))
+ getGLProcAddressHelper("glColor3ub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) red,
+ (GLubyte) green,
+ (GLubyte) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ui ( GLuint red , GLuint green , GLuint blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ui (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLuint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLuint, GLuint))
+ getGLProcAddressHelper("glColor3ui", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) red,
+ (GLuint) green,
+ (GLuint) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3us ( GLushort red , GLushort green , GLushort blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3us (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLushort, GLushort, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLushort, GLushort, GLushort))
+ getGLProcAddressHelper("glColor3us", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLushort) red,
+ (GLushort) green,
+ (GLushort) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4b ( GLbyte red , GLbyte green , GLbyte blue , GLbyte alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4b (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue,
+ jbyte alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glColor4b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) red,
+ (GLbyte) green,
+ (GLbyte) blue,
+ (GLbyte) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4d ( GLdouble red , GLdouble green , GLdouble blue , GLdouble alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4d (
+ JNIEnv *env, jobject obj,
+ jdouble red,
+ jdouble green,
+ jdouble blue,
+ jdouble alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glColor4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) red,
+ (GLdouble) green,
+ (GLdouble) blue,
+ (GLdouble) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4f ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4f (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glColor4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue,
+ (GLfloat) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4i ( GLint red , GLint green , GLint blue , GLint alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4i (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue,
+ jint alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glColor4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) red,
+ (GLint) green,
+ (GLint) blue,
+ (GLint) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4s ( GLshort red , GLshort green , GLshort blue , GLshort alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4s (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue,
+ jshort alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glColor4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) red,
+ (GLshort) green,
+ (GLshort) blue,
+ (GLshort) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ub ( GLubyte red , GLubyte green , GLubyte blue , GLubyte alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ub (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue,
+ jbyte alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte, GLubyte, GLubyte, GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte, GLubyte, GLubyte, GLubyte))
+ getGLProcAddressHelper("glColor4ub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) red,
+ (GLubyte) green,
+ (GLubyte) blue,
+ (GLubyte) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ui ( GLuint red , GLuint green , GLuint blue , GLuint alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ui (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue,
+ jint alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLuint, GLuint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLuint, GLuint, GLuint))
+ getGLProcAddressHelper("glColor4ui", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) red,
+ (GLuint) green,
+ (GLuint) blue,
+ (GLuint) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4us ( GLushort red , GLushort green , GLushort blue , GLushort alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4us (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue,
+ jshort alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLushort, GLushort, GLushort, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLushort, GLushort, GLushort, GLushort))
+ getGLProcAddressHelper("glColor4us", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLushort) red,
+ (GLushort) green,
+ (GLushort) blue,
+ (GLushort) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glColor3bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3bv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glColor3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glColor3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glColor3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glColor3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glColor3ubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3ubv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3uiv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLuint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLuint *))
+ getGLProcAddressHelper("glColor3uiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3uiv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLuint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3usv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLushort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLushort *))
+ getGLProcAddressHelper("glColor3usv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3usv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLushort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glColor4bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4bv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glColor4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glColor4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glColor4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glColor4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glColor4ubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4ubv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4uiv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLuint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLuint *))
+ getGLProcAddressHelper("glColor4uiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4uiv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLuint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4usv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLushort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLushort *))
+ getGLProcAddressHelper("glColor4usv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4usv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLushort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1d ( GLdouble s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1d (
+ JNIEnv *env, jobject obj,
+ jdouble s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glTexCoord1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1f ( GLfloat s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1f (
+ JNIEnv *env, jobject obj,
+ jfloat s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glTexCoord1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1i ( GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1i (
+ JNIEnv *env, jobject obj,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glTexCoord1i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1s ( GLshort s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1s (
+ JNIEnv *env, jobject obj,
+ jshort s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort))
+ getGLProcAddressHelper("glTexCoord1s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2d ( GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2f ( GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2i ( GLint s , GLint t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glTexCoord2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2s ( GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3d ( GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t,
+ jdouble r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3f ( GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t,
+ jfloat r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3i ( GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t,
+ jint r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glTexCoord3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t,
+ (GLint) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3s ( GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t,
+ jshort r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4d ( GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t,
+ jdouble r,
+ jdouble q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r,
+ (GLdouble) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4f ( GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t,
+ jfloat r,
+ jfloat q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r,
+ (GLfloat) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4i ( GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t,
+ jint r,
+ jint q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glTexCoord4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t,
+ (GLint) r,
+ (GLint) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4s ( GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t,
+ jshort r,
+ jshort q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r,
+ (GLshort) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord1dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord1dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord1fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord1fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord1iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord1iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord1sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord1sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord2dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord2fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord2iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord2sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord3dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord3fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord3iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord3sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord4dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord4fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord4iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord4sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glRasterPos2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glRasterPos3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z,
+ jdouble w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z,
+ (GLdouble) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z,
+ jfloat w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z,
+ (GLfloat) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z,
+ jint w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glRasterPos4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z,
+ (GLint) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z,
+ jshort w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z,
+ (GLshort) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos2dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos2fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos2iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos2sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos3dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos3fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos3iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos3sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos4dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos4fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos4iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos4sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectd ( GLdouble x1 , GLdouble y1 , GLdouble x2 , GLdouble y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectd (
+ JNIEnv *env, jobject obj,
+ jdouble x1,
+ jdouble y1,
+ jdouble x2,
+ jdouble y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRectd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x1,
+ (GLdouble) y1,
+ (GLdouble) x2,
+ (GLdouble) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectf ( GLfloat x1 , GLfloat y1 , GLfloat x2 , GLfloat y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectf (
+ JNIEnv *env, jobject obj,
+ jfloat x1,
+ jfloat y1,
+ jfloat x2,
+ jfloat y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRectf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x1,
+ (GLfloat) y1,
+ (GLfloat) x2,
+ (GLfloat) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRecti ( GLint x1 , GLint y1 , GLint x2 , GLint y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRecti (
+ JNIEnv *env, jobject obj,
+ jint x1,
+ jint y1,
+ jint x2,
+ jint y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glRecti", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x1,
+ (GLint) y1,
+ (GLint) x2,
+ (GLint) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRects ( GLshort x1 , GLshort y1 , GLshort x2 , GLshort y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRects (
+ JNIEnv *env, jobject obj,
+ jshort x1,
+ jshort y1,
+ jshort x2,
+ jshort y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRects", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x1,
+ (GLshort) y1,
+ (GLshort) x2,
+ (GLshort) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectdv ( const GLdouble * v1 , const GLdouble * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectdv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v1,
+ jdoubleArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *, const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *, const GLdouble *))
+ getGLProcAddressHelper("glRectdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v1, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRectdv arg: v1");
+ }
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v2, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glRectdv arg: v2");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0,
+ (const GLdouble *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectfv ( const GLfloat * v1 , const GLfloat * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectfv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v1,
+ jfloatArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *, const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *, const GLfloat *))
+ getGLProcAddressHelper("glRectfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v1, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRectfv arg: v1");
+ }
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v2, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glRectfv arg: v2");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0,
+ (const GLfloat *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectiv ( const GLint * v1 , const GLint * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectiv (
+ JNIEnv *env, jobject obj,
+ jintArray v1,
+ jintArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *, const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *, const GLint *))
+ getGLProcAddressHelper("glRectiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v1, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRectiv arg: v1");
+ }
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v2, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glRectiv arg: v2");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0,
+ (const GLint *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectsv ( const GLshort * v1 , const GLshort * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectsv (
+ JNIEnv *env, jobject obj,
+ jshortArray v1,
+ jshortArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *, const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *, const GLshort *))
+ getGLProcAddressHelper("glRectsv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v1, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRectsv arg: v1");
+ }
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v2, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glRectsv arg: v2");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0,
+ (const GLshort *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointer ( GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3B (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetByteArrayElements(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3S (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3I (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3F (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3D (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3Z (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3J (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetLongArrayElements(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointerv ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3B (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbyteArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetByteArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3S (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jshortArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3I (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3F (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3D (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3Z (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3J (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jlongArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetLongArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElement ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glArrayElement (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glArrayElement", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArrays ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawArrays (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLsizei))
+ getGLProcAddressHelper("glDrawArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawElements ( GLenum mode , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3B (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jbyteArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3S (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jshortArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3I (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jintArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3F (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jfloatArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3D (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jdoubleArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jbooleanArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3J (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jlongArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInterleavedArrays ( GLenum format , GLsizei stride , const GLvoid * pointer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3B (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jbyteArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3S (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jshortArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3I (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jintArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3F (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jfloatArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3D (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jdoubleArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jbooleanArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3J (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jlongArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glShadeModel ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glShadeModel (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glShadeModel", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightf ( GLenum light , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightf (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glLightf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLighti ( GLenum light , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLighti (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glLighti", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightfv ( GLenum light , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightfv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glLightfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glLightfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightiv ( GLenum light , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightiv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glLightiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glLightiv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightfv ( GLenum light , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetLightfv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetLightfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetLightfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightiv ( GLenum light , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetLightiv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetLightiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetLightiv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModelf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glLightModelf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeli ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModeli (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glLightModeli", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModelfv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glLightModelfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glLightModelfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeliv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModeliv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glLightModeliv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glLightModeliv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialf ( GLenum face , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialf (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glMaterialf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMateriali ( GLenum face , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMateriali (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glMateriali", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialfv ( GLenum face , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialfv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMaterialfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glMaterialfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialiv ( GLenum face , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialiv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glMaterialiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glMaterialiv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialfv ( GLenum face , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMaterialfv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMaterialfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMaterialfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialiv ( GLenum face , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMaterialiv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMaterialiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMaterialiv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMaterial ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorMaterial (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glColorMaterial", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelZoom ( GLfloat xfactor , GLfloat yfactor ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelZoom (
+ JNIEnv *env, jobject obj,
+ jfloat xfactor,
+ jfloat yfactor)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPixelZoom", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) xfactor,
+ (GLfloat) yfactor
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStoref ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelStoref (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPixelStoref", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStorei ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelStorei (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glPixelStorei", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelTransferf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPixelTransferf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelTransferi (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glPixelTransferi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapfv ( GLenum map , GLint mapsize , const GLfloat * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapfv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLfloat *))
+ getGLProcAddressHelper("glPixelMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, values, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glPixelMapfv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLfloat *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapuiv ( GLenum map , GLint mapsize , const GLuint * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapuiv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLuint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLuint *))
+ getGLProcAddressHelper("glPixelMapuiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, values, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glPixelMapuiv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLuint *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapusv ( GLenum map , GLint mapsize , const GLushort * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapusv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLushort *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLushort *))
+ getGLProcAddressHelper("glPixelMapusv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, values, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glPixelMapusv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLushort *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapfv ( GLenum map , GLfloat * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapfv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetPixelMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, values, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPixelMapfv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLfloat *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapuiv ( GLenum map , GLuint * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapuiv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint *))
+ getGLProcAddressHelper("glGetPixelMapuiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, values, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPixelMapuiv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLuint *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapusv ( GLenum map , GLushort * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapusv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLushort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLushort *))
+ getGLProcAddressHelper("glGetPixelMapusv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, values, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPixelMapusv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLushort *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBitmap ( GLsizei width , GLsizei height , GLfloat xorig , GLfloat yorig , GLfloat xmove , GLfloat ymove , const GLubyte * bitmap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBitmap (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jfloat xorig,
+ jfloat yorig,
+ jfloat xmove,
+ jfloat ymove,
+ jbyteArray bitmap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *))
+ getGLProcAddressHelper("glBitmap", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(bitmap!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, bitmap, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glBitmap arg: bitmap");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLfloat) xorig,
+ (GLfloat) yorig,
+ (GLfloat) xmove,
+ (GLfloat) ymove,
+ (const GLubyte *) ptr6
+ );
+
+ if(bitmap!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, bitmap, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawPixels ( GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyPixels (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint type)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum))
+ getGLProcAddressHelper("glCopyPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) type
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilFunc ( GLenum func , GLint ref , GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilFunc (
+ JNIEnv *env, jobject obj,
+ jint func,
+ jint ref,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLuint))
+ getGLProcAddressHelper("glStencilFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func,
+ (GLint) ref,
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilMask ( GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilMask (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glStencilMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilOp ( GLenum fail , GLenum zfail , GLenum zpass ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilOp (
+ JNIEnv *env, jobject obj,
+ jint fail,
+ jint zfail,
+ jint zpass)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum))
+ getGLProcAddressHelper("glStencilOp", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) fail,
+ (GLenum) zfail,
+ (GLenum) zpass
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearStencil ( GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearStencil (
+ JNIEnv *env, jobject obj,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glClearStencil", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGend ( GLenum coord , GLenum pname , GLdouble param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGend (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdouble param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble))
+ getGLProcAddressHelper("glTexGend", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLdouble) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenf ( GLenum coord , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGenf (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexGenf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeni ( GLenum coord , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGeni (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexGeni", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGendv ( GLenum coord , GLenum pname , const GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGendv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLdouble *))
+ getGLProcAddressHelper("glTexGendv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexGendv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLdouble *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenfv ( GLenum coord , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGenfv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexGenfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexGenfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeniv ( GLenum coord , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGeniv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexGeniv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexGeniv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGendv ( GLenum coord , GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGendv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetTexGendv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexGendv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLdouble *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGenfv ( GLenum coord , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGenfv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexGenfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexGenfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGeniv ( GLenum coord , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGeniv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexGeniv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexGeniv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexEnvf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvi ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvi (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexEnvi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexEnvfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexEnvfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnviv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnviv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexEnviv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexEnviv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnvfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexEnvfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexEnvfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexEnvfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnviv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexEnviv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexEnviv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexEnviv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameterf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexParameterf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteri ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameteri (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexParameteri", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameterfv ( GLenum target , GLint level , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexLevelParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexLevelParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetTexLevelParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) pname,
+ (GLfloat *) ptr3
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameteriv ( GLenum target , GLint level , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexLevelParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexLevelParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, params, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetTexLevelParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) pname,
+ (GLint *) ptr3
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage1D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jbyte *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jshort *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jint *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jfloat *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jboolean *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jlong *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage2D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jbyte *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jshort *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jint *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jfloat *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jboolean *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jlong *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexImage ( GLenum target , GLint level , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTextures ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glGenTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGenTextures arg: textures");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTextures ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *))
+ getGLProcAddressHelper("glDeleteTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glDeleteTextures arg: textures");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTexture ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBindTexture (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint))
+ getGLProcAddressHelper("glBindTexture", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLuint) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTextures ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPrioritizeTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jfloatArray priorities)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, const GLclampf *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *, const GLclampf *))
+ getGLProcAddressHelper("glPrioritizeTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glPrioritizeTextures arg: textures");
+ }
+ }
+ if(priorities!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, priorities, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glPrioritizeTextures arg: priorities");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (const GLclampf *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ if(priorities!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, priorities, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResident ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glAreTexturesResident (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jbooleanArray residences)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, GLboolean *) = NULL;
+ jboolean ret;
+
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLsizei, const GLuint *, GLboolean *))
+ getGLProcAddressHelper("glAreTexturesResident", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glAreTexturesResident arg: textures");
+ }
+ }
+ if(residences!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, residences, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glAreTexturesResident arg: residences");
+ }
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (GLboolean *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ if(residences!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, residences, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTexture ( GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsTexture (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsTexture", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) texture
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLsizei width , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jbyte *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jshort *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jint *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jfloat *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jboolean *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jlong *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage1D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLint border ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexImage1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint border)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint))
+ getGLProcAddressHelper("glCopyTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLint) border
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage2D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height , GLint border ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexImage2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint border)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint))
+ getGLProcAddressHelper("glCopyTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint stride , GLint order , const GLdouble * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap1d (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble u1,
+ jdouble u2,
+ jint stride,
+ jint order,
+ jdoubleArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *))
+ getGLProcAddressHelper("glMap1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, points, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glMap1d arg: points");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) stride,
+ (GLint) order,
+ (const GLdouble *) ptr5
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, points, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint stride , GLint order , const GLfloat * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap1f (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat u1,
+ jfloat u2,
+ jint stride,
+ jint order,
+ jfloatArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *))
+ getGLProcAddressHelper("glMap1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, points, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glMap1f arg: points");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) stride,
+ (GLint) order,
+ (const GLfloat *) ptr5
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, points, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint ustride , GLint uorder , GLdouble v1 , GLdouble v2 , GLint vstride , GLint vorder , const GLdouble * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap2d (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble u1,
+ jdouble u2,
+ jint ustride,
+ jint uorder,
+ jdouble v1,
+ jdouble v2,
+ jint vstride,
+ jint vorder,
+ jdoubleArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jdouble *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *))
+ getGLProcAddressHelper("glMap2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr9 = (*env)->GetDoubleArrayElements(env, points, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glMap2d arg: points");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) ustride,
+ (GLint) uorder,
+ (GLdouble) v1,
+ (GLdouble) v2,
+ (GLint) vstride,
+ (GLint) vorder,
+ (const GLdouble *) ptr9
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, points, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint ustride , GLint uorder , GLfloat v1 , GLfloat v2 , GLint vstride , GLint vorder , const GLfloat * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap2f (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat u1,
+ jfloat u2,
+ jint ustride,
+ jint uorder,
+ jfloat v1,
+ jfloat v2,
+ jint vstride,
+ jint vorder,
+ jfloatArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jfloat *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *))
+ getGLProcAddressHelper("glMap2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr9 = (*env)->GetFloatArrayElements(env, points, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glMap2f arg: points");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) ustride,
+ (GLint) uorder,
+ (GLfloat) v1,
+ (GLfloat) v2,
+ (GLint) vstride,
+ (GLint) vorder,
+ (const GLfloat *) ptr9
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, points, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapdv ( GLenum target , GLenum query , GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapdv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetMapdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMapdv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLdouble *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapfv ( GLenum target , GLenum query , GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMapfv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLfloat *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapiv ( GLenum target , GLenum query , GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapiv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMapiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, v, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMapiv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLint *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1d ( GLdouble u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1d (
+ JNIEnv *env, jobject obj,
+ jdouble u)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glEvalCoord1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) u
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1f ( GLfloat u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1f (
+ JNIEnv *env, jobject obj,
+ jfloat u)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glEvalCoord1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) u
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glEvalCoord1dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, u, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glEvalCoord1dv arg: u");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glEvalCoord1fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, u, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glEvalCoord1fv arg: u");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2d ( GLdouble u , GLdouble v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2d (
+ JNIEnv *env, jobject obj,
+ jdouble u,
+ jdouble v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glEvalCoord2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) u,
+ (GLdouble) v
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2f ( GLfloat u , GLfloat v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2f (
+ JNIEnv *env, jobject obj,
+ jfloat u,
+ jfloat v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glEvalCoord2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) u,
+ (GLfloat) v
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glEvalCoord2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, u, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glEvalCoord2dv arg: u");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glEvalCoord2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, u, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glEvalCoord2fv arg: u");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1d ( GLint un , GLdouble u1 , GLdouble u2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid1d (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jdouble u1,
+ jdouble u2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMapGrid1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLdouble) u1,
+ (GLdouble) u2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1f ( GLint un , GLfloat u1 , GLfloat u2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid1f (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jfloat u1,
+ jfloat u2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMapGrid1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLfloat) u1,
+ (GLfloat) u2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2d ( GLint un , GLdouble u1 , GLdouble u2 , GLint vn , GLdouble v1 , GLdouble v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid2d (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jdouble u1,
+ jdouble u2,
+ jint vn,
+ jdouble v1,
+ jdouble v2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMapGrid2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) vn,
+ (GLdouble) v1,
+ (GLdouble) v2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2f ( GLint un , GLfloat u1 , GLfloat u2 , GLint vn , GLfloat v1 , GLfloat v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid2f (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jfloat u1,
+ jfloat u2,
+ jint vn,
+ jfloat v1,
+ jfloat v2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMapGrid2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) vn,
+ (GLfloat) v1,
+ (GLfloat) v2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint1 ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalPoint1 (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glEvalPoint1", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint2 ( GLint i , GLint j ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalPoint2 (
+ JNIEnv *env, jobject obj,
+ jint i,
+ jint j)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glEvalPoint2", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i,
+ (GLint) j
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh1 ( GLenum mode , GLint i1 , GLint i2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalMesh1 (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint i1,
+ jint i2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint))
+ getGLProcAddressHelper("glEvalMesh1", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) i1,
+ (GLint) i2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh2 ( GLenum mode , GLint i1 , GLint i2 , GLint j1 , GLint j2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalMesh2 (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint i1,
+ jint i2,
+ jint j1,
+ jint j2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glEvalMesh2", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) i1,
+ (GLint) i2,
+ (GLint) j1,
+ (GLint) j2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glFogf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogi (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glFogi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogfv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glFogfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glFogfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogiv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogiv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glFogiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glFogiv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFeedbackBuffer ( GLsizei size , GLenum type , GLfloat * buffer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFeedbackBuffer (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jfloatArray buffer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, GLfloat *))
+ getGLProcAddressHelper("glFeedbackBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(buffer!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, buffer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glFeedbackBuffer arg: buffer");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) size,
+ (GLenum) type,
+ (GLfloat *) ptr2
+ );
+
+ if(buffer!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, buffer, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPassThrough ( GLfloat token ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPassThrough (
+ JNIEnv *env, jobject obj,
+ jfloat token)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glPassThrough", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) token
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSelectBuffer ( GLsizei size , GLuint * buffer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSelectBuffer (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jintArray buffer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glSelectBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(buffer!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, buffer, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glSelectBuffer arg: buffer");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) size,
+ (GLuint *) ptr1
+ );
+
+ if(buffer!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, buffer, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInitNames ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInitNames (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glInitNames", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadName ( GLuint name ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadName (
+ JNIEnv *env, jobject obj,
+ jint name)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glLoadName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) name
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushName ( GLuint name ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushName (
+ JNIEnv *env, jobject obj,
+ jint name)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glPushName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) name
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopName ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopName (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawRangeElements ( GLenum mode , GLuint start , GLuint end , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jbyteArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jshortArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jintArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jfloatArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jdoubleArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jbooleanArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jlongArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jbyte *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jshort *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jint *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jfloat *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jdouble *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jboolean *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jlong *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jbyte *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jshort *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jint *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jfloat *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jdouble *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jboolean *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jlong *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTable ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTable ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glColorTableParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glColorTableParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glColorTableParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glColorTableParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorSubTable ( GLenum target , GLsizei start , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyColorSubTable (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorTable ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyColorTable (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTable ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetColorTableParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetColorTableParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetColorTableParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetColorTableParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquation ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendEquation (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBlendEquation", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendColor (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glBlendColor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHistogram ( GLenum target , GLsizei width , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glHistogram (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint width,
+ jint internalformat,
+ jboolean sink)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, GLboolean))
+ getGLProcAddressHelper("glHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) width,
+ (GLenum) internalformat,
+ (GLboolean) sink
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetHistogram ( GLenum target ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glResetHistogram (
+ JNIEnv *env, jobject obj,
+ jint target)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glResetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogram ( GLenum target , GLboolean reset , GLenum format , GLenum type , GLvoid * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jbyteArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jdoubleArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jbooleanArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jlongArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogramParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetHistogramParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetHistogramParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogramParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetHistogramParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetHistogramParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMinmax ( GLenum target , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMinmax (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jboolean sink)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLboolean))
+ getGLProcAddressHelper("glMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLboolean) sink
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetMinmax ( GLenum target ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glResetMinmax (
+ JNIEnv *env, jobject obj,
+ jint target)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glResetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmax ( GLenum target , GLboolean reset , GLenum format , GLenum types , GLvoid * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jbyteArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jdoubleArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jbooleanArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jlongArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmaxParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMinmaxParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMinmaxParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmaxParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMinmaxParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMinmaxParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter1D ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterf ( GLenum target , GLenum pname , GLfloat params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameterf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glConvolutionParameterf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) params
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glConvolutionParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glConvolutionParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteri ( GLenum target , GLenum pname , GLint params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameteri (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glConvolutionParameteri", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) params
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glConvolutionParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glConvolutionParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter1D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyConvolutionFilter1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter2D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyConvolutionFilter2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionFilter ( GLenum target , GLenum format , GLenum type , GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetConvolutionParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetConvolutionParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetConvolutionParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetConvolutionParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSeparableFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * row , const GLvoid * column ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3B_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray row,
+ jbyteArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jbyte *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetByteArrayElements(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3S_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray row,
+ jshortArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jshort *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetShortArrayElements(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3I_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray row,
+ jintArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jint *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetIntArrayElements(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3F_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray row,
+ jfloatArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jfloat *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetFloatArrayElements(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray row,
+ jdoubleArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetDoubleArrayElements(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3Z_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray row,
+ jbooleanArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jboolean *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetBooleanArrayElements(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3J_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray row,
+ jlongArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jlong *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetLongArrayElements(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetSeparableFilter ( GLenum target , GLenum format , GLenum type , GLvoid * row , GLvoid * column , GLvoid * span ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3B_3B_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray row,
+ jbyteArray column,
+ jbyteArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3S_3S_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray row,
+ jshortArray column,
+ jshortArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3I_3I_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray row,
+ jintArray column,
+ jintArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3F_3F_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray row,
+ jfloatArray column,
+ jfloatArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3D_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray row,
+ jdoubleArray column,
+ jdoubleArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3Z_3Z_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray row,
+ jbooleanArray column,
+ jbooleanArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3J_3J_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray row,
+ jlongArray column,
+ jlongArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColorEXT ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendColorEXT (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glBlendColorEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffsetEXT ( GLfloat factor , GLfloat bias ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonOffsetEXT (
+ JNIEnv *env, jobject obj,
+ jfloat factor,
+ jfloat bias)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPolygonOffsetEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) factor,
+ (GLfloat) bias
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3DEXT ( GLenum target , GLint level , GLenum internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jbyte *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jshort *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jint *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jfloat *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jdouble *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jboolean *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jlong *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jbyte *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jshort *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jint *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jfloat *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jdouble *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jboolean *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jlong *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage3DEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTexturesEXT ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glGenTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGenTexturesEXT arg: textures");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTexturesEXT ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *))
+ getGLProcAddressHelper("glDeleteTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glDeleteTexturesEXT arg: textures");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTextureEXT ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBindTextureEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint))
+ getGLProcAddressHelper("glBindTextureEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLuint) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTexturesEXT ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPrioritizeTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jfloatArray priorities)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, const GLclampf *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *, const GLclampf *))
+ getGLProcAddressHelper("glPrioritizeTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glPrioritizeTexturesEXT arg: textures");
+ }
+ }
+ if(priorities!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, priorities, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glPrioritizeTexturesEXT arg: priorities");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (const GLclampf *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ if(priorities!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, priorities, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResidentEXT ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glAreTexturesResidentEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jbooleanArray residences)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, GLboolean *) = NULL;
+ jboolean ret;
+
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLsizei, const GLuint *, GLboolean *))
+ getGLProcAddressHelper("glAreTexturesResidentEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glAreTexturesResidentEXT arg: textures");
+ }
+ }
+ if(residences!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, residences, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glAreTexturesResidentEXT arg: residences");
+ }
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (GLboolean *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ if(residences!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, residences, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTextureEXT ( GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsTextureEXT (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsTextureEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) texture
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointerEXT ( GLsizei stride , GLsizei count , const GLboolean * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointerEXT (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, const GLboolean *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, const GLboolean *))
+ getGLProcAddressHelper("glEdgeFlagPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glEdgeFlagPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLboolean *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointervEXT ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3B (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbyteArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetByteArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3S (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jshortArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3I (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3F (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3D (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3Z (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3J (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jlongArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetLongArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElementEXT ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glArrayElementEXT (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glArrayElementEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArraysEXT ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawArraysEXT (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLsizei))
+ getGLProcAddressHelper("glDrawArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquationEXT ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendEquationEXT (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBlendEquationEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfEXT ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointParameterfEXT (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPointParameterfEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfvEXT ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointParameterfvEXT (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glPointParameterfvEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glPointParameterfvEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableEXT ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTableEXT ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableEXT ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfvEXT ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterfvEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetColorTableParameterfvEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetColorTableParameterfvEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterivEXT ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterivEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetColorTableParameterivEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetColorTableParameterivEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLockArraysEXT ( GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLockArraysEXT (
+ JNIEnv *env, jobject obj,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLsizei))
+ getGLProcAddressHelper("glLockArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glUnlockArraysEXT ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glUnlockArraysEXT (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glUnlockArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glActiveTextureARB (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glActiveTextureARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClientActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClientActiveTextureARB (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glClientActiveTextureARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dARB ( GLenum target , GLdouble s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord1dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord1dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord1dvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fARB ( GLenum target , GLfloat s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord1fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord1fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord1fvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1iARB ( GLenum target , GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glMultiTexCoord1iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord1ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord1ivARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1sARB ( GLenum target , GLshort s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord1sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord1svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord1svARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dARB ( GLenum target , GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord2dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord2dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord2dvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fARB ( GLenum target , GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord2fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord2fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord2fvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2iARB ( GLenum target , GLint s , GLint t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord2iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord2ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord2ivARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2sARB ( GLenum target , GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord2sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord2svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord2svARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t,
+ jdouble r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord3dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord3dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord3dvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t,
+ jfloat r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord3fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord3fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord3fvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3iARB ( GLenum target , GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t,
+ jint r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord3iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t,
+ (GLint) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord3ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord3ivARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3sARB ( GLenum target , GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t,
+ jshort r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord3sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord3svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord3svARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t,
+ jdouble r,
+ jdouble q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord4dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r,
+ (GLdouble) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord4dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord4dvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t,
+ jfloat r,
+ jfloat q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord4fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r,
+ (GLfloat) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord4fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord4fvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4iARB ( GLenum target , GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t,
+ jint r,
+ jint q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord4iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t,
+ (GLint) r,
+ (GLint) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord4ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord4ivARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4sARB ( GLenum target , GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t,
+ jshort r,
+ jshort q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord4sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r,
+ (GLshort) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord4svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord4svARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/C2J/gl-proto-dynauto.c b/C2J/gl-proto-dynauto.c
new file mode 100644
index 0000000..242ea4e
--- /dev/null
+++ b/C2J/gl-proto-dynauto.c
@@ -0,0 +1,23574 @@
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: gl-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearIndex ( GLfloat c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearIndex (
+ JNIEnv *env, jobject obj,
+ jfloat c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glClearIndex", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearColor (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glClearColor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClear ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClear (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glClear", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexMask ( GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexMask (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIndexMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMask ( GLboolean red , GLboolean green , GLboolean blue , GLboolean alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorMask (
+ JNIEnv *env, jobject obj,
+ jboolean red,
+ jboolean green,
+ jboolean blue,
+ jboolean alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean, GLboolean, GLboolean, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean, GLboolean, GLboolean, GLboolean))
+ getGLProcAddressHelper("glColorMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) red,
+ (GLboolean) green,
+ (GLboolean) blue,
+ (GLboolean) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAlphaFunc ( GLenum func , GLclampf ref ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glAlphaFunc (
+ JNIEnv *env, jobject obj,
+ jint func,
+ jfloat ref)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLclampf))
+ getGLProcAddressHelper("glAlphaFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func,
+ (GLclampf) ref
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendFunc ( GLenum sfactor , GLenum dfactor ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendFunc (
+ JNIEnv *env, jobject obj,
+ jint sfactor,
+ jint dfactor)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glBlendFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) sfactor,
+ (GLenum) dfactor
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLogicOp ( GLenum opcode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLogicOp (
+ JNIEnv *env, jobject obj,
+ jint opcode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glLogicOp", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) opcode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCullFace ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCullFace (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glCullFace", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrontFace ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFrontFace (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glFrontFace", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointSize ( GLfloat size ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointSize (
+ JNIEnv *env, jobject obj,
+ jfloat size)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glPointSize", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) size
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineWidth ( GLfloat width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLineWidth (
+ JNIEnv *env, jobject obj,
+ jfloat width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glLineWidth", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineStipple ( GLint factor , GLushort pattern ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLineStipple (
+ JNIEnv *env, jobject obj,
+ jint factor,
+ jshort pattern)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLushort))
+ getGLProcAddressHelper("glLineStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) factor,
+ (GLushort) pattern
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonMode ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonMode (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glPolygonMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffset ( GLfloat factor , GLfloat units ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonOffset (
+ JNIEnv *env, jobject obj,
+ jfloat factor,
+ jfloat units)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPolygonOffset", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) factor,
+ (GLfloat) units
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonStipple ( const GLubyte * mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonStipple (
+ JNIEnv *env, jobject obj,
+ jbyteArray mask)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glPolygonStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(mask!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, mask, 0);
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(mask!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, mask, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPolygonStipple ( GLubyte * mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPolygonStipple (
+ JNIEnv *env, jobject obj,
+ jbyteArray mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte *))
+ getGLProcAddressHelper("glGetPolygonStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(mask!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, mask, &isCopiedArray0);
+ }
+ __func_ptr__ (
+ (GLubyte *) ptr0
+ );
+
+ if(mask!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, mask, ptr0, (isCopiedArray0 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlag ( GLboolean flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlag (
+ JNIEnv *env, jobject obj,
+ jboolean flag)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean))
+ getGLProcAddressHelper("glEdgeFlag", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) flag
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagv ( const GLboolean * flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagv (
+ JNIEnv *env, jobject obj,
+ jbooleanArray flag)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLboolean *) = NULL;
+ jboolean *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLboolean *))
+ getGLProcAddressHelper("glEdgeFlagv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(flag!=NULL)
+ {
+ ptr0 = (*env)->GetBooleanArrayElements(env, flag, 0);
+ }
+ __func_ptr__ (
+ (const GLboolean *) ptr0
+ );
+
+ if(flag!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, flag, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScissor ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScissor (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glScissor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClipPlane ( GLenum plane , const GLdouble * equation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClipPlane (
+ JNIEnv *env, jobject obj,
+ jint plane,
+ jdoubleArray equation)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glClipPlane", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(equation!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, equation, 0);
+ }
+ __func_ptr__ (
+ (GLenum) plane,
+ (const GLdouble *) ptr1
+ );
+
+ if(equation!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, equation, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetClipPlane ( GLenum plane , GLdouble * equation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetClipPlane (
+ JNIEnv *env, jobject obj,
+ jint plane,
+ jdoubleArray equation)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetClipPlane", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(equation!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, equation, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) plane,
+ (GLdouble *) ptr1
+ );
+
+ if(equation!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, equation, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawBuffer (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDrawBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadBuffer (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glReadBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnable ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnable (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glEnable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisable ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDisable (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDisable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsEnabled ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsEnabled (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLenum) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glIsEnabled", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLenum) cap
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnableClientState (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glEnableClientState", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDisableClientState (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDisableClientState", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetBooleanv ( GLenum pname , GLboolean * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetBooleanv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean *))
+ getGLProcAddressHelper("glGetBooleanv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLboolean *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetDoublev ( GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetDoublev (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetDoublev", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLdouble *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetFloatv ( GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetFloatv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetFloatv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetIntegerv ( GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetIntegerv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint *))
+ getGLProcAddressHelper("glGetIntegerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushAttrib (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glPushAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopAttrib ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopAttrib (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushClientAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushClientAttrib (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glPushClientAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopClientAttrib ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopClientAttrib (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopClientAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint glRenderMode ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glRenderMode (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static jint (CALLBACK *__func_ptr__)(GLenum) = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glRenderMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ (GLenum) mode
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLenum glGetError ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetError (
+ JNIEnv *env, jobject obj)
+ {
+ static jint (CALLBACK *__func_ptr__)() = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)())
+ getGLProcAddressHelper("glGetError", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFinish ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFinish (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glFinish", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFlush ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFlush (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glFlush", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHint ( GLenum target , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glHint (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glHint", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearDepth ( GLclampd depth ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearDepth (
+ JNIEnv *env, jobject obj,
+ jdouble depth)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampd) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampd))
+ getGLProcAddressHelper("glClearDepth", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampd) depth
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthFunc ( GLenum func ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthFunc (
+ JNIEnv *env, jobject obj,
+ jint func)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDepthFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthMask ( GLboolean flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthMask (
+ JNIEnv *env, jobject obj,
+ jboolean flag)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean))
+ getGLProcAddressHelper("glDepthMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) flag
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthRange ( GLclampd near_val , GLclampd far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthRange (
+ JNIEnv *env, jobject obj,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampd, GLclampd) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampd, GLclampd))
+ getGLProcAddressHelper("glDepthRange", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampd) near_val,
+ (GLclampd) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearAccum ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearAccum (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glClearAccum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue,
+ (GLfloat) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAccum ( GLenum op , GLfloat value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glAccum (
+ JNIEnv *env, jobject obj,
+ jint op,
+ jfloat value)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glAccum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) op,
+ (GLfloat) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMatrixMode ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMatrixMode (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glMatrixMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glOrtho ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glOrtho (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glOrtho", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top,
+ (GLdouble) near_val,
+ (GLdouble) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrustum ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFrustum (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glFrustum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top,
+ (GLdouble) near_val,
+ (GLdouble) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glViewport ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glViewport (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glViewport", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushMatrix ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushMatrix (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPushMatrix", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopMatrix ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopMatrix (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopMatrix", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadIdentity ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadIdentity (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glLoadIdentity", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadMatrixd (
+ JNIEnv *env, jobject obj,
+ jdoubleArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glLoadMatrixd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, m, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadMatrixf (
+ JNIEnv *env, jobject obj,
+ jfloatArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glLoadMatrixf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, m, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultMatrixd (
+ JNIEnv *env, jobject obj,
+ jdoubleArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glMultMatrixd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, m, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultMatrixf (
+ JNIEnv *env, jobject obj,
+ jfloatArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glMultMatrixf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, m, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotated ( GLdouble angle , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRotated (
+ JNIEnv *env, jobject obj,
+ jdouble angle,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRotated", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) angle,
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotatef ( GLfloat angle , GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRotatef (
+ JNIEnv *env, jobject obj,
+ jfloat angle,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRotatef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) angle,
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScaled ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScaled (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glScaled", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScalef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScalef (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glScalef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslated ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTranslated (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTranslated", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslatef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTranslatef (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTranslatef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsList ( GLuint list ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsList (
+ JNIEnv *env, jobject obj,
+ jint list)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) list
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteLists ( GLuint list , GLsizei range ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteLists (
+ JNIEnv *env, jobject obj,
+ jint list,
+ jint range)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLsizei))
+ getGLProcAddressHelper("glDeleteLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list,
+ (GLsizei) range
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLuint glGenLists ( GLsizei range ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenLists (
+ JNIEnv *env, jobject obj,
+ jint range)
+ {
+ static jint (CALLBACK *__func_ptr__)(GLsizei) = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)(GLsizei))
+ getGLProcAddressHelper("glGenLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ (GLsizei) range
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNewList ( GLuint list , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNewList (
+ JNIEnv *env, jobject obj,
+ jint list,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLenum))
+ getGLProcAddressHelper("glNewList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEndList ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEndList (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glEndList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallList ( GLuint list ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallList (
+ JNIEnv *env, jobject obj,
+ jint list)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glCallList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallLists ( GLsizei n , GLenum type , const GLvoid * lists ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3B (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jbyteArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3S (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jshortArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3I (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jintArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3F (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jfloatArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3D (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jdoubleArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jbooleanArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3J (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jlongArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jlong *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glListBase ( GLuint base ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glListBase (
+ JNIEnv *env, jobject obj,
+ jint base)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glListBase", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) base
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBegin ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBegin (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBegin", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnd ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnd (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glEnd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glVertex2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glVertex2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glVertex3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glVertex3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z,
+ jdouble w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z,
+ (GLdouble) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z,
+ jfloat w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z,
+ (GLfloat) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z,
+ jint w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glVertex4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z,
+ (GLint) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z,
+ jshort w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glVertex4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z,
+ (GLshort) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3b ( GLbyte nx , GLbyte ny , GLbyte nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3b (
+ JNIEnv *env, jobject obj,
+ jbyte nx,
+ jbyte ny,
+ jbyte nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glNormal3b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) nx,
+ (GLbyte) ny,
+ (GLbyte) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3d ( GLdouble nx , GLdouble ny , GLdouble nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3d (
+ JNIEnv *env, jobject obj,
+ jdouble nx,
+ jdouble ny,
+ jdouble nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glNormal3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) nx,
+ (GLdouble) ny,
+ (GLdouble) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3f ( GLfloat nx , GLfloat ny , GLfloat nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3f (
+ JNIEnv *env, jobject obj,
+ jfloat nx,
+ jfloat ny,
+ jfloat nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glNormal3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) nx,
+ (GLfloat) ny,
+ (GLfloat) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3i ( GLint nx , GLint ny , GLint nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3i (
+ JNIEnv *env, jobject obj,
+ jint nx,
+ jint ny,
+ jint nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glNormal3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) nx,
+ (GLint) ny,
+ (GLint) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3s ( GLshort nx , GLshort ny , GLshort nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3s (
+ JNIEnv *env, jobject obj,
+ jshort nx,
+ jshort ny,
+ jshort nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glNormal3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) nx,
+ (GLshort) ny,
+ (GLshort) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glNormal3bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glNormal3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glNormal3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glNormal3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glNormal3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexd ( GLdouble c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexd (
+ JNIEnv *env, jobject obj,
+ jdouble c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glIndexd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexf ( GLfloat c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexf (
+ JNIEnv *env, jobject obj,
+ jfloat c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glIndexf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexi ( GLint c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexi (
+ JNIEnv *env, jobject obj,
+ jint c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glIndexi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexs ( GLshort c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexs (
+ JNIEnv *env, jobject obj,
+ jshort c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort))
+ getGLProcAddressHelper("glIndexs", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexub ( GLubyte c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexub (
+ JNIEnv *env, jobject obj,
+ jbyte c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte))
+ getGLProcAddressHelper("glIndexub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexdv ( const GLdouble * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexdv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glIndexdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexfv ( const GLfloat * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexfv (
+ JNIEnv *env, jobject obj,
+ jfloatArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glIndexfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexiv ( const GLint * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexiv (
+ JNIEnv *env, jobject obj,
+ jintArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glIndexiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexsv ( const GLshort * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexsv (
+ JNIEnv *env, jobject obj,
+ jshortArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glIndexsv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexubv ( const GLubyte * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glIndexubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3b ( GLbyte red , GLbyte green , GLbyte blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3b (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glColor3b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) red,
+ (GLbyte) green,
+ (GLbyte) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3d ( GLdouble red , GLdouble green , GLdouble blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3d (
+ JNIEnv *env, jobject obj,
+ jdouble red,
+ jdouble green,
+ jdouble blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glColor3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) red,
+ (GLdouble) green,
+ (GLdouble) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3f ( GLfloat red , GLfloat green , GLfloat blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3f (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glColor3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3i ( GLint red , GLint green , GLint blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3i (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glColor3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) red,
+ (GLint) green,
+ (GLint) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3s ( GLshort red , GLshort green , GLshort blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3s (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glColor3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) red,
+ (GLshort) green,
+ (GLshort) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ub ( GLubyte red , GLubyte green , GLubyte blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ub (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte, GLubyte, GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte, GLubyte, GLubyte))
+ getGLProcAddressHelper("glColor3ub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) red,
+ (GLubyte) green,
+ (GLubyte) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ui ( GLuint red , GLuint green , GLuint blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ui (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLuint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLuint, GLuint))
+ getGLProcAddressHelper("glColor3ui", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) red,
+ (GLuint) green,
+ (GLuint) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3us ( GLushort red , GLushort green , GLushort blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3us (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLushort, GLushort, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLushort, GLushort, GLushort))
+ getGLProcAddressHelper("glColor3us", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLushort) red,
+ (GLushort) green,
+ (GLushort) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4b ( GLbyte red , GLbyte green , GLbyte blue , GLbyte alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4b (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue,
+ jbyte alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glColor4b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) red,
+ (GLbyte) green,
+ (GLbyte) blue,
+ (GLbyte) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4d ( GLdouble red , GLdouble green , GLdouble blue , GLdouble alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4d (
+ JNIEnv *env, jobject obj,
+ jdouble red,
+ jdouble green,
+ jdouble blue,
+ jdouble alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glColor4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) red,
+ (GLdouble) green,
+ (GLdouble) blue,
+ (GLdouble) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4f ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4f (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glColor4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue,
+ (GLfloat) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4i ( GLint red , GLint green , GLint blue , GLint alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4i (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue,
+ jint alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glColor4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) red,
+ (GLint) green,
+ (GLint) blue,
+ (GLint) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4s ( GLshort red , GLshort green , GLshort blue , GLshort alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4s (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue,
+ jshort alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glColor4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) red,
+ (GLshort) green,
+ (GLshort) blue,
+ (GLshort) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ub ( GLubyte red , GLubyte green , GLubyte blue , GLubyte alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ub (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue,
+ jbyte alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte, GLubyte, GLubyte, GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte, GLubyte, GLubyte, GLubyte))
+ getGLProcAddressHelper("glColor4ub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) red,
+ (GLubyte) green,
+ (GLubyte) blue,
+ (GLubyte) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ui ( GLuint red , GLuint green , GLuint blue , GLuint alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ui (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue,
+ jint alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLuint, GLuint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLuint, GLuint, GLuint))
+ getGLProcAddressHelper("glColor4ui", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) red,
+ (GLuint) green,
+ (GLuint) blue,
+ (GLuint) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4us ( GLushort red , GLushort green , GLushort blue , GLushort alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4us (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue,
+ jshort alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLushort, GLushort, GLushort, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLushort, GLushort, GLushort, GLushort))
+ getGLProcAddressHelper("glColor4us", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLushort) red,
+ (GLushort) green,
+ (GLushort) blue,
+ (GLushort) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glColor3bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glColor3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glColor3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glColor3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glColor3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glColor3ubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3uiv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLuint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLuint *))
+ getGLProcAddressHelper("glColor3uiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLuint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3usv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLushort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLushort *))
+ getGLProcAddressHelper("glColor3usv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLushort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glColor4bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glColor4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glColor4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glColor4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glColor4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glColor4ubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4uiv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLuint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLuint *))
+ getGLProcAddressHelper("glColor4uiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLuint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4usv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLushort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLushort *))
+ getGLProcAddressHelper("glColor4usv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLushort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1d ( GLdouble s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1d (
+ JNIEnv *env, jobject obj,
+ jdouble s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glTexCoord1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1f ( GLfloat s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1f (
+ JNIEnv *env, jobject obj,
+ jfloat s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glTexCoord1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1i ( GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1i (
+ JNIEnv *env, jobject obj,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glTexCoord1i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1s ( GLshort s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1s (
+ JNIEnv *env, jobject obj,
+ jshort s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort))
+ getGLProcAddressHelper("glTexCoord1s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2d ( GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2f ( GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2i ( GLint s , GLint t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glTexCoord2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2s ( GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3d ( GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t,
+ jdouble r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3f ( GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t,
+ jfloat r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3i ( GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t,
+ jint r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glTexCoord3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t,
+ (GLint) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3s ( GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t,
+ jshort r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4d ( GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t,
+ jdouble r,
+ jdouble q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r,
+ (GLdouble) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4f ( GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t,
+ jfloat r,
+ jfloat q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r,
+ (GLfloat) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4i ( GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t,
+ jint r,
+ jint q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glTexCoord4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t,
+ (GLint) r,
+ (GLint) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4s ( GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t,
+ jshort r,
+ jshort q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r,
+ (GLshort) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord1dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord1fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord1iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord1sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glRasterPos2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glRasterPos3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z,
+ jdouble w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z,
+ (GLdouble) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z,
+ jfloat w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z,
+ (GLfloat) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z,
+ jint w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glRasterPos4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z,
+ (GLint) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z,
+ jshort w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z,
+ (GLshort) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectd ( GLdouble x1 , GLdouble y1 , GLdouble x2 , GLdouble y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectd (
+ JNIEnv *env, jobject obj,
+ jdouble x1,
+ jdouble y1,
+ jdouble x2,
+ jdouble y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRectd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x1,
+ (GLdouble) y1,
+ (GLdouble) x2,
+ (GLdouble) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectf ( GLfloat x1 , GLfloat y1 , GLfloat x2 , GLfloat y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectf (
+ JNIEnv *env, jobject obj,
+ jfloat x1,
+ jfloat y1,
+ jfloat x2,
+ jfloat y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRectf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x1,
+ (GLfloat) y1,
+ (GLfloat) x2,
+ (GLfloat) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRecti ( GLint x1 , GLint y1 , GLint x2 , GLint y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRecti (
+ JNIEnv *env, jobject obj,
+ jint x1,
+ jint y1,
+ jint x2,
+ jint y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glRecti", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x1,
+ (GLint) y1,
+ (GLint) x2,
+ (GLint) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRects ( GLshort x1 , GLshort y1 , GLshort x2 , GLshort y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRects (
+ JNIEnv *env, jobject obj,
+ jshort x1,
+ jshort y1,
+ jshort x2,
+ jshort y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRects", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x1,
+ (GLshort) y1,
+ (GLshort) x2,
+ (GLshort) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectdv ( const GLdouble * v1 , const GLdouble * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectdv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v1,
+ jdoubleArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *, const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *, const GLdouble *))
+ getGLProcAddressHelper("glRectdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v1, 0);
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v2, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0,
+ (const GLdouble *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectfv ( const GLfloat * v1 , const GLfloat * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectfv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v1,
+ jfloatArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *, const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *, const GLfloat *))
+ getGLProcAddressHelper("glRectfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v1, 0);
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v2, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0,
+ (const GLfloat *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectiv ( const GLint * v1 , const GLint * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectiv (
+ JNIEnv *env, jobject obj,
+ jintArray v1,
+ jintArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *, const GLint *) = NULL;
+ jint *ptr0 = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *, const GLint *))
+ getGLProcAddressHelper("glRectiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v1, 0);
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v2, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0,
+ (const GLint *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectsv ( const GLshort * v1 , const GLshort * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectsv (
+ JNIEnv *env, jobject obj,
+ jshortArray v1,
+ jshortArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *, const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *, const GLshort *))
+ getGLProcAddressHelper("glRectsv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v1, 0);
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v2, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0,
+ (const GLshort *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointer ( GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3B (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3S (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3I (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3F (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3D (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3Z (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3J (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jlong *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointerv ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3B (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbyteArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetByteArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3S (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jshortArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3I (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3F (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3D (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3Z (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3J (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jlongArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetLongArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElement ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glArrayElement (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glArrayElement", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArrays ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawArrays (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLsizei))
+ getGLProcAddressHelper("glDrawArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawElements ( GLenum mode , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3B (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jbyteArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3S (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jshortArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3I (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jintArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3F (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jfloatArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3D (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jdoubleArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jbooleanArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3J (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jlongArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInterleavedArrays ( GLenum format , GLsizei stride , const GLvoid * pointer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3B (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jbyteArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3S (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jshortArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3I (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jintArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3F (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jfloatArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3D (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jdoubleArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jbooleanArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3J (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jlongArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glShadeModel ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glShadeModel (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glShadeModel", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightf ( GLenum light , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightf (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glLightf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLighti ( GLenum light , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLighti (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glLighti", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightfv ( GLenum light , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightfv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glLightfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightiv ( GLenum light , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightiv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glLightiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightfv ( GLenum light , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetLightfv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetLightfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightiv ( GLenum light , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetLightiv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetLightiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModelf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glLightModelf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeli ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModeli (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glLightModeli", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModelfv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glLightModelfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeliv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModeliv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glLightModeliv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialf ( GLenum face , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialf (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glMaterialf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMateriali ( GLenum face , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMateriali (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glMateriali", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialfv ( GLenum face , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialfv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMaterialfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialiv ( GLenum face , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialiv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glMaterialiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialfv ( GLenum face , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMaterialfv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMaterialfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialiv ( GLenum face , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMaterialiv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMaterialiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMaterial ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorMaterial (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glColorMaterial", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelZoom ( GLfloat xfactor , GLfloat yfactor ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelZoom (
+ JNIEnv *env, jobject obj,
+ jfloat xfactor,
+ jfloat yfactor)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPixelZoom", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) xfactor,
+ (GLfloat) yfactor
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStoref ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelStoref (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPixelStoref", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStorei ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelStorei (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glPixelStorei", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelTransferf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPixelTransferf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelTransferi (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glPixelTransferi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapfv ( GLenum map , GLint mapsize , const GLfloat * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapfv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLfloat *))
+ getGLProcAddressHelper("glPixelMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, values, 0);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLfloat *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapuiv ( GLenum map , GLint mapsize , const GLuint * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapuiv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLuint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLuint *))
+ getGLProcAddressHelper("glPixelMapuiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, values, 0);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLuint *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapusv ( GLenum map , GLint mapsize , const GLushort * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapusv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLushort *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLushort *))
+ getGLProcAddressHelper("glPixelMapusv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, values, 0);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLushort *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapfv ( GLenum map , GLfloat * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapfv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetPixelMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, values, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLfloat *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapuiv ( GLenum map , GLuint * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapuiv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint *))
+ getGLProcAddressHelper("glGetPixelMapuiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, values, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLuint *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapusv ( GLenum map , GLushort * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapusv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLushort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLushort *))
+ getGLProcAddressHelper("glGetPixelMapusv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, values, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLushort *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBitmap ( GLsizei width , GLsizei height , GLfloat xorig , GLfloat yorig , GLfloat xmove , GLfloat ymove , const GLubyte * bitmap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBitmap (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jfloat xorig,
+ jfloat yorig,
+ jfloat xmove,
+ jfloat ymove,
+ jbyteArray bitmap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *) = NULL;
+ jbyte *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *))
+ getGLProcAddressHelper("glBitmap", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(bitmap!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, bitmap, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLfloat) xorig,
+ (GLfloat) yorig,
+ (GLfloat) xmove,
+ (GLfloat) ymove,
+ (const GLubyte *) ptr6
+ );
+
+ if(bitmap!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, bitmap, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawPixels ( GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyPixels (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint type)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum))
+ getGLProcAddressHelper("glCopyPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) type
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilFunc ( GLenum func , GLint ref , GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilFunc (
+ JNIEnv *env, jobject obj,
+ jint func,
+ jint ref,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLuint))
+ getGLProcAddressHelper("glStencilFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func,
+ (GLint) ref,
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilMask ( GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilMask (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glStencilMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilOp ( GLenum fail , GLenum zfail , GLenum zpass ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilOp (
+ JNIEnv *env, jobject obj,
+ jint fail,
+ jint zfail,
+ jint zpass)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum))
+ getGLProcAddressHelper("glStencilOp", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) fail,
+ (GLenum) zfail,
+ (GLenum) zpass
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearStencil ( GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearStencil (
+ JNIEnv *env, jobject obj,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glClearStencil", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGend ( GLenum coord , GLenum pname , GLdouble param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGend (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdouble param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble))
+ getGLProcAddressHelper("glTexGend", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLdouble) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenf ( GLenum coord , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGenf (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexGenf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeni ( GLenum coord , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGeni (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexGeni", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGendv ( GLenum coord , GLenum pname , const GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGendv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLdouble *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLdouble *))
+ getGLProcAddressHelper("glTexGendv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLdouble *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenfv ( GLenum coord , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGenfv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexGenfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeniv ( GLenum coord , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGeniv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexGeniv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGendv ( GLenum coord , GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGendv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetTexGendv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLdouble *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGenfv ( GLenum coord , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGenfv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexGenfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGeniv ( GLenum coord , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGeniv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexGeniv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexEnvf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvi ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvi (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexEnvi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexEnvfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnviv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnviv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexEnviv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnvfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexEnvfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexEnvfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnviv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexEnviv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexEnviv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameterf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexParameterf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteri ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameteri (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexParameteri", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameterfv ( GLenum target , GLint level , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexLevelParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexLevelParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) pname,
+ (GLfloat *) ptr3
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameteriv ( GLenum target , GLint level , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexLevelParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexLevelParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, params, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) pname,
+ (GLint *) ptr3
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage1D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage2D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexImage ( GLenum target , GLint level , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTextures ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glGenTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTextures ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *))
+ getGLProcAddressHelper("glDeleteTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTexture ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBindTexture (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint))
+ getGLProcAddressHelper("glBindTexture", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLuint) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTextures ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPrioritizeTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jfloatArray priorities)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, const GLclampf *) = NULL;
+ jint *ptr1 = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *, const GLclampf *))
+ getGLProcAddressHelper("glPrioritizeTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, 0);
+ }
+ if(priorities!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, priorities, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (const GLclampf *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ if(priorities!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, priorities, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResident ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glAreTexturesResident (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jbooleanArray residences)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, GLboolean *) = NULL;
+ jboolean ret;
+
+ jint *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLsizei, const GLuint *, GLboolean *))
+ getGLProcAddressHelper("glAreTexturesResident", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, 0);
+ }
+ if(residences!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, residences, &isCopiedArray2);
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (GLboolean *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ if(residences!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, residences, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTexture ( GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsTexture (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsTexture", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) texture
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLsizei width , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage1D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLint border ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexImage1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint border)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint))
+ getGLProcAddressHelper("glCopyTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLint) border
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage2D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height , GLint border ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexImage2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint border)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint))
+ getGLProcAddressHelper("glCopyTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint stride , GLint order , const GLdouble * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap1d (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble u1,
+ jdouble u2,
+ jint stride,
+ jint order,
+ jdoubleArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *))
+ getGLProcAddressHelper("glMap1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, points, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) stride,
+ (GLint) order,
+ (const GLdouble *) ptr5
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, points, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint stride , GLint order , const GLfloat * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap1f (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat u1,
+ jfloat u2,
+ jint stride,
+ jint order,
+ jfloatArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *))
+ getGLProcAddressHelper("glMap1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, points, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) stride,
+ (GLint) order,
+ (const GLfloat *) ptr5
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, points, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint ustride , GLint uorder , GLdouble v1 , GLdouble v2 , GLint vstride , GLint vorder , const GLdouble * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap2d (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble u1,
+ jdouble u2,
+ jint ustride,
+ jint uorder,
+ jdouble v1,
+ jdouble v2,
+ jint vstride,
+ jint vorder,
+ jdoubleArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *) = NULL;
+ jdouble *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *))
+ getGLProcAddressHelper("glMap2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr9 = (*env)->GetDoubleArrayElements(env, points, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) ustride,
+ (GLint) uorder,
+ (GLdouble) v1,
+ (GLdouble) v2,
+ (GLint) vstride,
+ (GLint) vorder,
+ (const GLdouble *) ptr9
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, points, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint ustride , GLint uorder , GLfloat v1 , GLfloat v2 , GLint vstride , GLint vorder , const GLfloat * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap2f (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat u1,
+ jfloat u2,
+ jint ustride,
+ jint uorder,
+ jfloat v1,
+ jfloat v2,
+ jint vstride,
+ jint vorder,
+ jfloatArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *) = NULL;
+ jfloat *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *))
+ getGLProcAddressHelper("glMap2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr9 = (*env)->GetFloatArrayElements(env, points, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) ustride,
+ (GLint) uorder,
+ (GLfloat) v1,
+ (GLfloat) v2,
+ (GLint) vstride,
+ (GLint) vorder,
+ (const GLfloat *) ptr9
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, points, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapdv ( GLenum target , GLenum query , GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapdv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetMapdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLdouble *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapfv ( GLenum target , GLenum query , GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLfloat *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapiv ( GLenum target , GLenum query , GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapiv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMapiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, v, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLint *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1d ( GLdouble u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1d (
+ JNIEnv *env, jobject obj,
+ jdouble u)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glEvalCoord1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) u
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1f ( GLfloat u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1f (
+ JNIEnv *env, jobject obj,
+ jfloat u)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glEvalCoord1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) u
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glEvalCoord1dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, u, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glEvalCoord1fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, u, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2d ( GLdouble u , GLdouble v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2d (
+ JNIEnv *env, jobject obj,
+ jdouble u,
+ jdouble v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glEvalCoord2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) u,
+ (GLdouble) v
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2f ( GLfloat u , GLfloat v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2f (
+ JNIEnv *env, jobject obj,
+ jfloat u,
+ jfloat v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glEvalCoord2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) u,
+ (GLfloat) v
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glEvalCoord2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, u, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glEvalCoord2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, u, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1d ( GLint un , GLdouble u1 , GLdouble u2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid1d (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jdouble u1,
+ jdouble u2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMapGrid1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLdouble) u1,
+ (GLdouble) u2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1f ( GLint un , GLfloat u1 , GLfloat u2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid1f (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jfloat u1,
+ jfloat u2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMapGrid1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLfloat) u1,
+ (GLfloat) u2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2d ( GLint un , GLdouble u1 , GLdouble u2 , GLint vn , GLdouble v1 , GLdouble v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid2d (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jdouble u1,
+ jdouble u2,
+ jint vn,
+ jdouble v1,
+ jdouble v2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMapGrid2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) vn,
+ (GLdouble) v1,
+ (GLdouble) v2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2f ( GLint un , GLfloat u1 , GLfloat u2 , GLint vn , GLfloat v1 , GLfloat v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid2f (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jfloat u1,
+ jfloat u2,
+ jint vn,
+ jfloat v1,
+ jfloat v2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMapGrid2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) vn,
+ (GLfloat) v1,
+ (GLfloat) v2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint1 ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalPoint1 (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glEvalPoint1", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint2 ( GLint i , GLint j ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalPoint2 (
+ JNIEnv *env, jobject obj,
+ jint i,
+ jint j)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glEvalPoint2", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i,
+ (GLint) j
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh1 ( GLenum mode , GLint i1 , GLint i2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalMesh1 (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint i1,
+ jint i2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint))
+ getGLProcAddressHelper("glEvalMesh1", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) i1,
+ (GLint) i2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh2 ( GLenum mode , GLint i1 , GLint i2 , GLint j1 , GLint j2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalMesh2 (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint i1,
+ jint i2,
+ jint j1,
+ jint j2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glEvalMesh2", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) i1,
+ (GLint) i2,
+ (GLint) j1,
+ (GLint) j2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glFogf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogi (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glFogi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogfv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glFogfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogiv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogiv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glFogiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFeedbackBuffer ( GLsizei size , GLenum type , GLfloat * buffer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFeedbackBuffer (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jfloatArray buffer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, GLfloat *))
+ getGLProcAddressHelper("glFeedbackBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(buffer!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, buffer, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLsizei) size,
+ (GLenum) type,
+ (GLfloat *) ptr2
+ );
+
+ if(buffer!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, buffer, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPassThrough ( GLfloat token ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPassThrough (
+ JNIEnv *env, jobject obj,
+ jfloat token)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glPassThrough", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) token
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSelectBuffer ( GLsizei size , GLuint * buffer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSelectBuffer (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jintArray buffer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glSelectBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(buffer!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, buffer, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLsizei) size,
+ (GLuint *) ptr1
+ );
+
+ if(buffer!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, buffer, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInitNames ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInitNames (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glInitNames", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadName ( GLuint name ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadName (
+ JNIEnv *env, jobject obj,
+ jint name)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glLoadName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) name
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushName ( GLuint name ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushName (
+ JNIEnv *env, jobject obj,
+ jint name)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glPushName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) name
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopName ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopName (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawRangeElements ( GLenum mode , GLuint start , GLuint end , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jbyteArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jshortArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jintArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jfloatArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jdoubleArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jbooleanArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jlongArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTable ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTable ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glColorTableParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glColorTableParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorSubTable ( GLenum target , GLsizei start , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyColorSubTable (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorTable ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyColorTable (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTable ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetColorTableParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetColorTableParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquation ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendEquation (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBlendEquation", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendColor (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glBlendColor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHistogram ( GLenum target , GLsizei width , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glHistogram (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint width,
+ jint internalformat,
+ jboolean sink)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, GLboolean))
+ getGLProcAddressHelper("glHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) width,
+ (GLenum) internalformat,
+ (GLboolean) sink
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetHistogram ( GLenum target ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glResetHistogram (
+ JNIEnv *env, jobject obj,
+ jint target)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glResetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogram ( GLenum target , GLboolean reset , GLenum format , GLenum type , GLvoid * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jbyteArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jdoubleArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jbooleanArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jlongArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogramParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetHistogramParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogramParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetHistogramParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMinmax ( GLenum target , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMinmax (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jboolean sink)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLboolean))
+ getGLProcAddressHelper("glMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLboolean) sink
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetMinmax ( GLenum target ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glResetMinmax (
+ JNIEnv *env, jobject obj,
+ jint target)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glResetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmax ( GLenum target , GLboolean reset , GLenum format , GLenum types , GLvoid * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jbyteArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jdoubleArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jbooleanArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jlongArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmaxParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMinmaxParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmaxParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMinmaxParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter1D ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterf ( GLenum target , GLenum pname , GLfloat params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameterf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glConvolutionParameterf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) params
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glConvolutionParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteri ( GLenum target , GLenum pname , GLint params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameteri (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glConvolutionParameteri", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) params
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glConvolutionParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter1D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyConvolutionFilter1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter2D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyConvolutionFilter2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionFilter ( GLenum target , GLenum format , GLenum type , GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetConvolutionParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetConvolutionParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSeparableFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * row , const GLvoid * column ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3B_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray row,
+ jbyteArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jbyte *ptr6 = NULL;
+ jbyte *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetByteArrayElements(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3S_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray row,
+ jshortArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jshort *ptr6 = NULL;
+ jshort *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetShortArrayElements(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3I_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray row,
+ jintArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jint *ptr6 = NULL;
+ jint *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetIntArrayElements(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3F_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray row,
+ jfloatArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jfloat *ptr6 = NULL;
+ jfloat *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetFloatArrayElements(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray row,
+ jdoubleArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jdouble *ptr6 = NULL;
+ jdouble *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetDoubleArrayElements(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3Z_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray row,
+ jbooleanArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean *ptr6 = NULL;
+ jboolean *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetBooleanArrayElements(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3J_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray row,
+ jlongArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jlong *ptr6 = NULL;
+ jlong *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetLongArrayElements(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetSeparableFilter ( GLenum target , GLenum format , GLenum type , GLvoid * row , GLvoid * column , GLvoid * span ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3B_3B_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray row,
+ jbyteArray column,
+ jbyteArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3S_3S_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray row,
+ jshortArray column,
+ jshortArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3I_3I_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray row,
+ jintArray column,
+ jintArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3F_3F_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray row,
+ jfloatArray column,
+ jfloatArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3D_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray row,
+ jdoubleArray column,
+ jdoubleArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3Z_3Z_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray row,
+ jbooleanArray column,
+ jbooleanArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3J_3J_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray row,
+ jlongArray column,
+ jlongArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColorEXT ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendColorEXT (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glBlendColorEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffsetEXT ( GLfloat factor , GLfloat bias ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonOffsetEXT (
+ JNIEnv *env, jobject obj,
+ jfloat factor,
+ jfloat bias)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPolygonOffsetEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) factor,
+ (GLfloat) bias
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3DEXT ( GLenum target , GLint level , GLenum internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage3DEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTexturesEXT ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glGenTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTexturesEXT ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *))
+ getGLProcAddressHelper("glDeleteTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTextureEXT ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBindTextureEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint))
+ getGLProcAddressHelper("glBindTextureEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLuint) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTexturesEXT ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPrioritizeTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jfloatArray priorities)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, const GLclampf *) = NULL;
+ jint *ptr1 = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *, const GLclampf *))
+ getGLProcAddressHelper("glPrioritizeTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, 0);
+ }
+ if(priorities!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, priorities, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (const GLclampf *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ if(priorities!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, priorities, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResidentEXT ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glAreTexturesResidentEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jbooleanArray residences)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, GLboolean *) = NULL;
+ jboolean ret;
+
+ jint *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLsizei, const GLuint *, GLboolean *))
+ getGLProcAddressHelper("glAreTexturesResidentEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, 0);
+ }
+ if(residences!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, residences, &isCopiedArray2);
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (GLboolean *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ if(residences!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, residences, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTextureEXT ( GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsTextureEXT (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsTextureEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) texture
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointerEXT ( GLsizei stride , GLsizei count , const GLboolean * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointerEXT (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, const GLboolean *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, const GLboolean *))
+ getGLProcAddressHelper("glEdgeFlagPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLboolean *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointervEXT ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3B (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbyteArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetByteArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3S (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jshortArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3I (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3F (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3D (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3Z (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3J (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jlongArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetLongArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElementEXT ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glArrayElementEXT (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glArrayElementEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArraysEXT ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawArraysEXT (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLsizei))
+ getGLProcAddressHelper("glDrawArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquationEXT ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendEquationEXT (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBlendEquationEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfEXT ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointParameterfEXT (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPointParameterfEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfvEXT ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointParameterfvEXT (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glPointParameterfvEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableEXT ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTableEXT ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableEXT ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfvEXT ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterfvEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetColorTableParameterfvEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterivEXT ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterivEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetColorTableParameterivEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLockArraysEXT ( GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLockArraysEXT (
+ JNIEnv *env, jobject obj,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLsizei))
+ getGLProcAddressHelper("glLockArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glUnlockArraysEXT ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glUnlockArraysEXT (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glUnlockArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glActiveTextureARB (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glActiveTextureARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClientActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClientActiveTextureARB (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glClientActiveTextureARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dARB ( GLenum target , GLdouble s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord1dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord1dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fARB ( GLenum target , GLfloat s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord1fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord1fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1iARB ( GLenum target , GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glMultiTexCoord1iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord1ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1sARB ( GLenum target , GLshort s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord1sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord1svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dARB ( GLenum target , GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord2dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord2dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fARB ( GLenum target , GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord2fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord2fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2iARB ( GLenum target , GLint s , GLint t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord2iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord2ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2sARB ( GLenum target , GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord2sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord2svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t,
+ jdouble r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord3dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord3dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t,
+ jfloat r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord3fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord3fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3iARB ( GLenum target , GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t,
+ jint r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord3iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t,
+ (GLint) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord3ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3sARB ( GLenum target , GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t,
+ jshort r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord3sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord3svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t,
+ jdouble r,
+ jdouble q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord4dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r,
+ (GLdouble) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord4dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t,
+ jfloat r,
+ jfloat q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord4fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r,
+ (GLfloat) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord4fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4iARB ( GLenum target , GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t,
+ jint r,
+ jint q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord4iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t,
+ (GLint) r,
+ (GLint) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord4ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4sARB ( GLenum target , GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t,
+ jshort r,
+ jshort q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord4sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r,
+ (GLshort) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord4svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/C2J/gl-protoVirt-auto.java b/C2J/gl-protoVirt-auto.java
new file mode 100644
index 0000000..9a8608a
--- /dev/null
+++ b/C2J/gl-protoVirt-auto.java
@@ -0,0 +1,6955 @@
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: gl-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearIndex ( GLfloat c ) ;
+ * </pre>
+ */
+ public void glClearIndex (
+ float c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ public void glClearColor (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClear ( GLbitfield mask ) ;
+ * </pre>
+ */
+ public void glClear (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexMask ( GLuint mask ) ;
+ * </pre>
+ */
+ public void glIndexMask (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMask ( GLboolean red , GLboolean green , GLboolean blue , GLboolean alpha ) ;
+ * </pre>
+ */
+ public void glColorMask (
+ boolean red,
+ boolean green,
+ boolean blue,
+ boolean alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAlphaFunc ( GLenum func , GLclampf ref ) ;
+ * </pre>
+ */
+ public void glAlphaFunc (
+ int func,
+ float ref
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendFunc ( GLenum sfactor , GLenum dfactor ) ;
+ * </pre>
+ */
+ public void glBlendFunc (
+ int sfactor,
+ int dfactor
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLogicOp ( GLenum opcode ) ;
+ * </pre>
+ */
+ public void glLogicOp (
+ int opcode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCullFace ( GLenum mode ) ;
+ * </pre>
+ */
+ public void glCullFace (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrontFace ( GLenum mode ) ;
+ * </pre>
+ */
+ public void glFrontFace (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointSize ( GLfloat size ) ;
+ * </pre>
+ */
+ public void glPointSize (
+ float size
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineWidth ( GLfloat width ) ;
+ * </pre>
+ */
+ public void glLineWidth (
+ float width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineStipple ( GLint factor , GLushort pattern ) ;
+ * </pre>
+ */
+ public void glLineStipple (
+ int factor,
+ short pattern
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonMode ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ public void glPolygonMode (
+ int face,
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffset ( GLfloat factor , GLfloat units ) ;
+ * </pre>
+ */
+ public void glPolygonOffset (
+ float factor,
+ float units
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonStipple ( const GLubyte * mask ) ;
+ * </pre>
+ */
+ public void glPolygonStipple (
+ byte[] mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPolygonStipple ( GLubyte * mask ) ;
+ * </pre>
+ */
+ public void glGetPolygonStipple (
+ byte[] mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlag ( GLboolean flag ) ;
+ * </pre>
+ */
+ public void glEdgeFlag (
+ boolean flag
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagv ( const GLboolean * flag ) ;
+ * </pre>
+ */
+ public void glEdgeFlagv (
+ boolean[] flag
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScissor ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public void glScissor (
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClipPlane ( GLenum plane , const GLdouble * equation ) ;
+ * </pre>
+ */
+ public void glClipPlane (
+ int plane,
+ double[] equation
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetClipPlane ( GLenum plane , GLdouble * equation ) ;
+ * </pre>
+ */
+ public void glGetClipPlane (
+ int plane,
+ double[] equation
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ public void glDrawBuffer (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ public void glReadBuffer (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnable ( GLenum cap ) ;
+ * </pre>
+ */
+ public void glEnable (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisable ( GLenum cap ) ;
+ * </pre>
+ */
+ public void glDisable (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsEnabled ( GLenum cap ) ;
+ * </pre>
+ */
+ public boolean glIsEnabled (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ public void glEnableClientState (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ public void glDisableClientState (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetBooleanv ( GLenum pname , GLboolean * params ) ;
+ * </pre>
+ */
+ public void glGetBooleanv (
+ int pname,
+ boolean[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetDoublev ( GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ public void glGetDoublev (
+ int pname,
+ double[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetFloatv ( GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetFloatv (
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetIntegerv ( GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetIntegerv (
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ public void glPushAttrib (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopAttrib ( void ) ;
+ * </pre>
+ */
+ public void glPopAttrib (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushClientAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ public void glPushClientAttrib (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopClientAttrib ( void ) ;
+ * </pre>
+ */
+ public void glPopClientAttrib (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint glRenderMode ( GLenum mode ) ;
+ * </pre>
+ */
+ public int glRenderMode (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLenum glGetError ( void ) ;
+ * </pre>
+ */
+ public int glGetError (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFinish ( void ) ;
+ * </pre>
+ */
+ public void glFinish (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFlush ( void ) ;
+ * </pre>
+ */
+ public void glFlush (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHint ( GLenum target , GLenum mode ) ;
+ * </pre>
+ */
+ public void glHint (
+ int target,
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearDepth ( GLclampd depth ) ;
+ * </pre>
+ */
+ public void glClearDepth (
+ double depth
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthFunc ( GLenum func ) ;
+ * </pre>
+ */
+ public void glDepthFunc (
+ int func
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthMask ( GLboolean flag ) ;
+ * </pre>
+ */
+ public void glDepthMask (
+ boolean flag
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthRange ( GLclampd near_val , GLclampd far_val ) ;
+ * </pre>
+ */
+ public void glDepthRange (
+ double near_val,
+ double far_val
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearAccum ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ public void glClearAccum (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAccum ( GLenum op , GLfloat value ) ;
+ * </pre>
+ */
+ public void glAccum (
+ int op,
+ float value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMatrixMode ( GLenum mode ) ;
+ * </pre>
+ */
+ public void glMatrixMode (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glOrtho ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ public void glOrtho (
+ double left,
+ double right,
+ double bottom,
+ double top,
+ double near_val,
+ double far_val
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrustum ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ public void glFrustum (
+ double left,
+ double right,
+ double bottom,
+ double top,
+ double near_val,
+ double far_val
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glViewport ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public void glViewport (
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushMatrix ( void ) ;
+ * </pre>
+ */
+ public void glPushMatrix (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopMatrix ( void ) ;
+ * </pre>
+ */
+ public void glPopMatrix (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadIdentity ( void ) ;
+ * </pre>
+ */
+ public void glLoadIdentity (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ public void glLoadMatrixd (
+ double[] m
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ public void glLoadMatrixf (
+ float[] m
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ public void glMultMatrixd (
+ double[] m
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ public void glMultMatrixf (
+ float[] m
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotated ( GLdouble angle , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public void glRotated (
+ double angle,
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotatef ( GLfloat angle , GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public void glRotatef (
+ float angle,
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScaled ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public void glScaled (
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScalef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public void glScalef (
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslated ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public void glTranslated (
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslatef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public void glTranslatef (
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsList ( GLuint list ) ;
+ * </pre>
+ */
+ public boolean glIsList (
+ int list
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteLists ( GLuint list , GLsizei range ) ;
+ * </pre>
+ */
+ public void glDeleteLists (
+ int list,
+ int range
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLuint glGenLists ( GLsizei range ) ;
+ * </pre>
+ */
+ public int glGenLists (
+ int range
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNewList ( GLuint list , GLenum mode ) ;
+ * </pre>
+ */
+ public void glNewList (
+ int list,
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEndList ( void ) ;
+ * </pre>
+ */
+ public void glEndList (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallList ( GLuint list ) ;
+ * </pre>
+ */
+ public void glCallList (
+ int list
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallLists ( GLsizei n , GLenum type , const GLvoid * lists ) ;
+ * </pre>
+ */
+ public void glCallLists (
+ int n,
+ int type,
+ byte[] lists
+ ) ;
+ public void glCallLists (
+ int n,
+ int type,
+ short[] lists
+ ) ;
+ public void glCallLists (
+ int n,
+ int type,
+ int[] lists
+ ) ;
+ public void glCallLists (
+ int n,
+ int type,
+ float[] lists
+ ) ;
+ public void glCallLists (
+ int n,
+ int type,
+ double[] lists
+ ) ;
+ public void glCallLists (
+ int n,
+ int type,
+ boolean[] lists
+ ) ;
+ public void glCallLists (
+ int n,
+ int type,
+ long[] lists
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glListBase ( GLuint base ) ;
+ * </pre>
+ */
+ public void glListBase (
+ int base
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBegin ( GLenum mode ) ;
+ * </pre>
+ */
+ public void glBegin (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnd ( void ) ;
+ * </pre>
+ */
+ public void glEnd (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ public void glVertex2d (
+ double x,
+ double y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ public void glVertex2f (
+ float x,
+ float y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ public void glVertex2i (
+ int x,
+ int y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ public void glVertex2s (
+ short x,
+ short y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public void glVertex3d (
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public void glVertex3f (
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ public void glVertex3i (
+ int x,
+ int y,
+ int z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ public void glVertex3s (
+ short x,
+ short y,
+ short z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ public void glVertex4d (
+ double x,
+ double y,
+ double z,
+ double w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ public void glVertex4f (
+ float x,
+ float y,
+ float z,
+ float w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ public void glVertex4i (
+ int x,
+ int y,
+ int z,
+ int w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ public void glVertex4s (
+ short x,
+ short y,
+ short z,
+ short w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glVertex2dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glVertex2fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glVertex2iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glVertex2sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glVertex3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glVertex3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glVertex3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glVertex3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glVertex4dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glVertex4fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glVertex4iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glVertex4sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3b ( GLbyte nx , GLbyte ny , GLbyte nz ) ;
+ * </pre>
+ */
+ public void glNormal3b (
+ byte nx,
+ byte ny,
+ byte nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3d ( GLdouble nx , GLdouble ny , GLdouble nz ) ;
+ * </pre>
+ */
+ public void glNormal3d (
+ double nx,
+ double ny,
+ double nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3f ( GLfloat nx , GLfloat ny , GLfloat nz ) ;
+ * </pre>
+ */
+ public void glNormal3f (
+ float nx,
+ float ny,
+ float nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3i ( GLint nx , GLint ny , GLint nz ) ;
+ * </pre>
+ */
+ public void glNormal3i (
+ int nx,
+ int ny,
+ int nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3s ( GLshort nx , GLshort ny , GLshort nz ) ;
+ * </pre>
+ */
+ public void glNormal3s (
+ short nx,
+ short ny,
+ short nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ public void glNormal3bv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glNormal3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glNormal3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glNormal3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glNormal3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexd ( GLdouble c ) ;
+ * </pre>
+ */
+ public void glIndexd (
+ double c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexf ( GLfloat c ) ;
+ * </pre>
+ */
+ public void glIndexf (
+ float c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexi ( GLint c ) ;
+ * </pre>
+ */
+ public void glIndexi (
+ int c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexs ( GLshort c ) ;
+ * </pre>
+ */
+ public void glIndexs (
+ short c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexub ( GLubyte c ) ;
+ * </pre>
+ */
+ public void glIndexub (
+ byte c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexdv ( const GLdouble * c ) ;
+ * </pre>
+ */
+ public void glIndexdv (
+ double[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexfv ( const GLfloat * c ) ;
+ * </pre>
+ */
+ public void glIndexfv (
+ float[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexiv ( const GLint * c ) ;
+ * </pre>
+ */
+ public void glIndexiv (
+ int[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexsv ( const GLshort * c ) ;
+ * </pre>
+ */
+ public void glIndexsv (
+ short[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexubv ( const GLubyte * c ) ;
+ * </pre>
+ */
+ public void glIndexubv (
+ byte[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3b ( GLbyte red , GLbyte green , GLbyte blue ) ;
+ * </pre>
+ */
+ public void glColor3b (
+ byte red,
+ byte green,
+ byte blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3d ( GLdouble red , GLdouble green , GLdouble blue ) ;
+ * </pre>
+ */
+ public void glColor3d (
+ double red,
+ double green,
+ double blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3f ( GLfloat red , GLfloat green , GLfloat blue ) ;
+ * </pre>
+ */
+ public void glColor3f (
+ float red,
+ float green,
+ float blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3i ( GLint red , GLint green , GLint blue ) ;
+ * </pre>
+ */
+ public void glColor3i (
+ int red,
+ int green,
+ int blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3s ( GLshort red , GLshort green , GLshort blue ) ;
+ * </pre>
+ */
+ public void glColor3s (
+ short red,
+ short green,
+ short blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ub ( GLubyte red , GLubyte green , GLubyte blue ) ;
+ * </pre>
+ */
+ public void glColor3ub (
+ byte red,
+ byte green,
+ byte blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ui ( GLuint red , GLuint green , GLuint blue ) ;
+ * </pre>
+ */
+ public void glColor3ui (
+ int red,
+ int green,
+ int blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3us ( GLushort red , GLushort green , GLushort blue ) ;
+ * </pre>
+ */
+ public void glColor3us (
+ short red,
+ short green,
+ short blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4b ( GLbyte red , GLbyte green , GLbyte blue , GLbyte alpha ) ;
+ * </pre>
+ */
+ public void glColor4b (
+ byte red,
+ byte green,
+ byte blue,
+ byte alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4d ( GLdouble red , GLdouble green , GLdouble blue , GLdouble alpha ) ;
+ * </pre>
+ */
+ public void glColor4d (
+ double red,
+ double green,
+ double blue,
+ double alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4f ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ public void glColor4f (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4i ( GLint red , GLint green , GLint blue , GLint alpha ) ;
+ * </pre>
+ */
+ public void glColor4i (
+ int red,
+ int green,
+ int blue,
+ int alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4s ( GLshort red , GLshort green , GLshort blue , GLshort alpha ) ;
+ * </pre>
+ */
+ public void glColor4s (
+ short red,
+ short green,
+ short blue,
+ short alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ub ( GLubyte red , GLubyte green , GLubyte blue , GLubyte alpha ) ;
+ * </pre>
+ */
+ public void glColor4ub (
+ byte red,
+ byte green,
+ byte blue,
+ byte alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ui ( GLuint red , GLuint green , GLuint blue , GLuint alpha ) ;
+ * </pre>
+ */
+ public void glColor4ui (
+ int red,
+ int green,
+ int blue,
+ int alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4us ( GLushort red , GLushort green , GLushort blue , GLushort alpha ) ;
+ * </pre>
+ */
+ public void glColor4us (
+ short red,
+ short green,
+ short blue,
+ short alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ public void glColor3bv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glColor3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glColor3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glColor3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glColor3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ public void glColor3ubv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ public void glColor3uiv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ public void glColor3usv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ public void glColor4bv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glColor4dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glColor4fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glColor4iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glColor4sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ public void glColor4ubv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ public void glColor4uiv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ public void glColor4usv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1d ( GLdouble s ) ;
+ * </pre>
+ */
+ public void glTexCoord1d (
+ double s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1f ( GLfloat s ) ;
+ * </pre>
+ */
+ public void glTexCoord1f (
+ float s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1i ( GLint s ) ;
+ * </pre>
+ */
+ public void glTexCoord1i (
+ int s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1s ( GLshort s ) ;
+ * </pre>
+ */
+ public void glTexCoord1s (
+ short s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2d ( GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ public void glTexCoord2d (
+ double s,
+ double t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2f ( GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ public void glTexCoord2f (
+ float s,
+ float t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2i ( GLint s , GLint t ) ;
+ * </pre>
+ */
+ public void glTexCoord2i (
+ int s,
+ int t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2s ( GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ public void glTexCoord2s (
+ short s,
+ short t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3d ( GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ public void glTexCoord3d (
+ double s,
+ double t,
+ double r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3f ( GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ public void glTexCoord3f (
+ float s,
+ float t,
+ float r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3i ( GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ public void glTexCoord3i (
+ int s,
+ int t,
+ int r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3s ( GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ public void glTexCoord3s (
+ short s,
+ short t,
+ short r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4d ( GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ public void glTexCoord4d (
+ double s,
+ double t,
+ double r,
+ double q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4f ( GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ public void glTexCoord4f (
+ float s,
+ float t,
+ float r,
+ float q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4i ( GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ public void glTexCoord4i (
+ int s,
+ int t,
+ int r,
+ int q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4s ( GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ public void glTexCoord4s (
+ short s,
+ short t,
+ short r,
+ short q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glTexCoord1dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glTexCoord1fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glTexCoord1iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glTexCoord1sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glTexCoord2dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glTexCoord2fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glTexCoord2iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glTexCoord2sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glTexCoord3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glTexCoord3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glTexCoord3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glTexCoord3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glTexCoord4dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glTexCoord4fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glTexCoord4iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glTexCoord4sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ public void glRasterPos2d (
+ double x,
+ double y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ public void glRasterPos2f (
+ float x,
+ float y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ public void glRasterPos2i (
+ int x,
+ int y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ public void glRasterPos2s (
+ short x,
+ short y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public void glRasterPos3d (
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public void glRasterPos3f (
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ public void glRasterPos3i (
+ int x,
+ int y,
+ int z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ public void glRasterPos3s (
+ short x,
+ short y,
+ short z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ public void glRasterPos4d (
+ double x,
+ double y,
+ double z,
+ double w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ public void glRasterPos4f (
+ float x,
+ float y,
+ float z,
+ float w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ public void glRasterPos4i (
+ int x,
+ int y,
+ int z,
+ int w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ public void glRasterPos4s (
+ short x,
+ short y,
+ short z,
+ short w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glRasterPos2dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glRasterPos2fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glRasterPos2iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glRasterPos2sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glRasterPos3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glRasterPos3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glRasterPos3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glRasterPos3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glRasterPos4dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glRasterPos4fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glRasterPos4iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glRasterPos4sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectd ( GLdouble x1 , GLdouble y1 , GLdouble x2 , GLdouble y2 ) ;
+ * </pre>
+ */
+ public void glRectd (
+ double x1,
+ double y1,
+ double x2,
+ double y2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectf ( GLfloat x1 , GLfloat y1 , GLfloat x2 , GLfloat y2 ) ;
+ * </pre>
+ */
+ public void glRectf (
+ float x1,
+ float y1,
+ float x2,
+ float y2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRecti ( GLint x1 , GLint y1 , GLint x2 , GLint y2 ) ;
+ * </pre>
+ */
+ public void glRecti (
+ int x1,
+ int y1,
+ int x2,
+ int y2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRects ( GLshort x1 , GLshort y1 , GLshort x2 , GLshort y2 ) ;
+ * </pre>
+ */
+ public void glRects (
+ short x1,
+ short y1,
+ short x2,
+ short y2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectdv ( const GLdouble * v1 , const GLdouble * v2 ) ;
+ * </pre>
+ */
+ public void glRectdv (
+ double[] v1,
+ double[] v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectfv ( const GLfloat * v1 , const GLfloat * v2 ) ;
+ * </pre>
+ */
+ public void glRectfv (
+ float[] v1,
+ float[] v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectiv ( const GLint * v1 , const GLint * v2 ) ;
+ * </pre>
+ */
+ public void glRectiv (
+ int[] v1,
+ int[] v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectsv ( const GLshort * v1 , const GLshort * v2 ) ;
+ * </pre>
+ */
+ public void glRectsv (
+ short[] v1,
+ short[] v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public void glNormalPointer (
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public void glNormalPointer (
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public void glNormalPointer (
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public void glNormalPointer (
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public void glNormalPointer (
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public void glNormalPointer (
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public void glNormalPointer (
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public void glIndexPointer (
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public void glIndexPointer (
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public void glIndexPointer (
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public void glIndexPointer (
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public void glIndexPointer (
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public void glIndexPointer (
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public void glIndexPointer (
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointer ( GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public void glEdgeFlagPointer (
+ int stride,
+ byte[] ptr
+ ) ;
+ public void glEdgeFlagPointer (
+ int stride,
+ short[] ptr
+ ) ;
+ public void glEdgeFlagPointer (
+ int stride,
+ int[] ptr
+ ) ;
+ public void glEdgeFlagPointer (
+ int stride,
+ float[] ptr
+ ) ;
+ public void glEdgeFlagPointer (
+ int stride,
+ double[] ptr
+ ) ;
+ public void glEdgeFlagPointer (
+ int stride,
+ boolean[] ptr
+ ) ;
+ public void glEdgeFlagPointer (
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointerv ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ public void glGetPointerv (
+ int pname,
+ byte[][] params
+ ) ;
+ public void glGetPointerv (
+ int pname,
+ short[][] params
+ ) ;
+ public void glGetPointerv (
+ int pname,
+ int[][] params
+ ) ;
+ public void glGetPointerv (
+ int pname,
+ float[][] params
+ ) ;
+ public void glGetPointerv (
+ int pname,
+ double[][] params
+ ) ;
+ public void glGetPointerv (
+ int pname,
+ boolean[][] params
+ ) ;
+ public void glGetPointerv (
+ int pname,
+ long[][] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElement ( GLint i ) ;
+ * </pre>
+ */
+ public void glArrayElement (
+ int i
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArrays ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ public void glDrawArrays (
+ int mode,
+ int first,
+ int count
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawElements ( GLenum mode , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ public void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ byte[] indices
+ ) ;
+ public void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ short[] indices
+ ) ;
+ public void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ int[] indices
+ ) ;
+ public void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ float[] indices
+ ) ;
+ public void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ double[] indices
+ ) ;
+ public void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ boolean[] indices
+ ) ;
+ public void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ long[] indices
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInterleavedArrays ( GLenum format , GLsizei stride , const GLvoid * pointer ) ;
+ * </pre>
+ */
+ public void glInterleavedArrays (
+ int format,
+ int stride,
+ byte[] pointer
+ ) ;
+ public void glInterleavedArrays (
+ int format,
+ int stride,
+ short[] pointer
+ ) ;
+ public void glInterleavedArrays (
+ int format,
+ int stride,
+ int[] pointer
+ ) ;
+ public void glInterleavedArrays (
+ int format,
+ int stride,
+ float[] pointer
+ ) ;
+ public void glInterleavedArrays (
+ int format,
+ int stride,
+ double[] pointer
+ ) ;
+ public void glInterleavedArrays (
+ int format,
+ int stride,
+ boolean[] pointer
+ ) ;
+ public void glInterleavedArrays (
+ int format,
+ int stride,
+ long[] pointer
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glShadeModel ( GLenum mode ) ;
+ * </pre>
+ */
+ public void glShadeModel (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightf ( GLenum light , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public void glLightf (
+ int light,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLighti ( GLenum light , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public void glLighti (
+ int light,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightfv ( GLenum light , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public void glLightfv (
+ int light,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightiv ( GLenum light , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public void glLightiv (
+ int light,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightfv ( GLenum light , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetLightfv (
+ int light,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightiv ( GLenum light , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetLightiv (
+ int light,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public void glLightModelf (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeli ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public void glLightModeli (
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public void glLightModelfv (
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeliv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public void glLightModeliv (
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialf ( GLenum face , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public void glMaterialf (
+ int face,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMateriali ( GLenum face , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public void glMateriali (
+ int face,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialfv ( GLenum face , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public void glMaterialfv (
+ int face,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialiv ( GLenum face , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public void glMaterialiv (
+ int face,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialfv ( GLenum face , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetMaterialfv (
+ int face,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialiv ( GLenum face , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetMaterialiv (
+ int face,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMaterial ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ public void glColorMaterial (
+ int face,
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelZoom ( GLfloat xfactor , GLfloat yfactor ) ;
+ * </pre>
+ */
+ public void glPixelZoom (
+ float xfactor,
+ float yfactor
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStoref ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public void glPixelStoref (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStorei ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public void glPixelStorei (
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public void glPixelTransferf (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public void glPixelTransferi (
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapfv ( GLenum map , GLint mapsize , const GLfloat * values ) ;
+ * </pre>
+ */
+ public void glPixelMapfv (
+ int map,
+ int mapsize,
+ float[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapuiv ( GLenum map , GLint mapsize , const GLuint * values ) ;
+ * </pre>
+ */
+ public void glPixelMapuiv (
+ int map,
+ int mapsize,
+ int[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapusv ( GLenum map , GLint mapsize , const GLushort * values ) ;
+ * </pre>
+ */
+ public void glPixelMapusv (
+ int map,
+ int mapsize,
+ short[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapfv ( GLenum map , GLfloat * values ) ;
+ * </pre>
+ */
+ public void glGetPixelMapfv (
+ int map,
+ float[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapuiv ( GLenum map , GLuint * values ) ;
+ * </pre>
+ */
+ public void glGetPixelMapuiv (
+ int map,
+ int[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapusv ( GLenum map , GLushort * values ) ;
+ * </pre>
+ */
+ public void glGetPixelMapusv (
+ int map,
+ short[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBitmap ( GLsizei width , GLsizei height , GLfloat xorig , GLfloat yorig , GLfloat xmove , GLfloat ymove , const GLubyte * bitmap ) ;
+ * </pre>
+ */
+ public void glBitmap (
+ int width,
+ int height,
+ float xorig,
+ float yorig,
+ float xmove,
+ float ymove,
+ byte[] bitmap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ public void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawPixels ( GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum type ) ;
+ * </pre>
+ */
+ public void glCopyPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilFunc ( GLenum func , GLint ref , GLuint mask ) ;
+ * </pre>
+ */
+ public void glStencilFunc (
+ int func,
+ int ref,
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilMask ( GLuint mask ) ;
+ * </pre>
+ */
+ public void glStencilMask (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilOp ( GLenum fail , GLenum zfail , GLenum zpass ) ;
+ * </pre>
+ */
+ public void glStencilOp (
+ int fail,
+ int zfail,
+ int zpass
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearStencil ( GLint s ) ;
+ * </pre>
+ */
+ public void glClearStencil (
+ int s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGend ( GLenum coord , GLenum pname , GLdouble param ) ;
+ * </pre>
+ */
+ public void glTexGend (
+ int coord,
+ int pname,
+ double param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenf ( GLenum coord , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public void glTexGenf (
+ int coord,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeni ( GLenum coord , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public void glTexGeni (
+ int coord,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGendv ( GLenum coord , GLenum pname , const GLdouble * params ) ;
+ * </pre>
+ */
+ public void glTexGendv (
+ int coord,
+ int pname,
+ double[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenfv ( GLenum coord , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public void glTexGenfv (
+ int coord,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeniv ( GLenum coord , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public void glTexGeniv (
+ int coord,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGendv ( GLenum coord , GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ public void glGetTexGendv (
+ int coord,
+ int pname,
+ double[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGenfv ( GLenum coord , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetTexGenfv (
+ int coord,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGeniv ( GLenum coord , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetTexGeniv (
+ int coord,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public void glTexEnvf (
+ int target,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvi ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public void glTexEnvi (
+ int target,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public void glTexEnvfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnviv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public void glTexEnviv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnvfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetTexEnvfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnviv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetTexEnviv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public void glTexParameterf (
+ int target,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteri ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public void glTexParameteri (
+ int target,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public void glTexParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public void glTexParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetTexParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetTexParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameterfv ( GLenum target , GLint level , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetTexLevelParameterfv (
+ int target,
+ int level,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameteriv ( GLenum target , GLint level , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetTexLevelParameteriv (
+ int target,
+ int level,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage1D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage2D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexImage ( GLenum target , GLint level , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ public void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTextures ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ public void glGenTextures (
+ int n,
+ int[] textures
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTextures ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ public void glDeleteTextures (
+ int n,
+ int[] textures
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTexture ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ public void glBindTexture (
+ int target,
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTextures ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ public void glPrioritizeTextures (
+ int n,
+ int[] textures,
+ float[] priorities
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResident ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ public boolean glAreTexturesResident (
+ int n,
+ int[] textures,
+ boolean[] residences
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTexture ( GLuint texture ) ;
+ * </pre>
+ */
+ public boolean glIsTexture (
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLsizei width , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage1D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLint border ) ;
+ * </pre>
+ */
+ public void glCopyTexImage1D (
+ int target,
+ int level,
+ int internalformat,
+ int x,
+ int y,
+ int width,
+ int border
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage2D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height , GLint border ) ;
+ * </pre>
+ */
+ public void glCopyTexImage2D (
+ int target,
+ int level,
+ int internalformat,
+ int x,
+ int y,
+ int width,
+ int height,
+ int border
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ public void glCopyTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int x,
+ int y,
+ int width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public void glCopyTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint stride , GLint order , const GLdouble * points ) ;
+ * </pre>
+ */
+ public void glMap1d (
+ int target,
+ double u1,
+ double u2,
+ int stride,
+ int order,
+ double[] points
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint stride , GLint order , const GLfloat * points ) ;
+ * </pre>
+ */
+ public void glMap1f (
+ int target,
+ float u1,
+ float u2,
+ int stride,
+ int order,
+ float[] points
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint ustride , GLint uorder , GLdouble v1 , GLdouble v2 , GLint vstride , GLint vorder , const GLdouble * points ) ;
+ * </pre>
+ */
+ public void glMap2d (
+ int target,
+ double u1,
+ double u2,
+ int ustride,
+ int uorder,
+ double v1,
+ double v2,
+ int vstride,
+ int vorder,
+ double[] points
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint ustride , GLint uorder , GLfloat v1 , GLfloat v2 , GLint vstride , GLint vorder , const GLfloat * points ) ;
+ * </pre>
+ */
+ public void glMap2f (
+ int target,
+ float u1,
+ float u2,
+ int ustride,
+ int uorder,
+ float v1,
+ float v2,
+ int vstride,
+ int vorder,
+ float[] points
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapdv ( GLenum target , GLenum query , GLdouble * v ) ;
+ * </pre>
+ */
+ public void glGetMapdv (
+ int target,
+ int query,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapfv ( GLenum target , GLenum query , GLfloat * v ) ;
+ * </pre>
+ */
+ public void glGetMapfv (
+ int target,
+ int query,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapiv ( GLenum target , GLenum query , GLint * v ) ;
+ * </pre>
+ */
+ public void glGetMapiv (
+ int target,
+ int query,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1d ( GLdouble u ) ;
+ * </pre>
+ */
+ public void glEvalCoord1d (
+ double u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1f ( GLfloat u ) ;
+ * </pre>
+ */
+ public void glEvalCoord1f (
+ float u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ public void glEvalCoord1dv (
+ double[] u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ public void glEvalCoord1fv (
+ float[] u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2d ( GLdouble u , GLdouble v ) ;
+ * </pre>
+ */
+ public void glEvalCoord2d (
+ double u,
+ double v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2f ( GLfloat u , GLfloat v ) ;
+ * </pre>
+ */
+ public void glEvalCoord2f (
+ float u,
+ float v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ public void glEvalCoord2dv (
+ double[] u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ public void glEvalCoord2fv (
+ float[] u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1d ( GLint un , GLdouble u1 , GLdouble u2 ) ;
+ * </pre>
+ */
+ public void glMapGrid1d (
+ int un,
+ double u1,
+ double u2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1f ( GLint un , GLfloat u1 , GLfloat u2 ) ;
+ * </pre>
+ */
+ public void glMapGrid1f (
+ int un,
+ float u1,
+ float u2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2d ( GLint un , GLdouble u1 , GLdouble u2 , GLint vn , GLdouble v1 , GLdouble v2 ) ;
+ * </pre>
+ */
+ public void glMapGrid2d (
+ int un,
+ double u1,
+ double u2,
+ int vn,
+ double v1,
+ double v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2f ( GLint un , GLfloat u1 , GLfloat u2 , GLint vn , GLfloat v1 , GLfloat v2 ) ;
+ * </pre>
+ */
+ public void glMapGrid2f (
+ int un,
+ float u1,
+ float u2,
+ int vn,
+ float v1,
+ float v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint1 ( GLint i ) ;
+ * </pre>
+ */
+ public void glEvalPoint1 (
+ int i
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint2 ( GLint i , GLint j ) ;
+ * </pre>
+ */
+ public void glEvalPoint2 (
+ int i,
+ int j
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh1 ( GLenum mode , GLint i1 , GLint i2 ) ;
+ * </pre>
+ */
+ public void glEvalMesh1 (
+ int mode,
+ int i1,
+ int i2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh2 ( GLenum mode , GLint i1 , GLint i2 , GLint j1 , GLint j2 ) ;
+ * </pre>
+ */
+ public void glEvalMesh2 (
+ int mode,
+ int i1,
+ int i2,
+ int j1,
+ int j2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public void glFogf (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public void glFogi (
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public void glFogfv (
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogiv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public void glFogiv (
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFeedbackBuffer ( GLsizei size , GLenum type , GLfloat * buffer ) ;
+ * </pre>
+ */
+ public void glFeedbackBuffer (
+ int size,
+ int type,
+ float[] buffer
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPassThrough ( GLfloat token ) ;
+ * </pre>
+ */
+ public void glPassThrough (
+ float token
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSelectBuffer ( GLsizei size , GLuint * buffer ) ;
+ * </pre>
+ */
+ public void glSelectBuffer (
+ int size,
+ int[] buffer
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInitNames ( void ) ;
+ * </pre>
+ */
+ public void glInitNames (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadName ( GLuint name ) ;
+ * </pre>
+ */
+ public void glLoadName (
+ int name
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushName ( GLuint name ) ;
+ * </pre>
+ */
+ public void glPushName (
+ int name
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopName ( void ) ;
+ * </pre>
+ */
+ public void glPopName (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawRangeElements ( GLenum mode , GLuint start , GLuint end , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ public void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ byte[] indices
+ ) ;
+ public void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ short[] indices
+ ) ;
+ public void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ int[] indices
+ ) ;
+ public void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ float[] indices
+ ) ;
+ public void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ double[] indices
+ ) ;
+ public void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ boolean[] indices
+ ) ;
+ public void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ long[] indices
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public void glCopyTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTable ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ public void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ byte[] table
+ ) ;
+ public void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ short[] table
+ ) ;
+ public void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ int[] table
+ ) ;
+ public void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ float[] table
+ ) ;
+ public void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ double[] table
+ ) ;
+ public void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ boolean[] table
+ ) ;
+ public void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ long[] table
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTable ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ public void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ byte[] data
+ ) ;
+ public void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ short[] data
+ ) ;
+ public void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ int[] data
+ ) ;
+ public void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ float[] data
+ ) ;
+ public void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ double[] data
+ ) ;
+ public void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ boolean[] data
+ ) ;
+ public void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ long[] data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public void glColorTableParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public void glColorTableParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorSubTable ( GLenum target , GLsizei start , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ public void glCopyColorSubTable (
+ int target,
+ int start,
+ int x,
+ int y,
+ int width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorTable ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ public void glCopyColorTable (
+ int target,
+ int internalformat,
+ int x,
+ int y,
+ int width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTable ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ public void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ byte[] table
+ ) ;
+ public void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ short[] table
+ ) ;
+ public void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ int[] table
+ ) ;
+ public void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ float[] table
+ ) ;
+ public void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ double[] table
+ ) ;
+ public void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ boolean[] table
+ ) ;
+ public void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ long[] table
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetColorTableParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetColorTableParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquation ( GLenum mode ) ;
+ * </pre>
+ */
+ public void glBlendEquation (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ public void glBlendColor (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHistogram ( GLenum target , GLsizei width , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ public void glHistogram (
+ int target,
+ int width,
+ int internalformat,
+ boolean sink
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetHistogram ( GLenum target ) ;
+ * </pre>
+ */
+ public void glResetHistogram (
+ int target
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogram ( GLenum target , GLboolean reset , GLenum format , GLenum type , GLvoid * values ) ;
+ * </pre>
+ */
+ public void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ byte[] values
+ ) ;
+ public void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ short[] values
+ ) ;
+ public void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ int[] values
+ ) ;
+ public void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ float[] values
+ ) ;
+ public void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ double[] values
+ ) ;
+ public void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ boolean[] values
+ ) ;
+ public void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ long[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetHistogramParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetHistogramParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMinmax ( GLenum target , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ public void glMinmax (
+ int target,
+ int internalformat,
+ boolean sink
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetMinmax ( GLenum target ) ;
+ * </pre>
+ */
+ public void glResetMinmax (
+ int target
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmax ( GLenum target , GLboolean reset , GLenum format , GLenum types , GLvoid * values ) ;
+ * </pre>
+ */
+ public void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ byte[] values
+ ) ;
+ public void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ short[] values
+ ) ;
+ public void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ int[] values
+ ) ;
+ public void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ float[] values
+ ) ;
+ public void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ double[] values
+ ) ;
+ public void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ boolean[] values
+ ) ;
+ public void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ long[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetMinmaxParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetMinmaxParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter1D ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ public void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ byte[] image
+ ) ;
+ public void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ short[] image
+ ) ;
+ public void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ int[] image
+ ) ;
+ public void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ float[] image
+ ) ;
+ public void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ double[] image
+ ) ;
+ public void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ boolean[] image
+ ) ;
+ public void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ long[] image
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ public void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] image
+ ) ;
+ public void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] image
+ ) ;
+ public void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] image
+ ) ;
+ public void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] image
+ ) ;
+ public void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] image
+ ) ;
+ public void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] image
+ ) ;
+ public void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] image
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterf ( GLenum target , GLenum pname , GLfloat params ) ;
+ * </pre>
+ */
+ public void glConvolutionParameterf (
+ int target,
+ int pname,
+ float params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public void glConvolutionParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteri ( GLenum target , GLenum pname , GLint params ) ;
+ * </pre>
+ */
+ public void glConvolutionParameteri (
+ int target,
+ int pname,
+ int params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public void glConvolutionParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter1D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ public void glCopyConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int x,
+ int y,
+ int width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter2D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public void glCopyConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionFilter ( GLenum target , GLenum format , GLenum type , GLvoid * image ) ;
+ * </pre>
+ */
+ public void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ byte[] image
+ ) ;
+ public void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ short[] image
+ ) ;
+ public void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ int[] image
+ ) ;
+ public void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ float[] image
+ ) ;
+ public void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ double[] image
+ ) ;
+ public void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ boolean[] image
+ ) ;
+ public void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ long[] image
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetConvolutionParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetConvolutionParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSeparableFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * row , const GLvoid * column ) ;
+ * </pre>
+ */
+ public void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] row,
+ byte[] column
+ ) ;
+ public void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] row,
+ short[] column
+ ) ;
+ public void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] row,
+ int[] column
+ ) ;
+ public void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] row,
+ float[] column
+ ) ;
+ public void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] row,
+ double[] column
+ ) ;
+ public void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] row,
+ boolean[] column
+ ) ;
+ public void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] row,
+ long[] column
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetSeparableFilter ( GLenum target , GLenum format , GLenum type , GLvoid * row , GLvoid * column , GLvoid * span ) ;
+ * </pre>
+ */
+ public void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ byte[] row,
+ byte[] column,
+ byte[] span
+ ) ;
+ public void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ short[] row,
+ short[] column,
+ short[] span
+ ) ;
+ public void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ int[] row,
+ int[] column,
+ int[] span
+ ) ;
+ public void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ float[] row,
+ float[] column,
+ float[] span
+ ) ;
+ public void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ double[] row,
+ double[] column,
+ double[] span
+ ) ;
+ public void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ boolean[] row,
+ boolean[] column,
+ boolean[] span
+ ) ;
+ public void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ long[] row,
+ long[] column,
+ long[] span
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColorEXT ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ public void glBlendColorEXT (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffsetEXT ( GLfloat factor , GLfloat bias ) ;
+ * </pre>
+ */
+ public void glPolygonOffsetEXT (
+ float factor,
+ float bias
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3DEXT ( GLenum target , GLint level , GLenum internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public void glCopyTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTexturesEXT ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ public void glGenTexturesEXT (
+ int n,
+ int[] textures
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTexturesEXT ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ public void glDeleteTexturesEXT (
+ int n,
+ int[] textures
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTextureEXT ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ public void glBindTextureEXT (
+ int target,
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTexturesEXT ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ public void glPrioritizeTexturesEXT (
+ int n,
+ int[] textures,
+ float[] priorities
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResidentEXT ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ public boolean glAreTexturesResidentEXT (
+ int n,
+ int[] textures,
+ boolean[] residences
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTextureEXT ( GLuint texture ) ;
+ * </pre>
+ */
+ public boolean glIsTextureEXT (
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointerEXT ( GLsizei stride , GLsizei count , const GLboolean * ptr ) ;
+ * </pre>
+ */
+ public void glEdgeFlagPointerEXT (
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointervEXT ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ public void glGetPointervEXT (
+ int pname,
+ byte[][] params
+ ) ;
+ public void glGetPointervEXT (
+ int pname,
+ short[][] params
+ ) ;
+ public void glGetPointervEXT (
+ int pname,
+ int[][] params
+ ) ;
+ public void glGetPointervEXT (
+ int pname,
+ float[][] params
+ ) ;
+ public void glGetPointervEXT (
+ int pname,
+ double[][] params
+ ) ;
+ public void glGetPointervEXT (
+ int pname,
+ boolean[][] params
+ ) ;
+ public void glGetPointervEXT (
+ int pname,
+ long[][] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElementEXT ( GLint i ) ;
+ * </pre>
+ */
+ public void glArrayElementEXT (
+ int i
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArraysEXT ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ public void glDrawArraysEXT (
+ int mode,
+ int first,
+ int count
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquationEXT ( GLenum mode ) ;
+ * </pre>
+ */
+ public void glBlendEquationEXT (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfEXT ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public void glPointParameterfEXT (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfvEXT ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public void glPointParameterfvEXT (
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableEXT ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ public void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ byte[] table
+ ) ;
+ public void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ short[] table
+ ) ;
+ public void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ int[] table
+ ) ;
+ public void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ float[] table
+ ) ;
+ public void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ double[] table
+ ) ;
+ public void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ boolean[] table
+ ) ;
+ public void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ long[] table
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTableEXT ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ public void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ byte[] data
+ ) ;
+ public void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ short[] data
+ ) ;
+ public void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ int[] data
+ ) ;
+ public void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ float[] data
+ ) ;
+ public void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ double[] data
+ ) ;
+ public void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ boolean[] data
+ ) ;
+ public void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ long[] data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableEXT ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ public void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ byte[] table
+ ) ;
+ public void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ short[] table
+ ) ;
+ public void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ int[] table
+ ) ;
+ public void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ float[] table
+ ) ;
+ public void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ double[] table
+ ) ;
+ public void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ boolean[] table
+ ) ;
+ public void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ long[] table
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfvEXT ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetColorTableParameterfvEXT (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterivEXT ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetColorTableParameterivEXT (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLockArraysEXT ( GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ public void glLockArraysEXT (
+ int first,
+ int count
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glUnlockArraysEXT ( void ) ;
+ * </pre>
+ */
+ public void glUnlockArraysEXT (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ public void glActiveTextureARB (
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClientActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ public void glClientActiveTextureARB (
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dARB ( GLenum target , GLdouble s ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord1dARB (
+ int target,
+ double s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord1dvARB (
+ int target,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fARB ( GLenum target , GLfloat s ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord1fARB (
+ int target,
+ float s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord1fvARB (
+ int target,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1iARB ( GLenum target , GLint s ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord1iARB (
+ int target,
+ int s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord1ivARB (
+ int target,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1sARB ( GLenum target , GLshort s ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord1sARB (
+ int target,
+ short s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord1svARB (
+ int target,
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dARB ( GLenum target , GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord2dARB (
+ int target,
+ double s,
+ double t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord2dvARB (
+ int target,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fARB ( GLenum target , GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord2fARB (
+ int target,
+ float s,
+ float t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord2fvARB (
+ int target,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2iARB ( GLenum target , GLint s , GLint t ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord2iARB (
+ int target,
+ int s,
+ int t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord2ivARB (
+ int target,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2sARB ( GLenum target , GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord2sARB (
+ int target,
+ short s,
+ short t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord2svARB (
+ int target,
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord3dARB (
+ int target,
+ double s,
+ double t,
+ double r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord3dvARB (
+ int target,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord3fARB (
+ int target,
+ float s,
+ float t,
+ float r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord3fvARB (
+ int target,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3iARB ( GLenum target , GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord3iARB (
+ int target,
+ int s,
+ int t,
+ int r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord3ivARB (
+ int target,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3sARB ( GLenum target , GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord3sARB (
+ int target,
+ short s,
+ short t,
+ short r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord3svARB (
+ int target,
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord4dARB (
+ int target,
+ double s,
+ double t,
+ double r,
+ double q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord4dvARB (
+ int target,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord4fARB (
+ int target,
+ float s,
+ float t,
+ float r,
+ float q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord4fvARB (
+ int target,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4iARB ( GLenum target , GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord4iARB (
+ int target,
+ int s,
+ int t,
+ int r,
+ int q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord4ivARB (
+ int target,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4sARB ( GLenum target , GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord4sARB (
+ int target,
+ short s,
+ short t,
+ short r,
+ short q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord4svARB (
+ int target,
+ short[] v
+ ) ;
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/C2J/glu-enum-auto.java b/C2J/glu-enum-auto.java
new file mode 100644
index 0000000..f4d11a2
--- /dev/null
+++ b/C2J/glu-enum-auto.java
@@ -0,0 +1,114 @@
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: glu-enum-auto.orig . . .
+ * Destination-Class: gl4java_GLUEnum !
+ */
+
+ public static final int GLU_AUTO_LOAD_MATRIX = 100200;
+ public static final int GLU_CCW = 100121;
+ public static final int GLU_CULLING = 100201;
+ public static final int GLU_CW = 100120;
+ public static final int GLU_DISPLAY_MODE = 100204;
+ public static final int GLU_DOMAIN_DISTANCE = 100217;
+ public static final int GLU_EXTENSIONS = 100801;
+ public static final int GLU_EXTERIOR = 100123;
+ public static final int GLU_FALSE = 0;
+ public static final int GLU_FILL = 100012;
+ public static final int GLU_FLAT = 100001;
+ public static final int GLU_INCOMPATIBLE_GL_VERSION = 100903;
+ public static final int GLU_INSIDE = 100021;
+ public static final int GLU_INTERIOR = 100122;
+ public static final int GLU_INVALID_ENUM = 100900;
+ public static final int GLU_INVALID_VALUE = 100901;
+ public static final int GLU_LINE = 100011;
+ public static final int GLU_MAP1_TRIM_2 = 100210;
+ public static final int GLU_MAP1_TRIM_3 = 100211;
+ public static final int GLU_NONE = 100002;
+ public static final int GLU_NURBS_ERROR1 = 100251;
+ public static final int GLU_NURBS_ERROR10 = 100260;
+ public static final int GLU_NURBS_ERROR11 = 100261;
+ public static final int GLU_NURBS_ERROR12 = 100262;
+ public static final int GLU_NURBS_ERROR13 = 100263;
+ public static final int GLU_NURBS_ERROR14 = 100264;
+ public static final int GLU_NURBS_ERROR15 = 100265;
+ public static final int GLU_NURBS_ERROR16 = 100266;
+ public static final int GLU_NURBS_ERROR17 = 100267;
+ public static final int GLU_NURBS_ERROR18 = 100268;
+ public static final int GLU_NURBS_ERROR19 = 100269;
+ public static final int GLU_NURBS_ERROR2 = 100252;
+ public static final int GLU_NURBS_ERROR20 = 100270;
+ public static final int GLU_NURBS_ERROR21 = 100271;
+ public static final int GLU_NURBS_ERROR22 = 100272;
+ public static final int GLU_NURBS_ERROR23 = 100273;
+ public static final int GLU_NURBS_ERROR24 = 100274;
+ public static final int GLU_NURBS_ERROR25 = 100275;
+ public static final int GLU_NURBS_ERROR26 = 100276;
+ public static final int GLU_NURBS_ERROR27 = 100277;
+ public static final int GLU_NURBS_ERROR28 = 100278;
+ public static final int GLU_NURBS_ERROR29 = 100279;
+ public static final int GLU_NURBS_ERROR3 = 100253;
+ public static final int GLU_NURBS_ERROR30 = 100280;
+ public static final int GLU_NURBS_ERROR31 = 100281;
+ public static final int GLU_NURBS_ERROR32 = 100282;
+ public static final int GLU_NURBS_ERROR33 = 100283;
+ public static final int GLU_NURBS_ERROR34 = 100284;
+ public static final int GLU_NURBS_ERROR35 = 100285;
+ public static final int GLU_NURBS_ERROR36 = 100286;
+ public static final int GLU_NURBS_ERROR37 = 100287;
+ public static final int GLU_NURBS_ERROR4 = 100254;
+ public static final int GLU_NURBS_ERROR5 = 100255;
+ public static final int GLU_NURBS_ERROR6 = 100256;
+ public static final int GLU_NURBS_ERROR7 = 100257;
+ public static final int GLU_NURBS_ERROR8 = 100258;
+ public static final int GLU_NURBS_ERROR9 = 100259;
+ public static final int GLU_OUTLINE_PATCH = 100241;
+ public static final int GLU_OUTLINE_POLYGON = 100240;
+ public static final int GLU_OUTSIDE = 100020;
+ public static final int GLU_OUT_OF_MEMORY = 100902;
+ public static final int GLU_PARAMETRIC_ERROR = 100216;
+ public static final int GLU_PARAMETRIC_TOLERANCE = 100202;
+ public static final int GLU_PATH_LENGTH = 100215;
+ public static final int GLU_POINT = 100010;
+ public static final int GLU_SAMPLING_METHOD = 100205;
+ public static final int GLU_SAMPLING_TOLERANCE = 100203;
+ public static final int GLU_SILHOUETTE = 100013;
+ public static final int GLU_SMOOTH = 100000;
+ public static final int GLU_TESS_BEGIN = 100100;
+ public static final int GLU_TESS_BEGIN_DATA = 100106;
+ public static final int GLU_TESS_BOUNDARY_ONLY = 100141;
+ public static final int GLU_TESS_COMBINE = 100105;
+ public static final int GLU_TESS_COMBINE_DATA = 100111;
+ public static final int GLU_TESS_EDGE_FLAG = 100104;
+ public static final int GLU_TESS_EDGE_FLAG_DATA = 100110;
+ public static final int GLU_TESS_END = 100102;
+ public static final int GLU_TESS_END_DATA = 100108;
+ public static final int GLU_TESS_ERROR = 100103;
+ public static final int GLU_TESS_ERROR1 = 100151;
+ public static final int GLU_TESS_ERROR2 = 100152;
+ public static final int GLU_TESS_ERROR3 = 100153;
+ public static final int GLU_TESS_ERROR4 = 100154;
+ public static final int GLU_TESS_ERROR5 = 100155;
+ public static final int GLU_TESS_ERROR6 = 100156;
+ public static final int GLU_TESS_ERROR7 = 100157;
+ public static final int GLU_TESS_ERROR8 = 100158;
+ public static final int GLU_TESS_ERROR_DATA = 100109;
+ public static final int GLU_TESS_TOLERANCE = 100142;
+ public static final int GLU_TESS_VERTEX = 100101;
+ public static final int GLU_TESS_VERTEX_DATA = 100107;
+ public static final int GLU_TESS_WINDING_ABS_GEQ_TWO = 100134;
+ public static final int GLU_TESS_WINDING_NEGATIVE = 100133;
+ public static final int GLU_TESS_WINDING_NONZERO = 100131;
+ public static final int GLU_TESS_WINDING_ODD = 100130;
+ public static final int GLU_TESS_WINDING_POSITIVE = 100132;
+ public static final int GLU_TESS_WINDING_RULE = 100140;
+ public static final int GLU_UNKNOWN = 100124;
+ public static final int GLU_U_STEP = 100206;
+ public static final int GLU_VERSION = 100800;
+ public static final int GLU_V_STEP = 100207;
+ public static final int GLU_VERTEX = GLU_TESS_VERTEX;
+ public static final int GLU_BEGIN = GLU_TESS_BEGIN;
+ public static final int GLU_EDGE_FLAG = GLU_TESS_EDGE_FLAG;
+ public static final int GLU_END = GLU_TESS_END;
+ public static final int GLU_ERROR = GLU_TESS_ERROR;
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/C2J/glu-proto-auto-jni12.c b/C2J/glu-proto-auto-jni12.c
new file mode 100644
index 0000000..a554136
--- /dev/null
+++ b/C2J/glu-proto-auto-jni12.c
@@ -0,0 +1,2080 @@
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: glu-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLUFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLookAt ( GLdouble eyex , GLdouble eyey , GLdouble eyez , GLdouble centerx , GLdouble centery , GLdouble centerz , GLdouble upx , GLdouble upy , GLdouble upz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluLookAt (
+ JNIEnv *env, jobject obj,
+ jdouble eyex,
+ jdouble eyey,
+ jdouble eyez,
+ jdouble centerx,
+ jdouble centery,
+ jdouble centerz,
+ jdouble upx,
+ jdouble upy,
+ jdouble upz)
+ {
+
+ gluLookAt (
+ (GLdouble) eyex,
+ (GLdouble) eyey,
+ (GLdouble) eyez,
+ (GLdouble) centerx,
+ (GLdouble) centery,
+ (GLdouble) centerz,
+ (GLdouble) upx,
+ (GLdouble) upy,
+ (GLdouble) upz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluOrtho2D ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluOrtho2D (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top)
+ {
+
+ gluOrtho2D (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPerspective ( GLdouble fovy , GLdouble aspect , GLdouble zNear , GLdouble zFar ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPerspective (
+ JNIEnv *env, jobject obj,
+ jdouble fovy,
+ jdouble aspect,
+ jdouble zNear,
+ jdouble zFar)
+ {
+
+ gluPerspective (
+ (GLdouble) fovy,
+ (GLdouble) aspect,
+ (GLdouble) zNear,
+ (GLdouble) zFar
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPickMatrix ( GLdouble x , GLdouble y , GLdouble width , GLdouble height , GLint * viewport ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPickMatrix (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble width,
+ jdouble height,
+ jintArray viewport)
+ {
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+
+ if(viewport!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, viewport, &isCopiedArray4);
+ }
+ gluPickMatrix (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) width,
+ (GLdouble) height,
+ (GLint *) ptr4
+ );
+
+ if(viewport!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, viewport, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluProject ( GLdouble objx , GLdouble objy , GLdouble objz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * winx , GLdouble * winy , GLdouble * winz ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluProject (
+ JNIEnv *env, jobject obj,
+ jdouble objx,
+ jdouble objy,
+ jdouble objz,
+ jdoubleArray modelMatrix,
+ jdoubleArray projMatrix,
+ jintArray viewport,
+ jdoubleArray winx,
+ jdoubleArray winy,
+ jdoubleArray winz)
+ {
+ jint ret;
+
+ jdouble *ptr3 = NULL;
+ jdouble *ptr4 = NULL;
+ jint *ptr5 = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, modelMatrix, 0);
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, projMatrix, 0);
+ }
+ if(viewport!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, viewport, 0);
+ }
+ if(winx!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, winx, &isCopiedArray6);
+ }
+ if(winy!=NULL)
+ {
+ ptr7 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, winy, &isCopiedArray7);
+ }
+ if(winz!=NULL)
+ {
+ ptr8 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, winz, &isCopiedArray8);
+ }
+ ret = (jint) gluProject (
+ (GLdouble) objx,
+ (GLdouble) objy,
+ (GLdouble) objz,
+ (const GLdouble *) ptr3,
+ (const GLdouble *) ptr4,
+ (const GLint *) ptr5,
+ (GLdouble *) ptr6,
+ (GLdouble *) ptr7,
+ (GLdouble *) ptr8
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, modelMatrix, ptr3, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, projMatrix, ptr4, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, viewport, ptr5, JNI_ABORT);
+ }
+ if(winx!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, winx, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(winy!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, winy, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(winz!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, winz, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluUnProject ( GLdouble winx , GLdouble winy , GLdouble winz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * objx , GLdouble * objy , GLdouble * objz ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluUnProject (
+ JNIEnv *env, jobject obj,
+ jdouble winx,
+ jdouble winy,
+ jdouble winz,
+ jdoubleArray modelMatrix,
+ jdoubleArray projMatrix,
+ jintArray viewport,
+ jdoubleArray objx,
+ jdoubleArray objy,
+ jdoubleArray objz)
+ {
+ jint ret;
+
+ jdouble *ptr3 = NULL;
+ jdouble *ptr4 = NULL;
+ jint *ptr5 = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, modelMatrix, 0);
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, projMatrix, 0);
+ }
+ if(viewport!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, viewport, 0);
+ }
+ if(objx!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, objx, &isCopiedArray6);
+ }
+ if(objy!=NULL)
+ {
+ ptr7 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, objy, &isCopiedArray7);
+ }
+ if(objz!=NULL)
+ {
+ ptr8 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, objz, &isCopiedArray8);
+ }
+ ret = (jint) gluUnProject (
+ (GLdouble) winx,
+ (GLdouble) winy,
+ (GLdouble) winz,
+ (const GLdouble *) ptr3,
+ (const GLdouble *) ptr4,
+ (const GLint *) ptr5,
+ (GLdouble *) ptr6,
+ (GLdouble *) ptr7,
+ (GLdouble *) ptr8
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, modelMatrix, ptr3, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, projMatrix, ptr4, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, viewport, ptr5, JNI_ABORT);
+ }
+ if(objx!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, objx, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(objy!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, objy, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(objz!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, objz, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluScaleImage ( GLenum format , GLsizei widthin , GLsizei heightin , GLenum typein , const char * datain , GLsizei widthout , GLsizei heightout , GLenum typeout , char * dataout ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluScaleImage (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint widthin,
+ jint heightin,
+ jint typein,
+ jbyteArray datain,
+ jint widthout,
+ jint heightout,
+ jint typeout,
+ jbyteArray dataout)
+ {
+ jint ret;
+
+ jbyte *ptr4 = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jbyte *ptr8 = NULL;
+
+ if(datain!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, datain, 0);
+ }
+ if(dataout!=NULL)
+ {
+ ptr8 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, dataout, &isCopiedArray8);
+ }
+ ret = (jint) gluScaleImage (
+ (GLenum) format,
+ (GLsizei) widthin,
+ (GLsizei) heightin,
+ (GLenum) typein,
+ (const char *) ptr4,
+ (GLsizei) widthout,
+ (GLsizei) heightout,
+ (GLenum) typeout,
+ (char *) ptr8
+ );
+
+ if(datain!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, datain, ptr4, JNI_ABORT);
+ }
+ if(dataout!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, dataout, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild1DMipmaps ( GLenum target , GLint components , GLint width , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ jint ret;
+
+ jbyte *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ jint ret;
+
+ jshort *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ jint ret;
+
+ jint *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ jint ret;
+
+ jfloat *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ jint ret;
+
+ jdouble *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ jint ret;
+
+ jboolean *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ jint ret;
+
+ jlong *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild2DMipmaps ( GLenum target , GLint components , GLint width , GLint height , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ jint ret;
+
+ jbyte *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ jint ret;
+
+ jshort *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ jint ret;
+
+ jint *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ jint ret;
+
+ jfloat *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ jint ret;
+
+ jdouble *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ jint ret;
+
+ jboolean *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ jint ret;
+
+ jlong *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUquadricObj * gluNewQuadric ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewQuadric (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewQuadric (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricDrawStyle ( GLUquadricObj * quadObject , GLenum drawStyle ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricDrawStyle (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint drawStyle)
+ {
+
+ gluQuadricDrawStyle (
+ (GLUquadricObj *) quadObject,
+ (GLenum) drawStyle
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricOrientation ( GLUquadricObj * quadObject , GLenum orientation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricOrientation (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint orientation)
+ {
+
+ gluQuadricOrientation (
+ (GLUquadricObj *) quadObject,
+ (GLenum) orientation
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricNormals ( GLUquadricObj * quadObject , GLenum normals ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricNormals (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint normals)
+ {
+
+ gluQuadricNormals (
+ (GLUquadricObj *) quadObject,
+ (GLenum) normals
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricTexture ( GLUquadricObj * quadObject , GLboolean textureCoords ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricTexture (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jboolean textureCoords)
+ {
+
+ gluQuadricTexture (
+ (GLUquadricObj *) quadObject,
+ (GLboolean) textureCoords
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluCylinder ( GLUquadricObj * qobj , GLdouble baseRadius , GLdouble topRadius , GLdouble height , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluCylinder (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble baseRadius,
+ jdouble topRadius,
+ jdouble height,
+ jint slices,
+ jint stacks)
+ {
+
+ gluCylinder (
+ (GLUquadricObj *) qobj,
+ (GLdouble) baseRadius,
+ (GLdouble) topRadius,
+ (GLdouble) height,
+ (GLint) slices,
+ (GLint) stacks
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluSphere ( GLUquadricObj * qobj , GLdouble radius , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluSphere (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble radius,
+ jint slices,
+ jint stacks)
+ {
+
+ gluSphere (
+ (GLUquadricObj *) qobj,
+ (GLdouble) radius,
+ (GLint) slices,
+ (GLint) stacks
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluDisk (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble innerRadius,
+ jdouble outerRadius,
+ jint slices,
+ jint loops)
+ {
+
+ gluDisk (
+ (GLUquadricObj *) qobj,
+ (GLdouble) innerRadius,
+ (GLdouble) outerRadius,
+ (GLint) slices,
+ (GLint) loops
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPartialDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops , GLdouble startAngle , GLdouble sweepAngle ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPartialDisk (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble innerRadius,
+ jdouble outerRadius,
+ jint slices,
+ jint loops,
+ jdouble startAngle,
+ jdouble sweepAngle)
+ {
+
+ gluPartialDisk (
+ (GLUquadricObj *) qobj,
+ (GLdouble) innerRadius,
+ (GLdouble) outerRadius,
+ (GLint) slices,
+ (GLint) loops,
+ (GLdouble) startAngle,
+ (GLdouble) sweepAngle
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUnurbsObj * gluNewNurbsRenderer ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewNurbsRenderer (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewNurbsRenderer (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLoadSamplingMatrices ( GLUnurbsObj * nobj , const GLfloat modelMatrix [ 16 ] , const GLfloat projMatrix [ 16 ] , const GLint viewport [ 4 ] ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluLoadSamplingMatrices (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jfloatArray modelMatrix,
+ jfloatArray projMatrix,
+ jintArray viewport)
+ {
+ jfloat *ptr1 = NULL;
+ jfloat *ptr2 = NULL;
+ jint *ptr3 = NULL;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, modelMatrix, 0);
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, projMatrix, 0);
+ }
+ if(viewport!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, viewport, 0);
+ }
+ gluLoadSamplingMatrices (
+ (GLUnurbsObj *) nobj,
+ (const GLfloat *) ptr1,
+ (const GLfloat *) ptr2,
+ (const GLint *) ptr3
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, modelMatrix, ptr1, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, projMatrix, ptr2, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, viewport, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsProperty (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint property,
+ jfloat value)
+ {
+
+ gluNurbsProperty (
+ (GLUnurbsObj *) nobj,
+ (GLenum) property,
+ (GLfloat) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat * value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluGetNurbsProperty (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint property,
+ jfloatArray value)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(value!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, value, &isCopiedArray2);
+ }
+ gluGetNurbsProperty (
+ (GLUnurbsObj *) nobj,
+ (GLenum) property,
+ (GLfloat *) ptr2
+ );
+
+ if(value!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, value, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginCurve (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndCurve (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsCurve ( GLUnurbsObj * nobj , GLint nknots , GLfloat * knot , GLint stride , GLfloat * ctlarray , GLint order , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint nknots,
+ jfloatArray knot,
+ jint stride,
+ jfloatArray ctlarray,
+ jint order,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+
+ if(knot!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, knot, &isCopiedArray2);
+ }
+ if(ctlarray!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ctlarray, &isCopiedArray4);
+ }
+ gluNurbsCurve (
+ (GLUnurbsObj *) nobj,
+ (GLint) nknots,
+ (GLfloat *) ptr2,
+ (GLint) stride,
+ (GLfloat *) ptr4,
+ (GLint) order,
+ (GLenum) type
+ );
+
+ if(knot!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, knot, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(ctlarray!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ctlarray, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginSurface (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndSurface (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsSurface ( GLUnurbsObj * nobj , GLint sknot_count , GLfloat * sknot , GLint tknot_count , GLfloat * tknot , GLint s_stride , GLint t_stride , GLfloat * ctlarray , GLint sorder , GLint torder , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint sknot_count,
+ jfloatArray sknot,
+ jint tknot_count,
+ jfloatArray tknot,
+ jint s_stride,
+ jint t_stride,
+ jfloatArray ctlarray,
+ jint sorder,
+ jint torder,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jfloat *ptr7 = NULL;
+
+ if(sknot!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, sknot, &isCopiedArray2);
+ }
+ if(tknot!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, tknot, &isCopiedArray4);
+ }
+ if(ctlarray!=NULL)
+ {
+ ptr7 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ctlarray, &isCopiedArray7);
+ }
+ gluNurbsSurface (
+ (GLUnurbsObj *) nobj,
+ (GLint) sknot_count,
+ (GLfloat *) ptr2,
+ (GLint) tknot_count,
+ (GLfloat *) ptr4,
+ (GLint) s_stride,
+ (GLint) t_stride,
+ (GLfloat *) ptr7,
+ (GLint) sorder,
+ (GLint) torder,
+ (GLenum) type
+ );
+
+ if(sknot!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, sknot, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(tknot!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, tknot, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(ctlarray!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ctlarray, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginTrim (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginTrim (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndTrim (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndTrim (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPwlCurve ( GLUnurbsObj * nobj , GLint count , GLfloat * array , GLint stride , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPwlCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint count,
+ jfloatArray array,
+ jint stride,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(array!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, array, &isCopiedArray2);
+ }
+ gluPwlCurve (
+ (GLUnurbsObj *) nobj,
+ (GLint) count,
+ (GLfloat *) ptr2,
+ (GLint) stride,
+ (GLenum) type
+ );
+
+ if(array!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, array, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUtesselator * gluNewTess ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewTess (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewTess (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginPolygon ( GLUtesselator * tobj , void * polygon_data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3B (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jbyteArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3S (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jshortArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3I (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jintArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3F (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jfloatArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3D (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3Z (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jbooleanArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3J (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jlongArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginContour (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessBeginContour (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessVertex ( GLUtesselator * tobj , GLdouble coords [ 3 ] , void * vertex_data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3B (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jbyteArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3S (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jshortArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3I (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jintArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3F (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jfloatArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jdoubleArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3Z (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jbooleanArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3J (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jlongArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessEndContour (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessEndContour (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessEndPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessEndPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessProperty (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint which,
+ jdouble value)
+ {
+
+ gluTessProperty (
+ (GLUtesselator *) tobj,
+ (GLenum) which,
+ (GLdouble) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessNormal ( GLUtesselator * tobj , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessNormal (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+
+ gluTessNormal (
+ (GLUtesselator *) tobj,
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble * value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluGetTessProperty (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint which,
+ jdoubleArray value)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+
+ if(value!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, value, &isCopiedArray2);
+ }
+ gluGetTessProperty (
+ (GLUtesselator *) tobj,
+ (GLenum) which,
+ (GLdouble *) ptr2
+ );
+
+ if(value!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, value, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluBeginPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNextContour ( GLUtesselator * tobj , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNextContour (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint type)
+ {
+
+ gluNextContour (
+ (GLUtesselator *) tobj,
+ (GLenum) type
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluEndPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/C2J/glu-proto-auto-tst-jni12.c b/C2J/glu-proto-auto-tst-jni12.c
new file mode 100644
index 0000000..6141f7d
--- /dev/null
+++ b/C2J/glu-proto-auto-tst-jni12.c
@@ -0,0 +1,2409 @@
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: glu-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLUFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLookAt ( GLdouble eyex , GLdouble eyey , GLdouble eyez , GLdouble centerx , GLdouble centery , GLdouble centerz , GLdouble upx , GLdouble upy , GLdouble upz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluLookAt (
+ JNIEnv *env, jobject obj,
+ jdouble eyex,
+ jdouble eyey,
+ jdouble eyez,
+ jdouble centerx,
+ jdouble centery,
+ jdouble centerz,
+ jdouble upx,
+ jdouble upy,
+ jdouble upz)
+ {
+
+ gluLookAt (
+ (GLdouble) eyex,
+ (GLdouble) eyey,
+ (GLdouble) eyez,
+ (GLdouble) centerx,
+ (GLdouble) centery,
+ (GLdouble) centerz,
+ (GLdouble) upx,
+ (GLdouble) upy,
+ (GLdouble) upz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluOrtho2D ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluOrtho2D (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top)
+ {
+
+ gluOrtho2D (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPerspective ( GLdouble fovy , GLdouble aspect , GLdouble zNear , GLdouble zFar ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPerspective (
+ JNIEnv *env, jobject obj,
+ jdouble fovy,
+ jdouble aspect,
+ jdouble zNear,
+ jdouble zFar)
+ {
+
+ gluPerspective (
+ (GLdouble) fovy,
+ (GLdouble) aspect,
+ (GLdouble) zNear,
+ (GLdouble) zFar
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPickMatrix ( GLdouble x , GLdouble y , GLdouble width , GLdouble height , GLint * viewport ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPickMatrix (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble width,
+ jdouble height,
+ jintArray viewport)
+ {
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(viewport!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, viewport, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluPickMatrix arg: viewport");
+ }
+ }
+ gluPickMatrix (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) width,
+ (GLdouble) height,
+ (GLint *) ptr4
+ );
+
+ if(viewport!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, viewport, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluProject ( GLdouble objx , GLdouble objy , GLdouble objz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * winx , GLdouble * winy , GLdouble * winz ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluProject (
+ JNIEnv *env, jobject obj,
+ jdouble objx,
+ jdouble objy,
+ jdouble objz,
+ jdoubleArray modelMatrix,
+ jdoubleArray projMatrix,
+ jintArray viewport,
+ jdoubleArray winx,
+ jdoubleArray winy,
+ jdoubleArray winz)
+ {
+ jint ret;
+
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ static int isWarned7 = 0;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, modelMatrix, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by gluProject arg: modelMatrix");
+ }
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, projMatrix, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluProject arg: projMatrix");
+ }
+ }
+ if(viewport!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, viewport, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluProject arg: viewport");
+ }
+ }
+ if(winx!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, winx, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluProject arg: winx");
+ }
+ }
+ if(winy!=NULL)
+ {
+ ptr7 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, winy, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by gluProject arg: winy");
+ }
+ }
+ if(winz!=NULL)
+ {
+ ptr8 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, winz, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by gluProject arg: winz");
+ }
+ }
+ ret = (jint) gluProject (
+ (GLdouble) objx,
+ (GLdouble) objy,
+ (GLdouble) objz,
+ (const GLdouble *) ptr3,
+ (const GLdouble *) ptr4,
+ (const GLint *) ptr5,
+ (GLdouble *) ptr6,
+ (GLdouble *) ptr7,
+ (GLdouble *) ptr8
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, modelMatrix, ptr3, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, projMatrix, ptr4, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, viewport, ptr5, JNI_ABORT);
+ }
+ if(winx!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, winx, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(winy!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, winy, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(winz!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, winz, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluUnProject ( GLdouble winx , GLdouble winy , GLdouble winz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * objx , GLdouble * objy , GLdouble * objz ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluUnProject (
+ JNIEnv *env, jobject obj,
+ jdouble winx,
+ jdouble winy,
+ jdouble winz,
+ jdoubleArray modelMatrix,
+ jdoubleArray projMatrix,
+ jintArray viewport,
+ jdoubleArray objx,
+ jdoubleArray objy,
+ jdoubleArray objz)
+ {
+ jint ret;
+
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ static int isWarned7 = 0;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, modelMatrix, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by gluUnProject arg: modelMatrix");
+ }
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, projMatrix, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluUnProject arg: projMatrix");
+ }
+ }
+ if(viewport!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, viewport, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluUnProject arg: viewport");
+ }
+ }
+ if(objx!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, objx, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluUnProject arg: objx");
+ }
+ }
+ if(objy!=NULL)
+ {
+ ptr7 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, objy, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by gluUnProject arg: objy");
+ }
+ }
+ if(objz!=NULL)
+ {
+ ptr8 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, objz, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by gluUnProject arg: objz");
+ }
+ }
+ ret = (jint) gluUnProject (
+ (GLdouble) winx,
+ (GLdouble) winy,
+ (GLdouble) winz,
+ (const GLdouble *) ptr3,
+ (const GLdouble *) ptr4,
+ (const GLint *) ptr5,
+ (GLdouble *) ptr6,
+ (GLdouble *) ptr7,
+ (GLdouble *) ptr8
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, modelMatrix, ptr3, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, projMatrix, ptr4, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, viewport, ptr5, JNI_ABORT);
+ }
+ if(objx!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, objx, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(objy!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, objy, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(objz!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, objz, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluScaleImage ( GLenum format , GLsizei widthin , GLsizei heightin , GLenum typein , const char * datain , GLsizei widthout , GLsizei heightout , GLenum typeout , char * dataout ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluScaleImage (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint widthin,
+ jint heightin,
+ jint typein,
+ jbyteArray datain,
+ jint widthout,
+ jint heightout,
+ jint typeout,
+ jbyteArray dataout)
+ {
+ jint ret;
+
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jbyte *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(datain!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, datain, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluScaleImage arg: datain");
+ }
+ }
+ if(dataout!=NULL)
+ {
+ ptr8 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, dataout, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by gluScaleImage arg: dataout");
+ }
+ }
+ ret = (jint) gluScaleImage (
+ (GLenum) format,
+ (GLsizei) widthin,
+ (GLsizei) heightin,
+ (GLenum) typein,
+ (const char *) ptr4,
+ (GLsizei) widthout,
+ (GLsizei) heightout,
+ (GLenum) typeout,
+ (char *) ptr8
+ );
+
+ if(datain!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, datain, ptr4, JNI_ABORT);
+ }
+ if(dataout!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, dataout, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild1DMipmaps ( GLenum target , GLint components , GLint width , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild2DMipmaps ( GLenum target , GLint components , GLint width , GLint height , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUquadricObj * gluNewQuadric ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewQuadric (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewQuadric (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricDrawStyle ( GLUquadricObj * quadObject , GLenum drawStyle ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricDrawStyle (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint drawStyle)
+ {
+
+ gluQuadricDrawStyle (
+ (GLUquadricObj *) quadObject,
+ (GLenum) drawStyle
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricOrientation ( GLUquadricObj * quadObject , GLenum orientation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricOrientation (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint orientation)
+ {
+
+ gluQuadricOrientation (
+ (GLUquadricObj *) quadObject,
+ (GLenum) orientation
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricNormals ( GLUquadricObj * quadObject , GLenum normals ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricNormals (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint normals)
+ {
+
+ gluQuadricNormals (
+ (GLUquadricObj *) quadObject,
+ (GLenum) normals
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricTexture ( GLUquadricObj * quadObject , GLboolean textureCoords ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricTexture (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jboolean textureCoords)
+ {
+
+ gluQuadricTexture (
+ (GLUquadricObj *) quadObject,
+ (GLboolean) textureCoords
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluCylinder ( GLUquadricObj * qobj , GLdouble baseRadius , GLdouble topRadius , GLdouble height , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluCylinder (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble baseRadius,
+ jdouble topRadius,
+ jdouble height,
+ jint slices,
+ jint stacks)
+ {
+
+ gluCylinder (
+ (GLUquadricObj *) qobj,
+ (GLdouble) baseRadius,
+ (GLdouble) topRadius,
+ (GLdouble) height,
+ (GLint) slices,
+ (GLint) stacks
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluSphere ( GLUquadricObj * qobj , GLdouble radius , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluSphere (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble radius,
+ jint slices,
+ jint stacks)
+ {
+
+ gluSphere (
+ (GLUquadricObj *) qobj,
+ (GLdouble) radius,
+ (GLint) slices,
+ (GLint) stacks
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluDisk (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble innerRadius,
+ jdouble outerRadius,
+ jint slices,
+ jint loops)
+ {
+
+ gluDisk (
+ (GLUquadricObj *) qobj,
+ (GLdouble) innerRadius,
+ (GLdouble) outerRadius,
+ (GLint) slices,
+ (GLint) loops
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPartialDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops , GLdouble startAngle , GLdouble sweepAngle ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPartialDisk (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble innerRadius,
+ jdouble outerRadius,
+ jint slices,
+ jint loops,
+ jdouble startAngle,
+ jdouble sweepAngle)
+ {
+
+ gluPartialDisk (
+ (GLUquadricObj *) qobj,
+ (GLdouble) innerRadius,
+ (GLdouble) outerRadius,
+ (GLint) slices,
+ (GLint) loops,
+ (GLdouble) startAngle,
+ (GLdouble) sweepAngle
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUnurbsObj * gluNewNurbsRenderer ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewNurbsRenderer (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewNurbsRenderer (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLoadSamplingMatrices ( GLUnurbsObj * nobj , const GLfloat modelMatrix [ 16 ] , const GLfloat projMatrix [ 16 ] , const GLint viewport [ 4 ] ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluLoadSamplingMatrices (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jfloatArray modelMatrix,
+ jfloatArray projMatrix,
+ jintArray viewport)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, modelMatrix, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluLoadSamplingMatrices arg: modelMatrix");
+ }
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, projMatrix, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluLoadSamplingMatrices arg: projMatrix");
+ }
+ }
+ if(viewport!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, viewport, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by gluLoadSamplingMatrices arg: viewport");
+ }
+ }
+ gluLoadSamplingMatrices (
+ (GLUnurbsObj *) nobj,
+ (const GLfloat *) ptr1,
+ (const GLfloat *) ptr2,
+ (const GLint *) ptr3
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, modelMatrix, ptr1, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, projMatrix, ptr2, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, viewport, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsProperty (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint property,
+ jfloat value)
+ {
+
+ gluNurbsProperty (
+ (GLUnurbsObj *) nobj,
+ (GLenum) property,
+ (GLfloat) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat * value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluGetNurbsProperty (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint property,
+ jfloatArray value)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(value!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, value, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluGetNurbsProperty arg: value");
+ }
+ }
+ gluGetNurbsProperty (
+ (GLUnurbsObj *) nobj,
+ (GLenum) property,
+ (GLfloat *) ptr2
+ );
+
+ if(value!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, value, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginCurve (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndCurve (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsCurve ( GLUnurbsObj * nobj , GLint nknots , GLfloat * knot , GLint stride , GLfloat * ctlarray , GLint order , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint nknots,
+ jfloatArray knot,
+ jint stride,
+ jfloatArray ctlarray,
+ jint order,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(knot!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, knot, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluNurbsCurve arg: knot");
+ }
+ }
+ if(ctlarray!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ctlarray, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluNurbsCurve arg: ctlarray");
+ }
+ }
+ gluNurbsCurve (
+ (GLUnurbsObj *) nobj,
+ (GLint) nknots,
+ (GLfloat *) ptr2,
+ (GLint) stride,
+ (GLfloat *) ptr4,
+ (GLint) order,
+ (GLenum) type
+ );
+
+ if(knot!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, knot, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(ctlarray!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ctlarray, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginSurface (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndSurface (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsSurface ( GLUnurbsObj * nobj , GLint sknot_count , GLfloat * sknot , GLint tknot_count , GLfloat * tknot , GLint s_stride , GLint t_stride , GLfloat * ctlarray , GLint sorder , GLint torder , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint sknot_count,
+ jfloatArray sknot,
+ jint tknot_count,
+ jfloatArray tknot,
+ jint s_stride,
+ jint t_stride,
+ jfloatArray ctlarray,
+ jint sorder,
+ jint torder,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jfloat *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(sknot!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, sknot, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluNurbsSurface arg: sknot");
+ }
+ }
+ if(tknot!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, tknot, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluNurbsSurface arg: tknot");
+ }
+ }
+ if(ctlarray!=NULL)
+ {
+ ptr7 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ctlarray, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by gluNurbsSurface arg: ctlarray");
+ }
+ }
+ gluNurbsSurface (
+ (GLUnurbsObj *) nobj,
+ (GLint) sknot_count,
+ (GLfloat *) ptr2,
+ (GLint) tknot_count,
+ (GLfloat *) ptr4,
+ (GLint) s_stride,
+ (GLint) t_stride,
+ (GLfloat *) ptr7,
+ (GLint) sorder,
+ (GLint) torder,
+ (GLenum) type
+ );
+
+ if(sknot!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, sknot, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(tknot!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, tknot, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(ctlarray!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ctlarray, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginTrim (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginTrim (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndTrim (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndTrim (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPwlCurve ( GLUnurbsObj * nobj , GLint count , GLfloat * array , GLint stride , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPwlCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint count,
+ jfloatArray array,
+ jint stride,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(array!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, array, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluPwlCurve arg: array");
+ }
+ }
+ gluPwlCurve (
+ (GLUnurbsObj *) nobj,
+ (GLint) count,
+ (GLfloat *) ptr2,
+ (GLint) stride,
+ (GLenum) type
+ );
+
+ if(array!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, array, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUtesselator * gluNewTess ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewTess (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewTess (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginPolygon ( GLUtesselator * tobj , void * polygon_data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3B (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jbyteArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3S (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jshortArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3I (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jintArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3F (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jfloatArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3D (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3Z (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jbooleanArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3J (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jlongArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginContour (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessBeginContour (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessVertex ( GLUtesselator * tobj , GLdouble coords [ 3 ] , void * vertex_data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3B (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jbyteArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3S (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jshortArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3I (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jintArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3F (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jfloatArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jdoubleArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3Z (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jbooleanArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3J (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jlongArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessEndContour (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessEndContour (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessEndPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessEndPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessProperty (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint which,
+ jdouble value)
+ {
+
+ gluTessProperty (
+ (GLUtesselator *) tobj,
+ (GLenum) which,
+ (GLdouble) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessNormal ( GLUtesselator * tobj , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessNormal (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+
+ gluTessNormal (
+ (GLUtesselator *) tobj,
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble * value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluGetTessProperty (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint which,
+ jdoubleArray value)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(value!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, value, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluGetTessProperty arg: value");
+ }
+ }
+ gluGetTessProperty (
+ (GLUtesselator *) tobj,
+ (GLenum) which,
+ (GLdouble *) ptr2
+ );
+
+ if(value!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, value, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluBeginPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNextContour ( GLUtesselator * tobj , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNextContour (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint type)
+ {
+
+ gluNextContour (
+ (GLUtesselator *) tobj,
+ (GLenum) type
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluEndPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/C2J/glu-proto-auto-tst.c b/C2J/glu-proto-auto-tst.c
new file mode 100644
index 0000000..79de449
--- /dev/null
+++ b/C2J/glu-proto-auto-tst.c
@@ -0,0 +1,2409 @@
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: glu-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLUFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLookAt ( GLdouble eyex , GLdouble eyey , GLdouble eyez , GLdouble centerx , GLdouble centery , GLdouble centerz , GLdouble upx , GLdouble upy , GLdouble upz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluLookAt (
+ JNIEnv *env, jobject obj,
+ jdouble eyex,
+ jdouble eyey,
+ jdouble eyez,
+ jdouble centerx,
+ jdouble centery,
+ jdouble centerz,
+ jdouble upx,
+ jdouble upy,
+ jdouble upz)
+ {
+
+ gluLookAt (
+ (GLdouble) eyex,
+ (GLdouble) eyey,
+ (GLdouble) eyez,
+ (GLdouble) centerx,
+ (GLdouble) centery,
+ (GLdouble) centerz,
+ (GLdouble) upx,
+ (GLdouble) upy,
+ (GLdouble) upz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluOrtho2D ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluOrtho2D (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top)
+ {
+
+ gluOrtho2D (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPerspective ( GLdouble fovy , GLdouble aspect , GLdouble zNear , GLdouble zFar ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPerspective (
+ JNIEnv *env, jobject obj,
+ jdouble fovy,
+ jdouble aspect,
+ jdouble zNear,
+ jdouble zFar)
+ {
+
+ gluPerspective (
+ (GLdouble) fovy,
+ (GLdouble) aspect,
+ (GLdouble) zNear,
+ (GLdouble) zFar
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPickMatrix ( GLdouble x , GLdouble y , GLdouble width , GLdouble height , GLint * viewport ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPickMatrix (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble width,
+ jdouble height,
+ jintArray viewport)
+ {
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(viewport!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, viewport, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluPickMatrix arg: viewport");
+ }
+ }
+ gluPickMatrix (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) width,
+ (GLdouble) height,
+ (GLint *) ptr4
+ );
+
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluProject ( GLdouble objx , GLdouble objy , GLdouble objz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * winx , GLdouble * winy , GLdouble * winz ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluProject (
+ JNIEnv *env, jobject obj,
+ jdouble objx,
+ jdouble objy,
+ jdouble objz,
+ jdoubleArray modelMatrix,
+ jdoubleArray projMatrix,
+ jintArray viewport,
+ jdoubleArray winx,
+ jdoubleArray winy,
+ jdoubleArray winz)
+ {
+ jint ret;
+
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ static int isWarned7 = 0;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, modelMatrix, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by gluProject arg: modelMatrix");
+ }
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, projMatrix, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluProject arg: projMatrix");
+ }
+ }
+ if(viewport!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, viewport, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluProject arg: viewport");
+ }
+ }
+ if(winx!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, winx, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluProject arg: winx");
+ }
+ }
+ if(winy!=NULL)
+ {
+ ptr7 = (*env)->GetDoubleArrayElements(env, winy, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by gluProject arg: winy");
+ }
+ }
+ if(winz!=NULL)
+ {
+ ptr8 = (*env)->GetDoubleArrayElements(env, winz, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by gluProject arg: winz");
+ }
+ }
+ ret = (jint) gluProject (
+ (GLdouble) objx,
+ (GLdouble) objy,
+ (GLdouble) objz,
+ (const GLdouble *) ptr3,
+ (const GLdouble *) ptr4,
+ (const GLint *) ptr5,
+ (GLdouble *) ptr6,
+ (GLdouble *) ptr7,
+ (GLdouble *) ptr8
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, modelMatrix, ptr3, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, projMatrix, ptr4, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr5, JNI_ABORT);
+ }
+ if(winx!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, winx, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(winy!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, winy, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(winz!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, winz, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluUnProject ( GLdouble winx , GLdouble winy , GLdouble winz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * objx , GLdouble * objy , GLdouble * objz ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluUnProject (
+ JNIEnv *env, jobject obj,
+ jdouble winx,
+ jdouble winy,
+ jdouble winz,
+ jdoubleArray modelMatrix,
+ jdoubleArray projMatrix,
+ jintArray viewport,
+ jdoubleArray objx,
+ jdoubleArray objy,
+ jdoubleArray objz)
+ {
+ jint ret;
+
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ static int isWarned7 = 0;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, modelMatrix, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by gluUnProject arg: modelMatrix");
+ }
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, projMatrix, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluUnProject arg: projMatrix");
+ }
+ }
+ if(viewport!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, viewport, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluUnProject arg: viewport");
+ }
+ }
+ if(objx!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, objx, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluUnProject arg: objx");
+ }
+ }
+ if(objy!=NULL)
+ {
+ ptr7 = (*env)->GetDoubleArrayElements(env, objy, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by gluUnProject arg: objy");
+ }
+ }
+ if(objz!=NULL)
+ {
+ ptr8 = (*env)->GetDoubleArrayElements(env, objz, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by gluUnProject arg: objz");
+ }
+ }
+ ret = (jint) gluUnProject (
+ (GLdouble) winx,
+ (GLdouble) winy,
+ (GLdouble) winz,
+ (const GLdouble *) ptr3,
+ (const GLdouble *) ptr4,
+ (const GLint *) ptr5,
+ (GLdouble *) ptr6,
+ (GLdouble *) ptr7,
+ (GLdouble *) ptr8
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, modelMatrix, ptr3, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, projMatrix, ptr4, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr5, JNI_ABORT);
+ }
+ if(objx!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, objx, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(objy!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, objy, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(objz!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, objz, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluScaleImage ( GLenum format , GLsizei widthin , GLsizei heightin , GLenum typein , const char * datain , GLsizei widthout , GLsizei heightout , GLenum typeout , char * dataout ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluScaleImage (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint widthin,
+ jint heightin,
+ jint typein,
+ jbyteArray datain,
+ jint widthout,
+ jint heightout,
+ jint typeout,
+ jbyteArray dataout)
+ {
+ jint ret;
+
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jbyte *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(datain!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, datain, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluScaleImage arg: datain");
+ }
+ }
+ if(dataout!=NULL)
+ {
+ ptr8 = (*env)->GetByteArrayElements(env, dataout, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by gluScaleImage arg: dataout");
+ }
+ }
+ ret = (jint) gluScaleImage (
+ (GLenum) format,
+ (GLsizei) widthin,
+ (GLsizei) heightin,
+ (GLenum) typein,
+ (const char *) ptr4,
+ (GLsizei) widthout,
+ (GLsizei) heightout,
+ (GLenum) typeout,
+ (char *) ptr8
+ );
+
+ if(datain!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, datain, ptr4, JNI_ABORT);
+ }
+ if(dataout!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, dataout, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild1DMipmaps ( GLenum target , GLint components , GLint width , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild2DMipmaps ( GLenum target , GLint components , GLint width , GLint height , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUquadricObj * gluNewQuadric ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewQuadric (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewQuadric (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricDrawStyle ( GLUquadricObj * quadObject , GLenum drawStyle ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricDrawStyle (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint drawStyle)
+ {
+
+ gluQuadricDrawStyle (
+ (GLUquadricObj *) quadObject,
+ (GLenum) drawStyle
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricOrientation ( GLUquadricObj * quadObject , GLenum orientation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricOrientation (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint orientation)
+ {
+
+ gluQuadricOrientation (
+ (GLUquadricObj *) quadObject,
+ (GLenum) orientation
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricNormals ( GLUquadricObj * quadObject , GLenum normals ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricNormals (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint normals)
+ {
+
+ gluQuadricNormals (
+ (GLUquadricObj *) quadObject,
+ (GLenum) normals
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricTexture ( GLUquadricObj * quadObject , GLboolean textureCoords ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricTexture (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jboolean textureCoords)
+ {
+
+ gluQuadricTexture (
+ (GLUquadricObj *) quadObject,
+ (GLboolean) textureCoords
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluCylinder ( GLUquadricObj * qobj , GLdouble baseRadius , GLdouble topRadius , GLdouble height , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluCylinder (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble baseRadius,
+ jdouble topRadius,
+ jdouble height,
+ jint slices,
+ jint stacks)
+ {
+
+ gluCylinder (
+ (GLUquadricObj *) qobj,
+ (GLdouble) baseRadius,
+ (GLdouble) topRadius,
+ (GLdouble) height,
+ (GLint) slices,
+ (GLint) stacks
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluSphere ( GLUquadricObj * qobj , GLdouble radius , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluSphere (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble radius,
+ jint slices,
+ jint stacks)
+ {
+
+ gluSphere (
+ (GLUquadricObj *) qobj,
+ (GLdouble) radius,
+ (GLint) slices,
+ (GLint) stacks
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluDisk (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble innerRadius,
+ jdouble outerRadius,
+ jint slices,
+ jint loops)
+ {
+
+ gluDisk (
+ (GLUquadricObj *) qobj,
+ (GLdouble) innerRadius,
+ (GLdouble) outerRadius,
+ (GLint) slices,
+ (GLint) loops
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPartialDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops , GLdouble startAngle , GLdouble sweepAngle ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPartialDisk (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble innerRadius,
+ jdouble outerRadius,
+ jint slices,
+ jint loops,
+ jdouble startAngle,
+ jdouble sweepAngle)
+ {
+
+ gluPartialDisk (
+ (GLUquadricObj *) qobj,
+ (GLdouble) innerRadius,
+ (GLdouble) outerRadius,
+ (GLint) slices,
+ (GLint) loops,
+ (GLdouble) startAngle,
+ (GLdouble) sweepAngle
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUnurbsObj * gluNewNurbsRenderer ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewNurbsRenderer (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewNurbsRenderer (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLoadSamplingMatrices ( GLUnurbsObj * nobj , const GLfloat modelMatrix [ 16 ] , const GLfloat projMatrix [ 16 ] , const GLint viewport [ 4 ] ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluLoadSamplingMatrices (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jfloatArray modelMatrix,
+ jfloatArray projMatrix,
+ jintArray viewport)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, modelMatrix, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluLoadSamplingMatrices arg: modelMatrix");
+ }
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, projMatrix, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluLoadSamplingMatrices arg: projMatrix");
+ }
+ }
+ if(viewport!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, viewport, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by gluLoadSamplingMatrices arg: viewport");
+ }
+ }
+ gluLoadSamplingMatrices (
+ (GLUnurbsObj *) nobj,
+ (const GLfloat *) ptr1,
+ (const GLfloat *) ptr2,
+ (const GLint *) ptr3
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, modelMatrix, ptr1, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, projMatrix, ptr2, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsProperty (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint property,
+ jfloat value)
+ {
+
+ gluNurbsProperty (
+ (GLUnurbsObj *) nobj,
+ (GLenum) property,
+ (GLfloat) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat * value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluGetNurbsProperty (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint property,
+ jfloatArray value)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(value!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, value, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluGetNurbsProperty arg: value");
+ }
+ }
+ gluGetNurbsProperty (
+ (GLUnurbsObj *) nobj,
+ (GLenum) property,
+ (GLfloat *) ptr2
+ );
+
+ if(value!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, value, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginCurve (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndCurve (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsCurve ( GLUnurbsObj * nobj , GLint nknots , GLfloat * knot , GLint stride , GLfloat * ctlarray , GLint order , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint nknots,
+ jfloatArray knot,
+ jint stride,
+ jfloatArray ctlarray,
+ jint order,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(knot!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, knot, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluNurbsCurve arg: knot");
+ }
+ }
+ if(ctlarray!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, ctlarray, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluNurbsCurve arg: ctlarray");
+ }
+ }
+ gluNurbsCurve (
+ (GLUnurbsObj *) nobj,
+ (GLint) nknots,
+ (GLfloat *) ptr2,
+ (GLint) stride,
+ (GLfloat *) ptr4,
+ (GLint) order,
+ (GLenum) type
+ );
+
+ if(knot!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, knot, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(ctlarray!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ctlarray, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginSurface (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndSurface (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsSurface ( GLUnurbsObj * nobj , GLint sknot_count , GLfloat * sknot , GLint tknot_count , GLfloat * tknot , GLint s_stride , GLint t_stride , GLfloat * ctlarray , GLint sorder , GLint torder , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint sknot_count,
+ jfloatArray sknot,
+ jint tknot_count,
+ jfloatArray tknot,
+ jint s_stride,
+ jint t_stride,
+ jfloatArray ctlarray,
+ jint sorder,
+ jint torder,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jfloat *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(sknot!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, sknot, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluNurbsSurface arg: sknot");
+ }
+ }
+ if(tknot!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, tknot, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluNurbsSurface arg: tknot");
+ }
+ }
+ if(ctlarray!=NULL)
+ {
+ ptr7 = (*env)->GetFloatArrayElements(env, ctlarray, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by gluNurbsSurface arg: ctlarray");
+ }
+ }
+ gluNurbsSurface (
+ (GLUnurbsObj *) nobj,
+ (GLint) sknot_count,
+ (GLfloat *) ptr2,
+ (GLint) tknot_count,
+ (GLfloat *) ptr4,
+ (GLint) s_stride,
+ (GLint) t_stride,
+ (GLfloat *) ptr7,
+ (GLint) sorder,
+ (GLint) torder,
+ (GLenum) type
+ );
+
+ if(sknot!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, sknot, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(tknot!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, tknot, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(ctlarray!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ctlarray, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginTrim (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginTrim (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndTrim (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndTrim (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPwlCurve ( GLUnurbsObj * nobj , GLint count , GLfloat * array , GLint stride , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPwlCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint count,
+ jfloatArray array,
+ jint stride,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(array!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, array, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluPwlCurve arg: array");
+ }
+ }
+ gluPwlCurve (
+ (GLUnurbsObj *) nobj,
+ (GLint) count,
+ (GLfloat *) ptr2,
+ (GLint) stride,
+ (GLenum) type
+ );
+
+ if(array!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, array, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUtesselator * gluNewTess ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewTess (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewTess (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginPolygon ( GLUtesselator * tobj , void * polygon_data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3B (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jbyteArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetByteArrayElements(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3S (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jshortArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3I (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jintArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3F (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jfloatArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3D (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3Z (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jbooleanArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3J (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jlongArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetLongArrayElements(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginContour (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessBeginContour (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessVertex ( GLUtesselator * tobj , GLdouble coords [ 3 ] , void * vertex_data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3B (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jbyteArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3S (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jshortArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3I (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jintArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3F (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jfloatArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jdoubleArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3Z (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jbooleanArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3J (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jlongArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessEndContour (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessEndContour (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessEndPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessEndPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessProperty (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint which,
+ jdouble value)
+ {
+
+ gluTessProperty (
+ (GLUtesselator *) tobj,
+ (GLenum) which,
+ (GLdouble) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessNormal ( GLUtesselator * tobj , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessNormal (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+
+ gluTessNormal (
+ (GLUtesselator *) tobj,
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble * value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluGetTessProperty (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint which,
+ jdoubleArray value)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(value!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, value, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluGetTessProperty arg: value");
+ }
+ }
+ gluGetTessProperty (
+ (GLUtesselator *) tobj,
+ (GLenum) which,
+ (GLdouble *) ptr2
+ );
+
+ if(value!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, value, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluBeginPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNextContour ( GLUtesselator * tobj , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNextContour (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint type)
+ {
+
+ gluNextContour (
+ (GLUtesselator *) tobj,
+ (GLenum) type
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluEndPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/C2J/glu-proto-auto.c b/C2J/glu-proto-auto.c
new file mode 100644
index 0000000..b7ffe28
--- /dev/null
+++ b/C2J/glu-proto-auto.c
@@ -0,0 +1,2080 @@
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: glu-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLUFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLookAt ( GLdouble eyex , GLdouble eyey , GLdouble eyez , GLdouble centerx , GLdouble centery , GLdouble centerz , GLdouble upx , GLdouble upy , GLdouble upz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluLookAt (
+ JNIEnv *env, jobject obj,
+ jdouble eyex,
+ jdouble eyey,
+ jdouble eyez,
+ jdouble centerx,
+ jdouble centery,
+ jdouble centerz,
+ jdouble upx,
+ jdouble upy,
+ jdouble upz)
+ {
+
+ gluLookAt (
+ (GLdouble) eyex,
+ (GLdouble) eyey,
+ (GLdouble) eyez,
+ (GLdouble) centerx,
+ (GLdouble) centery,
+ (GLdouble) centerz,
+ (GLdouble) upx,
+ (GLdouble) upy,
+ (GLdouble) upz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluOrtho2D ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluOrtho2D (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top)
+ {
+
+ gluOrtho2D (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPerspective ( GLdouble fovy , GLdouble aspect , GLdouble zNear , GLdouble zFar ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPerspective (
+ JNIEnv *env, jobject obj,
+ jdouble fovy,
+ jdouble aspect,
+ jdouble zNear,
+ jdouble zFar)
+ {
+
+ gluPerspective (
+ (GLdouble) fovy,
+ (GLdouble) aspect,
+ (GLdouble) zNear,
+ (GLdouble) zFar
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPickMatrix ( GLdouble x , GLdouble y , GLdouble width , GLdouble height , GLint * viewport ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPickMatrix (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble width,
+ jdouble height,
+ jintArray viewport)
+ {
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+
+ if(viewport!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, viewport, &isCopiedArray4);
+ }
+ gluPickMatrix (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) width,
+ (GLdouble) height,
+ (GLint *) ptr4
+ );
+
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluProject ( GLdouble objx , GLdouble objy , GLdouble objz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * winx , GLdouble * winy , GLdouble * winz ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluProject (
+ JNIEnv *env, jobject obj,
+ jdouble objx,
+ jdouble objy,
+ jdouble objz,
+ jdoubleArray modelMatrix,
+ jdoubleArray projMatrix,
+ jintArray viewport,
+ jdoubleArray winx,
+ jdoubleArray winy,
+ jdoubleArray winz)
+ {
+ jint ret;
+
+ jdouble *ptr3 = NULL;
+ jdouble *ptr4 = NULL;
+ jint *ptr5 = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, modelMatrix, 0);
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, projMatrix, 0);
+ }
+ if(viewport!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, viewport, 0);
+ }
+ if(winx!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, winx, &isCopiedArray6);
+ }
+ if(winy!=NULL)
+ {
+ ptr7 = (*env)->GetDoubleArrayElements(env, winy, &isCopiedArray7);
+ }
+ if(winz!=NULL)
+ {
+ ptr8 = (*env)->GetDoubleArrayElements(env, winz, &isCopiedArray8);
+ }
+ ret = (jint) gluProject (
+ (GLdouble) objx,
+ (GLdouble) objy,
+ (GLdouble) objz,
+ (const GLdouble *) ptr3,
+ (const GLdouble *) ptr4,
+ (const GLint *) ptr5,
+ (GLdouble *) ptr6,
+ (GLdouble *) ptr7,
+ (GLdouble *) ptr8
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, modelMatrix, ptr3, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, projMatrix, ptr4, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr5, JNI_ABORT);
+ }
+ if(winx!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, winx, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(winy!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, winy, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(winz!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, winz, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluUnProject ( GLdouble winx , GLdouble winy , GLdouble winz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * objx , GLdouble * objy , GLdouble * objz ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluUnProject (
+ JNIEnv *env, jobject obj,
+ jdouble winx,
+ jdouble winy,
+ jdouble winz,
+ jdoubleArray modelMatrix,
+ jdoubleArray projMatrix,
+ jintArray viewport,
+ jdoubleArray objx,
+ jdoubleArray objy,
+ jdoubleArray objz)
+ {
+ jint ret;
+
+ jdouble *ptr3 = NULL;
+ jdouble *ptr4 = NULL;
+ jint *ptr5 = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, modelMatrix, 0);
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, projMatrix, 0);
+ }
+ if(viewport!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, viewport, 0);
+ }
+ if(objx!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, objx, &isCopiedArray6);
+ }
+ if(objy!=NULL)
+ {
+ ptr7 = (*env)->GetDoubleArrayElements(env, objy, &isCopiedArray7);
+ }
+ if(objz!=NULL)
+ {
+ ptr8 = (*env)->GetDoubleArrayElements(env, objz, &isCopiedArray8);
+ }
+ ret = (jint) gluUnProject (
+ (GLdouble) winx,
+ (GLdouble) winy,
+ (GLdouble) winz,
+ (const GLdouble *) ptr3,
+ (const GLdouble *) ptr4,
+ (const GLint *) ptr5,
+ (GLdouble *) ptr6,
+ (GLdouble *) ptr7,
+ (GLdouble *) ptr8
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, modelMatrix, ptr3, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, projMatrix, ptr4, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr5, JNI_ABORT);
+ }
+ if(objx!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, objx, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(objy!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, objy, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(objz!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, objz, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluScaleImage ( GLenum format , GLsizei widthin , GLsizei heightin , GLenum typein , const char * datain , GLsizei widthout , GLsizei heightout , GLenum typeout , char * dataout ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluScaleImage (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint widthin,
+ jint heightin,
+ jint typein,
+ jbyteArray datain,
+ jint widthout,
+ jint heightout,
+ jint typeout,
+ jbyteArray dataout)
+ {
+ jint ret;
+
+ jbyte *ptr4 = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jbyte *ptr8 = NULL;
+
+ if(datain!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, datain, 0);
+ }
+ if(dataout!=NULL)
+ {
+ ptr8 = (*env)->GetByteArrayElements(env, dataout, &isCopiedArray8);
+ }
+ ret = (jint) gluScaleImage (
+ (GLenum) format,
+ (GLsizei) widthin,
+ (GLsizei) heightin,
+ (GLenum) typein,
+ (const char *) ptr4,
+ (GLsizei) widthout,
+ (GLsizei) heightout,
+ (GLenum) typeout,
+ (char *) ptr8
+ );
+
+ if(datain!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, datain, ptr4, JNI_ABORT);
+ }
+ if(dataout!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, dataout, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild1DMipmaps ( GLenum target , GLint components , GLint width , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ jint ret;
+
+ jbyte *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ jint ret;
+
+ jshort *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ jint ret;
+
+ jint *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ jint ret;
+
+ jfloat *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ jint ret;
+
+ jdouble *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ jint ret;
+
+ jboolean *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ jint ret;
+
+ jlong *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild2DMipmaps ( GLenum target , GLint components , GLint width , GLint height , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ jint ret;
+
+ jbyte *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ jint ret;
+
+ jshort *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ jint ret;
+
+ jint *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ jint ret;
+
+ jfloat *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ jint ret;
+
+ jdouble *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ jint ret;
+
+ jboolean *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ jint ret;
+
+ jlong *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUquadricObj * gluNewQuadric ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewQuadric (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewQuadric (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricDrawStyle ( GLUquadricObj * quadObject , GLenum drawStyle ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricDrawStyle (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint drawStyle)
+ {
+
+ gluQuadricDrawStyle (
+ (GLUquadricObj *) quadObject,
+ (GLenum) drawStyle
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricOrientation ( GLUquadricObj * quadObject , GLenum orientation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricOrientation (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint orientation)
+ {
+
+ gluQuadricOrientation (
+ (GLUquadricObj *) quadObject,
+ (GLenum) orientation
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricNormals ( GLUquadricObj * quadObject , GLenum normals ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricNormals (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint normals)
+ {
+
+ gluQuadricNormals (
+ (GLUquadricObj *) quadObject,
+ (GLenum) normals
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricTexture ( GLUquadricObj * quadObject , GLboolean textureCoords ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricTexture (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jboolean textureCoords)
+ {
+
+ gluQuadricTexture (
+ (GLUquadricObj *) quadObject,
+ (GLboolean) textureCoords
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluCylinder ( GLUquadricObj * qobj , GLdouble baseRadius , GLdouble topRadius , GLdouble height , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluCylinder (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble baseRadius,
+ jdouble topRadius,
+ jdouble height,
+ jint slices,
+ jint stacks)
+ {
+
+ gluCylinder (
+ (GLUquadricObj *) qobj,
+ (GLdouble) baseRadius,
+ (GLdouble) topRadius,
+ (GLdouble) height,
+ (GLint) slices,
+ (GLint) stacks
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluSphere ( GLUquadricObj * qobj , GLdouble radius , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluSphere (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble radius,
+ jint slices,
+ jint stacks)
+ {
+
+ gluSphere (
+ (GLUquadricObj *) qobj,
+ (GLdouble) radius,
+ (GLint) slices,
+ (GLint) stacks
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluDisk (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble innerRadius,
+ jdouble outerRadius,
+ jint slices,
+ jint loops)
+ {
+
+ gluDisk (
+ (GLUquadricObj *) qobj,
+ (GLdouble) innerRadius,
+ (GLdouble) outerRadius,
+ (GLint) slices,
+ (GLint) loops
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPartialDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops , GLdouble startAngle , GLdouble sweepAngle ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPartialDisk (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble innerRadius,
+ jdouble outerRadius,
+ jint slices,
+ jint loops,
+ jdouble startAngle,
+ jdouble sweepAngle)
+ {
+
+ gluPartialDisk (
+ (GLUquadricObj *) qobj,
+ (GLdouble) innerRadius,
+ (GLdouble) outerRadius,
+ (GLint) slices,
+ (GLint) loops,
+ (GLdouble) startAngle,
+ (GLdouble) sweepAngle
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUnurbsObj * gluNewNurbsRenderer ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewNurbsRenderer (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewNurbsRenderer (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLoadSamplingMatrices ( GLUnurbsObj * nobj , const GLfloat modelMatrix [ 16 ] , const GLfloat projMatrix [ 16 ] , const GLint viewport [ 4 ] ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluLoadSamplingMatrices (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jfloatArray modelMatrix,
+ jfloatArray projMatrix,
+ jintArray viewport)
+ {
+ jfloat *ptr1 = NULL;
+ jfloat *ptr2 = NULL;
+ jint *ptr3 = NULL;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, modelMatrix, 0);
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, projMatrix, 0);
+ }
+ if(viewport!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, viewport, 0);
+ }
+ gluLoadSamplingMatrices (
+ (GLUnurbsObj *) nobj,
+ (const GLfloat *) ptr1,
+ (const GLfloat *) ptr2,
+ (const GLint *) ptr3
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, modelMatrix, ptr1, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, projMatrix, ptr2, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsProperty (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint property,
+ jfloat value)
+ {
+
+ gluNurbsProperty (
+ (GLUnurbsObj *) nobj,
+ (GLenum) property,
+ (GLfloat) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat * value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluGetNurbsProperty (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint property,
+ jfloatArray value)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(value!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, value, &isCopiedArray2);
+ }
+ gluGetNurbsProperty (
+ (GLUnurbsObj *) nobj,
+ (GLenum) property,
+ (GLfloat *) ptr2
+ );
+
+ if(value!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, value, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginCurve (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndCurve (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsCurve ( GLUnurbsObj * nobj , GLint nknots , GLfloat * knot , GLint stride , GLfloat * ctlarray , GLint order , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint nknots,
+ jfloatArray knot,
+ jint stride,
+ jfloatArray ctlarray,
+ jint order,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+
+ if(knot!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, knot, &isCopiedArray2);
+ }
+ if(ctlarray!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, ctlarray, &isCopiedArray4);
+ }
+ gluNurbsCurve (
+ (GLUnurbsObj *) nobj,
+ (GLint) nknots,
+ (GLfloat *) ptr2,
+ (GLint) stride,
+ (GLfloat *) ptr4,
+ (GLint) order,
+ (GLenum) type
+ );
+
+ if(knot!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, knot, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(ctlarray!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ctlarray, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginSurface (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndSurface (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsSurface ( GLUnurbsObj * nobj , GLint sknot_count , GLfloat * sknot , GLint tknot_count , GLfloat * tknot , GLint s_stride , GLint t_stride , GLfloat * ctlarray , GLint sorder , GLint torder , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint sknot_count,
+ jfloatArray sknot,
+ jint tknot_count,
+ jfloatArray tknot,
+ jint s_stride,
+ jint t_stride,
+ jfloatArray ctlarray,
+ jint sorder,
+ jint torder,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jfloat *ptr7 = NULL;
+
+ if(sknot!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, sknot, &isCopiedArray2);
+ }
+ if(tknot!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, tknot, &isCopiedArray4);
+ }
+ if(ctlarray!=NULL)
+ {
+ ptr7 = (*env)->GetFloatArrayElements(env, ctlarray, &isCopiedArray7);
+ }
+ gluNurbsSurface (
+ (GLUnurbsObj *) nobj,
+ (GLint) sknot_count,
+ (GLfloat *) ptr2,
+ (GLint) tknot_count,
+ (GLfloat *) ptr4,
+ (GLint) s_stride,
+ (GLint) t_stride,
+ (GLfloat *) ptr7,
+ (GLint) sorder,
+ (GLint) torder,
+ (GLenum) type
+ );
+
+ if(sknot!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, sknot, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(tknot!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, tknot, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(ctlarray!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ctlarray, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginTrim (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginTrim (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndTrim (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndTrim (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPwlCurve ( GLUnurbsObj * nobj , GLint count , GLfloat * array , GLint stride , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPwlCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint count,
+ jfloatArray array,
+ jint stride,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(array!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, array, &isCopiedArray2);
+ }
+ gluPwlCurve (
+ (GLUnurbsObj *) nobj,
+ (GLint) count,
+ (GLfloat *) ptr2,
+ (GLint) stride,
+ (GLenum) type
+ );
+
+ if(array!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, array, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUtesselator * gluNewTess ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewTess (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewTess (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginPolygon ( GLUtesselator * tobj , void * polygon_data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3B (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jbyteArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetByteArrayElements(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3S (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jshortArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3I (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jintArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3F (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jfloatArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3D (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3Z (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jbooleanArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3J (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jlongArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetLongArrayElements(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginContour (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessBeginContour (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessVertex ( GLUtesselator * tobj , GLdouble coords [ 3 ] , void * vertex_data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3B (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jbyteArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3S (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jshortArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3I (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jintArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3F (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jfloatArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jdoubleArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3Z (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jbooleanArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3J (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jlongArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessEndContour (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessEndContour (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessEndPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessEndPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessProperty (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint which,
+ jdouble value)
+ {
+
+ gluTessProperty (
+ (GLUtesselator *) tobj,
+ (GLenum) which,
+ (GLdouble) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessNormal ( GLUtesselator * tobj , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessNormal (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+
+ gluTessNormal (
+ (GLUtesselator *) tobj,
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble * value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluGetTessProperty (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint which,
+ jdoubleArray value)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+
+ if(value!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, value, &isCopiedArray2);
+ }
+ gluGetTessProperty (
+ (GLUtesselator *) tobj,
+ (GLenum) which,
+ (GLdouble *) ptr2
+ );
+
+ if(value!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, value, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluBeginPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNextContour ( GLUtesselator * tobj , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNextContour (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint type)
+ {
+
+ gluNextContour (
+ (GLUtesselator *) tobj,
+ (GLenum) type
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluEndPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/C2J/glu-proto-auto.java b/C2J/glu-proto-auto.java
new file mode 100644
index 0000000..427639b
--- /dev/null
+++ b/C2J/glu-proto-auto.java
@@ -0,0 +1,704 @@
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: glu-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLUFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLookAt ( GLdouble eyex , GLdouble eyey , GLdouble eyez , GLdouble centerx , GLdouble centery , GLdouble centerz , GLdouble upx , GLdouble upy , GLdouble upz ) ;
+ * </pre>
+ */
+ public final native void gluLookAt (
+ double eyex,
+ double eyey,
+ double eyez,
+ double centerx,
+ double centery,
+ double centerz,
+ double upx,
+ double upy,
+ double upz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluOrtho2D ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top ) ;
+ * </pre>
+ */
+ public final native void gluOrtho2D (
+ double left,
+ double right,
+ double bottom,
+ double top
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPerspective ( GLdouble fovy , GLdouble aspect , GLdouble zNear , GLdouble zFar ) ;
+ * </pre>
+ */
+ public final native void gluPerspective (
+ double fovy,
+ double aspect,
+ double zNear,
+ double zFar
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPickMatrix ( GLdouble x , GLdouble y , GLdouble width , GLdouble height , GLint * viewport ) ;
+ * </pre>
+ */
+ public final native void gluPickMatrix (
+ double x,
+ double y,
+ double width,
+ double height,
+ int[] viewport
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluProject ( GLdouble objx , GLdouble objy , GLdouble objz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * winx , GLdouble * winy , GLdouble * winz ) ;
+ * </pre>
+ */
+ public final native int gluProject (
+ double objx,
+ double objy,
+ double objz,
+ double[] modelMatrix,
+ double[] projMatrix,
+ int[] viewport,
+ double[] winx,
+ double[] winy,
+ double[] winz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluUnProject ( GLdouble winx , GLdouble winy , GLdouble winz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * objx , GLdouble * objy , GLdouble * objz ) ;
+ * </pre>
+ */
+ public final native int gluUnProject (
+ double winx,
+ double winy,
+ double winz,
+ double[] modelMatrix,
+ double[] projMatrix,
+ int[] viewport,
+ double[] objx,
+ double[] objy,
+ double[] objz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluScaleImage ( GLenum format , GLsizei widthin , GLsizei heightin , GLenum typein , const char * datain , GLsizei widthout , GLsizei heightout , GLenum typeout , char * dataout ) ;
+ * </pre>
+ */
+ public final native int gluScaleImage (
+ int format,
+ int widthin,
+ int heightin,
+ int typein,
+ byte[] datain,
+ int widthout,
+ int heightout,
+ int typeout,
+ byte[] dataout
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild1DMipmaps ( GLenum target , GLint components , GLint width , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ public final native int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ byte[] data
+ ) ;
+ public final native int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ short[] data
+ ) ;
+ public final native int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ int[] data
+ ) ;
+ public final native int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ float[] data
+ ) ;
+ public final native int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ double[] data
+ ) ;
+ public final native int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ boolean[] data
+ ) ;
+ public final native int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ long[] data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild2DMipmaps ( GLenum target , GLint components , GLint width , GLint height , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ public final native int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] data
+ ) ;
+ public final native int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] data
+ ) ;
+ public final native int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] data
+ ) ;
+ public final native int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] data
+ ) ;
+ public final native int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] data
+ ) ;
+ public final native int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] data
+ ) ;
+ public final native int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUquadricObj * gluNewQuadric ( void ) ;
+ * </pre>
+ */
+ public final native int gluNewQuadric (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricDrawStyle ( GLUquadricObj * quadObject , GLenum drawStyle ) ;
+ * </pre>
+ */
+ public final native void gluQuadricDrawStyle (
+ int quadObject,
+ int drawStyle
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricOrientation ( GLUquadricObj * quadObject , GLenum orientation ) ;
+ * </pre>
+ */
+ public final native void gluQuadricOrientation (
+ int quadObject,
+ int orientation
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricNormals ( GLUquadricObj * quadObject , GLenum normals ) ;
+ * </pre>
+ */
+ public final native void gluQuadricNormals (
+ int quadObject,
+ int normals
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricTexture ( GLUquadricObj * quadObject , GLboolean textureCoords ) ;
+ * </pre>
+ */
+ public final native void gluQuadricTexture (
+ int quadObject,
+ boolean textureCoords
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluCylinder ( GLUquadricObj * qobj , GLdouble baseRadius , GLdouble topRadius , GLdouble height , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ public final native void gluCylinder (
+ int qobj,
+ double baseRadius,
+ double topRadius,
+ double height,
+ int slices,
+ int stacks
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluSphere ( GLUquadricObj * qobj , GLdouble radius , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ public final native void gluSphere (
+ int qobj,
+ double radius,
+ int slices,
+ int stacks
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops ) ;
+ * </pre>
+ */
+ public final native void gluDisk (
+ int qobj,
+ double innerRadius,
+ double outerRadius,
+ int slices,
+ int loops
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPartialDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops , GLdouble startAngle , GLdouble sweepAngle ) ;
+ * </pre>
+ */
+ public final native void gluPartialDisk (
+ int qobj,
+ double innerRadius,
+ double outerRadius,
+ int slices,
+ int loops,
+ double startAngle,
+ double sweepAngle
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUnurbsObj * gluNewNurbsRenderer ( void ) ;
+ * </pre>
+ */
+ public final native int gluNewNurbsRenderer (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLoadSamplingMatrices ( GLUnurbsObj * nobj , const GLfloat modelMatrix [ 16 ] , const GLfloat projMatrix [ 16 ] , const GLint viewport [ 4 ] ) ;
+ * </pre>
+ */
+ public final native void gluLoadSamplingMatrices (
+ int nobj,
+ float[] modelMatrix,
+ float[] projMatrix,
+ int[] viewport
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat value ) ;
+ * </pre>
+ */
+ public final native void gluNurbsProperty (
+ int nobj,
+ int property,
+ float value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat * value ) ;
+ * </pre>
+ */
+ public final native void gluGetNurbsProperty (
+ int nobj,
+ int property,
+ float[] value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public final native void gluBeginCurve (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public final native void gluEndCurve (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsCurve ( GLUnurbsObj * nobj , GLint nknots , GLfloat * knot , GLint stride , GLfloat * ctlarray , GLint order , GLenum type ) ;
+ * </pre>
+ */
+ public final native void gluNurbsCurve (
+ int nobj,
+ int nknots,
+ float[] knot,
+ int stride,
+ float[] ctlarray,
+ int order,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public final native void gluBeginSurface (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public final native void gluEndSurface (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsSurface ( GLUnurbsObj * nobj , GLint sknot_count , GLfloat * sknot , GLint tknot_count , GLfloat * tknot , GLint s_stride , GLint t_stride , GLfloat * ctlarray , GLint sorder , GLint torder , GLenum type ) ;
+ * </pre>
+ */
+ public final native void gluNurbsSurface (
+ int nobj,
+ int sknot_count,
+ float[] sknot,
+ int tknot_count,
+ float[] tknot,
+ int s_stride,
+ int t_stride,
+ float[] ctlarray,
+ int sorder,
+ int torder,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public final native void gluBeginTrim (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public final native void gluEndTrim (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPwlCurve ( GLUnurbsObj * nobj , GLint count , GLfloat * array , GLint stride , GLenum type ) ;
+ * </pre>
+ */
+ public final native void gluPwlCurve (
+ int nobj,
+ int count,
+ float[] array,
+ int stride,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUtesselator * gluNewTess ( void ) ;
+ * </pre>
+ */
+ public final native int gluNewTess (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginPolygon ( GLUtesselator * tobj , void * polygon_data ) ;
+ * </pre>
+ */
+ public final native void gluTessBeginPolygon (
+ int tobj,
+ byte[] polygon_data
+ ) ;
+ public final native void gluTessBeginPolygon (
+ int tobj,
+ short[] polygon_data
+ ) ;
+ public final native void gluTessBeginPolygon (
+ int tobj,
+ int[] polygon_data
+ ) ;
+ public final native void gluTessBeginPolygon (
+ int tobj,
+ float[] polygon_data
+ ) ;
+ public final native void gluTessBeginPolygon (
+ int tobj,
+ double[] polygon_data
+ ) ;
+ public final native void gluTessBeginPolygon (
+ int tobj,
+ boolean[] polygon_data
+ ) ;
+ public final native void gluTessBeginPolygon (
+ int tobj,
+ long[] polygon_data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public final native void gluTessBeginContour (
+ int tobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessVertex ( GLUtesselator * tobj , GLdouble coords [ 3 ] , void * vertex_data ) ;
+ * </pre>
+ */
+ public final native void gluTessVertex (
+ int tobj,
+ double[] coords,
+ byte[] vertex_data
+ ) ;
+ public final native void gluTessVertex (
+ int tobj,
+ double[] coords,
+ short[] vertex_data
+ ) ;
+ public final native void gluTessVertex (
+ int tobj,
+ double[] coords,
+ int[] vertex_data
+ ) ;
+ public final native void gluTessVertex (
+ int tobj,
+ double[] coords,
+ float[] vertex_data
+ ) ;
+ public final native void gluTessVertex (
+ int tobj,
+ double[] coords,
+ double[] vertex_data
+ ) ;
+ public final native void gluTessVertex (
+ int tobj,
+ double[] coords,
+ boolean[] vertex_data
+ ) ;
+ public final native void gluTessVertex (
+ int tobj,
+ double[] coords,
+ long[] vertex_data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public final native void gluTessEndContour (
+ int tobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public final native void gluTessEndPolygon (
+ int tobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble value ) ;
+ * </pre>
+ */
+ public final native void gluTessProperty (
+ int tobj,
+ int which,
+ double value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessNormal ( GLUtesselator * tobj , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public final native void gluTessNormal (
+ int tobj,
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble * value ) ;
+ * </pre>
+ */
+ public final native void gluGetTessProperty (
+ int tobj,
+ int which,
+ double[] value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public final native void gluBeginPolygon (
+ int tobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNextContour ( GLUtesselator * tobj , GLenum type ) ;
+ * </pre>
+ */
+ public final native void gluNextContour (
+ int tobj,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public final native void gluEndPolygon (
+ int tobj
+ ) ;
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/C2J/glu-protoVirt-auto.java b/C2J/glu-protoVirt-auto.java
new file mode 100644
index 0000000..4fcc4ca
--- /dev/null
+++ b/C2J/glu-protoVirt-auto.java
@@ -0,0 +1,704 @@
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: glu-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLUFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLookAt ( GLdouble eyex , GLdouble eyey , GLdouble eyez , GLdouble centerx , GLdouble centery , GLdouble centerz , GLdouble upx , GLdouble upy , GLdouble upz ) ;
+ * </pre>
+ */
+ public void gluLookAt (
+ double eyex,
+ double eyey,
+ double eyez,
+ double centerx,
+ double centery,
+ double centerz,
+ double upx,
+ double upy,
+ double upz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluOrtho2D ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top ) ;
+ * </pre>
+ */
+ public void gluOrtho2D (
+ double left,
+ double right,
+ double bottom,
+ double top
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPerspective ( GLdouble fovy , GLdouble aspect , GLdouble zNear , GLdouble zFar ) ;
+ * </pre>
+ */
+ public void gluPerspective (
+ double fovy,
+ double aspect,
+ double zNear,
+ double zFar
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPickMatrix ( GLdouble x , GLdouble y , GLdouble width , GLdouble height , GLint * viewport ) ;
+ * </pre>
+ */
+ public void gluPickMatrix (
+ double x,
+ double y,
+ double width,
+ double height,
+ int[] viewport
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluProject ( GLdouble objx , GLdouble objy , GLdouble objz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * winx , GLdouble * winy , GLdouble * winz ) ;
+ * </pre>
+ */
+ public int gluProject (
+ double objx,
+ double objy,
+ double objz,
+ double[] modelMatrix,
+ double[] projMatrix,
+ int[] viewport,
+ double[] winx,
+ double[] winy,
+ double[] winz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluUnProject ( GLdouble winx , GLdouble winy , GLdouble winz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * objx , GLdouble * objy , GLdouble * objz ) ;
+ * </pre>
+ */
+ public int gluUnProject (
+ double winx,
+ double winy,
+ double winz,
+ double[] modelMatrix,
+ double[] projMatrix,
+ int[] viewport,
+ double[] objx,
+ double[] objy,
+ double[] objz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluScaleImage ( GLenum format , GLsizei widthin , GLsizei heightin , GLenum typein , const char * datain , GLsizei widthout , GLsizei heightout , GLenum typeout , char * dataout ) ;
+ * </pre>
+ */
+ public int gluScaleImage (
+ int format,
+ int widthin,
+ int heightin,
+ int typein,
+ byte[] datain,
+ int widthout,
+ int heightout,
+ int typeout,
+ byte[] dataout
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild1DMipmaps ( GLenum target , GLint components , GLint width , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ public int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ byte[] data
+ ) ;
+ public int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ short[] data
+ ) ;
+ public int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ int[] data
+ ) ;
+ public int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ float[] data
+ ) ;
+ public int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ double[] data
+ ) ;
+ public int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ boolean[] data
+ ) ;
+ public int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ long[] data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild2DMipmaps ( GLenum target , GLint components , GLint width , GLint height , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ public int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] data
+ ) ;
+ public int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] data
+ ) ;
+ public int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] data
+ ) ;
+ public int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] data
+ ) ;
+ public int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] data
+ ) ;
+ public int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] data
+ ) ;
+ public int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUquadricObj * gluNewQuadric ( void ) ;
+ * </pre>
+ */
+ public int gluNewQuadric (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricDrawStyle ( GLUquadricObj * quadObject , GLenum drawStyle ) ;
+ * </pre>
+ */
+ public void gluQuadricDrawStyle (
+ int quadObject,
+ int drawStyle
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricOrientation ( GLUquadricObj * quadObject , GLenum orientation ) ;
+ * </pre>
+ */
+ public void gluQuadricOrientation (
+ int quadObject,
+ int orientation
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricNormals ( GLUquadricObj * quadObject , GLenum normals ) ;
+ * </pre>
+ */
+ public void gluQuadricNormals (
+ int quadObject,
+ int normals
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricTexture ( GLUquadricObj * quadObject , GLboolean textureCoords ) ;
+ * </pre>
+ */
+ public void gluQuadricTexture (
+ int quadObject,
+ boolean textureCoords
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluCylinder ( GLUquadricObj * qobj , GLdouble baseRadius , GLdouble topRadius , GLdouble height , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ public void gluCylinder (
+ int qobj,
+ double baseRadius,
+ double topRadius,
+ double height,
+ int slices,
+ int stacks
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluSphere ( GLUquadricObj * qobj , GLdouble radius , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ public void gluSphere (
+ int qobj,
+ double radius,
+ int slices,
+ int stacks
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops ) ;
+ * </pre>
+ */
+ public void gluDisk (
+ int qobj,
+ double innerRadius,
+ double outerRadius,
+ int slices,
+ int loops
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPartialDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops , GLdouble startAngle , GLdouble sweepAngle ) ;
+ * </pre>
+ */
+ public void gluPartialDisk (
+ int qobj,
+ double innerRadius,
+ double outerRadius,
+ int slices,
+ int loops,
+ double startAngle,
+ double sweepAngle
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUnurbsObj * gluNewNurbsRenderer ( void ) ;
+ * </pre>
+ */
+ public int gluNewNurbsRenderer (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLoadSamplingMatrices ( GLUnurbsObj * nobj , const GLfloat modelMatrix [ 16 ] , const GLfloat projMatrix [ 16 ] , const GLint viewport [ 4 ] ) ;
+ * </pre>
+ */
+ public void gluLoadSamplingMatrices (
+ int nobj,
+ float[] modelMatrix,
+ float[] projMatrix,
+ int[] viewport
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat value ) ;
+ * </pre>
+ */
+ public void gluNurbsProperty (
+ int nobj,
+ int property,
+ float value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat * value ) ;
+ * </pre>
+ */
+ public void gluGetNurbsProperty (
+ int nobj,
+ int property,
+ float[] value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public void gluBeginCurve (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public void gluEndCurve (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsCurve ( GLUnurbsObj * nobj , GLint nknots , GLfloat * knot , GLint stride , GLfloat * ctlarray , GLint order , GLenum type ) ;
+ * </pre>
+ */
+ public void gluNurbsCurve (
+ int nobj,
+ int nknots,
+ float[] knot,
+ int stride,
+ float[] ctlarray,
+ int order,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public void gluBeginSurface (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public void gluEndSurface (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsSurface ( GLUnurbsObj * nobj , GLint sknot_count , GLfloat * sknot , GLint tknot_count , GLfloat * tknot , GLint s_stride , GLint t_stride , GLfloat * ctlarray , GLint sorder , GLint torder , GLenum type ) ;
+ * </pre>
+ */
+ public void gluNurbsSurface (
+ int nobj,
+ int sknot_count,
+ float[] sknot,
+ int tknot_count,
+ float[] tknot,
+ int s_stride,
+ int t_stride,
+ float[] ctlarray,
+ int sorder,
+ int torder,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public void gluBeginTrim (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public void gluEndTrim (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPwlCurve ( GLUnurbsObj * nobj , GLint count , GLfloat * array , GLint stride , GLenum type ) ;
+ * </pre>
+ */
+ public void gluPwlCurve (
+ int nobj,
+ int count,
+ float[] array,
+ int stride,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUtesselator * gluNewTess ( void ) ;
+ * </pre>
+ */
+ public int gluNewTess (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginPolygon ( GLUtesselator * tobj , void * polygon_data ) ;
+ * </pre>
+ */
+ public void gluTessBeginPolygon (
+ int tobj,
+ byte[] polygon_data
+ ) ;
+ public void gluTessBeginPolygon (
+ int tobj,
+ short[] polygon_data
+ ) ;
+ public void gluTessBeginPolygon (
+ int tobj,
+ int[] polygon_data
+ ) ;
+ public void gluTessBeginPolygon (
+ int tobj,
+ float[] polygon_data
+ ) ;
+ public void gluTessBeginPolygon (
+ int tobj,
+ double[] polygon_data
+ ) ;
+ public void gluTessBeginPolygon (
+ int tobj,
+ boolean[] polygon_data
+ ) ;
+ public void gluTessBeginPolygon (
+ int tobj,
+ long[] polygon_data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public void gluTessBeginContour (
+ int tobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessVertex ( GLUtesselator * tobj , GLdouble coords [ 3 ] , void * vertex_data ) ;
+ * </pre>
+ */
+ public void gluTessVertex (
+ int tobj,
+ double[] coords,
+ byte[] vertex_data
+ ) ;
+ public void gluTessVertex (
+ int tobj,
+ double[] coords,
+ short[] vertex_data
+ ) ;
+ public void gluTessVertex (
+ int tobj,
+ double[] coords,
+ int[] vertex_data
+ ) ;
+ public void gluTessVertex (
+ int tobj,
+ double[] coords,
+ float[] vertex_data
+ ) ;
+ public void gluTessVertex (
+ int tobj,
+ double[] coords,
+ double[] vertex_data
+ ) ;
+ public void gluTessVertex (
+ int tobj,
+ double[] coords,
+ boolean[] vertex_data
+ ) ;
+ public void gluTessVertex (
+ int tobj,
+ double[] coords,
+ long[] vertex_data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public void gluTessEndContour (
+ int tobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public void gluTessEndPolygon (
+ int tobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble value ) ;
+ * </pre>
+ */
+ public void gluTessProperty (
+ int tobj,
+ int which,
+ double value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessNormal ( GLUtesselator * tobj , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public void gluTessNormal (
+ int tobj,
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble * value ) ;
+ * </pre>
+ */
+ public void gluGetTessProperty (
+ int tobj,
+ int which,
+ double[] value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public void gluBeginPolygon (
+ int tobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNextContour ( GLUtesselator * tobj , GLenum type ) ;
+ * </pre>
+ */
+ public void gluNextContour (
+ int tobj,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public void gluEndPolygon (
+ int tobj
+ ) ;
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/C2J/makefile b/C2J/makefile
new file mode 100755
index 0000000..a270f5f
--- /dev/null
+++ b/C2J/makefile
@@ -0,0 +1,402 @@
+
+.SUFFIXES : .jj .java .class .html
+
+.jj.java:
+ javacc $<
+
+.jj.html:
+ jjdoc $<
+ if [ ! -e ../docs ] ; then mkdir ../docs ; fi
+ if [ ! -e ../docs/html ] ; then mkdir ../docs/html ; fi
+ mv *.html ../docs/html
+
+.java.class:
+ javac -O $<
+
+
+all: C2J htmldoc gl2j gl2c
+
+gl2j: \
+ ../gl4java/GLEnum.java \
+ ../gl4java/GLUEnum.java \
+ ../gl4java/GLFunc.java \
+ ../gl4java/GLFuncJauJNI.java \
+ ../gl4java/GLFuncJauJNInf.java \
+ ../gl4java/GLUFunc.java \
+ ../gl4java/GLUFuncJauJNI.java \
+ ../gl4java/GLUFuncJauJNInf.java
+
+gl2c: \
+ ../CNativeCode/OpenGL_JauJNI_dynfuncs.c \
+ ../CNativeCode/OpenGL_JauJNI12_dynfuncs.c \
+ ../CNativeCode/OpenGL_JauJNInf_dynfuncs.c \
+ ../CNativeCode/OpenGL_JauJNItst_dynfuncs.c \
+ ../CNativeCode/OpenGL_JauJNI12tst_dynfuncs.c \
+ ../CNativeCode/OpenGLU_JauJNI_funcs.c \
+ ../CNativeCode/OpenGLU_JauJNI12_funcs.c \
+ ../CNativeCode/OpenGLU_JauJNInf_funcs.c \
+ ../CNativeCode/OpenGLU_JauJNItst_funcs.c \
+ ../CNativeCode/OpenGLU_JauJNI12tst_funcs.c
+
+C2J.class: C2J.java CFuncVariable.class CFuncDeclaration.class
+
+C2J: C2J.class
+
+C2C: C2C.class
+
+
+htmldoc: C2J.html
+
+
+#
+# for java class gl4java.GLEnum
+#
+gl-enum-auto.java: gl-enum-auto.orig C2J.class
+ java C2J jnijava gl4java_GLEnum gl-enum-auto.orig > gl-enum-auto.java
+
+../gl4java/GLEnum.java: warning.skel \
+ gl-enum-auto.java \
+ manual/gl-enum-manualCoded.java
+ cat warning.skel \
+ manual/gl-enum-manualCoded.java \
+ gl-enum-auto.java \
+ > ../gl4java/GLEnum.java
+ printf "\n\n}\n\n" >> ../gl4java/GLEnum.java
+
+#
+# for java class gl4java.GLUEnum
+#
+glu-enum-auto.java: glu-enum-auto.orig C2J.class
+ java C2J jnijava gl4java_GLUEnum glu-enum-auto.orig > glu-enum-auto.java
+
+../gl4java/GLUEnum.java: warning.skel \
+ glu-enum-auto.java \
+ manual/glu-enum-manualCoded.java
+ cat warning.skel \
+ manual/glu-enum-manualCoded.java \
+ glu-enum-auto.java \
+ > ../gl4java/GLUEnum.java
+ printf "\n\n}\n\n" >> ../gl4java/GLUEnum.java
+
+#
+# Common for gl4java.GLFuncJauJNI and gl4java.GLFuncJauJNInf
+# Here we create the final part !
+#
+gl-proto-auto.java: gl-proto-auto.orig C2J.class
+ java C2J -echo jnijavaf gl4java_GLFuncJauJNI gl-proto-auto.orig \
+ > gl-proto-auto.java
+
+#
+# Common for gl4java.GLUFuncJauJNI and gl4java.GLUFuncJauJNInf
+# Here we create the final part !
+#
+glu-proto-auto.java: glu-proto-auto.orig C2J.class
+ java C2J -echo jnijavaf gl4java_GLUFuncJauJNI glu-proto-auto.orig \
+ > glu-proto-auto.java
+
+#
+# for java interface gl4java.GLFunc
+#
+gl-funcnames.skel: gl-proto-auto.orig C2J.class
+ java C2J glfnames gl4java_GLFuncJauJNI gl-proto-auto.orig \
+ > gl-funcnames.skel
+
+gl-protoVirt-auto.java: gl-proto-auto.java
+ cat gl-proto-auto.java | \
+ sed -e 's/final native //g' > gl-protoVirt-auto.java
+
+../gl4java/GLFunc.java: warning.skel \
+ manual/gl-manualCodedVirt1.java \
+ manual/gl-manualCodedVirt2.java \
+ gl-funcnames.skel \
+ gl-protoVirt-auto.java
+ cat warning.skel \
+ manual/gl-manualCodedVirt1.java \
+ gl-funcnames.skel \
+ manual/gl-manualCodedVirt2.java \
+ gl-protoVirt-auto.java \
+ > ../gl4java/GLFunc.java
+ printf "\n\n}\n\n" >> ../gl4java/GLFunc.java
+
+#
+# for java interface gl4java.GLUFunc
+#
+glu-protoVirt-auto.java: glu-proto-auto.java
+ cat glu-proto-auto.java | \
+ sed -e 's/final native //g' > glu-protoVirt-auto.java
+
+../gl4java/GLUFunc.java: warning.skel \
+ manual/glu-manualCodedVirt.java \
+ glu-protoVirt-auto.java
+ cat warning.skel \
+ manual/glu-manualCodedVirt.java \
+ glu-protoVirt-auto.java \
+ > ../gl4java/GLUFunc.java
+ printf "\n\n}\n\n" >> ../gl4java/GLUFunc.java
+
+#
+# for java class gl4java.GLFuncJauJNI
+#
+# This class is the default implementation and is final -> security
+#
+../gl4java/GLFuncJauJNI.java: warning.skel \
+ manual/gl-manualCodedImplJNI1.java \
+ manual/gl-manualCodedImplJNI2.java \
+ gl-proto-auto.java
+ cat warning.skel \
+ manual/gl-manualCodedImplJNI1.java \
+ manual/gl-manualCodedImplJNI2.java \
+ gl-proto-auto.java \
+ > ../gl4java/GLFuncJauJNI.java
+ printf "\n\n}\n\n" >> ../gl4java/GLFuncJauJNI.java
+
+#
+# for java class gl4java.GLFuncJauJNInf
+#
+# This class is for pipelining purposes, and can be overloaded
+#
+../gl4java/GLFuncJauJNInf.java: warning.skel \
+ manual/gl-manualCodedImplJNI1.java \
+ manual/gl-manualCodedImplJNI2.java \
+ gl-proto-auto.java
+ cat warning.skel \
+ manual/gl-manualCodedImplJNI1.java \
+ manual/gl-manualCodedImplJNI2.java \
+ gl-proto-auto.java \
+ > ../gl4java/GLFuncJauJNInf.java.tmp
+ printf "\n\n}\n\n" >> ../gl4java/GLFuncJauJNInf.java.tmp
+ cat ../gl4java/GLFuncJauJNInf.java.tmp | \
+ sed -e 's/final //g' -e 's/GLFuncJauJNI/GLFuncJauJNInf/g' \
+ > ../gl4java/GLFuncJauJNInf.java
+ rm ../gl4java/GLFuncJauJNInf.java.tmp
+
+#
+# for java class gl4java.GLUFuncJauJNI
+#
+# This class is the default implementation and is final -> security
+#
+../gl4java/GLUFuncJauJNI.java: warning.skel \
+ manual/glu-manualCodedImplJNI1.java \
+ manual/glu-manualCodedImplJNI2.java \
+ glu-proto-auto.java
+ cat warning.skel \
+ manual/glu-manualCodedImplJNI1.java \
+ manual/glu-manualCodedImplJNI2.java \
+ glu-proto-auto.java \
+ > ../gl4java/GLUFuncJauJNI.java
+ printf "\n\n}\n\n" >> ../gl4java/GLUFuncJauJNI.java
+
+#
+# for java class gl4java.GLUFuncJauJNInf
+#
+# This class is for pipelining purposes, and can be overloaded
+#
+../gl4java/GLUFuncJauJNInf.java: warning.skel \
+ manual/glu-manualCodedImplJNI1.java \
+ manual/glu-manualCodedImplJNI2.java \
+ glu-proto-auto.java
+ cat warning.skel \
+ manual/glu-manualCodedImplJNI1.java \
+ manual/glu-manualCodedImplJNI2.java \
+ glu-proto-auto.java \
+ > ../gl4java/GLUFuncJauJNInf.java.tmp
+ printf "\n\n}\n\n" >> ../gl4java/GLUFuncJauJNInf.java.tmp
+ cat ../gl4java/GLUFuncJauJNInf.java.tmp | \
+ sed -e 's/final //g' -e 's/GLUFuncJauJNI/GLUFuncJauJNInf/g' \
+ > ../gl4java/GLUFuncJauJNInf.java
+ rm ../gl4java/GLUFuncJauJNInf.java.tmp
+
+#
+# for native library gl4javaJauJNI[32]
+#
+gl-proto-dynauto.c: gl-proto-auto.orig C2J.class
+ java C2J -echo jnic-dyn gl4java_GLFuncJauJNI gl-proto-auto.orig \
+ > gl-proto-dynauto.c
+
+../CNativeCode/OpenGL_JauJNI_dynfuncs.c: warning.skel \
+ ../CNativeCode/OpenGL_funcs.c.skel \
+ manual/gl-manualCodedImplJNI.c \
+ gl-proto-dynauto.c
+ cat warning.skel \
+ ../CNativeCode/OpenGL_funcs.c.skel \
+ manual/gl-manualCodedImplJNI.c \
+ gl-proto-dynauto.c \
+ > ../CNativeCode/OpenGL_JauJNI_dynfuncs.c
+
+gl-proto-dynauto-tst.c: gl-proto-auto.orig C2J.class
+ java C2J -echo -jnic-trial jnic-dyn gl4java_GLFuncJauJNI gl-proto-auto.orig \
+ > gl-proto-dynauto-tst.c
+
+../CNativeCode/OpenGL_JauJNItst_dynfuncs.c: warning.skel \
+ ../CNativeCode/OpenGL_funcs.c.skel \
+ manual/gl-manualCodedImplJNI.c \
+ gl-proto-dynauto-tst.c
+ cat warning.skel \
+ ../CNativeCode/OpenGL_funcs.c.skel \
+ manual/gl-manualCodedImplJNI.c \
+ gl-proto-dynauto-tst.c \
+ > ../CNativeCode/OpenGL_JauJNItst_dynfuncs.c
+
+gl-proto-dynauto-jni12.c: gl-proto-auto.orig C2J.class
+ java C2J -echo -jnic-criticalarray jnic-dyn gl4java_GLFuncJauJNI gl-proto-auto.orig \
+ > gl-proto-dynauto-jni12.c
+
+../CNativeCode/OpenGL_JauJNI12_dynfuncs.c: warning.skel \
+ ../CNativeCode/OpenGL_funcs.c.skel \
+ manual/gl-manualCodedImplJNI.c \
+ gl-proto-dynauto-jni12.c
+ cat warning.skel \
+ ../CNativeCode/OpenGL_funcs.c.skel \
+ manual/gl-manualCodedImplJNI.c \
+ gl-proto-dynauto-jni12.c \
+ > ../CNativeCode/OpenGL_JauJNI12_dynfuncs.c
+
+gl-proto-dynauto-tst-jni12.c: gl-proto-auto.orig C2J.class
+ java C2J -echo -jnic-criticalarray -jnic-trial jnic-dyn gl4java_GLFuncJauJNI gl-proto-auto.orig \
+ > gl-proto-dynauto-tst-jni12.c
+
+../CNativeCode/OpenGL_JauJNI12tst_dynfuncs.c: warning.skel \
+ ../CNativeCode/OpenGL_funcs.c.skel \
+ manual/gl-manualCodedImplJNI.c \
+ gl-proto-dynauto-tst-jni12.c
+ cat warning.skel \
+ ../CNativeCode/OpenGL_funcs.c.skel \
+ manual/gl-manualCodedImplJNI.c \
+ gl-proto-dynauto-tst-jni12.c \
+ > ../CNativeCode/OpenGL_JauJNI12tst_dynfuncs.c
+
+glu-proto-auto.c: glu-proto-auto.orig C2J.class
+ java C2J -echo jnic gl4java_GLUFuncJauJNI glu-proto-auto.orig \
+ > glu-proto-auto.c
+
+../CNativeCode/OpenGLU_JauJNI_funcs.c: C2J.class \
+ warning.skel \
+ ../CNativeCode/OpenGLU_funcs.c.skel \
+ manual/glu-manualCodedImplJNI.c \
+ glu-proto-auto.c
+ cat warning.skel \
+ ../CNativeCode/OpenGLU_funcs.c.skel \
+ manual/glu-manualCodedImplJNI.c \
+ glu-proto-auto.c \
+ > ../CNativeCode/OpenGLU_JauJNI_funcs.c
+
+glu-proto-auto-tst.c: glu-proto-auto.orig C2J.class
+ java C2J -echo -jnic-trial jnic gl4java_GLUFuncJauJNI glu-proto-auto.orig \
+ > glu-proto-auto-tst.c
+
+../CNativeCode/OpenGLU_JauJNItst_funcs.c: C2J.class \
+ warning.skel \
+ ../CNativeCode/OpenGLU_funcs.c.skel \
+ manual/glu-manualCodedImplJNI.c \
+ glu-proto-auto-tst.c
+ cat warning.skel \
+ ../CNativeCode/OpenGLU_funcs.c.skel \
+ manual/glu-manualCodedImplJNI.c \
+ glu-proto-auto-tst.c \
+ > ../CNativeCode/OpenGLU_JauJNItst_funcs.c
+
+
+glu-proto-auto-jni12.c: glu-proto-auto.orig C2J.class
+ java C2J -echo -jnic-criticalarray jnic gl4java_GLUFuncJauJNI glu-proto-auto.orig \
+ > glu-proto-auto-jni12.c
+
+../CNativeCode/OpenGLU_JauJNI12_funcs.c: C2J.class \
+ warning.skel \
+ ../CNativeCode/OpenGLU_funcs.c.skel \
+ manual/glu-manualCodedImplJNI.c \
+ glu-proto-auto-jni12.c
+ cat warning.skel \
+ ../CNativeCode/OpenGLU_funcs.c.skel \
+ manual/glu-manualCodedImplJNI.c \
+ glu-proto-auto-jni12.c \
+ > ../CNativeCode/OpenGLU_JauJNI12_funcs.c
+
+glu-proto-auto-tst-jni12.c: glu-proto-auto.orig C2J.class
+ java C2J -echo -jnic-criticalarray -jnic-trial jnic gl4java_GLUFuncJauJNI glu-proto-auto.orig \
+ > glu-proto-auto-tst-jni12.c
+
+../CNativeCode/OpenGLU_JauJNI12tst_funcs.c: C2J.class \
+ warning.skel \
+ ../CNativeCode/OpenGLU_funcs.c.skel \
+ manual/glu-manualCodedImplJNI.c \
+ glu-proto-auto-tst-jni12.c
+ cat warning.skel \
+ ../CNativeCode/OpenGLU_funcs.c.skel \
+ manual/glu-manualCodedImplJNI.c \
+ glu-proto-auto-tst.c \
+ > ../CNativeCode/OpenGLU_JauJNI12tst_funcs.c
+
+
+#
+# for native library gl4javaJauJNInf[32]
+#
+../CNativeCode/OpenGL_JauJNInf_dynfuncs.c: ../CNativeCode/OpenGL_JauJNI_dynfuncs.c
+ cat ../CNativeCode/OpenGL_JauJNI_dynfuncs.c | \
+ sed -e 's/GLFuncJauJNI/GLFuncJauJNInf/g' \
+ > ../CNativeCode/OpenGL_JauJNInf_dynfuncs.c
+
+../CNativeCode/OpenGLU_JauJNInf_funcs.c: ../CNativeCode/OpenGLU_JauJNI_funcs.c
+ cat ../CNativeCode/OpenGLU_JauJNI_funcs.c | \
+ sed -e 's/GLUFuncJauJNI/GLUFuncJauJNInf/g' \
+ > ../CNativeCode/OpenGLU_JauJNInf_funcs.c
+
+clean:
+ rm -f *~
+
+cleanc2j:
+ rm -f \
+ ASCII_CharStream.java \
+ C2J.java \
+ C2JConstants.java \
+ C2JTokenManager.java \
+ ParseException.java \
+ Token.java \
+ TokenMgrError.java
+
+cleangl2j: clean
+ rm -f \
+ gl-proto-auto.java \
+ gl-proto-auto.msjvm \
+ glu-proto-auto.java \
+ glu-proto-auto.msjvm \
+ gl-enum-auto.java \
+ gl-protoVirt-auto.java \
+ glu-enum-auto.java \
+ glu-protoVirt-auto.java
+
+cleangl2c: clean
+ rm -f \
+ gl-funcnames.skel \
+ gl-proto-dynauto.c \
+ gl-proto-dynauto-jni12.c \
+ gl-proto-dynauto-tst.c \
+ gl-proto-dynauto-tst-jni12.c \
+ glu-proto-auto.c \
+ glu-proto-auto-jni12.c \
+ glu-proto-auto-tst.c \
+ glu-proto-auto-tst-jni12.c
+
+cleangenfiles: clean
+ rm -f \
+ ../gl4java/GLEnum.java \
+ ../gl4java/GLUEnum.java \
+ ../gl4java/GLFunc.java \
+ ../gl4java/GLFuncJauJNI.java \
+ ../gl4java/GLFuncJauJNInf.java \
+ ../gl4java/GLUFunc.java \
+ ../gl4java/GLUFuncJauJNI.java \
+ ../gl4java/GLUFuncJauJNInf.java \
+ ../CNativeCode/OpenGL_JauJNI_dynfuncs.c \
+ ../CNativeCode/OpenGL_JauJNI12_dynfuncs.c \
+ ../CNativeCode/OpenGL_JauJNInf_dynfuncs.c \
+ ../CNativeCode/OpenGL_JauJNItst_dynfuncs.c \
+ ../CNativeCode/OpenGL_JauJNI12tst_dynfuncs.c \
+ ../CNativeCode/OpenGLU_JauJNI_funcs.c \
+ ../CNativeCode/OpenGLU_JauJNI12_funcs.c \
+ ../CNativeCode/OpenGLU_JauJNInf_funcs.c \
+ ../CNativeCode/OpenGLU_JauJNItst_funcs.c \
+ ../CNativeCode/OpenGLU_JauJNI12tst_funcs.c
+
+cleanall: clean cleangl2c cleangl2j cleangenfiles cleanc2j
+ rm -f *.c *.class *.html
+
diff --git a/C2J/manual/gl-enum-manualCoded.java b/C2J/manual/gl-enum-manualCoded.java
new file mode 100644
index 0000000..5ee07b0
--- /dev/null
+++ b/C2J/manual/gl-enum-manualCoded.java
@@ -0,0 +1,20 @@
+/**
+ * @(#) GLEnum.java
+ */
+
+
+package gl4java;
+
+/**
+ * The base interface for OpenGL enumerates,
+ * which provides you all the C-API style enumerates
+ *
+ * @version 2.01, 15. November 1999
+ * @author Sven Goethel
+ */
+public interface GLEnum
+{
+
+ public static final boolean GL_FALSE = false;
+ public static final boolean GL_TRUE = true;
+
diff --git a/C2J/manual/gl-manualCodedImplJNI.c b/C2J/manual/gl-manualCodedImplJNI.c
new file mode 100644
index 0000000..d0d378c
--- /dev/null
+++ b/C2J/manual/gl-manualCodedImplJNI.c
@@ -0,0 +1,34 @@
+/** THIS IS A MANUAL CODED PART
+ gl-manualCodedImplJNI.java
+*/
+
+static const char _gl_n_a_string[] = "GL-String not avaiable !";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLFuncJauJNI_glGetString ( JNIEnv *env, jobject obj,
+ jint name )
+{
+ const char * tmpString=0;
+
+ tmpString = glGetString ( /* jint */ name);
+ if(tmpString==NULL)
+ tmpString=_gl_n_a_string;
+
+ return (*env)->NewStringUTF(env, tmpString);
+}
+
+static const char * _gl_lib_vendor_="Jausoft - Sven Goethel Software Development";
+static const char * _gl_lib_version_="2.4.1.0";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLFuncJauJNI_getNativeVendor ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _gl_lib_vendor_);
+}
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLFuncJauJNI_getNativeVersion ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _gl_lib_version_);
+}
+
diff --git a/C2J/manual/gl-manualCodedImplJNI1.java b/C2J/manual/gl-manualCodedImplJNI1.java
new file mode 100644
index 0000000..f52544f
--- /dev/null
+++ b/C2J/manual/gl-manualCodedImplJNI1.java
@@ -0,0 +1,18 @@
+/**
+ * @(#) GLFuncJauJNI.java
+ */
+
+
+package gl4java;
+
+/**
+ * The default implementation class for OpenGL native function mapping
+ *
+ * @version 2.00, 21. April 1999
+ * @author Sven Goethel
+ */
+public class GLFuncJauJNI
+ implements GLFunc
+{
+
+
diff --git a/C2J/manual/gl-manualCodedImplJNI2.java b/C2J/manual/gl-manualCodedImplJNI2.java
new file mode 100644
index 0000000..5b54d5d
--- /dev/null
+++ b/C2J/manual/gl-manualCodedImplJNI2.java
@@ -0,0 +1,14 @@
+
+public final native String glGetString ( int name ) ;
+
+public final native String getNativeVendor ( ) ;
+public final native String getNativeVersion ( ) ;
+
+public final String getClassVendor ( )
+{ return "Jausoft - Sven Goethel Software Development"; }
+
+public final String getClassVersion ( )
+{ return "2.4.1.0"; }
+
+
+
diff --git a/C2J/manual/gl-manualCodedVirt1.java b/C2J/manual/gl-manualCodedVirt1.java
new file mode 100644
index 0000000..7bb01dc
--- /dev/null
+++ b/C2J/manual/gl-manualCodedVirt1.java
@@ -0,0 +1,26 @@
+/**
+ * @(#) GLFunc.java
+ */
+
+
+package gl4java;
+
+/**
+ * The base interface for OpenGL native function mapping
+ *
+ * @version 2.00, 21. April 1999
+ * @author Sven Goethel
+ */
+public interface GLFunc
+ extends GLEnum
+{
+
+public String glGetString ( int name ) ;
+
+public String getNativeVendor ( ) ;
+public String getNativeVersion ( ) ;
+
+public String getClassVendor ( ) ;
+public String getClassVersion ( ) ;
+
+public static final String[] GL_PROC_NAMES = {
diff --git a/C2J/manual/gl-manualCodedVirt2.java b/C2J/manual/gl-manualCodedVirt2.java
new file mode 100644
index 0000000..aa362ef
--- /dev/null
+++ b/C2J/manual/gl-manualCodedVirt2.java
@@ -0,0 +1,2 @@
+ null
+};
diff --git a/C2J/manual/glu-enum-manualCoded.java b/C2J/manual/glu-enum-manualCoded.java
new file mode 100644
index 0000000..d8aa45f
--- /dev/null
+++ b/C2J/manual/glu-enum-manualCoded.java
@@ -0,0 +1,17 @@
+/**
+ * @(#) GLUEnum.java
+ */
+
+
+package gl4java;
+
+/**
+ * The base interface for GLU enumerates,
+ * which provides you all the C-API style enumerates
+ *
+ * @version 2.00, 21. April 1999
+ * @author Sven Goethel
+ */
+public interface GLUEnum
+{
+
diff --git a/C2J/manual/glu-manualCodedImplJNI.c b/C2J/manual/glu-manualCodedImplJNI.c
new file mode 100644
index 0000000..fcb4d00
--- /dev/null
+++ b/C2J/manual/glu-manualCodedImplJNI.c
@@ -0,0 +1,213 @@
+static const char _glu_n_a_string[] = "GLU-String not avaiable !";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNI_gluErrorString ( JNIEnv *env, jobject obj,
+ jint errorCode )
+{
+ const char *tmpString=0;
+
+ tmpString = gluErrorString ( /* jint */ errorCode );
+ if(tmpString==NULL)
+ tmpString=_glu_n_a_string;
+
+ return (*env)->NewStringUTF(env, tmpString);
+}
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNI_gluGetString ( JNIEnv *env, jobject obj,
+ jint name )
+{
+ const char *tmpString=0;
+
+ tmpString = gluGetString ( /* jint */ name);
+ if(tmpString==NULL)
+ tmpString=_glu_n_a_string;
+
+ return (*env)->NewStringUTF(env, tmpString);
+}
+
+static const char * _glu_lib_vendor_="Jausoft - Sven Goethel Software Development";
+static const char * _glu_lib_version_="2.4.1.0";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNI_getNativeVendor ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _glu_lib_vendor_);
+}
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNI_getNativeVersion ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _glu_lib_version_);
+}
+
+static void _AddCallbackNode(JNIEnv *env,
+ jint qnt_obj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature,
+ jint arrayLen1,
+ jint arrayLen2,
+ jint arrayLen3,
+ jint arrayLen4,
+ jint arrayLen5)
+{
+ char * strMethodName = jnitoolsGetJavaString(env, methodName);
+ char * strSignature = jnitoolsGetJavaString(env, signature);
+ jlong glx=0;
+
+ glx = GetCurrentGLContext();
+
+ AddCallbackNode(env, methodClassInstance, strMethodName, strSignature,
+ arrayLen1, arrayLen2, arrayLen3,
+ arrayLen4, arrayLen5,
+ (void *)qnt_obj, which, glx);
+ free(strMethodName);
+ free(strSignature);
+}
+
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluQuadricCallback( JNIEnv *env, jobject obj,
+ jint qobj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature)
+{
+ switch(which)
+ {
+ case GLU_ERROR:
+ gluQuadricCallback((void *)qobj, which,
+ cbf_GLU_ERROR );
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException", "Wrong Callback-Function type (\"which\") !");
+ return;
+ }
+ _AddCallbackNode(env,
+ qobj, which, methodClassInstance, methodName,
+ signature,
+ 0, 0, 0, 0, 0);
+}
+
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluNurbsCallback( JNIEnv *env, jobject obj,
+ jint nobj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature)
+{
+ switch(which)
+ {
+ case GLU_ERROR:
+ gluNurbsCallback((void *)nobj, which,
+ cbf_GLU_ERROR );
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException", "Wrong Callback-Function type (\"which\") !");
+ return;
+ }
+ _AddCallbackNode(env,
+ nobj, which, methodClassInstance, methodName,
+ signature,
+ 0, 0, 0, 0, 0);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluTessCallback( JNIEnv *env, jobject obj,
+ jint tobj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature,
+ jint arrayLen1,
+ jint arrayLen2,
+ jint arrayLen3,
+ jint arrayLen4,
+ jint arrayLen5)
+{
+ switch(which)
+ {
+ case GLU_TESS_BEGIN:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_BEGIN );
+ break;
+ case GLU_TESS_BEGIN_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_BEGIN_DATA );
+ break;
+ case GLU_TESS_EDGE_FLAG:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_EDGE_FLAG );
+ break;
+ case GLU_TESS_EDGE_FLAG_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_EDGE_FLAG_DATA );
+ break;
+ case GLU_TESS_VERTEX:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_VERTEX );
+ break;
+ case GLU_TESS_VERTEX_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_VERTEX_DATA );
+ break;
+ case GLU_TESS_END:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_END );
+ break;
+ case GLU_TESS_END_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_END_DATA );
+ break;
+ case GLU_TESS_ERROR:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_ERROR );
+ break;
+ case GLU_TESS_ERROR_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_ERROR_DATA );
+ break;
+ case GLU_TESS_COMBINE:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_COMBINE );
+ break;
+ case GLU_TESS_COMBINE_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_COMBINE_DATA );
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException", "Wrong Callback-Function type (\"which\") !");
+ return;
+ }
+ _AddCallbackNode(env,
+ tobj, which, methodClassInstance, methodName,
+ signature,
+ arrayLen1, arrayLen2, arrayLen3,
+ arrayLen4, arrayLen5);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluDeleteQuadric( JNIEnv *env, jobject obj,
+ jint qobj )
+{
+ gluDeleteQuadric((void *)qobj);
+ RemoveCallbackNodes((void *)qobj);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluDeleteNurbsRenderer( JNIEnv *env, jobject obj,
+ jint nobj )
+{
+ gluDeleteNurbsRenderer((void *)nobj);
+ RemoveCallbackNodes((void *)nobj);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
+ jint tobj )
+{
+ gluDeleteTess((GLUtesselator *)tobj);
+ RemoveCallbackNodes((void *)tobj);
+}
+
diff --git a/C2J/manual/glu-manualCodedImplJNI.h b/C2J/manual/glu-manualCodedImplJNI.h
new file mode 100644
index 0000000..bfb8a40
--- /dev/null
+++ b/C2J/manual/glu-manualCodedImplJNI.h
@@ -0,0 +1,13 @@
+
+
+public native byte gluErrorString[] ( int errorCode ) ;
+
+
+public native void gluNurbsCallback ( long nobj , int which , void ( fn[] ) ( ) ) ;
+
+
+public native void gluTessCallback ( long tobj , int which , void ( fn[] ) ( ) ) ;
+
+
+public native byte gluGetString[] ( int name ) ;
+
diff --git a/C2J/manual/glu-manualCodedImplJNI1.java b/C2J/manual/glu-manualCodedImplJNI1.java
new file mode 100644
index 0000000..155a50e
--- /dev/null
+++ b/C2J/manual/glu-manualCodedImplJNI1.java
@@ -0,0 +1,17 @@
+/**
+ * @(#) GLUFuncJauJNI.java
+ */
+
+
+package gl4java;
+
+/**
+ * The default implementation class for GLU native function mapping
+ *
+ * @version 2.00, 21. April 1999
+ * @author Sven Goethel
+ */
+public class GLUFuncJauJNI
+ implements GLUFunc
+{
+
diff --git a/C2J/manual/glu-manualCodedImplJNI2.java b/C2J/manual/glu-manualCodedImplJNI2.java
new file mode 100644
index 0000000..7559354
--- /dev/null
+++ b/C2J/manual/glu-manualCodedImplJNI2.java
@@ -0,0 +1,117 @@
+
+public final native String gluErrorString ( int errorCode ) ;
+public final native String gluGetString ( int name ) ;
+
+public final native String getNativeVendor ( ) ;
+public final native String getNativeVersion ( ) ;
+
+public final String getClassVendor ( )
+{ return "Jausoft - Sven Goethel Software Development"; }
+
+public final String getClassVersion ( )
+{ return "2.4.1.0"; }
+
+
+/**
+ * The Callback registry function.
+ * To achieve the signature (internal argument signature)
+ * you can use the "javap -s <classname>" toolkit of the JDK !
+ *
+ * @param qobj the quadratic id, fetch with gluNewQuadric
+ * @param which the id for the callback type
+ * @param methodClassInstance the class instance,
+ * which implements the callback-method
+ * @param methodName the name of the callback-method
+ * @param signature the signature of the callback-method.
+ *
+ * @see GLUFunc#gluNewQuadric
+ */
+public final native void gluQuadricCallback(
+ int qobj, int which,
+ Object methodClassInstance,
+ String methodName,
+ String signature
+ );
+
+/**
+ * The Callback registry function.
+ * To achieve the signature (internal argument signature)
+ * you can use the "javap -s <classname>" toolkit of the JDK !
+ *
+ * @param nobj the nurbs id, fetch with gluNewNurbsRenderer
+ * @param which the id for the callback type
+ * @param methodClassInstance the class instance,
+ * which implements the callback-method
+ * @param methodName the name of the callback-method
+ * @param signature the signature of the callback-method.
+ *
+ * @see GLUFunc#gluNewNurbsRenderer
+ */
+public final native void gluNurbsCallback(
+ int nobj, int which,
+ Object methodClassInstance,
+ String methodName,
+ String signature
+ );
+
+
+/**
+ * The Callback registry function.
+ * To achieve the signature (internal argument signature)
+ * you can use the "javap -s <classname>" toolkit of the JDK !
+ *
+ * @param tobj the tesselation id, fetch with gluNewTess
+ * @param which the id for the callback type
+ * @param methodClassInstance the class instance,
+ * which implements the callback-method
+ * @param methodName the name of the callback-method
+ * @param signature the signature of the callback-method.
+ * @param voidArrayLen1 the optional length of the 1st array
+ * in the callback-methods argument-list
+ * @param voidArrayLen2 the optional length of the 2nd array
+ * in the callback-methods argument-list
+ * @param voidArrayLen3 the optional length of the 3rd array
+ * in the callback-methods argument-list
+ * @param voidArrayLen4 the optional length of the 4th array
+ * in the callback-methods argument-list
+ * @param voidArrayLen5 the optional length of the 5th array
+ * in the callback-methods argument-list
+ *
+ * @see GLUFunc#gluNewTess
+ */
+public final native void gluTessCallback(
+ int tobj, int which,
+ Object methodClassInstance,
+ String methodName,
+ String signature,
+ int voidArrayLen1,
+ int voidArrayLen2,
+ int voidArrayLen3,
+ int voidArrayLen4,
+ int voidArrayLen5
+ );
+
+/**
+ * The Callback de-registry function.
+ *
+ * @param qobj the quadratic id, for which all callback-methods
+ * should be de-registered
+ */
+public final native void gluDeleteQuadric( int qobj );
+
+/**
+ * The Callback de-registry function.
+ *
+ * @param nobj the nurbs id, for which all callback-methods
+ * should be de-registered
+ */
+public final native void gluDeleteNurbsRenderer( int nobj );
+
+/**
+ * The Callback de-registry function.
+ *
+ * @param tobj the tesselation id, for which all callback-methods
+ * should be de-registered
+ */
+public final native void gluDeleteTess( int tobj );
+
diff --git a/C2J/manual/glu-manualCodedVirt.java b/C2J/manual/glu-manualCodedVirt.java
new file mode 100644
index 0000000..2f77551
--- /dev/null
+++ b/C2J/manual/glu-manualCodedVirt.java
@@ -0,0 +1,60 @@
+/**
+ * @(#) GLUFunc.java
+ */
+
+
+package gl4java;
+
+/**
+ * The base interface for GLU native function mapping
+ *
+ * @version 2.00, 21. April 1999
+ * @author Sven Goethel
+ */
+public interface GLUFunc
+ extends GLUEnum
+{
+
+public String gluErrorString ( int errorCode ) ;
+
+public String gluGetString ( int name ) ;
+
+public String getNativeVendor ( ) ;
+public String getNativeVersion ( ) ;
+
+public String getClassVendor ( ) ;
+public String getClassVersion ( ) ;
+
+public void gluQuadricCallback(
+ int qobj, int which,
+ Object methodClassInstance,
+ String methodName,
+ String signature
+ );
+
+public void gluNurbsCallback(
+ int nobj, int which,
+ Object methodClassInstance,
+ String methodName,
+ String signature
+ );
+
+
+public void gluTessCallback(
+ int tobj, int which,
+ Object methodClassInstance,
+ String methodName,
+ String signature,
+ int voidArrayLen1,
+ int voidArrayLen2,
+ int voidArrayLen3,
+ int voidArrayLen4,
+ int voidArrayLen5
+ );
+
+public void gluDeleteQuadric( int qobj );
+
+public void gluDeleteNurbsRenderer( int nobj );
+
+public void gluDeleteTess( int tobj );
+
diff --git a/C2J/mesa33-header/gl.h b/C2J/mesa33-header/gl.h
new file mode 100644
index 0000000..1ad7136
--- /dev/null
+++ b/C2J/mesa33-header/gl.h
@@ -0,0 +1,2199 @@
+
+/*
+ * Mesa 3-D graphics library
+ * Version: 3.3
+ *
+ * Copyright (C) 1999-2000 Brian Paul All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+ * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+
+#ifndef __gl_h_
+#define __gl_h_
+
+#define GL_VERSION_1_1 1
+#define GL_VERSION_1_2 1
+#define GL_HAS_GLEXT 1
+
+
+
+/*
+ *
+ * Datatypes
+ *
+ */
+#ifdef CENTERLINE_CLPP
+#define signed
+#endif
+typedef unsigned int GLenum;
+typedef unsigned char GLboolean;
+typedef unsigned int GLbitfield;
+typedef void GLvoid;
+typedef signed char GLbyte; /* 1-byte signed */
+typedef short GLshort; /* 2-byte signed */
+typedef int GLint; /* 4-byte signed */
+typedef unsigned char GLubyte; /* 1-byte unsigned */
+typedef unsigned short GLushort; /* 2-byte unsigned */
+typedef unsigned int GLuint; /* 4-byte unsigned */
+typedef int GLsizei; /* 4-byte signed */
+typedef float GLfloat; /* single precision float */
+typedef float GLclampf; /* single precision float in [0,1] */
+typedef double GLdouble; /* double precision float */
+typedef double GLclampd; /* double precision float in [0,1] */
+
+
+
+/*
+ *
+ * Constants
+ *
+ */
+
+/* Boolean values */
+#define GL_FALSE 0x0
+#define GL_TRUE 0x1
+
+/* Data types */
+#define GL_BYTE 0x1400
+#define GL_UNSIGNED_BYTE 0x1401
+#define GL_SHORT 0x1402
+#define GL_UNSIGNED_SHORT 0x1403
+#define GL_INT 0x1404
+#define GL_UNSIGNED_INT 0x1405
+#define GL_FLOAT 0x1406
+#define GL_DOUBLE 0x140A
+#define GL_2_BYTES 0x1407
+#define GL_3_BYTES 0x1408
+#define GL_4_BYTES 0x1409
+
+/* Primitives */
+#define GL_POINTS 0x0000
+#define GL_LINES 0x0001
+#define GL_LINE_LOOP 0x0002
+#define GL_LINE_STRIP 0x0003
+#define GL_TRIANGLES 0x0004
+#define GL_TRIANGLE_STRIP 0x0005
+#define GL_TRIANGLE_FAN 0x0006
+#define GL_QUADS 0x0007
+#define GL_QUAD_STRIP 0x0008
+#define GL_POLYGON 0x0009
+
+/* Vertex Arrays */
+#define GL_VERTEX_ARRAY 0x8074
+#define GL_NORMAL_ARRAY 0x8075
+#define GL_COLOR_ARRAY 0x8076
+#define GL_INDEX_ARRAY 0x8077
+#define GL_TEXTURE_COORD_ARRAY 0x8078
+#define GL_EDGE_FLAG_ARRAY 0x8079
+#define GL_VERTEX_ARRAY_SIZE 0x807A
+#define GL_VERTEX_ARRAY_TYPE 0x807B
+#define GL_VERTEX_ARRAY_STRIDE 0x807C
+#define GL_NORMAL_ARRAY_TYPE 0x807E
+#define GL_NORMAL_ARRAY_STRIDE 0x807F
+#define GL_COLOR_ARRAY_SIZE 0x8081
+#define GL_COLOR_ARRAY_TYPE 0x8082
+#define GL_COLOR_ARRAY_STRIDE 0x8083
+#define GL_INDEX_ARRAY_TYPE 0x8085
+#define GL_INDEX_ARRAY_STRIDE 0x8086
+#define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088
+#define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089
+#define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A
+#define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C
+#define GL_VERTEX_ARRAY_POINTER 0x808E
+#define GL_NORMAL_ARRAY_POINTER 0x808F
+#define GL_COLOR_ARRAY_POINTER 0x8090
+#define GL_INDEX_ARRAY_POINTER 0x8091
+#define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092
+#define GL_EDGE_FLAG_ARRAY_POINTER 0x8093
+#define GL_V2F 0x2A20
+#define GL_V3F 0x2A21
+#define GL_C4UB_V2F 0x2A22
+#define GL_C4UB_V3F 0x2A23
+#define GL_C3F_V3F 0x2A24
+#define GL_N3F_V3F 0x2A25
+#define GL_C4F_N3F_V3F 0x2A26
+#define GL_T2F_V3F 0x2A27
+#define GL_T4F_V4F 0x2A28
+#define GL_T2F_C4UB_V3F 0x2A29
+#define GL_T2F_C3F_V3F 0x2A2A
+#define GL_T2F_N3F_V3F 0x2A2B
+#define GL_T2F_C4F_N3F_V3F 0x2A2C
+#define GL_T4F_C4F_N3F_V4F 0x2A2D
+
+/* Matrix Mode */
+#define GL_MATRIX_MODE 0x0BA0
+#define GL_MODELVIEW 0x1700
+#define GL_PROJECTION 0x1701
+#define GL_TEXTURE 0x1702
+
+/* Points */
+#define GL_POINT_SMOOTH 0x0B10
+#define GL_POINT_SIZE 0x0B11
+#define GL_POINT_SIZE_GRANULARITY 0x0B13
+#define GL_POINT_SIZE_RANGE 0x0B12
+
+/* Lines */
+#define GL_LINE_SMOOTH 0x0B20
+#define GL_LINE_STIPPLE 0x0B24
+#define GL_LINE_STIPPLE_PATTERN 0x0B25
+#define GL_LINE_STIPPLE_REPEAT 0x0B26
+#define GL_LINE_WIDTH 0x0B21
+#define GL_LINE_WIDTH_GRANULARITY 0x0B23
+#define GL_LINE_WIDTH_RANGE 0x0B22
+
+/* Polygons */
+#define GL_POINT 0x1B00
+#define GL_LINE 0x1B01
+#define GL_FILL 0x1B02
+#define GL_CW 0x0900
+#define GL_CCW 0x0901
+#define GL_FRONT 0x0404
+#define GL_BACK 0x0405
+#define GL_POLYGON_MODE 0x0B40
+#define GL_POLYGON_SMOOTH 0x0B41
+#define GL_POLYGON_STIPPLE 0x0B42
+#define GL_EDGE_FLAG 0x0B43
+#define GL_CULL_FACE 0x0B44
+#define GL_CULL_FACE_MODE 0x0B45
+#define GL_FRONT_FACE 0x0B46
+#define GL_POLYGON_OFFSET_FACTOR 0x8038
+#define GL_POLYGON_OFFSET_UNITS 0x2A00
+#define GL_POLYGON_OFFSET_POINT 0x2A01
+#define GL_POLYGON_OFFSET_LINE 0x2A02
+#define GL_POLYGON_OFFSET_FILL 0x8037
+
+/* Display Lists */
+#define GL_COMPILE 0x1300
+#define GL_COMPILE_AND_EXECUTE 0x1301
+#define GL_LIST_BASE 0x0B32
+#define GL_LIST_INDEX 0x0B33
+#define GL_LIST_MODE 0x0B30
+
+/* Depth buffer */
+#define GL_NEVER 0x0200
+#define GL_LESS 0x0201
+#define GL_EQUAL 0x0202
+#define GL_LEQUAL 0x0203
+#define GL_GREATER 0x0204
+#define GL_NOTEQUAL 0x0205
+#define GL_GEQUAL 0x0206
+#define GL_ALWAYS 0x0207
+#define GL_DEPTH_TEST 0x0B71
+#define GL_DEPTH_BITS 0x0D56
+#define GL_DEPTH_CLEAR_VALUE 0x0B73
+#define GL_DEPTH_FUNC 0x0B74
+#define GL_DEPTH_RANGE 0x0B70
+#define GL_DEPTH_WRITEMASK 0x0B72
+#define GL_DEPTH_COMPONENT 0x1902
+
+/* Lighting */
+#define GL_LIGHTING 0x0B50
+#define GL_LIGHT0 0x4000
+#define GL_LIGHT1 0x4001
+#define GL_LIGHT2 0x4002
+#define GL_LIGHT3 0x4003
+#define GL_LIGHT4 0x4004
+#define GL_LIGHT5 0x4005
+#define GL_LIGHT6 0x4006
+#define GL_LIGHT7 0x4007
+#define GL_SPOT_EXPONENT 0x1205
+#define GL_SPOT_CUTOFF 0x1206
+#define GL_CONSTANT_ATTENUATION 0x1207
+#define GL_LINEAR_ATTENUATION 0x1208
+#define GL_QUADRATIC_ATTENUATION 0x1209
+#define GL_AMBIENT 0x1200
+#define GL_DIFFUSE 0x1201
+#define GL_SPECULAR 0x1202
+#define GL_SHININESS 0x1601
+#define GL_EMISSION 0x1600
+#define GL_POSITION 0x1203
+#define GL_SPOT_DIRECTION 0x1204
+#define GL_AMBIENT_AND_DIFFUSE 0x1602
+#define GL_COLOR_INDEXES 0x1603
+#define GL_LIGHT_MODEL_TWO_SIDE 0x0B52
+#define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51
+#define GL_LIGHT_MODEL_AMBIENT 0x0B53
+#define GL_FRONT_AND_BACK 0x0408
+#define GL_SHADE_MODEL 0x0B54
+#define GL_FLAT 0x1D00
+#define GL_SMOOTH 0x1D01
+#define GL_COLOR_MATERIAL 0x0B57
+#define GL_COLOR_MATERIAL_FACE 0x0B55
+#define GL_COLOR_MATERIAL_PARAMETER 0x0B56
+#define GL_NORMALIZE 0x0BA1
+
+/* User clipping planes */
+#define GL_CLIP_PLANE0 0x3000
+#define GL_CLIP_PLANE1 0x3001
+#define GL_CLIP_PLANE2 0x3002
+#define GL_CLIP_PLANE3 0x3003
+#define GL_CLIP_PLANE4 0x3004
+#define GL_CLIP_PLANE5 0x3005
+
+/* Accumulation buffer */
+#define GL_ACCUM_RED_BITS 0x0D58
+#define GL_ACCUM_GREEN_BITS 0x0D59
+#define GL_ACCUM_BLUE_BITS 0x0D5A
+#define GL_ACCUM_ALPHA_BITS 0x0D5B
+#define GL_ACCUM_CLEAR_VALUE 0x0B80
+#define GL_ACCUM 0x0100
+#define GL_ADD 0x0104
+#define GL_LOAD 0x0101
+#define GL_MULT 0x0103
+#define GL_RETURN 0x0102
+
+/* Alpha testing */
+#define GL_ALPHA_TEST 0x0BC0
+#define GL_ALPHA_TEST_REF 0x0BC2
+#define GL_ALPHA_TEST_FUNC 0x0BC1
+
+/* Blending */
+#define GL_BLEND 0x0BE2
+#define GL_BLEND_SRC 0x0BE1
+#define GL_BLEND_DST 0x0BE0
+#define GL_ZERO 0x0
+#define GL_ONE 0x1
+#define GL_SRC_COLOR 0x0300
+#define GL_ONE_MINUS_SRC_COLOR 0x0301
+#define GL_DST_COLOR 0x0306
+#define GL_ONE_MINUS_DST_COLOR 0x0307
+#define GL_SRC_ALPHA 0x0302
+#define GL_ONE_MINUS_SRC_ALPHA 0x0303
+#define GL_DST_ALPHA 0x0304
+#define GL_ONE_MINUS_DST_ALPHA 0x0305
+#define GL_SRC_ALPHA_SATURATE 0x0308
+#define GL_CONSTANT_COLOR 0x8001
+#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
+#define GL_CONSTANT_ALPHA 0x8003
+#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
+
+/* Render Mode */
+#define GL_FEEDBACK 0x1C01
+#define GL_RENDER 0x1C00
+#define GL_SELECT 0x1C02
+
+/* Feedback */
+#define GL_2D 0x0600
+#define GL_3D 0x0601
+#define GL_3D_COLOR 0x0602
+#define GL_3D_COLOR_TEXTURE 0x0603
+#define GL_4D_COLOR_TEXTURE 0x0604
+#define GL_POINT_TOKEN 0x0701
+#define GL_LINE_TOKEN 0x0702
+#define GL_LINE_RESET_TOKEN 0x0707
+#define GL_POLYGON_TOKEN 0x0703
+#define GL_BITMAP_TOKEN 0x0704
+#define GL_DRAW_PIXEL_TOKEN 0x0705
+#define GL_COPY_PIXEL_TOKEN 0x0706
+#define GL_PASS_THROUGH_TOKEN 0x0700
+#define GL_FEEDBACK_BUFFER_POINTER 0x0DF0
+#define GL_FEEDBACK_BUFFER_SIZE 0x0DF1
+#define GL_FEEDBACK_BUFFER_TYPE 0x0DF2
+
+/* Selection */
+#define GL_SELECTION_BUFFER_POINTER 0x0DF3
+#define GL_SELECTION_BUFFER_SIZE 0x0DF4
+
+/* Fog */
+#define GL_FOG 0x0B60
+#define GL_FOG_MODE 0x0B65
+#define GL_FOG_DENSITY 0x0B62
+#define GL_FOG_COLOR 0x0B66
+#define GL_FOG_INDEX 0x0B61
+#define GL_FOG_START 0x0B63
+#define GL_FOG_END 0x0B64
+#define GL_LINEAR 0x2601
+#define GL_EXP 0x0800
+#define GL_EXP2 0x0801
+
+/* Logic Ops */
+#define GL_LOGIC_OP 0x0BF1
+#define GL_INDEX_LOGIC_OP 0x0BF1
+#define GL_COLOR_LOGIC_OP 0x0BF2
+#define GL_LOGIC_OP_MODE 0x0BF0
+#define GL_CLEAR 0x1500
+#define GL_SET 0x150F
+#define GL_COPY 0x1503
+#define GL_COPY_INVERTED 0x150C
+#define GL_NOOP 0x1505
+#define GL_INVERT 0x150A
+#define GL_AND 0x1501
+#define GL_NAND 0x150E
+#define GL_OR 0x1507
+#define GL_NOR 0x1508
+#define GL_XOR 0x1506
+#define GL_EQUIV 0x1509
+#define GL_AND_REVERSE 0x1502
+#define GL_AND_INVERTED 0x1504
+#define GL_OR_REVERSE 0x150B
+#define GL_OR_INVERTED 0x150D
+
+/* Stencil */
+#define GL_STENCIL_TEST 0x0B90
+#define GL_STENCIL_WRITEMASK 0x0B98
+#define GL_STENCIL_BITS 0x0D57
+#define GL_STENCIL_FUNC 0x0B92
+#define GL_STENCIL_VALUE_MASK 0x0B93
+#define GL_STENCIL_REF 0x0B97
+#define GL_STENCIL_FAIL 0x0B94
+#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
+#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
+#define GL_STENCIL_CLEAR_VALUE 0x0B91
+#define GL_STENCIL_INDEX 0x1901
+#define GL_KEEP 0x1E00
+#define GL_REPLACE 0x1E01
+#define GL_INCR 0x1E02
+#define GL_DECR 0x1E03
+
+/* Buffers, Pixel Drawing/Reading */
+#define GL_NONE 0x0
+#define GL_LEFT 0x0406
+#define GL_RIGHT 0x0407
+/*GL_FRONT 0x0404 */
+/*GL_BACK 0x0405 */
+/*GL_FRONT_AND_BACK 0x0408 */
+#define GL_FRONT_LEFT 0x0400
+#define GL_FRONT_RIGHT 0x0401
+#define GL_BACK_LEFT 0x0402
+#define GL_BACK_RIGHT 0x0403
+#define GL_AUX0 0x0409
+#define GL_AUX1 0x040A
+#define GL_AUX2 0x040B
+#define GL_AUX3 0x040C
+#define GL_COLOR_INDEX 0x1900
+#define GL_RED 0x1903
+#define GL_GREEN 0x1904
+#define GL_BLUE 0x1905
+#define GL_ALPHA 0x1906
+#define GL_LUMINANCE 0x1909
+#define GL_LUMINANCE_ALPHA 0x190A
+#define GL_ALPHA_BITS 0x0D55
+#define GL_RED_BITS 0x0D52
+#define GL_GREEN_BITS 0x0D53
+#define GL_BLUE_BITS 0x0D54
+#define GL_INDEX_BITS 0x0D51
+#define GL_SUBPIXEL_BITS 0x0D50
+#define GL_AUX_BUFFERS 0x0C00
+#define GL_READ_BUFFER 0x0C02
+#define GL_DRAW_BUFFER 0x0C01
+#define GL_DOUBLEBUFFER 0x0C32
+#define GL_STEREO 0x0C33
+#define GL_BITMAP 0x1A00
+#define GL_COLOR 0x1800
+#define GL_DEPTH 0x1801
+#define GL_STENCIL 0x1802
+#define GL_DITHER 0x0BD0
+#define GL_RGB 0x1907
+#define GL_RGBA 0x1908
+
+/* Implementation limits */
+#define GL_MAX_LIST_NESTING 0x0B31
+#define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35
+#define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36
+#define GL_MAX_NAME_STACK_DEPTH 0x0D37
+#define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38
+#define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39
+#define GL_MAX_EVAL_ORDER 0x0D30
+#define GL_MAX_LIGHTS 0x0D31
+#define GL_MAX_CLIP_PLANES 0x0D32
+#define GL_MAX_TEXTURE_SIZE 0x0D33
+#define GL_MAX_PIXEL_MAP_TABLE 0x0D34
+#define GL_MAX_VIEWPORT_DIMS 0x0D3A
+#define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B
+
+/* Gets */
+#define GL_ATTRIB_STACK_DEPTH 0x0BB0
+#define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1
+#define GL_COLOR_CLEAR_VALUE 0x0C22
+#define GL_COLOR_WRITEMASK 0x0C23
+#define GL_CURRENT_INDEX 0x0B01
+#define GL_CURRENT_COLOR 0x0B00
+#define GL_CURRENT_NORMAL 0x0B02
+#define GL_CURRENT_RASTER_COLOR 0x0B04
+#define GL_CURRENT_RASTER_DISTANCE 0x0B09
+#define GL_CURRENT_RASTER_INDEX 0x0B05
+#define GL_CURRENT_RASTER_POSITION 0x0B07
+#define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06
+#define GL_CURRENT_RASTER_POSITION_VALID 0x0B08
+#define GL_CURRENT_TEXTURE_COORDS 0x0B03
+#define GL_INDEX_CLEAR_VALUE 0x0C20
+#define GL_INDEX_MODE 0x0C30
+#define GL_INDEX_WRITEMASK 0x0C21
+#define GL_MODELVIEW_MATRIX 0x0BA6
+#define GL_MODELVIEW_STACK_DEPTH 0x0BA3
+#define GL_NAME_STACK_DEPTH 0x0D70
+#define GL_PROJECTION_MATRIX 0x0BA7
+#define GL_PROJECTION_STACK_DEPTH 0x0BA4
+#define GL_RENDER_MODE 0x0C40
+#define GL_RGBA_MODE 0x0C31
+#define GL_TEXTURE_MATRIX 0x0BA8
+#define GL_TEXTURE_STACK_DEPTH 0x0BA5
+#define GL_VIEWPORT 0x0BA2
+
+/* Evaluators */
+#define GL_AUTO_NORMAL 0x0D80
+#define GL_MAP1_COLOR_4 0x0D90
+#define GL_MAP1_GRID_DOMAIN 0x0DD0
+#define GL_MAP1_GRID_SEGMENTS 0x0DD1
+#define GL_MAP1_INDEX 0x0D91
+#define GL_MAP1_NORMAL 0x0D92
+#define GL_MAP1_TEXTURE_COORD_1 0x0D93
+#define GL_MAP1_TEXTURE_COORD_2 0x0D94
+#define GL_MAP1_TEXTURE_COORD_3 0x0D95
+#define GL_MAP1_TEXTURE_COORD_4 0x0D96
+#define GL_MAP1_VERTEX_3 0x0D97
+#define GL_MAP1_VERTEX_4 0x0D98
+#define GL_MAP2_COLOR_4 0x0DB0
+#define GL_MAP2_GRID_DOMAIN 0x0DD2
+#define GL_MAP2_GRID_SEGMENTS 0x0DD3
+#define GL_MAP2_INDEX 0x0DB1
+#define GL_MAP2_NORMAL 0x0DB2
+#define GL_MAP2_TEXTURE_COORD_1 0x0DB3
+#define GL_MAP2_TEXTURE_COORD_2 0x0DB4
+#define GL_MAP2_TEXTURE_COORD_3 0x0DB5
+#define GL_MAP2_TEXTURE_COORD_4 0x0DB6
+#define GL_MAP2_VERTEX_3 0x0DB7
+#define GL_MAP2_VERTEX_4 0x0DB8
+#define GL_COEFF 0x0A00
+#define GL_DOMAIN 0x0A02
+#define GL_ORDER 0x0A01
+
+/* Hints */
+#define GL_FOG_HINT 0x0C54
+#define GL_LINE_SMOOTH_HINT 0x0C52
+#define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50
+#define GL_POINT_SMOOTH_HINT 0x0C51
+#define GL_POLYGON_SMOOTH_HINT 0x0C53
+#define GL_DONT_CARE 0x1100
+#define GL_FASTEST 0x1101
+#define GL_NICEST 0x1102
+
+/* Scissor box */
+#define GL_SCISSOR_TEST 0x0C11
+#define GL_SCISSOR_BOX 0x0C10
+
+/* Pixel Mode / Transfer */
+#define GL_MAP_COLOR 0x0D10
+#define GL_MAP_STENCIL 0x0D11
+#define GL_INDEX_SHIFT 0x0D12
+#define GL_INDEX_OFFSET 0x0D13
+#define GL_RED_SCALE 0x0D14
+#define GL_RED_BIAS 0x0D15
+#define GL_GREEN_SCALE 0x0D18
+#define GL_GREEN_BIAS 0x0D19
+#define GL_BLUE_SCALE 0x0D1A
+#define GL_BLUE_BIAS 0x0D1B
+#define GL_ALPHA_SCALE 0x0D1C
+#define GL_ALPHA_BIAS 0x0D1D
+#define GL_DEPTH_SCALE 0x0D1E
+#define GL_DEPTH_BIAS 0x0D1F
+#define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1
+#define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0
+#define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2
+#define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3
+#define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4
+#define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5
+#define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6
+#define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7
+#define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8
+#define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9
+#define GL_PIXEL_MAP_S_TO_S 0x0C71
+#define GL_PIXEL_MAP_I_TO_I 0x0C70
+#define GL_PIXEL_MAP_I_TO_R 0x0C72
+#define GL_PIXEL_MAP_I_TO_G 0x0C73
+#define GL_PIXEL_MAP_I_TO_B 0x0C74
+#define GL_PIXEL_MAP_I_TO_A 0x0C75
+#define GL_PIXEL_MAP_R_TO_R 0x0C76
+#define GL_PIXEL_MAP_G_TO_G 0x0C77
+#define GL_PIXEL_MAP_B_TO_B 0x0C78
+#define GL_PIXEL_MAP_A_TO_A 0x0C79
+#define GL_PACK_ALIGNMENT 0x0D05
+#define GL_PACK_LSB_FIRST 0x0D01
+#define GL_PACK_ROW_LENGTH 0x0D02
+#define GL_PACK_SKIP_PIXELS 0x0D04
+#define GL_PACK_SKIP_ROWS 0x0D03
+#define GL_PACK_SWAP_BYTES 0x0D00
+#define GL_UNPACK_ALIGNMENT 0x0CF5
+#define GL_UNPACK_LSB_FIRST 0x0CF1
+#define GL_UNPACK_ROW_LENGTH 0x0CF2
+#define GL_UNPACK_SKIP_PIXELS 0x0CF4
+#define GL_UNPACK_SKIP_ROWS 0x0CF3
+#define GL_UNPACK_SWAP_BYTES 0x0CF0
+#define GL_ZOOM_X 0x0D16
+#define GL_ZOOM_Y 0x0D17
+
+/* Texture mapping */
+#define GL_TEXTURE_ENV 0x2300
+#define GL_TEXTURE_ENV_MODE 0x2200
+#define GL_TEXTURE_1D 0x0DE0
+#define GL_TEXTURE_2D 0x0DE1
+#define GL_TEXTURE_WRAP_S 0x2802
+#define GL_TEXTURE_WRAP_T 0x2803
+#define GL_TEXTURE_MAG_FILTER 0x2800
+#define GL_TEXTURE_MIN_FILTER 0x2801
+#define GL_TEXTURE_ENV_COLOR 0x2201
+#define GL_TEXTURE_GEN_S 0x0C60
+#define GL_TEXTURE_GEN_T 0x0C61
+#define GL_TEXTURE_GEN_MODE 0x2500
+#define GL_TEXTURE_BORDER_COLOR 0x1004
+#define GL_TEXTURE_WIDTH 0x1000
+#define GL_TEXTURE_HEIGHT 0x1001
+#define GL_TEXTURE_BORDER 0x1005
+#define GL_TEXTURE_COMPONENTS 0x1003
+#define GL_TEXTURE_RED_SIZE 0x805C
+#define GL_TEXTURE_GREEN_SIZE 0x805D
+#define GL_TEXTURE_BLUE_SIZE 0x805E
+#define GL_TEXTURE_ALPHA_SIZE 0x805F
+#define GL_TEXTURE_LUMINANCE_SIZE 0x8060
+#define GL_TEXTURE_INTENSITY_SIZE 0x8061
+#define GL_NEAREST_MIPMAP_NEAREST 0x2700
+#define GL_NEAREST_MIPMAP_LINEAR 0x2702
+#define GL_LINEAR_MIPMAP_NEAREST 0x2701
+#define GL_LINEAR_MIPMAP_LINEAR 0x2703
+#define GL_OBJECT_LINEAR 0x2401
+#define GL_OBJECT_PLANE 0x2501
+#define GL_EYE_LINEAR 0x2400
+#define GL_EYE_PLANE 0x2502
+#define GL_SPHERE_MAP 0x2402
+#define GL_DECAL 0x2101
+#define GL_MODULATE 0x2100
+#define GL_NEAREST 0x2600
+#define GL_REPEAT 0x2901
+#define GL_CLAMP 0x2900
+#define GL_S 0x2000
+#define GL_T 0x2001
+#define GL_R 0x2002
+#define GL_Q 0x2003
+#define GL_TEXTURE_GEN_R 0x0C62
+#define GL_TEXTURE_GEN_Q 0x0C63
+
+/* GL 1.1 texturing */
+#define GL_PROXY_TEXTURE_1D 0x8063
+#define GL_PROXY_TEXTURE_2D 0x8064
+#define GL_TEXTURE_PRIORITY 0x8066
+#define GL_TEXTURE_RESIDENT 0x8067
+#define GL_TEXTURE_BINDING_1D 0x8068
+#define GL_TEXTURE_BINDING_2D 0x8069
+#define GL_TEXTURE_INTERNAL_FORMAT 0x1003
+
+/* GL 1.2 texturing */
+#define GL_PACK_SKIP_IMAGES 0x806B
+#define GL_PACK_IMAGE_HEIGHT 0x806C
+#define GL_UNPACK_SKIP_IMAGES 0x806D
+#define GL_UNPACK_IMAGE_HEIGHT 0x806E
+#define GL_TEXTURE_3D 0x806F
+#define GL_PROXY_TEXTURE_3D 0x8070
+#define GL_TEXTURE_DEPTH 0x8071
+#define GL_TEXTURE_WRAP_R 0x8072
+#define GL_MAX_3D_TEXTURE_SIZE 0x8073
+#define GL_TEXTURE_BINDING_3D 0x806A
+
+/* Internal texture formats (GL 1.1) */
+#define GL_ALPHA4 0x803B
+#define GL_ALPHA8 0x803C
+#define GL_ALPHA12 0x803D
+#define GL_ALPHA16 0x803E
+#define GL_LUMINANCE4 0x803F
+#define GL_LUMINANCE8 0x8040
+#define GL_LUMINANCE12 0x8041
+#define GL_LUMINANCE16 0x8042
+#define GL_LUMINANCE4_ALPHA4 0x8043
+#define GL_LUMINANCE6_ALPHA2 0x8044
+#define GL_LUMINANCE8_ALPHA8 0x8045
+#define GL_LUMINANCE12_ALPHA4 0x8046
+#define GL_LUMINANCE12_ALPHA12 0x8047
+#define GL_LUMINANCE16_ALPHA16 0x8048
+#define GL_INTENSITY 0x8049
+#define GL_INTENSITY4 0x804A
+#define GL_INTENSITY8 0x804B
+#define GL_INTENSITY12 0x804C
+#define GL_INTENSITY16 0x804D
+#define GL_R3_G3_B2 0x2A10
+#define GL_RGB4 0x804F
+#define GL_RGB5 0x8050
+#define GL_RGB8 0x8051
+#define GL_RGB10 0x8052
+#define GL_RGB12 0x8053
+#define GL_RGB16 0x8054
+#define GL_RGBA2 0x8055
+#define GL_RGBA4 0x8056
+#define GL_RGB5_A1 0x8057
+#define GL_RGBA8 0x8058
+#define GL_RGB10_A2 0x8059
+#define GL_RGBA12 0x805A
+#define GL_RGBA16 0x805B
+
+/* Utility */
+#define GL_VENDOR 0x1F00
+#define GL_RENDERER 0x1F01
+#define GL_VERSION 0x1F02
+#define GL_EXTENSIONS 0x1F03
+
+/* Errors */
+#define GL_NO_ERROR 0x0
+#define GL_INVALID_VALUE 0x0501
+#define GL_INVALID_ENUM 0x0500
+#define GL_INVALID_OPERATION 0x0502
+#define GL_STACK_OVERFLOW 0x0503
+#define GL_STACK_UNDERFLOW 0x0504
+#define GL_OUT_OF_MEMORY 0x0505
+
+
+/* OpenGL 1.2 */
+#define GL_RESCALE_NORMAL 0x803A
+#define GL_CLAMP_TO_EDGE 0x812F
+#define GL_MAX_ELEMENTS_VERTICES 0x80E8
+#define GL_MAX_ELEMENTS_INDICES 0x80E9
+#define GL_BGR 0x80E0
+#define GL_BGRA 0x80E1
+#define GL_UNSIGNED_BYTE_3_3_2 0x8032
+#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362
+#define GL_UNSIGNED_SHORT_5_6_5 0x8363
+#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364
+#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
+#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365
+#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
+#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366
+#define GL_UNSIGNED_INT_8_8_8_8 0x8035
+#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
+#define GL_UNSIGNED_INT_10_10_10_2 0x8036
+#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
+#define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8
+#define GL_SINGLE_COLOR 0x81F9
+#define GL_SEPARATE_SPECULAR_COLOR 0x81FA
+#define GL_TEXTURE_MIN_LOD 0x813A
+#define GL_TEXTURE_MAX_LOD 0x813B
+#define GL_TEXTURE_BASE_LEVEL 0x813C
+#define GL_TEXTURE_MAX_LEVEL 0x813D
+#define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12
+#define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13
+#define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22
+#define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23
+#define GL_ALIASED_POINT_SIZE_RANGE 0x846D
+#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
+
+
+
+/*
+ * OpenGL 1.2 imaging subset (NOT IMPLEMENTED BY MESA)
+ */
+/* GL_EXT_color_table */
+#define GL_COLOR_TABLE 0x80D0
+#define GL_POST_CONVOLUTION_COLOR_TABLE 0x80D1
+#define GL_POST_COLOR_MATRIX_COLOR_TABLE 0x80D2
+#define GL_PROXY_COLOR_TABLE 0x80D3
+#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4
+#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5
+#define GL_COLOR_TABLE_SCALE 0x80D6
+#define GL_COLOR_TABLE_BIAS 0x80D7
+#define GL_COLOR_TABLE_FORMAT 0x80D8
+#define GL_COLOR_TABLE_WIDTH 0x80D9
+#define GL_COLOR_TABLE_RED_SIZE 0x80DA
+#define GL_COLOR_TABLE_GREEN_SIZE 0x80DB
+#define GL_COLOR_TABLE_BLUE_SIZE 0x80DC
+#define GL_COLOR_TABLE_ALPHA_SIZE 0x80DD
+#define GL_COLOR_TABLE_LUMINANCE_SIZE 0x80DE
+#define GL_COLOR_TABLE_INTENSITY_SIZE 0x80DF
+/* GL_EXT_convolution and GL_HP_convolution_border_modes */
+#define GL_CONVOLUTION_1D 0x8010
+#define GL_CONVOLUTION_2D 0x8011
+#define GL_SEPARABLE_2D 0x8012
+#define GL_CONVOLUTION_BORDER_MODE 0x8013
+#define GL_CONVOLUTION_FILTER_SCALE 0x8014
+#define GL_CONVOLUTION_FILTER_BIAS 0x8015
+#define GL_REDUCE 0x8016
+#define GL_CONVOLUTION_FORMAT 0x8017
+#define GL_CONVOLUTION_WIDTH 0x8018
+#define GL_CONVOLUTION_HEIGHT 0x8019
+#define GL_MAX_CONVOLUTION_WIDTH 0x801A
+#define GL_MAX_CONVOLUTION_HEIGHT 0x801B
+#define GL_POST_CONVOLUTION_RED_SCALE 0x801C
+#define GL_POST_CONVOLUTION_GREEN_SCALE 0x801D
+#define GL_POST_CONVOLUTION_BLUE_SCALE 0x801E
+#define GL_POST_CONVOLUTION_ALPHA_SCALE 0x801F
+#define GL_POST_CONVOLUTION_RED_BIAS 0x8020
+#define GL_POST_CONVOLUTION_GREEN_BIAS 0x8021
+#define GL_POST_CONVOLUTION_BLUE_BIAS 0x8022
+#define GL_POST_CONVOLUTION_ALPHA_BIAS 0x8023
+#define GL_CONSTANT_BORDER 0x8151
+#define GL_REPLICATE_BORDER 0x8153
+#define GL_CONVOLUTION_BORDER_COLOR 0x8154
+/* GL_SGI_color_matrix */
+#define GL_COLOR_MATRIX 0x80B1
+#define GL_COLOR_MATRIX_STACK_DEPTH 0x80B2
+#define GL_MAX_COLOR_MATRIX_STACK_DEPTH 0x80B3
+#define GL_POST_COLOR_MATRIX_RED_SCALE 0x80B4
+#define GL_POST_COLOR_MATRIX_GREEN_SCALE 0x80B5
+#define GL_POST_COLOR_MATRIX_BLUE_SCALE 0x80B6
+#define GL_POST_COLOR_MATRIX_ALPHA_SCALE 0x80B7
+#define GL_POST_COLOR_MATRIX_RED_BIAS 0x80B8
+#define GL_POST_COLOR_MATRIX_GREEN_BIAS 0x80B9
+#define GL_POST_COLOR_MATRIX_BLUE_BIAS 0x80BA
+#define GL_POST_COLOR_MATRIX_ALPHA_BIAS 0x80BB
+/* GL_EXT_histogram */
+#define GL_HISTOGRAM 0x8024
+#define GL_PROXY_HISTOGRAM 0x8025
+#define GL_HISTOGRAM_WIDTH 0x8026
+#define GL_HISTOGRAM_FORMAT 0x8027
+#define GL_HISTOGRAM_RED_SIZE 0x8028
+#define GL_HISTOGRAM_GREEN_SIZE 0x8029
+#define GL_HISTOGRAM_BLUE_SIZE 0x802A
+#define GL_HISTOGRAM_ALPHA_SIZE 0x802B
+#define GL_HISTOGRAM_LUMINANCE_SIZE 0x802C
+#define GL_HISTOGRAM_SINK 0x802D
+#define GL_MINMAX 0x802E
+#define GL_MINMAX_FORMAT 0x802F
+#define GL_MINMAX_SINK 0x8030
+#define GL_TABLE_TOO_LARGE 0x8031
+/* GL_EXT_blend_color, GL_EXT_blend_minmax */
+#define GL_BLEND_EQUATION 0x8009
+#define GL_MIN 0x8007
+#define GL_MAX 0x8008
+#define GL_FUNC_ADD 0x8006
+#define GL_FUNC_SUBTRACT 0x800A
+#define GL_FUNC_REVERSE_SUBTRACT 0x800B
+#define GL_BLEND_COLOR 0x8005
+
+
+/* glPush/PopAttrib bits */
+#define GL_CURRENT_BIT 0x00000001
+#define GL_POINT_BIT 0x00000002
+#define GL_LINE_BIT 0x00000004
+#define GL_POLYGON_BIT 0x00000008
+#define GL_POLYGON_STIPPLE_BIT 0x00000010
+#define GL_PIXEL_MODE_BIT 0x00000020
+#define GL_LIGHTING_BIT 0x00000040
+#define GL_FOG_BIT 0x00000080
+#define GL_DEPTH_BUFFER_BIT 0x00000100
+#define GL_ACCUM_BUFFER_BIT 0x00000200
+#define GL_STENCIL_BUFFER_BIT 0x00000400
+#define GL_VIEWPORT_BIT 0x00000800
+#define GL_TRANSFORM_BIT 0x00001000
+#define GL_ENABLE_BIT 0x00002000
+#define GL_COLOR_BUFFER_BIT 0x00004000
+#define GL_HINT_BIT 0x00008000
+#define GL_EVAL_BIT 0x00010000
+#define GL_LIST_BIT 0x00020000
+#define GL_TEXTURE_BIT 0x00040000
+#define GL_SCISSOR_BIT 0x00080000
+#define GL_ALL_ATTRIB_BITS 0x000FFFFF
+
+
+#define GL_CLIENT_PIXEL_STORE_BIT 0x00000001
+#define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002
+#define GL_CLIENT_ALL_ATTRIB_BITS 0xFFFFFFFF
+
+
+
+
+
+#if defined(__BEOS__) || defined(__QUICKDRAW__)
+#pragma export on
+#endif
+
+
+/*
+ * Miscellaneous
+ */
+
+GLAPI void GLAPIENTRY glClearIndex( GLfloat c );
+
+GLAPI void GLAPIENTRY glClearColor( GLclampf red,
+ GLclampf green,
+ GLclampf blue,
+ GLclampf alpha );
+
+GLAPI void GLAPIENTRY glClear( GLbitfield mask );
+
+GLAPI void GLAPIENTRY glIndexMask( GLuint mask );
+
+GLAPI void GLAPIENTRY glColorMask( GLboolean red, GLboolean green,
+ GLboolean blue, GLboolean alpha );
+
+GLAPI void GLAPIENTRY glAlphaFunc( GLenum func, GLclampf ref );
+
+GLAPI void GLAPIENTRY glBlendFunc( GLenum sfactor, GLenum dfactor );
+
+GLAPI void GLAPIENTRY glLogicOp( GLenum opcode );
+
+GLAPI void GLAPIENTRY glCullFace( GLenum mode );
+
+GLAPI void GLAPIENTRY glFrontFace( GLenum mode );
+
+GLAPI void GLAPIENTRY glPointSize( GLfloat size );
+
+GLAPI void GLAPIENTRY glLineWidth( GLfloat width );
+
+GLAPI void GLAPIENTRY glLineStipple( GLint factor, GLushort pattern );
+
+GLAPI void GLAPIENTRY glPolygonMode( GLenum face, GLenum mode );
+
+GLAPI void GLAPIENTRY glPolygonOffset( GLfloat factor, GLfloat units );
+
+GLAPI void GLAPIENTRY glPolygonStipple( const GLubyte *mask );
+
+GLAPI void GLAPIENTRY glGetPolygonStipple( GLubyte *mask );
+
+GLAPI void GLAPIENTRY glEdgeFlag( GLboolean flag );
+
+GLAPI void GLAPIENTRY glEdgeFlagv( const GLboolean *flag );
+
+GLAPI void GLAPIENTRY glScissor( GLint x, GLint y,
+ GLsizei width, GLsizei height);
+
+GLAPI void GLAPIENTRY glClipPlane( GLenum plane, const GLdouble *equation );
+
+GLAPI void GLAPIENTRY glGetClipPlane( GLenum plane, GLdouble *equation );
+
+GLAPI void GLAPIENTRY glDrawBuffer( GLenum mode );
+
+GLAPI void GLAPIENTRY glReadBuffer( GLenum mode );
+
+GLAPI void GLAPIENTRY glEnable( GLenum cap );
+
+GLAPI void GLAPIENTRY glDisable( GLenum cap );
+
+GLAPI GLboolean GLAPIENTRY glIsEnabled( GLenum cap );
+
+
+GLAPI void GLAPIENTRY glEnableClientState( GLenum cap ); /* 1.1 */
+
+GLAPI void GLAPIENTRY glDisableClientState( GLenum cap ); /* 1.1 */
+
+
+GLAPI void GLAPIENTRY glGetBooleanv( GLenum pname, GLboolean *params );
+
+GLAPI void GLAPIENTRY glGetDoublev( GLenum pname, GLdouble *params );
+
+GLAPI void GLAPIENTRY glGetFloatv( GLenum pname, GLfloat *params );
+
+GLAPI void GLAPIENTRY glGetIntegerv( GLenum pname, GLint *params );
+
+
+GLAPI void GLAPIENTRY glPushAttrib( GLbitfield mask );
+
+GLAPI void GLAPIENTRY glPopAttrib( void );
+
+
+GLAPI void GLAPIENTRY glPushClientAttrib( GLbitfield mask ); /* 1.1 */
+
+GLAPI void GLAPIENTRY glPopClientAttrib( void ); /* 1.1 */
+
+
+GLAPI GLint GLAPIENTRY glRenderMode( GLenum mode );
+
+GLAPI GLenum GLAPIENTRY glGetError( void );
+
+/* JAU - manual
+GLAPI const GLubyte* GLAPIENTRY glGetString( GLenum name );
+*/
+
+GLAPI void GLAPIENTRY glFinish( void );
+
+GLAPI void GLAPIENTRY glFlush( void );
+
+GLAPI void GLAPIENTRY glHint( GLenum target, GLenum mode );
+
+
+
+/*
+ * Depth Buffer
+ */
+
+GLAPI void GLAPIENTRY glClearDepth( GLclampd depth );
+
+GLAPI void GLAPIENTRY glDepthFunc( GLenum func );
+
+GLAPI void GLAPIENTRY glDepthMask( GLboolean flag );
+
+GLAPI void GLAPIENTRY glDepthRange( GLclampd near_val, GLclampd far_val );
+
+
+/*
+ * Accumulation Buffer
+ */
+
+GLAPI void GLAPIENTRY glClearAccum( GLfloat red, GLfloat green,
+ GLfloat blue, GLfloat alpha );
+
+GLAPI void GLAPIENTRY glAccum( GLenum op, GLfloat value );
+
+
+
+/*
+ * Transformation
+ */
+
+GLAPI void GLAPIENTRY glMatrixMode( GLenum mode );
+
+GLAPI void GLAPIENTRY glOrtho( GLdouble left, GLdouble right,
+ GLdouble bottom, GLdouble top,
+ GLdouble near_val, GLdouble far_val );
+
+GLAPI void GLAPIENTRY glFrustum( GLdouble left, GLdouble right,
+ GLdouble bottom, GLdouble top,
+ GLdouble near_val, GLdouble far_val );
+
+GLAPI void GLAPIENTRY glViewport( GLint x, GLint y,
+ GLsizei width, GLsizei height );
+
+GLAPI void GLAPIENTRY glPushMatrix( void );
+
+GLAPI void GLAPIENTRY glPopMatrix( void );
+
+GLAPI void GLAPIENTRY glLoadIdentity( void );
+
+GLAPI void GLAPIENTRY glLoadMatrixd( const GLdouble *m );
+GLAPI void GLAPIENTRY glLoadMatrixf( const GLfloat *m );
+
+GLAPI void GLAPIENTRY glMultMatrixd( const GLdouble *m );
+GLAPI void GLAPIENTRY glMultMatrixf( const GLfloat *m );
+
+GLAPI void GLAPIENTRY glRotated( GLdouble angle,
+ GLdouble x, GLdouble y, GLdouble z );
+GLAPI void GLAPIENTRY glRotatef( GLfloat angle,
+ GLfloat x, GLfloat y, GLfloat z );
+
+GLAPI void GLAPIENTRY glScaled( GLdouble x, GLdouble y, GLdouble z );
+GLAPI void GLAPIENTRY glScalef( GLfloat x, GLfloat y, GLfloat z );
+
+GLAPI void GLAPIENTRY glTranslated( GLdouble x, GLdouble y, GLdouble z );
+GLAPI void GLAPIENTRY glTranslatef( GLfloat x, GLfloat y, GLfloat z );
+
+
+
+/*
+ * Display Lists
+ */
+
+GLAPI GLboolean GLAPIENTRY glIsList( GLuint list );
+
+GLAPI void GLAPIENTRY glDeleteLists( GLuint list, GLsizei range );
+
+GLAPI GLuint GLAPIENTRY glGenLists( GLsizei range );
+
+GLAPI void GLAPIENTRY glNewList( GLuint list, GLenum mode );
+
+GLAPI void GLAPIENTRY glEndList( void );
+
+GLAPI void GLAPIENTRY glCallList( GLuint list );
+
+GLAPI void GLAPIENTRY glCallLists( GLsizei n, GLenum type,
+ const GLvoid *lists );
+
+GLAPI void GLAPIENTRY glListBase( GLuint base );
+
+
+
+/*
+ * Drawing Functions
+ */
+
+GLAPI void GLAPIENTRY glBegin( GLenum mode );
+
+GLAPI void GLAPIENTRY glEnd( void );
+
+
+GLAPI void GLAPIENTRY glVertex2d( GLdouble x, GLdouble y );
+GLAPI void GLAPIENTRY glVertex2f( GLfloat x, GLfloat y );
+GLAPI void GLAPIENTRY glVertex2i( GLint x, GLint y );
+GLAPI void GLAPIENTRY glVertex2s( GLshort x, GLshort y );
+
+GLAPI void GLAPIENTRY glVertex3d( GLdouble x, GLdouble y, GLdouble z );
+GLAPI void GLAPIENTRY glVertex3f( GLfloat x, GLfloat y, GLfloat z );
+GLAPI void GLAPIENTRY glVertex3i( GLint x, GLint y, GLint z );
+GLAPI void GLAPIENTRY glVertex3s( GLshort x, GLshort y, GLshort z );
+
+GLAPI void GLAPIENTRY glVertex4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w );
+GLAPI void GLAPIENTRY glVertex4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w );
+GLAPI void GLAPIENTRY glVertex4i( GLint x, GLint y, GLint z, GLint w );
+GLAPI void GLAPIENTRY glVertex4s( GLshort x, GLshort y, GLshort z, GLshort w );
+
+GLAPI void GLAPIENTRY glVertex2dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glVertex2fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glVertex2iv( const GLint *v );
+GLAPI void GLAPIENTRY glVertex2sv( const GLshort *v );
+
+GLAPI void GLAPIENTRY glVertex3dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glVertex3fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glVertex3iv( const GLint *v );
+GLAPI void GLAPIENTRY glVertex3sv( const GLshort *v );
+
+GLAPI void GLAPIENTRY glVertex4dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glVertex4fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glVertex4iv( const GLint *v );
+GLAPI void GLAPIENTRY glVertex4sv( const GLshort *v );
+
+
+GLAPI void GLAPIENTRY glNormal3b( GLbyte nx, GLbyte ny, GLbyte nz );
+GLAPI void GLAPIENTRY glNormal3d( GLdouble nx, GLdouble ny, GLdouble nz );
+GLAPI void GLAPIENTRY glNormal3f( GLfloat nx, GLfloat ny, GLfloat nz );
+GLAPI void GLAPIENTRY glNormal3i( GLint nx, GLint ny, GLint nz );
+GLAPI void GLAPIENTRY glNormal3s( GLshort nx, GLshort ny, GLshort nz );
+
+GLAPI void GLAPIENTRY glNormal3bv( const GLbyte *v );
+GLAPI void GLAPIENTRY glNormal3dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glNormal3fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glNormal3iv( const GLint *v );
+GLAPI void GLAPIENTRY glNormal3sv( const GLshort *v );
+
+
+GLAPI void GLAPIENTRY glIndexd( GLdouble c );
+GLAPI void GLAPIENTRY glIndexf( GLfloat c );
+GLAPI void GLAPIENTRY glIndexi( GLint c );
+GLAPI void GLAPIENTRY glIndexs( GLshort c );
+GLAPI void GLAPIENTRY glIndexub( GLubyte c ); /* 1.1 */
+
+GLAPI void GLAPIENTRY glIndexdv( const GLdouble *c );
+GLAPI void GLAPIENTRY glIndexfv( const GLfloat *c );
+GLAPI void GLAPIENTRY glIndexiv( const GLint *c );
+GLAPI void GLAPIENTRY glIndexsv( const GLshort *c );
+GLAPI void GLAPIENTRY glIndexubv( const GLubyte *c ); /* 1.1 */
+
+GLAPI void GLAPIENTRY glColor3b( GLbyte red, GLbyte green, GLbyte blue );
+GLAPI void GLAPIENTRY glColor3d( GLdouble red, GLdouble green, GLdouble blue );
+GLAPI void GLAPIENTRY glColor3f( GLfloat red, GLfloat green, GLfloat blue );
+GLAPI void GLAPIENTRY glColor3i( GLint red, GLint green, GLint blue );
+GLAPI void GLAPIENTRY glColor3s( GLshort red, GLshort green, GLshort blue );
+GLAPI void GLAPIENTRY glColor3ub( GLubyte red, GLubyte green, GLubyte blue );
+GLAPI void GLAPIENTRY glColor3ui( GLuint red, GLuint green, GLuint blue );
+GLAPI void GLAPIENTRY glColor3us( GLushort red, GLushort green, GLushort blue );
+
+GLAPI void GLAPIENTRY glColor4b( GLbyte red, GLbyte green,
+ GLbyte blue, GLbyte alpha );
+GLAPI void GLAPIENTRY glColor4d( GLdouble red, GLdouble green,
+ GLdouble blue, GLdouble alpha );
+GLAPI void GLAPIENTRY glColor4f( GLfloat red, GLfloat green,
+ GLfloat blue, GLfloat alpha );
+GLAPI void GLAPIENTRY glColor4i( GLint red, GLint green,
+ GLint blue, GLint alpha );
+GLAPI void GLAPIENTRY glColor4s( GLshort red, GLshort green,
+ GLshort blue, GLshort alpha );
+GLAPI void GLAPIENTRY glColor4ub( GLubyte red, GLubyte green,
+ GLubyte blue, GLubyte alpha );
+GLAPI void GLAPIENTRY glColor4ui( GLuint red, GLuint green,
+ GLuint blue, GLuint alpha );
+GLAPI void GLAPIENTRY glColor4us( GLushort red, GLushort green,
+ GLushort blue, GLushort alpha );
+
+
+GLAPI void GLAPIENTRY glColor3bv( const GLbyte *v );
+GLAPI void GLAPIENTRY glColor3dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glColor3fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glColor3iv( const GLint *v );
+GLAPI void GLAPIENTRY glColor3sv( const GLshort *v );
+GLAPI void GLAPIENTRY glColor3ubv( const GLubyte *v );
+GLAPI void GLAPIENTRY glColor3uiv( const GLuint *v );
+GLAPI void GLAPIENTRY glColor3usv( const GLushort *v );
+
+GLAPI void GLAPIENTRY glColor4bv( const GLbyte *v );
+GLAPI void GLAPIENTRY glColor4dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glColor4fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glColor4iv( const GLint *v );
+GLAPI void GLAPIENTRY glColor4sv( const GLshort *v );
+GLAPI void GLAPIENTRY glColor4ubv( const GLubyte *v );
+GLAPI void GLAPIENTRY glColor4uiv( const GLuint *v );
+GLAPI void GLAPIENTRY glColor4usv( const GLushort *v );
+
+
+GLAPI void GLAPIENTRY glTexCoord1d( GLdouble s );
+GLAPI void GLAPIENTRY glTexCoord1f( GLfloat s );
+GLAPI void GLAPIENTRY glTexCoord1i( GLint s );
+GLAPI void GLAPIENTRY glTexCoord1s( GLshort s );
+
+GLAPI void GLAPIENTRY glTexCoord2d( GLdouble s, GLdouble t );
+GLAPI void GLAPIENTRY glTexCoord2f( GLfloat s, GLfloat t );
+GLAPI void GLAPIENTRY glTexCoord2i( GLint s, GLint t );
+GLAPI void GLAPIENTRY glTexCoord2s( GLshort s, GLshort t );
+
+GLAPI void GLAPIENTRY glTexCoord3d( GLdouble s, GLdouble t, GLdouble r );
+GLAPI void GLAPIENTRY glTexCoord3f( GLfloat s, GLfloat t, GLfloat r );
+GLAPI void GLAPIENTRY glTexCoord3i( GLint s, GLint t, GLint r );
+GLAPI void GLAPIENTRY glTexCoord3s( GLshort s, GLshort t, GLshort r );
+
+GLAPI void GLAPIENTRY glTexCoord4d( GLdouble s, GLdouble t, GLdouble r, GLdouble q );
+GLAPI void GLAPIENTRY glTexCoord4f( GLfloat s, GLfloat t, GLfloat r, GLfloat q );
+GLAPI void GLAPIENTRY glTexCoord4i( GLint s, GLint t, GLint r, GLint q );
+GLAPI void GLAPIENTRY glTexCoord4s( GLshort s, GLshort t, GLshort r, GLshort q );
+
+GLAPI void GLAPIENTRY glTexCoord1dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glTexCoord1fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glTexCoord1iv( const GLint *v );
+GLAPI void GLAPIENTRY glTexCoord1sv( const GLshort *v );
+
+GLAPI void GLAPIENTRY glTexCoord2dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glTexCoord2fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glTexCoord2iv( const GLint *v );
+GLAPI void GLAPIENTRY glTexCoord2sv( const GLshort *v );
+
+GLAPI void GLAPIENTRY glTexCoord3dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glTexCoord3fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glTexCoord3iv( const GLint *v );
+GLAPI void GLAPIENTRY glTexCoord3sv( const GLshort *v );
+
+GLAPI void GLAPIENTRY glTexCoord4dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glTexCoord4fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glTexCoord4iv( const GLint *v );
+GLAPI void GLAPIENTRY glTexCoord4sv( const GLshort *v );
+
+
+GLAPI void GLAPIENTRY glRasterPos2d( GLdouble x, GLdouble y );
+GLAPI void GLAPIENTRY glRasterPos2f( GLfloat x, GLfloat y );
+GLAPI void GLAPIENTRY glRasterPos2i( GLint x, GLint y );
+GLAPI void GLAPIENTRY glRasterPos2s( GLshort x, GLshort y );
+
+GLAPI void GLAPIENTRY glRasterPos3d( GLdouble x, GLdouble y, GLdouble z );
+GLAPI void GLAPIENTRY glRasterPos3f( GLfloat x, GLfloat y, GLfloat z );
+GLAPI void GLAPIENTRY glRasterPos3i( GLint x, GLint y, GLint z );
+GLAPI void GLAPIENTRY glRasterPos3s( GLshort x, GLshort y, GLshort z );
+
+GLAPI void GLAPIENTRY glRasterPos4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w );
+GLAPI void GLAPIENTRY glRasterPos4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w );
+GLAPI void GLAPIENTRY glRasterPos4i( GLint x, GLint y, GLint z, GLint w );
+GLAPI void GLAPIENTRY glRasterPos4s( GLshort x, GLshort y, GLshort z, GLshort w );
+
+GLAPI void GLAPIENTRY glRasterPos2dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glRasterPos2fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glRasterPos2iv( const GLint *v );
+GLAPI void GLAPIENTRY glRasterPos2sv( const GLshort *v );
+
+GLAPI void GLAPIENTRY glRasterPos3dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glRasterPos3fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glRasterPos3iv( const GLint *v );
+GLAPI void GLAPIENTRY glRasterPos3sv( const GLshort *v );
+
+GLAPI void GLAPIENTRY glRasterPos4dv( const GLdouble *v );
+GLAPI void GLAPIENTRY glRasterPos4fv( const GLfloat *v );
+GLAPI void GLAPIENTRY glRasterPos4iv( const GLint *v );
+GLAPI void GLAPIENTRY glRasterPos4sv( const GLshort *v );
+
+
+GLAPI void GLAPIENTRY glRectd( GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2 );
+GLAPI void GLAPIENTRY glRectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 );
+GLAPI void GLAPIENTRY glRecti( GLint x1, GLint y1, GLint x2, GLint y2 );
+GLAPI void GLAPIENTRY glRects( GLshort x1, GLshort y1, GLshort x2, GLshort y2 );
+
+
+GLAPI void GLAPIENTRY glRectdv( const GLdouble *v1, const GLdouble *v2 );
+GLAPI void GLAPIENTRY glRectfv( const GLfloat *v1, const GLfloat *v2 );
+GLAPI void GLAPIENTRY glRectiv( const GLint *v1, const GLint *v2 );
+GLAPI void GLAPIENTRY glRectsv( const GLshort *v1, const GLshort *v2 );
+
+
+
+/*
+ * Vertex Arrays (1.1)
+ */
+
+GLAPI void GLAPIENTRY glVertexPointer( GLint size, GLenum type,
+ GLsizei stride, const GLvoid *ptr );
+
+GLAPI void GLAPIENTRY glNormalPointer( GLenum type, GLsizei stride,
+ const GLvoid *ptr );
+
+GLAPI void GLAPIENTRY glColorPointer( GLint size, GLenum type,
+ GLsizei stride, const GLvoid *ptr );
+
+GLAPI void GLAPIENTRY glIndexPointer( GLenum type, GLsizei stride,
+ const GLvoid *ptr );
+
+GLAPI void GLAPIENTRY glTexCoordPointer( GLint size, GLenum type,
+ GLsizei stride, const GLvoid *ptr );
+
+GLAPI void GLAPIENTRY glEdgeFlagPointer( GLsizei stride, const GLvoid *ptr );
+
+GLAPI void GLAPIENTRY glGetPointerv( GLenum pname, void **params );
+
+GLAPI void GLAPIENTRY glArrayElement( GLint i );
+
+GLAPI void GLAPIENTRY glDrawArrays( GLenum mode, GLint first, GLsizei count );
+
+GLAPI void GLAPIENTRY glDrawElements( GLenum mode, GLsizei count,
+ GLenum type, const GLvoid *indices );
+
+GLAPI void GLAPIENTRY glInterleavedArrays( GLenum format, GLsizei stride,
+ const GLvoid *pointer );
+
+
+/*
+ * Lighting
+ */
+
+GLAPI void GLAPIENTRY glShadeModel( GLenum mode );
+
+GLAPI void GLAPIENTRY glLightf( GLenum light, GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glLighti( GLenum light, GLenum pname, GLint param );
+GLAPI void GLAPIENTRY glLightfv( GLenum light, GLenum pname,
+ const GLfloat *params );
+GLAPI void GLAPIENTRY glLightiv( GLenum light, GLenum pname,
+ const GLint *params );
+
+GLAPI void GLAPIENTRY glGetLightfv( GLenum light, GLenum pname,
+ GLfloat *params );
+GLAPI void GLAPIENTRY glGetLightiv( GLenum light, GLenum pname,
+ GLint *params );
+
+GLAPI void GLAPIENTRY glLightModelf( GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glLightModeli( GLenum pname, GLint param );
+GLAPI void GLAPIENTRY glLightModelfv( GLenum pname, const GLfloat *params );
+GLAPI void GLAPIENTRY glLightModeliv( GLenum pname, const GLint *params );
+
+GLAPI void GLAPIENTRY glMaterialf( GLenum face, GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glMateriali( GLenum face, GLenum pname, GLint param );
+GLAPI void GLAPIENTRY glMaterialfv( GLenum face, GLenum pname, const GLfloat *params );
+GLAPI void GLAPIENTRY glMaterialiv( GLenum face, GLenum pname, const GLint *params );
+
+GLAPI void GLAPIENTRY glGetMaterialfv( GLenum face, GLenum pname, GLfloat *params );
+GLAPI void GLAPIENTRY glGetMaterialiv( GLenum face, GLenum pname, GLint *params );
+
+GLAPI void GLAPIENTRY glColorMaterial( GLenum face, GLenum mode );
+
+
+
+
+/*
+ * Raster functions
+ */
+
+GLAPI void GLAPIENTRY glPixelZoom( GLfloat xfactor, GLfloat yfactor );
+
+GLAPI void GLAPIENTRY glPixelStoref( GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glPixelStorei( GLenum pname, GLint param );
+
+GLAPI void GLAPIENTRY glPixelTransferf( GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glPixelTransferi( GLenum pname, GLint param );
+
+GLAPI void GLAPIENTRY glPixelMapfv( GLenum map, GLint mapsize,
+ const GLfloat *values );
+GLAPI void GLAPIENTRY glPixelMapuiv( GLenum map, GLint mapsize,
+ const GLuint *values );
+GLAPI void GLAPIENTRY glPixelMapusv( GLenum map, GLint mapsize,
+ const GLushort *values );
+
+GLAPI void GLAPIENTRY glGetPixelMapfv( GLenum map, GLfloat *values );
+GLAPI void GLAPIENTRY glGetPixelMapuiv( GLenum map, GLuint *values );
+GLAPI void GLAPIENTRY glGetPixelMapusv( GLenum map, GLushort *values );
+
+GLAPI void GLAPIENTRY glBitmap( GLsizei width, GLsizei height,
+ GLfloat xorig, GLfloat yorig,
+ GLfloat xmove, GLfloat ymove,
+ const GLubyte *bitmap );
+
+GLAPI void GLAPIENTRY glReadPixels( GLint x, GLint y,
+ GLsizei width, GLsizei height,
+ GLenum format, GLenum type,
+ GLvoid *pixels );
+
+GLAPI void GLAPIENTRY glDrawPixels( GLsizei width, GLsizei height,
+ GLenum format, GLenum type,
+ const GLvoid *pixels );
+
+GLAPI void GLAPIENTRY glCopyPixels( GLint x, GLint y,
+ GLsizei width, GLsizei height,
+ GLenum type );
+
+
+
+/*
+ * Stenciling
+ */
+
+GLAPI void GLAPIENTRY glStencilFunc( GLenum func, GLint ref, GLuint mask );
+
+GLAPI void GLAPIENTRY glStencilMask( GLuint mask );
+
+GLAPI void GLAPIENTRY glStencilOp( GLenum fail, GLenum zfail, GLenum zpass );
+
+GLAPI void GLAPIENTRY glClearStencil( GLint s );
+
+
+
+/*
+ * Texture mapping
+ */
+
+GLAPI void GLAPIENTRY glTexGend( GLenum coord, GLenum pname, GLdouble param );
+GLAPI void GLAPIENTRY glTexGenf( GLenum coord, GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glTexGeni( GLenum coord, GLenum pname, GLint param );
+
+GLAPI void GLAPIENTRY glTexGendv( GLenum coord, GLenum pname, const GLdouble *params );
+GLAPI void GLAPIENTRY glTexGenfv( GLenum coord, GLenum pname, const GLfloat *params );
+GLAPI void GLAPIENTRY glTexGeniv( GLenum coord, GLenum pname, const GLint *params );
+
+GLAPI void GLAPIENTRY glGetTexGendv( GLenum coord, GLenum pname, GLdouble *params );
+GLAPI void GLAPIENTRY glGetTexGenfv( GLenum coord, GLenum pname, GLfloat *params );
+GLAPI void GLAPIENTRY glGetTexGeniv( GLenum coord, GLenum pname, GLint *params );
+
+
+GLAPI void GLAPIENTRY glTexEnvf( GLenum target, GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glTexEnvi( GLenum target, GLenum pname, GLint param );
+
+GLAPI void GLAPIENTRY glTexEnvfv( GLenum target, GLenum pname, const GLfloat *params );
+GLAPI void GLAPIENTRY glTexEnviv( GLenum target, GLenum pname, const GLint *params );
+
+GLAPI void GLAPIENTRY glGetTexEnvfv( GLenum target, GLenum pname, GLfloat *params );
+GLAPI void GLAPIENTRY glGetTexEnviv( GLenum target, GLenum pname, GLint *params );
+
+
+GLAPI void GLAPIENTRY glTexParameterf( GLenum target, GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glTexParameteri( GLenum target, GLenum pname, GLint param );
+
+GLAPI void GLAPIENTRY glTexParameterfv( GLenum target, GLenum pname,
+ const GLfloat *params );
+GLAPI void GLAPIENTRY glTexParameteriv( GLenum target, GLenum pname,
+ const GLint *params );
+
+GLAPI void GLAPIENTRY glGetTexParameterfv( GLenum target,
+ GLenum pname, GLfloat *params);
+GLAPI void GLAPIENTRY glGetTexParameteriv( GLenum target,
+ GLenum pname, GLint *params );
+
+GLAPI void GLAPIENTRY glGetTexLevelParameterfv( GLenum target, GLint level,
+ GLenum pname, GLfloat *params );
+GLAPI void GLAPIENTRY glGetTexLevelParameteriv( GLenum target, GLint level,
+ GLenum pname, GLint *params );
+
+
+GLAPI void GLAPIENTRY glTexImage1D( GLenum target, GLint level,
+ GLint internalFormat,
+ GLsizei width, GLint border,
+ GLenum format, GLenum type,
+ const GLvoid *pixels );
+
+GLAPI void GLAPIENTRY glTexImage2D( GLenum target, GLint level,
+ GLint internalFormat,
+ GLsizei width, GLsizei height,
+ GLint border, GLenum format, GLenum type,
+ const GLvoid *pixels );
+
+GLAPI void GLAPIENTRY glGetTexImage( GLenum target, GLint level,
+ GLenum format, GLenum type,
+ GLvoid *pixels );
+
+
+
+/* 1.1 functions */
+
+GLAPI void GLAPIENTRY glGenTextures( GLsizei n, GLuint *textures );
+
+GLAPI void GLAPIENTRY glDeleteTextures( GLsizei n, const GLuint *textures);
+
+GLAPI void GLAPIENTRY glBindTexture( GLenum target, GLuint texture );
+
+GLAPI void GLAPIENTRY glPrioritizeTextures( GLsizei n,
+ const GLuint *textures,
+ const GLclampf *priorities );
+
+GLAPI GLboolean GLAPIENTRY glAreTexturesResident( GLsizei n,
+ const GLuint *textures,
+ GLboolean *residences );
+
+GLAPI GLboolean GLAPIENTRY glIsTexture( GLuint texture );
+
+
+GLAPI void GLAPIENTRY glTexSubImage1D( GLenum target, GLint level,
+ GLint xoffset,
+ GLsizei width, GLenum format,
+ GLenum type, const GLvoid *pixels );
+
+
+GLAPI void GLAPIENTRY glTexSubImage2D( GLenum target, GLint level,
+ GLint xoffset, GLint yoffset,
+ GLsizei width, GLsizei height,
+ GLenum format, GLenum type,
+ const GLvoid *pixels );
+
+
+GLAPI void GLAPIENTRY glCopyTexImage1D( GLenum target, GLint level,
+ GLenum internalformat,
+ GLint x, GLint y,
+ GLsizei width, GLint border );
+
+
+GLAPI void GLAPIENTRY glCopyTexImage2D( GLenum target, GLint level,
+ GLenum internalformat,
+ GLint x, GLint y,
+ GLsizei width, GLsizei height,
+ GLint border );
+
+
+GLAPI void GLAPIENTRY glCopyTexSubImage1D( GLenum target, GLint level,
+ GLint xoffset, GLint x, GLint y,
+ GLsizei width );
+
+
+GLAPI void GLAPIENTRY glCopyTexSubImage2D( GLenum target, GLint level,
+ GLint xoffset, GLint yoffset,
+ GLint x, GLint y,
+ GLsizei width, GLsizei height );
+
+
+
+
+/*
+ * Evaluators
+ */
+
+GLAPI void GLAPIENTRY glMap1d( GLenum target, GLdouble u1, GLdouble u2,
+ GLint stride,
+ GLint order, const GLdouble *points );
+GLAPI void GLAPIENTRY glMap1f( GLenum target, GLfloat u1, GLfloat u2,
+ GLint stride,
+ GLint order, const GLfloat *points );
+
+GLAPI void GLAPIENTRY glMap2d( GLenum target,
+ GLdouble u1, GLdouble u2, GLint ustride, GLint uorder,
+ GLdouble v1, GLdouble v2, GLint vstride, GLint vorder,
+ const GLdouble *points );
+GLAPI void GLAPIENTRY glMap2f( GLenum target,
+ GLfloat u1, GLfloat u2, GLint ustride, GLint uorder,
+ GLfloat v1, GLfloat v2, GLint vstride, GLint vorder,
+ const GLfloat *points );
+
+GLAPI void GLAPIENTRY glGetMapdv( GLenum target, GLenum query, GLdouble *v );
+GLAPI void GLAPIENTRY glGetMapfv( GLenum target, GLenum query, GLfloat *v );
+GLAPI void GLAPIENTRY glGetMapiv( GLenum target, GLenum query, GLint *v );
+
+GLAPI void GLAPIENTRY glEvalCoord1d( GLdouble u );
+GLAPI void GLAPIENTRY glEvalCoord1f( GLfloat u );
+
+GLAPI void GLAPIENTRY glEvalCoord1dv( const GLdouble *u );
+GLAPI void GLAPIENTRY glEvalCoord1fv( const GLfloat *u );
+
+GLAPI void GLAPIENTRY glEvalCoord2d( GLdouble u, GLdouble v );
+GLAPI void GLAPIENTRY glEvalCoord2f( GLfloat u, GLfloat v );
+
+GLAPI void GLAPIENTRY glEvalCoord2dv( const GLdouble *u );
+GLAPI void GLAPIENTRY glEvalCoord2fv( const GLfloat *u );
+
+GLAPI void GLAPIENTRY glMapGrid1d( GLint un, GLdouble u1, GLdouble u2 );
+GLAPI void GLAPIENTRY glMapGrid1f( GLint un, GLfloat u1, GLfloat u2 );
+
+GLAPI void GLAPIENTRY glMapGrid2d( GLint un, GLdouble u1, GLdouble u2,
+ GLint vn, GLdouble v1, GLdouble v2 );
+GLAPI void GLAPIENTRY glMapGrid2f( GLint un, GLfloat u1, GLfloat u2,
+ GLint vn, GLfloat v1, GLfloat v2 );
+
+GLAPI void GLAPIENTRY glEvalPoint1( GLint i );
+
+GLAPI void GLAPIENTRY glEvalPoint2( GLint i, GLint j );
+
+GLAPI void GLAPIENTRY glEvalMesh1( GLenum mode, GLint i1, GLint i2 );
+
+GLAPI void GLAPIENTRY glEvalMesh2( GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2 );
+
+
+
+/*
+ * Fog
+ */
+
+GLAPI void GLAPIENTRY glFogf( GLenum pname, GLfloat param );
+
+GLAPI void GLAPIENTRY glFogi( GLenum pname, GLint param );
+
+GLAPI void GLAPIENTRY glFogfv( GLenum pname, const GLfloat *params );
+
+GLAPI void GLAPIENTRY glFogiv( GLenum pname, const GLint *params );
+
+
+
+/*
+ * Selection and Feedback
+ */
+
+GLAPI void GLAPIENTRY glFeedbackBuffer( GLsizei size, GLenum type, GLfloat *buffer );
+
+GLAPI void GLAPIENTRY glPassThrough( GLfloat token );
+
+GLAPI void GLAPIENTRY glSelectBuffer( GLsizei size, GLuint *buffer );
+
+GLAPI void GLAPIENTRY glInitNames( void );
+
+GLAPI void GLAPIENTRY glLoadName( GLuint name );
+
+GLAPI void GLAPIENTRY glPushName( GLuint name );
+
+GLAPI void GLAPIENTRY glPopName( void );
+
+
+
+/* 1.2 functions */
+GLAPI void GLAPIENTRY glDrawRangeElements( GLenum mode, GLuint start,
+ GLuint end, GLsizei count, GLenum type, const GLvoid *indices );
+
+GLAPI void GLAPIENTRY glTexImage3D( GLenum target, GLint level,
+ GLint internalFormat,
+ GLsizei width, GLsizei height,
+ GLsizei depth, GLint border,
+ GLenum format, GLenum type,
+ const GLvoid *pixels );
+
+GLAPI void GLAPIENTRY glTexSubImage3D( GLenum target, GLint level,
+ GLint xoffset, GLint yoffset,
+ GLint zoffset, GLsizei width,
+ GLsizei height, GLsizei depth,
+ GLenum format,
+ GLenum type, const GLvoid *pixels);
+
+GLAPI void GLAPIENTRY glCopyTexSubImage3D( GLenum target, GLint level,
+ GLint xoffset, GLint yoffset,
+ GLint zoffset, GLint x,
+ GLint y, GLsizei width,
+ GLsizei height );
+
+
+/* 1.2 imaging extension functions */
+
+GLAPI void GLAPIENTRY glColorTable( GLenum target, GLenum internalformat,
+ GLsizei width, GLenum format,
+ GLenum type, const GLvoid *table );
+
+GLAPI void GLAPIENTRY glColorSubTable( GLenum target,
+ GLsizei start, GLsizei count,
+ GLenum format, GLenum type,
+ const GLvoid *data );
+
+GLAPI void GLAPIENTRY glColorTableParameteriv(GLenum target, GLenum pname,
+ const GLint *params);
+
+GLAPI void GLAPIENTRY glColorTableParameterfv(GLenum target, GLenum pname,
+ const GLfloat *params);
+
+GLAPI void GLAPIENTRY glCopyColorSubTable( GLenum target, GLsizei start,
+ GLint x, GLint y, GLsizei width );
+
+GLAPI void GLAPIENTRY glCopyColorTable( GLenum target, GLenum internalformat,
+ GLint x, GLint y, GLsizei width );
+
+GLAPI void GLAPIENTRY glGetColorTable( GLenum target, GLenum format,
+ GLenum type, GLvoid *table );
+
+GLAPI void GLAPIENTRY glGetColorTableParameterfv( GLenum target, GLenum pname,
+ GLfloat *params );
+
+GLAPI void GLAPIENTRY glGetColorTableParameteriv( GLenum target, GLenum pname,
+ GLint *params );
+
+GLAPI void GLAPIENTRY glBlendEquation( GLenum mode );
+
+GLAPI void GLAPIENTRY glBlendColor( GLclampf red, GLclampf green,
+ GLclampf blue, GLclampf alpha );
+
+GLAPI void GLAPIENTRY glHistogram( GLenum target, GLsizei width,
+ GLenum internalformat, GLboolean sink );
+
+GLAPI void GLAPIENTRY glResetHistogram( GLenum target );
+
+GLAPI void GLAPIENTRY glGetHistogram( GLenum target, GLboolean reset,
+ GLenum format, GLenum type,
+ GLvoid *values );
+
+GLAPI void GLAPIENTRY glGetHistogramParameterfv( GLenum target, GLenum pname,
+ GLfloat *params );
+
+GLAPI void GLAPIENTRY glGetHistogramParameteriv( GLenum target, GLenum pname,
+ GLint *params );
+
+GLAPI void GLAPIENTRY glMinmax( GLenum target, GLenum internalformat,
+ GLboolean sink );
+
+GLAPI void GLAPIENTRY glResetMinmax( GLenum target );
+
+GLAPI void GLAPIENTRY glGetMinmax( GLenum target, GLboolean reset,
+ GLenum format, GLenum types,
+ GLvoid *values );
+
+GLAPI void GLAPIENTRY glGetMinmaxParameterfv( GLenum target, GLenum pname,
+ GLfloat *params );
+
+GLAPI void GLAPIENTRY glGetMinmaxParameteriv( GLenum target, GLenum pname,
+ GLint *params );
+
+GLAPI void GLAPIENTRY glConvolutionFilter1D( GLenum target,
+ GLenum internalformat, GLsizei width, GLenum format, GLenum type,
+ const GLvoid *image );
+
+GLAPI void GLAPIENTRY glConvolutionFilter2D( GLenum target,
+ GLenum internalformat, GLsizei width, GLsizei height, GLenum format,
+ GLenum type, const GLvoid *image );
+
+GLAPI void GLAPIENTRY glConvolutionParameterf( GLenum target, GLenum pname,
+ GLfloat params );
+
+GLAPI void GLAPIENTRY glConvolutionParameterfv( GLenum target, GLenum pname,
+ const GLfloat *params );
+
+GLAPI void GLAPIENTRY glConvolutionParameteri( GLenum target, GLenum pname,
+ GLint params );
+
+GLAPI void GLAPIENTRY glConvolutionParameteriv( GLenum target, GLenum pname,
+ const GLint *params );
+
+GLAPI void GLAPIENTRY glCopyConvolutionFilter1D( GLenum target,
+ GLenum internalformat, GLint x, GLint y, GLsizei width );
+
+GLAPI void GLAPIENTRY glCopyConvolutionFilter2D( GLenum target,
+ GLenum internalformat, GLint x, GLint y, GLsizei width,
+ GLsizei height);
+
+GLAPI void GLAPIENTRY glGetConvolutionFilter( GLenum target, GLenum format,
+ GLenum type, GLvoid *image );
+
+GLAPI void GLAPIENTRY glGetConvolutionParameterfv( GLenum target, GLenum pname,
+ GLfloat *params );
+
+GLAPI void GLAPIENTRY glGetConvolutionParameteriv( GLenum target, GLenum pname,
+ GLint *params );
+
+GLAPI void GLAPIENTRY glSeparableFilter2D( GLenum target,
+ GLenum internalformat, GLsizei width, GLsizei height, GLenum format,
+ GLenum type, const GLvoid *row, const GLvoid *column );
+
+GLAPI void GLAPIENTRY glGetSeparableFilter( GLenum target, GLenum format,
+ GLenum type, GLvoid *row, GLvoid *column, GLvoid *span );
+
+
+
+
+/*
+ * XXX these extensions may eventually be moved into glext.h
+ */
+
+
+/*
+ * GL_EXT_abgr (number 1)
+ */
+#ifndef GL_EXT_abgr
+#define GL_EXT_abgr 1
+
+#define GL_ABGR_EXT 0x8000
+
+#endif /* GL_EXT_abgr */
+
+
+
+/*
+ * GL_EXT_blend_color (number 2)
+ */
+#ifndef GL_EXT_blend_color
+#define GL_EXT_blend_color 1
+
+#define GL_CONSTANT_COLOR_EXT 0x8001
+#define GL_ONE_MINUS_CONSTANT_COLOR_EXT 0x8002
+#define GL_CONSTANT_ALPHA_EXT 0x8003
+#define GL_ONE_MINUS_CONSTANT_ALPHA_EXT 0x8004
+#define GL_BLEND_COLOR_EXT 0x8005
+
+GLAPI void GLAPIENTRY glBlendColorEXT( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha );
+
+#endif /* GL_EXT_blend_color */
+
+
+
+/*
+ * GL_EXT_polygon_offset (number 3)
+ */
+#ifndef GL_EXT_polygon_offset
+#define GL_EXT_polygon_offset 1
+
+#define GL_POLYGON_OFFSET_EXT 0x8037
+#define GL_POLYGON_OFFSET_FACTOR_EXT 0x8038
+#define GL_POLYGON_OFFSET_BIAS_EXT 0x8039
+
+GLAPI void GLAPIENTRY glPolygonOffsetEXT( GLfloat factor, GLfloat bias );
+
+#endif /* GL_EXT_polygon_offset */
+
+
+
+/*
+ * GL_EXT_texture3D (number 6)
+ */
+#ifndef GL_EXT_texture3D
+#define GL_EXT_texture3D 1
+
+#define GL_PACK_SKIP_IMAGES_EXT 0x806B
+#define GL_PACK_IMAGE_HEIGHT_EXT 0x806C
+#define GL_UNPACK_SKIP_IMAGES_EXT 0x806D
+#define GL_UNPACK_IMAGE_HEIGHT_EXT 0x806E
+#define GL_TEXTURE_3D_EXT 0x806F
+#define GL_PROXY_TEXTURE_3D_EXT 0x8070
+#define GL_TEXTURE_DEPTH_EXT 0x8071
+#define GL_TEXTURE_WRAP_R_EXT 0x8072
+#define GL_MAX_3D_TEXTURE_SIZE_EXT 0x8073
+#define GL_TEXTURE_3D_BINDING_EXT 0x806A
+
+GLAPI void GLAPIENTRY glTexImage3DEXT( GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels );
+
+GLAPI void GLAPIENTRY glTexSubImage3DEXT( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
+
+GLAPI void GLAPIENTRY glCopyTexSubImage3DEXT( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height );
+
+#endif /* GL_EXT_texture3D */
+
+
+
+/*
+ * GL_EXT_texture_object (number 20)
+ */
+#ifndef GL_EXT_texture_object
+#define GL_EXT_texture_object 1
+
+#define GL_TEXTURE_PRIORITY_EXT 0x8066
+#define GL_TEXTURE_RESIDENT_EXT 0x8067
+#define GL_TEXTURE_1D_BINDING_EXT 0x8068
+#define GL_TEXTURE_2D_BINDING_EXT 0x8069
+
+GLAPI void GLAPIENTRY glGenTexturesEXT( GLsizei n, GLuint *textures );
+
+GLAPI void GLAPIENTRY glDeleteTexturesEXT( GLsizei n, const GLuint *textures);
+
+GLAPI void GLAPIENTRY glBindTextureEXT( GLenum target, GLuint texture );
+
+GLAPI void GLAPIENTRY glPrioritizeTexturesEXT( GLsizei n, const GLuint *textures, const GLclampf *priorities );
+
+GLAPI GLboolean GLAPIENTRY glAreTexturesResidentEXT( GLsizei n, const GLuint *textures, GLboolean *residences );
+
+GLAPI GLboolean GLAPIENTRY glIsTextureEXT( GLuint texture );
+
+#endif /* GL_EXT_texture_object */
+
+
+
+/*
+ * GL_EXT_rescale_normal (number 27)
+ */
+#ifndef GL_EXT_rescale_normal
+#define GL_EXT_rescale_normal 1
+
+#define GL_RESCALE_NORMAL_EXT 0x803A
+
+#endif /* GL_EXT_rescale_normal */
+
+
+
+/*
+ * GL_EXT_vertex_array (number 30)
+ */
+#ifndef GL_EXT_vertex_array
+#define GL_EXT_vertex_array 1
+
+#define GL_VERTEX_ARRAY_EXT 0x8074
+#define GL_NORMAL_ARRAY_EXT 0x8075
+#define GL_COLOR_ARRAY_EXT 0x8076
+#define GL_INDEX_ARRAY_EXT 0x8077
+#define GL_TEXTURE_COORD_ARRAY_EXT 0x8078
+#define GL_EDGE_FLAG_ARRAY_EXT 0x8079
+#define GL_VERTEX_ARRAY_SIZE_EXT 0x807A
+#define GL_VERTEX_ARRAY_TYPE_EXT 0x807B
+#define GL_VERTEX_ARRAY_STRIDE_EXT 0x807C
+#define GL_VERTEX_ARRAY_COUNT_EXT 0x807D
+#define GL_NORMAL_ARRAY_TYPE_EXT 0x807E
+#define GL_NORMAL_ARRAY_STRIDE_EXT 0x807F
+#define GL_NORMAL_ARRAY_COUNT_EXT 0x8080
+#define GL_COLOR_ARRAY_SIZE_EXT 0x8081
+#define GL_COLOR_ARRAY_TYPE_EXT 0x8082
+#define GL_COLOR_ARRAY_STRIDE_EXT 0x8083
+#define GL_COLOR_ARRAY_COUNT_EXT 0x8084
+#define GL_INDEX_ARRAY_TYPE_EXT 0x8085
+#define GL_INDEX_ARRAY_STRIDE_EXT 0x8086
+#define GL_INDEX_ARRAY_COUNT_EXT 0x8087
+#define GL_TEXTURE_COORD_ARRAY_SIZE_EXT 0x8088
+#define GL_TEXTURE_COORD_ARRAY_TYPE_EXT 0x8089
+#define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A
+#define GL_TEXTURE_COORD_ARRAY_COUNT_EXT 0x808B
+#define GL_EDGE_FLAG_ARRAY_STRIDE_EXT 0x808C
+#define GL_EDGE_FLAG_ARRAY_COUNT_EXT 0x808D
+#define GL_VERTEX_ARRAY_POINTER_EXT 0x808E
+#define GL_NORMAL_ARRAY_POINTER_EXT 0x808F
+#define GL_COLOR_ARRAY_POINTER_EXT 0x8090
+#define GL_INDEX_ARRAY_POINTER_EXT 0x8091
+#define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092
+#define GL_EDGE_FLAG_ARRAY_POINTER_EXT 0x8093
+
+GLAPI void GLAPIENTRY glVertexPointerEXT( GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr );
+
+GLAPI void GLAPIENTRY glNormalPointerEXT( GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr );
+
+GLAPI void GLAPIENTRY glColorPointerEXT( GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr );
+
+GLAPI void GLAPIENTRY glIndexPointerEXT( GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr );
+
+GLAPI void GLAPIENTRY glTexCoordPointerEXT( GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr );
+
+GLAPI void GLAPIENTRY glEdgeFlagPointerEXT( GLsizei stride, GLsizei count, const GLboolean *ptr );
+
+GLAPI void GLAPIENTRY glGetPointervEXT( GLenum pname, void **params );
+
+GLAPI void GLAPIENTRY glArrayElementEXT( GLint i );
+
+GLAPI void GLAPIENTRY glDrawArraysEXT( GLenum mode, GLint first, GLsizei count );
+
+#endif /* GL_EXT_vertex_array */
+
+
+
+/*
+ * GL_SGIS_texture_edge_clamp (number 35)
+ */
+#ifndef GL_SGIS_texture_edge_clamp
+#define GL_SGIS_texture_edge_clamp 1
+
+#define GL_CLAMP_TO_EDGE_SGIS 0x812F
+
+#endif /* GL_SGIS_texture_edge_clamp */
+
+
+
+/*
+ * GL_EXT_blend_minmax (number 37)
+ */
+#ifndef GL_EXT_blend_minmax
+#define GL_EXT_blend_minmax 1
+
+#define GL_FUNC_ADD_EXT 0x8006
+#define GL_MIN_EXT 0x8007
+#define GL_MAX_EXT 0x8008
+#define GL_BLEND_EQUATION_EXT 0x8009
+
+GLAPI void GLAPIENTRY glBlendEquationEXT( GLenum mode );
+
+#endif /* GL_EXT_blend_minmax */
+
+
+
+/*
+ * GL_EXT_blend_subtract (number 38) (requires GL_EXT_blend_max )
+ */
+#ifndef GL_EXT_blend_subtract
+#define GL_EXT_blend_subtract 1
+
+#define GL_FUNC_SUBTRACT_EXT 0x800A
+#define GL_FUNC_REVERSE_SUBTRACT_EXT 0x800B
+
+#endif /* GL_EXT_blend_subtract */
+
+
+
+/*
+ * GL_EXT_blend_logic_op (number 39)
+ */
+#ifndef GL_EXT_blend_logic_op
+#define GL_EXT_blend_logic_op 1
+
+/* No new tokens or functions */
+
+#endif /* GL_EXT_blend_logic_op */
+
+
+
+/*
+ * GL_EXT_point_parameters (number 54)
+ */
+#ifndef GL_EXT_point_parameters
+#define GL_EXT_point_parameters 1
+
+#define GL_POINT_SIZE_MIN_EXT 0x8126
+#define GL_POINT_SIZE_MAX_EXT 0x8127
+#define GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128
+#define GL_DISTANCE_ATTENUATION_EXT 0x8129
+
+GLAPI void GLAPIENTRY glPointParameterfEXT( GLenum pname, GLfloat param );
+GLAPI void GLAPIENTRY glPointParameterfvEXT( GLenum pname, const GLfloat *params );
+
+#endif /* GL_EXT_point_parameters */
+
+
+
+/*
+ * GL_EXT_paletted_texture (number 78)
+ */
+#ifndef GL_EXT_paletted_texture
+#define GL_EXT_paletted_texture 1
+
+#define GL_TABLE_TOO_LARGE_EXT 0x8031
+#define GL_COLOR_TABLE_FORMAT_EXT 0x80D8
+#define GL_COLOR_TABLE_WIDTH_EXT 0x80D9
+#define GL_COLOR_TABLE_RED_SIZE_EXT 0x80DA
+#define GL_COLOR_TABLE_GREEN_SIZE_EXT 0x80DB
+#define GL_COLOR_TABLE_BLUE_SIZE_EXT 0x80DC
+#define GL_COLOR_TABLE_ALPHA_SIZE_EXT 0x80DD
+#define GL_COLOR_TABLE_LUMINANCE_SIZE_EXT 0x80DE
+#define GL_COLOR_TABLE_INTENSITY_SIZE_EXT 0x80DF
+#define GL_TEXTURE_INDEX_SIZE_EXT 0x80ED
+#define GL_COLOR_INDEX1_EXT 0x80E2
+#define GL_COLOR_INDEX2_EXT 0x80E3
+#define GL_COLOR_INDEX4_EXT 0x80E4
+#define GL_COLOR_INDEX8_EXT 0x80E5
+#define GL_COLOR_INDEX12_EXT 0x80E6
+#define GL_COLOR_INDEX16_EXT 0x80E7
+
+GLAPI void GLAPIENTRY glColorTableEXT( GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table );
+
+GLAPI void GLAPIENTRY glColorSubTableEXT( GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data );
+
+GLAPI void GLAPIENTRY glGetColorTableEXT( GLenum target, GLenum format, GLenum type, GLvoid *table );
+
+GLAPI void GLAPIENTRY glGetColorTableParameterfvEXT( GLenum target, GLenum pname, GLfloat *params );
+
+GLAPI void GLAPIENTRY glGetColorTableParameterivEXT( GLenum target, GLenum pname, GLint *params );
+
+#endif /* GL_EXT_paletted_texture */
+
+
+
+/*
+ * GL_EXT_clip_volume_hint (number 79)
+ */
+#ifndef GL_EXT_clip_volume_hint
+#define GL_EXT_clip_volume_hint 1
+
+#define GL_CLIP_VOLUME_CLIPPING_HINT_EXT 0x80F
+
+#endif /* GL_EXT_clip_volume_hint */
+
+
+
+/*
+ * GL_EXT_compiled_vertex_array (number 97)
+ */
+#ifndef GL_EXT_compiled_vertex_array
+#define GL_EXT_compiled_vertex_array 1
+
+#define GL_ARRAY_ELEMENT_LOCK_FIRST_EXT 0x81A8
+#define GL_ARRAY_ELEMENT_LOCK_COUNT_EXT 0x81A9
+
+GLAPI void GLAPIENTRY glLockArraysEXT( GLint first, GLsizei count );
+GLAPI void GLAPIENTRY glUnlockArraysEXT( void );
+
+#endif /* GL_EXT_compiled_vertex_array */
+
+/*
+ * 137. GL_HP_occlusion_test
+ */
+#ifndef GL_HP_occlusion_test
+#define GL_HP_occlusion_test 1
+
+#define GL_OCCLUSION_TEST_HP 0x8165
+#define GL_OCCLUSION_TEST_RESULT_HP 0x8166
+
+#endif /* GL_HP_occlusion_test */
+
+
+/*
+ * GL_EXT_shared_texture_palette (number 141) (req's GL_EXT_paletted_texture)
+ */
+#ifndef GL_EXT_shared_texture_palette
+#define GL_EXT_shared_texture_palette 1
+
+#define GL_SHARED_TEXTURE_PALETTE_EXT 0x81FB
+
+#endif /* GL_EXT_shared_texture_palette */
+
+
+
+/*
+ * GL_EXT_stencil_wrap (number 176)
+ */
+#ifndef GL_EXT_stencil_wrap
+#define GL_EXT_stencil_wrap 1
+
+#define GL_INCR_WRAP_EXT 0x8507
+#define GL_DECR_WRAP_EXT 0x8508
+
+#endif /* GL_EXT_stencil_wrap */
+
+
+
+/*
+ * GL_NV_texgen_reflection (number 179)
+ */
+#ifndef GL_NV_texgen_reflection
+#define GL_NV_texgen_reflection 1
+
+#define GL_NORMAL_MAP_NV 0x8511
+#define GL_REFLECTION_MAP_NV 0x8512
+
+#endif /* GL_NV_texgen_reflection */
+
+
+
+/*
+ * GL_EXT_texture_env_add (number 185)
+ */
+#ifndef GL_EXT_texture_env_add
+#define GL_EXT_texture_env_add 1
+
+/* No new tokens or functions */
+
+#endif /* GL_EXT_texture_env_add */
+
+
+
+/*
+ * GL_ARB_multitexture (ARB 0)
+ */
+#ifndef GL_ARB_multitexture
+#define GL_ARB_multitexture 1
+
+#define GL_TEXTURE0_ARB 0x84C0
+#define GL_TEXTURE1_ARB 0x84C1
+#define GL_TEXTURE2_ARB 0x84C2
+#define GL_TEXTURE3_ARB 0x84C3
+#define GL_TEXTURE4_ARB 0x84C4
+#define GL_TEXTURE5_ARB 0x84C5
+#define GL_TEXTURE6_ARB 0x84C6
+#define GL_TEXTURE7_ARB 0x84C7
+#define GL_TEXTURE8_ARB 0x84C8
+#define GL_TEXTURE9_ARB 0x84C9
+#define GL_TEXTURE10_ARB 0x84CA
+#define GL_TEXTURE11_ARB 0x84CB
+#define GL_TEXTURE12_ARB 0x84CC
+#define GL_TEXTURE13_ARB 0x84CD
+#define GL_TEXTURE14_ARB 0x84CE
+#define GL_TEXTURE15_ARB 0x84CF
+#define GL_TEXTURE16_ARB 0x84D0
+#define GL_TEXTURE17_ARB 0x84D1
+#define GL_TEXTURE18_ARB 0x84D2
+#define GL_TEXTURE19_ARB 0x84D3
+#define GL_TEXTURE20_ARB 0x84D4
+#define GL_TEXTURE21_ARB 0x84D5
+#define GL_TEXTURE22_ARB 0x84D6
+#define GL_TEXTURE23_ARB 0x84D7
+#define GL_TEXTURE24_ARB 0x84D8
+#define GL_TEXTURE25_ARB 0x84D9
+#define GL_TEXTURE26_ARB 0x84DA
+#define GL_TEXTURE27_ARB 0x84DB
+#define GL_TEXTURE28_ARB 0x84DC
+#define GL_TEXTURE29_ARB 0x84DD
+#define GL_TEXTURE30_ARB 0x84DE
+#define GL_TEXTURE31_ARB 0x84DF
+#define GL_ACTIVE_TEXTURE_ARB 0x84E0
+#define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1
+#define GL_MAX_TEXTURE_UNITS_ARB 0x84E2
+
+GLAPI void GLAPIENTRY glActiveTextureARB(GLenum texture);
+GLAPI void GLAPIENTRY glClientActiveTextureARB(GLenum texture);
+GLAPI void GLAPIENTRY glMultiTexCoord1dARB(GLenum target, GLdouble s);
+GLAPI void GLAPIENTRY glMultiTexCoord1dvARB(GLenum target, const GLdouble *v);
+GLAPI void GLAPIENTRY glMultiTexCoord1fARB(GLenum target, GLfloat s);
+GLAPI void GLAPIENTRY glMultiTexCoord1fvARB(GLenum target, const GLfloat *v);
+GLAPI void GLAPIENTRY glMultiTexCoord1iARB(GLenum target, GLint s);
+GLAPI void GLAPIENTRY glMultiTexCoord1ivARB(GLenum target, const GLint *v);
+GLAPI void GLAPIENTRY glMultiTexCoord1sARB(GLenum target, GLshort s);
+GLAPI void GLAPIENTRY glMultiTexCoord1svARB(GLenum target, const GLshort *v);
+GLAPI void GLAPIENTRY glMultiTexCoord2dARB(GLenum target, GLdouble s, GLdouble t);
+GLAPI void GLAPIENTRY glMultiTexCoord2dvARB(GLenum target, const GLdouble *v);
+GLAPI void GLAPIENTRY glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t);
+GLAPI void GLAPIENTRY glMultiTexCoord2fvARB(GLenum target, const GLfloat *v);
+GLAPI void GLAPIENTRY glMultiTexCoord2iARB(GLenum target, GLint s, GLint t);
+GLAPI void GLAPIENTRY glMultiTexCoord2ivARB(GLenum target, const GLint *v);
+GLAPI void GLAPIENTRY glMultiTexCoord2sARB(GLenum target, GLshort s, GLshort t);
+GLAPI void GLAPIENTRY glMultiTexCoord2svARB(GLenum target, const GLshort *v);
+GLAPI void GLAPIENTRY glMultiTexCoord3dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r);
+GLAPI void GLAPIENTRY glMultiTexCoord3dvARB(GLenum target, const GLdouble *v);
+GLAPI void GLAPIENTRY glMultiTexCoord3fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r);
+GLAPI void GLAPIENTRY glMultiTexCoord3fvARB(GLenum target, const GLfloat *v);
+GLAPI void GLAPIENTRY glMultiTexCoord3iARB(GLenum target, GLint s, GLint t, GLint r);
+GLAPI void GLAPIENTRY glMultiTexCoord3ivARB(GLenum target, const GLint *v);
+GLAPI void GLAPIENTRY glMultiTexCoord3sARB(GLenum target, GLshort s, GLshort t, GLshort r);
+GLAPI void GLAPIENTRY glMultiTexCoord3svARB(GLenum target, const GLshort *v);
+GLAPI void GLAPIENTRY glMultiTexCoord4dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+GLAPI void GLAPIENTRY glMultiTexCoord4dvARB(GLenum target, const GLdouble *v);
+GLAPI void GLAPIENTRY glMultiTexCoord4fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+GLAPI void GLAPIENTRY glMultiTexCoord4fvARB(GLenum target, const GLfloat *v);
+GLAPI void GLAPIENTRY glMultiTexCoord4iARB(GLenum target, GLint s, GLint t, GLint r, GLint q);
+GLAPI void GLAPIENTRY glMultiTexCoord4ivARB(GLenum target, const GLint *v);
+GLAPI void GLAPIENTRY glMultiTexCoord4sARB(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+GLAPI void GLAPIENTRY glMultiTexCoord4svARB(GLenum target, const GLshort *v);
+
+#endif /* GL_ARB_multitexture */
+
+
+
+/*
+ * GL_MESA_window_pos (197)
+ */
+/* JAU - NOPE
+#ifndef GL_MESA_window_pos
+#define GL_MESA_window_pos 1
+
+GLAPI void GLAPIENTRY glWindowPos2iMESA( GLint x, GLint y );
+GLAPI void GLAPIENTRY glWindowPos2sMESA( GLshort x, GLshort y );
+GLAPI void GLAPIENTRY glWindowPos2fMESA( GLfloat x, GLfloat y );
+GLAPI void GLAPIENTRY glWindowPos2dMESA( GLdouble x, GLdouble y );
+GLAPI void GLAPIENTRY glWindowPos2ivMESA( const GLint *p );
+GLAPI void GLAPIENTRY glWindowPos2svMESA( const GLshort *p );
+GLAPI void GLAPIENTRY glWindowPos2fvMESA( const GLfloat *p );
+GLAPI void GLAPIENTRY glWindowPos2dvMESA( const GLdouble *p );
+GLAPI void GLAPIENTRY glWindowPos3iMESA( GLint x, GLint y, GLint z );
+GLAPI void GLAPIENTRY glWindowPos3sMESA( GLshort x, GLshort y, GLshort z );
+GLAPI void GLAPIENTRY glWindowPos3fMESA( GLfloat x, GLfloat y, GLfloat z );
+GLAPI void GLAPIENTRY glWindowPos3dMESA( GLdouble x, GLdouble y, GLdouble z );
+GLAPI void GLAPIENTRY glWindowPos3ivMESA( const GLint *p );
+GLAPI void GLAPIENTRY glWindowPos3svMESA( const GLshort *p );
+GLAPI void GLAPIENTRY glWindowPos3fvMESA( const GLfloat *p );
+GLAPI void GLAPIENTRY glWindowPos3dvMESA( const GLdouble *p );
+GLAPI void GLAPIENTRY glWindowPos4iMESA( GLint x, GLint y, GLint z, GLint w );
+GLAPI void GLAPIENTRY glWindowPos4sMESA( GLshort x, GLshort y, GLshort z, GLshort w );
+GLAPI void GLAPIENTRY glWindowPos4fMESA( GLfloat x, GLfloat y, GLfloat z, GLfloat w );
+GLAPI void GLAPIENTRY glWindowPos4dMESA( GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void GLAPIENTRY glWindowPos4ivMESA( const GLint *p );
+GLAPI void GLAPIENTRY glWindowPos4svMESA( const GLshort *p );
+GLAPI void GLAPIENTRY glWindowPos4fvMESA( const GLfloat *p );
+GLAPI void GLAPIENTRY glWindowPos4dvMESA( const GLdouble *p );
+
+#endif
+*/
+
+
+
+/*
+ * GL_MESA_resize_bufffers (196)
+ */
+/* JAU - NOPE
+#ifndef GL_MESA_resize_bufffers
+#define GL_MESA_resize_buffers 1
+
+GLAPI void GLAPIENTRY glResizeBuffersMESA( void );
+
+#endif
+*/
+
+
+
+#if defined(__BEOS__) || defined(__QUICKDRAW__)
+#pragma export off
+#endif
+
+
+#ifdef macintosh
+ #pragma enumsalwaysint reset
+ #if PRAGMA_IMPORT_SUPPORTED
+ #pragma import off
+ #endif
+#endif
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __gl_h_ */
diff --git a/C2J/mesa33-header/glext.h b/C2J/mesa33-header/glext.h
new file mode 100644
index 0000000..b2df4e8
--- /dev/null
+++ b/C2J/mesa33-header/glext.h
@@ -0,0 +1,3275 @@
+#ifndef __glext_h_
+#define __glext_h_
+
+
+/*
+ * XXX Some token values aren't known (grep for ?)
+ * XXX This file may be automatically generated in the future.
+ * XXX There are some doubly-defined tokens with different values! Search
+ * for "DUPLICATE".
+ */
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+#if defined(_WIN32) && !defined(__CYGWIN32__)
+#define WIN32_LEAN_AND_MEAN 1
+#include <windows.h>
+#endif
+
+#ifndef GLAPI
+#define GLAPI extern
+#endif
+
+#if defined(GLAPIENTRY) && !defined(APIENTRY)
+#define APIENTRY GLAPIENTRY
+#endif
+
+#ifndef APIENTRY
+#define APIENTRY
+#endif
+
+
+/*
+ * Versions:
+ * 1. Brian Paul, 24 Feb 2000
+ * Intial Version
+ * 2. Brian Paul, 7 Mar 2000
+ * Added GL_HP_occlusion_test, GL_EXT_texture_lod_bias
+ * 3. Brian Paul, 20 Mar 2000
+ * Added all missing extensions up to number 137
+ * 4. Brian Paul, 23 Mar 2000
+ * Now have all extenions up to number 197
+ * 5. Brian Paul, 27 Mar 2000
+ * Added GL_ARB_texture_compression
+ * 6. Brian Paul, 5 Apr 2000
+ * Added GL_ARB_multisample tokens, added GL_ARB_texture_env_add
+ * 7. Brian Paul, 7 Apr 2000
+ * Minor clean-ups, temporary token values for GL_SGIS_pixel_texture
+ * 8. Brian Paul, 15 Apr 2000
+ * Added GL_EXT_texture_cube_map, GL_NV_texgen_emboss, adding some
+ * missing tokens values.
+ */
+#define GL_GLEXT_VERSION_EXT 8
+
+
+/*
+ * 1. GL_EXT_abgr
+ */
+#ifndef GL_EXT_abgr
+#define GL_EXT_abgr 1
+
+#define GL_ABGR_EXT 0x8000
+
+#endif /* GL_EXT_abgr */
+
+
+
+/*
+ * 2. GL_EXT_blend_color
+ */
+#ifndef GL_EXT_blend_color
+#define GL_EXT_blend_color 1
+
+#define GL_CONSTANT_COLOR_EXT 0x8001
+#define GL_ONE_MINUS_CONSTANT_COLOR_EXT 0x8002
+#define GL_CONSTANT_ALPHA_EXT 0x8003
+#define GL_ONE_MINUS_CONSTANT_ALPHA_EXT 0x8004
+#define GL_BLEND_COLOR_EXT 0x8005
+
+GLAPI void APIENTRY glBlendColorEXT(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
+
+typedef void (APIENTRY * PFNGLBLENDCOLOREXTPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
+
+#endif /* GL_EXT_blend_color */
+
+
+
+/*
+ * 3. GL_EXT_polygon_offset
+ */
+#ifndef GL_EXT_polygon_offset
+#define GL_EXT_polygon_offset 1
+
+#define GL_POLYGON_OFFSET_EXT 0x8037
+#define GL_POLYGON_OFFSET_FACTOR_EXT 0x8038
+#define GL_POLYGON_OFFSET_BIAS_EXT 0x8039
+
+GLAPI void APIENTRY glPolygonOffsetEXT(GLfloat factor, GLfloat bias);
+
+typedef void (APIENTRY * PFNGLPOLYGONOFFSETEXTPROC) (GLfloat factor, GLfloat bias);
+
+#endif /* GL_EXT_polygon_offset */
+
+
+
+/*
+ * 4. GL_EXT_texture
+ */
+#ifndef GL_EXT_texture
+#define GL_EXT_texture 1
+
+#define GL_ALPHA4_EXT 0x803B
+#define GL_ALPHA8_EXT 0x803C
+#define GL_ALPHA12_EXT 0x803D
+#define GL_ALPHA16_EXT 0x803E
+#define GL_LUMINANCE4_EXT 0x803F
+#define GL_LUMINANCE8_EXT 0x8040
+#define GL_LUMINANCE12_EXT 0x8041
+#define GL_LUMINANCE16_EXT 0x8042
+#define GL_LUMINANCE4_ALPHA4_EXT 0x8043
+#define GL_LUMINANCE6_ALPHA2_EXT 0x8044
+#define GL_LUMINANCE8_ALPHA8_EXT 0x8045
+#define GL_LUMINANCE12_ALPHA4_EXT 0x8046
+#define GL_LUMINANCE12_ALPHA12_EXT 0x8047
+#define GL_LUMINANCE16_ALPHA16_EXT 0x8048
+#define GL_INTENSITY_EXT 0x8049
+#define GL_INTENSITY4_EXT 0x804A
+#define GL_INTENSITY8_EXT 0x804B
+#define GL_INTENSITY12_EXT 0x804C
+#define GL_INTENSITY16_EXT 0x804D
+#define GL_RGB2_EXT 0x804E
+#define GL_RGB4_EXT 0x804F
+#define GL_RGB5_EXT 0x8050
+#define GL_RGB8_EXT 0x8051
+#define GL_RGB10_EXT 0x8052
+#define GL_RGB12_EXT 0x8053
+#define GL_RGB16_EXT 0x8054
+#define GL_RGBA2_EXT 0x8055
+#define GL_RGBA4_EXT 0x8056
+#define GL_RGB5_A1_EXT 0x8057
+#define GL_RGBA8_EXT 0x8058
+#define GL_RGB10_A2_EXT 0x8059
+#define GL_RGBA12_EXT 0x805A
+#define GL_RGBA16_EXT 0x805B
+#define GL_TEXTURE_RED_SIZE_EXT 0x805C
+#define GL_TEXTURE_GREEN_SIZE_EXT 0x805D
+#define GL_TEXTURE_BLUE_SIZE_EXT 0x805E
+#define GL_TEXTURE_ALPHA_SIZE_EXT 0x805F
+#define GL_TEXTURE_LUMINANCE_SIZE_EXT 0x8060
+#define GL_TEXTURE_INTENSITY_SIZE_EXT 0x8061
+#define GL_REPLACE_EXT 0x8062
+#define GL_PROXY_TEXTURE_1D_EXT 0x8063
+#define GL_PROXY_TEXTURE_2D_EXT 0x8064
+
+#endif /* GL_EXT_texture */
+
+
+
+/*
+ * 5. unknown
+ */
+
+
+
+/*
+ * 6. GL_EXT_texture3D
+ */
+#ifndef GL_EXT_texture3D
+#define GL_EXT_texture3D 1
+
+#define GL_PACK_SKIP_IMAGES_EXT 0x806B
+#define GL_PACK_IMAGE_HEIGHT_EXT 0x806C
+#define GL_UNPACK_SKIP_IMAGES_EXT 0x806D
+#define GL_UNPACK_IMAGE_HEIGHT_EXT 0x806E
+#define GL_TEXTURE_3D_EXT 0x806F
+#define GL_PROXY_TEXTURE_3D_EXT 0x8070
+#define GL_TEXTURE_DEPTH_EXT 0x8071
+#define GL_TEXTURE_WRAP_R_EXT 0x8072
+#define GL_MAX_3D_TEXTURE_SIZE_EXT 0x8073
+#define GL_TEXTURE_3D_BINDING_EXT 0x806A
+
+GLAPI void APIENTRY glTexImage3DEXT(GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
+GLAPI void APIENTRY glTexSubImage3DEXT(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
+GLAPI void APIENTRY glCopyTexSubImage3DEXT(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+
+typedef void (APIENTRY * PFNGLTEXIMAGE3DEXTPROC) (GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
+typedef void (APIENTRY * PFNGLTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
+typedef void (APIENTRY * PFNGLCOPYTEXSUBIMAGE3DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+
+#endif /* GL_EXT_texture3D */
+
+
+
+/*
+ * 7. GL_SGI_texture_filter4
+ */
+#ifndef GL_SGI_texture_filter4
+#define GL_SGI_texture_filter4 1
+
+#define GL_FILTER4_SGIS 0x8146
+#define GL_TEXTURE_FILTER4_SIZE_SGIS 0x8147
+
+GLAPI void APIENTRY glGetTexFilterFuncSGIS(GLenum target, GLenum filter, GLfloat *weights);
+GLAPI void APIENTRY glTexFilterFuncSGIS(GLenum target, GLenum filter, GLsizei n, const GLfloat *weights);
+
+typedef void (APIENTRY * PFNGLGETTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLfloat *weights);
+typedef void (APIENTRY * PFNGLTEXFILTERFUNCSGISPROC) (GLenum target, GLenum filter, GLsizei n, const GLfloat *weights);
+
+#endif /* GL_SGI_texture_filter4 */
+
+
+
+/*
+ * 8. unknown
+ */
+
+
+
+/*
+ * 9. GL_EXT_subtexture
+ */
+#ifndef GL_EXT_subtexture
+#define GL_EXT_subtexture 1
+
+GLAPI void APIENTRY glCopyTexSubImage1DEXT(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glTexSubImage1DEXT(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
+GLAPI void APIENTRY glTexSubImage2DEXT(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
+
+typedef void (APIENTRY * PFNGLCOPYTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRY * PFNGLTEXSUBIMAGE1DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
+typedef void (APIENTRY * PFNGLTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
+
+#endif /* GL_EXT_subtexture */
+
+
+
+/*
+ * 10. GL_EXT_copy_texture
+ */
+#ifndef GL_EXT_copy_texture
+#define GL_EXT_copy_texture 1
+
+GLAPI void APIENTRY glCopyTexImage1DEXT(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
+GLAPI void APIENTRY glCopyTexImage2DEXT(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+GLAPI void APIENTRY glCopyTexSubImage2DEXT(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+
+typedef void (APIENTRY * PFNGLCOPYTEXIMAGE1DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
+typedef void (APIENTRY * PFNGLCOPYTEXIMAGE2DEXTPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+typedef void (APIENTRY * PFNGLCOPYTEXSUBIMAGE2DEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+
+#endif /* GL_EXT_copy_texture */
+
+
+
+/*
+ * 11. GL_EXT_histogram
+ */
+#ifndef GL_EXT_histogram
+#define GL_EXT_histogram 1
+
+#define GL_HISTOGRAM_EXT 0x8024
+#define GL_PROXY_HISTOGRAM_EXT 0x8025
+#define GL_HISTOGRAM_WIDTH_EXT 0x8026
+#define GL_HISTOGRAM_FORMAT_EXT 0x8027
+#define GL_HISTOGRAM_RED_SIZE_EXT 0x8028
+#define GL_HISTOGRAM_GREEN_SIZE_EXT 0x8029
+#define GL_HISTOGRAM_BLUE_SIZE_EXT 0x802A
+#define GL_HISTOGRAM_ALPHA_SIZE_EXT 0x802B
+#define GL_HISTOGRAM_LUMINANCE_SIZE_EXT 0x802C
+#define GL_HISTOGRAM_SINK_EXT 0x802D
+
+GLAPI void APIENTRY glGetHistogramEXT(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
+GLAPI void APIENTRY glGetHistogramParameterfvEXT(GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetHistogramParameterivEXT(GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetMinmaxEXT(GLenum target, GLboolean reset, GLenum format, GLenum types, GLvoid *values);
+GLAPI void APIENTRY glGetMinmaxParameterfvEXT(GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetMinmaxParameterivEXT(GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glHistogramEXT(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
+GLAPI void APIENTRY glMinmaxEXT(GLenum target, GLenum internalformat, GLboolean sink);
+GLAPI void APIENTRY glResetHistogramEXT(GLenum target);
+GLAPI void APIENTRY glResetMinmaxEXT(GLenum target);
+
+typedef void (APIENTRY * PFNGLGETHISTOGRAMEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
+typedef void (APIENTRY * PFNGLGETHISTOGRAMPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRY * PFNGLGETHISTOGRAMPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRY * PFNGLGETMINMAXEXTPROC) (GLenum target, GLboolean reset, GLenum format, GLenum types, GLvoid *values);
+typedef void (APIENTRY * PFNGLGETMINMAXPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRY * PFNGLGETMINMAXPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRY * PFNGLHISTOGRAMEXTPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
+typedef void (APIENTRY * PFNGLMINMAXEXTPROC) (GLenum target, GLenum internalformat, GLboolean sink);
+typedef void (APIENTRY * PFNGLRESETHISTOGRAMEXTPROC) (GLenum target);
+typedef void (APIENTRY * PFNGLRESETMINMAXEXTPROC) (GLenum target);
+
+#endif /* GL_EXT_histogram */
+
+
+
+/*
+ * 12. GL_EXT_convolution
+ */
+#ifndef GL_EXT_convolution
+#define GL_EXT_convolution 1
+
+#define GL_CONVOLUTION_1D_EXT 0x8010
+#define GL_CONVOLUTION_2D_EXT 0x8011
+#define GL_SEPARABLE_2D_EXT 0x8012
+#define GL_CONVOLUTION_BORDER_MODE_EXT 0x8013
+#define GL_CONVOLUTION_FILTER_SCALE_EXT 0x8014
+#define GL_CONVOLUTION_FILTER_BIAS_EXT 0x8015
+#define GL_REDUCE_EXT 0x8016
+#define GL_CONVOLUTION_FORMAT_EXT 0x8017
+#define GL_CONVOLUTION_WIDTH_EXT 0x8018
+#define GL_CONVOLUTION_HEIGHT_EXT 0x8019
+#define GL_MAX_CONVOLUTION_WIDTH_EXT 0x801A
+#define GL_MAX_CONVOLUTION_HEIGHT_EXT 0x801B
+#define GL_POST_CONVOLUTION_RED_SCALE_EXT 0x801C
+#define GL_POST_CONVOLUTION_GREEN_SCALE_EXT 0x801D
+#define GL_POST_CONVOLUTION_BLUE_SCALE_EXT 0x801E
+#define GL_POST_CONVOLUTION_ALPHA_SCALE_EXT 0x801F
+#define GL_POST_CONVOLUTION_RED_BIAS_EXT 0x8020
+#define GL_POST_CONVOLUTION_GREEN_BIAS_EXT 0x8021
+#define GL_POST_CONVOLUTION_BLUE_BIAS_EXT 0x8022
+#define GL_POST_CONVOLUTION_ALPHA_BIAS_EXT 0x8023
+
+GLAPI void APIENTRY glConvolutionFilter1DEXT(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
+GLAPI void APIENTRY glConvolutionFilter2DEXT(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
+GLAPI void APIENTRY glConvolutionParameterfEXT(GLenum target, GLenum pname, GLfloat params);
+GLAPI void APIENTRY glConvolutionParameterfvEXT(GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glConvolutionParameteriEXT(GLenum target, GLenum pname, GLint params);
+GLAPI void APIENTRY glConvolutionParameterivEXT(GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glCopyConvolutionFilter1DEXT(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glCopyConvolutionFilter2DEXT(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void APIENTRY glGetConvolutionFilterEXT(GLenum target, GLenum format, GLenum type, GLvoid *image);
+GLAPI void APIENTRY glGetConvolutionParameterfvEXT(GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetConvolutionParameterivEXT(GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetSeparableFilterEXT(GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
+GLAPI void APIENTRY glSeparableFilter2DEXT(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
+
+typedef void (APIENTRY * PFNGLCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
+typedef void (APIENTRY * PFNGLCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
+typedef void (APIENTRY * PFNGLCONVOLUTIONPARAMETERFEXTPROC) (GLenum target, GLenum pname, GLfloat params);
+typedef void (APIENTRY * PFNGLCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRY * PFNGLCONVOLUTIONPARAMETERIEXTPROC) (GLenum target, GLenum pname, GLint params);
+typedef void (APIENTRY * PFNGLCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRY * PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRY * PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
+typedef void (APIENTRY * PFNGLGETCONVOLUTIONFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image);
+typedef void (APIENTRY * PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRY * PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRY * PFNGLGETSEPARABLEFILTEREXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
+typedef void (APIENTRY * PFNGLSEPARABLEFILTER2DEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
+
+#endif /* GL_EXT_convolution */
+
+
+
+/*
+ * 13. GL_SGI_color_matrix
+ */
+#ifndef GL_SGI_color_matrix
+#define GL_SGI_color_matrix 1
+
+#define GL_COLOR_MATRIX_SGI 0x80B1
+#define GL_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B2
+#define GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B3
+#define GL_POST_COLOR_MATRIX_RED_SCALE_SGI 0x80B4
+#define GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI 0x80B5
+#define GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI 0x80B6
+#define GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI 0x80B7
+#define GL_POST_COLOR_MATRIX_RED_BIAS_SGI 0x80B8
+#define GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI 0x80B9
+#define GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI 0x80BA
+#define GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI 0x80BB
+
+#endif /* GL_SGI_color_matrix */
+
+
+
+/*
+ * 14. GL_SGI_color_table
+ */
+#ifndef GL_SGI_color_table
+#define GL_SGI_color_table 1
+
+#define GL_COLOR_TABLE_SGI 0x80D0 /* DUPLICATE! */
+#define GL_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D1
+#define GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D2
+#define GL_PROXY_COLOR_TABLE_SGI 0x80D3
+#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D4
+#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D5
+#define GL_COLOR_TABLE_SCALE_SGI 0x80D6
+#define GL_COLOR_TABLE_BIAS_SGI 0x80D7
+#define GL_COLOR_TABLE_FORMAT_SGI 0x80D8
+#define GL_COLOR_TABLE_WIDTH_SGI 0x80D9
+#define GL_COLOR_TABLE_RED_SIZE_SGI 0x80DA
+#define GL_COLOR_TABLE_GREEN_SIZE_SGI 0x80DB
+#define GL_COLOR_TABLE_BLUE_SIZE_SGI 0x80DC
+#define GL_COLOR_TABLE_ALPHA_SIZE_SGI 0x80DD
+#define GL_COLOR_TABLE_LUMINANCE_SIZE_SGI 0x80DE
+#define GL_COLOR_TABLE_INTENSITY_SIZE_SGI 0x80DF
+
+GLAPI void APIENTRY glColorTableParameterfvSGI(GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glColorTableParameterivSGI(GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glColorTableSGI(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
+GLAPI void APIENTRY glCopyColorTableSGI(GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width);
+GLAPI void APIENTRY glGetColorTableParameterfvSGI(GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetColorTableParameterivSGI(GLenum target, GLenum pname, GLint *params);
+GLAPI void APIENTRY glGetColorTableSGI(GLenum target, GLenum format, GLenum type, GLvoid *table);
+
+typedef void (APIENTRY * PFNGLCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRY * PFNGLCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRY * PFNGLCOLORTABLESGIPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
+typedef void (APIENTRY * PFNGLCOPYCOLORTABLESGIPROC) (GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width);
+typedef void (APIENTRY * PFNGLGETCOLORTABLEPARAMETERFVSGIPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRY * PFNGLGETCOLORTABLEPARAMETERIVSGIPROC) (GLenum target, GLenum pname, GLint *params);
+typedef void (APIENTRY * PFNGLGETCOLORTABLESGIPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table);
+
+#endif /* GL_SGI_color_table */
+
+
+
+/*
+ * ?. GL_SGIX_pixel_texture
+ */
+#ifndef GL_SGIX_pixel_texture
+#define GL_SGIX_pixel_texture 1
+
+#define GL_PIXEL_TEX_GEN_SGIX 0x8139
+#define GL_PIXEL_TEX_GEN_MODE_SGIX 0x832B
+
+GLAPI void APIENTRY glPixelTexGenSGIX(GLenum mode);
+
+typedef void (APIENTRY * PFNGLPIXELTEXGENSGIXPROC) (GLenum mode);
+
+#endif /* GL_SGIX_pixel_texture */
+
+
+
+/*
+ * 15. GL_SGIS_pixel_texture
+ */
+#ifndef GL_SGIS_pixel_texture
+#define GL_SGIS_pixel_texture 1
+
+#define GL_PIXEL_TEXTURE_SGIS 0x1000 /*?*/
+#define GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS 0x1001 /*?*/
+#define GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS 0x1002 /*?*/
+#define GL_PIXEL_GROUP_COLOR_SGIS 0x1003 /*?*/
+
+GLAPI void APIENTRY glPixelTexGenParameterfSGIS(GLenum target, GLfloat value);
+GLAPI void APIENTRY glPixelTexGenParameterfvSGIS(GLenum target, const GLfloat *value);
+GLAPI void APIENTRY glPixelTexGenParameteriSGIS(GLenum target, GLint value);
+GLAPI void APIENTRY glPixelTexGenParameterivSGIS(GLenum target, const GLint *value);
+GLAPI void APIENTRY glGetPixelTexGenParameterfvSGIS(GLenum target, GLfloat *value);
+GLAPI void APIENTRY glGetPixelTexGenParameterivSGIS(GLenum target, GLint *value);
+
+typedef void (APIENTRY * PFNGLPIXELTEXGENPARAMETERFSGISPROC) (GLenum target, GLfloat value);
+typedef void (APIENTRY * PFNGLPIXELTEXGENPARAMETERFVSGISPROC) (GLenum target, const GLfloat *value);
+typedef void (APIENTRY * PFNGLPIXELTEXGENPARAMETERISGISPROC) (GLenum target, GLint value);
+typedef void (APIENTRY * PFNGLPIXELTEXGENPARAMETERIVSGISPROC) (GLenum target, const GLint *value);
+typedef void (APIENTRY * PFNGLGETPIXELTEXGENPARAMETERFVSGISPROC) (GLenum target, GLfloat *value);
+typedef void (APIENTRY * PFNGLGETPIXELTEXGENPARAMETERIVSGISPROC) (GLenum target, GLint *value);
+
+#endif /* GL_SGIS_pixel_texture */
+
+
+
+/*
+ * 16. GL_SGIS_texture4D
+ */
+#ifndef GL_SGIS_texture4D
+#define GL_SGIS_texture4D 1
+
+#define GL_PACK_SKIP_VOLUMES_SGIS 0x8130
+#define GL_PACK_IMAGE_DEPTH_SGIS 0x8131
+#define GL_UNPACK_SKIP_VOLUMES_SGIS 0x8132
+#define GL_UNPACK_IMAGE_DEPTH_SGIS 0x8133
+#define GL_TEXTURE_4D_SGIS 0x8134
+#define GL_PROXY_TEXTURE_4D_SGIS 0x8135
+#define GL_TEXTURE_4DSIZE_SGIS 0x8136
+#define GL_TEXTURE_WRAP_Q_SGIS 0x8137
+#define GL_MAX_4D_TEXTURE_SIZE_SGIS 0x8138
+#define GL_TEXTURE_4D_BINDING_SGIS 0x814F
+
+GLAPI void APIENTRY glTexImage4DSGIS(GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei extent, GLint border, GLenum format, GLenum type, const void *pixels);
+GLAPI void APIENTRY glTexSubImage4DSGIS(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei extent, GLenum format, GLenum type, const void *pixels);
+
+typedef void (APIENTRY * PFNGLTEXIMAGE4DSGISPROC) (GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei extent, GLint border, GLenum format, GLenum type, const void *pixels);
+typedef void (APIENTRY * PFNGLTEXSUBIMAGE4DSGISPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei extent, GLenum format, GLenum type, const void *pixels);
+
+#endif /* GL_SGIS_texture4D */
+
+
+
+/*
+ * 17. GL_SGI_texture_color_table
+ */
+#ifndef GL_SGI_texture_color_table
+#define GL_SGI_texture_color_table 1
+
+#define GL_COLOR_TABLE_SGI_80BC 0x80BC /* DUPLICATE! */
+#define GL_PROXY_TEXTURE_COLOR_TABLE_SGI 0x80BD
+
+#endif /* GL_SGI_texture_color_table */
+
+
+
+/*
+ * 18. GL_EXT_cmyka
+ */
+#ifndef GL_EXT_cmyka
+#define GL_EXT_cmyka 1
+
+#define GL_CMYK_EXT 0x800C
+#define GL_CMYKA_EXT 0x800D
+#define GL_PACK_CMYK_HINT_EXT 0x800E
+#define GL_UNPACK_CMYK_HINT_EXT 0x800F
+
+#endif /* GL_EXT_cmyka */
+
+
+
+/*
+ * 19. unknown
+ */
+
+
+
+/*
+ * 20. GL_EXT_texture_object
+ */
+#ifndef GL_EXT_texture_object
+#define GL_EXT_texture_object 1
+
+#define GL_TEXTURE_PRIORITY_EXT 0x8066
+#define GL_TEXTURE_RESIDENT_EXT 0x8067
+#define GL_TEXTURE_1D_BINDING_EXT 0x8068
+#define GL_TEXTURE_2D_BINDING_EXT 0x8069
+
+GLAPI void APIENTRY glGenTexturesEXT(GLsizei n, GLuint *textures);
+GLAPI void APIENTRY glDeleteTexturesEXT(GLsizei n, const GLuint *textures);
+GLAPI void APIENTRY glBindTextureEXT(GLenum target, GLuint texture);
+GLAPI void APIENTRY glPrioritizeTexturesEXT(GLsizei n, const GLuint *textures, const GLclampf *priorities);
+GLAPI GLboolean APIENTRY glAreTexturesResidentEXT(GLsizei n, const GLuint *textures, GLboolean *residences);
+GLAPI GLboolean APIENTRY glIsTextureEXT(GLuint texture);
+
+typedef void (APIENTRY * PFNGLGENTEXTURESEXTPROC) (GLsizei n, GLuint *textures);
+typedef void (APIENTRY * PFNGLDELETETEXTURESEXTPROC) (GLsizei n, const GLuint *textures);
+typedef void (APIENTRY * PFNGLBINDTEXTUREEXTPROC) (GLenum target, GLuint texture);
+typedef void (APIENTRY * PFNGLPRIORITIZETEXTURESEXTPROC) (GLsizei n, const GLuint *textures, const GLclampf *priorities);
+typedef GLboolean (APIENTRY * PFNGLARETEXTURESRESIDENTEXTPROC) (GLsizei n, const GLuint *textures, GLboolean *residences);
+typedef GLboolean (APIENTRY * PFNGLISTEXTUREEXTPROC) (GLuint texture);
+
+#endif /* GL_EXT_texture_object */
+
+
+
+/*
+ * 21. GL_SGIS_detail_texture
+ */
+#ifndef GL_SGIS_detail_texture
+#define GL_SGIS_detail_texture
+
+#define GL_DETAIL_TEXTURE_2D_SGIS 0x8095
+#define GL_DETAIL_TEXTURE_2D_BINDING_SGIS 0x8096
+#define GL_LINEAR_DETAIL_SGIS 0x8097
+#define GL_LINEAR_DETAIL_ALPHA_SGIS 0x8098
+#define GL_LINEAR_DETAIL_COLOR_SGIS 0x8099
+#define GL_DETAIL_TEXTURE_LEVEL_SGIS 0x809A
+#define GL_DETAIL_TEXTURE_MODE_SGIS 0x809B
+
+GLAPI void APIENTRY glDetailTexFuncSGIS(GLenum target, GLsizei n, const GLfloat *points);
+GLAPI void APIENTRY glGetDetailTexFuncSGIS(GLenum target, GLfloat *points);
+
+typedef void (APIENTRY * PFNGLDETAILTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points);
+typedef void (APIENTRY * PFNGLGETDETAILTEXFUNCSGISPROC) (GLenum target, GLfloat *points);
+
+#endif /* GL_SGIS_detail_texture */
+
+
+
+/*
+ * 22. GL_SGIS_sharpen_texture
+ */
+#ifndef GL_SGIS_sharpen_texture
+#define GL_SGIS_sharpen_texture 1
+
+#define GL_LINEAR_SHARPEN_SGIS 0x80AD
+#define GL_LINEAR_SHARPEN_ALPHA_SGIS 0x80AE
+#define GL_LINEAR_SHARPEN_COLOR_SGIS 0x80AF
+#define GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS 0x80B0
+
+GLAPI void APIENTRY glGetSharpenTexFuncSGIS(GLenum target, GLfloat *points);
+GLAPI void APIENTRY glSharpenTexFuncSGIS(GLenum target, GLsizei n, const GLfloat *points);
+
+typedef void (APIENTRY * PFNGLGETSHARPENTEXFUNCSGISPROC) (GLenum target, GLfloat *points);
+typedef void (APIENTRY * PFNGLSHARPENTEXFUNCSGISPROC) (GLenum target, GLsizei n, const GLfloat *points);
+
+#endif /* GL_SGIS_sharpen_texture */
+
+
+
+/*
+ * 23. GL_EXT_packed_pixels
+ */
+#ifndef GL_EXT_packed_pixels
+#define GL_EXT_packed_pixels 1
+
+#define GL_UNSIGNED_BYTE_3_3_2_EXT 0x8032
+#define GL_UNSIGNED_SHORT_4_4_4_4_EXT 0x8033
+#define GL_UNSIGNED_SHORT_5_5_5_1_EXT 0x8034
+#define GL_UNSIGNED_INT_8_8_8_8_EXT 0x8035
+#define GL_UNSIGNED_INT_10_10_10_2_EXT 0x8036
+
+#endif /* GL_EXT_packed_pixels */
+
+
+
+/*
+ * 24. GL_SGIS_texture_lod
+ */
+
+#ifndef GL_SGIS_texture_lod
+#define GL_SGIS_texture_lod 1
+
+#define GL_TEXTURE_MIN_LOD_SGIS 0x813A
+#define GL_TEXTURE_MAX_LOD_SGIS 0x813B
+#define GL_TEXTURE_BASE_LEVEL_SGIS 0x813C
+#define GL_TEXTURE_MAX_LEVEL_SGIS 0x813D
+
+#endif /* GL_SGIS_texture_lod */
+
+
+
+/*
+ * 25. GL_SGIS_multisample
+ */
+
+#ifndef GL_SGIS_multisample
+#define GL_SGIS_multisample 1
+
+#define GL_MULTISAMPLE_SGIS 0x809D
+#define GL_SAMPLE_ALPHA_TO_MASK_SGIS 0x809E
+#define GL_SAMPLE_ALPHA_TO_ONE_SGIS 0x809F
+#define GL_SAMPLE_MASK_SGIS 0x80A0
+#define GL_MULTISAMPLE_BIT_EXT 0x20000000
+#define GL_1PASS_SGIS 0x80A1
+#define GL_2PASS_0_SGIS 0x80A2
+#define GL_2PASS_1_SGIS 0x80A3
+#define GL_4PASS_0_SGIS 0x80A4
+#define GL_4PASS_1_SGIS 0x80A5
+#define GL_4PASS_2_SGIS 0x80A6
+#define GL_4PASS_3_SGIS 0x80A7
+#define GL_SAMPLE_BUFFERS_SGIS 0x80A8
+#define GL_SAMPLES_SGIS 0x80A9
+#define GL_SAMPLE_MASK_VALUE_SGIS 0x80AA
+#define GL_SAMPLE_MASK_INVERT_SGIS 0x80AB
+#define GL_SAMPLE_PATTERN_SGIS 0x80AC
+
+GLAPI void APIENTRY glSampleMaskSGIS(GLclampf value, GLboolean invert);
+GLAPI void APIENTRY glSamplePatternSGIS(GLenum pattern);
+
+typedef void (APIENTRY * PFNGLSAMPLEMASKSGISPROC) (GLclampf value, GLboolean invert);
+typedef void (APIENTRY * PFNGLSAMPLEPATTERNSGISPROC) (GLenum pattern);
+
+#endif /* GL_SGIS_multisample */
+
+
+
+/*
+ * 26. unknown
+ */
+
+
+
+/*
+ * 27. GL_EXT_rescale_normal
+ */
+#ifndef GL_EXT_rescale_normal
+#define GL_EXT_rescale_normal 1
+
+#define GL_RESCALE_NORMAL_EXT 0x803A
+
+#endif /* GL_EXT_rescale_normal */
+
+
+
+/*
+ * 28. GLX_EXT_visual_info
+ */
+
+
+
+/*
+ * 29. unknown
+ */
+
+
+
+/*
+ * 30. GL_EXT_vertex_array
+ */
+#ifndef GL_EXT_vertex_array
+#define GL_EXT_vertex_array 1
+
+#define GL_VERTEX_ARRAY_EXT 0x8074
+#define GL_NORMAL_ARRAY_EXT 0x8075
+#define GL_COLOR_ARRAY_EXT 0x8076
+#define GL_INDEX_ARRAY_EXT 0x8077
+#define GL_TEXTURE_COORD_ARRAY_EXT 0x8078
+#define GL_EDGE_FLAG_ARRAY_EXT 0x8079
+#define GL_VERTEX_ARRAY_SIZE_EXT 0x807A
+#define GL_VERTEX_ARRAY_TYPE_EXT 0x807B
+#define GL_VERTEX_ARRAY_STRIDE_EXT 0x807C
+#define GL_VERTEX_ARRAY_COUNT_EXT 0x807D
+#define GL_NORMAL_ARRAY_TYPE_EXT 0x807E
+#define GL_NORMAL_ARRAY_STRIDE_EXT 0x807F
+#define GL_NORMAL_ARRAY_COUNT_EXT 0x8080
+#define GL_COLOR_ARRAY_SIZE_EXT 0x8081
+#define GL_COLOR_ARRAY_TYPE_EXT 0x8082
+#define GL_COLOR_ARRAY_STRIDE_EXT 0x8083
+#define GL_COLOR_ARRAY_COUNT_EXT 0x8084
+#define GL_INDEX_ARRAY_TYPE_EXT 0x8085
+#define GL_INDEX_ARRAY_STRIDE_EXT 0x8086
+#define GL_INDEX_ARRAY_COUNT_EXT 0x8087
+#define GL_TEXTURE_COORD_ARRAY_SIZE_EXT 0x8088
+#define GL_TEXTURE_COORD_ARRAY_TYPE_EXT 0x8089
+#define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A
+#define GL_TEXTURE_COORD_ARRAY_COUNT_EXT 0x808B
+#define GL_EDGE_FLAG_ARRAY_STRIDE_EXT 0x808C
+#define GL_EDGE_FLAG_ARRAY_COUNT_EXT 0x808D
+#define GL_VERTEX_ARRAY_POINTER_EXT 0x808E
+#define GL_NORMAL_ARRAY_POINTER_EXT 0x808F
+#define GL_COLOR_ARRAY_POINTER_EXT 0x8090
+#define GL_INDEX_ARRAY_POINTER_EXT 0x8091
+#define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092
+#define GL_EDGE_FLAG_ARRAY_POINTER_EXT 0x8093
+
+GLAPI void APIENTRY glVertexPointerEXT(GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr);
+GLAPI void APIENTRY glNormalPointerEXT(GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr);
+GLAPI void APIENTRY glColorPointerEXT(GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr);
+GLAPI void APIENTRY glIndexPointerEXT(GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr);
+GLAPI void APIENTRY glTexCoordPointerEXT(GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr);
+GLAPI void APIENTRY glEdgeFlagPointerEXT(GLsizei stride, GLsizei count, const GLboolean *ptr);
+GLAPI void APIENTRY glGetPointervEXT(GLenum pname, void **params);
+GLAPI void APIENTRY glArrayElementEXT(GLint i);
+GLAPI void APIENTRY glDrawArraysEXT(GLenum mode, GLint first, GLsizei count);
+
+typedef void (APIENTRY * PFNGLARRAYELEMENTEXTPROC) (GLint i);
+typedef void (APIENTRY * PFNGLCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
+typedef void (APIENTRY * PFNGLDRAWARRAYSEXTPROC) (GLenum mode, GLint first, GLsizei count);
+typedef void (APIENTRY * PFNGLEDGEFLAGPOINTEREXTPROC) (GLsizei stride, GLsizei count, const GLboolean *pointer);
+typedef void (APIENTRY * PFNGLGETPOINTERVEXTPROC) (GLenum pname, GLvoid* *params);
+typedef void (APIENTRY * PFNGLINDEXPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
+typedef void (APIENTRY * PFNGLNORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
+typedef void (APIENTRY * PFNGLTEXCOORDPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
+typedef void (APIENTRY * PFNGLVERTEXPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
+
+#endif /* GL_EXT_vertex_array */
+
+
+
+/*
+ * 31. GL_EXT_misc_attribute
+ */
+#ifndef GL_EXT_misc_attribute
+#define GL_EXT_misc_attribute 1
+
+#define GL_MISC_BIT_EXT ?
+
+#endif /* GL_EXT_misc_attribute */
+
+
+
+/*
+ * 32. GL_SGIS_generate_mipmap
+ */
+#ifndef GL_SGIS_generate_mipmap
+#define GL_SGIS_generate_mipmap 1
+
+#define GL_GENERATE_MIPMAP_SGIS 0x8191
+#define GL_GENERATE_MIPMAP_HINT_SGIS 0x8192
+
+#endif /* GL_SGIS_generate_mipmap */
+
+
+
+/*
+ * 33. GL_SGIX_clipmap
+ */
+#ifndef GL_SGIX_clipmap
+#define GL_SGIX_clipmap 1
+
+#define GL_LINEAR_CLIPMAP_LINEAR_SGIX 0x8170
+#define GL_TEXTURE_CLIPMAP_CENTER_SGIX 0x8171
+#define GL_TEXTURE_CLIPMAP_FRAME_SGIX 0x8172
+#define GL_TEXTURE_CLIPMAP_OFFSET_SGIX 0x8173
+#define GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8174
+#define GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX 0x8175
+#define GL_TEXTURE_CLIPMAP_DEPTH_SGIX 0x8176
+#define GL_MAX_CLIPMAP_DEPTH_SGIX 0x8177
+#define GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8178
+
+#endif /* GL_SGIX_clipmap */
+
+
+
+/*
+ * 34. GL_SGIX_shadow
+ */
+#ifndef GL_SGIX_shadow
+#define GL_SGIX_shadow 1
+
+#define GL_TEXTURE_COMPARE_SGIX 0x819A
+#define GL_TEXTURE_COMPARE_OPERATOR_SGIX 0x819B
+#define GL_TEXTURE_LEQUAL_R_SGIX 0x819C
+#define GL_TEXTURE_GEQUAL_R_SGIX 0x819D
+
+#endif /* GL_SGIX_shadow */
+
+
+
+/*
+ * 35. GL_SGIS_texture_edge_clamp
+ */
+#ifndef GL_SGIS_texture_edge_clamp
+#define GL_SGIS_texture_edge_clamp 1
+
+#define GL_CLAMP_TO_EDGE_SGIS 0x812F
+
+#endif /* GL_SGIS_texture_edge_clamp */
+
+
+
+/*
+ * 36. GL_SGIS_texture_border_clamp
+ */
+#ifndef GL_SGIS_texture_border_clamp
+#define GL_SGIS_texture_border_clamp 1
+
+#define GL_CLAMP_TO_BORDER_SGIS 0x812D
+
+#endif /* GL_SGIS_texture_border_clamp */
+
+
+
+/*
+ * 37. GL_EXT_blend_minmax
+ */
+#ifndef GL_EXT_blend_minmax
+#define GL_EXT_blend_minmax 1
+
+#define GL_FUNC_ADD_EXT 0x8006
+#define GL_MIN_EXT 0x8007
+#define GL_MAX_EXT 0x8008
+#define GL_BLEND_EQUATION_EXT 0x8009
+
+GLAPI void APIENTRY glBlendEquationEXT(GLenum mode);
+
+typedef void (APIENTRY * PFNGLBLENDEQUATIONEXTPROC) (GLenum mode);
+
+#endif /* GL_EXT_blend_minmax */
+
+
+
+/*
+ * 38. GL_EXT_blend_subtract (requires GL_EXT_blend_max)
+ */
+#ifndef GL_EXT_blend_subtract
+#define GL_EXT_blend_subtract 1
+
+#define GL_FUNC_SUBTRACT_EXT 0x800A
+#define GL_FUNC_REVERSE_SUBTRACT_EXT 0x800B
+
+#endif /* GL_EXT_blend_subtract */
+
+
+
+/*
+ * 39. GL_EXT_blend_logic_op
+ */
+#ifndef GL_EXT_blend_logic_op
+#define GL_EXT_blend_logic_op 1
+
+/* No new tokens or functions */
+
+#endif /* GL_EXT_blend_logic_op */
+
+
+
+/*
+ * 40. GLX_SGI_swap_control
+ * 41. GLX_SGI_video_sync
+ * 42. GLX_SGI_make_current_read
+ * 43. GLX_SGIX_video_source
+ * 44. GLX_EXT_visual_rating
+ */
+
+
+
+/*
+ * 45. GL_SGIX_interlace
+ */
+#ifndef GL_SGIX_interlace
+#define GL_SGIX_interlace 1
+
+#define GL_INTERLACE_SGIX 0x8094
+
+#endif /* GL_SGIX_interlace */
+
+
+
+/*
+ * 46. unknown
+ * 47. GLX_EXT_import_context
+ * 49. GLX_SGIX_fbconfig
+ * 50. GLX_SGIX_pbuffer
+ */
+
+
+
+/*
+ * 51. GL_SGIS_texture_select
+ */
+#ifndef GL_SGIS_texture_select
+#define GL_SGIS_texture_select 1
+
+#define GL_DUAL_ALPHA4_SGIS 0x8110
+#define GL_DUAL_ALPHA8_SGIS 0x8111
+#define GL_DUAL_ALPHA12_SGIS 0x8112
+#define GL_DUAL_ALPHA16_SGIS 0x8113
+#define GL_DUAL_LUMINANCE4_SGIS 0x8114
+#define GL_DUAL_LUMINANCE8_SGIS 0x8115
+#define GL_DUAL_LUMINANCE12_SGIS 0x8116
+#define GL_DUAL_LUMINANCE16_SGIS 0x8117
+#define GL_DUAL_INTENSITY4_SGIS 0x8118
+#define GL_DUAL_INTENSITY8_SGIS 0x8119
+#define GL_DUAL_INTENSITY12_SGIS 0x811A
+#define GL_DUAL_INTENSITY16_SGIS 0x811B
+#define GL_DUAL_LUMINANCE_ALPHA4_SGIS 0x811C
+#define GL_DUAL_LUMINANCE_ALPHA8_SGIS 0x811D
+#define GL_DUAL_TEXTURE_SELECT_SGIS 0x8124
+#define GL_QUAD_ALPHA4_SGIS 0x811E
+#define GL_QUAD_ALPHA8_SGIS 0x811F
+#define GL_QUAD_LUMINANCE4_SGIS0 x8120
+#define GL_QUAD_LUMINANCE8_SGIS 0x8121
+#define GL_QUAD_INTENSITY4_SGIS 0x8122
+#define GL_QUAD_INTENSITY8_SGIS 0x8123
+#define GL_QUAD_TEXTURE_SELECT_SGIS 0x8125
+
+#endif /* GL_SGIS_texture_select */
+
+
+
+/*
+ * 52. GL_SGIX_sprite
+ */
+#ifndef GL_SGIX_sprite
+#define GL_SGIX_sprite 1
+
+#define GL_SPRITE_SGIX 0x8148
+#define GL_SPRITE_MODE_SGIX 0x8149
+#define GL_SPRITE_AXIS_SGIX 0x814A
+#define GL_SPRITE_TRANSLATION_SGIX 0x814B
+#define GL_SPRITE_AXIAL_SGIX 0x814C
+#define GL_SPRITE_OBJECT_ALIGNED_SGIX 0x814D
+#define GL_SPRITE_EYE_ALIGNED_SGIX 0x814E
+
+GLAPI void APIENTRY glSpriteParameterfSGIX(GLenum pname, GLfloat param);
+GLAPI void APIENTRY glSpriteParameterfvSGIX(GLenum pname, const GLfloat *param);
+GLAPI void APIENTRY glSpriteParameteriSGIX(GLenum pname, GLint param);
+GLAPI void APIENTRY glSpriteParameterivSGIX(GLenum pname, const GLint *param);
+
+typedef void (APIENTRY * PFNGLSPRITEPARAMETERFSGIXPROC) (GLenum pname, GLfloat param);
+typedef void (APIENTRY * PFNGLSPRITEPARAMETERFVSGIXPROC) (GLenum pname, const GLfloat *param);
+typedef void (APIENTRY * PFNGLSPRITEPARAMETERISGIXPROC) (GLenum pname, GLint param);
+typedef void (APIENTRY * PFNGLSPRITEPARAMETERIVSGIXPROC) (GLenum pname, const GLint *param);
+
+#endif /* GL_SGIX_sprite */
+
+
+
+/*
+ * 53. unknown
+ */
+
+
+
+/*
+ * 54. GL_EXT_point_parameters
+ */
+#ifndef GL_EXT_point_parameters
+#define GL_EXT_point_parameters 1
+
+#define GL_POINT_SIZE_MIN_EXT 0x8126
+#define GL_POINT_SIZE_MAX_EXT 0x8127
+#define GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128
+#define GL_DISTANCE_ATTENUATION_EXT 0x8129
+
+GLAPI void APIENTRY glPointParameterfEXT(GLenum pname, GLfloat param);
+GLAPI void APIENTRY glPointParameterfvEXT(GLenum pname, const GLfloat *params);
+
+typedef void (APIENTRY * PFNGLPOINTPARAMETERFEXTPROC) (GLenum pname, GLfloat param);
+typedef void (APIENTRY * PFNGLPOINTPARAMETERFVEXTPROC) (GLenum pname, const GLfloat *params);
+
+#endif /* GL_EXT_point_parameters */
+
+
+
+/*
+ * 55. GL_SGIX_instruments
+ */
+#ifndef GL_SGIX_instruments
+#define GL_SGIX_instruments 1
+
+#define GL_INSTRUMENT_BUFFER_POINTER_SGIX 0x8180
+#define GL_INSTRUMENT_MEASUREMENTS_SGIX 0x8181
+
+GLAPI GLint APIENTRY glGetInstrumentsSGIX(void);
+GLAPI void APIENTRY glInstrumentsBufferSGIX(GLsizei size, GLint *buf);
+GLAPI GLint APIENTRY glPollInstrumentsSGIX(GLint *markerp);
+GLAPI void APIENTRY glReadInstrumentsSGIX(GLint marker);
+GLAPI void APIENTRY glStartInstrumentsSGIX(void);
+GLAPI void APIENTRY glStopInstrumentsSGIX(GLint marker);
+
+typedef GLint (APIENTRY * PFNGLGETINSTRUMENTSSGIXPROC) (void);
+typedef void (APIENTRY * PFNGLINSTRUMENTSBUFFERSGIXPROC) (GLsizei size, GLint *buf);
+typedef GLint (APIENTRY * PFNGLPOLLINSTRUMENTSSGIXPROC) (GLint *markerp);
+typedef void (APIENTRY * PFNGLREADINSTRUMENTSSGIXPROC) (GLint marker);
+typedef void (APIENTRY * PFNGLSTARTINSTRUMENTSSGIXPROC) (void);
+typedef void (APIENTRY * PFNGLSTOPINSTRUMENTSSGIXPROC) (GLint marker);
+
+#endif /* GL_SGIX_instruments */
+
+
+
+/*
+ * 56. GL_SGIX_texture_scale_bias
+ */
+#ifndef GL_SGIX_texture_scale_bias
+#define GL_SGIX_texture_scale_bias 1
+
+#define GL_POST_TEXTURE_FILTER_BIAS_SGIX 0x8179
+#define GL_POST_TEXTURE_FILTER_SCALE_SGIX 0x817A
+#define GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX 0x817B
+#define GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX 0x817C
+
+#endif /* GL_SGIX_texture_scale_bias */
+
+
+
+/*
+ * 57. GL_SGIX_framezoom
+ */
+#ifndef GL_SGIX_framezoom
+#define GL_SGIX_framezoom 1
+
+#define GL_FRAMEZOOM_SGIX 0x818B
+#define GL_FRAMEZOOM_FACTOR_SGIX 0x818C
+#define GL_MAX_FRAMEZOOM_FACTOR_SGIX 0x818D
+
+GLAPI void APIENTRY glFrameZoomSGIX(GLint factor);
+
+typedef void (APIENTRY * PFNGLFRAMEZOOMSGIXPROC) (GLint factor);
+
+#endif /* GL_SGIX_framezoom */
+
+
+
+/*
+ * 58. GL_SGIX_tag_sample_buffer
+ */
+#ifndef GL_SGIX_tag_sample_buffer
+#define GL_SGIX_tag_sample_buffer 1
+
+GLAPI void APIENTRY glTagSampleBufferSGIX(void);
+
+typedef void (APIENTRY * PFNGLTAGSAMPLEBUFFERSGIXPROC) (void);
+
+#endif /* GL_SGIX_tag_sample_buffer */
+
+
+
+/*
+ * 59. unknown
+ */
+
+
+
+/*
+ * 60. GL_SGIX_reference_plane
+ */
+#ifndef GL_SGIX_reference_plane
+#define GL_SGIX_reference_plane 1
+
+#define GL_REFERENCE_PLANE_SGIX 0x817D
+#define GL_REFERENCE_PLANE_EQUATION_SGIX 0x817E
+
+GLAPI void APIENTRY glReferencePlaneSGIX(const GLdouble *plane);
+
+typedef void (APIENTRY * PFNGLREFERENCEPLANESGIXPROC) (const GLdouble *plane);
+
+#endif /* GL_SGIX_reference_plane */
+
+
+
+/*
+ * 61. GL_SGIX_flush_raster
+ */
+#ifndef GL_SGIX_flush_raster
+#define GL_SGIX_flush_raster 1
+
+GLAPI void APIENTRY glFlushRasterSGIX(void);
+
+typedef void (APIENTRY * PFNGLFLUSHRASTERSGIXPROC) (void);
+
+#endif /* GL_SGIX_flush_raster */
+
+
+
+/*
+ * 62. GLX_SGI_cushion
+ */
+
+
+
+/*
+ * 63. GL_SGIX_depth_texture
+ */
+#ifndef GL_SGIX_depth_texture
+#define GL_SGIX_depth_texture 1
+
+#define GL_DEPTH_COMPONENT16_SGIX 0x81A5
+#define GL_DEPTH_COMPONENT24_SGIX 0x81A6
+#define GL_DEPTH_COMPONENT32_SGIX 0x81A7
+
+#endif /* GL_SGIX_depth_texture */
+
+
+
+/*
+ * 64. GL_SGIS_fog_function
+ */
+#ifndef GL_SGIS_fog_function
+#define GL_SGIS_fog_function 1
+
+#define GL_FOG_FUNC_SGIS 0x812A
+#define GL_FOG_FUNC_POINTS_SGIS 0x812B
+#define GL_MAX_FOG_FUNC_POINTS_SGIS 0x812C
+
+#endif /* GL_SGIS_fog_function */
+
+
+
+/*
+ * 65. GL_SGIX_fog_offset
+ */
+#ifndef GL_SGIX_fog_offset
+#define GL_SGIX_fog_offset 1
+
+#define GL_FOG_OFFSET_SGIX 0x8198
+#define GL_FOG_OFFSET_VALUE_SGIX 0x8199
+
+#endif /* GL_SGIX_fog_offset */
+
+
+
+/*
+ * 66. GL_HP_image_transform
+ */
+#ifndef GL_HP_image_transform
+#define GL_HP_image_transform 1
+
+#define GL_IMAGE_SCALE_X_HP ?
+#define GL_IMAGE_SCALE_Y_HP ?
+#define GL_IMAGE_TRANSLATE_X_HP ?
+#define GL_IMAGE_TRANSLATE_Y_HP ?
+#define GL_IMAGE_ROTATE_ANGLE_HP ?
+#define GL_IMAGE_ROTATE_ORIGIN_X_HP ?
+#define GL_IMAGE_ROTATE_ORIGIN_Y_HP ?
+#define GL_IMAGE_MAG_FILTER_HP ?
+#define GL_IMAGE_MIN_FILTER_HP ?
+#define GL_IMAGE_CUBIC_WEIGHT_HP ?
+#define GL_CUBIC_HP ?
+#define GL_AVERAGE_HP ?
+#define GL_IMAGE_TRANSFORM_2D_HP ?
+#define GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP ?
+#define GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP ?
+
+GLAPI void APIENTRY glImageTransformParameteriHP(GLenum target, GLenum pname, const GLint param);
+GLAPI void APIENTRY glImageTransformParameterfHP(GLenum target, GLenum pname, const GLfloat param);
+GLAPI void APIENTRY glImageTransformParameterivHP(GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glImageTransformParameterfvHP(GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY GetImageTransformParameterivHP(GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glGetImageTransformParameterfvHP(GLenum target, GLenum pname,const GLfloat* params);
+
+typedef void (APIENTRY * PFNGLIMAGETRANSFORMPARAMETERIHPPROC) (GLenum target, GLenum pname, const GLint param);
+typedef void (APIENTRY * PFNGLIMAGETRANSFORMPARAMETERFHPPROC) (GLenum target, GLenum pname, const GLfloat param);
+typedef void (APIENTRY * PFNGLIMAGETRANSFORMPARAMETERIVHPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRY * PFNGLIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname, const GLfloat *params);
+typedef void (APIENTRY * PFNGETIMAGETRANSFORMPARAMETERIVHPPROC) (GLenum target, GLenum pname, const GLint *params);
+typedef void (APIENTRY * PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC) (GLenum target, GLenum pname,const GLfloat* params);
+
+#endif /* GL_HP_image_transform */
+
+
+
+/*
+ * 67. GL_HP_convolution_border_modes
+ */
+#ifndef GL_HP_convolution_border_modes
+#define GL_HP_convolution_border_modes 1
+
+#define GL_IGNORE_BORDER_HP ?
+#define GL_CONSTANT_BORDER_HP ?
+#define GL_REPLICATE_BORDER_HP ?
+#define GL_CONVOLUTION_BORDER_COLOR_HP ?
+
+#endif /* GL_HP_convolution_border_modes */
+
+
+
+/*
+ * 68. unknown
+ */
+
+
+
+/*
+ * 69. GL_SGIX_texture_add_env
+ */
+#ifndef GL_SGIX_texture_add_env
+#define GL_SGIX_texture_add_env 1
+
+#define GL_TEXTURE_ENV_BIAS_SGIX 0x80BE
+
+#endif /* GL_SGIX_texture_add_env */
+
+
+
+/*
+ * 70. unknown
+ * 71. unknown
+ * 72. unknown
+ * 73. unknown
+ */
+
+
+
+/*
+ * 74. GL_EXT_color_subtable
+ */
+#ifndef GL_EXT_color_subtable
+#define GL_EXT_color_subtable 1
+
+GLAPI void APIENTRY glColorSubTableEXT(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void *data);
+GLAPI void APIENTRY glCopyColorSubTableEXT(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
+
+typedef void (APIENTRY * PFNGLCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void *data);
+typedef void (APIENTRY * PFNGLCOPYCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
+
+#endif /* GL_EXT_color_subtable */
+
+
+
+/*
+ * 75. GLU_EXT_object_space_tess
+ */
+
+
+
+/*
+ * 76. GL_PGI_vertex_hints
+ */
+#ifndef GL_PGI_vertex_hints
+#define GL_PGI_vertex_hints 1
+
+#define GL_VERTEX_DATA_HINT_PGI 107050
+#define GL_VERTEX_CONSISTENT_HINT_PGI 107051
+#define GL_VATERIAL_SIDE_HINT_PGI 107052
+#define GL_VAX_VERTEX_HINT_PGI 107053
+#define GL_VOLOR3_BIT_PGI 0x00010000
+#define GL_VOLOR4_BIT_PGI 0x00020000
+#define GL_VDGEFLAG_BIT_PGI 0x00040000
+#define GL_VNDEX_BIT_PGI 0x00080000
+#define GL_VAT_AMBIENT_BIT_PGI 0x00100000
+#define GL_VAT_AMBIENT_AND_DIFFUSE_BIT_PGI 0x00200000
+#define GL_VAT_DIFFUSE_BIT_PGI 0x00400000
+#define GL_VAT_EMISSION_BIT_PGI 0x00800000
+#define GL_VAT_COLOR_INDEXES_BIT_PGI 0x01000000
+#define GL_VAT_SHININESS_BIT_PGI 0x02000000
+#define GL_VAT_SPECULAR_BIT_PGI 0x04000000
+#define GL_VORMAL_BIT_PGI 0x08000000
+#define GL_VEXCOORD1_BIT_PGI 0x10000000
+#define GL_VEXCOORD2_BIT_PGI 0x20000000
+#define GL_VEXCOORD3_BIT_PGI 0x40000000
+#define GL_VEXCOORD4_BIT_PGI 0x80000000
+#define GL_VERTEX23_BIT_PGI 0x00000004
+#define GL_VERTEX4_BIT_PGI 0x00000008
+
+#endif /* GL_PGI_vertex_hints */
+
+
+
+/*
+ * 77. GL_PGI_misc_hints
+ */
+#ifndef GL_PGI_misc_hints
+#define GL_PGI_misc_hints 1
+
+#define GL_PREFER_DOUBLEBUFFER_HINT_PGI 107000
+#define GL_STRICT_DEPTHFUNC_HINT_PGI 107030
+#define GL_STRICT_LIGHTING_HINT_PGI 107031
+#define GL_STRICT_SCISSOR_HINT_PGI 107032
+#define GL_FULL_STIPPLE_HINT_PGI 107033
+#define GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI 107011
+#define GL_NATIVE_GRAPHICS_END_HINT_PGI 107012
+#define GL_CONSERVE_MEMORY_HINT_PGI 107005
+#define GL_RECLAIM_MEMORY_HINT_PGI 107006
+#define GL_ALWAYS_FAST_HINT_PGI 107020
+#define GL_ALWAYS_SOFT_HINT_PGI 107021
+#define GL_ALLOW_DRAW_OBJ_HINT_PGI 107022
+#define GL_ALLOW_DRAW_WIN_HINT_PGI 107023
+#define GL_ALLOW_DRAW_FRG_HINT_PGI 107024
+#define GL_ALLOW_DRAW_MEM_HINT_PGI 107025
+#define GL_CLIP_NEAR_HINT_PGI 107040
+#define GL_CLIP_FAR_HINT_PGI 107041
+#define GL_WIDE_LINE_HINT_PGI 107042
+#define GL_BACK_NORMALS_HINT_PGI 107043
+#define GL_NATIVE_GRAPHICS_HANDLE_PGI 107010
+
+GLAPI void APIENTRY glHintPGI(GLenum target, GLint mode);
+
+typedef void (APIENTRY * PFNGLHINTPGIPROC) (GLenum target, GLint mode);
+
+#endif /* GL_PGI_misc_hints */
+
+
+
+/*
+ * 78. GL_EXT_paletted_texture
+ */
+#ifndef GL_EXT_paletted_texture
+#define GL_EXT_paletted_texture 1
+
+#define GL_TABLE_TOO_LARGE_EXT 0x8031
+#define GL_COLOR_TABLE_FORMAT_EXT 0x80D8
+#define GL_COLOR_TABLE_WIDTH_EXT 0x80D9
+#define GL_COLOR_TABLE_RED_SIZE_EXT 0x80DA
+#define GL_COLOR_TABLE_GREEN_SIZE_EXT 0x80DB
+#define GL_COLOR_TABLE_BLUE_SIZE_EXT 0x80DC
+#define GL_COLOR_TABLE_ALPHA_SIZE_EXT 0x80DD
+#define GL_COLOR_TABLE_LUMINANCE_SIZE_EXT 0x80DE
+#define GL_COLOR_TABLE_INTENSITY_SIZE_EXT 0x80DF
+#define GL_TEXTURE_INDEX_SIZE_EXT 0x80ED
+#define GL_COLOR_INDEX1_EXT 0x80E2
+#define GL_COLOR_INDEX2_EXT 0x80E3
+#define GL_COLOR_INDEX4_EXT 0x80E4
+#define GL_COLOR_INDEX8_EXT 0x80E5
+#define GL_COLOR_INDEX12_EXT 0x80E6
+#define GL_COLOR_INDEX16_EXT 0x80E7
+
+GLAPI void APIENTRY glColorTableEXT(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
+GLAPI void APIENTRY glColorSubTableEXT(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data);
+GLAPI void APIENTRY glGetColorTableEXT(GLenum target, GLenum format, GLenum type, GLvoid *table);
+GLAPI void APIENTRY glGetColorTableParameterfvEXT(GLenum target, GLenum pname, GLfloat *params);
+GLAPI void APIENTRY glGetColorTableParameterivEXT(GLenum target, GLenum pname, GLint *params);
+
+typedef void (APIENTRY * PFNGLCOLORTABLEEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
+typedef void (APIENTRY * PFNGLCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data);
+typedef void (APIENTRY * PFNGLGETCOLORTABLEEXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table);
+typedef void (APIENTRY * PFNGLGETCOLORTABLEPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
+typedef void (APIENTRY * PFNGLGETCOLORTABLEPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
+
+#endif /* GL_EXT_paletted_texture */
+
+
+
+/*
+ * 79. GL_EXT_clip_volume_hint
+ */
+#ifndef GL_EXT_clip_volume_hint
+#define GL_EXT_clip_volume_hint 1
+
+#define GL_CLIP_VOLUME_CLIPPING_HINT_EXT 0x80F
+
+#endif /* GL_EXT_clip_volume_hint */
+
+
+
+/*
+ * 80. GL_SGIX_list_priority
+ */
+#ifndef GL_SGIX_list_priority
+#define GL_SGIX_list_priority 1
+
+#define GL_LIST_PRIORITY_SGIX 0x8182
+
+GLAPI void APIENTRY glGetListParameterfvSGIX(GLuint list, GLenum name, GLfloat *param);
+GLAPI void APIENTRY glGetListParameterivSGIX(GLuint list, GLenum name, GLint *param);
+GLAPI void APIENTRY glListParameterfSGIX(GLuint list, GLenum name, GLfloat param);
+GLAPI void APIENTRY glListParameterfvSGIX(GLuint list, GLenum name, const GLfloat *param);
+GLAPI void APIENTRY glListParameteriSGIX(GLuint list, GLenum name, GLint param);
+GLAPI void APIENTRY glListParameterivSGIX(GLuint list, GLenum name, const GLint *param);
+
+typedef void (APIENTRY * PFNGLGETLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum name, GLfloat *param);
+typedef void (APIENTRY * PFNGLGETLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum name, GLint *param);
+typedef void (APIENTRY * PFNGLLISTPARAMETERFSGIXPROC) (GLuint list, GLenum name, GLfloat param);
+typedef void (APIENTRY * PFNGLLISTPARAMETERFVSGIXPROC) (GLuint list, GLenum name, const GLfloat *param);
+typedef void (APIENTRY * PFNGLLISTPARAMETERISGIXPROC) (GLuint list, GLenum name, GLint param);
+typedef void (APIENTRY * PFNGLLISTPARAMETERIVSGIXPROC) (GLuint list, GLenum name, const GLint *param);
+
+#endif /* GL_SGIX_list_priority */
+
+
+
+/*
+ * 81. GL_SGIX_ir_instrument1
+ */
+#ifndef GL_SGIX_ir_instrument1
+#define GL_SGIX_ir_instrument1 1
+
+#define GL_IR_INSTRUMENT1_SGIX 0x817F
+
+#endif /* GL_SGIX_ir_instrument1 */
+
+
+
+/*
+ * 82. unknown
+ * 83. GLX_SGIX_video_resize
+ */
+
+
+
+/*
+ * 84. GL_SGIX_texture_lod_bias
+ */
+#ifndef GL_SGIX_texture_lod_bias
+#define GL_SGIX_texture_lod_bias 1
+
+#define GL_TEXTURE_LOD_BIAS_S_SGIX 0x818E
+#define GL_TEXTURE_LOD_BIAS_T_SGIX 0x818F
+#define GL_TEXTURE_LOD_BIAS_R_SGIX 0x8190
+
+#endif /* GL_SGIX_texture_lod_bias */
+
+
+
+/*
+ * 85. GLU_SGI_filter4_parameters
+ * 86. GLX_SGIX_dm_buffer
+ * 87. unknown
+ * 88. unknown
+ * 89. unknown
+ * 90. unknown
+ * 91. GLX_SGIX_swap_group
+ * 92. GLX_SGIX_swap_barrier
+ */
+
+
+
+/*
+ * 93. GL_EXT_index_texture
+ */
+#ifndef GL_EXT_index_texture
+#define GL_EXT_index_texture 1
+
+/* No new tokens or functions */
+
+#endif /* GL_EXT_index_texture */
+
+
+
+/*
+ * 94. GL_EXT_index_material
+ */
+#ifndef GL_EXT_index_material
+#define GL_EXT_index_material 1
+
+#define GL_INDEX_MATERIAL_EXT ?
+#define GL_INDEX_MATERIAL_PARAMETER_EXT ?
+#define GL_INDEX_MATERIAL_FACE_EXT ?
+
+GLAPI void APIENTRY glIndexMaterialEXT(GLenum face, GLenum mode);
+
+typedef void (APIENTRY * PFNGLINDEXMATERIALEXTPROC) (GLenum face, GLenum mode);
+
+#endif /* GL_EXT_index_material */
+
+
+
+/*
+ * 95. GL_EXT_index_func
+ */
+#ifndef GL_EXT_index_func
+#define GL_EXT_index_func 1
+
+#define GL_INDEX_TEST_EXT ?
+#define GL_INDEX_TEST_FUNC_EXT ?
+#define GL_INDEX_TEST_REF_EXT ?
+
+GLAPI void APIENTRY glIndexFuncEXT(GLenum func, GLfloat ref);
+
+typedef void (APIENTRY * PFNGLINDEXFUNCEXTPROC) (GLenum func, GLfloat ref);
+
+#endif /* GL_EXT_index_func */
+
+
+
+/*
+ * 96. GL_EXT_index_array_formats
+ */
+#ifndef GL_EXT_index_array_formats
+#define GL_EXT_index_array_formats 1
+
+#define GL_IUI_V2F_EXT ?
+#define GL_IUI_V3F_EXT ?
+#define GL_IUI_N3F_V2F_EXT ?
+#define GL_IUI_N3F_V3F_EXT ?
+#define GL_T2F_IUI_V2F_EXT ?
+#define GL_T2F_IUI_V3F_EXT ?
+#define GL_T2F_IUI_N3F_V2F_EXT ?
+#define GL_T2F_IUI_N3F_V3F_EXT ?
+
+#endif /* GL_EXT_index_array_formats */
+
+
+
+/*
+ * 97. GL_EXT_compiled_vertex_array
+ */
+#ifndef GL_EXT_compiled_vertex_array
+#define GL_EXT_compiled_vertex_array 1
+
+#define GL_ARRAY_ELEMENT_LOCK_FIRST_EXT 0x81A8
+#define GL_ARRAY_ELEMENT_LOCK_COUNT_EXT 0x81A9
+
+GLAPI void APIENTRY glLockArraysEXT(GLint first, GLsizei count);
+GLAPI void APIENTRY glUnlockArraysEXT(void);
+
+typedef void (APIENTRY * PFNGLLOCKARRAYSEXTPROC) (GLint first, GLsizei count);
+typedef void (APIENTRY * PFNGLUNLOCKARRAYSEXTPROC) (void);
+
+#endif /* GL_EXT_compiled_vertex_array */
+
+
+
+/*
+ * 98. GL_EXT_cull_vertex
+ */
+#ifndef GL_EXT_cull_vertex
+#define GL_EXT_cull_vertex 1
+
+#define GL_CULL_VERTEX_EXT 0x81AA
+#define GL_CULL_VERTEX_EYE_POSITION_EXT 0x81AB
+#define GL_CULL_VERTEX_OBJECT_POSITION_EXT 0x81AC
+
+GLAPI void APIENTRY glCullParameterdvEXT(GLenum pname, const GLdouble *params);
+GLAPI void APIENTRY glCullParameterfvEXT(GLenum pname, const GLfloat *params);
+
+typedef void (APIENTRY * PFNGLCULLPARAMETERDVEXTPROC) (GLenum pname, GLdouble* params);
+typedef void (APIENTRY * PFNGLCULLPARAMETERFVEXTPROC) (GLenum pname, GLfloat* params);
+
+#endif /* GL_EXT_cull_vertex */
+
+
+
+/*
+ * 99. unknown
+ * 100. GLU_EXT_nurbs_tessellator
+ */
+
+
+
+/*
+ * 101. GL_SGIX_ycrcb
+ */
+#ifndef GL_SGIX_ycrcb
+#define GL_SGIX_ycrcb 1
+
+#define GL_YCRCB_422_SGIX 0x81BB
+#define GL_YCRCB_444_SGIX 0x81BC
+
+#endif /* GL_SGIX_ycrcb */
+
+
+
+/*
+ * 102. GL_SGIX_fragment_lighting
+ */
+#ifndef GL_SGIX_fragment_lighting
+#define GL_SGIX_fragment_lighting 1
+
+GLAPI void APIENTRY glFragmentColorMaterialSGIX(GLenum face, GLenum mode);
+GLAPI void APIENTRY glFragmentLightfSGIX(GLenum light, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glFragmentLightfvSGIX(GLenum light, GLenum pname, const GLfloat * params);
+GLAPI void APIENTRY glFragmentLightiSGIX(GLenum light, GLenum pname, GLint param);
+GLAPI void APIENTRY glFragmentLightivSGIX(GLenum light, GLenum pname, const GLint * params);
+GLAPI void APIENTRY glFragmentLightModelfSGIX(GLenum pname, GLfloat param);
+GLAPI void APIENTRY glFragmentLightModelfvSGIX(GLenum pname, const GLfloat * params);
+GLAPI void APIENTRY glFragmentLightModeliSGIX(GLenum pname, GLint param);
+GLAPI void APIENTRY glFragmentLightModelivSGIX(GLenum pname, const GLint * params);
+GLAPI void APIENTRY glFragmentMaterialfSGIX(GLenum face, GLenum pname, GLfloat param);
+GLAPI void APIENTRY glFragmentMaterialfvSGIX(GLenum face, GLenum pname, const GLfloat * params);
+GLAPI void APIENTRY glFragmentMaterialiSGIX(GLenum face, GLenum pname, GLint param);
+GLAPI void APIENTRY glFragmentMaterialivSGIX(GLenum face, GLenum pname, const GLint * params);
+GLAPI void APIENTRY glGetFragmentLightfvSGIX(GLenum light, GLenum pname, GLfloat * params);
+GLAPI void APIENTRY glGetFragmentLightivSGIX(GLenum light, GLenum pname, GLint * params);
+GLAPI void APIENTRY glGetFragmentMaterialfvSGIX(GLenum face, GLenum pname, GLfloat * params);
+GLAPI void APIENTRY glGetFragmentMaterialivSGIX(GLenum face, GLenum pname, GLint * params);
+GLAPI void APIENTRY glLightEnviSGIX(GLenum pname, GLint param);
+
+typedef void (APIENTRY * PFNGLFRAGMENTCOLORMATERIALSGIXPROC) (GLenum face, GLenum mode);
+typedef void (APIENTRY * PFNGLFRAGMENTLIGHTFSGIXPROC) (GLenum light, GLenum pname, GLfloat param);
+typedef void (APIENTRY * PFNGLFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, const GLfloat * params);
+typedef void (APIENTRY * PFNGLFRAGMENTLIGHTISGIXPROC) (GLenum light, GLenum pname, GLint param);
+typedef void (APIENTRY * PFNGLFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, const GLint * params);
+typedef void (APIENTRY * PFNGLFRAGMENTLIGHTMODELFSGIXPROC) (GLenum pname, GLfloat param);
+typedef void (APIENTRY * PFNGLFRAGMENTLIGHTMODELFVSGIXPROC) (GLenum pname, const GLfloat * params);
+typedef void (APIENTRY * PFNGLFRAGMENTLIGHTMODELISGIXPROC) (GLenum pname, GLint param);
+typedef void (APIENTRY * PFNGLFRAGMENTLIGHTMODELIVSGIXPROC) (GLenum pname, const GLint * params);
+typedef void (APIENTRY * PFNGLFRAGMENTMATERIALFSGIXPROC) (GLenum face, GLenum pname, GLfloat param);
+typedef void (APIENTRY * PFNGLFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, const GLfloat * params);
+typedef void (APIENTRY * PFNGLFRAGMENTMATERIALISGIXPROC) (GLenum face, GLenum pname, GLint param);
+typedef void (APIENTRY * PFNGLFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, const GLint * params);
+typedef void (APIENTRY * PFNGLGETFRAGMENTLIGHTFVSGIXPROC) (GLenum light, GLenum pname, GLfloat * params);
+typedef void (APIENTRY * PFNGLGETFRAGMENTLIGHTIVSGIXPROC) (GLenum light, GLenum pname, GLint * params);
+typedef void (APIENTRY * PFNGLGETFRAGMENTMATERIALFVSGIXPROC) (GLenum face, GLenum pname, GLfloat * params);
+typedef void (APIENTRY * PFNGLGETFRAGMENTMATERIALIVSGIXPROC) (GLenum face, GLenum pname, GLint * params);
+typedef void (APIENTRY * PFNGLLIGHTENVISGIXPROC) (GLenum pname, GLint param);
+
+#endif /* GL_SGIX_fragment_lighting */
+
+
+
+/*
+ * 103. unknown
+ * 104. unknown
+ * 105. unknown
+ * 106. unknown
+ * 107. unknown
+ * 108. unknown
+ * 109. unknown
+ */
+
+
+
+/*
+ * 110. GL_IBM_rasterpos_clip
+ */
+#ifndef GL_IBM_rasterpos_clip
+#define GL_IBM_rasterpos_clip 1
+
+#endif /* GL_IBM_rasterpos_clip */
+
+
+
+/*
+ * 111. GL_HP_texture_lighting
+ */
+#ifndef GL_HP_texture_lighting
+#define GL_HP_texture_lighting 1
+
+#define GL_TEXTURE_LIGHTING_MODE_HP ?
+#define GL_TEXTURE_POST_SPECULAR_HP ?
+#define GL_TEXTURE_PRE_SPECULAR_HP ?
+
+#endif /* GL_HP_texture_lighting */
+
+
+
+/*
+ * 112. GL_EXT_draw_range_elements
+ */
+#ifndef GL_EXT_draw_range_elements
+#define GL_EXT_draw_range_elements 1
+
+#define GL_MAX_ELEMENTS_VERTICES_EXT 0x80E8
+#define GL_MAX_ELEMENTS_INDICES_EXT 0x80E9
+
+GLAPI void APIENTRY glDrawRangeElementsEXT(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
+
+typedef void (APIENTRY * PFNGLDRAWRANGEELEMENTSEXTPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
+
+#endif /* GL_EXT_draw_range_elements */
+
+
+
+/*
+ * 113. GL_WIN_phong_shading
+ */
+#ifndef GL_WIN_phong_shading
+#define GL_WIN_phong_shading 1
+
+#define GL_PHONG_WIN 0x80EA
+#define GL_PHONG_HINT_WIN 0x80EB
+
+#endif /* GL_WIN_phong_shading */
+
+
+
+/*
+ * 114. GL_WIN_specular_fog
+ */
+#ifndef GL_WIN_specular_fog
+#define GL_WIN_specular_fog 1
+
+#define GL_FOG_SPECULAR_TEXTURE_WIN 0x80EC
+#define GL_FOG_SPECULAR_TEXTURE_WIN 0x80EC
+
+#endif /* GL_WIN_specular_fog */
+
+
+
+/*
+ * 115. unknown
+ * 116. unknown
+ */
+
+
+
+/*
+ * 117. GL_EXT_light_texture
+ */
+#ifndef GL_EXT_light_texture
+#define GL_EXT_light_texture 1
+
+#define GL_FRAGMENT_MATERIAL_EXT 0x8349
+#define GL_FRAGMENT_NORMAL_EXT 0x834A
+
+#define GL_FRAGMENT_DEPTH_EXT_834B 0x834B /* DUPLICATE! */
+#define GL_FRAGMENT_COLOR_EXT 0x834C
+#define GL_ATTENUATION_EXT 0x834D
+#define GL_SHADOW_ATTENUATION_EXT 0x834E
+#define GL_TEXTURE_APPLICATION_MODE_EXT 0x834F
+#define GL_TEXTURE_LIGHT_EXT 0x8350
+#define GL_TEXTURE_MATERIAL_FACE_EXT 0x8351
+#define GL_TEXTURE_MATERIAL_PARAMETER_EXT 0x8352
+
+GLAPI void APIENTRY glApplyTextureEXT(GLenum mode);
+GLAPI void APIENTRY glTextureLightEXT(GLenum pname);
+GLAPI void APIENTRY glTextureMaterialEXT(GLenum face, GLenum mode);
+
+typedef void (APIENTRY * PFNGLAPPLYTEXTUREEXTPROC) (GLenum mode);
+typedef void (APIENTRY * PFNGLTEXTURELIGHTEXTPROC) (GLenum pname);
+typedef void (APIENTRY * PFNGLTEXTUREMATERIALEXTPROC) (GLenum face, GLenum mode);
+
+#endif /* GL_EXT_light_texture */
+
+
+
+/*
+ * 118. unknown
+ */
+
+
+
+/*
+ * 119. GL_SGIX_blend_alpha_minmax
+ */
+#ifndef GL_SGIX_blend_alpha_minmax
+#define GL_SGIX_blend_alpha_minmax 1
+
+#endif /* GL_SGIX_blend_alpha_minmax */
+
+
+
+/*
+ * 120. GL_EXT_scene_marker
+ */
+#ifndef GL_EXT_scene_marker
+#define GL_EXT_scene_marker 1
+
+#endif /* GL_EXT_scene_marker */
+
+
+
+/*
+ * 121. unknown
+ * 122. unknown
+ * 123. unknown
+ * 124. unknown
+ * 125. unknown
+ * 126. unknown
+ * 127. unknown
+ * 128. unknown
+ */
+
+
+
+/*
+ * 129. GL_EXT_bgra
+ */
+#ifndef GL_EXT_bgra
+#define GL_EXT_bgra 1
+
+#define GL_BGR_EXT 0x80E0
+#define GL_BGRA_EXT 0x80E1
+
+#endif /* GL_EXT_bgra */
+
+
+
+/*
+ * 130. unknown
+ * 131. unknown
+ * 132. unknown
+ * 133. unknown
+ * 134. unknown
+ */
+
+
+
+/*
+ * 135. GL_INTEL_texture_scissor
+ */
+#ifndef GL_INTEL_texture_scissor
+#define GL_INTEL_texture_scissor 1
+
+#define GL_TEXTURE_SCISSOR_INTEL ?
+#define GL_TEXTURE_SCISSOR_S_INTEL ?
+#define GL_TEXTURE_SCISSOR_T_INTEL ?
+#define GL_TEXTURE_SCISSOR_R_INTEL ?
+
+GLAPI void APIENTRY glTexScissorINTEL(GLenum target, GLclampf tlow, GLclampf thigh);
+GLAPI void APIENTRY glTexScissorFuncINTEL(GLenum target, GLenum lfunc, GLenum hfunc);
+
+typedef void (APIENTRY * PFNGLTEXSCISSORINTELPROC) (GLenum target, GLclampf tlow, GLclampf thigh);
+typedef void (APIENTRY * PFNGLTEXSCISSORFUNCINTELPROC) (GLenum target, GLenum lfunc, GLenum hfunc);
+
+#endif /* GL_INTEL_texture_scissor */
+
+
+
+/*
+ * 136. GL_INTEL_parallel_arrays
+ */
+#ifndef GL_INTEL_parallel_arrays
+#define GL_INTEL_parallel_arrays 1
+
+#define GL_PARALLEL_ARRAYS_INTEL ?
+#define GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL ?
+#define GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL ?
+#define GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL ?
+#define GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL ?
+
+GLAPI void APIENTRY glVertexPointervINTEL(GLint size, GLenum type, const void ** pointer);
+GLAPI void APIENTRY glNormalPointervINTEL(GLenum type, const void** pointer);
+GLAPI void APIENTRY glColorPointervINTEL(GLint size, GLenum type, const void** pointer);
+GLAPI void APIENTRY glTexCoordPointervINTEL(GLint size, GLenum type, const void** pointer);
+
+typedef void (APIENTRY * PFNGLVERTEXPOINTERVINTELPROC) (GLint size, GLenum type, const void ** pointer);
+typedef void (APIENTRY * PFNGLNORMALPOINTERVINTELPROC) (GLenum type, const void** pointer);
+typedef void (APIENTRY * PFNGLCOLORPOINTERVINTELPROC) (GLint size, GLenum type, const void** pointer);
+typedef void (APIENTRY * PFNGLTEXCOORDPOINTERVINTELPROC) (GLint size, GLenum type, const void** pointer);
+
+#endif /* GL_INTEL_parallel_arrays */
+
+
+
+/*
+ * 137. GL_HP_occlusion_test
+ */
+#ifndef GL_HP_occlusion_test
+#define GL_HP_occlusion_test 1
+
+#define GL_OCCLUSION_TEST_HP 0x8165
+#define GL_OCCLUSION_TEST_RESULT_HP 0x8166
+
+#endif /* GL_HP_occlusion_test */
+
+
+
+/*
+ * 138. GL_EXT_pixel_transform
+ */
+#ifndef GL_EXT_pixel_transform
+#define GL_EXT_pixel_transform 1
+
+#define GL_PIXEL_MAG_FILTER_EXT 0x8331
+#define GL_PIXEL_MIN_FILTER_EXT 0x8332
+#define GL_PIXEL_CUBIC_WEIGHT_EXT 0x8333
+#define GL_CUBIC_EXT 0x8334
+#define GL_AVERAGE_EXT 0x8335
+#define GL_PIXEL_TRANSFORM_2D_EXT 0x8330
+#define GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8336
+#define GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8337
+#define GL_PIXEL_TRANSFORM_2D_MATRIX_EXT 0x8338
+
+GLAPI void APIENTRY glPixelTransformParameteriEXT(GLenum target, GLenum pname, const GLint param);
+GLAPI void APIENTRY glPixelTransformParameterfEXT(GLenum target, GLenum pname, const GLfloat param);
+GLAPI void APIENTRY glPixelTransformParameterivEXT(GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glPixelTransformParameterfvEXT(GLenum target, GLenum pname, const GLfloat *params);
+GLAPI void APIENTRY glGetPixelTransformParameterivEXT(GLenum target, GLenum pname, const GLint *params);
+GLAPI void APIENTRY glGetPixelTransformParameterfvEXT(GLenum target, GLenum pname, const GLfloat *params);
+
+#endif /* #define GL_EXT_pixel_transform */
+
+
+
+/*
+ * 139. GL_EXT_pixel_transform_color_table
+ */
+#ifndef GL_EXT_pixel_transform_color_table
+#define GL_EXT_pixel_transform_color_table 1
+
+#define GL_PIXEL_TRANSFORM_COLOR_TABLE_EXT ?
+#define GL_PROXY_PIXEL_TRANSFORM_COLOR_TABLE_EXT ?
+
+#endif /* GL_EXT_pixel_transform_color_table */
+
+
+
+/*
+ * 140. unknown
+ */
+
+
+
+/*
+ * 141. GL_EXT_shared_texture_palette (req's GL_EXT_paletted_texture)
+ */
+#ifndef GL_EXT_shared_texture_palette
+#define GL_EXT_shared_texture_palette 1
+
+#define GL_SHARED_TEXTURE_PALETTE_EXT 0x81FB
+
+#endif /* GL_EXT_shared_texture_palette */
+
+
+
+/*
+ * 142. unknown
+ * 143. unknown
+ */
+
+
+
+/*
+ * 144. GL_EXT_separate_specular_color
+ */
+#ifndef GL_EXT_separate_specular_color
+#define GL_EXT_separate_specular_color 1
+
+#define GL_LIGHT_MODEL_COLOR_CONTROL_EXT 0x81F8
+#define GL_SINGLE_COLOR_EXT 0x81F9
+#define GL_SEPARATE_SPECULAR_COLOR_EXT 0x81FA
+
+#endif /* GL_EXT_separate_specular_color */
+
+
+
+/*
+ * 145. GL_EXT_secondary_color
+ */
+#ifndef GL_EXT_secondary_color
+#define GL_EXT_secondary_color 1
+
+#define GL_COLOR_SUM_EXT 0x8458
+#define GL_CURRENT_SECONDARY_COLOR_EXT 0x8459
+#define GL_SECONDARY_COLOR_ARRAY_SIZE_EXT 0x845A
+#define GL_SECONDARY_COLOR_ARRAY_TYPE_EXT 0x845B
+#define GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT 0x845C
+#define GL_SECONDARY_COLOR_ARRAY_POINTER_EXT 0x845D
+#define GL_SECONDARY_COLOR_ARRAY_EXT 0x845E
+
+GLAPI void APIENTRY glSecondaryColor3bEXT(GLbyte red, GLbyte green, GLbyte blue);
+GLAPI void APIENTRY glSecondaryColor3dEXT(GLdouble red, GLdouble green, GLdouble blue);
+GLAPI void APIENTRY glSecondaryColor3fEXT(GLfloat red, GLfloat green, GLfloat blue);
+GLAPI void APIENTRY glSecondaryColor3iEXT(GLint red, GLint green, GLint blue);
+GLAPI void APIENTRY glSecondaryColor3sEXT(GLshort red, GLshort green, GLshort blue);
+GLAPI void APIENTRY glSecondaryColor3ubEXT(GLubyte red, GLubyte green, GLubyte blue);
+GLAPI void APIENTRY glSecondaryColor3uiEXT(GLuint red, GLuint green, GLuint blue);
+GLAPI void APIENTRY glSecondaryColor3usEXT(GLushort red, GLushort green, GLushort blue);
+GLAPI void APIENTRY glSecondaryColor4bEXT(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
+GLAPI void APIENTRY glSecondaryColor4dEXT(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
+GLAPI void APIENTRY glSecondaryColor4fEXT(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+GLAPI void APIENTRY glSecondaryColor4iEXT(GLint red, GLint green, GLint blue, GLint alpha);
+GLAPI void APIENTRY glSecondaryColor4sEXT(GLshort red, GLshort green, GLshort blue, GLshort alpha);
+GLAPI void APIENTRY glSecondaryColor4ubEXT(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
+GLAPI void APIENTRY glSecondaryColor4uiEXT(GLuint red, GLuint green, GLuint blue, GLuint alpha);
+GLAPI void APIENTRY glSecondaryColor4usEXT(GLushort red, GLushort green, GLushort blue, GLushort alpha);
+GLAPI void APIENTRY glSecondaryColor3bvEXT(const GLbyte *v);
+GLAPI void APIENTRY glSecondaryColor3dvEXT(const GLdouble *v);
+GLAPI void APIENTRY glSecondaryColor3fvEXT(const GLfloat *v);
+GLAPI void APIENTRY glSecondaryColor3ivEXT(const GLint *v);
+GLAPI void APIENTRY glSecondaryColor3svEXT(const GLshort *v);
+GLAPI void APIENTRY glSecondaryColor3ubvEXT(const GLubyte *v);
+GLAPI void APIENTRY glSecondaryColor3uivEXT(const GLuint *v);
+GLAPI void APIENTRY glSecondaryColor3usvEXT(const GLushort *v);
+GLAPI void APIENTRY glSecondaryColor4bvEXT(const GLbyte *v);
+GLAPI void APIENTRY glSecondaryColor4dvEXT(const GLdouble *v);
+GLAPI void APIENTRY glSecondaryColor4fvEXT(const GLfloat *v);
+GLAPI void APIENTRY glSecondaryColor4ivEXT(const GLint *v);
+GLAPI void APIENTRY glSecondaryColor4svEXT(const GLshort *v);
+GLAPI void APIENTRY glSecondaryColor4ubvEXT(const GLubyte *v);
+GLAPI void APIENTRY glSecondaryColor4uivEXT(const GLuint *v);
+GLAPI void APIENTRY glSecondaryColor4usvEXT(const GLushort *v);
+GLAPI void APIENTRY glSecondaryColorPointerEXT(GLint size, GLenum type, GLsizei stride, GLvoid *pointer);
+
+#endif /* GL_EXT_secondary_color */
+
+
+
+/*
+ * 146. GL_EXT_texture_env
+ */
+#ifndef GL_EXT_texture_env
+#define GL_EXT_texture_env 1
+
+#define GL_TEXTURE_ENV0_EXT 0x?
+#define GL_TEXTURE_ENV1_EXT (GL_TEXTURE_ENV0_EXT+1)
+#define GL_TEXTURE_ENV2_EXT (GL_TEXTURE_ENV0_EXT+2)
+#define GL_TEXTURE_ENV3_EXT (GL_TEXTURE_ENV0_EXT+3)
+#define GL_TEXTURE_ENV4_EXT (GL_TEXTURE_ENV0_EXT+4)
+#define GL_TEXTURE_ENV5_EXT (GL_TEXTURE_ENV0_EXT+5)
+#define GL_TEXTURE_ENV6_EXT (GL_TEXTURE_ENV0_EXT+6)
+#define GL_TEXTURE_ENV7_EXT (GL_TEXTURE_ENV0_EXT+7)
+#define GL_TEXTURE_ENV8_EXT (GL_TEXTURE_ENV0_EXT+8)
+#define GL_TEXTURE_ENV9_EXT (GL_TEXTURE_ENV0_EXT+9)
+#define GL_TEXTURE_ENV10_EXT (GL_TEXTURE_ENV0_EXT+10)
+#define GL_TEXTURE_ENV11_EXT (GL_TEXTURE_ENV0_EXT+11)
+#define GL_TEXTURE_ENV12_EXT (GL_TEXTURE_ENV0_EXT+12)
+#define GL_TEXTURE_ENV13_EXT (GL_TEXTURE_ENV0_EXT+13)
+#define GL_TEXTURE_ENV14_EXT (GL_TEXTURE_ENV0_EXT+14)
+#define GL_TEXTURE_ENV15_EXT (GL_TEXTURE_ENV0_EXT+15)
+#define GL_TEXTURE_ENV_MODE_ALPHA_EXT 0x?
+#define GL_ENV_COPY_EXT 0x?
+#define GL_ENV_REPLACE_EXT 0x?
+#define GL_ENV_MODULATE_EXT 0x?
+#define GL_ENV_ADD_EXT 0x?
+#define GL_ENV_SUBTRACT_EXT 0x?
+#define GL_ENV_REVERSE_SUBTRACT_EXT 0x?
+#define GL_ENV_BLEND_EXT 0x?
+#define GL_ENV_REVERSE_BLEND_EXT 0x?
+#define GL_TEXTURE_ENV_SHIFT_EXT 0x?
+
+#endif /* GL_EXT_texture_env */
+
+
+
+/*
+ * 147. GL_EXT_texture_perturb_normal
+ */
+#ifndef GL_EXT_texture_perturb_normal
+#define GL_EXT_texture_perturb_normal 1
+
+#define GL_PERTURB_EXT 0x85AE
+#define GL_TEXTURE_NORMAL_EXT 0x85AF
+
+GLAPI void APIENTRY glTextureNormalEXT(GLenum mode);
+
+typedef void (APIENTRY * PFNGLTEXTURENORMALEXT) (GLenum mode);
+
+#endif /* GL_EXT_texture_perturb_normal */
+
+
+
+/*
+ * 148. GL_EXT_multi_draw_arrays
+ */
+#ifndef GL_EXT_multi_draw_arrays
+#define GL_EXT_multi_draw_arrays 1
+
+GLAPI void APIENTRY glMultiDrawArraysEXT(GLenum mode, GLint *first, GLsizei *count, GLsizei primcount);
+
+typedef void (APIENTRY * PFNGLMULTIDRAWARRAYSEXT) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount);
+
+#endif /* GL_EXT_multi_draw_arrays */
+
+
+
+/*
+ * 149. GL_EXT_fog_coord
+ */
+#ifndef GL_EXT_fog_coord
+#define GL_EXT_fog_coord 1
+
+#define GL_FOG_COORDINATE_SOURCE_EXT 0x8450
+#define GL_FOG_COORDINATE_EXT 0x8451
+#define GL_FRAGMENT_DEPTH_EXT 0x8452 /* DUPLICATE! */
+#define GL_CURRENT_FOG_COORDINATE_EXT 0x8453
+#define GL_FOG_COORDINATE_ARRAY_TYPE_EXT 0x8454
+#define GL_FOG_COORDINATE_ARRAY_STRIDE_EXT 0x8455
+#define GL_FOG_COORDINATE_ARRAY_POINTER_EXT 0x8456
+#define GL_FOG_COORDINATE_ARRAY_EXT 0x8457
+
+GLAPI void APIENTRY glFogCoordfEXT(GLfloat coord);
+GLAPI void APIENTRY glFogCoordfvEXT(const GLfloat * coord);
+GLAPI void APIENTRY glFogCoorddEXT(GLdouble coord);
+GLAPI void APIENTRY glFogCoorddvEXT(const GLdouble * coord);
+GLAPI void APIENTRY glFogCoordPointerEXT(GLenum type, GLsizei stride, const GLvoid * pointer);
+
+typedef void (APIENTRY * PFNGLFOGCOORDFEXTPROC) (GLfloat coord);
+typedef void (APIENTRY * PFNGLFOGCOORDFVEXTPROC) (const GLfloat * coord);
+typedef void (APIENTRY * PFNGLFOGCOORDDEXTPROC) (GLdouble coord);
+typedef void (APIENTRY * PFNGLFOGCOORDDVEXTPROC) (const GLdouble * coord);
+typedef void (APIENTRY * PFNGLFOGCOORDPOINTEREXTPROC) (GLenum type, GLsizei stride, const GLvoid * pointer);
+
+#endif
+
+
+
+/*
+ * 150. unknown
+ * 151. unknown
+ * 152. unknown
+ * 153. unknown
+ * 154. unknown
+ */
+
+
+
+/*
+ * 155. GL_REND_screen_coordinates
+ */
+#ifndef GL_REND_screen_coordinates
+#define GL_REND_screen_coordinates 1
+
+#define GL_SCREEN_COORDINATES_REND 0x8490
+#define GL_INVERTED_SCREEN_W_REND 0x8491
+
+#endif /* GL_REND_screen_coordinates */
+
+
+
+/*
+ * 156. GL_EXT_coordinate_frame
+ */
+#ifndef GL_EXT_coordinate_frame
+#define GL_EXT_coordinate_frame 1
+
+#define GL_TANGENT_ARRAY_EXT 0x8439
+#define GL_BINORMAL_ARRAY_EXT 0x843A
+#define GL_CURRENT_TANGENT_EXT 0x843B
+#define GL_CURRENT_BINORMAL_EXT 0x843C
+#define GL_TANGENT_ARRAY_TYPE_EXT 0x843E
+#define GL_TANGENT_ARRAY_STRIDE_EXT 0x843F
+#define GL_BINORMAL_ARRAY_TYPE_EXT 0x8440
+#define GL_BINORMAL_ARRAY_STRIDE_EXT 0x8441
+#define GL_TANGENT_ARRAY_POINTER_EXT 0x8442
+#define GL_BINORMAL_ARRAY_POINTER_EXT 0x8443
+#define GL_MAP1_TANGENT_EXT 0x8444
+#define GL_MAP2_TANGENT_EXT 0x8445
+#define GL_MAP1_BINORMAL_EXT 0x8446
+#define GL_MAP2_BINORMAL_EXT 0x8447
+
+GLAPI void APIENTRY glTangent3bEXT(GLbyte x, GLbyte y, GLbyte z);
+GLAPI void APIENTRY glTangent3dEXT(GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glTangent3fEXT(GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glTangent3iEXT(GLint x, GLint y, GLint z);
+GLAPI void APIENTRY glTangent3sEXT(GLshort x, GLshort y, GLshort z);
+GLAPI void APIENTRY glTangent3bvEXT(const GLbyte *v);
+GLAPI void APIENTRY glTangent3dvEXT(const GLdouble *v);
+GLAPI void APIENTRY glTangent3fvEXT(const GLfloat *v);
+GLAPI void APIENTRY glTangent3ivEXT(const GLint *v);
+GLAPI void APIENTRY glTangent3svEXT(const GLshort *v);
+GLAPI void APIENTRY glBinormal3bEXT(GLbyte x, GLbyte y, GLbyte z);
+GLAPI void APIENTRY glBinormal3dEXT(GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glBinormal3fEXT(GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glBinormal3iEXT(GLint x, GLint y, GLint z);
+GLAPI void APIENTRY glBinormal3sEXT(GLshort x, GLshort y, GLshort z);
+GLAPI void APIENTRY glBinormal3bvEXT(const GLbyte *v);
+GLAPI void APIENTRY glBinormal3dvEXT(const GLdouble *v);
+GLAPI void APIENTRY glBinormal3fvEXT(const GLfloat *v);
+GLAPI void APIENTRY glBinormal3ivEXT(const GLint *v);
+GLAPI void APIENTRY glBinormal3svEXT(const GLshort *v);
+GLAPI void APIENTRY glTangentPointerEXT(GLenum type, GLsizei stride, GLvoid *pointer);
+GLAPI void APIENTRY glBinormalPointerEXT(GLenum type, GLsizei stride, GLvoid *pointer);
+
+typedef void (APIENTRY * PFNGLTANGENT3BEXT) (GLbyte x, GLbyte y, GLbyte z);
+typedef void (APIENTRY * PFNGLTANGENT3DEXT) (GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRY * PFNGLTANGENT3FEXT) (GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRY * PFNGLTANGENT3IEXT) (GLint x, GLint y, GLint z);
+typedef void (APIENTRY * PFNGLTANGENT3SEXT) (GLshort x, GLshort y, GLshort z);
+typedef void (APIENTRY * PFNGLTANGENT3BVEXT) (const GLbyte *v);
+typedef void (APIENTRY * PFNGLTANGENT3DVEXT) (const GLdouble *v);
+typedef void (APIENTRY * PFNGLTANGENT3FVEXT) (const GLfloat *v);
+typedef void (APIENTRY * PFNGLTANGENT3IVEXT) (const GLint *v);
+typedef void (APIENTRY * PFNGLTANGENT3SVEXT) (const GLshort *v);
+typedef void (APIENTRY * PFNGLBINORMAL3BEXT) (GLbyte x, GLbyte y, GLbyte z);
+typedef void (APIENTRY * PFNGLBINORMAL3DEXT) (GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRY * PFNGLBINORMAL3FEXT) (GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRY * PFNGLBINORMAL3IEXT) (GLint x, GLint y, GLint z);
+typedef void (APIENTRY * PFNGLBINORMAL3SEXT) (GLshort x, GLshort y, GLshort z);
+typedef void (APIENTRY * PFNGLBINORMAL3BVEXT) (const GLbyte *v);
+typedef void (APIENTRY * PFNGLBINORMAL3DVEXT) (const GLdouble *v);
+typedef void (APIENTRY * PFNGLBINORMAL3FVEXT) (const GLfloat *v);
+typedef void (APIENTRY * PFNGLBINORMAL3IVEXT) (const GLint *v);
+typedef void (APIENTRY * PFNGLBINORMAL3SVEXT) (const GLshort *v);
+typedef void (APIENTRY * PFNGLTANGENTPOINTEREXT) (GLenum type, GLsizei stride, GLvoid *pointer);
+typedef void (APIENTRY * PFNGLBINORMALPOINTEREXT) (GLenum type, GLsizei stride, GLvoid *pointer);
+
+#endif /* GL_EXT_coordinate_frame */
+
+
+
+/*
+ * 157. unknown
+ */
+
+
+
+/*
+ * 158. GL_EXT_texture_env_combine
+ */
+#ifndef GL_EXT_texture_env_combine
+#define GL_EXT_texture_env_combine 1
+
+#define GL_COMBINE_EXT 0x8570
+#define GL_COMBINE_RGB_EXT 0x8571
+#define GL_COMBINE_ALPHA_EXT 0x8572
+#define GL_RGB_SCALE_EXT 0x8573
+#define GL_ADD_SIGNED_EXT 0x8574
+#define GL_INTERPOLATE_EXT 0x8575
+#define GL_CONSTANT_EXT 0x8576
+#define GL_PRIMARY_COLOR_EXT 0x8577
+#define GL_PREVIOUS_EXT 0x8578
+#define GL_SOURCE0_RGB_EXT 0x8580
+#define GL_SOURCE1_RGB_EXT 0x8581
+#define GL_SOURCE2_RGB_EXT 0x8582
+#define GL_SOURCE0_ALPHA_EXT 0x8588
+#define GL_SOURCE1_ALPHA_EXT 0x8589
+#define GL_SOURCE2_ALPHA_EXT 0x858A
+#define GL_OPERAND0_RGB_EXT 0x8590
+#define GL_OPERAND1_RGB_EXT 0x8591
+#define GL_OPERAND2_RGB_EXT 0x8592
+#define GL_OPERAND0_ALPHA_EXT 0x8598
+#define GL_OPERAND1_ALPHA_EXT 0x8599
+#define GL_OPERAND2_ALPHA_EXT 0x859A
+
+#endif /* GL_EXT_texture_env_combine */
+
+
+
+/*
+ * 159. GL_APPLE_specular_vector
+ */
+#ifndef GL_APPLE_specular_vector
+#define GL_APPLE_specular_vector 1
+
+#define GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE 0x85B0
+
+#endif /* GL_APPLE_specular_vector */
+
+
+
+/*
+ * 160. GL_APPLE_transform_hint
+ */
+#ifndef GL_APPLE_transform_hint
+#define GL_APPLE_transform_hint 1
+
+#define GL_TRANSFORM_HINT_APPLE 0x85B1
+
+#endif /* GL_APPLE_transform_hint */
+
+
+
+/*
+ * 161. unknown
+ * 162. unknown
+ */
+
+
+
+/*
+ * 163. GL_SUNX_constant_data
+ */
+#ifndef GL_SUNX_constant_data
+#define GL_SUNX_constant_data 1
+
+#define GL_UNPACK_CONSTANT_DATA_SUNX 0x81D5
+#define GL_TEXTURE_CONSTANT_DATA_SUNX 0x81D6
+
+GLAPI void APIENTRY glFinishTextureSUNX(void);
+
+typedef void (APIENTRY * PFNGLFINISHTEXTURESUNX) (void);
+
+#endif /* GL_SUNX_constant_data */
+
+
+
+/*
+ * 164. GL_SUN_global_alpha
+ */
+#ifndef GL_SUN_global_alpha
+#define GL_SUN_global_alpha 1
+
+#define GL_GLOBAL_ALPHA_SUN 0x81D9
+#define GL_GLOBAL_ALPHA_FACTOR_SUN 0x81DA
+
+GLAPI void APIENTRY glGlobalAlphaFactorbSUN(GLbyte factor);
+GLAPI void APIENTRY glGlobalAlphaFactorsSUN(GLshort factor);
+GLAPI void APIENTRY glGlobalAlphaFactoriSUN(GLint factor);
+GLAPI void APIENTRY glGlobalAlphaFactorfSUN(GLfloat factor);
+GLAPI void APIENTRY glGlobalAlphaFactordSUN(GLdouble factor);
+GLAPI void APIENTRY glGlobalAlphaFactorubSUN(GLubyte factor);
+GLAPI void APIENTRY glGlobalAlphaFactorusSUN(GLushort factor);
+GLAPI void APIENTRY glGlobalAlphaFactoruiSUN(GLuint factor);
+
+typedef void (APIENTRY * PFNGLGLOBALALPHAFACTORBSUN) (GLbyte factor);
+typedef void (APIENTRY * PFNGLGLOBALALPHAFACTORSSUN) (GLshort factor);
+typedef void (APIENTRY * PFNGLGLOBALALPHAFACTORISUN) (GLint factor);
+typedef void (APIENTRY * PFNGLGLOBALALPHAFACTORFSUN) (GLfloat factor);
+typedef void (APIENTRY * PFNGLGLOBALALPHAFACTORDSUN) (GLdouble factor);
+typedef void (APIENTRY * PFNGLGLOBALALPHAFACTORUBSUN) (GLubyte factor);
+typedef void (APIENTRY * PFNGLGLOBALALPHAFACTORUSSUN) (GLushort factor);
+typedef void (APIENTRY * PFNGLGLOBALALPHAFACTORUISUN) (GLuint factor);
+
+#endif /* GL_SUN_global_alpha */
+
+
+
+/*
+ * 165. GL_SUN_triangle_list
+ */
+#ifndef GL_SUN_triangle_list
+#define GL_SUN_triangle_list 1
+
+#define GL_TRIANGLE_LIST_SUN 0x81D7
+#define GL_REPLACEMENT_CODE_SUN 0x81D8
+#define GL_RESTART_SUN 0x01
+#define GL_REPLACE_MIDDLE_SUN 0x02
+#define GL_REPLACE_OLDEST_SUN 0x03
+#define GL_REPLACEMENT_CODE_ARRAY_SUN 0x85C0
+#define GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN 0x85C1
+#define GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN 0x85C2
+#define GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN 0x85C3
+#define GL_R1UI_V3F_SUN 0x85C4
+#define GL_R1UI_C4UB_V3F_SUN 0x85C5
+#define GL_R1UI_C3F_V3F_SUN 0x85C6
+#define GL_R1UI_N3F_V3F_SUN 0x85C7
+#define GL_R1UI_C4F_N3F_V3F_SUN 0x85C8
+#define GL_R1UI_T2F_V3F_SUN 0x85C9
+#define GL_R1UI_T2F_N3F_V3F_SUN 0x85CA
+#define GL_R1UI_T2F_C4F_N3F_V3F_SUN 0x85CB
+
+GLAPI void APIENTRY glReplacementCodeuiSUN(GLuint code);
+GLAPI void APIENTRY glReplacementCodeusSUN(GLushort code);
+GLAPI void APIENTRY glReplacementCodeubSUN(GLubyte code);
+GLAPI void APIENTRY glReplacementCodeuivSUN(const GLuint *code);
+GLAPI void APIENTRY glReplacementCodeusvSUN(const GLushort *code);
+GLAPI void APIENTRY glReplacementCodeubvSUN(const GLubyte *code);
+GLAPI void APIENTRY glReplacementCodePointerSUN(GLenum type, GLsizei stride, const GLvoid *pointer);
+
+typedef void (APIENTRY * PFNGLREPLACEMENTCODEUISUN) (GLuint code);
+typedef void (APIENTRY * PFNGLREPLACEMENTCODEUSSUN) (GLushort code);
+typedef void (APIENTRY * PFNGLREPLACEMENTCODEUBSUN) (GLubyte code);
+typedef void (APIENTRY * PFNGLREPLACEMENTCODEUIVSUN) (const GLuint *code);
+typedef void (APIENTRY * PFNGLREPLACEMENTCODEUSVSUN) (const GLushort *code);
+typedef void (APIENTRY * PFNGLREPLACEMENTCODEUBVSUN) (const GLubyte *code);
+typedef void (APIENTRY * PFNGLREPLACEMENTCODEPOINTERSUN) (GLenum type, GLsizei stride, const GLvoid *pointer);
+
+#endif /* GL_SUN_triangle_list */
+
+
+
+/*
+ * 166. GL_SUN_vertex
+ */
+#ifndef GL_SUN_vertex
+#define GL_SUN_vertex 1
+
+GLAPI void APIENTRY glColor4ubVertex2fSUN(GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y);
+GLAPI void APIENTRY glColor4ubVertex2fvSUN(const GLubyte *c, const GLfloat *v);
+GLAPI void APIENTRY glColor4ubVertex3fSUN(GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glColor4ubVertex3fvSUN(const GLubyte *c, const GLfloat *v);
+GLAPI void APIENTRY glColor3fVertex3fSUN(GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glColor3fVertex3fvSUN(const GLfloat *c, const GLfloat *v);
+GLAPI void APIENTRY glNormal3fVertex3fSUN(GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glNormal3fVertex3fvSUN(const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glColor4fNormal3fVertex3fSUN(GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glColor4fNormal3fVertex3fvSUN(const GLfloat *c, const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glTexCoord2fVertex3fSUN(GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glTexCoord2fVertex3fvSUN(const GLfloat *tc, const GLfloat *v);
+GLAPI void APIENTRY glTexCoord4fVertex4fSUN(GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glTexCoord4fVertex4fvSUN(const GLfloat *tc, const GLfloat *v);
+GLAPI void APIENTRY glTexCoord2fColor4ubVertex3fSUN(GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glTexCoord2fColor4ubVertex3fvSUN(const GLfloat *tc, const GLubyte *c, const GLfloat *v);
+GLAPI void APIENTRY glTexCoord2fColor3fVertex3fSUN(GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glTexCoord2fColor3fVertex3fvSUN(const GLfloat *tc, const GLfloat *c, const GLfloat *v);
+GLAPI void APIENTRY glTexCoord2fNormal3fVertex3fSUN(GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glTexCoord2fNormal3fVertex3fvSUN(const GLfloat *tc, const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glTexCoord2fColor4fNormal3fVertex3fSUN(GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glTexCoord2fColor4fNormal3fVertex3fvSUN(const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glTexCoord4fColor4fNormal3fVertex4fSUN(GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glTexCoord4fColor4fNormal3fVertex4fvSUN(const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiVertex3fSUN(GLuint rc, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiVertex3fvSUN(const GLuint *rc, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiColor4ubVertex3fSUN(GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiColor4ubVertex3fvSUN(const GLuint *rc, const GLubyte *c, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiColor3fVertex3fSUN(GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiColor3fVertex3fvSUN(const GLuint *rc, const GLfloat *c, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiNormal3fVertex3fSUN(GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiNormal3fVertex3fvSUN(const GLuint *rc, const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiColor4fNormal3fVertex3fSUN(GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiColor4fNormal3fVertex3fvSUN(const GLuint *rc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiTexCoord2fVertex3fSUN(GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiTexCoord2fVertex3fvSUN(const GLuint *rc, const GLfloat *tc, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN(GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN(const GLuint *rc, const GLfloat *tc, const GLfloat *n, const GLfloat *v);
+GLAPI void APIENTRY glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN(GLuint rc, GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN(const GLuint *rc, const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+
+typedef void (APIENTRY * PFNGLCOLOR4UBVERTEX2FSUN) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y);
+typedef void (APIENTRY * PFNGLCOLOR4UBVERTEX2FVSUN) (const GLubyte *c, const GLfloat *v);
+typedef void (APIENTRY * PFNGLCOLOR4UBVERTEX3FSUN) (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRY * PFNGLCOLOR4UBVERTEX3FVSUN) (const GLubyte *c, const GLfloat *v);
+typedef void (APIENTRY * PFNGLCOLOR3FVERTEX3FSUN) (GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRY * PFNGLCOLOR3FVERTEX3FVSUN) (const GLfloat *c, const GLfloat *v);
+typedef void (APIENTRY * PFNGLNORMAL3FVERTEX3FSUN) (GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRY * PFNGLNORMAL3FVERTEX3FVSUN) (const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRY * PFNGLCOLOR4FNORMAL3FVERTEX3FSUN) (GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRY * PFNGLCOLOR4FNORMAL3FVERTEX3FVSUN) (const GLfloat *c, const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRY * PFNGLTEXCOORD2FVERTEX3FSUN) (GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRY * PFNGLTEXCOORD2FVERTEX3FVSUN) (const GLfloat *tc, const GLfloat *v);
+typedef void (APIENTRY * PFNGLTEXCOORD4FVERTEX4FSUN) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRY * PFNGLTEXCOORD4FVERTEX4FVSUN) (const GLfloat *tc, const GLfloat *v);
+typedef void (APIENTRY * PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUN) (GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRY * PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUN) (const GLfloat *tc, const GLubyte *c, const GLfloat *v);
+typedef void (APIENTRY * PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUN) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRY * PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUN) (const GLfloat *tc, const GLfloat *c, const GLfloat *v);
+typedef void (APIENTRY * PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUN) (GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRY * PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUN) (const GLfloat *tc, const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRY * PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUN) (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRY * PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUN) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRY * PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUN) (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRY * PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUN) (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRY * PFNGLREPLACEMENTCODEUIVERTEX3FSUN) (GLuint rc, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRY * PFNGLREPLACEMENTCODEUIVERTEX3FVSUN) (const GLuint *rc, const GLfloat *v);
+typedef void (APIENTRY * PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUN) (GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRY * PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUN) (const GLuint *rc, const GLubyte *c, const GLfloat *v);
+typedef void (APIENTRY * PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUN) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRY * PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUN) (const GLuint *rc, const GLfloat *c, const GLfloat *v);
+typedef void (APIENTRY * PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUN) (GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRY * PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUN) (const GLuint *rc, const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRY * PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUN) (GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRY * PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUN) (const GLuint *rc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRY * PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUN) (GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRY * PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUN) (const GLuint *rc, const GLfloat *tc, const GLfloat *v);
+typedef void (APIENTRY * PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUN) (GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRY * PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUN) (const GLuint *rc, const GLfloat *tc, const GLfloat *n, const GLfloat *v);
+typedef void (APIENTRY * PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUN) (GLuint rc, GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRY * PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUN) (const GLuint *rc, const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v);
+
+#endif /* GL_SUN_vertex */
+
+
+
+/*
+ * 167. WGL_EXT_display_color_table
+ * 168. WGL_EXT_extensions_string
+ * 169. WGL_EXT_make_current_read
+ * 170. WGL_EXT_pixel_format
+ * 171. WGL_EXT_pbuffer
+ * 172. WGL_EXT_swap_control
+ */
+
+
+
+/*
+ * 173. GL_EXT_blend_func_separate
+ */
+#ifndef GL_EXT_blend_func_separate
+#define GL_EXT_blend_func_separate 1
+
+#define GL_BLEND_DST_RGB_EXT 0x80C8
+#define GL_BLEND_SRC_RGB_EXT 0x80C9
+#define GL_BLEND_DST_ALPHA_EXT 0x80CA
+#define GL_BLEND_SRC_ALPHA_EXT 0x80CB
+
+GLAPI void APIENTRY glBlendFuncSeparateEXT(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+
+typedef void (APIENTRY * PFNGLBLENDFUNCSEPARATEEXTPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+
+#endif /* GL_EXT_blend_func_separate */
+
+
+
+/*
+ * 173. GL_INGR_blend_func_separate
+ */
+#ifndef GL_INGR_blend_func_separate
+#define GL_INGR_blend_func_separate 1
+
+#define GL_BLEND_DST_RGB_INGR 0x80C8
+#define GL_BLEND_SRC_RGB_INGR 0x80C9
+#define GL_BLEND_DST_ALPHA_INGR 0x80CA
+#define GL_BLEND_SRC_ALPHA_INGR 0x80CB
+
+GLAPI void APIENTRY glBlendFuncSeparateINGR(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+
+typedef void (APIENTRY * PFNGLBLENDFUNCSEPARATEINGRPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
+
+#endif /* GL_INGR_blend_func_separate */
+
+
+
+/*
+ * 174. GL_INGR_color_clamp
+ */
+#ifndef GL_INGR_color_clamp
+#define GL_INGR_color_clamp 1
+
+#define GL_RED_MIN_CLAMP_INGR 0x8560
+#define GL_GREEN_MIN_CLAMP_INGR 0x8561
+#define GL_BLUE_MIN_CLAMP_INGR 0x8562
+#define GL_ALPHA_MIN_CLAMP_INGR 0x8563
+#define GL_RED_MAX_CLAMP_INGR 0x8564
+#define GL_GREEN_MAX_CLAMP_INGR 0x8565
+#define GL_BLUE_MAX_CLAMP_INGR 0x8566
+#define GL_ALPHA_MAX_CLAMP_INGR 0x8567
+#define GL_RED_MIN_CLAMP_INGR 0x8560
+#define GL_GREEN_MIN_CLAMP_INGR 0x8561
+#define GL_BLUE_MIN_CLAMP_INGR 0x8562
+#define GL_ALPHA_MIN_CLAMP_INGR 0x8563
+#define GL_RED_MAX_CLAMP_INGR 0x8564
+#define GL_GREEN_MAX_CLAMP_INGR 0x8565
+#define GL_BLUE_MAX_CLAMP_INGR 0x8566
+#define GL_ALPHA_MAX_CLAMP_INGR 0x8567
+
+#endif /* GL_INGR_color_clamp */
+
+
+
+/*
+ * 175. GL_INGR_interlace_read
+ */
+#ifndef GL_INGR_interlace_read
+#define GL_INGR_interlace_read 1
+
+#define GL_INTERLACE_READ_INGR 0x8568
+
+#endif /* GL_INGR_interlace_read */
+
+
+
+/*
+ * 176. GL_EXT_stencil_wrap
+ */
+#ifndef GL_EXT_stencil_wrap
+#define GL_EXT_stencil_wrap 1
+
+#define GL_INCR_WRAP_EXT 0x8507
+#define GL_DECR_WRAP_EXT 0x8508
+
+#endif /* GL_EXT_stencil_wrap */
+
+
+
+/*
+ * 177. WGL_EXT_depth_float
+ */
+
+
+
+/*
+ * 178. GL_EXT_422_pixels
+ */
+#ifndef GL_EXT_422_pixels
+#define GL_EXT_422_pixels 1
+
+#define GL_422_EXT 0x80CC
+#define GL_422_REV_EXT 0x80CD
+#define GL_422_AVERAGE_EXT 0x80CE
+#define GL_422_REV_AVERAGE_EXT 0x80CF
+
+#endif /* GL_EXT_422_pixels */
+
+
+
+/*
+ * 179. GL_NV_texgen_reflection
+ */
+#ifndef GL_NV_texgen_reflection
+#define GL_NV_texgen_reflection 1
+
+#define GL_NORMAL_MAP_NV 0x8511
+#define GL_REFLECTION_MAP_NV 0x8512
+
+#endif /* GL_NV_texgen_reflection */
+
+
+
+/*
+ * 180. unknown
+ * 181. unknown
+ */
+
+
+
+/*
+ * 182. GL_SUN_convolution_border_modes
+ */
+#ifndef GL_SUN_convolution_border_modes
+#define GL_SUN_convolution_border_modes 1
+
+#define GL_WRAP_BORDER_SUN 0x81D4
+
+#endif /* GL_SUN_convolution_border_modes */
+
+
+
+/*
+ * 183. GLX_SUN_transparent_index
+ * 184. unknown
+ */
+
+
+
+/*
+ * 185. GL_EXT_texture_env_add
+ */
+#ifndef GL_EXT_texture_env_add
+#define GL_EXT_texture_env_add 1
+
+/* No new tokens or functions */
+
+#endif /* GL_EXT_texture_env_add */
+
+
+
+/*
+ * 186. GL_EXT_texture_lod_bias
+ */
+#ifndef GL_EXT_texture_lod_bias
+#define GL_EXT_texture_lod_bias 1
+
+#define GL_TEXTURE_FILTER_CONTROL_EXT 0x8500
+#define GL_TEXTURE_LOD_BIAS_EXT 0x8501
+
+#endif /* GL_EXT_texture_lod_bias */
+
+
+
+/*
+ * 187. GL_EXT_texture_filter_anisotropic
+ */
+#ifndef GL_EXT_texture_filter_anisotropic
+#define GL_EXT_texture_filter_anisotropic 1
+
+#define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE
+#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
+
+#endif /* GL_EXT_texture_filter_anisotropic */
+
+
+
+/*
+ * 188. GL_EXT_vertex_weighting
+ */
+#ifndef GL_EXT_vertex_weighting
+#define GL_EXT_vertex_weighting 1
+
+#define GL_VERTEX_WEIGHTING_EXT 0x8509
+#define GL_MODELVIEW0_EXT 0x1700
+#define GL_MODELVIEW1_EXT 0x850A
+#define GL_CURRENT_VERTEX_WEIGHT_EXT 0x850B
+#define GL_VERTEX_WEIGHT_ARRAY_EXT 0x850C
+#define GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT 0x850D
+#define GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT 0x850E
+#define GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT 0x850F
+#define GL_MODELVIEW0_STACK_DEPTH_EXT 0x0BA3
+#define GL_MODELVIEW1_STACK_DEPTH_EXT 0x8502
+#define GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT 0x8510
+
+GLAPI void APIENTRY glVertexWeightfEXT(GLfloat weight);
+GLAPI void APIENTRY glVertexWeightfvEXT(const GLfloat *weight);
+GLAPI void APIENTRY glVertexWeightPointerEXT(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
+
+typedef void (APIENTRY * PFNGLVERTEXWEIGHTFEXTPROC) (GLfloat weight);
+typedef void (APIENTRY * PFNGLVERTEXWEIGHTFVEXTPROC) (const GLfloat *weight);
+typedef void (APIENTRY * PFNGLVERTEXWEIGHTPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
+
+#endif /* GL_EXT_vertex_weighting */
+
+
+
+/*
+ * 189. GL_NV_light_max_exponent
+ */
+#ifndef GL_NV_light_max_exponent
+#define GL_NV_light_max_exponent 1
+
+#define GL_MAX_SHININESS_NV 0x8507
+#define GL_MAX_SPOT_EXPONENT_NV 0x8508
+
+#endif /* GL_NV_light_max_exponent */
+
+
+
+/*
+ * 190. GL_NV_vertex_array_range
+ */
+#ifndef GL_NV_vertex_array_range
+#define GL_NV_vertex_array_range 1
+
+#define GL_VERTEX_ARRAY_RANGE_NV 0x851D
+#define GL_VERTEX_ARRAY_RANGE_LENGTH_NV 0x851E
+#define GL_VERTEX_ARRAY_RANGE_VALID_NV 0x851F
+#define GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV 0x8520
+#define GL_VERTEX_ARRAY_RANGE_POINTER_NV 0x8521
+
+GLAPI void APIENTRY glFlushVertexArrayRangeNV(void);
+GLAPI void APIENTRY glVertexArrayRangeNV(GLsizei size, const GLvoid * pointer);
+
+typedef void (APIENTRY * PFNGLFLUSHVERTEXARRAYRANGENVPROC) (void);
+typedef void (APIENTRY * PFNGLVERTEXARRAYRANGENV) (GLsizei size, const GLvoid * pointer);
+
+#endif /* GL_NV_vertex_array_range */
+
+
+
+/*
+ * 191. GL_NV_register_combiners
+ */
+#ifndef GL_NV_register_combiners
+#define GL_NV_register_combiners 1
+
+#define GL_REGISTER_COMBINERS_NV 0x8522
+#define GL_COMBINER0_NV 0x8550
+#define GL_COMBINER1_NV 0x8551
+#define GL_COMBINER2_NV 0x8552
+#define GL_COMBINER3_NV 0x8553
+#define GL_COMBINER4_NV 0x8554
+#define GL_COMBINER5_NV 0x8555
+#define GL_COMBINER6_NV 0x8556
+#define GL_COMBINER7_NV 0x8557
+#define GL_VARIABLE_A_NV 0x8523
+#define GL_VARIABLE_B_NV 0x8524
+#define GL_VARIABLE_C_NV 0x8525
+#define GL_VARIABLE_D_NV 0x8526
+#define GL_VARIABLE_E_NV 0x8527
+#define GL_VARIABLE_F_NV 0x8528
+#define GL_VARIABLE_G_NV 0x8529
+#define GL_CONSTANT_COLOR0_NV 0x852A
+#define GL_CONSTANT_COLOR1_NV 0x852B
+#define GL_PRIMARY_COLOR_NV 0x852C
+#define GL_SECONDARY_COLOR_NV 0x852D
+#define GL_SPARE0_NV 0x852E
+#define GL_SPARE1_NV 0x852F
+#define GL_UNSIGNED_IDENTITY_NV 0x8536
+#define GL_UNSIGNED_INVERT_NV 0x8537
+#define GL_EXPAND_NORMAL_NV 0x8538
+#define GL_EXPAND_NEGATE_NV 0x8539
+#define GL_HALF_BIAS_NORMAL_NV 0x853A
+#define GL_HALF_BIAS_NEGATE_NV 0x853B
+#define GL_SIGNED_IDENTITY_NV 0x853C
+#define GL_SIGNED_NEGATE_NV 0x853D
+#define GL_E_TIMES_F_NV 0x8531
+#define GL_SPARE0_PLUS_SECONDARY_COLOR_NV 0x8532
+#define GL_SCALE_BY_TWO_NV 0x853E
+#define GL_SCALE_BY_FOUR_NV 0x853F
+#define GL_SCALE_BY_ONE_HALF_NV 0x8540
+#define GL_BIAS_BY_NEGATIVE_ONE_HALF_NV 0x8541
+#define GL_DISCARD_NV 0x8530
+#define GL_COMBINER_INPUT_NV 0x8542
+#define GL_COMBINER_MAPPING_NV 0x8543
+#define GL_COMBINER_COMPONENT_USAGE_NV 0x8544
+#define GL_COMBINER_AB_DOT_PRODUCT_NV 0x8545
+#define GL_COMBINER_CD_DOT_PRODUCT_NV 0x8546
+#define GL_COMBINER_MUX_SUM_NV 0x8547
+#define GL_COMBINER_SCALE_NV 0x8548
+#define GL_COMBINER_BIAS_NV 0x8549
+#define GL_COMBINER_AB_OUTPUT_NV 0x854A
+#define GL_COMBINER_CD_OUTPUT_NV 0x854B
+#define GL_COMBINER_SUM_OUTPUT_NV 0x854C
+#define GL_NUM_GENERAL_COMBINERS_NV 0x854E
+#define GL_COLOR_SUM_CLAMP_NV 0x854F
+#define GL_MAX_GENERAL_COMBINERS_NV 0x854D
+
+#ifdef VMS
+/*VMS only allows externals of maximal 31 characters! */
+#define glGetCombinerOutputParameterfvNV glGetCombinerOutputParameterfvN
+#define glGetCombinerOutputParameterivNV glGetCombinerOutputParameterivN
+#define glGetFinalCombinerInputParameterfvNV glGetFnlCmbinerInpParameterfvNV
+#define glGetFinalCombinerInputParameterivNV glGetFnlCmbinerInpParameterivNV
+#endif
+
+GLAPI void APIENTRY glCombinerParameterfvNV(GLenum pname, const GLfloat * params);
+GLAPI void APIENTRY glCombinerParameterfNV(GLenum pname, GLfloat param);
+GLAPI void APIENTRY glCombinerParameterivNV(GLenum pname, const GLint * params);
+GLAPI void APIENTRY glCombinerParameteriNV(GLenum pname, GLint param);
+GLAPI void APIENTRY glCombinerInputNV(GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
+GLAPI void APIENTRY glCombinerOutputNV(GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum);
+GLAPI void APIENTRY glFinalCombinerInputNV(GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
+GLAPI void APIENTRY glGetCombinerInputParameterfvNV(GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat * params);
+GLAPI void APIENTRY glGetCombinerInputParameterivNV(GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint * params);
+GLAPI void APIENTRY glGetCombinerOutputParameterfvNV(GLenum stage, GLenum portion, GLenum pname, GLfloat * params);
+GLAPI void APIENTRY glGetCombinerOutputParameterivNV(GLenum stage, GLenum portion, GLenum pname, GLint * params);
+GLAPI void APIENTRY glGetFinalCombinerInputParameterfvNV(GLenum variable, GLenum pname, GLfloat * params);
+GLAPI void APIENTRY glGetFinalCombinerInputParameterivNV(GLenum variable, GLenum pname, GLint * params);
+
+typedef void (APIENTRY * PFNGLVERTEXARRAYRANGENVPROC) (GLsizei size, const GLvoid * pointer);
+typedef void (APIENTRY * PFNGLCOMBINERPARAMETERFVNVPROC) (GLenum pname, const GLfloat * params);
+typedef void (APIENTRY * PFNGLCOMBINERPARAMETERFNVPROC) (GLenum pname, GLfloat param);
+typedef void (APIENTRY * PFNGLCOMBINERPARAMETERIVNVPROC) (GLenum pname, const GLint * params);
+typedef void (APIENTRY * PFNGLCOMBINERPARAMETERINVPROC) (GLenum pname, GLint param);
+typedef void (APIENTRY * PFNGLCOMBINERINPUTNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
+typedef void (APIENTRY * PFNGLCOMBINEROUTPUTNVPROC) (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum);
+typedef void (APIENTRY * PFNGLFINALCOMBINERINPUTNVPROC) (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
+typedef void (APIENTRY * PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat * params);
+typedef void (APIENTRY * PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint * params);
+typedef void (APIENTRY * PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLfloat * params);
+typedef void (APIENTRY * PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC) (GLenum stage, GLenum portion, GLenum pname, GLint * params);
+typedef void (APIENTRY * PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC) (GLenum variable, GLenum pname, GLfloat * params);
+typedef void (APIENTRY * PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC) (GLenum variable, GLenum pname, GLint * params);
+
+#endif /* GL_NV_register_combiners */
+
+
+
+/*
+ * 192. GL_NV_fog_distance
+ */
+#ifndef GL_NV_fog_distance
+#define GL_NV_fog_distance 1
+
+#define GL_FOG_DISTANCE_MODE_NV 0x855A
+#define GL_EYE_RADIAL_NV 0x855B
+#define GL_EYE_PLANE_ABSOLUTE_NV 0x855C
+
+#endif /* GL_NV_fog_distance*/
+
+
+
+/*
+ * 193. unknown
+ */
+
+
+
+/*
+ * 194. GL_NV_blend_square
+ */
+#ifndef GL_NV_blend_square
+#define GL_NV_blend_square 1
+
+/* no tokens or functions */
+
+#endif /* GL_NV_blend_square */
+
+
+
+/*
+ * 195. GL_NV_texture_env_combine4
+ */
+#ifndef GL_NV_texture_env_combine4
+#define GL_NV_texture_env_combine4 1
+
+#define GL_COMBINE4_NV 0x8503
+#define GL_SOURCE3_RGB_NV 0x8583
+#define GL_SOURCE3_ALPHA_NV 0x858B
+#define GL_OPERAND3_RGB_NV 0x8593
+#define GL_OPERAND3_ALPHA_NV 0x859B
+
+#endif /* GL_NV_texture_env_combine4 */
+
+
+
+/*
+ * 196. GL_MESA_resize_bufffers
+ */
+#ifndef GL_MESA_resize_buffers
+#define GL_MESA_resize_buffers 1
+
+GLAPI void APIENTRY glResizeBuffersMESA(void);
+
+typedef void (APIENTRY * PFNGLRESIZEBUFFERSMESAPROC) (void);
+
+#endif /* GL_MESA_resize_bufffers */
+
+
+
+/*
+ * 197. GL_MESA_window_pos
+ */
+#ifndef GL_MESA_window_pos
+#define GL_MESA_window_pos 1
+
+GLAPI void APIENTRY glWindowPos2iMESA(GLint x, GLint y);
+GLAPI void APIENTRY glWindowPos2sMESA(GLshort x, GLshort y);
+GLAPI void APIENTRY glWindowPos2fMESA(GLfloat x, GLfloat y);
+GLAPI void APIENTRY glWindowPos2dMESA(GLdouble x, GLdouble y);
+GLAPI void APIENTRY glWindowPos2ivMESA(const GLint *p);
+GLAPI void APIENTRY glWindowPos2svMESA(const GLshort *p);
+GLAPI void APIENTRY glWindowPos2fvMESA(const GLfloat *p);
+GLAPI void APIENTRY glWindowPos2dvMESA(const GLdouble *p);
+GLAPI void APIENTRY glWindowPos3iMESA(GLint x, GLint y, GLint z);
+GLAPI void APIENTRY glWindowPos3sMESA(GLshort x, GLshort y, GLshort z);
+GLAPI void APIENTRY glWindowPos3fMESA(GLfloat x, GLfloat y, GLfloat z);
+GLAPI void APIENTRY glWindowPos3dMESA(GLdouble x, GLdouble y, GLdouble z);
+GLAPI void APIENTRY glWindowPos3ivMESA(const GLint *p);
+GLAPI void APIENTRY glWindowPos3svMESA(const GLshort *p);
+GLAPI void APIENTRY glWindowPos3fvMESA(const GLfloat *p);
+GLAPI void APIENTRY glWindowPos3dvMESA(const GLdouble *p);
+GLAPI void APIENTRY glWindowPos4iMESA(GLint x, GLint y, GLint z, GLint w);
+GLAPI void APIENTRY glWindowPos4sMESA(GLshort x, GLshort y, GLshort z, GLshort w);
+GLAPI void APIENTRY glWindowPos4fMESA(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+GLAPI void APIENTRY glWindowPos4dMESA(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+GLAPI void APIENTRY glWindowPos4ivMESA(const GLint *p);
+GLAPI void APIENTRY glWindowPos4svMESA(const GLshort *p);
+GLAPI void APIENTRY glWindowPos4fvMESA(const GLfloat *p);
+GLAPI void APIENTRY glWindowPos4dvMESA(const GLdouble *p);
+
+typedef void (APIENTRY * PFNGLWINDOWPOS2IMESAPROC) (GLint x, GLint y);
+typedef void (APIENTRY * PFNGLWINDOWPOS2SMESAPROC) (GLshort x, GLshort y);
+typedef void (APIENTRY * PFNGLWINDOWPOS2FMESAPROC) (GLfloat x, GLfloat y);
+typedef void (APIENTRY * PFNGLWINDOWPOS2DMESAPROC) (GLdouble x, GLdouble y);
+typedef void (APIENTRY * PFNGLWINDOWPOS2IVMESAPROC) (const GLint *p);
+typedef void (APIENTRY * PFNGLWINDOWPOS2SVMESAPROC) (const GLshort *p);
+typedef void (APIENTRY * PFNGLWINDOWPOS2FVMESAPROC) (const GLfloat *p);
+typedef void (APIENTRY * PFNGLWINDOWPOS2DVMESAPROC) (const GLdouble *p);
+typedef void (APIENTRY * PFNGLWINDOWPOS3IMESAPROC) (GLint x, GLint y, GLint z);
+typedef void (APIENTRY * PFNGLWINDOWPOS3SMESAPROC) (GLshort x, GLshort y, GLshort z);
+typedef void (APIENTRY * PFNGLWINDOWPOS3FMESAPROC) (GLfloat x, GLfloat y, GLfloat z);
+typedef void (APIENTRY * PFNGLWINDOWPOS3DMESAPROC) (GLdouble x, GLdouble y, GLdouble z);
+typedef void (APIENTRY * PFNGLWINDOWPOS3IVMESAPROC) (const GLint *p);
+typedef void (APIENTRY * PFNGLWINDOWPOS3SVMESAPROC) (const GLshort *p);
+typedef void (APIENTRY * PFNGLWINDOWPOS3FVMESAPROC) (const GLfloat *p);
+typedef void (APIENTRY * PFNGLWINDOWPOS3DVMESAPROC) (const GLdouble *p);
+typedef void (APIENTRY * PFNGLWINDOWPOS4SMESAPROC) (GLshort x, GLshort y, GLshort z, GLshort w);
+typedef void (APIENTRY * PFNGLWINDOWPOS4FMESAPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+typedef void (APIENTRY * PFNGLWINDOWPOS4DMESAPROC) (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+typedef void (APIENTRY * PFNGLWINDOWPOS4IVMESAPROC) (const GLint *p);
+typedef void (APIENTRY * PFNGLWINDOWPOS4SVMESAPROC) (const GLshort *p);
+typedef void (APIENTRY * PFNGLWINDOWPOS4FVMESAPROC) (const GLfloat *p);
+typedef void (APIENTRY * PFNGLWINDOWPOS4DVMESAPROC) (const GLdouble *p);
+
+#endif /* GL_MESA_window_pos */
+
+
+
+/*
+ * ARB 1. GL_ARB_multitexture
+ */
+#ifndef GL_ARB_multitexture
+#define GL_ARB_multitexture 1
+
+#define GL_TEXTURE0_ARB 0x84C0
+#define GL_TEXTURE1_ARB 0x84C1
+#define GL_TEXTURE2_ARB 0x84C2
+#define GL_TEXTURE3_ARB 0x84C3
+#define GL_TEXTURE4_ARB 0x84C4
+#define GL_TEXTURE5_ARB 0x84C5
+#define GL_TEXTURE6_ARB 0x84C6
+#define GL_TEXTURE7_ARB 0x84C7
+#define GL_TEXTURE8_ARB 0x84C8
+#define GL_TEXTURE9_ARB 0x84C9
+#define GL_TEXTURE10_ARB 0x84CA
+#define GL_TEXTURE11_ARB 0x84CB
+#define GL_TEXTURE12_ARB 0x84CC
+#define GL_TEXTURE13_ARB 0x84CD
+#define GL_TEXTURE14_ARB 0x84CE
+#define GL_TEXTURE15_ARB 0x84CF
+#define GL_TEXTURE16_ARB 0x84D0
+#define GL_TEXTURE17_ARB 0x84D1
+#define GL_TEXTURE18_ARB 0x84D2
+#define GL_TEXTURE19_ARB 0x84D3
+#define GL_TEXTURE20_ARB 0x84D4
+#define GL_TEXTURE21_ARB 0x84D5
+#define GL_TEXTURE22_ARB 0x84D6
+#define GL_TEXTURE23_ARB 0x84D7
+#define GL_TEXTURE24_ARB 0x84D8
+#define GL_TEXTURE25_ARB 0x84D9
+#define GL_TEXTURE26_ARB 0x84DA
+#define GL_TEXTURE27_ARB 0x84DB
+#define GL_TEXTURE28_ARB 0x84DC
+#define GL_TEXTURE29_ARB 0x84DD
+#define GL_TEXTURE30_ARB 0x84DE
+#define GL_TEXTURE31_ARB 0x84DF
+#define GL_ACTIVE_TEXTURE_ARB 0x84E0
+#define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1
+#define GL_MAX_TEXTURE_UNITS_ARB 0x84E2
+
+GLAPI void APIENTRY glActiveTextureARB(GLenum texture);
+GLAPI void APIENTRY glClientActiveTextureARB(GLenum texture);
+GLAPI void APIENTRY glMultiTexCoord1dARB(GLenum target, GLdouble s);
+GLAPI void APIENTRY glMultiTexCoord1dvARB(GLenum target, const GLdouble *v);
+GLAPI void APIENTRY glMultiTexCoord1fARB(GLenum target, GLfloat s);
+GLAPI void APIENTRY glMultiTexCoord1fvARB(GLenum target, const GLfloat *v);
+GLAPI void APIENTRY glMultiTexCoord1iARB(GLenum target, GLint s);
+GLAPI void APIENTRY glMultiTexCoord1ivARB(GLenum target, const GLint *v);
+GLAPI void APIENTRY glMultiTexCoord1sARB(GLenum target, GLshort s);
+GLAPI void APIENTRY glMultiTexCoord1svARB(GLenum target, const GLshort *v);
+GLAPI void APIENTRY glMultiTexCoord2dARB(GLenum target, GLdouble s, GLdouble t);
+GLAPI void APIENTRY glMultiTexCoord2dvARB(GLenum target, const GLdouble *v);
+GLAPI void APIENTRY glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t);
+GLAPI void APIENTRY glMultiTexCoord2fvARB(GLenum target, const GLfloat *v);
+GLAPI void APIENTRY glMultiTexCoord2iARB(GLenum target, GLint s, GLint t);
+GLAPI void APIENTRY glMultiTexCoord2ivARB(GLenum target, const GLint *v);
+GLAPI void APIENTRY glMultiTexCoord2sARB(GLenum target, GLshort s, GLshort t);
+GLAPI void APIENTRY glMultiTexCoord2svARB(GLenum target, const GLshort *v);
+GLAPI void APIENTRY glMultiTexCoord3dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r);
+GLAPI void APIENTRY glMultiTexCoord3dvARB(GLenum target, const GLdouble *v);
+GLAPI void APIENTRY glMultiTexCoord3fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r);
+GLAPI void APIENTRY glMultiTexCoord3fvARB(GLenum target, const GLfloat *v);
+GLAPI void APIENTRY glMultiTexCoord3iARB(GLenum target, GLint s, GLint t, GLint r);
+GLAPI void APIENTRY glMultiTexCoord3ivARB(GLenum target, const GLint *v);
+GLAPI void APIENTRY glMultiTexCoord3sARB(GLenum target, GLshort s, GLshort t, GLshort r);
+GLAPI void APIENTRY glMultiTexCoord3svARB(GLenum target, const GLshort *v);
+GLAPI void APIENTRY glMultiTexCoord4dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+GLAPI void APIENTRY glMultiTexCoord4dvARB(GLenum target, const GLdouble *v);
+GLAPI void APIENTRY glMultiTexCoord4fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+GLAPI void APIENTRY glMultiTexCoord4fvARB(GLenum target, const GLfloat *v);
+GLAPI void APIENTRY glMultiTexCoord4iARB(GLenum target, GLint s, GLint t, GLint r, GLint q);
+GLAPI void APIENTRY glMultiTexCoord4ivARB(GLenum target, const GLint *v);
+GLAPI void APIENTRY glMultiTexCoord4sARB(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+GLAPI void APIENTRY glMultiTexCoord4svARB(GLenum target, const GLshort *v);
+
+typedef void (APIENTRY * PFNGLACTIVETEXTUREARBPROC) (GLenum texture);
+typedef void (APIENTRY * PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
+typedef void (APIENTRY * PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v);
+
+#endif /* GL_ARB_multitexture */
+
+
+
+/*
+ * ARB 2. GLX_ARB_get_proc_address
+ */
+
+
+/*
+ * ARB 3. GL_ARB_tranpose_matrix
+ */
+#ifndef GL_ARB_transpose_matrix
+#define GL_ARB_transpose_matrix 1
+
+#define GL_TRANSPOSE_MODELVIEW_MATRIX_ARB 0x84E3
+#define GL_TRANSPOSE_PROJECTION_MATRIX_ARB 0x84E4
+#define GL_TRANSPOSE_TEXTURE_MATRIX_ARB 0x84E5
+#define GL_TRANSPOSE_COLOR_MATRIX_ARB 0x84E6
+
+GLAPI void APIENTRY glLoadTransposeMatrixdARB(const GLdouble m[16]);
+GLAPI void APIENTRY glLoadTransposeMatrixfARB(const GLfloat m[16]);
+GLAPI void APIENTRY glMultTransposeMatrixdARB(const GLdouble m[16]);
+GLAPI void APIENTRY glMultTransposeMatrixfARB(const GLfloat m[16]);
+
+typedef void (APIENTRY * PFNGLLOADTRANSPOSEMATRIXDARBPROC) ( const GLdouble m[16] );
+typedef void (APIENTRY * PFNGLLOADTRANSPOSEMATRIXFARBPROC) ( const GLfloat m[16] );
+typedef void (APIENTRY * PFNGLMULTTRANSPOSEMATRIXDARBPROC) ( const GLdouble m[16] );
+typedef void (APIENTRY * PFNGLMULTTRANSPOSEMATRIXFARBPROC) ( const GLfloat m[16] );
+
+#endif /* GL_ARB_tranpose_matrix */
+
+
+
+/*
+ * ARB 4. WGL_ARB_buffer_region
+ */
+
+
+
+/*
+ * ARB 5. GL_ARB_multisample
+ */
+#ifndef GL_ARB_multisample
+#define GL_ARB_multisample 1
+
+#define GL_MULTISAMPLE_ARBfunda 0x809D
+#define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB 0x809E
+#define GL_SAMPLE_ALPHA_TO_ONE_ARB 0x809F
+#define GL_SAMPLE_COVERAGE_ARB 0x80A0
+#define GL_MULTISAMPLE_BIT_ARB 0x20000000
+#define GL_1PASS_ARB 0x80A1
+#define GL_2PASS_0_ARB 0x80A2
+#define GL_2PASS_1_ARB 0x80A3
+#define GL_4PASS_0_ARB 0x80A4
+#define GL_4PASS_1_ARB 0x80A5
+#define GL_4PASS_2_ARB 0x80A6
+#define GL_4PASS_3_ARB 0x80A7
+#define GL_SAMPLE_BUFFERS_ARB 0x80A8
+#define GL_SAMPLES_ARB 0x80A9
+#define GL_SAMPLE_MAX_PASSES_ARB 0x84E7
+#define GL_SAMPLE_PASS_ARB 0x84E8
+#define GL_SAMPLE_COVERAGE_VALUE_ARB 0x80AA
+#define GL_SAMPLE_COVERAGE_INVERT_ARB 0x80AB
+/* Note: there are more tokens for GLX and WGL */
+
+GLAPI void APIENTRY glSamplePassARB(GLenum pass);
+GLAPI void APIENTRY glSampleCoverageARB(GLclampf value, GLboolean invert);
+
+typedef void (APIENTRY * PFNGLSAMPLEPASSARBPROC) (GLenum pass);
+typedef void (APIENTRY * PFNGLSAMPLECOVERAGEARBPROC) (GLclampf value, GLboolean invert);
+
+#endif /* GL_ARB_multisample */
+
+
+
+/*
+ * ARB 6. GL_ARB_texture_env_add
+ */
+#ifndef GL_ARB_texture_env_add
+#define GL_ARB_texture_env_add 1
+
+/* No new tokens or functions */
+
+#endif /* GL_ARB_texture_env_add */
+
+
+
+/*
+ * ARB ?. GL_ARB_texture_compression
+ */
+#ifndef GL_ARB_texture_compression
+#define GL_ARB_texture_compression 1
+
+#define GL_COMPRESSED_ALPHA_ARB 0x84E9
+#define GL_COMPRESSED_LUMINANCE_ARB 0x84EA
+#define GL_COMPRESSED_LUMINANCE_ALPHA_ARB 0x84EB
+#define GL_COMPRESSED_INTENSITY_ARB 0x84EC
+#define GL_COMPRESSED_RGB_ARB 0x84ED
+#define GL_COMPRESSED_RGBA_ARB 0x84EE
+#define GL_TEXTURE_COMPRESSION_HINT_ARB 0x84EF
+#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB 0x86A0
+#define GL_TEXTURE_COMPRESSED_ARB 0x86A1
+#define GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A2
+#define GL_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A3
+
+GLAPI void APIENTRY glCompressedTexImage3DARB(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, GLvoid *data);
+GLAPI void APIENTRY glCompressedTexImage2DARB(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, GLvoid *data);
+GLAPI void APIENTRY glCompressedTexImage1DARB(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLsizei imageSize, GLvoid *data);
+GLAPI void APIENTRY glCompressedTexSubImage3DARB(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, GLvoid *data);
+GLAPI void APIENTRY glCompressedTexSubImage2DARB(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, GLvoid *data);
+GLAPI void APIENTRY glCompressedTexSubImage1DARB(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, GLvoid *data);
+GLAPI void APIENTRY glGetCompressedTexImageARB(GLenum target, GLint lod, GLvoid *img);
+
+typedef void (APIENTRY * PFNGLCOMPRESSEDTEXIMAGE3DARBPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, GLvoid *data);
+typedef void (APIENTRY * PFNGLCOMPRESSEDTEXIMAGE2DARBPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, GLvoid *data);
+typedef void (APIENTRY * PFNGLCOMPRESSEDTEXIMAGE1DARBPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLsizei imageSize, GLvoid *data);
+typedef void (APIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, GLvoid *data);
+typedef void (APIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, GLvoid *data);
+typedef void (APIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, GLvoid *data);
+typedef void (APIENTRY * PFNGLGETCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint lod, GLvoid *img);
+
+#endif /* GL_ARB_texture_compression */
+
+
+
+/*
+ * ?. GL_EXT_texture_cube_map
+ */
+#ifndef GL_EXT_texture_cube_map
+#define GL_EXT_texture_cube_map 1
+
+#define GL_NORMAL_MAP_EXT 0x8511
+#define GL_REFLECTION_MAP_EXT 0x8512
+#define GL_TEXTURE_CUBE_MAP_EXT 0x8513
+#define GL_TEXTURE_BINDING_CUBE_MAP_EXT 0x8514
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT 0x8515
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT 0x8516
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT 0x8517
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT 0x8518
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT 0x8519
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT 0x851A
+#define GL_PROXY_TEXTURE_CUBE_MAP_EXT 0x851B
+#define GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT 0x851C
+
+#endif /* GL_EXT_texture_cube_map */
+
+
+
+/*
+ * ? GL_NV_texgen_emboss
+ */
+
+#ifndef GL_NV_texgen_emboss
+#define GL_NV_texgen_emboss 1
+
+#define GL_EMBOSS_MAP_NV 0x855F
+#define GL_EMBOSS_LIGHT_NV 0x855D
+#define GL_EMBOSS_CONSTANT_NV 0x855E
+
+#endif /* GL_NV_texgen_emboss */
+
+
+
+/*
+ * ??. GL_WIN_swap_hint
+ */
+#ifndef GL_WIN_swap_hint
+#define GL_WIN_swap_hint 1
+
+GLAPI void APIENTRY glAddSwapHintRectWIN(GLint x, GLint y, GLsizei width, GLsizei height);
+
+typedef void (APIENTRY * PFNGLADDSWAPHINTRECTWINPROC) (GLint x, GLint y, GLsizei width, GLsizei height);
+
+#endif /* GL_WIN_swap_hint */
+
+
+
+/*
+ * ?. GL_IBM_cull_vertex
+ */
+#ifndef GL_IBM_cull_vertex
+#define GL_IBM_cull_vertex 1
+
+#define GL_CULL_VERTEX_IBM 0x1928A
+
+#endif /* GL_IBM_cull_vertex */
+
+
+
+/*
+ * ?. GL_IBM_static_data
+ */
+#ifndef GL_IBM_static_data
+#define GL_IBM_static_data 1
+
+#define GL_ALL_STATIC_DATA_IBM 0x19294
+#define GL_STATIC_VERTEX_ARRAY_IBM 0x19295
+
+GLAPI void APIENTRY glFlushStaticDataIBM(GLenum target);
+
+typedef void (APIENTRY * PFNGLFLUSHSTATICDATAIBM) (GLenum target);
+
+#endif /* GL_IBM_static_data */
+
+
+
+/*
+ * ?. GL_IBM_texture_mirrored_repeat
+ */
+#ifndef GL_IBM_texture_mirrored_repeat
+#define GL_IBM_texture_mirrored_repeat 1
+
+#define GL_MIRRORED_REPEAT_IBM 0x8370
+
+#endif /* GL_IBM_texture_mirrored_repeat */
+
+
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif /* __glext_h_ */
diff --git a/C2J/mesa33-header/glu.h b/C2J/mesa33-header/glu.h
new file mode 100644
index 0000000..13be9aa
--- /dev/null
+++ b/C2J/mesa33-header/glu.h
@@ -0,0 +1,513 @@
+/* $Id$ */
+
+/*
+ * Mesa 3-D graphics library
+ * Version: 3.3
+ *
+ * Copyright (C) 1995-1999 Brian Paul
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+
+#ifndef __glu_h__
+#define __glu_h__
+
+#define GLU_VERSION_1_1 1
+#define GLU_VERSION_1_2 1
+
+
+#define GLU_TRUE 1
+#define GLU_FALSE 0
+
+
+/* Normal vectors */
+#define GLU_SMOOTH 100000
+#define GLU_FLAT 100001
+#define GLU_NONE 100002
+
+/* Quadric draw styles */
+#define GLU_POINT 100010
+#define GLU_LINE 100011
+#define GLU_FILL 100012
+#define GLU_SILHOUETTE 100013
+
+/* Quadric orientation */
+#define GLU_OUTSIDE 100020
+#define GLU_INSIDE 100021
+
+/* Tessellator */
+#define GLU_TESS_BEGIN 100100
+#define GLU_TESS_VERTEX 100101
+#define GLU_TESS_END 100102
+#define GLU_TESS_ERROR 100103
+#define GLU_TESS_EDGE_FLAG 100104
+#define GLU_TESS_COMBINE 100105
+
+#define GLU_TESS_BEGIN_DATA 100106
+#define GLU_TESS_VERTEX_DATA 100107
+#define GLU_TESS_END_DATA 100108
+#define GLU_TESS_ERROR_DATA 100109
+#define GLU_TESS_EDGE_FLAG_DATA 100110
+#define GLU_TESS_COMBINE_DATA 100111
+
+/* Winding rules */
+#define GLU_TESS_WINDING_ODD 100130
+#define GLU_TESS_WINDING_NONZERO 100131
+#define GLU_TESS_WINDING_POSITIVE 100132
+#define GLU_TESS_WINDING_NEGATIVE 100133
+#define GLU_TESS_WINDING_ABS_GEQ_TWO 100134
+
+/* Tessellation properties */
+#define GLU_TESS_WINDING_RULE 100140
+#define GLU_TESS_BOUNDARY_ONLY 100141
+#define GLU_TESS_TOLERANCE 100142
+
+/* Tessellation errors */
+#define GLU_TESS_ERROR1 100151 /* Missing gluBeginPolygon */
+#define GLU_TESS_ERROR2 100152 /* Missing gluBeginContour */
+#define GLU_TESS_ERROR3 100153 /* Missing gluEndPolygon */
+#define GLU_TESS_ERROR4 100154 /* Missing gluEndContour */
+#define GLU_TESS_ERROR5 100155 /* */
+#define GLU_TESS_ERROR6 100156 /* */
+#define GLU_TESS_ERROR7 100157 /* */
+#define GLU_TESS_ERROR8 100158 /* */
+
+/* NURBS */
+#define GLU_AUTO_LOAD_MATRIX 100200
+#define GLU_CULLING 100201
+#define GLU_PARAMETRIC_TOLERANCE 100202
+#define GLU_SAMPLING_TOLERANCE 100203
+#define GLU_DISPLAY_MODE 100204
+#define GLU_SAMPLING_METHOD 100205
+#define GLU_U_STEP 100206
+#define GLU_V_STEP 100207
+
+#define GLU_PATH_LENGTH 100215
+#define GLU_PARAMETRIC_ERROR 100216
+#define GLU_DOMAIN_DISTANCE 100217
+
+#define GLU_MAP1_TRIM_2 100210
+#define GLU_MAP1_TRIM_3 100211
+
+#define GLU_OUTLINE_POLYGON 100240
+#define GLU_OUTLINE_PATCH 100241
+
+#define GLU_NURBS_ERROR1 100251 /* spline order un-supported */
+#define GLU_NURBS_ERROR2 100252 /* too few knots */
+#define GLU_NURBS_ERROR3 100253 /* valid knot range is empty */
+#define GLU_NURBS_ERROR4 100254 /* decreasing knot sequence */
+#define GLU_NURBS_ERROR5 100255 /* knot multiplicity > spline order */
+#define GLU_NURBS_ERROR6 100256 /* endcurve() must follow bgncurve() */
+#define GLU_NURBS_ERROR7 100257 /* bgncurve() must precede endcurve() */
+#define GLU_NURBS_ERROR8 100258 /* ctrlarray or knot vector is NULL */
+#define GLU_NURBS_ERROR9 100259 /* can't draw pwlcurves */
+#define GLU_NURBS_ERROR10 100260 /* missing gluNurbsCurve() */
+#define GLU_NURBS_ERROR11 100261 /* missing gluNurbsSurface() */
+#define GLU_NURBS_ERROR12 100262 /* endtrim() must precede endsurface() */
+#define GLU_NURBS_ERROR13 100263 /* bgnsurface() must precede endsurface() */
+#define GLU_NURBS_ERROR14 100264 /* curve of improper type passed as trim curve */
+#define GLU_NURBS_ERROR15 100265 /* bgnsurface() must precede bgntrim() */
+#define GLU_NURBS_ERROR16 100266 /* endtrim() must follow bgntrim() */
+#define GLU_NURBS_ERROR17 100267 /* bgntrim() must precede endtrim()*/
+#define GLU_NURBS_ERROR18 100268 /* invalid or missing trim curve*/
+#define GLU_NURBS_ERROR19 100269 /* bgntrim() must precede pwlcurve() */
+#define GLU_NURBS_ERROR20 100270 /* pwlcurve referenced twice*/
+#define GLU_NURBS_ERROR21 100271 /* pwlcurve and nurbscurve mixed */
+#define GLU_NURBS_ERROR22 100272 /* improper usage of trim data type */
+#define GLU_NURBS_ERROR23 100273 /* nurbscurve referenced twice */
+#define GLU_NURBS_ERROR24 100274 /* nurbscurve and pwlcurve mixed */
+#define GLU_NURBS_ERROR25 100275 /* nurbssurface referenced twice */
+#define GLU_NURBS_ERROR26 100276 /* invalid property */
+#define GLU_NURBS_ERROR27 100277 /* endsurface() must follow bgnsurface() */
+#define GLU_NURBS_ERROR28 100278 /* intersecting or misoriented trim curves */
+#define GLU_NURBS_ERROR29 100279 /* intersecting trim curves */
+#define GLU_NURBS_ERROR30 100280 /* UNUSED */
+#define GLU_NURBS_ERROR31 100281 /* unconnected trim curves */
+#define GLU_NURBS_ERROR32 100282 /* unknown knot error */
+#define GLU_NURBS_ERROR33 100283 /* negative vertex count encountered */
+#define GLU_NURBS_ERROR34 100284 /* negative byte-stride */
+#define GLU_NURBS_ERROR35 100285 /* unknown type descriptor */
+#define GLU_NURBS_ERROR36 100286 /* null control point reference */
+#define GLU_NURBS_ERROR37 100287 /* duplicate point on pwlcurve */
+
+/* GLU 1.3 and later */
+#define GLU_NURBS_MODE ?
+
+
+/* Errors */
+#define GLU_INVALID_ENUM 100900
+#define GLU_INVALID_VALUE 100901
+#define GLU_OUT_OF_MEMORY 100902
+#define GLU_INCOMPATIBLE_GL_VERSION 100903
+
+/* GLU 1.1 and later */
+#define GLU_VERSION 100800
+#define GLU_EXTENSIONS 100801
+
+
+
+/*** GLU 1.0 tessellation - obsolete! ***/
+
+/* Contour types */
+#define GLU_CW 100120
+#define GLU_CCW 100121
+#define GLU_INTERIOR 100122
+#define GLU_EXTERIOR 100123
+#define GLU_UNKNOWN 100124
+
+/* Tessellator */
+#define GLU_BEGIN GLU_TESS_BEGIN
+#define GLU_VERTEX GLU_TESS_VERTEX
+#define GLU_END GLU_TESS_END
+#define GLU_ERROR GLU_TESS_ERROR
+#define GLU_EDGE_FLAG GLU_TESS_EDGE_FLAG
+
+
+/*
+ * These are the GLU 1.1 typedefs. GLU 1.3 has different ones!
+ */
+#if defined(__BEOS__)
+ /* The BeOS does something funky and makes these typedefs in one
+ * of its system headers.
+ */
+#else
+ typedef struct GLUquadric GLUquadricObj;
+ typedef struct GLUnurbs GLUnurbsObj;
+
+ /* FIXME: We need to implement the other 1.3 typedefs - GH */
+ typedef struct GLUtesselator GLUtesselator;
+ typedef GLUtesselator GLUtriangulatorObj;
+#endif
+
+
+
+#if defined(__BEOS__) || defined(__QUICKDRAW__)
+#pragma export on
+#endif
+
+
+/*
+ *
+ * Miscellaneous functions
+ *
+ */
+
+GLUAPI void GLAPIENTRY gluLookAt( GLdouble eyex, GLdouble eyey, GLdouble eyez,
+ GLdouble centerx, GLdouble centery,
+ GLdouble centerz,
+ GLdouble upx, GLdouble upy, GLdouble upz );
+
+
+GLUAPI void GLAPIENTRY gluOrtho2D( GLdouble left, GLdouble right,
+ GLdouble bottom, GLdouble top );
+
+
+GLUAPI void GLAPIENTRY gluPerspective( GLdouble fovy, GLdouble aspect,
+ GLdouble zNear, GLdouble zFar );
+
+
+GLUAPI void GLAPIENTRY gluPickMatrix( GLdouble x, GLdouble y,
+ GLdouble width, GLdouble height,
+ const GLint viewport[4] );
+
+GLUAPI GLint GLAPIENTRY gluProject( GLdouble objx, GLdouble objy, GLdouble objz,
+ const GLdouble modelMatrix[16],
+ const GLdouble projMatrix[16],
+ const GLint viewport[4],
+ GLdouble *winx, GLdouble *winy,
+ GLdouble *winz );
+
+GLUAPI GLint GLAPIENTRY gluUnProject( GLdouble winx, GLdouble winy,
+ GLdouble winz,
+ const GLdouble modelMatrix[16],
+ const GLdouble projMatrix[16],
+ const GLint viewport[4],
+ GLdouble *objx, GLdouble *objy,
+ GLdouble *objz );
+
+/* JAU: manual
+GLUAPI const GLubyte* GLAPIENTRY gluErrorString( GLenum errorCode );
+*/
+
+
+
+/*
+ *
+ * Mipmapping and image scaling
+ *
+ */
+
+/* JAU: manually changed HERE
+GLUAPI GLint GLAPIENTRY gluScaleImage( GLenum format,
+ GLint widthin, GLint heightin,
+ GLenum typein, const void *datain,
+ GLint widthout, GLint heightout,
+ GLenum typeout, void *dataout );
+*/
+GLUAPI GLint GLAPIENTRY gluScaleImage( GLenum format,
+ GLsizei widthin, GLsizei heightin,
+ GLenum typein, const char *datain,
+ GLsizei widthout, GLsizei heightout,
+ GLenum typeout, char *dataout );
+
+
+GLUAPI GLint GLAPIENTRY gluBuild1DMipmaps( GLenum target, GLint components,
+ GLint width, GLenum format,
+ GLenum type, const void *data );
+
+GLUAPI GLint GLAPIENTRY gluBuild2DMipmaps( GLenum target, GLint components,
+ GLint width, GLint height,
+ GLenum format,
+ GLenum type, const void *data );
+
+
+
+/*
+ *
+ * Quadrics
+ *
+ */
+
+GLUAPI GLUquadricObj* GLAPIENTRY gluNewQuadric( void );
+
+/* JAU: manual
+GLUAPI void GLAPIENTRY gluDeleteQuadric( GLUquadricObj *state );
+*/
+
+GLUAPI void GLAPIENTRY gluQuadricDrawStyle( GLUquadricObj *quadObject,
+ GLenum drawStyle );
+
+GLUAPI void GLAPIENTRY gluQuadricOrientation( GLUquadricObj *quadObject,
+ GLenum orientation );
+
+GLUAPI void GLAPIENTRY gluQuadricNormals( GLUquadricObj *quadObject,
+ GLenum normals );
+
+GLUAPI void GLAPIENTRY gluQuadricTexture( GLUquadricObj *quadObject,
+ GLboolean textureCoords );
+
+/* JAU: manual
+GLUAPI void GLAPIENTRY gluQuadricCallback( GLUquadricObj *qobj,
+ GLenum which,
+ void (GLCALLBACK *fn)() );
+*/
+
+GLUAPI void GLAPIENTRY gluCylinder( GLUquadricObj *qobj,
+ GLdouble baseRadius,
+ GLdouble topRadius,
+ GLdouble height,
+ GLint slices, GLint stacks );
+
+GLUAPI void GLAPIENTRY gluSphere( GLUquadricObj *qobj,
+ GLdouble radius, GLint slices,
+ GLint stacks );
+
+GLUAPI void GLAPIENTRY gluDisk( GLUquadricObj *qobj,
+ GLdouble innerRadius, GLdouble outerRadius,
+ GLint slices, GLint loops );
+
+GLUAPI void GLAPIENTRY gluPartialDisk( GLUquadricObj *qobj, GLdouble innerRadius,
+ GLdouble outerRadius, GLint slices,
+ GLint loops, GLdouble startAngle,
+ GLdouble sweepAngle );
+
+
+
+/*
+ *
+ * Nurbs
+ *
+ */
+
+GLUAPI GLUnurbsObj* GLAPIENTRY gluNewNurbsRenderer( void );
+
+/* JAU: manual
+GLUAPI void GLAPIENTRY gluDeleteNurbsRenderer( GLUnurbsObj *nobj );
+*/
+
+GLUAPI void GLAPIENTRY gluLoadSamplingMatrices( GLUnurbsObj *nobj,
+ const GLfloat modelMatrix[16],
+ const GLfloat projMatrix[16],
+ const GLint viewport[4] );
+
+GLUAPI void GLAPIENTRY gluNurbsProperty( GLUnurbsObj *nobj, GLenum property,
+ GLfloat value );
+
+GLUAPI void GLAPIENTRY gluGetNurbsProperty( GLUnurbsObj *nobj, GLenum property,
+ GLfloat *value );
+
+GLUAPI void GLAPIENTRY gluBeginCurve( GLUnurbsObj *nobj );
+
+GLUAPI void GLAPIENTRY gluEndCurve( GLUnurbsObj * nobj );
+
+GLUAPI void GLAPIENTRY gluNurbsCurve( GLUnurbsObj *nobj, GLint nknots,
+ GLfloat *knot, GLint stride,
+ GLfloat *ctlarray, GLint order,
+ GLenum type );
+
+GLUAPI void GLAPIENTRY gluBeginSurface( GLUnurbsObj *nobj );
+
+GLUAPI void GLAPIENTRY gluEndSurface( GLUnurbsObj * nobj );
+
+GLUAPI void GLAPIENTRY gluNurbsSurface( GLUnurbsObj *nobj,
+ GLint sknot_count, GLfloat *sknot,
+ GLint tknot_count, GLfloat *tknot,
+ GLint s_stride, GLint t_stride,
+ GLfloat *ctlarray,
+ GLint sorder, GLint torder,
+ GLenum type );
+
+GLUAPI void GLAPIENTRY gluBeginTrim( GLUnurbsObj *nobj );
+
+GLUAPI void GLAPIENTRY gluEndTrim( GLUnurbsObj *nobj );
+
+GLUAPI void GLAPIENTRY gluPwlCurve( GLUnurbsObj *nobj, GLint count,
+ GLfloat *array, GLint stride,
+ GLenum type );
+
+/* JAU: manual
+GLUAPI void GLAPIENTRY gluNurbsCallback( GLUnurbsObj *nobj, GLenum which,
+ void (GLCALLBACK *fn)() );
+*/
+
+
+
+/*
+ *
+ * Polygon tessellation
+ *
+ */
+
+GLUAPI GLUtesselator* GLAPIENTRY gluNewTess( void );
+
+/* JAU: manual
+GLUAPI void GLAPIENTRY gluDeleteTess( GLUtesselator *tobj );
+*/
+
+GLUAPI void GLAPIENTRY gluTessBeginPolygon( GLUtesselator *tobj,
+ void *polygon_data );
+
+GLUAPI void GLAPIENTRY gluTessBeginContour( GLUtesselator *tobj );
+
+GLUAPI void GLAPIENTRY gluTessVertex( GLUtesselator *tobj, GLdouble coords[3],
+ void *vertex_data );
+
+GLUAPI void GLAPIENTRY gluTessEndContour( GLUtesselator *tobj );
+
+GLUAPI void GLAPIENTRY gluTessEndPolygon( GLUtesselator *tobj );
+
+GLUAPI void GLAPIENTRY gluTessProperty( GLUtesselator *tobj, GLenum which,
+ GLdouble value );
+
+GLUAPI void GLAPIENTRY gluTessNormal( GLUtesselator *tobj, GLdouble x,
+ GLdouble y, GLdouble z );
+
+/* JAU: manual
+GLUAPI void GLAPIENTRY gluTessCallback( GLUtesselator *tobj, GLenum which,
+ void (GLCALLBACK *fn)() );
+*/
+
+GLUAPI void GLAPIENTRY gluGetTessProperty( GLUtesselator *tobj, GLenum which,
+ GLdouble *value );
+
+/*
+ *
+ * Obsolete 1.0 tessellation functions
+ *
+ */
+
+GLUAPI void GLAPIENTRY gluBeginPolygon( GLUtesselator *tobj );
+
+GLUAPI void GLAPIENTRY gluNextContour( GLUtesselator *tobj, GLenum type );
+
+GLUAPI void GLAPIENTRY gluEndPolygon( GLUtesselator *tobj );
+
+
+
+/*
+ *
+ * New functions in GLU 1.1
+ *
+ */
+
+/* JAU - manual
+GLUAPI const GLubyte* GLAPIENTRY gluGetString( GLenum name );
+*/
+
+
+
+/*
+ *
+ * GLU 1.3 functions
+ *
+ */
+
+/* JAU TEST
+
+GLUAPI GLboolean GLAPIENTRY
+gluCheckExtension(const char *extName, const GLubyte *extString);
+
+
+GLUAPI GLint GLAPIENTRY
+gluBuild3DMipmaps( GLenum target, GLint internalFormat, GLsizei width,
+ GLsizei height, GLsizei depth, GLenum format,
+ GLenum type, const void *data );
+
+GLUAPI GLint GLAPIENTRY
+gluBuild1DMipmapLevels( GLenum target, GLint internalFormat, GLsizei width,
+ GLenum format, GLenum type, GLint level, GLint base,
+ GLint max, const void *data );
+
+GLUAPI GLint GLAPIENTRY
+gluBuild2DMipmapLevels( GLenum target, GLint internalFormat, GLsizei width,
+ GLsizei height, GLenum format, GLenum type,
+ GLint level, GLint base, GLint max,
+ const void *data );
+
+GLUAPI GLint GLAPIENTRY
+gluBuild3DMipmapLevels( GLenum target, GLint internalFormat, GLsizei width,
+ GLsizei height, GLsizei depth, GLenum format,
+ GLenum type, GLint level, GLint base, GLint max,
+ const void *data );
+
+GLUAPI GLint GLAPIENTRY
+gluUnProject4( GLdouble winx, GLdouble winy, GLdouble winz, GLdouble clipw,
+ const GLdouble modelMatrix[16], const GLdouble projMatrix[16],
+ const GLint viewport[4], GLclampd zNear, GLclampd zFar,
+ GLdouble *objx, GLdouble *objy, GLdouble *objz,
+ GLdouble *objw );
+
+*/
+
+#if defined(__BEOS__) || defined(__QUICKDRAW__)
+#pragma export off
+#endif
+
+
+#ifdef macintosh
+ #pragma enumsalwaysint reset
+ #if PRAGMA_IMPORT_SUPPORTED
+ #pragma import off
+ #endif
+#endif
+
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif /* __glu_h__ */
diff --git a/C2J/mesa33-header/glx.h b/C2J/mesa33-header/glx.h
new file mode 100644
index 0000000..fe94f57
--- /dev/null
+++ b/C2J/mesa33-header/glx.h
@@ -0,0 +1,150 @@
+#ifndef __GLX_glx_h__
+#define __GLX_glx_h__
+
+/*
+** License Applicability. Except to the extent portions of this file are
+** made subject to an alternative license as permitted in the SGI Free
+** Software License B, Version 1.0 (the "License"), the contents of this
+** file are subject only to the provisions of the License. You may not use
+** this file except in compliance with the License. You may obtain a copy
+** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
+** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
+**
+** http://oss.sgi.com/projects/FreeB
+**
+** Note that, as provided in the License, the Software is distributed on an
+** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
+** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
+** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
+** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
+**
+** Original Code. The Original Code is: OpenGL Sample Implementation,
+** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
+** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
+** Copyright in any portions created by third parties is as indicated
+** elsewhere herein. All Rights Reserved.
+**
+** Additional Notice Provisions: The application programming interfaces
+** established by SGI in conjunction with the Original Code are The
+** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
+** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
+** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
+** Window System(R) (Version 1.3), released October 19, 1998. This software
+** was created using the OpenGL(R) version 1.2.1 Sample Implementation
+** published by SGI, but has not been independently verified as being
+** compliant with the OpenGL(R) version 1.2.1 Specification.
+**
+** $Date$ $Revision$
+** $Header$
+*/
+
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+#include <X11/Xmd.h>
+#include <GL/gl.h>
+#include <GL/glxtokens.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+** GLX resources.
+*/
+typedef XID GLXContextID;
+typedef XID GLXPixmap;
+typedef XID GLXDrawable;
+typedef XID GLXPbuffer;
+typedef XID GLXWindow;
+typedef XID GLXFBConfigID;
+
+/*
+** GLXContext is a pointer to opaque data.
+*/
+typedef struct __GLXcontextRec *GLXContext;
+
+/*
+** GLXFBConfig is a pointer to opaque data.
+*/
+typedef struct __GLXFBConfigRec *GLXFBConfig;
+
+/************************************************************************/
+
+extern XVisualInfo* glXChooseVisual (Display *dpy, int screen, int *attribList);
+extern void glXCopyContext (Display *dpy, GLXContext src, GLXContext dst, unsigned long mask);
+extern GLXContext glXCreateContext (Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct);
+extern GLXPixmap glXCreateGLXPixmap (Display *dpy, XVisualInfo *vis, Pixmap pixmap);
+extern void glXDestroyContext (Display *dpy, GLXContext ctx);
+extern void glXDestroyGLXPixmap (Display *dpy, GLXPixmap pix);
+extern int glXGetConfig (Display *dpy, XVisualInfo *vis, int attrib, int *value);
+extern GLXContext glXGetCurrentContext (void);
+extern GLXDrawable glXGetCurrentDrawable (void);
+extern Bool glXIsDirect (Display *dpy, GLXContext ctx);
+extern Bool glXMakeCurrent (Display *dpy, GLXDrawable drawable, GLXContext ctx);
+extern Bool glXQueryExtension (Display *dpy, int *errorBase, int *eventBase);
+extern Bool glXQueryVersion (Display *dpy, int *major, int *minor);
+extern void glXSwapBuffers (Display *dpy, GLXDrawable drawable);
+extern void glXUseXFont (Font font, int first, int count, int listBase);
+extern void glXWaitGL (void);
+extern void glXWaitX (void);
+extern const char * glXGetClientString (Display *dpy, int name );
+extern const char * glXQueryServerString (Display *dpy, int screen, int name );
+extern const char * glXQueryExtensionsString (Display *dpy, int screen );
+
+/* New for GLX 1.3 */
+extern GLXFBConfig * glXGetFBConfigs (Display *dpy, int screen, int *nelements);
+extern GLXFBConfig * glXChooseFBConfig (Display *dpy, int screen, const int *attrib_list, int *nelements);
+extern int glXGetFBConfigAttrib (Display *dpy, GLXFBConfig config, int attribute, int *value);
+extern XVisualInfo * glXGetVisualFromFBConfig (Display *dpy, GLXFBConfig config);
+extern GLXWindow glXCreateWindow (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
+extern void glXDestroyWindow (Display *dpy, GLXWindow win);
+extern GLXPixmap glXCreatePixmap (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
+extern void glXDestroyPixmap (Display *dpy, GLXPixmap pixmap);
+extern GLXPbuffer glXCreatePbuffer (Display *dpy, GLXFBConfig config, const int *attrib_list);
+extern void glXDestroyPbuffer (Display *dpy, GLXPbuffer pbuf);
+extern void glXQueryDrawable (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
+extern GLXContext glXCreateNewContext (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
+extern Bool glXMakeContextCurrent (Display *display, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
+extern GLXDrawable glXGetCurrentReadDrawable (void);
+extern Display * glXGetCurrentDisplay (void);
+extern int glXQueryContext (Display *dpy, GLXContext ctx, int attribute, int *value);
+extern void glXSelectEvent (Display *dpy, GLXDrawable draw, unsigned long event_mask);
+extern void glXGetSelectedEvent (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
+
+/*** SGI GLX extensions */
+extern GLXContextID glXGetContextIDEXT (const GLXContext ctx);
+extern GLXDrawable glXGetCurrentDrawableEXT (void);
+extern GLXContext glXImportContextEXT (Display *dpy, GLXContextID contextID);
+extern void glXFreeContextEXT (Display *dpy, GLXContext ctx);
+extern int glXQueryContextInfoEXT (Display *dpy, GLXContext ctx, int attribute, int *value);
+
+extern void (*glXGetProcAddressARB(const GLubyte *procName))( void );
+
+/*** Should these go here, or in another header? */
+/*
+** GLX Events
+*/
+typedef struct {
+ int event_type; /* GLX_DAMAGED or GLX_SAVED */
+ int draw_type; /* GLX_WINDOW or GLX_PBUFFER */
+ unsigned long serial; /* # of last request processed by server */
+ Bool send_event; /* true if this came for SendEvent request */
+ Display *display; /* display the event was read from */
+ GLXDrawable drawable; /* XID of Drawable */
+ unsigned int buffer_mask; /* mask indicating which buffers are affected */
+ unsigned int aux_buffer; /* which aux buffer was affected */
+ int x, y;
+ int width, height;
+ int count; /* if nonzero, at least this many more */
+} GLXPbufferClobberEvent;
+
+typedef union __GLXEvent {
+ GLXPbufferClobberEvent glxpbufferclobber;
+ long pad[24];
+} GLXEvent;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* !__GLX_glx_h__ */
diff --git a/C2J/mesa33-header/pre2orig-enum.awk b/C2J/mesa33-header/pre2orig-enum.awk
new file mode 100644
index 0000000..e492a16
--- /dev/null
+++ b/C2J/mesa33-header/pre2orig-enum.awk
@@ -0,0 +1,3 @@
+BEGIN { printf "typedef enum {\n" }
+ { print "\t" $2 "\t\t = " $3 "," }
+END { printf "};\n" }
diff --git a/C2J/mesa33-header/pre2orig-proto.awk b/C2J/mesa33-header/pre2orig-proto.awk
new file mode 100644
index 0000000..64ca879
--- /dev/null
+++ b/C2J/mesa33-header/pre2orig-proto.awk
@@ -0,0 +1,3 @@
+BEGIN { }
+/^[ \t]*GL[U]?API/,/;/ { print $0; }
+END { }
diff --git a/C2J/mesa33-header/prepare-enum.sh b/C2J/mesa33-header/prepare-enum.sh
new file mode 100755
index 0000000..3ddf248
--- /dev/null
+++ b/C2J/mesa33-header/prepare-enum.sh
@@ -0,0 +1,22 @@
+#! /bin/sh
+
+echo WARNING WARNING
+echo This generated files are heavily edited !
+echo We exit now ...
+exit 0
+
+grep "#define GL_" gl.h > gl-enum-auto.orig.pre
+grep "#define GL_" glext.h >> gl-enum-auto.orig.pre
+cat gl-enum-auto.orig.pre | sort -u -b | \
+awk -f pre2orig-enum.awk | \
+grep -v -e "?" -e "GL_FALSE" -e "GL_TRUE" \
+ -e "= 1,$" > gl-enum-auto.orig
+rm -f gl-enum-auto.orig.pre
+echo please check generated file gl-enum-auto.orig
+
+grep "#define GLU_" glu.h > glu-enum-auto.orig.pre
+cat glu-enum-auto.orig.pre | sort -u -b | \
+awk -f pre2orig-enum.awk | \
+grep -v -e "?" -e "= 1,$" > glu-enum-auto.orig
+rm -f glu-enum-auto.orig.pre
+echo please check generated file glu-enum-auto.orig
diff --git a/C2J/mesa33-header/prepare-proto.sh b/C2J/mesa33-header/prepare-proto.sh
new file mode 100755
index 0000000..186374d
--- /dev/null
+++ b/C2J/mesa33-header/prepare-proto.sh
@@ -0,0 +1,10 @@
+#! /bin/sh
+gcc -E gl.h | \
+awk -f pre2orig-proto.awk | \
+sed -e 's/GLAPIENTRY//g' -e 's/GLAPI/extern/g' > gl-proto-auto.orig
+echo please check generated file gl-proto-auto.orig
+
+gcc -E glu.h | \
+awk -f pre2orig-proto.awk | \
+sed -e 's/GLAPIENTRY//g' -e 's/GLUAPI/extern/g' > glu-proto-auto.orig
+echo please check generated file glu-proto-auto.orig
diff --git a/C2J/warning.skel b/C2J/warning.skel
new file mode 100644
index 0000000..1485379
--- /dev/null
+++ b/C2J/warning.skel
@@ -0,0 +1,6 @@
+/* WARNING ! WARNING *** THIS FILE IS GENERATED BY C2J !!!
+
+ DO NOT MAKE ANY CHANGES *** MAKE CHANGES IN THE SKELETON FILES !!!
+*/
+
+
diff --git a/CHANGES.txt b/CHANGES.txt
new file mode 100644
index 0000000..7aa62e5
--- /dev/null
+++ b/CHANGES.txt
@@ -0,0 +1,1314 @@
+\begin{verbatim}
+
+Last Changes: 18th November 2000 (Version 2.5.0 - Release 0 beta 1 )
+Started: July 1997 (Version 0)
+
+-----------------
+TOP = NEW
+DOWN = OLD
+-----------------
+
+18th November 2000 (Version 2.5.0 - Release 0 )
+ o Added this source tree to CVS at GL4Java.sourceforge.net !
+ (the binary only directories:
+ archive
+ binpkg
+ are kept empty)
+
+ o Moved "sun.awt.windows.*" -> "gl4java.jau.awt.windows.*"
+ One changes to access the new location is made in:
+ gl4java.GLContext
+
+ o Changed the gl4java.awt.GLAnimCanvas error/warning
+ printout. Now, the "problem in use() method"
+ is printed out only, if gl4java.GLContext.gljClassDebug
+ is set to true !
+ Also the above error text is splitted in two more
+ comprehensive error text.
+
+ o The native method
+ gl4java.GLContext.gljGetCurrentContext
+ is added for those, who things they need it ...
+
+18th September 2000 (Version 2.4.1 - Release 2 )
+
+ o Added Apple MAC OS9.0 PPC support !!
+ This is based upone Gerard Ziemski's
+ sources.
+
+ - Included a special Mac distribution:
+ - Installer Disk-Image with AppleScript Installation !
+ - Demo Disk-Image !
+
+ o Fixed & Added Demos:
+ - added Hodglim's NeHe port
+ - all demos are now in doubleBuffer mode !
+ - all demos does requestFocus right,
+ for key-input !
+
+18th August 2000 (Version 2.4.1 - Release 0 )
+
+ o Improved the Installer code to Version 2.04 !
+ Please read about this in Installer/CHANGES.txt !
+
+ Mostly the standalone installation process is improved !
+
+ o Removed the special MAC library names,
+ now the MAC should use the default ...
+
+ o Added 2 new native libraries for testing purpose:
+ [lib]GL4JavaJauGLJNItst[.so | .dll]
+ [lib]GL4JavaJauGLUJNItst[.so | .dll]
+
+ These libs does check, if given arrays arguments
+ are handled with the JNI_COPY method or not.
+
+ If they are handled with the JNI_COPY method,
+ a warning is printed !
+
+ o Added a new native library set:
+ [lib]GL4JavaJauGljJNI12[.so | .dll]
+ [lib]GL4JavaJauGLJNI12[.so | .dll]
+ [lib]GL4JavaJauGLJNI12tst[.so | .dll]
+ [lib]GL4JavaJauGLUJNI12[.so | .dll]
+ [lib]GL4JavaJauGLUJNI12tst[.so | .dll]
+ This new JNI12 set, respects the new JNI features
+ - GetPrimitiveArrayCritical
+ - ReleasePrimitiveArrayCritical
+ this new libraries are automatically loaded,
+ if the JVM is >= 1.2 !
+ So array copies should be avoided,
+ especially in JVM >= 1.3 (+ hotspot) !!
+
+ This task is done with the new C2J, and with a
+ new jni12tools.c module.
+
+ Check out the gl4java.util.Test section below !
+
+ o Added a performance test shell in demos/MiscDemos:
+
+ PerformanceCheck.sh
+
+ where allready existing test exist under:
+ ./PerformanceLogs/
+
+ This script uses the native and the java gears demo.
+ (In the future, may be we add more native/java comparable demos)
+
+ The java demos is tested with all installed JVM's,
+ which environment setup scripts are located under
+ ./PerformanceEtc/profile.jdk* !
+
+ o Added gl4java.util.Test !
+ This class's purpose is to just start derivations of
+ gl4java.awt.GLCanvas
+ gl4java.awt.GLAnimCanvas
+ gl4java.applet.SimpleGLAnimApplet1
+
+ So there is no need for the old
+ and dirty inner class game, just for testing ...
+ Just to make those demos (GL*Canvas) public ...
+
+ I have added two little SHELL scripts
+ demos/test.sh
+ demos/test-jnitst.sh
+ demos/test-jni12tst.sh
+ which starts the (1st argument) java testclass with
+ - default libs -, or
+ *JNItst*, or
+ *JNI12tst* libraries !
+ The purpose for the two last ones
+ is to force the usage of the special JNI libs.
+ The JNI and JNI12 functions can be tested this way,
+ if some array is copied !
+
+ o Using the JAVA_HOME environment variable
+ within the symbols.mak files ...
+
+ o Added new arguments for gl4java.GLContext.main(..) !
+ Now, it is more usable ... more verbose
+
+ o Added a better error tolerant X11 Visual fetching mechanims.
+ All glXGetConfig's are now tested for all avaiable visuals,
+ if no visual is offered ...
+
+ o Respecting the accumulator bits size with/in:
+ gl4java.GLContext.accumSize (new constructor also)
+ gl4java.awt.GLCanvas.accumSize (for usage in e.g. preInit)
+
+ o Removing the whole non-dynamic code part,
+ to make things clear !
+ The "#define _GL_DYNAMIC_BINDING_" is no more needed !
+
+ o Removing the compilation depending define
+ _HAS_GLXGETPROCADDRESSARB_ !
+ The existence of glXGetProcAddressARB, glXGetProcAddressEXT or
+ glXGetProcAddress is queried during runtime within
+ - libGL.so and libglx.so (only the first time with dlsym) !
+
+ o Optimized the Array handling in the JNI part !
+ IF (the array parameter is const) OR
+ (copy is not used within the JVM)
+ THEN
+ Release<type>ArrayElements(X,X,X,JNI_ABORT/*just release*/)
+ ELSE
+ Release<type>ArrayElements(X,X,X,0 /*copy back*/)
+ FIN
+
+ Also, the redundant Set<type>ArrayRegion call is removed !
+
+ o Optimizing the gl4java/utils/glut/GLUTFuncLightImpl teapot
+ implementation !
+
+26. June 2000 (Version 2.4.0 - Release 0 )
+
+ -- Major Changes
+
+ o All changes makes it possible to have only one
+ native library for one platform !
+
+ o Changing dynamically to the mode: create an own overlapped window,
+ if the native java window does not support the needed properties,
+ e.g. double buffering !
+
+ o Added "repaint" calls in GLCanvas,
+ if:
+ - A GL Context is made and initialized AND
+ - GLCanvas is resized
+ - the mouse is clicked on GLCanvas
+ - the top level window is moved
+ - the top level window is activated
+ This must be done, because of missing natural repaint events
+ for Unices with own created windows !
+
+ o (X11) Added usage of the accumulation buffer,
+ the previous version missed to set the values for the
+ visual attribute list !
+
+ o Added usage of:
+ X11: glXGetProcAddressARB(<GL-Func-Name>)
+ and dlsym(<GL-Func-Name>)
+
+ Win32: wglGetProcAddress(<GL-Func-Name>)
+ and getProcAddress(<GL-Func-Name>)
+
+ Mac: aglGetProcAddress(<GL-Func-Name>) ?
+
+ in all generated OpenGL function calls.
+ This is achieved by the new C2J compiler.
+ No statical linkage is needed anymore for the OpenGL
+ functions, so no dummy functions must be generated for
+ some missing OpenGL 1.2 functions of a implementation.
+ If glXGetProcAddressARB is not supported by your X11/GL libs,
+ you can not use the define _HAS_GLXGETPROCADDRESSARB_
+ in symbols.mak - then, only the dlsym mechanism will be used !
+
+ GLContext.gljTestGLProc (<GL-Func-Name>) is added,
+ which uses the *GetProcAddress* methods, described above.
+
+ GLContext.gljGetVersions() adds a string with one line
+ for all known OpenGL functions with the information if it does
+ exist in the underlying GL implementation.
+
+ This new feature is only used, if
+ #define _GL_DYNAMIC_BINDING_
+ is set e.g. in symbols.mak !
+ Then you have to use/link the special generated files by C2J:
+ OpenGL_JauJNI*_dynfuncs.c
+ instead of OpenGL_JauJNI*_funcs.c for static binding.
+
+ o Added support for Offscreen-Rendering and Swing:
+ gl4java.GLContext.createOffScreenCtx(...)
+ gl4java.swing.*
+ Please check the demos in: demos/GLSwingDemos !
+ You can also read the SwingUsage.txt file !
+ (Thanxs to www.desys.com !)
+
+ o Using Mesa 3.3 beta headers for the GL & GLU function
+ creation (C2J) !
+
+ -- Minor Changes
+
+ o Added "GLContext.gljMakeCurrent()", and put the old one
+ "gljMakeCurrent(boolean)" to deprecated !
+ It makes no sense to explicit release the GL context,
+ because on all OS it does release the GL context automatically,
+ if a new one is attached !
+
+ o Steven Hugg added more Png texture features:
+ - grayscale, gray-alpha, rgb, rgb-alpha
+
+
+01. April 2000 (Version 2.3.1 - Release 1 )
+
+ o Changed the Installer code to Version 2.02 !
+ Please read about this in Installer/CHANGES.txt !
+
+ Now a new binary installer package is provided,
+ to be able to download the installer and run it
+ as an application !
+
+ o Bugfixes for some java jdk117 incompatibilities !
+ (Thanxs to gerard ziemski for finding this out !)
+ I have used some Java2 features :-(,
+ but - Gerard stated this true - we need jdk117 compatibility !
+
+ The following code is changed:
+ gl4java.utils.textures.AWTTextureLoader:
+ No packages:
+ import java.awt.Color.*;
+ import java.awt.color.*;
+ No java.awt.image.BufferedImage,
+ so we just guess, it is 24bit RGB data !
+
+ gl4java.awt.GLImageCanvas:
+ No java.awt.Component.getWidth/Height methods !
+ Using cvsGet* method !
+
+ A FEW DEMOs: demos/RonCemers/*.java,
+ where the KeyEvent.VK_KP_* is used (deleted) !
+
+ o For the binary port to the SGI-IRIX-65-MIPS
+ machine, the following files were added:
+ - symbols.mak.sgi-irix65-mips
+ - mklibs/mkslib.irix6.2
+ - CNativeCode/gl.sgi-irix65.not.c
+ - CNativeCode/gl.sgi-irix65.not.h
+
+30. March 2000 (Version 2.3.1 - Release 0 )
+
+ o Reversed the time order of this FILE :-) !
+ PLEASE read this File - before you ask !
+ Please check the JavaDOC API and the DEMOS
+ also - befor you ask !
+ THANXS !
+
+ o All changes in this revision only affect the JAVA-CLASSES,
+ regarding:
+ - gl4java.utils.textures.*
+ - Complete rework (class hierarchie, IS compatible) !
+ - Allows URL/uri arguments to load textures !
+ - New TextureLoader implementations:
+ - AWTTextureLoader
+ - TGATextureLoader
+ - TextureTool with new functionality (scale/texImage2D*)
+
+ - Please have a lock at gl4java.awt.GLImageCanvas
+ and in the demos:
+ - demos/MiscDemos/GLImageViewerCanvas.java
+ - demos/MiscDemos/GLImageViewerWorld.java
+ - check out my transparent jaulogo,
+ loaded with the png-loader !
+
+ - gl4java.utils.*
+ - New Class Tool.java to achieve some informations !
+ General purpose, static methods should be placed
+ here ...
+
+ - gl4java.awt.*
+ - New Class GLImageCanvas.java, which uses
+ a lot of the new functionality of the
+ package gl4java.utils.textures !
+ Please have a lock in the demo:
+ demos/MiscDemos/GLImageViewerCanvas.java
+ where you have a little image-loader/saver
+ based on OpenGL :-)) !
+
+
+28. March 2000 (Version 2.3.0 - Release 0 )
+
+ o Added Shared GL-Context feature !
+ Just look into the demos/MiscDemos/SharedGLContext* Files !
+ Your shared GLContext should be set in GL[Anim]Canvas,
+ like the stencilBits, etc. Use the attribute "sharedGLContext" !
+ OS Impl.: Please add the feature in the native get_GC method !
+ (Thanxs to "Artiste on the Web" for initiating and for the
+ first X11 implementation.)
+
+ o Modified the TextureLoader Class, to support:
+ - Files and InputStreams !
+ This works like the TextureGrabber base class,
+ so the all input media is broken down to an InputStream !
+
+ o Added a Graphics.setClip(..) call to the GLCanvas paint method !
+ This is needed for e.g. Macintosh machine !
+ (Thanxs to Martin Orton !)
+
+ o Added/Modified demos:
+ demos/RonsDemos/FullScreenGears (application, new)
+ (Thanxs to Virgil Wall !)
+ demos/MiscDemos/SharedGLContext* (see above, new)
+
+ Some Demo's under:
+ demos/MiscDemos/
+ demos/GLLandScape/
+ uses the new main method, which supports win32jvm !
+ (Thanxs to Virgil Wall !)
+
+14. March 2000 (Version 2.2.0 - Release 1 )
+
+ o BugFix of the Win32 JNI JVM native library:
+ - Java_gl4java_GLContext_gljResizeNative
+ With correct arguments now.
+ o Distinguish the Win32 x86 native package
+ between MSJVM and StdJVM -> lesser download size !
+
+6. March 2000 (Version 2.2.0 - Release 0 )
+
+ o The pointer conversion to the "long" type did not worked for
+ Netscape under linux !
+ A "bus error" occures, while using "long" in the native part !
+ So all pointer presentations are kept "int" !!
+
+ o All GLU Callback Functions (Tessellators, ...)
+ are now supported while using the JNI reflections
+ and seeking the fitting method for method-type
+ and gl-context !
+ Please have a look in Tesselation.txt !
+
+ o Added GLUT Font support !
+ Thanxs to Pontus Lidman (Mathcore) for supporting
+ GL4Java with GLUT font support !
+ The special package:
+ gl4java.utils.glut.fonts
+ provides the new GLUT class:
+ GLUTFuncLightImplWithFonts
+ which is derived from the GLUT class:
+ gl4java.utils.glut.GLUTFuncLightImpl
+ This new package provides font support
+ and contains the font data and the font-class
+ code generation code.
+
+ This new package gl4java.utils.glut.fonts
+ is distributet in an own jar/zip file:
+ gl4java2.2.0.0-glutfonts-classes.zip
+ gl4java2.2.0.0-glutfonts-jar.zip
+ This is done, because of its size - about 200kBytes !
+ But this optional package is selected
+ within the Installer as the default ;-) !
+
+ Look at demos/MiscDemos/glutFont*Test.html
+ for the new font demos !
+
+ o Added texture grabber class:
+ gl4java.utils.textures.TGATextureGrabber implements
+ gl4java.utils.textures.TextureGrabber
+ this default impl. uses the TGA file type,
+ to save the opengl framebuffer !
+ Thanxs to Erwin 'KLR8' Vervaet for the TGA writer code !
+ The demos: tessdemo, tesswind and morph3d
+ include a snapshot menue, if started as an application !
+
+ o In class gl4java.awt.GLCanvas,
+ the following attributes are made public:
+ public GLFunc gl = null;
+ public GLUFunc glu = null;
+
+ The following attribute stays protected and can be fetched
+ by the method: "public final GLContext getGLContext()"
+ protected GLContext glj = null;
+
+ o The stencilBits configuration for stencil-bit number setup
+ for X11 and Win32 system is implemented !
+
+ The OpenGL Stencil feature works now !
+
+ The usage of the stencil buffer does work now !
+ Look at demos/MiscDemos/stencil.html
+ for the new stencil demo !
+
+ Changes in:
+ Native: X11, Win32, Win32JDirect
+ TODO: Macintosh
+
+ Java: gl4java.GLContext, gl4java.awt.GLCanvas
+
+ o The new Flag GLContext::createOwnWindow
+ (mapped in GLCanvas, like doubleBuffer, stencilBits, ...)
+ controlls the behavior of the native window code.
+ If createOwnWindow equals true,
+ an new overlayed window is created.
+ This is sometimes needed for some machines,
+ like SGI's Irix or maybe IBM's AIX !
+ This flag can be forced to be always true,
+ by setting the compile definition:
+ #define GL4JAVA_FORCE_X11_OWN_WINDOW
+ ( gcc -D GL4JAVA_FORCE_X11_OWN_WINDOW ... )
+ This should be always set for IRIX !
+ At this time some refresh problems occure,
+ if the window comes on top again.
+
+ Changes in:
+ Native: X11
+
+ Java: gl4java.GLContext, gl4java.awt.GLCanvas
+
+ o C2J bugfix 1.2
+ - GLUtesselator is now supported !
+ - All GLU methods are now implemented !
+ - Added support for NULL/null pointer arrays,
+ so you can call e.g.
+ "glu.gluTessBeginPolygon(tobj, (double[])null);"
+ The C-JNI part does handle it now !
+
+24. January 2000 (Version 2.1.3 - Release 2 )
+
+ o This version is based upon Mesa 3.1,
+ the older versions are based upon Mesa 3.0
+ (For GL and GLU function creation (C2J), etc.)
+ So we do support:
+ OpenGL 1.2
+ GLU 1.2
+ But be sure, that your underlying OpenGL native library
+ does support OpenGL 1.2 and GLU 1.2 also !!!
+
+ o Now supports - in respect to Mesa 3.1:
+ - GL_EXT_stencil_wrap
+ - GL_NV_texgen_reflection
+ - GL_PGI_misc_hints
+ - GL_EXT_compiled_vertex_array
+ - GL_EXT_clip_volume_hint
+
+ - The following extensions are skipped from Mesa 3.1:
+ - GL_INGR_blend_func_separate
+ - GL_ARB_multitexture
+
+ o C2J has changed to respect the new Mesa Version 3.1
+ All "void *" Arguments of one function are mapped to all java
+ array-types.
+
+14. Dezember 1999 (Version 2.1.3 - Release 1)
+
+ For MesaNvidia 3.1 (Linux-x86) ONLY !
+
+ o Changed the version for Mesa-NVidia to MesaNvidia 3.1 (Linux-x86)
+ - This is done in the Installer,
+ - and the CNative/gl.nvidia.not.c file !
+
+ o Added installation instructions for the png.jar archive !
+07. Dezember 1999 (Version 2.1.3 - Release 0 )
+
+ o Added Ron Cemer's Installer to this repository.
+ This is a changed version - version 2.00,
+ which based upon Ron's orig. version 1.05 !
+ Please read the Installer/CHANGES.txt !
+
+ o Added geometric GLUT support: gl4java.utils.glut !
+ See some demos in demos/MiscDemos !
+ This is a lightweight implementation,
+ meaning that the SGI sources are used !
+
+ o Added more Demos, e.g. morph3d !
+
+ o Added PNG-TextureLoader support in gl4java.utils.textures !
+ This packages uses the LGPL png classes:
+ Copyright (c) 1998,1999 Six-Legged Software
+ Please read the PNG-*.txt files !
+
+ The 1st code, which usese the PNG class,
+ and the original scale-code is written by:
+ Max Rheiner <[email protected]> !
+
+ Check the demo: demos/MiscDemos/pngTextureTestApplet.java !
+
+18. November 1999 (Version 2.1.2 - Release 2 )
+
+ o Some errors moved into the DEMOS section !
+ - GL_TRUE and GL_FALSE are now set to the new boolean ...
+
+ o Ron Cemer's Demos are adapted and modified
+ to achieve more compatibility. See demos/RonsDemos/index.html !
+
+ o A new Class "gl4java/applet/SimpleGLAnimApplet1.java"
+ is made and used by all animation classes of Ron Cemer !
+ This package (gl4java/applet) is now part of the
+ distribution !
+
+ Please update at least the java archive/classes
+ (especially the Windows-Users, where the native libs
+ has no changes ! )
+
+ o ReWork of the X11-Window-System part,
+ which achieve the XVisual.
+ This is another try, because the Irix-Systems
+ have some troubles .... :-(
+
+14. November 1999 (Version 2.1.2 - Release 1 )
+
+ o ReFactoring of the C2J Parser,
+ which generates all the Java/C native glue !
+
+ - Complete re-work to select all information
+ into objects while parsing,
+ instead of just printing them out !
+
+ - Printing the objects (functions-declarations)
+ in different formats:
+ - JNI-Java Code
+ - JNI-C Code
+ - MSJDirect Code
+
+ - Handels "void *" in the argument-list in the way,
+ that each functions will be generate SEVEN times
+ with the following type-substitutions:
+ "byte[]", "short[]", "int[]",
+ "float[]", "double[]", "boolean[]", "long[]"
+ Only 1 "void *" in the arg-lidt can be handled now.
+ This is enough for OpenGL ;-)
+
+ The function overloading is done
+ with the Java function signature,
+ so a ANSI-C compiler is enough !
+
+ - Handels double Pointers -> [][] - and more ;-) !
+
+ - Handels "const" arguments correct:
+ - no more SetArray calls
+
+ - Gives semantic error messages,
+ if something can not be handled !
+ E.g.: More than 1 "void *" argument,
+ or a pointer-type as the function-type !
+
+ o Because of the essential changes of C2J
+ The following benefits for GL4Java exist:
+
+ - Only the glGetString, gluGetString gluErrorString
+ functions must be written manualy now !!!!
+
+ - Better compatibility with "GLvoid *" arguments.
+ This means - not just "byte[]" can be used -
+ "byte[]", "short[]", "int[]",
+ "float[]", "double[]", "boolean[]", "long[]"
+ functions are generated !
+
+ - Better MS-JDirect (MS-JVM) integeration !
+
+ o Complete OpenGL 1.2 support (if native OpenGL supports it) !
+ So missing functions like:
+ void glEnableClientState( GLenum cap );
+ void glDisableClientState( GLenum cap );
+ do exist now.
+ This is because of the new C2J !
+
+ o Nearly Complete GLU 1.1 support - Except :
+ - gluScaleImage (Only byte[] i/o is supported)
+
+ - The following are not supported,
+ because they do use function-pointers:
+ - gluQuadricCallback
+ - gluNurbsCallback
+ - gluTessCallback
+ This is because of the new C2J !
+
+ o Changed all "native pointer" presentation in Java
+ from "int" to "long" !
+ I guess this provides a better compatibility to
+ 64 bit machines with 64 bits per adress !
+
+ o Win32: Added ALL EXT functions which exists in MSVC 6.0 header files
+ to the gl4java_bin_ext function in gl.win32.ext.c !
+
+14. Oktober 1999 (Version 2.1.1 - Release 0 )
+
+ o Added to the demo-package:
+ - Ron's demos
+ - RectRenderSpeed
+
+30. AUGUST 1999 (Version 2.1.0 - Release 1 )
+
+ o Added symbols.mak and gl.not.c for NVIDIA Mesa GLX Module
+
+ o X11: Fixed XVisualInfo query, while just setting a prefix now,
+ instead of using the found XVisualInfo (RGBA, DOUBLEBUFFER) !
+ This fixes the double buffering problem with
+ some hardware accelerated OpenGL driver !
+
+ o Merged MSJVM port
+ - Ron Cemers port to the MS-JVM is merged.
+ The following MS-JVM (build 3186) is needed:
+ "Microsoft (R) VM for Java, 5.0 Release 5.0.0.3186"
+ New classes for MS-JVM:
+ . gl4java.system.GljMSJDirect
+ . gl4java.GLFuncMSJDirect
+ . gl4java.GLUFuncMSJDirect
+ . sun.awt.windows.MSWin32HandleAccess
+ New native library for MS-JVM:
+ . GL4JavaGljMSJDirect
+ New documentation for MS-JVM:
+ . MS-JVM.txt
+ . README.RonCemer (updated original)
+
+ - The MS-Java-SDK >= 2.0 is needed
+ (A SUN std. JDK is still needed)
+ - To give the port a better distinguish,
+ I droped the JDirect stuff outta gl4java.GLContext
+ to gl4java.system.GljMSJDirect
+ - gl4java.system.GljMSJDirect,
+ gl4java.GLFuncMSJDirect,
+ gl4java.GLUFuncMSJDirect and
+ sun.awt.windows.MSWin32HandleAccess is compiled ONLY
+ with the MS-Java-Compiler ;-) !
+ - gl4java.system.GljMSJDirect,
+ gl4java.GLFuncMSJDirect,
+ gl4java.GLUFuncMSJDirect do have the MS-Java state:
+ "@security(checkDllCalls=off)", so if you have
+ the classes and dll installed, you can run
+ the applet within the MS-IE 4.0 :-) without cab's !
+ - The old glj* native methods and the new glj*JDirect
+ native methods are improved:
+ - function arguments, instead of object retrieving
+ (for the old ones, like Ron's -> faster)
+ - straight usage of "static" "final", if usabel !
+ - The method "doCleanup" and the paranoia implementation
+ of "cvsDispose" is taken over from Ron
+ within gl4java.awt.GLCanvas
+ - glj.gljResize() is now called within the paint method,
+ instead of the reshape method, which is for
+ users-overwrite purpose - so you cannot forget it.
+ This is important - especially for the MS-JVM, to
+ resize the own created native window !
+
+ o Prepared for merging Macintosh port
+ - I hope gl4java.GLContext and the other std. java-classes
+ must not be changed ...
+
+ o Switched to MS-Visual-C++ 6.0 (Borland deleted)
+
+ o Moved glDemosCvs to an Applet ;-)
+ Hmm - MS-IE is faster than Netscape (under Win32) with GL4Java ...
+
+ o Added visual properties in gl4java.GLContext:
+ - doubleBuffer
+ - stereoView
+ These can be set with the constructor now
+ and are updated after creating the OpenGL-Context,
+ while quering with glXGetConfig/getPixelFormat../... !
+ If one of these properties is invalid for the hardware,
+ the native stuff in GL4Java has to "fall back" and set the
+ java flags correct !
+ These states can be queried with gl4java.GLContext !
+
+ o Added gljSetEnabled()/gljIsEnabled() to gl4java.GLContext !
+
+ o Added doubleBuffer, stereoView to
+ gl4java.awt.GLCanvas as transparent params (visual-properties)
+ to use for the gl4java.GLContext constructor !
+
+ o Added preInit() to gl4java.awt.GLCanvas to give the user a chance
+ to modify the default visual-properties !
+
+ o Now using Ron's "capsapi_classes.zip" within compilation
+ of GL4Java, to prevent the users to add some
+ netscape or other java-api's to his classpath !
+ Look at symbols.mak !
+
+11. JUNE 1999 (Version 2.0.2 - Release 1)
+
+ o Fixed gl4java.awt.GLAnimCanvas !
+
+ - Now the fps rate is adapted for every frame - all the time.
+ No more stocking animations !!!
+
+ - Set the default fps value to 20 :-) !
+
+ o The X11 native function gljSwap()
+ does not call glXWaitX and glXWaitGL anymore (-> faster ?!) !
+ I hope this is not needed - please tell if so !
+
+ o The gl.solaris.not.c file is repaired !
+
+ o Now the makefile uses the zip-utility again.
+ I registered, that the java-jar zip-files
+ could not be read by WinZip :-( !
+
+ o all zip archives should be readable for win32/tools.
+
+01. JUNE 1999 (Version 2.0.1 - Release 2)
+
+ o Added files:
+ - VERSIONS.txt (describes the version numbers)
+ - THANXS.txt (for all the helping hands ...)
+
+ o The gl4java.jar package of the previous version included
+ encryption information which where wrong.
+ This bug diabled Netscape from using the JAR archive :( !
+ This is now fixed :) !
+
+ o Tested GL4Java with jdk1.2-pre-v1 on Linux, it works !
+ You must disable JIT and enable NATIVE THREADS !
+
+ o Removed native-libs other than
+ - libGL4Java-Linux-glibc-2.X-mesa3.0pthreads-x86
+ - libGL4Java-Win32-x86
+
+ o Now having UNIXTYPE/WIN32TYPE defined
+ instead of UNIXLIBDIR/WIN32LIBDIR in symbols.mak,
+ where only the OS is specified - not the GL4Java version !
+ Now - a tar-gz/zip file is generated for the specific
+ OS-type - not a directory. The filename contains the
+ GL4Java name+version and the OS type information !
+ This is also done for the gl4java.jar file !
+
+ o No more GL4Java*bin archive exists !
+ Now all needed files for a binary-installation
+ (the native-libs and gl4java.jar) moved to the 'binpkg' directory !
+ Have a more closer look at INSTALL.txt !
+
+18. MAY 1999 (Version 2.0.1 - Release 1)
+
+ o Netscape 4.5 (Win32) PrivilegeManager usage was incorrect
+ (used 30caps...), now using "UniversalLinkAccess" !
+
+ This now works for me within Win95 and WinNT !
+
+ o Made some bugfixes within the source code include-file-names
+ and the gl.solaris.not.* files and the makefile
+ (thanxs Odell Reynolds)
+
+ o added support for the Win32 OpenGL-EXT functions,
+ wich are now loaded via 'wglGetProcAddress' the very first time !
+
+ o added 'glColorTableEXT' support within GLFunc and its implementations.
+
+20. APRIL 1999 (Version 2.0.0 - Release 1)
+
+ o This new Major Release announces a new implementation !
+
+ GL4Java V 2.X.X.X uses a new object model, which allows
+ separation of GLEnum, GLUEnum, GLFunc*, GLUFunc* and GLContext !
+
+ GLFunc*
+ implements GLEnum
+
+ GLUFunc*
+ implements GLUEnum
+
+ GLContext
+ has_a GLFunc*
+ has_a GLUFunc*
+
+ For compatibility issues,
+ i do provide the class gl4java.awt.GLCanvas,
+ which:
+ implements GLEnum
+ implements GLUEnum
+ has_a GLFuncJauJNI
+ has_a GLUFuncJauJNI
+ has_a GLContex
+ is_a Canvas
+
+ The little changes the user must do in his sources are:
+ change: GL4Java.GLCanvas -> gl4java.awt.GLCanvas
+ change: gljGetFpsCounter -> cvsGetFpsCounter
+ change: gljResetFpsCounter -> cvsResetFpsCounter
+ change: gljGetWidth -> cvsGetWidth
+ change: gljGetHeight -> cvsGetHeight
+ change: gljDispose -> cvsDispose
+ change: gljUse() -> glj.gljMakeCurrent(true)
+ change: glj* -> glj.glj*
+ change: gl* -> gl.gl*
+ change: glu* -> glu.glu*
+ change: GLCanvas.glClassDebug -> GLContext.gljClassDebug
+ change: GLCanvas.glNativeDebug -> GLContext.gljNativeDebug
+ change: glClassDebug -> GLContext.gljClassDebug
+ change: glNativeDebug -> GLContext.gljNativeDebug
+
+
+ The little shell script change2GL4JavaV2.sh
+ will do this for you while using sed !
+
+ The function 'GLContext.loadNativeLibraries(null,null,null)'
+ is called in the static part of GLCanvasV2 !
+ If you do not use GLCanvasV2, call it by yourself !
+
+ If the given paramter 'libName's' is zero
+ by calling GLContext.loadNativeLibraries,
+ the default library-names are used - see below !
+
+ Look in the new documentation and the demos,
+ which explain the new model !
+
+ So far ...
+
+ o Added the sun.awt.macintosh.MacHandleAccess.java class,
+ and the appropriate Code to GLContext for
+ fetching the WinHandle and the library !
+ This is done to support Gerard Ziemski's Macinstosh-Port !
+
+ The default native library for Win32 and Unice's is :
+ GLContext: GL4JavaJauGljJNI
+ GLFuncJauJNI: GL4JavaJauGLJNI
+ GLUFuncJauJNI: GL4JavaJauGLUJNI
+
+ The default native library for Macintosh is :
+ GLContext: GL4JavaMacGZGljJNI
+ GLFuncJauJNI: GL4JavaMacGZGLJNI
+ GLUFuncJauJNI: GL4JavaMacGZGLUJNI
+
+ These lib-names are used,
+ if 'GLContext.loadNativeLibraries( String gljLibName,
+ i String glLibName,
+ String gluLibName )'
+ is called with an null argument !
+
+ o updated documentation
+ now using java2's javadoc ;-)
+
+ o now, only a MS OpenGL binding is supported,
+ because SGI does not support their library anymore :-( !
+
+19. APRIL 1999 (Version 1.2.0 R2)
+
+ o Netscape 4.5 (Win32) PrivilegeManager usage only if we are
+ running the Netscape JVM !
+
+ o Java-PlugIn for Browser works.
+ Added Java2 Plugin HTML-Pages in demos (demos/*J2P.html) !
+ Tested with Win32,Netscape,Java2 !
+ See INSTALL.txt for docu.
+
+ o Added static main function in GLCanvas and GLFrame,
+ to just checking the library loading !
+
+ o supporting explicit library loading with static function
+ loadNativeLibrary in GLCanvas and GLFrame
+
+ o debugged gljDispose: using topLevelWindow only if != null :-)
+
+18. APRIL 1999 (Version 1.2.0 R1)
+
+ o Added Netscape 4.5 (Win32) support !
+ Because Netscape JVM supports JNI, we do try
+ to ask for a privilege :-) to run native DLL's !
+
+ Please read the chapter <Source Installation>,
+ <Binary Installation> in the given documentation, or the
+ INSTALL.txt file for changes !
+
+ This task is done for Eloi Maduell
+ who asked for it :-) - thanxs !
+
+ o Docs supports now JAVA2
+
+ o boolean gljIsInit();
+ is added - to query if the users init function is allready done !
+ Now - we can call start and stop while doing animations
+ directly from the applets class.
+ Look in the demo directory at:
+
+ glOlympicCvsApplet and glLogoCvsApplet
+
+ Also gljIsInit is used to query we are able to render,
+ better than just check if we just got the gl-context !
+
+ o Updated dummyGL.java and dummyGLCvs.java, also
+ olympicCvs.java and glLogoCvs.java and
+ glOlympicCvsApplet, glLogoCvsApplet !
+
+ The above files are now JAVA2 and applet clean !
+
+ o Added Java2Applet.bat and Java2AppletB.bat with gl4java.policy
+ to use JAVA2 appletviewer !
+ (you have to change the gl4java.policy file) !
+
+ o make creates now a GL4Java.jar file - also :-)
+
+ o added Elois Maduell Texture Test JApplet which uses PPM.
+ Moddified his one to use JAVA2 Swing, and Netscape !
+
+25. JAN 1999 (Version 1.1.0 - Release 3 )
+
+ o added glXWaitX after glXWaitGL in OpenGL_X11.c.skel
+
+ o tested with MetroX Metro-Extreme-3D (OpenGL - Hardwareaccelerated)
+ this works, but there is flickering while animation,
+ and i do not know why - checked it with native/x11/glX*
+ dem testGL2 where no flickering is :-(
+ Also Metro3D does not have any GL-EXT funcs ...
+
+ o merged Leung Yau Wai�s Win32 patch.
+ he checked minimized the "not implemented Win32" functions :-)
+ Thanxs Leung !
+ The problem was to use BC5 OpenGL include files,
+ which are not complete ;-(
+ So i put the SGI-OpenGL-Include-Path to the first place :-)))
+
+15. JAN 1999 (Version 1.1.0 - Release 2 )
+
+ o added a SunOS 5.X patch for Sun�s OpenGL library
+ included a new define _GL_SOLARIS_ with it�s
+ c-stubs in CNativeCode directory
+
+ o Linux: changed to glibc and Mesa3.0 with pthreads
+
+ o added precompiled SunOS lib linked against mesa
+
+ o the demos/native/x11 are now compiler-clean
+ please check the makefile
+
+ o changed the license to lgpl, see LICENSE.TXT
+
+ o documentation changes:
+ - german OpenGL intro is not more included in the html-version
+ - now using LaTeX2Html Version 98.2 beta8
+
+
+06. JULI 1998 (Version 1.1.0)
+
+ o Creating new GL4Java top class GLCanvas,
+ which support and is derived from Canvas.
+ Now it is possible, to use a canvas to render OpenGL :-)
+ New Files:
+ o GL4Java/GLCanvas.java
+ o LIBRARIES: GL4JavaCanvas AND GL4JavaCanvas32
+
+ o debugging of some JNI functions - thanxs to Java 1.2 beta 3,
+ which shows me the errors :-)
+
+ o Using a new way to achieve the native Window-Handle.
+ Fetched the methods from the Canvas3d Class outta Java3d-Package :-)
+ Now GL4Java runs with Java 1.1.6 and higher (also Java 1.2 beta 3)
+ - changed sun.awt.motif.*DataAccess -> sun.awt.motif.X11HandleAccess
+ - changed sun.awt.windows.*DataAccess -> sun.awt.motif.Win32HandleAccess
+ - changed GL4Java.*DataAccess -> sun.awt.motif.WinHandleAccess
+
+ o Some rework for makefiles :-)
+
+ o LaTeX Documentation-Update :-)
+ - Now we do support a postscript version !
+
+ o GLCanvas examples (check glDemosCvs)
+
+ o The precompiled Win32 versions are made with:
+ - BC5, Intel-Compiler, Optimisations, Pentium-Optimisations !
+
+ o added a MSVC 5.0 Project directory WIN32VC.
+ i used this one to perfom debugging :-)
+
+24. JUNI 1998 (Version 1.0.2)
+
+ o using tar archives in binpkg for the unix-libs ..
+ no symbolic-links are needed anymore, so we can put this
+ project on a vfat filesystem for convinient crossdevelopment
+
+ o changed all demos.
+ now, the demos (included the dummyGL.java)
+ using a frame-per-secound method with repaint and sleep
+ to create animation !
+
+ o if the native library GL4Java is not found,
+ GL4Java32 will be loaded.
+ GL4Java32 is only for Windows32 users,
+ and uses only MS native libs: opengl32.dll and glu32.dll
+ (see chapter �Binary Installation� in the documentation) !!!
+
+ o improvements in the makefile,
+ better distinguish of win32 and unix users !
+ Now win32-users can REALY use the makefile :-)
+
+ o LaTeX-documentation update, with a better
+ installation description for unix & win32
+
+ - This work is done to prepare for rework GL4Java.
+ GL4Java should support canvas :-)
+
+23. Feb 1998 (Still Version 1.0.1)
+
+ o fixing the documentation (LaTeX stuff)
+
+ o using JavaCC Version 0.7.1, modified C2J for this purpose
+
+03. Nov 1997 (Version 1.0.1)
+
+ o fixed mkslib.<OS> scripts for all OS !
+
+ o tested AIX V 4.2 port - it works - but should work better :-))
+
+21. Okt 1997 (Version 1.0.0)
+
+ o X11 (SunOS 5.X - Solaris) works with green threads
+
+ o Found out that if we use Mesa, we need to use Version 2.4 or higher
+
+ o Added the BUGFIX Version Number !
+
+
+19. Okt 1997 (Version 1.0)
+
+ o 'sDisplay' changes.
+ 'sDisplay' now has NO more semaphore's.
+ 'sDisplay' actually uses 'gljFree' (see above) to avoid
+ GL Context problems.
+ 'sDisplay' sets the actual Thread to highes priority before
+ calling 'display' AND resets its priority after 'display'.
+ We now do not have to care about another reentranced thread.
+ We beleave (;-) 'gljFree' and 'priority settings' are enough.
+ 'sDisplay' is still a 'synchronized' method !
+
+ o Multi Threading works
+
+ o X11 (Linux) works
+
+ o X11 (Solaris, Aix) still have to be checked !
+ (but we guessing that they will work ;-)
+
+ o Windows 32 (Windows NT, Windows 95) works
+ (We use SGI DLL's !)
+
+
+15. OKT 1997 (Version 1.0 beta5 )
+
+ o Added �void reshape (int,int)� for the resize.
+ This is not like the deprecated 1.0 API,
+ but like glut�s reshape callback function !
+ �reshape� will be invoked, when sDisplay
+ check the flag �mustResize� and it�s true.
+ �mustResize� is set by �componentResize� !
+ �GLFrame.reshape� implements the default GL behavior,
+ but if you want to - you can overload it now ;-)))
+
+ o Added �GLFrame� as a windowListener
+ to act for �windowClosing� !
+
+ �windowClosing� calls �gljDestroy� (see lower) AND �dispose� !
+
+ o Added �gljFree�, �gljDestroy� .
+ �gljFree� releases the GL Context AND
+ �gljDestroy� destroys it !
+
+ �gljFree� is always invoked after �sDisplay� called �display� !
+ This is needed while having some GL Context problems in
+ glXMakeCurrent (or wglMakeCurrent ;-) for some plattforms.
+ The Java Event Thread wants to set gc as current, but its allready
+ has a gc set current. So we just release (NOT destroy) the GC !
+
+ �gljDestroy� is invoked by �windowClosing� ;-)))
+
+ o �setVisible� MUST be invoked by the subclass�s constructor
+ after calling the super-class constructor at the end.
+ We have saw that the class global arrays with agregat-initializing
+ were not initialized yet :-( !
+
+ o updated all demos AND added �glLogo� and �glDemos�.
+
+ �glDemos� manages invocation of all demos ;-))
+ Incl. multi-threading :-)))
+
+
+10. OKT 1997 (Version 1.0 beta2 )
+
+ o Solaris SunOs 5.5 is created and all the following
+ changes and bugfixes were found while porting to Solaris !
+ The bugs could be found, because Solaris has a multithreading
+ X11 Server ! The development under linux does not show
+ those reentrance-problems all the time.
+
+ o 'componentResize' won't call glViewport direct.
+ It will set a resize flag, and the next paint invocation
+ will doing the resize-action ...
+
+ o paint now invokes 'sDisplay' instead of invoking
+ 'display' direct.
+ 'sDisplay' has a semaphore, which avoids reentrance of
+ the 'display' method !
+ If 'sDisplay' has the semaphore, it will calls 'display' !
+ Also �sDisplay� is a �synchronized� method,
+ which will push the 2nd thread to the wait-list
+ and notify the one after completion !
+
+ o All demo's are now updated
+ (invokation of 'sDisplay' in run-method, instead of 'display')
+ AND are WORKING well (as green- and native-threads !).
+
+08. OKT 1997 (Version 1.0 beta1 )
+
+ o Because of the lower described Major changes,
+ we moved to version 1.0 !
+
+ o Nearly *ALL* GL and GLU functions are supported.
+ All JNI interfaces are no created by cross-compilation
+ of manually fixed MESA Header-Files with the
+ cross-compiler C2J !
+ C2J is a derivation of the BNF C-Parser delivered with
+ the SUN's javaCC 0.6.1 !
+ So, C2J (C2J.jj) can be compiled with jdk and javacc.
+ C2J creates with Mesa's prototypes (a bit manipulated,
+ so they will fit C2J) the needed java-prototypes AND
+ the c-interface for the JNI-library !
+ C2J is shipped within this package !
+ The JNI-Interface just mapps the function.
+ Neither the java class nor the JNI-Lib checks arguments !
+ We perform a type mapping check to see if the
+ suggested GL-types fits to JNI-types at GL-Initialisation !
+
+ o The sun.awt.motiv.* and sun.awt.windows.* classes (java)
+ are taken from Jogl V 0.7 (THANXS).
+ We renamed 'em a bit, so NO naming confusion will occure,
+ while using GL4Java AND Jogl in the same CLASSPATH !
+
+ o GL4Java takes the Window-Handle direct from java
+ (also taken from Jogl -- puhh).
+ Because the use of the sun.* package, we do not know,
+ if the platform specific classes do exist tommorow.
+ SUN said "DO NOT USE THE sun.* classes ;-))".
+ Anyway - we still can rewind the procedure to get the window handle.
+ Ooops - I forgot - SO it's poosible now to have many frames
+ with the same NAME (Yes we still using Frames) !
+
+ o The Windows port was taken from Jogl V 0.7 (THANXS)
+ But still not compiled ....
+
+ o The function gljIsInit is obsolete,
+ use gljUse now !
+
+ o All demos are updated AND �wave� is added !
+ (Textures and GLU functions do work ;-))
+
+ o Yes - We added some HTML documentation !
+
+
+30. SEPT 1997 (Version 0.4)
+
+ o created mklibs/mklib.<os> -> mklibs/mkslib.<os>
+ to create * ONLY * shared librarys.
+ This is a step for binary distribution !
+ Also all symbols.mak.<os> uses for other shared librarys
+ (MesaGL, m, MesaGLU, ...) * ONLY * the '-l<BaseLibName>'
+ construct - so the created shared library will find the other
+ librarys via the LD_LIBRARY_PATH. E.g.: '-lMesaGL' !
+ I must say i am not that sure about all the shared dynamic
+ library stuff - but i testet it for solaris, ***
+ - and it works. So we can download the 'libGL4Java.so' library
+ for each target/os - check whether all libs are in
+ the LD_LIBRARY_PATH - and it's done.
+ o checked in demos if we can use 'Thread.yield()' while
+ the thread-running-loop after direct re-rendering
+ (direct -> not via 'repaint' - via direct method call) !
+ This works fine for: aix, solaris, ***!
+ o setup the homepage at
+ <http://parallel.fh-bielefeld.de/pv/news/gl4java.html>.
+ Some syntax fixes ;-) and * BINARY * support for
+ solaris, *** !
+ o Preparation for Win32.
+ We just could do it with BC++ 5.0, instaed of using
+ gnuwin32 (cygnus32/mingw32).
+ We tried the GNU compiler much, but we could not compile
+ a OpenGL demo, because we could not link with the DLL�s :-(((.
+ o removed the single concatenated list of a data structur,
+ which holds the gl-context, win-handle.
+ Added those handles in GLFrame (direct ;-).
+ This is mainly don for Win32 support !
+ o Added glViewport direct into GLFrame�s componentResize
+ callback-function. So derivation�s do not need to do that !
+ o Added glGetError and gljCheckGL, where the last performs
+ a glGetError AND throws - catches an exception to print the
+ source lines - where the check was performed
+ o All glGet*v does resturn their values back to java - now ;-)
+ o Code Clean Up :
+ * no more java actions in wrapper class
+ * just a passthrough of data�s in native class
+ * because of the non-data-parsing (speedup),
+ we will check all GL <-> JNI type mappings at startup once.
+ o Added Jogl's sun.awt.motiv.* sun.awt.windows.* classes,
+ to support window handle grabbing by java !
+ This makes it possible to show the native method's the window
+ handle, instead of using the window-title to identify.
+ Now it is possible (theoretical) to use a canvas (like Jogl)
+ as a OpenGL drawable component instead of a frame. BUT we believe
+ that this is not that usefull - or is it ?!
+ o GLFrame has the public method �display� (like glut),
+ which will be called automatical by GLFrame's paint !
+ So the derivation can easy use �display�.
+ Also paint is needed for grabbing the window-handle by java,
+ befor GLFrame initializes the OpenGL-Context !
+ o All demos and the 'dummyGL.java' are updated !
+
+16. SEPT 1997 (Version 0.3)
+
+ o added compiler FLAGS :
+ o __CREATE_OWN_WINDOW__
+ NOT to use the original Java Window,
+ so a color-window created by our own will be used !
+ This FLAG is actually NOT used for AIX, LINUX and SOLARIS !
+
+14. SEPT 1997
+
+ o spended very much time to port GL4Java to AIX 4.2.
+ o CHANGES for AIX:
+ o must use X11 lib in : '/usr/lpp/X11/lib'
+ - and so i used the GL lib in : '/usr/lpp/OpenGL/lib' either.
+ The X11 lib located in '/usr/lib' does not work with
+ the JDK :-(.
+ o must use JDK 1.1.1 OR
+ JDK 1.1.2 without JIT (export JAVA_COMPILER=).
+ The JIT forces the program to exit.
+ o must use the Java-Window itself, instead of
+ creating an own child-win !
+ Because the color's are not established in the
+ own-win.
+ o NOW GL4Java runs on AIX 4.2 :-)))
+ o corrected skelleton 'demos/dummyGL.java'
+ o modified GLFrame class - initialisation will be done
+ in the constructor. so the constructor takes now two more
+ arguments, the width and the height of the Window !
+
+10. SEPT 1997
+ o taken some improvements from jogl v 0.5 for the
+ X-Window System functions
+ o renamed the java-package an the top-level directory to 'GL4Java'
+ to avoid name-concurrency with other implementations
+ o the actual top-level directory is now GL4Java,
+ no more java-1.1.X and mklib* links were archived
+ (to avoid confusion).
+ o changed the 'javac' debug-flag '-g' to optimization '-O'
+ o openOpenGL now greps the correct windows width and height
+ from the JavaWin-Size
+ o added gljResize to resize the GL-Window
+ This is done with the native call XResizeWindow.
+ o GLFrame is a ComponentListener,
+ so a Resize _IS_ be tracked and passed to gljResize.
+ If the java win is resized, the GL-Win is resized either !
+ Your derived GLFrame-Method componentResized
+ should call super.componentResized(e) to be shure
+ that the super class makes the resize !
+ Your derivation must NOT addComponentListener, because super does ..
+ o improved cube demo with eyes control panel
+ o actual dummyGL.java skelleton for your GL4Java portings ..
+
+August/September 1997:
+
+ o renamed the directory to OpenGL4Java
+ o renamed the library to GL4Java !
+ o created a new makefile
+ (now just one for the lib, and one for the demos)
+ o make support about the symbols.mak.<machine> descriptor-files
+ for linux(gl and mesa), solaris(mesa), aix
+ o portet all 1.0.2 native calls to 1.1.X JNI calls
+ o changed the naming convention to the strict convention
+ of OpenGL. IE. glColor3f, gluPerspective, GL_DEPTH, etc.
+ o renamed most of all java and c overheads in the wrapper
+ functions - and passing all arguments straight to the
+ OpenGL-Library.
+ o renamed use and swap to gljUse and gljSwap,
+ according to a correct naming convention
+ - with glj for gl java !
+ o moved all gl-functions to OpenGLFrame for a more easier porting.
+ no class instance prefix must be added !
+ now gljInit creates the OpenGL initialisation,
+ and gljIsInit checks for OpenGL initialisation !
+ o added some glu* and gl* functions
+ o added some demos in the directory demos
+ also added a c-version for the demos to be able to
+ compare the GL4Java with OpenGL.
+ o added X-Error functions to be informed about X11 errors.
+ o added more selective X procedures to get the true
+ java-window. this is done while porting GL4Java to aix.
+ this porting is not successfully done.
+
+July 24, 1997:
+
+ Added genLists(), callList(), newList()
+ Fixed a couple of minor bugs
+
+\end{verbatim}
diff --git a/CNativeCode/.OpenGL_JauJNI12_dynfuncs.c.swp b/CNativeCode/.OpenGL_JauJNI12_dynfuncs.c.swp
new file mode 100644
index 0000000..a8a6df5
--- /dev/null
+++ b/CNativeCode/.OpenGL_JauJNI12_dynfuncs.c.swp
Binary files differ
diff --git a/CNativeCode/GLCallbackHelperJNI.c b/CNativeCode/GLCallbackHelperJNI.c
new file mode 100644
index 0000000..2039560
--- /dev/null
+++ b/CNativeCode/GLCallbackHelperJNI.c
@@ -0,0 +1,238 @@
+
+#include "GLCallbackHelperJNI.h"
+#include "jnitools.h"
+
+#ifndef _WIN32_
+ #ifdef macintosh
+ #include <agl.h>
+ #include <string.h>
+ #else
+ #include <GL/glx.h>
+ #endif
+#endif
+
+/*
+#define DEBUG
+*/
+
+static CallbackNode * pCallbackNodeRoot = 0;
+
+void LIBAPIENTRY PrintCallbackEntry(const char *title, CallbackEntry * cbe)
+{
+ if(cbe==NULL)
+ {
+ printf("%s> NULL cbe/cbn entry\n", title);
+ return;
+ }
+
+ printf("%s> cbe entry 4 glu-obj=%ld, glx:=%ld (env=%ld, jobj=%ld)\n",
+ title, (long)(cbe->cb_obj), (long)(cbe->glx),
+ (long)(cbe->env), (long)(cbe->jobj));
+
+ printf(" which, method, argNumber, signature\n");
+ printf(" %d %s %d: %s\n",
+ cbe->which,
+ cbe->methodName,
+ cbe->argListNumber,
+ cbe->signature);
+
+ printf(" array element number\n");
+ printf(" %d %d %d %d %d\n",
+ cbe->arrayLen1,
+ cbe->arrayLen2,
+ cbe->arrayLen3,
+ cbe->arrayLen4,
+ cbe->arrayLen5);
+ fflush(NULL);
+}
+
+void LIBAPIENTRY PrintCallbackNode(const char *title, CallbackNode * cbn)
+{
+ CallbackEntry * cbe=NULL;
+ if(cbn!=NULL) cbe=cbn->this;
+ PrintCallbackEntry(title, cbe);
+}
+
+#ifdef DEBUG
+ #define DBG_PRINT_CBE(a,b) PrintCallbackEntry(a,b)
+ #define DBG_PRINT_CBN(a,b) PrintCallbackNode(a,b)
+#else
+ #define DBG_PRINT_CBE(a,b)
+ #define DBG_PRINT_CBN(a,b)
+#endif
+
+static void CleanCallbackEntry(CallbackEntry * cbe)
+{
+ DBG_PRINT_CBE("CleanCallbackEntry", cbe);
+
+ if(cbe==NULL) return;
+ (*(cbe->env))->DeleteGlobalRef(cbe->env, cbe->jobj);
+ cbe->jobj=0;
+ if(cbe->methodName!=NULL)
+ {
+ free(cbe->methodName);
+ cbe->methodName=NULL;
+ }
+ if(cbe->signature!=NULL)
+ {
+ free(cbe->signature);
+ cbe->signature=NULL;
+ }
+ cbe->argListNumber=0;
+ cbe->arrayLen1=0;
+ cbe->arrayLen2=0;
+ cbe->arrayLen3=0;
+ cbe->arrayLen4=0;
+ cbe->arrayLen5=0;
+ cbe->cb_obj=NULL;
+ cbe->which=0;
+ cbe->glx=0;
+ cbe->env=NULL;
+}
+
+CallbackNode * LIBAPIENTRY LastCallbackNode()
+{
+ CallbackNode * cbn = pCallbackNodeRoot;
+ if(cbn==NULL) return NULL;
+
+ while(cbn->next!=NULL)
+ cbn=cbn->next;
+
+ return cbn;
+}
+
+CallbackNode * LIBAPIENTRY FindNextCallbackNodeOfCbObj(void *cb_obj)
+{
+ CallbackNode * cbn = pCallbackNodeRoot;
+
+ while(cbn!=NULL && cbn->this->cb_obj!=cb_obj)
+ {
+ cbn=cbn->next;
+ }
+ return cbn;
+}
+
+CallbackNode * LIBAPIENTRY FindCallbackNode(GLenum which, jlong glx)
+{
+ CallbackNode * cbn = pCallbackNodeRoot;
+
+ #ifdef DEBUG
+ CallbackEntry * cbe = NULL;
+ printf("FindCallbackNode> which:=%d, glx:=%ld\n",
+ which, (long)glx);
+ while(cbn!=NULL)
+ {
+ cbe=cbn->this;
+ printf(" test cbe(%s %s): which:=%d, glx:=%ld\n",
+ cbe->methodName, cbe->signature,
+ cbe->which, (long)(cbe->glx));
+
+ if(cbe->which==which && cbe->glx==glx)
+ break;
+ cbn=cbn->next;
+ }
+ #else
+ while(cbn!=NULL &&
+ (cbn->this->which!=which || cbn->this->glx!=glx)
+ )
+ cbn=cbn->next;
+ #endif
+
+ return cbn;
+}
+
+CallbackEntry * LIBAPIENTRY FindCallbackEntry(GLenum which, jlong glx)
+{
+ CallbackNode * cbn = FindCallbackNode(which, glx);
+ if(cbn==NULL) return NULL;
+ return cbn->this;
+}
+
+void LIBAPIENTRY AddCallbackNode(JNIEnv * env, jobject jobj,
+ const char *methodName, const char *signature,
+ int arrayLen1, int arrayLen2, int arrayLen3,
+ int arrayLen4, int arrayLen5,
+ void *cb_obj, GLenum which, jlong glx)
+{
+ CallbackNode * cbn = NULL;
+ CallbackNode * last_cbn = NULL;
+ CallbackEntry * cbe = NULL;
+
+ cbn = FindCallbackNode (which, glx);
+ if(cbn != NULL)
+ {
+ cbe = cbn->this;
+ CleanCallbackEntry(cbe);
+ } else {
+ cbe = calloc(1, sizeof(CallbackEntry));
+ }
+
+ cbe->env=env;
+ cbe->jobj= (*env)->NewGlobalRef(env, jobj);
+ if(methodName!=NULL)
+ {
+ cbe->methodName=calloc(strlen(methodName)+1, 1);
+ strcpy(cbe->methodName, methodName);
+ }
+ if(signature!=NULL)
+ {
+ cbe->signature=calloc(strlen(signature)+1, 1);
+ strcpy(cbe->signature, signature);
+ }
+ cbe->argListNumber= jnitoolsGetArgNumber(env, signature, cbe->methodName);
+ cbe->arrayLen1=arrayLen1;
+ cbe->arrayLen2=arrayLen2;
+ cbe->arrayLen3=arrayLen3;
+ cbe->arrayLen4=arrayLen4;
+ cbe->arrayLen5=arrayLen5;
+ cbe->cb_obj=cb_obj;
+ cbe->which=which;
+ cbe->glx=glx;
+
+ if(cbn == NULL)
+ {
+ cbn = calloc(1, sizeof(CallbackNode));
+ cbn->this = cbe;
+ last_cbn = LastCallbackNode();
+ if(last_cbn==NULL)
+ pCallbackNodeRoot=cbn;
+ else {
+ last_cbn->next=cbn;
+ cbn->prev=last_cbn;
+ }
+ }
+ DBG_PRINT_CBN("AddCallbackNode", cbn);
+}
+
+void LIBAPIENTRY RemoveCallbackNodes(void *cb_obj)
+{
+ CallbackNode * cbn = NULL;
+ while ( (cbn = FindNextCallbackNodeOfCbObj(cb_obj) ) != NULL )
+ {
+ DBG_PRINT_CBN("RemoveCallbackNodes", cbn);
+ if(cbn->prev!=NULL)
+ cbn->prev->next=cbn->next;
+ else
+ pCallbackNodeRoot=cbn->next;
+ if(cbn->next!=NULL)
+ cbn->next->prev=cbn->prev;
+ CleanCallbackEntry(cbn->this);
+ free(cbn->this);
+ free(cbn);
+ }
+}
+
+jlong LIBAPIENTRY GetCurrentGLContext()
+{
+ #ifdef _WIN32_
+ return (jlong) wglGetCurrentContext();
+ #else
+ #ifdef macintosh
+ return (jlong) aglGetCurrentContext();
+ #else
+ return (jlong) glXGetCurrentContext();
+ #endif
+ #endif
+}
+
+
diff --git a/CNativeCode/GLCallbackHelperJNI.h b/CNativeCode/GLCallbackHelperJNI.h
new file mode 100644
index 0000000..102f65a
--- /dev/null
+++ b/CNativeCode/GLCallbackHelperJNI.h
@@ -0,0 +1,71 @@
+
+#ifndef GLCALLBACKHELPERJNI
+ #define GLCALLBACKHELPERJNI
+
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <stdarg.h>
+
+ #ifdef _WIN32_
+ #include "winstuff.h"
+ #endif
+
+ #include <jni.h>
+
+ #include<GL/gl.h>
+ #include <GL/glu.h>
+
+ #ifndef LIBAPIENTRY
+ #define LIBAPIENTRY
+ #endif
+ #ifndef LIBAPI
+ #define LIBAPI
+ #endif
+
+ typedef struct {
+ /* The Java Handles */
+ JNIEnv *env; /* non-copy */
+ jobject jobj; /* copy */
+ char *methodName; /* copy */
+ char *signature; /* copy */
+ int argListNumber; /* copy */
+ int arrayLen1; /* copy */
+ int arrayLen2; /* copy */
+ int arrayLen3; /* copy */
+ int arrayLen4; /* copy */
+ int arrayLen5; /* copy */
+
+ /* The Native Handles */
+ void *cb_obj; /* non-copy, the tesselator, quadratics, etc. object */
+ GLenum which; /* copy, the function type */
+ jlong glx; /* copy, the GL-Context */
+ } CallbackEntry;
+
+ typedef struct _CallbackNode {
+ struct _CallbackNode *prev;
+ CallbackEntry *this;
+ struct _CallbackNode *next;
+ } CallbackNode;
+
+ LIBAPI void LIBAPIENTRY PrintCallbackEntry(const char *title, CallbackEntry * cbe);
+
+ LIBAPI void LIBAPIENTRY PrintCallbackNode(const char *title, CallbackNode * cbn);
+
+ LIBAPI CallbackNode * LIBAPIENTRY LastCallbackNode();
+
+ LIBAPI CallbackNode * LIBAPIENTRY FindNextCallbackNodeOfCbObj(void *cb_obj);
+ LIBAPI CallbackNode * LIBAPIENTRY FindCallbackNode(GLenum which, jlong glx);
+
+ LIBAPI CallbackEntry * LIBAPIENTRY FindCallbackEntry(GLenum which, jlong glx);
+
+ LIBAPI void LIBAPIENTRY AddCallbackNode(JNIEnv * env, jobject jobj,
+ const char *methodName, const char *signature,
+ int arrayLen1, int arrayLen2, int arrayLen3,
+ int arrayLen4, int arrayLen5,
+ void *cb_obj, GLenum which, jlong glx);
+
+ LIBAPI void LIBAPIENTRY RemoveCallbackNodes(void *cb_obj);
+
+ LIBAPI jlong LIBAPIENTRY GetCurrentGLContext();
+
+#endif
diff --git a/CNativeCode/GLUCallbackJNI.c b/CNativeCode/GLUCallbackJNI.c
new file mode 100644
index 0000000..ef2da51
--- /dev/null
+++ b/CNativeCode/GLUCallbackJNI.c
@@ -0,0 +1,639 @@
+
+#include "GLCallbackHelperJNI.h"
+#include "GLUCallbackJNI.h"
+#include "jnitools.h"
+
+void LIBAPIENTRY cbf_GLU_TESS_BEGIN (GLenum type)
+{
+ JNIEnv * env = NULL;
+ jobject obj = 0;
+ jclass oclass=0;
+ jmethodID id=0;
+ CallbackEntry * cbe = NULL;
+
+ cbe = FindCallbackEntry(GLU_TESS_BEGIN, GetCurrentGLContext());
+
+ if(cbe==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback entry");
+ return;
+ }
+ env = cbe->env;
+ obj = cbe->jobj;
+
+ oclass = (jclass) (*env)->GetObjectClass(env, obj);
+ if(oclass!=0)
+ {
+ id = (*env)->GetMethodID(env,oclass,cbe->methodName,cbe->signature) ;
+ }
+ if(id==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback method: %s %s",
+ cbe->methodName, cbe->signature);
+ return;
+ }
+
+ (*env)->CallVoidMethod(env, obj, id, (jint)type);
+}
+
+void LIBAPIENTRY cbf_GLU_TESS_BEGIN_DATA (GLenum type, void *udata)
+{
+ JNIEnv * env = NULL;
+ jobject obj = 0;
+ jclass oclass=0;
+ jmethodID id=0;
+ JavaBasicType jbt=0;
+ jarray arr=0;
+
+ CallbackEntry * cbe = FindCallbackEntry(GLU_TESS_BEGIN_DATA, GetCurrentGLContext());
+
+ if(cbe==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback entry");
+ return;
+ }
+ env = cbe->env;
+ obj = cbe->jobj;
+ oclass = (jclass) (*env)->GetObjectClass(env, obj);
+ if(oclass!=0)
+ id = (*env)->GetMethodID(env,oclass,cbe->methodName,cbe->signature) ;
+ if(id==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback method: %s %s",
+ cbe->methodName, cbe->signature);
+ return;
+ }
+
+ if(cbe->argListNumber<2)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "too few arguments in registered callback function");
+ return;
+ }
+ jbt = jnitoolsGetJavaBasicType(env,cbe->signature, 1, cbe->methodName);
+ arr = jnitoolsNativeArray2JavaArray (env, jbt, udata, cbe->arrayLen1, cbe->methodName, 2);
+
+ if(arr!=0)
+ {
+ (*env)->CallVoidMethod(env, obj, id, (jint)type, arr);
+ jnitoolsReleaseJavaArray2NativeArray (env, arr, jbt,
+ udata, cbe->arrayLen1, cbe->methodName, 2);
+ }
+}
+
+void LIBAPIENTRY cbf_GLU_TESS_EDGE_FLAG (GLboolean flag)
+{
+ JNIEnv * env = NULL;
+ jobject obj = 0;
+ jclass oclass=0;
+ jmethodID id=0;
+
+ CallbackEntry * cbe = FindCallbackEntry(GLU_TESS_EDGE_FLAG, GetCurrentGLContext());
+
+ if(cbe==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback entry");
+ return;
+ }
+ env = cbe->env;
+ obj = cbe->jobj;
+ oclass = (jclass) (*env)->GetObjectClass(env, obj);
+ if(oclass!=0)
+ id = (*env)->GetMethodID(env,oclass,cbe->methodName,cbe->signature) ;
+ if(id==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback method: %s %s",
+ cbe->methodName, cbe->signature);
+ return;
+ }
+
+ (*env)->CallVoidMethod(env, obj, id, (jboolean)flag);
+}
+
+void LIBAPIENTRY cbf_GLU_TESS_EDGE_FLAG_DATA (GLboolean flag, void *udata)
+{
+ JNIEnv * env = NULL;
+ jobject obj = 0;
+ jclass oclass=0;
+ jmethodID id=0;
+ JavaBasicType jbt=0;
+ jarray arr=0;
+
+ CallbackEntry * cbe = FindCallbackEntry(GLU_TESS_EDGE_FLAG_DATA, GetCurrentGLContext());
+
+ if(cbe==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback entry");
+ return;
+ }
+ env = cbe->env;
+ obj = cbe->jobj;
+ oclass = (jclass) (*env)->GetObjectClass(env, obj);
+ if(oclass!=0)
+ id = (*env)->GetMethodID(env,oclass,cbe->methodName,cbe->signature) ;
+ if(id==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback method: %s %s",
+ cbe->methodName, cbe->signature);
+ return;
+ }
+
+ if(cbe->argListNumber<2)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "too few arguments in registered callback function");
+ return;
+ }
+ jbt = jnitoolsGetJavaBasicType(env,cbe->signature, 1, cbe->methodName);
+ arr = jnitoolsNativeArray2JavaArray (env, jbt, udata, cbe->arrayLen1, cbe->methodName, 2);
+
+ if(arr!=0)
+ {
+ (*env)->CallVoidMethod(env, obj, id, (jboolean)flag, arr);
+ jnitoolsReleaseJavaArray2NativeArray (env, arr, jbt,
+ udata, cbe->arrayLen1, cbe->methodName, 2);
+ }
+}
+
+void LIBAPIENTRY cbf_GLU_TESS_VERTEX (void * vdata)
+{
+ JNIEnv * env = NULL;
+ jobject obj = 0;
+ jclass oclass=0;
+ jmethodID id=0;
+ JavaBasicType jbt=0;
+ jarray arr=0;
+
+ CallbackEntry * cbe = FindCallbackEntry(GLU_TESS_VERTEX, GetCurrentGLContext());
+
+ if(cbe==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback entry");
+ return;
+ }
+ env = cbe->env;
+ obj = cbe->jobj;
+ oclass = (jclass) (*env)->GetObjectClass(env, obj);
+ if(oclass!=0)
+ id = (*env)->GetMethodID(env,oclass,cbe->methodName,cbe->signature) ;
+ if(id==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback method: %s %s",
+ cbe->methodName, cbe->signature);
+ return;
+ }
+
+ if(cbe->argListNumber<1)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "too few arguments in registered callback function");
+ return;
+ }
+ jbt = jnitoolsGetJavaBasicType(env,cbe->signature, 0, cbe->methodName);
+ arr = jnitoolsNativeArray2JavaArray (env, jbt, vdata, cbe->arrayLen1, cbe->methodName, 1);
+
+ if(arr!=0)
+ {
+ (*env)->CallVoidMethod(env, obj, id, arr);
+ jnitoolsReleaseJavaArray2NativeArray (env, arr, jbt,
+ vdata, cbe->arrayLen1, cbe->methodName, 1);
+ }
+}
+
+void LIBAPIENTRY cbf_GLU_TESS_VERTEX_DATA (void * vdata, void * udata)
+{
+ JNIEnv * env = NULL;
+ jobject obj = 0;
+ jclass oclass=0;
+ jmethodID id=0;
+ JavaBasicType jbt0=0;
+ jarray arr0=0;
+ JavaBasicType jbt1=0;
+ jarray arr1=0;
+
+ CallbackEntry * cbe = FindCallbackEntry(GLU_TESS_VERTEX_DATA, GetCurrentGLContext());
+
+ if(cbe==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback entry");
+ return;
+ }
+ env = cbe->env;
+ obj = cbe->jobj;
+ oclass = (jclass) (*env)->GetObjectClass(env, obj);
+ if(oclass!=0)
+ id = (*env)->GetMethodID(env,oclass,cbe->methodName,cbe->signature) ;
+ if(id==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback method: %s %s",
+ cbe->methodName, cbe->signature);
+ return;
+ }
+
+ if(cbe->argListNumber<2)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "too few arguments in registered callback function");
+ return;
+ }
+ jbt0 = jnitoolsGetJavaBasicType(env,cbe->signature, 0, cbe->methodName);
+ arr0 = jnitoolsNativeArray2JavaArray (env, jbt0, vdata, cbe->arrayLen1, cbe->methodName, 1);
+ jbt1 = jnitoolsGetJavaBasicType(env,cbe->signature, 1, cbe->methodName);
+ arr1 = jnitoolsNativeArray2JavaArray (env, jbt1, udata, cbe->arrayLen2, cbe->methodName, 2);
+
+ if(arr0!=0 && arr1!=0)
+ {
+ (*env)->CallVoidMethod(env, obj, id, arr0, arr1);
+
+ jnitoolsReleaseJavaArray2NativeArray (env, arr0, jbt0,
+ udata, cbe->arrayLen1, cbe->methodName, 1);
+ jnitoolsReleaseJavaArray2NativeArray (env, arr1, jbt1,
+ udata, cbe->arrayLen2, cbe->methodName, 2);
+ }
+}
+
+void LIBAPIENTRY cbf_GLU_TESS_END (void)
+{
+ JNIEnv * env = NULL;
+ jobject obj = 0;
+ jclass oclass=0;
+ jmethodID id=0;
+
+ CallbackEntry * cbe = FindCallbackEntry(GLU_TESS_END, GetCurrentGLContext());
+
+ if(cbe==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback entry");
+ return;
+ }
+ env = cbe->env;
+ obj = cbe->jobj;
+ oclass = (jclass) (*env)->GetObjectClass(env, obj);
+ if(oclass!=0)
+ id = (*env)->GetMethodID(env,oclass,cbe->methodName,cbe->signature) ;
+ if(id==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback method: %s %s",
+ cbe->methodName, cbe->signature);
+ return;
+ }
+
+ (*env)->CallVoidMethod(env, obj, id);
+}
+
+void LIBAPIENTRY cbf_GLU_TESS_END_DATA (void * udata)
+{
+ JNIEnv * env = NULL;
+ jobject obj = 0;
+ jclass oclass=0;
+ jmethodID id=0;
+ JavaBasicType jbt=0;
+ jarray arr=0;
+
+ CallbackEntry * cbe = FindCallbackEntry(GLU_TESS_END_DATA, GetCurrentGLContext());
+
+ if(cbe==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback entry");
+ return;
+ }
+ env = cbe->env;
+ obj = cbe->jobj;
+ oclass = (jclass) (*env)->GetObjectClass(env, obj);
+ if(oclass!=0)
+ id = (*env)->GetMethodID(env,oclass,cbe->methodName,cbe->signature) ;
+ if(id==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback method: %s %s",
+ cbe->methodName, cbe->signature);
+ return;
+ }
+
+ if(cbe->argListNumber<1)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "too few arguments in registered callback function");
+ return;
+ }
+ jbt = jnitoolsGetJavaBasicType(env,cbe->signature, 0, cbe->methodName);
+ arr = jnitoolsNativeArray2JavaArray (env, jbt, udata, cbe->arrayLen1, cbe->methodName, 1);
+
+ if(arr!=0)
+ {
+ (*env)->CallVoidMethod(env, obj, id, arr);
+ jnitoolsReleaseJavaArray2NativeArray (env, arr, jbt,
+ udata, cbe->arrayLen1, cbe->methodName, 1);
+ }
+}
+
+void LIBAPIENTRY cbf_GLU_TESS_ERROR (GLenum errno)
+{
+ JNIEnv * env = NULL;
+ jobject obj = 0;
+ jclass oclass=0;
+ jmethodID id=0;
+
+ CallbackEntry * cbe = FindCallbackEntry(GLU_TESS_ERROR, GetCurrentGLContext());
+
+ if(cbe==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback entry");
+ return;
+ }
+ env = cbe->env;
+ obj = cbe->jobj;
+ oclass = (jclass) (*env)->GetObjectClass(env, obj);
+ if(oclass!=0)
+ id = (*env)->GetMethodID(env,oclass,cbe->methodName,cbe->signature) ;
+ if(id==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback method: %s %s",
+ cbe->methodName, cbe->signature);
+ return;
+ }
+
+ (*env)->CallVoidMethod(env, obj, id, (jint)errno);
+}
+
+void LIBAPIENTRY cbf_GLU_TESS_ERROR_DATA (GLenum errno, void * udata)
+{
+ JNIEnv * env = NULL;
+ jobject obj = 0;
+ jclass oclass=0;
+ jmethodID id=0;
+ JavaBasicType jbt=0;
+ jarray arr=0;
+
+ CallbackEntry * cbe = FindCallbackEntry(GLU_TESS_ERROR_DATA, GetCurrentGLContext());
+
+ if(cbe==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback entry");
+ return;
+ }
+ env = cbe->env;
+ obj = cbe->jobj;
+ oclass = (jclass) (*env)->GetObjectClass(env, obj);
+ if(oclass!=0)
+ id = (*env)->GetMethodID(env,oclass,cbe->methodName,cbe->signature) ;
+ if(id==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback method: %s %s",
+ cbe->methodName, cbe->signature);
+ return;
+ }
+
+ if(cbe->argListNumber<2)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "too few arguments in registered callback function");
+ return;
+ }
+ jbt = jnitoolsGetJavaBasicType(env,cbe->signature, 1, cbe->methodName);
+ arr = jnitoolsNativeArray2JavaArray (env, jbt, udata, cbe->arrayLen1, cbe->methodName, 2);
+
+ if(arr!=0)
+ {
+ (*env)->CallVoidMethod(env, obj, id, (jint)errno, arr);
+ jnitoolsReleaseJavaArray2NativeArray (env, arr, jbt,
+ udata, cbe->arrayLen1, cbe->methodName, 2);
+ }
+}
+
+void LIBAPIENTRY cbf_GLU_TESS_COMBINE (GLdouble coords[3], void *vdata[4],
+ GLfloat weight[4], void **outdata)
+{
+ JNIEnv * env = NULL;
+ jobject obj = 0;
+ jclass oclass=0;
+ jmethodID id=0;
+ JavaBasicType jbt0=0;
+ jarray arr0=0;
+ JavaBasicType jbt1=0;
+ jarray arr1=0;
+ JavaBasicType jbt2=0;
+ jarray arr2=0;
+ JavaBasicType jbt3=0;
+ jarray arr3=0;
+ void * combdata = NULL;
+ CallbackEntry * cbe = NULL;
+
+ cbe = FindCallbackEntry(GLU_TESS_COMBINE, GetCurrentGLContext());
+
+ if(cbe==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback entry");
+ return;
+ }
+ env = cbe->env;
+ obj = cbe->jobj;
+ oclass = (jclass) (*env)->GetObjectClass(env, obj);
+ if(oclass!=0)
+ id = (*env)->GetMethodID(env,oclass,cbe->methodName,cbe->signature) ;
+ if(id==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback method: %s %s",
+ cbe->methodName, cbe->signature);
+ return;
+ }
+
+ if(cbe->argListNumber<4)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "too few arguments in registered callback function");
+ return;
+ }
+ if(cbe->arrayLen1>3)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "First Array of GLU_TESS_COMBINE cannot exceed 3 elements !");
+ return;
+ }
+ if(cbe->arrayLen2%4!=0)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "Secound Array of GLU_TESS_COMBINE must be a multiple of 4 !");
+ return;
+ }
+ if(cbe->arrayLen3>4)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "First Array of GLU_TESS_COMBINE cannot exceed 4 elements !");
+ return;
+ }
+ jbt0 = jnitoolsGetJavaBasicType(env,cbe->signature, 0, cbe->methodName);
+ arr0 = jnitoolsNativeArray2JavaArray (env, jbt0, coords, cbe->arrayLen1, cbe->methodName, 1);
+ jbt1 = jnitoolsGetJavaBasicType(env,cbe->signature, 1, cbe->methodName);
+ arr1 = jnitoolsNativePtrArray2JavaArray (env, jbt1, vdata, 4, cbe->arrayLen2, cbe->methodName, 2);
+ jbt2 = jnitoolsGetJavaBasicType(env,cbe->signature, 2, cbe->methodName);
+ arr2 = jnitoolsNativeArray2JavaArray (env, jbt2, weight, cbe->arrayLen3, cbe->methodName, 3);
+
+ jbt3 = jnitoolsGetJavaBasicType(env,cbe->signature, 3, cbe->methodName);
+ combdata = jnitoolsCreateNativeArray (jbt3, cbe->arrayLen4, cbe->methodName);
+ arr3 = jnitoolsNativeArray2JavaArray (env, jbt3, combdata, cbe->arrayLen4, cbe->methodName, 4);
+
+ if(arr0!=0 && arr1!=0 && arr2!=0 && arr3!=0)
+ {
+ (*env)->CallVoidMethod(env, obj, id, arr0, arr1, arr2, arr3);
+
+ jnitoolsReleaseJavaArray2NativeArray (env, arr0, jbt0, coords,
+ cbe->arrayLen1, cbe->methodName, 1);
+ jnitoolsReleaseJavaArray2NativeArrayPtr(env, arr1, jbt1, vdata,
+ 4, cbe->arrayLen2, cbe->methodName, 2);
+ jnitoolsReleaseJavaArray2NativeArray (env, arr2, jbt2, weight,
+ cbe->arrayLen3, cbe->methodName, 3);
+ jnitoolsReleaseJavaArray2NativeArray (env, arr3, jbt3, combdata,
+ cbe->arrayLen4, cbe->methodName, 4);
+ *outdata=combdata;
+ }
+}
+
+void LIBAPIENTRY cbf_GLU_TESS_COMBINE_DATA (GLdouble coords[3], void *vdata[4],
+ GLfloat weight[4], void **outdata,
+ void *udata)
+{
+ JNIEnv * env = NULL;
+ jobject obj = 0;
+ jclass oclass=0;
+ jmethodID id=0;
+ JavaBasicType jbt0=0;
+ jarray arr0=0;
+ JavaBasicType jbt1=0;
+ jarray arr1=0;
+ JavaBasicType jbt2=0;
+ jarray arr2=0;
+ JavaBasicType jbt3=0;
+ jarray arr3=0;
+ JavaBasicType jbt4=0;
+ jarray arr4=0;
+ void * combdata = NULL;
+
+ CallbackEntry * cbe = FindCallbackEntry(GLU_TESS_COMBINE_DATA, GetCurrentGLContext());
+
+ if(cbe==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback entry");
+ return;
+ }
+ env = cbe->env;
+ obj = cbe->jobj;
+ oclass = (jclass) (*env)->GetObjectClass(env, obj);
+ if(oclass!=0)
+ id = (*env)->GetMethodID(env,oclass,cbe->methodName,cbe->signature) ;
+ if(id==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback method: %s %s",
+ cbe->methodName, cbe->signature);
+ return;
+ }
+
+ if(cbe->argListNumber<5)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "too few arguments in registered callback function");
+ return;
+ }
+ if(cbe->arrayLen1>3)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "First Array of GLU_TESS_COMBINE_DATA cannot exceed 3 elements !");
+ return;
+ }
+ if(cbe->arrayLen2%4!=0)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "Secound Array of GLU_TESS_COMBINE_DATA must be a multiple of 4 !");
+ return;
+ }
+ if(cbe->arrayLen3>4)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "First Array of GLU_TESS_COMBINE_DATA cannot exceed 4 elements !");
+ return;
+ }
+ jbt0 = jnitoolsGetJavaBasicType(env,cbe->signature, 0, cbe->methodName);
+ arr0 = jnitoolsNativeArray2JavaArray (env, jbt0, coords, cbe->arrayLen1, cbe->methodName, 1);
+ jbt1 = jnitoolsGetJavaBasicType(env,cbe->signature, 1, cbe->methodName);
+ arr1 = jnitoolsNativePtrArray2JavaArray (env, jbt1, vdata, 4, cbe->arrayLen2, cbe->methodName, 2);
+ jbt2 = jnitoolsGetJavaBasicType(env,cbe->signature, 2, cbe->methodName);
+ arr2 = jnitoolsNativeArray2JavaArray (env, jbt2, weight, cbe->arrayLen3, cbe->methodName, 3);
+
+ jbt3 = jnitoolsGetJavaBasicType(env,cbe->signature, 3, cbe->methodName);
+ combdata = jnitoolsCreateNativeArray (jbt3, cbe->arrayLen2, cbe->methodName);
+ arr3 = jnitoolsNativeArray2JavaArray (env, jbt3, combdata, cbe->arrayLen4, cbe->methodName, 4);
+ jbt4 = jnitoolsGetJavaBasicType(env,cbe->signature, 4, cbe->methodName);
+ arr4 = jnitoolsNativeArray2JavaArray (env, jbt4, udata, cbe->arrayLen5, cbe->methodName, 5);
+
+ if(arr0!=0 && arr1!=0 && arr2!=0 && arr3!=0 && arr4!=0)
+ {
+ (*env)->CallVoidMethod(env, obj, id, arr0, arr1, arr2, arr3);
+ jnitoolsReleaseJavaArray2NativeArray (env, arr0, jbt0, coords,
+ cbe->arrayLen1, cbe->methodName, 1);
+ jnitoolsReleaseJavaArray2NativeArrayPtr(env, arr1, jbt1, vdata,
+ 4, cbe->arrayLen2, cbe->methodName, 2);
+ jnitoolsReleaseJavaArray2NativeArray (env, arr2, jbt2, weight,
+ cbe->arrayLen3, cbe->methodName, 3);
+ jnitoolsReleaseJavaArray2NativeArray (env, arr3, jbt3, combdata,
+ cbe->arrayLen4, cbe->methodName, 4);
+ *outdata=combdata;
+ jnitoolsReleaseJavaArray2NativeArray (env, arr4, jbt4, udata,
+ cbe->arrayLen5, cbe->methodName, 5);
+ }
+}
+
+void LIBAPIENTRY cbf_GLU_ERROR (GLenum errno)
+{
+ JNIEnv * env = NULL;
+ jobject obj = 0;
+ jclass oclass=0;
+ jmethodID id=0;
+
+ CallbackEntry * cbe = FindCallbackEntry(GLU_ERROR, GetCurrentGLContext());
+
+ if(cbe==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback entry");
+ return;
+ }
+ env = cbe->env;
+ obj = cbe->jobj;
+ oclass = (jclass) (*env)->GetObjectClass(env, obj);
+ if(oclass!=0)
+ id = (*env)->GetMethodID(env,oclass,cbe->methodName,cbe->signature) ;
+ if(id==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "could not find the java callback method: %s %s",
+ cbe->methodName, cbe->signature);
+ return;
+ }
+
+ (*env)->CallVoidMethod(env, obj, id, (jint)errno);
+}
+
+
diff --git a/CNativeCode/GLUCallbackJNI.h b/CNativeCode/GLUCallbackJNI.h
new file mode 100644
index 0000000..58649fe
--- /dev/null
+++ b/CNativeCode/GLUCallbackJNI.h
@@ -0,0 +1,62 @@
+
+#ifndef GLUCALLBACKJNI
+ #define GLUCALLBACKJNI
+
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <stdarg.h>
+
+ #ifdef _WIN32_
+ #include "winstuff.h"
+ #endif
+
+ #include <jni.h>
+
+ #include<GL/gl.h>
+ #include <GL/glu.h>
+
+ #ifndef LIBAPIENTRY
+ #define LIBAPIENTRY
+ #endif
+ #ifndef LIBAPI
+ #define LIBAPI
+ #endif
+
+ typedef int (*CBF_ANY_FUNCTION) ();
+
+ typedef void (*CBF_GLU_TESS_BEGIN) (GLenum type);
+ typedef void (*CBF_GLU_TESS_BEGIN_DATA) (GLenum type, void *udata);
+ typedef void (*CBF_GLU_TESS_EDGE_FLAG) (GLboolean flag);
+ typedef void (*CBF_GLU_TESS_EDGE_FLAG_DATA) (GLboolean flag, void *udata);
+ typedef void (*CBF_GLU_TESS_VERTEX) (void * vdata);
+ typedef void (*CBF_GLU_TESS_VERTEX_DATA) (void * vdata, void * udata);
+ typedef void (*CBF_GLU_TESS_END) (void);
+ typedef void (*CBF_GLU_TESS_END_DATA) (void * udata);
+ typedef void (*CBF_GLU_TESS_ERROR) (GLenum errno);
+ typedef void (*CBF_GLU_TESS_ERROR_DATA) (GLenum errno, void * udata);
+ typedef void (*CBF_GLU_TESS_COMBINE) (GLdouble coords[3], void *vdata[4],
+ GLfloat weight[4], void **outdata);
+ typedef void (*CBF_GLU_TESS_COMBINE_DATA) (GLdouble coords[3], void *vdata[4],
+ GLfloat weight[4], void **outdata,
+ void *udata);
+ typedef void (*CBF_GLU_ERROR) (GLenum errno);
+
+ LIBAPI void LIBAPIENTRY cbf_GLU_TESS_BEGIN (GLenum type);
+ LIBAPI void LIBAPIENTRY cbf_GLU_TESS_BEGIN_DATA (GLenum type, void *udata);
+ LIBAPI void LIBAPIENTRY cbf_GLU_TESS_EDGE_FLAG (GLboolean flag);
+ LIBAPI void LIBAPIENTRY cbf_GLU_TESS_EDGE_FLAG_DATA (GLboolean flag, void *udata);
+ LIBAPI void LIBAPIENTRY cbf_GLU_TESS_VERTEX (void * vdata);
+ LIBAPI void LIBAPIENTRY cbf_GLU_TESS_VERTEX_DATA (void * vdata, void * udata);
+ LIBAPI void LIBAPIENTRY cbf_GLU_TESS_END (void);
+ LIBAPI void LIBAPIENTRY cbf_GLU_TESS_END_DATA (void * udata);
+ LIBAPI void LIBAPIENTRY cbf_GLU_TESS_ERROR (GLenum errno);
+ LIBAPI void LIBAPIENTRY cbf_GLU_TESS_ERROR_DATA (GLenum errno, void * udata);
+ LIBAPI void LIBAPIENTRY cbf_GLU_TESS_COMBINE (GLdouble coords[3], void *vdata[4],
+ GLfloat weight[4], void **outdata);
+ LIBAPI void LIBAPIENTRY cbf_GLU_TESS_COMBINE_DATA (GLdouble coords[3], void *vdata[4],
+ GLfloat weight[4], void **outdata,
+ void *udata);
+
+ LIBAPI void LIBAPIENTRY cbf_GLU_ERROR (GLenum errno);
+
+#endif
diff --git a/CNativeCode/OpenGLU_JauJNI12_funcs.c b/CNativeCode/OpenGLU_JauJNI12_funcs.c
new file mode 100644
index 0000000..e7489ab
--- /dev/null
+++ b/CNativeCode/OpenGLU_JauJNI12_funcs.c
@@ -0,0 +1,2354 @@
+/* WARNING ! WARNING *** THIS FILE IS GENERATED BY C2J !!!
+
+ DO NOT MAKE ANY CHANGES *** MAKE CHANGES IN THE SKELETON FILES !!!
+*/
+
+
+/*
+ * Leo Chan -- 1995
+ *
+ * This C file takes care of all the native implementation for the
+ * OpenGL utility commands
+ * ---------------
+ *
+ * Sven Goethel
+ *
+ * September 1997
+ */
+
+/*
+ * need to include the JAVA internal header files for macros and function
+ * prototypes required to maipulated JAVA data structures and functions
+ *
+ * StubPreamble.h includes the structure and macro definitions neede to
+ * convert JAVA data structures into C data structures.
+ *
+ */
+
+#ifdef _WIN32_
+ #include "winstuff.h"
+#endif
+
+#include <stdio.h>
+#include <stdlib.h>
+
+#include <jni.h>
+
+/*
+ * the next thing to include are special headers that were created by
+ * JAVAH. They include the C structure definitions for the JAVA classes
+ */
+#include "gl4java_GLUFuncJauJNI.h"
+
+/*--------------------------------------------------------------------------
+ * here on in is just regular apple pie C
+ */
+
+/*
+ * next put any specific header files that are necessary to implement
+ * this native code
+ */
+#include<GL/gl.h>
+#include <GL/glu.h>
+
+#include "GLCallbackHelperJNI.h"
+#include "GLUCallbackJNI.h"
+#include "jnitools.h"
+
+/**
+ * herein lies the native JAVA methods for the OpenGL functions.
+ */
+
+static const char _glu_n_a_string[] = "GLU-String not avaiable !";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNI_gluErrorString ( JNIEnv *env, jobject obj,
+ jint errorCode )
+{
+ const char *tmpString=0;
+
+ tmpString = gluErrorString ( /* jint */ errorCode );
+ if(tmpString==NULL)
+ tmpString=_glu_n_a_string;
+
+ return (*env)->NewStringUTF(env, tmpString);
+}
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNI_gluGetString ( JNIEnv *env, jobject obj,
+ jint name )
+{
+ const char *tmpString=0;
+
+ tmpString = gluGetString ( /* jint */ name);
+ if(tmpString==NULL)
+ tmpString=_glu_n_a_string;
+
+ return (*env)->NewStringUTF(env, tmpString);
+}
+
+static const char * _glu_lib_vendor_="Jausoft - Sven Goethel Software Development";
+static const char * _glu_lib_version_="2.4.1.0";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNI_getNativeVendor ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _glu_lib_vendor_);
+}
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNI_getNativeVersion ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _glu_lib_version_);
+}
+
+static void _AddCallbackNode(JNIEnv *env,
+ jint qnt_obj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature,
+ jint arrayLen1,
+ jint arrayLen2,
+ jint arrayLen3,
+ jint arrayLen4,
+ jint arrayLen5)
+{
+ char * strMethodName = jnitoolsGetJavaString(env, methodName);
+ char * strSignature = jnitoolsGetJavaString(env, signature);
+ jlong glx=0;
+
+ glx = GetCurrentGLContext();
+
+ AddCallbackNode(env, methodClassInstance, strMethodName, strSignature,
+ arrayLen1, arrayLen2, arrayLen3,
+ arrayLen4, arrayLen5,
+ (void *)qnt_obj, which, glx);
+ free(strMethodName);
+ free(strSignature);
+}
+
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluQuadricCallback( JNIEnv *env, jobject obj,
+ jint qobj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature)
+{
+ switch(which)
+ {
+ case GLU_ERROR:
+ gluQuadricCallback((void *)qobj, which,
+ cbf_GLU_ERROR );
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException", "Wrong Callback-Function type (\"which\") !");
+ return;
+ }
+ _AddCallbackNode(env,
+ qobj, which, methodClassInstance, methodName,
+ signature,
+ 0, 0, 0, 0, 0);
+}
+
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluNurbsCallback( JNIEnv *env, jobject obj,
+ jint nobj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature)
+{
+ switch(which)
+ {
+ case GLU_ERROR:
+ gluNurbsCallback((void *)nobj, which,
+ cbf_GLU_ERROR );
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException", "Wrong Callback-Function type (\"which\") !");
+ return;
+ }
+ _AddCallbackNode(env,
+ nobj, which, methodClassInstance, methodName,
+ signature,
+ 0, 0, 0, 0, 0);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluTessCallback( JNIEnv *env, jobject obj,
+ jint tobj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature,
+ jint arrayLen1,
+ jint arrayLen2,
+ jint arrayLen3,
+ jint arrayLen4,
+ jint arrayLen5)
+{
+ switch(which)
+ {
+ case GLU_TESS_BEGIN:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_BEGIN );
+ break;
+ case GLU_TESS_BEGIN_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_BEGIN_DATA );
+ break;
+ case GLU_TESS_EDGE_FLAG:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_EDGE_FLAG );
+ break;
+ case GLU_TESS_EDGE_FLAG_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_EDGE_FLAG_DATA );
+ break;
+ case GLU_TESS_VERTEX:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_VERTEX );
+ break;
+ case GLU_TESS_VERTEX_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_VERTEX_DATA );
+ break;
+ case GLU_TESS_END:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_END );
+ break;
+ case GLU_TESS_END_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_END_DATA );
+ break;
+ case GLU_TESS_ERROR:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_ERROR );
+ break;
+ case GLU_TESS_ERROR_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_ERROR_DATA );
+ break;
+ case GLU_TESS_COMBINE:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_COMBINE );
+ break;
+ case GLU_TESS_COMBINE_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_COMBINE_DATA );
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException", "Wrong Callback-Function type (\"which\") !");
+ return;
+ }
+ _AddCallbackNode(env,
+ tobj, which, methodClassInstance, methodName,
+ signature,
+ arrayLen1, arrayLen2, arrayLen3,
+ arrayLen4, arrayLen5);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluDeleteQuadric( JNIEnv *env, jobject obj,
+ jint qobj )
+{
+ gluDeleteQuadric((void *)qobj);
+ RemoveCallbackNodes((void *)qobj);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluDeleteNurbsRenderer( JNIEnv *env, jobject obj,
+ jint nobj )
+{
+ gluDeleteNurbsRenderer((void *)nobj);
+ RemoveCallbackNodes((void *)nobj);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
+ jint tobj )
+{
+ gluDeleteTess((GLUtesselator *)tobj);
+ RemoveCallbackNodes((void *)tobj);
+}
+
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: glu-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLUFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLookAt ( GLdouble eyex , GLdouble eyey , GLdouble eyez , GLdouble centerx , GLdouble centery , GLdouble centerz , GLdouble upx , GLdouble upy , GLdouble upz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluLookAt (
+ JNIEnv *env, jobject obj,
+ jdouble eyex,
+ jdouble eyey,
+ jdouble eyez,
+ jdouble centerx,
+ jdouble centery,
+ jdouble centerz,
+ jdouble upx,
+ jdouble upy,
+ jdouble upz)
+ {
+
+ gluLookAt (
+ (GLdouble) eyex,
+ (GLdouble) eyey,
+ (GLdouble) eyez,
+ (GLdouble) centerx,
+ (GLdouble) centery,
+ (GLdouble) centerz,
+ (GLdouble) upx,
+ (GLdouble) upy,
+ (GLdouble) upz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluOrtho2D ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluOrtho2D (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top)
+ {
+
+ gluOrtho2D (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPerspective ( GLdouble fovy , GLdouble aspect , GLdouble zNear , GLdouble zFar ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPerspective (
+ JNIEnv *env, jobject obj,
+ jdouble fovy,
+ jdouble aspect,
+ jdouble zNear,
+ jdouble zFar)
+ {
+
+ gluPerspective (
+ (GLdouble) fovy,
+ (GLdouble) aspect,
+ (GLdouble) zNear,
+ (GLdouble) zFar
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPickMatrix ( GLdouble x , GLdouble y , GLdouble width , GLdouble height , GLint * viewport ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPickMatrix (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble width,
+ jdouble height,
+ jintArray viewport)
+ {
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+
+ if(viewport!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, viewport, &isCopiedArray4);
+ }
+ gluPickMatrix (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) width,
+ (GLdouble) height,
+ (GLint *) ptr4
+ );
+
+ if(viewport!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, viewport, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluProject ( GLdouble objx , GLdouble objy , GLdouble objz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * winx , GLdouble * winy , GLdouble * winz ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluProject (
+ JNIEnv *env, jobject obj,
+ jdouble objx,
+ jdouble objy,
+ jdouble objz,
+ jdoubleArray modelMatrix,
+ jdoubleArray projMatrix,
+ jintArray viewport,
+ jdoubleArray winx,
+ jdoubleArray winy,
+ jdoubleArray winz)
+ {
+ jint ret;
+
+ jdouble *ptr3 = NULL;
+ jdouble *ptr4 = NULL;
+ jint *ptr5 = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, modelMatrix, 0);
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, projMatrix, 0);
+ }
+ if(viewport!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, viewport, 0);
+ }
+ if(winx!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, winx, &isCopiedArray6);
+ }
+ if(winy!=NULL)
+ {
+ ptr7 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, winy, &isCopiedArray7);
+ }
+ if(winz!=NULL)
+ {
+ ptr8 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, winz, &isCopiedArray8);
+ }
+ ret = (jint) gluProject (
+ (GLdouble) objx,
+ (GLdouble) objy,
+ (GLdouble) objz,
+ (const GLdouble *) ptr3,
+ (const GLdouble *) ptr4,
+ (const GLint *) ptr5,
+ (GLdouble *) ptr6,
+ (GLdouble *) ptr7,
+ (GLdouble *) ptr8
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, modelMatrix, ptr3, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, projMatrix, ptr4, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, viewport, ptr5, JNI_ABORT);
+ }
+ if(winx!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, winx, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(winy!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, winy, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(winz!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, winz, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluUnProject ( GLdouble winx , GLdouble winy , GLdouble winz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * objx , GLdouble * objy , GLdouble * objz ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluUnProject (
+ JNIEnv *env, jobject obj,
+ jdouble winx,
+ jdouble winy,
+ jdouble winz,
+ jdoubleArray modelMatrix,
+ jdoubleArray projMatrix,
+ jintArray viewport,
+ jdoubleArray objx,
+ jdoubleArray objy,
+ jdoubleArray objz)
+ {
+ jint ret;
+
+ jdouble *ptr3 = NULL;
+ jdouble *ptr4 = NULL;
+ jint *ptr5 = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, modelMatrix, 0);
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, projMatrix, 0);
+ }
+ if(viewport!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, viewport, 0);
+ }
+ if(objx!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, objx, &isCopiedArray6);
+ }
+ if(objy!=NULL)
+ {
+ ptr7 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, objy, &isCopiedArray7);
+ }
+ if(objz!=NULL)
+ {
+ ptr8 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, objz, &isCopiedArray8);
+ }
+ ret = (jint) gluUnProject (
+ (GLdouble) winx,
+ (GLdouble) winy,
+ (GLdouble) winz,
+ (const GLdouble *) ptr3,
+ (const GLdouble *) ptr4,
+ (const GLint *) ptr5,
+ (GLdouble *) ptr6,
+ (GLdouble *) ptr7,
+ (GLdouble *) ptr8
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, modelMatrix, ptr3, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, projMatrix, ptr4, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, viewport, ptr5, JNI_ABORT);
+ }
+ if(objx!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, objx, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(objy!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, objy, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(objz!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, objz, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluScaleImage ( GLenum format , GLsizei widthin , GLsizei heightin , GLenum typein , const char * datain , GLsizei widthout , GLsizei heightout , GLenum typeout , char * dataout ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluScaleImage (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint widthin,
+ jint heightin,
+ jint typein,
+ jbyteArray datain,
+ jint widthout,
+ jint heightout,
+ jint typeout,
+ jbyteArray dataout)
+ {
+ jint ret;
+
+ jbyte *ptr4 = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jbyte *ptr8 = NULL;
+
+ if(datain!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, datain, 0);
+ }
+ if(dataout!=NULL)
+ {
+ ptr8 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, dataout, &isCopiedArray8);
+ }
+ ret = (jint) gluScaleImage (
+ (GLenum) format,
+ (GLsizei) widthin,
+ (GLsizei) heightin,
+ (GLenum) typein,
+ (const char *) ptr4,
+ (GLsizei) widthout,
+ (GLsizei) heightout,
+ (GLenum) typeout,
+ (char *) ptr8
+ );
+
+ if(datain!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, datain, ptr4, JNI_ABORT);
+ }
+ if(dataout!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, dataout, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild1DMipmaps ( GLenum target , GLint components , GLint width , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ jint ret;
+
+ jbyte *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ jint ret;
+
+ jshort *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ jint ret;
+
+ jint *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ jint ret;
+
+ jfloat *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ jint ret;
+
+ jdouble *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ jint ret;
+
+ jboolean *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ jint ret;
+
+ jlong *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild2DMipmaps ( GLenum target , GLint components , GLint width , GLint height , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ jint ret;
+
+ jbyte *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ jint ret;
+
+ jshort *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ jint ret;
+
+ jint *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ jint ret;
+
+ jfloat *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ jint ret;
+
+ jdouble *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ jint ret;
+
+ jboolean *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ jint ret;
+
+ jlong *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUquadricObj * gluNewQuadric ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewQuadric (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewQuadric (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricDrawStyle ( GLUquadricObj * quadObject , GLenum drawStyle ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricDrawStyle (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint drawStyle)
+ {
+
+ gluQuadricDrawStyle (
+ (GLUquadricObj *) quadObject,
+ (GLenum) drawStyle
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricOrientation ( GLUquadricObj * quadObject , GLenum orientation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricOrientation (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint orientation)
+ {
+
+ gluQuadricOrientation (
+ (GLUquadricObj *) quadObject,
+ (GLenum) orientation
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricNormals ( GLUquadricObj * quadObject , GLenum normals ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricNormals (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint normals)
+ {
+
+ gluQuadricNormals (
+ (GLUquadricObj *) quadObject,
+ (GLenum) normals
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricTexture ( GLUquadricObj * quadObject , GLboolean textureCoords ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricTexture (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jboolean textureCoords)
+ {
+
+ gluQuadricTexture (
+ (GLUquadricObj *) quadObject,
+ (GLboolean) textureCoords
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluCylinder ( GLUquadricObj * qobj , GLdouble baseRadius , GLdouble topRadius , GLdouble height , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluCylinder (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble baseRadius,
+ jdouble topRadius,
+ jdouble height,
+ jint slices,
+ jint stacks)
+ {
+
+ gluCylinder (
+ (GLUquadricObj *) qobj,
+ (GLdouble) baseRadius,
+ (GLdouble) topRadius,
+ (GLdouble) height,
+ (GLint) slices,
+ (GLint) stacks
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluSphere ( GLUquadricObj * qobj , GLdouble radius , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluSphere (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble radius,
+ jint slices,
+ jint stacks)
+ {
+
+ gluSphere (
+ (GLUquadricObj *) qobj,
+ (GLdouble) radius,
+ (GLint) slices,
+ (GLint) stacks
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluDisk (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble innerRadius,
+ jdouble outerRadius,
+ jint slices,
+ jint loops)
+ {
+
+ gluDisk (
+ (GLUquadricObj *) qobj,
+ (GLdouble) innerRadius,
+ (GLdouble) outerRadius,
+ (GLint) slices,
+ (GLint) loops
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPartialDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops , GLdouble startAngle , GLdouble sweepAngle ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPartialDisk (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble innerRadius,
+ jdouble outerRadius,
+ jint slices,
+ jint loops,
+ jdouble startAngle,
+ jdouble sweepAngle)
+ {
+
+ gluPartialDisk (
+ (GLUquadricObj *) qobj,
+ (GLdouble) innerRadius,
+ (GLdouble) outerRadius,
+ (GLint) slices,
+ (GLint) loops,
+ (GLdouble) startAngle,
+ (GLdouble) sweepAngle
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUnurbsObj * gluNewNurbsRenderer ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewNurbsRenderer (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewNurbsRenderer (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLoadSamplingMatrices ( GLUnurbsObj * nobj , const GLfloat modelMatrix [ 16 ] , const GLfloat projMatrix [ 16 ] , const GLint viewport [ 4 ] ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluLoadSamplingMatrices (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jfloatArray modelMatrix,
+ jfloatArray projMatrix,
+ jintArray viewport)
+ {
+ jfloat *ptr1 = NULL;
+ jfloat *ptr2 = NULL;
+ jint *ptr3 = NULL;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, modelMatrix, 0);
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, projMatrix, 0);
+ }
+ if(viewport!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, viewport, 0);
+ }
+ gluLoadSamplingMatrices (
+ (GLUnurbsObj *) nobj,
+ (const GLfloat *) ptr1,
+ (const GLfloat *) ptr2,
+ (const GLint *) ptr3
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, modelMatrix, ptr1, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, projMatrix, ptr2, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, viewport, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsProperty (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint property,
+ jfloat value)
+ {
+
+ gluNurbsProperty (
+ (GLUnurbsObj *) nobj,
+ (GLenum) property,
+ (GLfloat) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat * value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluGetNurbsProperty (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint property,
+ jfloatArray value)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(value!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, value, &isCopiedArray2);
+ }
+ gluGetNurbsProperty (
+ (GLUnurbsObj *) nobj,
+ (GLenum) property,
+ (GLfloat *) ptr2
+ );
+
+ if(value!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, value, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginCurve (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndCurve (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsCurve ( GLUnurbsObj * nobj , GLint nknots , GLfloat * knot , GLint stride , GLfloat * ctlarray , GLint order , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint nknots,
+ jfloatArray knot,
+ jint stride,
+ jfloatArray ctlarray,
+ jint order,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+
+ if(knot!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, knot, &isCopiedArray2);
+ }
+ if(ctlarray!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ctlarray, &isCopiedArray4);
+ }
+ gluNurbsCurve (
+ (GLUnurbsObj *) nobj,
+ (GLint) nknots,
+ (GLfloat *) ptr2,
+ (GLint) stride,
+ (GLfloat *) ptr4,
+ (GLint) order,
+ (GLenum) type
+ );
+
+ if(knot!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, knot, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(ctlarray!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ctlarray, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginSurface (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndSurface (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsSurface ( GLUnurbsObj * nobj , GLint sknot_count , GLfloat * sknot , GLint tknot_count , GLfloat * tknot , GLint s_stride , GLint t_stride , GLfloat * ctlarray , GLint sorder , GLint torder , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint sknot_count,
+ jfloatArray sknot,
+ jint tknot_count,
+ jfloatArray tknot,
+ jint s_stride,
+ jint t_stride,
+ jfloatArray ctlarray,
+ jint sorder,
+ jint torder,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jfloat *ptr7 = NULL;
+
+ if(sknot!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, sknot, &isCopiedArray2);
+ }
+ if(tknot!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, tknot, &isCopiedArray4);
+ }
+ if(ctlarray!=NULL)
+ {
+ ptr7 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ctlarray, &isCopiedArray7);
+ }
+ gluNurbsSurface (
+ (GLUnurbsObj *) nobj,
+ (GLint) sknot_count,
+ (GLfloat *) ptr2,
+ (GLint) tknot_count,
+ (GLfloat *) ptr4,
+ (GLint) s_stride,
+ (GLint) t_stride,
+ (GLfloat *) ptr7,
+ (GLint) sorder,
+ (GLint) torder,
+ (GLenum) type
+ );
+
+ if(sknot!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, sknot, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(tknot!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, tknot, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(ctlarray!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ctlarray, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginTrim (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginTrim (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndTrim (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndTrim (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPwlCurve ( GLUnurbsObj * nobj , GLint count , GLfloat * array , GLint stride , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPwlCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint count,
+ jfloatArray array,
+ jint stride,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(array!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, array, &isCopiedArray2);
+ }
+ gluPwlCurve (
+ (GLUnurbsObj *) nobj,
+ (GLint) count,
+ (GLfloat *) ptr2,
+ (GLint) stride,
+ (GLenum) type
+ );
+
+ if(array!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, array, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUtesselator * gluNewTess ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewTess (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewTess (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginPolygon ( GLUtesselator * tobj , void * polygon_data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3B (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jbyteArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3S (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jshortArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3I (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jintArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3F (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jfloatArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3D (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3Z (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jbooleanArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3J (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jlongArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginContour (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessBeginContour (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessVertex ( GLUtesselator * tobj , GLdouble coords [ 3 ] , void * vertex_data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3B (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jbyteArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3S (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jshortArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3I (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jintArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3F (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jfloatArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jdoubleArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3Z (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jbooleanArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3J (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jlongArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessEndContour (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessEndContour (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessEndPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessEndPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessProperty (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint which,
+ jdouble value)
+ {
+
+ gluTessProperty (
+ (GLUtesselator *) tobj,
+ (GLenum) which,
+ (GLdouble) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessNormal ( GLUtesselator * tobj , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessNormal (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+
+ gluTessNormal (
+ (GLUtesselator *) tobj,
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble * value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluGetTessProperty (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint which,
+ jdoubleArray value)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+
+ if(value!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, value, &isCopiedArray2);
+ }
+ gluGetTessProperty (
+ (GLUtesselator *) tobj,
+ (GLenum) which,
+ (GLdouble *) ptr2
+ );
+
+ if(value!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, value, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluBeginPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNextContour ( GLUtesselator * tobj , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNextContour (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint type)
+ {
+
+ gluNextContour (
+ (GLUtesselator *) tobj,
+ (GLenum) type
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluEndPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/CNativeCode/OpenGLU_JauJNI12tst_funcs.c b/CNativeCode/OpenGLU_JauJNI12tst_funcs.c
new file mode 100644
index 0000000..82c6f5d
--- /dev/null
+++ b/CNativeCode/OpenGLU_JauJNI12tst_funcs.c
@@ -0,0 +1,2683 @@
+/* WARNING ! WARNING *** THIS FILE IS GENERATED BY C2J !!!
+
+ DO NOT MAKE ANY CHANGES *** MAKE CHANGES IN THE SKELETON FILES !!!
+*/
+
+
+/*
+ * Leo Chan -- 1995
+ *
+ * This C file takes care of all the native implementation for the
+ * OpenGL utility commands
+ * ---------------
+ *
+ * Sven Goethel
+ *
+ * September 1997
+ */
+
+/*
+ * need to include the JAVA internal header files for macros and function
+ * prototypes required to maipulated JAVA data structures and functions
+ *
+ * StubPreamble.h includes the structure and macro definitions neede to
+ * convert JAVA data structures into C data structures.
+ *
+ */
+
+#ifdef _WIN32_
+ #include "winstuff.h"
+#endif
+
+#include <stdio.h>
+#include <stdlib.h>
+
+#include <jni.h>
+
+/*
+ * the next thing to include are special headers that were created by
+ * JAVAH. They include the C structure definitions for the JAVA classes
+ */
+#include "gl4java_GLUFuncJauJNI.h"
+
+/*--------------------------------------------------------------------------
+ * here on in is just regular apple pie C
+ */
+
+/*
+ * next put any specific header files that are necessary to implement
+ * this native code
+ */
+#include<GL/gl.h>
+#include <GL/glu.h>
+
+#include "GLCallbackHelperJNI.h"
+#include "GLUCallbackJNI.h"
+#include "jnitools.h"
+
+/**
+ * herein lies the native JAVA methods for the OpenGL functions.
+ */
+
+static const char _glu_n_a_string[] = "GLU-String not avaiable !";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNI_gluErrorString ( JNIEnv *env, jobject obj,
+ jint errorCode )
+{
+ const char *tmpString=0;
+
+ tmpString = gluErrorString ( /* jint */ errorCode );
+ if(tmpString==NULL)
+ tmpString=_glu_n_a_string;
+
+ return (*env)->NewStringUTF(env, tmpString);
+}
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNI_gluGetString ( JNIEnv *env, jobject obj,
+ jint name )
+{
+ const char *tmpString=0;
+
+ tmpString = gluGetString ( /* jint */ name);
+ if(tmpString==NULL)
+ tmpString=_glu_n_a_string;
+
+ return (*env)->NewStringUTF(env, tmpString);
+}
+
+static const char * _glu_lib_vendor_="Jausoft - Sven Goethel Software Development";
+static const char * _glu_lib_version_="2.4.1.0";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNI_getNativeVendor ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _glu_lib_vendor_);
+}
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNI_getNativeVersion ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _glu_lib_version_);
+}
+
+static void _AddCallbackNode(JNIEnv *env,
+ jint qnt_obj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature,
+ jint arrayLen1,
+ jint arrayLen2,
+ jint arrayLen3,
+ jint arrayLen4,
+ jint arrayLen5)
+{
+ char * strMethodName = jnitoolsGetJavaString(env, methodName);
+ char * strSignature = jnitoolsGetJavaString(env, signature);
+ jlong glx=0;
+
+ glx = GetCurrentGLContext();
+
+ AddCallbackNode(env, methodClassInstance, strMethodName, strSignature,
+ arrayLen1, arrayLen2, arrayLen3,
+ arrayLen4, arrayLen5,
+ (void *)qnt_obj, which, glx);
+ free(strMethodName);
+ free(strSignature);
+}
+
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluQuadricCallback( JNIEnv *env, jobject obj,
+ jint qobj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature)
+{
+ switch(which)
+ {
+ case GLU_ERROR:
+ gluQuadricCallback((void *)qobj, which,
+ cbf_GLU_ERROR );
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException", "Wrong Callback-Function type (\"which\") !");
+ return;
+ }
+ _AddCallbackNode(env,
+ qobj, which, methodClassInstance, methodName,
+ signature,
+ 0, 0, 0, 0, 0);
+}
+
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluNurbsCallback( JNIEnv *env, jobject obj,
+ jint nobj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature)
+{
+ switch(which)
+ {
+ case GLU_ERROR:
+ gluNurbsCallback((void *)nobj, which,
+ cbf_GLU_ERROR );
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException", "Wrong Callback-Function type (\"which\") !");
+ return;
+ }
+ _AddCallbackNode(env,
+ nobj, which, methodClassInstance, methodName,
+ signature,
+ 0, 0, 0, 0, 0);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluTessCallback( JNIEnv *env, jobject obj,
+ jint tobj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature,
+ jint arrayLen1,
+ jint arrayLen2,
+ jint arrayLen3,
+ jint arrayLen4,
+ jint arrayLen5)
+{
+ switch(which)
+ {
+ case GLU_TESS_BEGIN:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_BEGIN );
+ break;
+ case GLU_TESS_BEGIN_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_BEGIN_DATA );
+ break;
+ case GLU_TESS_EDGE_FLAG:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_EDGE_FLAG );
+ break;
+ case GLU_TESS_EDGE_FLAG_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_EDGE_FLAG_DATA );
+ break;
+ case GLU_TESS_VERTEX:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_VERTEX );
+ break;
+ case GLU_TESS_VERTEX_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_VERTEX_DATA );
+ break;
+ case GLU_TESS_END:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_END );
+ break;
+ case GLU_TESS_END_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_END_DATA );
+ break;
+ case GLU_TESS_ERROR:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_ERROR );
+ break;
+ case GLU_TESS_ERROR_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_ERROR_DATA );
+ break;
+ case GLU_TESS_COMBINE:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_COMBINE );
+ break;
+ case GLU_TESS_COMBINE_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_COMBINE_DATA );
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException", "Wrong Callback-Function type (\"which\") !");
+ return;
+ }
+ _AddCallbackNode(env,
+ tobj, which, methodClassInstance, methodName,
+ signature,
+ arrayLen1, arrayLen2, arrayLen3,
+ arrayLen4, arrayLen5);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluDeleteQuadric( JNIEnv *env, jobject obj,
+ jint qobj )
+{
+ gluDeleteQuadric((void *)qobj);
+ RemoveCallbackNodes((void *)qobj);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluDeleteNurbsRenderer( JNIEnv *env, jobject obj,
+ jint nobj )
+{
+ gluDeleteNurbsRenderer((void *)nobj);
+ RemoveCallbackNodes((void *)nobj);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
+ jint tobj )
+{
+ gluDeleteTess((GLUtesselator *)tobj);
+ RemoveCallbackNodes((void *)tobj);
+}
+
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: glu-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLUFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLookAt ( GLdouble eyex , GLdouble eyey , GLdouble eyez , GLdouble centerx , GLdouble centery , GLdouble centerz , GLdouble upx , GLdouble upy , GLdouble upz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluLookAt (
+ JNIEnv *env, jobject obj,
+ jdouble eyex,
+ jdouble eyey,
+ jdouble eyez,
+ jdouble centerx,
+ jdouble centery,
+ jdouble centerz,
+ jdouble upx,
+ jdouble upy,
+ jdouble upz)
+ {
+
+ gluLookAt (
+ (GLdouble) eyex,
+ (GLdouble) eyey,
+ (GLdouble) eyez,
+ (GLdouble) centerx,
+ (GLdouble) centery,
+ (GLdouble) centerz,
+ (GLdouble) upx,
+ (GLdouble) upy,
+ (GLdouble) upz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluOrtho2D ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluOrtho2D (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top)
+ {
+
+ gluOrtho2D (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPerspective ( GLdouble fovy , GLdouble aspect , GLdouble zNear , GLdouble zFar ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPerspective (
+ JNIEnv *env, jobject obj,
+ jdouble fovy,
+ jdouble aspect,
+ jdouble zNear,
+ jdouble zFar)
+ {
+
+ gluPerspective (
+ (GLdouble) fovy,
+ (GLdouble) aspect,
+ (GLdouble) zNear,
+ (GLdouble) zFar
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPickMatrix ( GLdouble x , GLdouble y , GLdouble width , GLdouble height , GLint * viewport ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPickMatrix (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble width,
+ jdouble height,
+ jintArray viewport)
+ {
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(viewport!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, viewport, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluPickMatrix arg: viewport");
+ }
+ }
+ gluPickMatrix (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) width,
+ (GLdouble) height,
+ (GLint *) ptr4
+ );
+
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluProject ( GLdouble objx , GLdouble objy , GLdouble objz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * winx , GLdouble * winy , GLdouble * winz ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluProject (
+ JNIEnv *env, jobject obj,
+ jdouble objx,
+ jdouble objy,
+ jdouble objz,
+ jdoubleArray modelMatrix,
+ jdoubleArray projMatrix,
+ jintArray viewport,
+ jdoubleArray winx,
+ jdoubleArray winy,
+ jdoubleArray winz)
+ {
+ jint ret;
+
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ static int isWarned7 = 0;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, modelMatrix, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by gluProject arg: modelMatrix");
+ }
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, projMatrix, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluProject arg: projMatrix");
+ }
+ }
+ if(viewport!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, viewport, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluProject arg: viewport");
+ }
+ }
+ if(winx!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, winx, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluProject arg: winx");
+ }
+ }
+ if(winy!=NULL)
+ {
+ ptr7 = (*env)->GetDoubleArrayElements(env, winy, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by gluProject arg: winy");
+ }
+ }
+ if(winz!=NULL)
+ {
+ ptr8 = (*env)->GetDoubleArrayElements(env, winz, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by gluProject arg: winz");
+ }
+ }
+ ret = (jint) gluProject (
+ (GLdouble) objx,
+ (GLdouble) objy,
+ (GLdouble) objz,
+ (const GLdouble *) ptr3,
+ (const GLdouble *) ptr4,
+ (const GLint *) ptr5,
+ (GLdouble *) ptr6,
+ (GLdouble *) ptr7,
+ (GLdouble *) ptr8
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, modelMatrix, ptr3, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, projMatrix, ptr4, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr5, JNI_ABORT);
+ }
+ if(winx!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, winx, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(winy!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, winy, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(winz!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, winz, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluUnProject ( GLdouble winx , GLdouble winy , GLdouble winz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * objx , GLdouble * objy , GLdouble * objz ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluUnProject (
+ JNIEnv *env, jobject obj,
+ jdouble winx,
+ jdouble winy,
+ jdouble winz,
+ jdoubleArray modelMatrix,
+ jdoubleArray projMatrix,
+ jintArray viewport,
+ jdoubleArray objx,
+ jdoubleArray objy,
+ jdoubleArray objz)
+ {
+ jint ret;
+
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ static int isWarned7 = 0;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, modelMatrix, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by gluUnProject arg: modelMatrix");
+ }
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, projMatrix, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluUnProject arg: projMatrix");
+ }
+ }
+ if(viewport!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, viewport, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluUnProject arg: viewport");
+ }
+ }
+ if(objx!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, objx, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluUnProject arg: objx");
+ }
+ }
+ if(objy!=NULL)
+ {
+ ptr7 = (*env)->GetDoubleArrayElements(env, objy, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by gluUnProject arg: objy");
+ }
+ }
+ if(objz!=NULL)
+ {
+ ptr8 = (*env)->GetDoubleArrayElements(env, objz, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by gluUnProject arg: objz");
+ }
+ }
+ ret = (jint) gluUnProject (
+ (GLdouble) winx,
+ (GLdouble) winy,
+ (GLdouble) winz,
+ (const GLdouble *) ptr3,
+ (const GLdouble *) ptr4,
+ (const GLint *) ptr5,
+ (GLdouble *) ptr6,
+ (GLdouble *) ptr7,
+ (GLdouble *) ptr8
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, modelMatrix, ptr3, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, projMatrix, ptr4, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr5, JNI_ABORT);
+ }
+ if(objx!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, objx, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(objy!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, objy, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(objz!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, objz, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluScaleImage ( GLenum format , GLsizei widthin , GLsizei heightin , GLenum typein , const char * datain , GLsizei widthout , GLsizei heightout , GLenum typeout , char * dataout ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluScaleImage (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint widthin,
+ jint heightin,
+ jint typein,
+ jbyteArray datain,
+ jint widthout,
+ jint heightout,
+ jint typeout,
+ jbyteArray dataout)
+ {
+ jint ret;
+
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jbyte *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(datain!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, datain, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluScaleImage arg: datain");
+ }
+ }
+ if(dataout!=NULL)
+ {
+ ptr8 = (*env)->GetByteArrayElements(env, dataout, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by gluScaleImage arg: dataout");
+ }
+ }
+ ret = (jint) gluScaleImage (
+ (GLenum) format,
+ (GLsizei) widthin,
+ (GLsizei) heightin,
+ (GLenum) typein,
+ (const char *) ptr4,
+ (GLsizei) widthout,
+ (GLsizei) heightout,
+ (GLenum) typeout,
+ (char *) ptr8
+ );
+
+ if(datain!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, datain, ptr4, JNI_ABORT);
+ }
+ if(dataout!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, dataout, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild1DMipmaps ( GLenum target , GLint components , GLint width , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild2DMipmaps ( GLenum target , GLint components , GLint width , GLint height , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUquadricObj * gluNewQuadric ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewQuadric (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewQuadric (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricDrawStyle ( GLUquadricObj * quadObject , GLenum drawStyle ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricDrawStyle (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint drawStyle)
+ {
+
+ gluQuadricDrawStyle (
+ (GLUquadricObj *) quadObject,
+ (GLenum) drawStyle
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricOrientation ( GLUquadricObj * quadObject , GLenum orientation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricOrientation (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint orientation)
+ {
+
+ gluQuadricOrientation (
+ (GLUquadricObj *) quadObject,
+ (GLenum) orientation
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricNormals ( GLUquadricObj * quadObject , GLenum normals ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricNormals (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint normals)
+ {
+
+ gluQuadricNormals (
+ (GLUquadricObj *) quadObject,
+ (GLenum) normals
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricTexture ( GLUquadricObj * quadObject , GLboolean textureCoords ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricTexture (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jboolean textureCoords)
+ {
+
+ gluQuadricTexture (
+ (GLUquadricObj *) quadObject,
+ (GLboolean) textureCoords
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluCylinder ( GLUquadricObj * qobj , GLdouble baseRadius , GLdouble topRadius , GLdouble height , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluCylinder (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble baseRadius,
+ jdouble topRadius,
+ jdouble height,
+ jint slices,
+ jint stacks)
+ {
+
+ gluCylinder (
+ (GLUquadricObj *) qobj,
+ (GLdouble) baseRadius,
+ (GLdouble) topRadius,
+ (GLdouble) height,
+ (GLint) slices,
+ (GLint) stacks
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluSphere ( GLUquadricObj * qobj , GLdouble radius , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluSphere (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble radius,
+ jint slices,
+ jint stacks)
+ {
+
+ gluSphere (
+ (GLUquadricObj *) qobj,
+ (GLdouble) radius,
+ (GLint) slices,
+ (GLint) stacks
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluDisk (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble innerRadius,
+ jdouble outerRadius,
+ jint slices,
+ jint loops)
+ {
+
+ gluDisk (
+ (GLUquadricObj *) qobj,
+ (GLdouble) innerRadius,
+ (GLdouble) outerRadius,
+ (GLint) slices,
+ (GLint) loops
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPartialDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops , GLdouble startAngle , GLdouble sweepAngle ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPartialDisk (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble innerRadius,
+ jdouble outerRadius,
+ jint slices,
+ jint loops,
+ jdouble startAngle,
+ jdouble sweepAngle)
+ {
+
+ gluPartialDisk (
+ (GLUquadricObj *) qobj,
+ (GLdouble) innerRadius,
+ (GLdouble) outerRadius,
+ (GLint) slices,
+ (GLint) loops,
+ (GLdouble) startAngle,
+ (GLdouble) sweepAngle
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUnurbsObj * gluNewNurbsRenderer ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewNurbsRenderer (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewNurbsRenderer (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLoadSamplingMatrices ( GLUnurbsObj * nobj , const GLfloat modelMatrix [ 16 ] , const GLfloat projMatrix [ 16 ] , const GLint viewport [ 4 ] ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluLoadSamplingMatrices (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jfloatArray modelMatrix,
+ jfloatArray projMatrix,
+ jintArray viewport)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, modelMatrix, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluLoadSamplingMatrices arg: modelMatrix");
+ }
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, projMatrix, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluLoadSamplingMatrices arg: projMatrix");
+ }
+ }
+ if(viewport!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, viewport, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by gluLoadSamplingMatrices arg: viewport");
+ }
+ }
+ gluLoadSamplingMatrices (
+ (GLUnurbsObj *) nobj,
+ (const GLfloat *) ptr1,
+ (const GLfloat *) ptr2,
+ (const GLint *) ptr3
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, modelMatrix, ptr1, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, projMatrix, ptr2, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsProperty (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint property,
+ jfloat value)
+ {
+
+ gluNurbsProperty (
+ (GLUnurbsObj *) nobj,
+ (GLenum) property,
+ (GLfloat) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat * value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluGetNurbsProperty (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint property,
+ jfloatArray value)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(value!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, value, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluGetNurbsProperty arg: value");
+ }
+ }
+ gluGetNurbsProperty (
+ (GLUnurbsObj *) nobj,
+ (GLenum) property,
+ (GLfloat *) ptr2
+ );
+
+ if(value!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, value, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginCurve (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndCurve (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsCurve ( GLUnurbsObj * nobj , GLint nknots , GLfloat * knot , GLint stride , GLfloat * ctlarray , GLint order , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint nknots,
+ jfloatArray knot,
+ jint stride,
+ jfloatArray ctlarray,
+ jint order,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(knot!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, knot, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluNurbsCurve arg: knot");
+ }
+ }
+ if(ctlarray!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, ctlarray, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluNurbsCurve arg: ctlarray");
+ }
+ }
+ gluNurbsCurve (
+ (GLUnurbsObj *) nobj,
+ (GLint) nknots,
+ (GLfloat *) ptr2,
+ (GLint) stride,
+ (GLfloat *) ptr4,
+ (GLint) order,
+ (GLenum) type
+ );
+
+ if(knot!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, knot, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(ctlarray!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ctlarray, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginSurface (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndSurface (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsSurface ( GLUnurbsObj * nobj , GLint sknot_count , GLfloat * sknot , GLint tknot_count , GLfloat * tknot , GLint s_stride , GLint t_stride , GLfloat * ctlarray , GLint sorder , GLint torder , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint sknot_count,
+ jfloatArray sknot,
+ jint tknot_count,
+ jfloatArray tknot,
+ jint s_stride,
+ jint t_stride,
+ jfloatArray ctlarray,
+ jint sorder,
+ jint torder,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jfloat *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(sknot!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, sknot, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluNurbsSurface arg: sknot");
+ }
+ }
+ if(tknot!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, tknot, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluNurbsSurface arg: tknot");
+ }
+ }
+ if(ctlarray!=NULL)
+ {
+ ptr7 = (*env)->GetFloatArrayElements(env, ctlarray, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by gluNurbsSurface arg: ctlarray");
+ }
+ }
+ gluNurbsSurface (
+ (GLUnurbsObj *) nobj,
+ (GLint) sknot_count,
+ (GLfloat *) ptr2,
+ (GLint) tknot_count,
+ (GLfloat *) ptr4,
+ (GLint) s_stride,
+ (GLint) t_stride,
+ (GLfloat *) ptr7,
+ (GLint) sorder,
+ (GLint) torder,
+ (GLenum) type
+ );
+
+ if(sknot!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, sknot, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(tknot!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, tknot, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(ctlarray!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ctlarray, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginTrim (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginTrim (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndTrim (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndTrim (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPwlCurve ( GLUnurbsObj * nobj , GLint count , GLfloat * array , GLint stride , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPwlCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint count,
+ jfloatArray array,
+ jint stride,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(array!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, array, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluPwlCurve arg: array");
+ }
+ }
+ gluPwlCurve (
+ (GLUnurbsObj *) nobj,
+ (GLint) count,
+ (GLfloat *) ptr2,
+ (GLint) stride,
+ (GLenum) type
+ );
+
+ if(array!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, array, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUtesselator * gluNewTess ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewTess (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewTess (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginPolygon ( GLUtesselator * tobj , void * polygon_data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3B (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jbyteArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetByteArrayElements(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3S (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jshortArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3I (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jintArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3F (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jfloatArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3D (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3Z (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jbooleanArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3J (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jlongArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetLongArrayElements(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginContour (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessBeginContour (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessVertex ( GLUtesselator * tobj , GLdouble coords [ 3 ] , void * vertex_data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3B (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jbyteArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3S (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jshortArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3I (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jintArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3F (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jfloatArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jdoubleArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3Z (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jbooleanArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3J (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jlongArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessEndContour (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessEndContour (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessEndPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessEndPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessProperty (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint which,
+ jdouble value)
+ {
+
+ gluTessProperty (
+ (GLUtesselator *) tobj,
+ (GLenum) which,
+ (GLdouble) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessNormal ( GLUtesselator * tobj , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessNormal (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+
+ gluTessNormal (
+ (GLUtesselator *) tobj,
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble * value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluGetTessProperty (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint which,
+ jdoubleArray value)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(value!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, value, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluGetTessProperty arg: value");
+ }
+ }
+ gluGetTessProperty (
+ (GLUtesselator *) tobj,
+ (GLenum) which,
+ (GLdouble *) ptr2
+ );
+
+ if(value!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, value, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluBeginPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNextContour ( GLUtesselator * tobj , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNextContour (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint type)
+ {
+
+ gluNextContour (
+ (GLUtesselator *) tobj,
+ (GLenum) type
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluEndPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/CNativeCode/OpenGLU_JauJNI_funcs.c b/CNativeCode/OpenGLU_JauJNI_funcs.c
new file mode 100644
index 0000000..32abe13
--- /dev/null
+++ b/CNativeCode/OpenGLU_JauJNI_funcs.c
@@ -0,0 +1,2354 @@
+/* WARNING ! WARNING *** THIS FILE IS GENERATED BY C2J !!!
+
+ DO NOT MAKE ANY CHANGES *** MAKE CHANGES IN THE SKELETON FILES !!!
+*/
+
+
+/*
+ * Leo Chan -- 1995
+ *
+ * This C file takes care of all the native implementation for the
+ * OpenGL utility commands
+ * ---------------
+ *
+ * Sven Goethel
+ *
+ * September 1997
+ */
+
+/*
+ * need to include the JAVA internal header files for macros and function
+ * prototypes required to maipulated JAVA data structures and functions
+ *
+ * StubPreamble.h includes the structure and macro definitions neede to
+ * convert JAVA data structures into C data structures.
+ *
+ */
+
+#ifdef _WIN32_
+ #include "winstuff.h"
+#endif
+
+#include <stdio.h>
+#include <stdlib.h>
+
+#include <jni.h>
+
+/*
+ * the next thing to include are special headers that were created by
+ * JAVAH. They include the C structure definitions for the JAVA classes
+ */
+#include "gl4java_GLUFuncJauJNI.h"
+
+/*--------------------------------------------------------------------------
+ * here on in is just regular apple pie C
+ */
+
+/*
+ * next put any specific header files that are necessary to implement
+ * this native code
+ */
+#include<GL/gl.h>
+#include <GL/glu.h>
+
+#include "GLCallbackHelperJNI.h"
+#include "GLUCallbackJNI.h"
+#include "jnitools.h"
+
+/**
+ * herein lies the native JAVA methods for the OpenGL functions.
+ */
+
+static const char _glu_n_a_string[] = "GLU-String not avaiable !";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNI_gluErrorString ( JNIEnv *env, jobject obj,
+ jint errorCode )
+{
+ const char *tmpString=0;
+
+ tmpString = gluErrorString ( /* jint */ errorCode );
+ if(tmpString==NULL)
+ tmpString=_glu_n_a_string;
+
+ return (*env)->NewStringUTF(env, tmpString);
+}
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNI_gluGetString ( JNIEnv *env, jobject obj,
+ jint name )
+{
+ const char *tmpString=0;
+
+ tmpString = gluGetString ( /* jint */ name);
+ if(tmpString==NULL)
+ tmpString=_glu_n_a_string;
+
+ return (*env)->NewStringUTF(env, tmpString);
+}
+
+static const char * _glu_lib_vendor_="Jausoft - Sven Goethel Software Development";
+static const char * _glu_lib_version_="2.4.1.0";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNI_getNativeVendor ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _glu_lib_vendor_);
+}
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNI_getNativeVersion ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _glu_lib_version_);
+}
+
+static void _AddCallbackNode(JNIEnv *env,
+ jint qnt_obj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature,
+ jint arrayLen1,
+ jint arrayLen2,
+ jint arrayLen3,
+ jint arrayLen4,
+ jint arrayLen5)
+{
+ char * strMethodName = jnitoolsGetJavaString(env, methodName);
+ char * strSignature = jnitoolsGetJavaString(env, signature);
+ jlong glx=0;
+
+ glx = GetCurrentGLContext();
+
+ AddCallbackNode(env, methodClassInstance, strMethodName, strSignature,
+ arrayLen1, arrayLen2, arrayLen3,
+ arrayLen4, arrayLen5,
+ (void *)qnt_obj, which, glx);
+ free(strMethodName);
+ free(strSignature);
+}
+
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluQuadricCallback( JNIEnv *env, jobject obj,
+ jint qobj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature)
+{
+ switch(which)
+ {
+ case GLU_ERROR:
+ gluQuadricCallback((void *)qobj, which,
+ cbf_GLU_ERROR );
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException", "Wrong Callback-Function type (\"which\") !");
+ return;
+ }
+ _AddCallbackNode(env,
+ qobj, which, methodClassInstance, methodName,
+ signature,
+ 0, 0, 0, 0, 0);
+}
+
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluNurbsCallback( JNIEnv *env, jobject obj,
+ jint nobj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature)
+{
+ switch(which)
+ {
+ case GLU_ERROR:
+ gluNurbsCallback((void *)nobj, which,
+ cbf_GLU_ERROR );
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException", "Wrong Callback-Function type (\"which\") !");
+ return;
+ }
+ _AddCallbackNode(env,
+ nobj, which, methodClassInstance, methodName,
+ signature,
+ 0, 0, 0, 0, 0);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluTessCallback( JNIEnv *env, jobject obj,
+ jint tobj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature,
+ jint arrayLen1,
+ jint arrayLen2,
+ jint arrayLen3,
+ jint arrayLen4,
+ jint arrayLen5)
+{
+ switch(which)
+ {
+ case GLU_TESS_BEGIN:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_BEGIN );
+ break;
+ case GLU_TESS_BEGIN_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_BEGIN_DATA );
+ break;
+ case GLU_TESS_EDGE_FLAG:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_EDGE_FLAG );
+ break;
+ case GLU_TESS_EDGE_FLAG_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_EDGE_FLAG_DATA );
+ break;
+ case GLU_TESS_VERTEX:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_VERTEX );
+ break;
+ case GLU_TESS_VERTEX_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_VERTEX_DATA );
+ break;
+ case GLU_TESS_END:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_END );
+ break;
+ case GLU_TESS_END_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_END_DATA );
+ break;
+ case GLU_TESS_ERROR:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_ERROR );
+ break;
+ case GLU_TESS_ERROR_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_ERROR_DATA );
+ break;
+ case GLU_TESS_COMBINE:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_COMBINE );
+ break;
+ case GLU_TESS_COMBINE_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_COMBINE_DATA );
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException", "Wrong Callback-Function type (\"which\") !");
+ return;
+ }
+ _AddCallbackNode(env,
+ tobj, which, methodClassInstance, methodName,
+ signature,
+ arrayLen1, arrayLen2, arrayLen3,
+ arrayLen4, arrayLen5);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluDeleteQuadric( JNIEnv *env, jobject obj,
+ jint qobj )
+{
+ gluDeleteQuadric((void *)qobj);
+ RemoveCallbackNodes((void *)qobj);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluDeleteNurbsRenderer( JNIEnv *env, jobject obj,
+ jint nobj )
+{
+ gluDeleteNurbsRenderer((void *)nobj);
+ RemoveCallbackNodes((void *)nobj);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
+ jint tobj )
+{
+ gluDeleteTess((GLUtesselator *)tobj);
+ RemoveCallbackNodes((void *)tobj);
+}
+
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: glu-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLUFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLookAt ( GLdouble eyex , GLdouble eyey , GLdouble eyez , GLdouble centerx , GLdouble centery , GLdouble centerz , GLdouble upx , GLdouble upy , GLdouble upz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluLookAt (
+ JNIEnv *env, jobject obj,
+ jdouble eyex,
+ jdouble eyey,
+ jdouble eyez,
+ jdouble centerx,
+ jdouble centery,
+ jdouble centerz,
+ jdouble upx,
+ jdouble upy,
+ jdouble upz)
+ {
+
+ gluLookAt (
+ (GLdouble) eyex,
+ (GLdouble) eyey,
+ (GLdouble) eyez,
+ (GLdouble) centerx,
+ (GLdouble) centery,
+ (GLdouble) centerz,
+ (GLdouble) upx,
+ (GLdouble) upy,
+ (GLdouble) upz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluOrtho2D ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluOrtho2D (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top)
+ {
+
+ gluOrtho2D (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPerspective ( GLdouble fovy , GLdouble aspect , GLdouble zNear , GLdouble zFar ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPerspective (
+ JNIEnv *env, jobject obj,
+ jdouble fovy,
+ jdouble aspect,
+ jdouble zNear,
+ jdouble zFar)
+ {
+
+ gluPerspective (
+ (GLdouble) fovy,
+ (GLdouble) aspect,
+ (GLdouble) zNear,
+ (GLdouble) zFar
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPickMatrix ( GLdouble x , GLdouble y , GLdouble width , GLdouble height , GLint * viewport ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPickMatrix (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble width,
+ jdouble height,
+ jintArray viewport)
+ {
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+
+ if(viewport!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, viewport, &isCopiedArray4);
+ }
+ gluPickMatrix (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) width,
+ (GLdouble) height,
+ (GLint *) ptr4
+ );
+
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluProject ( GLdouble objx , GLdouble objy , GLdouble objz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * winx , GLdouble * winy , GLdouble * winz ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluProject (
+ JNIEnv *env, jobject obj,
+ jdouble objx,
+ jdouble objy,
+ jdouble objz,
+ jdoubleArray modelMatrix,
+ jdoubleArray projMatrix,
+ jintArray viewport,
+ jdoubleArray winx,
+ jdoubleArray winy,
+ jdoubleArray winz)
+ {
+ jint ret;
+
+ jdouble *ptr3 = NULL;
+ jdouble *ptr4 = NULL;
+ jint *ptr5 = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, modelMatrix, 0);
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, projMatrix, 0);
+ }
+ if(viewport!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, viewport, 0);
+ }
+ if(winx!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, winx, &isCopiedArray6);
+ }
+ if(winy!=NULL)
+ {
+ ptr7 = (*env)->GetDoubleArrayElements(env, winy, &isCopiedArray7);
+ }
+ if(winz!=NULL)
+ {
+ ptr8 = (*env)->GetDoubleArrayElements(env, winz, &isCopiedArray8);
+ }
+ ret = (jint) gluProject (
+ (GLdouble) objx,
+ (GLdouble) objy,
+ (GLdouble) objz,
+ (const GLdouble *) ptr3,
+ (const GLdouble *) ptr4,
+ (const GLint *) ptr5,
+ (GLdouble *) ptr6,
+ (GLdouble *) ptr7,
+ (GLdouble *) ptr8
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, modelMatrix, ptr3, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, projMatrix, ptr4, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr5, JNI_ABORT);
+ }
+ if(winx!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, winx, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(winy!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, winy, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(winz!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, winz, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluUnProject ( GLdouble winx , GLdouble winy , GLdouble winz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * objx , GLdouble * objy , GLdouble * objz ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluUnProject (
+ JNIEnv *env, jobject obj,
+ jdouble winx,
+ jdouble winy,
+ jdouble winz,
+ jdoubleArray modelMatrix,
+ jdoubleArray projMatrix,
+ jintArray viewport,
+ jdoubleArray objx,
+ jdoubleArray objy,
+ jdoubleArray objz)
+ {
+ jint ret;
+
+ jdouble *ptr3 = NULL;
+ jdouble *ptr4 = NULL;
+ jint *ptr5 = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, modelMatrix, 0);
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, projMatrix, 0);
+ }
+ if(viewport!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, viewport, 0);
+ }
+ if(objx!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, objx, &isCopiedArray6);
+ }
+ if(objy!=NULL)
+ {
+ ptr7 = (*env)->GetDoubleArrayElements(env, objy, &isCopiedArray7);
+ }
+ if(objz!=NULL)
+ {
+ ptr8 = (*env)->GetDoubleArrayElements(env, objz, &isCopiedArray8);
+ }
+ ret = (jint) gluUnProject (
+ (GLdouble) winx,
+ (GLdouble) winy,
+ (GLdouble) winz,
+ (const GLdouble *) ptr3,
+ (const GLdouble *) ptr4,
+ (const GLint *) ptr5,
+ (GLdouble *) ptr6,
+ (GLdouble *) ptr7,
+ (GLdouble *) ptr8
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, modelMatrix, ptr3, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, projMatrix, ptr4, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr5, JNI_ABORT);
+ }
+ if(objx!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, objx, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(objy!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, objy, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(objz!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, objz, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluScaleImage ( GLenum format , GLsizei widthin , GLsizei heightin , GLenum typein , const char * datain , GLsizei widthout , GLsizei heightout , GLenum typeout , char * dataout ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluScaleImage (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint widthin,
+ jint heightin,
+ jint typein,
+ jbyteArray datain,
+ jint widthout,
+ jint heightout,
+ jint typeout,
+ jbyteArray dataout)
+ {
+ jint ret;
+
+ jbyte *ptr4 = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jbyte *ptr8 = NULL;
+
+ if(datain!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, datain, 0);
+ }
+ if(dataout!=NULL)
+ {
+ ptr8 = (*env)->GetByteArrayElements(env, dataout, &isCopiedArray8);
+ }
+ ret = (jint) gluScaleImage (
+ (GLenum) format,
+ (GLsizei) widthin,
+ (GLsizei) heightin,
+ (GLenum) typein,
+ (const char *) ptr4,
+ (GLsizei) widthout,
+ (GLsizei) heightout,
+ (GLenum) typeout,
+ (char *) ptr8
+ );
+
+ if(datain!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, datain, ptr4, JNI_ABORT);
+ }
+ if(dataout!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, dataout, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild1DMipmaps ( GLenum target , GLint components , GLint width , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ jint ret;
+
+ jbyte *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ jint ret;
+
+ jshort *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ jint ret;
+
+ jint *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ jint ret;
+
+ jfloat *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ jint ret;
+
+ jdouble *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ jint ret;
+
+ jboolean *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ jint ret;
+
+ jlong *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild2DMipmaps ( GLenum target , GLint components , GLint width , GLint height , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ jint ret;
+
+ jbyte *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ jint ret;
+
+ jshort *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ jint ret;
+
+ jint *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ jint ret;
+
+ jfloat *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ jint ret;
+
+ jdouble *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ jint ret;
+
+ jboolean *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ jint ret;
+
+ jlong *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUquadricObj * gluNewQuadric ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewQuadric (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewQuadric (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricDrawStyle ( GLUquadricObj * quadObject , GLenum drawStyle ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricDrawStyle (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint drawStyle)
+ {
+
+ gluQuadricDrawStyle (
+ (GLUquadricObj *) quadObject,
+ (GLenum) drawStyle
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricOrientation ( GLUquadricObj * quadObject , GLenum orientation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricOrientation (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint orientation)
+ {
+
+ gluQuadricOrientation (
+ (GLUquadricObj *) quadObject,
+ (GLenum) orientation
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricNormals ( GLUquadricObj * quadObject , GLenum normals ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricNormals (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint normals)
+ {
+
+ gluQuadricNormals (
+ (GLUquadricObj *) quadObject,
+ (GLenum) normals
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricTexture ( GLUquadricObj * quadObject , GLboolean textureCoords ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricTexture (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jboolean textureCoords)
+ {
+
+ gluQuadricTexture (
+ (GLUquadricObj *) quadObject,
+ (GLboolean) textureCoords
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluCylinder ( GLUquadricObj * qobj , GLdouble baseRadius , GLdouble topRadius , GLdouble height , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluCylinder (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble baseRadius,
+ jdouble topRadius,
+ jdouble height,
+ jint slices,
+ jint stacks)
+ {
+
+ gluCylinder (
+ (GLUquadricObj *) qobj,
+ (GLdouble) baseRadius,
+ (GLdouble) topRadius,
+ (GLdouble) height,
+ (GLint) slices,
+ (GLint) stacks
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluSphere ( GLUquadricObj * qobj , GLdouble radius , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluSphere (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble radius,
+ jint slices,
+ jint stacks)
+ {
+
+ gluSphere (
+ (GLUquadricObj *) qobj,
+ (GLdouble) radius,
+ (GLint) slices,
+ (GLint) stacks
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluDisk (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble innerRadius,
+ jdouble outerRadius,
+ jint slices,
+ jint loops)
+ {
+
+ gluDisk (
+ (GLUquadricObj *) qobj,
+ (GLdouble) innerRadius,
+ (GLdouble) outerRadius,
+ (GLint) slices,
+ (GLint) loops
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPartialDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops , GLdouble startAngle , GLdouble sweepAngle ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPartialDisk (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble innerRadius,
+ jdouble outerRadius,
+ jint slices,
+ jint loops,
+ jdouble startAngle,
+ jdouble sweepAngle)
+ {
+
+ gluPartialDisk (
+ (GLUquadricObj *) qobj,
+ (GLdouble) innerRadius,
+ (GLdouble) outerRadius,
+ (GLint) slices,
+ (GLint) loops,
+ (GLdouble) startAngle,
+ (GLdouble) sweepAngle
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUnurbsObj * gluNewNurbsRenderer ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewNurbsRenderer (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewNurbsRenderer (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLoadSamplingMatrices ( GLUnurbsObj * nobj , const GLfloat modelMatrix [ 16 ] , const GLfloat projMatrix [ 16 ] , const GLint viewport [ 4 ] ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluLoadSamplingMatrices (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jfloatArray modelMatrix,
+ jfloatArray projMatrix,
+ jintArray viewport)
+ {
+ jfloat *ptr1 = NULL;
+ jfloat *ptr2 = NULL;
+ jint *ptr3 = NULL;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, modelMatrix, 0);
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, projMatrix, 0);
+ }
+ if(viewport!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, viewport, 0);
+ }
+ gluLoadSamplingMatrices (
+ (GLUnurbsObj *) nobj,
+ (const GLfloat *) ptr1,
+ (const GLfloat *) ptr2,
+ (const GLint *) ptr3
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, modelMatrix, ptr1, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, projMatrix, ptr2, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsProperty (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint property,
+ jfloat value)
+ {
+
+ gluNurbsProperty (
+ (GLUnurbsObj *) nobj,
+ (GLenum) property,
+ (GLfloat) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat * value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluGetNurbsProperty (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint property,
+ jfloatArray value)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(value!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, value, &isCopiedArray2);
+ }
+ gluGetNurbsProperty (
+ (GLUnurbsObj *) nobj,
+ (GLenum) property,
+ (GLfloat *) ptr2
+ );
+
+ if(value!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, value, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginCurve (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndCurve (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsCurve ( GLUnurbsObj * nobj , GLint nknots , GLfloat * knot , GLint stride , GLfloat * ctlarray , GLint order , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint nknots,
+ jfloatArray knot,
+ jint stride,
+ jfloatArray ctlarray,
+ jint order,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+
+ if(knot!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, knot, &isCopiedArray2);
+ }
+ if(ctlarray!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, ctlarray, &isCopiedArray4);
+ }
+ gluNurbsCurve (
+ (GLUnurbsObj *) nobj,
+ (GLint) nknots,
+ (GLfloat *) ptr2,
+ (GLint) stride,
+ (GLfloat *) ptr4,
+ (GLint) order,
+ (GLenum) type
+ );
+
+ if(knot!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, knot, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(ctlarray!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ctlarray, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginSurface (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndSurface (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsSurface ( GLUnurbsObj * nobj , GLint sknot_count , GLfloat * sknot , GLint tknot_count , GLfloat * tknot , GLint s_stride , GLint t_stride , GLfloat * ctlarray , GLint sorder , GLint torder , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint sknot_count,
+ jfloatArray sknot,
+ jint tknot_count,
+ jfloatArray tknot,
+ jint s_stride,
+ jint t_stride,
+ jfloatArray ctlarray,
+ jint sorder,
+ jint torder,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jfloat *ptr7 = NULL;
+
+ if(sknot!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, sknot, &isCopiedArray2);
+ }
+ if(tknot!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, tknot, &isCopiedArray4);
+ }
+ if(ctlarray!=NULL)
+ {
+ ptr7 = (*env)->GetFloatArrayElements(env, ctlarray, &isCopiedArray7);
+ }
+ gluNurbsSurface (
+ (GLUnurbsObj *) nobj,
+ (GLint) sknot_count,
+ (GLfloat *) ptr2,
+ (GLint) tknot_count,
+ (GLfloat *) ptr4,
+ (GLint) s_stride,
+ (GLint) t_stride,
+ (GLfloat *) ptr7,
+ (GLint) sorder,
+ (GLint) torder,
+ (GLenum) type
+ );
+
+ if(sknot!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, sknot, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(tknot!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, tknot, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(ctlarray!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ctlarray, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginTrim (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginTrim (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndTrim (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndTrim (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPwlCurve ( GLUnurbsObj * nobj , GLint count , GLfloat * array , GLint stride , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPwlCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint count,
+ jfloatArray array,
+ jint stride,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(array!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, array, &isCopiedArray2);
+ }
+ gluPwlCurve (
+ (GLUnurbsObj *) nobj,
+ (GLint) count,
+ (GLfloat *) ptr2,
+ (GLint) stride,
+ (GLenum) type
+ );
+
+ if(array!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, array, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUtesselator * gluNewTess ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewTess (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewTess (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginPolygon ( GLUtesselator * tobj , void * polygon_data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3B (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jbyteArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetByteArrayElements(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3S (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jshortArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3I (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jintArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3F (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jfloatArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3D (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3Z (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jbooleanArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3J (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jlongArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetLongArrayElements(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginContour (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessBeginContour (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessVertex ( GLUtesselator * tobj , GLdouble coords [ 3 ] , void * vertex_data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3B (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jbyteArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3S (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jshortArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3I (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jintArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3F (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jfloatArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jdoubleArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3Z (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jbooleanArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3J (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jlongArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessEndContour (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessEndContour (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessEndPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessEndPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessProperty (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint which,
+ jdouble value)
+ {
+
+ gluTessProperty (
+ (GLUtesselator *) tobj,
+ (GLenum) which,
+ (GLdouble) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessNormal ( GLUtesselator * tobj , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessNormal (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+
+ gluTessNormal (
+ (GLUtesselator *) tobj,
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble * value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluGetTessProperty (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint which,
+ jdoubleArray value)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+
+ if(value!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, value, &isCopiedArray2);
+ }
+ gluGetTessProperty (
+ (GLUtesselator *) tobj,
+ (GLenum) which,
+ (GLdouble *) ptr2
+ );
+
+ if(value!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, value, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluBeginPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNextContour ( GLUtesselator * tobj , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNextContour (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint type)
+ {
+
+ gluNextContour (
+ (GLUtesselator *) tobj,
+ (GLenum) type
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluEndPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/CNativeCode/OpenGLU_JauJNInf_funcs.c b/CNativeCode/OpenGLU_JauJNInf_funcs.c
new file mode 100644
index 0000000..d37588d
--- /dev/null
+++ b/CNativeCode/OpenGLU_JauJNInf_funcs.c
@@ -0,0 +1,2354 @@
+/* WARNING ! WARNING *** THIS FILE IS GENERATED BY C2J !!!
+
+ DO NOT MAKE ANY CHANGES *** MAKE CHANGES IN THE SKELETON FILES !!!
+*/
+
+
+/*
+ * Leo Chan -- 1995
+ *
+ * This C file takes care of all the native implementation for the
+ * OpenGL utility commands
+ * ---------------
+ *
+ * Sven Goethel
+ *
+ * September 1997
+ */
+
+/*
+ * need to include the JAVA internal header files for macros and function
+ * prototypes required to maipulated JAVA data structures and functions
+ *
+ * StubPreamble.h includes the structure and macro definitions neede to
+ * convert JAVA data structures into C data structures.
+ *
+ */
+
+#ifdef _WIN32_
+ #include "winstuff.h"
+#endif
+
+#include <stdio.h>
+#include <stdlib.h>
+
+#include <jni.h>
+
+/*
+ * the next thing to include are special headers that were created by
+ * JAVAH. They include the C structure definitions for the JAVA classes
+ */
+#include "gl4java_GLUFuncJauJNInf.h"
+
+/*--------------------------------------------------------------------------
+ * here on in is just regular apple pie C
+ */
+
+/*
+ * next put any specific header files that are necessary to implement
+ * this native code
+ */
+#include<GL/gl.h>
+#include <GL/glu.h>
+
+#include "GLCallbackHelperJNI.h"
+#include "GLUCallbackJNI.h"
+#include "jnitools.h"
+
+/**
+ * herein lies the native JAVA methods for the OpenGL functions.
+ */
+
+static const char _glu_n_a_string[] = "GLU-String not avaiable !";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNInf_gluErrorString ( JNIEnv *env, jobject obj,
+ jint errorCode )
+{
+ const char *tmpString=0;
+
+ tmpString = gluErrorString ( /* jint */ errorCode );
+ if(tmpString==NULL)
+ tmpString=_glu_n_a_string;
+
+ return (*env)->NewStringUTF(env, tmpString);
+}
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNInf_gluGetString ( JNIEnv *env, jobject obj,
+ jint name )
+{
+ const char *tmpString=0;
+
+ tmpString = gluGetString ( /* jint */ name);
+ if(tmpString==NULL)
+ tmpString=_glu_n_a_string;
+
+ return (*env)->NewStringUTF(env, tmpString);
+}
+
+static const char * _glu_lib_vendor_="Jausoft - Sven Goethel Software Development";
+static const char * _glu_lib_version_="2.4.1.0";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNInf_getNativeVendor ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _glu_lib_vendor_);
+}
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNInf_getNativeVersion ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _glu_lib_version_);
+}
+
+static void _AddCallbackNode(JNIEnv *env,
+ jint qnt_obj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature,
+ jint arrayLen1,
+ jint arrayLen2,
+ jint arrayLen3,
+ jint arrayLen4,
+ jint arrayLen5)
+{
+ char * strMethodName = jnitoolsGetJavaString(env, methodName);
+ char * strSignature = jnitoolsGetJavaString(env, signature);
+ jlong glx=0;
+
+ glx = GetCurrentGLContext();
+
+ AddCallbackNode(env, methodClassInstance, strMethodName, strSignature,
+ arrayLen1, arrayLen2, arrayLen3,
+ arrayLen4, arrayLen5,
+ (void *)qnt_obj, which, glx);
+ free(strMethodName);
+ free(strSignature);
+}
+
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNInf_gluQuadricCallback( JNIEnv *env, jobject obj,
+ jint qobj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature)
+{
+ switch(which)
+ {
+ case GLU_ERROR:
+ gluQuadricCallback((void *)qobj, which,
+ cbf_GLU_ERROR );
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException", "Wrong Callback-Function type (\"which\") !");
+ return;
+ }
+ _AddCallbackNode(env,
+ qobj, which, methodClassInstance, methodName,
+ signature,
+ 0, 0, 0, 0, 0);
+}
+
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNInf_gluNurbsCallback( JNIEnv *env, jobject obj,
+ jint nobj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature)
+{
+ switch(which)
+ {
+ case GLU_ERROR:
+ gluNurbsCallback((void *)nobj, which,
+ cbf_GLU_ERROR );
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException", "Wrong Callback-Function type (\"which\") !");
+ return;
+ }
+ _AddCallbackNode(env,
+ nobj, which, methodClassInstance, methodName,
+ signature,
+ 0, 0, 0, 0, 0);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNInf_gluTessCallback( JNIEnv *env, jobject obj,
+ jint tobj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature,
+ jint arrayLen1,
+ jint arrayLen2,
+ jint arrayLen3,
+ jint arrayLen4,
+ jint arrayLen5)
+{
+ switch(which)
+ {
+ case GLU_TESS_BEGIN:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_BEGIN );
+ break;
+ case GLU_TESS_BEGIN_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_BEGIN_DATA );
+ break;
+ case GLU_TESS_EDGE_FLAG:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_EDGE_FLAG );
+ break;
+ case GLU_TESS_EDGE_FLAG_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_EDGE_FLAG_DATA );
+ break;
+ case GLU_TESS_VERTEX:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_VERTEX );
+ break;
+ case GLU_TESS_VERTEX_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_VERTEX_DATA );
+ break;
+ case GLU_TESS_END:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_END );
+ break;
+ case GLU_TESS_END_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_END_DATA );
+ break;
+ case GLU_TESS_ERROR:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_ERROR );
+ break;
+ case GLU_TESS_ERROR_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_ERROR_DATA );
+ break;
+ case GLU_TESS_COMBINE:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_COMBINE );
+ break;
+ case GLU_TESS_COMBINE_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_COMBINE_DATA );
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException", "Wrong Callback-Function type (\"which\") !");
+ return;
+ }
+ _AddCallbackNode(env,
+ tobj, which, methodClassInstance, methodName,
+ signature,
+ arrayLen1, arrayLen2, arrayLen3,
+ arrayLen4, arrayLen5);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNInf_gluDeleteQuadric( JNIEnv *env, jobject obj,
+ jint qobj )
+{
+ gluDeleteQuadric((void *)qobj);
+ RemoveCallbackNodes((void *)qobj);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNInf_gluDeleteNurbsRenderer( JNIEnv *env, jobject obj,
+ jint nobj )
+{
+ gluDeleteNurbsRenderer((void *)nobj);
+ RemoveCallbackNodes((void *)nobj);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNInf_gluDeleteTess( JNIEnv *env, jobject obj,
+ jint tobj )
+{
+ gluDeleteTess((GLUtesselator *)tobj);
+ RemoveCallbackNodes((void *)tobj);
+}
+
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: glu-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLUFuncJauJNInf !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLookAt ( GLdouble eyex , GLdouble eyey , GLdouble eyez , GLdouble centerx , GLdouble centery , GLdouble centerz , GLdouble upx , GLdouble upy , GLdouble upz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluLookAt (
+ JNIEnv *env, jobject obj,
+ jdouble eyex,
+ jdouble eyey,
+ jdouble eyez,
+ jdouble centerx,
+ jdouble centery,
+ jdouble centerz,
+ jdouble upx,
+ jdouble upy,
+ jdouble upz)
+ {
+
+ gluLookAt (
+ (GLdouble) eyex,
+ (GLdouble) eyey,
+ (GLdouble) eyez,
+ (GLdouble) centerx,
+ (GLdouble) centery,
+ (GLdouble) centerz,
+ (GLdouble) upx,
+ (GLdouble) upy,
+ (GLdouble) upz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluOrtho2D ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluOrtho2D (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top)
+ {
+
+ gluOrtho2D (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPerspective ( GLdouble fovy , GLdouble aspect , GLdouble zNear , GLdouble zFar ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluPerspective (
+ JNIEnv *env, jobject obj,
+ jdouble fovy,
+ jdouble aspect,
+ jdouble zNear,
+ jdouble zFar)
+ {
+
+ gluPerspective (
+ (GLdouble) fovy,
+ (GLdouble) aspect,
+ (GLdouble) zNear,
+ (GLdouble) zFar
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPickMatrix ( GLdouble x , GLdouble y , GLdouble width , GLdouble height , GLint * viewport ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluPickMatrix (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble width,
+ jdouble height,
+ jintArray viewport)
+ {
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+
+ if(viewport!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, viewport, &isCopiedArray4);
+ }
+ gluPickMatrix (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) width,
+ (GLdouble) height,
+ (GLint *) ptr4
+ );
+
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluProject ( GLdouble objx , GLdouble objy , GLdouble objz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * winx , GLdouble * winy , GLdouble * winz ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluProject (
+ JNIEnv *env, jobject obj,
+ jdouble objx,
+ jdouble objy,
+ jdouble objz,
+ jdoubleArray modelMatrix,
+ jdoubleArray projMatrix,
+ jintArray viewport,
+ jdoubleArray winx,
+ jdoubleArray winy,
+ jdoubleArray winz)
+ {
+ jint ret;
+
+ jdouble *ptr3 = NULL;
+ jdouble *ptr4 = NULL;
+ jint *ptr5 = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, modelMatrix, 0);
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, projMatrix, 0);
+ }
+ if(viewport!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, viewport, 0);
+ }
+ if(winx!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, winx, &isCopiedArray6);
+ }
+ if(winy!=NULL)
+ {
+ ptr7 = (*env)->GetDoubleArrayElements(env, winy, &isCopiedArray7);
+ }
+ if(winz!=NULL)
+ {
+ ptr8 = (*env)->GetDoubleArrayElements(env, winz, &isCopiedArray8);
+ }
+ ret = (jint) gluProject (
+ (GLdouble) objx,
+ (GLdouble) objy,
+ (GLdouble) objz,
+ (const GLdouble *) ptr3,
+ (const GLdouble *) ptr4,
+ (const GLint *) ptr5,
+ (GLdouble *) ptr6,
+ (GLdouble *) ptr7,
+ (GLdouble *) ptr8
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, modelMatrix, ptr3, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, projMatrix, ptr4, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr5, JNI_ABORT);
+ }
+ if(winx!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, winx, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(winy!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, winy, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(winz!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, winz, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluUnProject ( GLdouble winx , GLdouble winy , GLdouble winz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * objx , GLdouble * objy , GLdouble * objz ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluUnProject (
+ JNIEnv *env, jobject obj,
+ jdouble winx,
+ jdouble winy,
+ jdouble winz,
+ jdoubleArray modelMatrix,
+ jdoubleArray projMatrix,
+ jintArray viewport,
+ jdoubleArray objx,
+ jdoubleArray objy,
+ jdoubleArray objz)
+ {
+ jint ret;
+
+ jdouble *ptr3 = NULL;
+ jdouble *ptr4 = NULL;
+ jint *ptr5 = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, modelMatrix, 0);
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, projMatrix, 0);
+ }
+ if(viewport!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, viewport, 0);
+ }
+ if(objx!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, objx, &isCopiedArray6);
+ }
+ if(objy!=NULL)
+ {
+ ptr7 = (*env)->GetDoubleArrayElements(env, objy, &isCopiedArray7);
+ }
+ if(objz!=NULL)
+ {
+ ptr8 = (*env)->GetDoubleArrayElements(env, objz, &isCopiedArray8);
+ }
+ ret = (jint) gluUnProject (
+ (GLdouble) winx,
+ (GLdouble) winy,
+ (GLdouble) winz,
+ (const GLdouble *) ptr3,
+ (const GLdouble *) ptr4,
+ (const GLint *) ptr5,
+ (GLdouble *) ptr6,
+ (GLdouble *) ptr7,
+ (GLdouble *) ptr8
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, modelMatrix, ptr3, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, projMatrix, ptr4, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr5, JNI_ABORT);
+ }
+ if(objx!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, objx, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(objy!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, objy, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(objz!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, objz, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluScaleImage ( GLenum format , GLsizei widthin , GLsizei heightin , GLenum typein , const char * datain , GLsizei widthout , GLsizei heightout , GLenum typeout , char * dataout ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluScaleImage (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint widthin,
+ jint heightin,
+ jint typein,
+ jbyteArray datain,
+ jint widthout,
+ jint heightout,
+ jint typeout,
+ jbyteArray dataout)
+ {
+ jint ret;
+
+ jbyte *ptr4 = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jbyte *ptr8 = NULL;
+
+ if(datain!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, datain, 0);
+ }
+ if(dataout!=NULL)
+ {
+ ptr8 = (*env)->GetByteArrayElements(env, dataout, &isCopiedArray8);
+ }
+ ret = (jint) gluScaleImage (
+ (GLenum) format,
+ (GLsizei) widthin,
+ (GLsizei) heightin,
+ (GLenum) typein,
+ (const char *) ptr4,
+ (GLsizei) widthout,
+ (GLsizei) heightout,
+ (GLenum) typeout,
+ (char *) ptr8
+ );
+
+ if(datain!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, datain, ptr4, JNI_ABORT);
+ }
+ if(dataout!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, dataout, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild1DMipmaps ( GLenum target , GLint components , GLint width , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluBuild1DMipmaps__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ jint ret;
+
+ jbyte *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluBuild1DMipmaps__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ jint ret;
+
+ jshort *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluBuild1DMipmaps__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ jint ret;
+
+ jint *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluBuild1DMipmaps__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ jint ret;
+
+ jfloat *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluBuild1DMipmaps__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ jint ret;
+
+ jdouble *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluBuild1DMipmaps__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ jint ret;
+
+ jboolean *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluBuild1DMipmaps__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ jint ret;
+
+ jlong *ptr5 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild2DMipmaps ( GLenum target , GLint components , GLint width , GLint height , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluBuild2DMipmaps__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ jint ret;
+
+ jbyte *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluBuild2DMipmaps__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ jint ret;
+
+ jshort *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluBuild2DMipmaps__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ jint ret;
+
+ jint *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluBuild2DMipmaps__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ jint ret;
+
+ jfloat *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluBuild2DMipmaps__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ jint ret;
+
+ jdouble *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluBuild2DMipmaps__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ jint ret;
+
+ jboolean *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluBuild2DMipmaps__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ jint ret;
+
+ jlong *ptr6 = NULL;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, data, 0);
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUquadricObj * gluNewQuadric ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluNewQuadric (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewQuadric (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricDrawStyle ( GLUquadricObj * quadObject , GLenum drawStyle ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluQuadricDrawStyle (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint drawStyle)
+ {
+
+ gluQuadricDrawStyle (
+ (GLUquadricObj *) quadObject,
+ (GLenum) drawStyle
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricOrientation ( GLUquadricObj * quadObject , GLenum orientation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluQuadricOrientation (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint orientation)
+ {
+
+ gluQuadricOrientation (
+ (GLUquadricObj *) quadObject,
+ (GLenum) orientation
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricNormals ( GLUquadricObj * quadObject , GLenum normals ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluQuadricNormals (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint normals)
+ {
+
+ gluQuadricNormals (
+ (GLUquadricObj *) quadObject,
+ (GLenum) normals
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricTexture ( GLUquadricObj * quadObject , GLboolean textureCoords ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluQuadricTexture (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jboolean textureCoords)
+ {
+
+ gluQuadricTexture (
+ (GLUquadricObj *) quadObject,
+ (GLboolean) textureCoords
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluCylinder ( GLUquadricObj * qobj , GLdouble baseRadius , GLdouble topRadius , GLdouble height , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluCylinder (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble baseRadius,
+ jdouble topRadius,
+ jdouble height,
+ jint slices,
+ jint stacks)
+ {
+
+ gluCylinder (
+ (GLUquadricObj *) qobj,
+ (GLdouble) baseRadius,
+ (GLdouble) topRadius,
+ (GLdouble) height,
+ (GLint) slices,
+ (GLint) stacks
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluSphere ( GLUquadricObj * qobj , GLdouble radius , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluSphere (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble radius,
+ jint slices,
+ jint stacks)
+ {
+
+ gluSphere (
+ (GLUquadricObj *) qobj,
+ (GLdouble) radius,
+ (GLint) slices,
+ (GLint) stacks
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluDisk (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble innerRadius,
+ jdouble outerRadius,
+ jint slices,
+ jint loops)
+ {
+
+ gluDisk (
+ (GLUquadricObj *) qobj,
+ (GLdouble) innerRadius,
+ (GLdouble) outerRadius,
+ (GLint) slices,
+ (GLint) loops
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPartialDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops , GLdouble startAngle , GLdouble sweepAngle ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluPartialDisk (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble innerRadius,
+ jdouble outerRadius,
+ jint slices,
+ jint loops,
+ jdouble startAngle,
+ jdouble sweepAngle)
+ {
+
+ gluPartialDisk (
+ (GLUquadricObj *) qobj,
+ (GLdouble) innerRadius,
+ (GLdouble) outerRadius,
+ (GLint) slices,
+ (GLint) loops,
+ (GLdouble) startAngle,
+ (GLdouble) sweepAngle
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUnurbsObj * gluNewNurbsRenderer ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluNewNurbsRenderer (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewNurbsRenderer (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLoadSamplingMatrices ( GLUnurbsObj * nobj , const GLfloat modelMatrix [ 16 ] , const GLfloat projMatrix [ 16 ] , const GLint viewport [ 4 ] ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluLoadSamplingMatrices (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jfloatArray modelMatrix,
+ jfloatArray projMatrix,
+ jintArray viewport)
+ {
+ jfloat *ptr1 = NULL;
+ jfloat *ptr2 = NULL;
+ jint *ptr3 = NULL;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, modelMatrix, 0);
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, projMatrix, 0);
+ }
+ if(viewport!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, viewport, 0);
+ }
+ gluLoadSamplingMatrices (
+ (GLUnurbsObj *) nobj,
+ (const GLfloat *) ptr1,
+ (const GLfloat *) ptr2,
+ (const GLint *) ptr3
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, modelMatrix, ptr1, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, projMatrix, ptr2, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluNurbsProperty (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint property,
+ jfloat value)
+ {
+
+ gluNurbsProperty (
+ (GLUnurbsObj *) nobj,
+ (GLenum) property,
+ (GLfloat) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat * value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluGetNurbsProperty (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint property,
+ jfloatArray value)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(value!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, value, &isCopiedArray2);
+ }
+ gluGetNurbsProperty (
+ (GLUnurbsObj *) nobj,
+ (GLenum) property,
+ (GLfloat *) ptr2
+ );
+
+ if(value!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, value, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluBeginCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginCurve (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluEndCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndCurve (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsCurve ( GLUnurbsObj * nobj , GLint nknots , GLfloat * knot , GLint stride , GLfloat * ctlarray , GLint order , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluNurbsCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint nknots,
+ jfloatArray knot,
+ jint stride,
+ jfloatArray ctlarray,
+ jint order,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+
+ if(knot!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, knot, &isCopiedArray2);
+ }
+ if(ctlarray!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, ctlarray, &isCopiedArray4);
+ }
+ gluNurbsCurve (
+ (GLUnurbsObj *) nobj,
+ (GLint) nknots,
+ (GLfloat *) ptr2,
+ (GLint) stride,
+ (GLfloat *) ptr4,
+ (GLint) order,
+ (GLenum) type
+ );
+
+ if(knot!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, knot, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(ctlarray!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ctlarray, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluBeginSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginSurface (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluEndSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndSurface (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsSurface ( GLUnurbsObj * nobj , GLint sknot_count , GLfloat * sknot , GLint tknot_count , GLfloat * tknot , GLint s_stride , GLint t_stride , GLfloat * ctlarray , GLint sorder , GLint torder , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluNurbsSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint sknot_count,
+ jfloatArray sknot,
+ jint tknot_count,
+ jfloatArray tknot,
+ jint s_stride,
+ jint t_stride,
+ jfloatArray ctlarray,
+ jint sorder,
+ jint torder,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jfloat *ptr7 = NULL;
+
+ if(sknot!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, sknot, &isCopiedArray2);
+ }
+ if(tknot!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, tknot, &isCopiedArray4);
+ }
+ if(ctlarray!=NULL)
+ {
+ ptr7 = (*env)->GetFloatArrayElements(env, ctlarray, &isCopiedArray7);
+ }
+ gluNurbsSurface (
+ (GLUnurbsObj *) nobj,
+ (GLint) sknot_count,
+ (GLfloat *) ptr2,
+ (GLint) tknot_count,
+ (GLfloat *) ptr4,
+ (GLint) s_stride,
+ (GLint) t_stride,
+ (GLfloat *) ptr7,
+ (GLint) sorder,
+ (GLint) torder,
+ (GLenum) type
+ );
+
+ if(sknot!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, sknot, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(tknot!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, tknot, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(ctlarray!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ctlarray, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluBeginTrim (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginTrim (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluEndTrim (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndTrim (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPwlCurve ( GLUnurbsObj * nobj , GLint count , GLfloat * array , GLint stride , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluPwlCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint count,
+ jfloatArray array,
+ jint stride,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(array!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, array, &isCopiedArray2);
+ }
+ gluPwlCurve (
+ (GLUnurbsObj *) nobj,
+ (GLint) count,
+ (GLfloat *) ptr2,
+ (GLint) stride,
+ (GLenum) type
+ );
+
+ if(array!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, array, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUtesselator * gluNewTess ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluNewTess (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewTess (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginPolygon ( GLUtesselator * tobj , void * polygon_data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluTessBeginPolygon__I_3B (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jbyteArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetByteArrayElements(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluTessBeginPolygon__I_3S (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jshortArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluTessBeginPolygon__I_3I (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jintArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluTessBeginPolygon__I_3F (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jfloatArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluTessBeginPolygon__I_3D (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluTessBeginPolygon__I_3Z (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jbooleanArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluTessBeginPolygon__I_3J (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jlongArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetLongArrayElements(env, polygon_data, &isCopiedArray1);
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluTessBeginContour (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessBeginContour (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessVertex ( GLUtesselator * tobj , GLdouble coords [ 3 ] , void * vertex_data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluTessVertex__I_3D_3B (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jbyteArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluTessVertex__I_3D_3S (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jshortArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluTessVertex__I_3D_3I (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jintArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluTessVertex__I_3D_3F (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jfloatArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluTessVertex__I_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jdoubleArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluTessVertex__I_3D_3Z (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jbooleanArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluTessVertex__I_3D_3J (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jlongArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, vertex_data, &isCopiedArray2);
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluTessEndContour (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessEndContour (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluTessEndPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessEndPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluTessProperty (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint which,
+ jdouble value)
+ {
+
+ gluTessProperty (
+ (GLUtesselator *) tobj,
+ (GLenum) which,
+ (GLdouble) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessNormal ( GLUtesselator * tobj , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluTessNormal (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+
+ gluTessNormal (
+ (GLUtesselator *) tobj,
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble * value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluGetTessProperty (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint which,
+ jdoubleArray value)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+
+ if(value!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, value, &isCopiedArray2);
+ }
+ gluGetTessProperty (
+ (GLUtesselator *) tobj,
+ (GLenum) which,
+ (GLdouble *) ptr2
+ );
+
+ if(value!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, value, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluBeginPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluBeginPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNextContour ( GLUtesselator * tobj , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluNextContour (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint type)
+ {
+
+ gluNextContour (
+ (GLUtesselator *) tobj,
+ (GLenum) type
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNInf_gluEndPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluEndPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/CNativeCode/OpenGLU_JauJNItst_funcs.c b/CNativeCode/OpenGLU_JauJNItst_funcs.c
new file mode 100644
index 0000000..82c6f5d
--- /dev/null
+++ b/CNativeCode/OpenGLU_JauJNItst_funcs.c
@@ -0,0 +1,2683 @@
+/* WARNING ! WARNING *** THIS FILE IS GENERATED BY C2J !!!
+
+ DO NOT MAKE ANY CHANGES *** MAKE CHANGES IN THE SKELETON FILES !!!
+*/
+
+
+/*
+ * Leo Chan -- 1995
+ *
+ * This C file takes care of all the native implementation for the
+ * OpenGL utility commands
+ * ---------------
+ *
+ * Sven Goethel
+ *
+ * September 1997
+ */
+
+/*
+ * need to include the JAVA internal header files for macros and function
+ * prototypes required to maipulated JAVA data structures and functions
+ *
+ * StubPreamble.h includes the structure and macro definitions neede to
+ * convert JAVA data structures into C data structures.
+ *
+ */
+
+#ifdef _WIN32_
+ #include "winstuff.h"
+#endif
+
+#include <stdio.h>
+#include <stdlib.h>
+
+#include <jni.h>
+
+/*
+ * the next thing to include are special headers that were created by
+ * JAVAH. They include the C structure definitions for the JAVA classes
+ */
+#include "gl4java_GLUFuncJauJNI.h"
+
+/*--------------------------------------------------------------------------
+ * here on in is just regular apple pie C
+ */
+
+/*
+ * next put any specific header files that are necessary to implement
+ * this native code
+ */
+#include<GL/gl.h>
+#include <GL/glu.h>
+
+#include "GLCallbackHelperJNI.h"
+#include "GLUCallbackJNI.h"
+#include "jnitools.h"
+
+/**
+ * herein lies the native JAVA methods for the OpenGL functions.
+ */
+
+static const char _glu_n_a_string[] = "GLU-String not avaiable !";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNI_gluErrorString ( JNIEnv *env, jobject obj,
+ jint errorCode )
+{
+ const char *tmpString=0;
+
+ tmpString = gluErrorString ( /* jint */ errorCode );
+ if(tmpString==NULL)
+ tmpString=_glu_n_a_string;
+
+ return (*env)->NewStringUTF(env, tmpString);
+}
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNI_gluGetString ( JNIEnv *env, jobject obj,
+ jint name )
+{
+ const char *tmpString=0;
+
+ tmpString = gluGetString ( /* jint */ name);
+ if(tmpString==NULL)
+ tmpString=_glu_n_a_string;
+
+ return (*env)->NewStringUTF(env, tmpString);
+}
+
+static const char * _glu_lib_vendor_="Jausoft - Sven Goethel Software Development";
+static const char * _glu_lib_version_="2.4.1.0";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNI_getNativeVendor ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _glu_lib_vendor_);
+}
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLUFuncJauJNI_getNativeVersion ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _glu_lib_version_);
+}
+
+static void _AddCallbackNode(JNIEnv *env,
+ jint qnt_obj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature,
+ jint arrayLen1,
+ jint arrayLen2,
+ jint arrayLen3,
+ jint arrayLen4,
+ jint arrayLen5)
+{
+ char * strMethodName = jnitoolsGetJavaString(env, methodName);
+ char * strSignature = jnitoolsGetJavaString(env, signature);
+ jlong glx=0;
+
+ glx = GetCurrentGLContext();
+
+ AddCallbackNode(env, methodClassInstance, strMethodName, strSignature,
+ arrayLen1, arrayLen2, arrayLen3,
+ arrayLen4, arrayLen5,
+ (void *)qnt_obj, which, glx);
+ free(strMethodName);
+ free(strSignature);
+}
+
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluQuadricCallback( JNIEnv *env, jobject obj,
+ jint qobj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature)
+{
+ switch(which)
+ {
+ case GLU_ERROR:
+ gluQuadricCallback((void *)qobj, which,
+ cbf_GLU_ERROR );
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException", "Wrong Callback-Function type (\"which\") !");
+ return;
+ }
+ _AddCallbackNode(env,
+ qobj, which, methodClassInstance, methodName,
+ signature,
+ 0, 0, 0, 0, 0);
+}
+
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluNurbsCallback( JNIEnv *env, jobject obj,
+ jint nobj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature)
+{
+ switch(which)
+ {
+ case GLU_ERROR:
+ gluNurbsCallback((void *)nobj, which,
+ cbf_GLU_ERROR );
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException", "Wrong Callback-Function type (\"which\") !");
+ return;
+ }
+ _AddCallbackNode(env,
+ nobj, which, methodClassInstance, methodName,
+ signature,
+ 0, 0, 0, 0, 0);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluTessCallback( JNIEnv *env, jobject obj,
+ jint tobj, jint which,
+ jobject methodClassInstance,
+ jstring methodName,
+ jstring signature,
+ jint arrayLen1,
+ jint arrayLen2,
+ jint arrayLen3,
+ jint arrayLen4,
+ jint arrayLen5)
+{
+ switch(which)
+ {
+ case GLU_TESS_BEGIN:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_BEGIN );
+ break;
+ case GLU_TESS_BEGIN_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_BEGIN_DATA );
+ break;
+ case GLU_TESS_EDGE_FLAG:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_EDGE_FLAG );
+ break;
+ case GLU_TESS_EDGE_FLAG_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_EDGE_FLAG_DATA );
+ break;
+ case GLU_TESS_VERTEX:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_VERTEX );
+ break;
+ case GLU_TESS_VERTEX_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_VERTEX_DATA );
+ break;
+ case GLU_TESS_END:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_END );
+ break;
+ case GLU_TESS_END_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_END_DATA );
+ break;
+ case GLU_TESS_ERROR:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_ERROR );
+ break;
+ case GLU_TESS_ERROR_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_ERROR_DATA );
+ break;
+ case GLU_TESS_COMBINE:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_COMBINE );
+ break;
+ case GLU_TESS_COMBINE_DATA:
+ gluTessCallback((GLUtesselator *)tobj, which,
+ cbf_GLU_TESS_COMBINE_DATA );
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException", "Wrong Callback-Function type (\"which\") !");
+ return;
+ }
+ _AddCallbackNode(env,
+ tobj, which, methodClassInstance, methodName,
+ signature,
+ arrayLen1, arrayLen2, arrayLen3,
+ arrayLen4, arrayLen5);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluDeleteQuadric( JNIEnv *env, jobject obj,
+ jint qobj )
+{
+ gluDeleteQuadric((void *)qobj);
+ RemoveCallbackNodes((void *)qobj);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluDeleteNurbsRenderer( JNIEnv *env, jobject obj,
+ jint nobj )
+{
+ gluDeleteNurbsRenderer((void *)nobj);
+ RemoveCallbackNodes((void *)nobj);
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
+ jint tobj )
+{
+ gluDeleteTess((GLUtesselator *)tobj);
+ RemoveCallbackNodes((void *)tobj);
+}
+
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: glu-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLUFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLookAt ( GLdouble eyex , GLdouble eyey , GLdouble eyez , GLdouble centerx , GLdouble centery , GLdouble centerz , GLdouble upx , GLdouble upy , GLdouble upz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluLookAt (
+ JNIEnv *env, jobject obj,
+ jdouble eyex,
+ jdouble eyey,
+ jdouble eyez,
+ jdouble centerx,
+ jdouble centery,
+ jdouble centerz,
+ jdouble upx,
+ jdouble upy,
+ jdouble upz)
+ {
+
+ gluLookAt (
+ (GLdouble) eyex,
+ (GLdouble) eyey,
+ (GLdouble) eyez,
+ (GLdouble) centerx,
+ (GLdouble) centery,
+ (GLdouble) centerz,
+ (GLdouble) upx,
+ (GLdouble) upy,
+ (GLdouble) upz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluOrtho2D ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluOrtho2D (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top)
+ {
+
+ gluOrtho2D (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPerspective ( GLdouble fovy , GLdouble aspect , GLdouble zNear , GLdouble zFar ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPerspective (
+ JNIEnv *env, jobject obj,
+ jdouble fovy,
+ jdouble aspect,
+ jdouble zNear,
+ jdouble zFar)
+ {
+
+ gluPerspective (
+ (GLdouble) fovy,
+ (GLdouble) aspect,
+ (GLdouble) zNear,
+ (GLdouble) zFar
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPickMatrix ( GLdouble x , GLdouble y , GLdouble width , GLdouble height , GLint * viewport ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPickMatrix (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble width,
+ jdouble height,
+ jintArray viewport)
+ {
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(viewport!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, viewport, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluPickMatrix arg: viewport");
+ }
+ }
+ gluPickMatrix (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) width,
+ (GLdouble) height,
+ (GLint *) ptr4
+ );
+
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluProject ( GLdouble objx , GLdouble objy , GLdouble objz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * winx , GLdouble * winy , GLdouble * winz ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluProject (
+ JNIEnv *env, jobject obj,
+ jdouble objx,
+ jdouble objy,
+ jdouble objz,
+ jdoubleArray modelMatrix,
+ jdoubleArray projMatrix,
+ jintArray viewport,
+ jdoubleArray winx,
+ jdoubleArray winy,
+ jdoubleArray winz)
+ {
+ jint ret;
+
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ static int isWarned7 = 0;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, modelMatrix, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by gluProject arg: modelMatrix");
+ }
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, projMatrix, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluProject arg: projMatrix");
+ }
+ }
+ if(viewport!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, viewport, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluProject arg: viewport");
+ }
+ }
+ if(winx!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, winx, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluProject arg: winx");
+ }
+ }
+ if(winy!=NULL)
+ {
+ ptr7 = (*env)->GetDoubleArrayElements(env, winy, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by gluProject arg: winy");
+ }
+ }
+ if(winz!=NULL)
+ {
+ ptr8 = (*env)->GetDoubleArrayElements(env, winz, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by gluProject arg: winz");
+ }
+ }
+ ret = (jint) gluProject (
+ (GLdouble) objx,
+ (GLdouble) objy,
+ (GLdouble) objz,
+ (const GLdouble *) ptr3,
+ (const GLdouble *) ptr4,
+ (const GLint *) ptr5,
+ (GLdouble *) ptr6,
+ (GLdouble *) ptr7,
+ (GLdouble *) ptr8
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, modelMatrix, ptr3, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, projMatrix, ptr4, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr5, JNI_ABORT);
+ }
+ if(winx!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, winx, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(winy!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, winy, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(winz!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, winz, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluUnProject ( GLdouble winx , GLdouble winy , GLdouble winz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * objx , GLdouble * objy , GLdouble * objz ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluUnProject (
+ JNIEnv *env, jobject obj,
+ jdouble winx,
+ jdouble winy,
+ jdouble winz,
+ jdoubleArray modelMatrix,
+ jdoubleArray projMatrix,
+ jintArray viewport,
+ jdoubleArray objx,
+ jdoubleArray objy,
+ jdoubleArray objz)
+ {
+ jint ret;
+
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ static int isWarned7 = 0;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, modelMatrix, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by gluUnProject arg: modelMatrix");
+ }
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, projMatrix, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluUnProject arg: projMatrix");
+ }
+ }
+ if(viewport!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, viewport, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluUnProject arg: viewport");
+ }
+ }
+ if(objx!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, objx, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluUnProject arg: objx");
+ }
+ }
+ if(objy!=NULL)
+ {
+ ptr7 = (*env)->GetDoubleArrayElements(env, objy, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by gluUnProject arg: objy");
+ }
+ }
+ if(objz!=NULL)
+ {
+ ptr8 = (*env)->GetDoubleArrayElements(env, objz, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by gluUnProject arg: objz");
+ }
+ }
+ ret = (jint) gluUnProject (
+ (GLdouble) winx,
+ (GLdouble) winy,
+ (GLdouble) winz,
+ (const GLdouble *) ptr3,
+ (const GLdouble *) ptr4,
+ (const GLint *) ptr5,
+ (GLdouble *) ptr6,
+ (GLdouble *) ptr7,
+ (GLdouble *) ptr8
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, modelMatrix, ptr3, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, projMatrix, ptr4, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr5, JNI_ABORT);
+ }
+ if(objx!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, objx, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(objy!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, objy, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(objz!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, objz, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluScaleImage ( GLenum format , GLsizei widthin , GLsizei heightin , GLenum typein , const char * datain , GLsizei widthout , GLsizei heightout , GLenum typeout , char * dataout ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluScaleImage (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint widthin,
+ jint heightin,
+ jint typein,
+ jbyteArray datain,
+ jint widthout,
+ jint heightout,
+ jint typeout,
+ jbyteArray dataout)
+ {
+ jint ret;
+
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jbyte *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(datain!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, datain, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluScaleImage arg: datain");
+ }
+ }
+ if(dataout!=NULL)
+ {
+ ptr8 = (*env)->GetByteArrayElements(env, dataout, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by gluScaleImage arg: dataout");
+ }
+ }
+ ret = (jint) gluScaleImage (
+ (GLenum) format,
+ (GLsizei) widthin,
+ (GLsizei) heightin,
+ (GLenum) typein,
+ (const char *) ptr4,
+ (GLsizei) widthout,
+ (GLsizei) heightout,
+ (GLenum) typeout,
+ (char *) ptr8
+ );
+
+ if(datain!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, datain, ptr4, JNI_ABORT);
+ }
+ if(dataout!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, dataout, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild1DMipmaps ( GLenum target , GLint components , GLint width , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by gluBuild1DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild1DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild2DMipmaps ( GLenum target , GLint components , GLint width , GLint height , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint components,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ jint ret;
+
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(data!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, data, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by gluBuild2DMipmaps arg: data");
+ }
+ }
+ ret = (jint) gluBuild2DMipmaps (
+ (GLenum) target,
+ (GLint) components,
+ (GLint) width,
+ (GLint) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const void *) ptr6
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, data, ptr6, JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUquadricObj * gluNewQuadric ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewQuadric (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewQuadric (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricDrawStyle ( GLUquadricObj * quadObject , GLenum drawStyle ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricDrawStyle (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint drawStyle)
+ {
+
+ gluQuadricDrawStyle (
+ (GLUquadricObj *) quadObject,
+ (GLenum) drawStyle
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricOrientation ( GLUquadricObj * quadObject , GLenum orientation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricOrientation (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint orientation)
+ {
+
+ gluQuadricOrientation (
+ (GLUquadricObj *) quadObject,
+ (GLenum) orientation
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricNormals ( GLUquadricObj * quadObject , GLenum normals ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricNormals (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jint normals)
+ {
+
+ gluQuadricNormals (
+ (GLUquadricObj *) quadObject,
+ (GLenum) normals
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricTexture ( GLUquadricObj * quadObject , GLboolean textureCoords ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluQuadricTexture (
+ JNIEnv *env, jobject obj,
+ jint quadObject,
+ jboolean textureCoords)
+ {
+
+ gluQuadricTexture (
+ (GLUquadricObj *) quadObject,
+ (GLboolean) textureCoords
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluCylinder ( GLUquadricObj * qobj , GLdouble baseRadius , GLdouble topRadius , GLdouble height , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluCylinder (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble baseRadius,
+ jdouble topRadius,
+ jdouble height,
+ jint slices,
+ jint stacks)
+ {
+
+ gluCylinder (
+ (GLUquadricObj *) qobj,
+ (GLdouble) baseRadius,
+ (GLdouble) topRadius,
+ (GLdouble) height,
+ (GLint) slices,
+ (GLint) stacks
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluSphere ( GLUquadricObj * qobj , GLdouble radius , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluSphere (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble radius,
+ jint slices,
+ jint stacks)
+ {
+
+ gluSphere (
+ (GLUquadricObj *) qobj,
+ (GLdouble) radius,
+ (GLint) slices,
+ (GLint) stacks
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluDisk (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble innerRadius,
+ jdouble outerRadius,
+ jint slices,
+ jint loops)
+ {
+
+ gluDisk (
+ (GLUquadricObj *) qobj,
+ (GLdouble) innerRadius,
+ (GLdouble) outerRadius,
+ (GLint) slices,
+ (GLint) loops
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPartialDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops , GLdouble startAngle , GLdouble sweepAngle ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPartialDisk (
+ JNIEnv *env, jobject obj,
+ jint qobj,
+ jdouble innerRadius,
+ jdouble outerRadius,
+ jint slices,
+ jint loops,
+ jdouble startAngle,
+ jdouble sweepAngle)
+ {
+
+ gluPartialDisk (
+ (GLUquadricObj *) qobj,
+ (GLdouble) innerRadius,
+ (GLdouble) outerRadius,
+ (GLint) slices,
+ (GLint) loops,
+ (GLdouble) startAngle,
+ (GLdouble) sweepAngle
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUnurbsObj * gluNewNurbsRenderer ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewNurbsRenderer (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewNurbsRenderer (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLoadSamplingMatrices ( GLUnurbsObj * nobj , const GLfloat modelMatrix [ 16 ] , const GLfloat projMatrix [ 16 ] , const GLint viewport [ 4 ] ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluLoadSamplingMatrices (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jfloatArray modelMatrix,
+ jfloatArray projMatrix,
+ jintArray viewport)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(modelMatrix!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, modelMatrix, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluLoadSamplingMatrices arg: modelMatrix");
+ }
+ }
+ if(projMatrix!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, projMatrix, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluLoadSamplingMatrices arg: projMatrix");
+ }
+ }
+ if(viewport!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, viewport, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by gluLoadSamplingMatrices arg: viewport");
+ }
+ }
+ gluLoadSamplingMatrices (
+ (GLUnurbsObj *) nobj,
+ (const GLfloat *) ptr1,
+ (const GLfloat *) ptr2,
+ (const GLint *) ptr3
+ );
+
+ if(modelMatrix!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, modelMatrix, ptr1, JNI_ABORT);
+ }
+ if(projMatrix!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, projMatrix, ptr2, JNI_ABORT);
+ }
+ if(viewport!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, viewport, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsProperty (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint property,
+ jfloat value)
+ {
+
+ gluNurbsProperty (
+ (GLUnurbsObj *) nobj,
+ (GLenum) property,
+ (GLfloat) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat * value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluGetNurbsProperty (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint property,
+ jfloatArray value)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(value!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, value, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluGetNurbsProperty arg: value");
+ }
+ }
+ gluGetNurbsProperty (
+ (GLUnurbsObj *) nobj,
+ (GLenum) property,
+ (GLfloat *) ptr2
+ );
+
+ if(value!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, value, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginCurve (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndCurve (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsCurve ( GLUnurbsObj * nobj , GLint nknots , GLfloat * knot , GLint stride , GLfloat * ctlarray , GLint order , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint nknots,
+ jfloatArray knot,
+ jint stride,
+ jfloatArray ctlarray,
+ jint order,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(knot!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, knot, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluNurbsCurve arg: knot");
+ }
+ }
+ if(ctlarray!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, ctlarray, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluNurbsCurve arg: ctlarray");
+ }
+ }
+ gluNurbsCurve (
+ (GLUnurbsObj *) nobj,
+ (GLint) nknots,
+ (GLfloat *) ptr2,
+ (GLint) stride,
+ (GLfloat *) ptr4,
+ (GLint) order,
+ (GLenum) type
+ );
+
+ if(knot!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, knot, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(ctlarray!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ctlarray, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginSurface (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndSurface (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsSurface ( GLUnurbsObj * nobj , GLint sknot_count , GLfloat * sknot , GLint tknot_count , GLfloat * tknot , GLint s_stride , GLint t_stride , GLfloat * ctlarray , GLint sorder , GLint torder , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNurbsSurface (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint sknot_count,
+ jfloatArray sknot,
+ jint tknot_count,
+ jfloatArray tknot,
+ jint s_stride,
+ jint t_stride,
+ jfloatArray ctlarray,
+ jint sorder,
+ jint torder,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jfloat *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(sknot!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, sknot, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluNurbsSurface arg: sknot");
+ }
+ }
+ if(tknot!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, tknot, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by gluNurbsSurface arg: tknot");
+ }
+ }
+ if(ctlarray!=NULL)
+ {
+ ptr7 = (*env)->GetFloatArrayElements(env, ctlarray, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by gluNurbsSurface arg: ctlarray");
+ }
+ }
+ gluNurbsSurface (
+ (GLUnurbsObj *) nobj,
+ (GLint) sknot_count,
+ (GLfloat *) ptr2,
+ (GLint) tknot_count,
+ (GLfloat *) ptr4,
+ (GLint) s_stride,
+ (GLint) t_stride,
+ (GLfloat *) ptr7,
+ (GLint) sorder,
+ (GLint) torder,
+ (GLenum) type
+ );
+
+ if(sknot!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, sknot, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(tknot!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, tknot, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(ctlarray!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ctlarray, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginTrim (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluBeginTrim (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndTrim (
+ JNIEnv *env, jobject obj,
+ jint nobj)
+ {
+
+ gluEndTrim (
+ (GLUnurbsObj *) nobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPwlCurve ( GLUnurbsObj * nobj , GLint count , GLfloat * array , GLint stride , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluPwlCurve (
+ JNIEnv *env, jobject obj,
+ jint nobj,
+ jint count,
+ jfloatArray array,
+ jint stride,
+ jint type)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(array!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, array, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluPwlCurve arg: array");
+ }
+ }
+ gluPwlCurve (
+ (GLUnurbsObj *) nobj,
+ (GLint) count,
+ (GLfloat *) ptr2,
+ (GLint) stride,
+ (GLenum) type
+ );
+
+ if(array!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, array, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUtesselator * gluNewTess ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNewTess (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) gluNewTess (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginPolygon ( GLUtesselator * tobj , void * polygon_data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3B (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jbyteArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetByteArrayElements(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3S (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jshortArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3I (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jintArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3F (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jfloatArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3D (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3Z (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jbooleanArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3J (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jlongArray polygon_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(polygon_data!=NULL)
+ {
+ ptr1 = (*env)->GetLongArrayElements(env, polygon_data, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessBeginPolygon arg: polygon_data");
+ }
+ }
+ gluTessBeginPolygon (
+ (GLUtesselator *) tobj,
+ (void *) ptr1
+ );
+
+ if(polygon_data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginContour (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessBeginContour (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessVertex ( GLUtesselator * tobj , GLdouble coords [ 3 ] , void * vertex_data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3B (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jbyteArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3S (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jshortArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3I (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jintArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3F (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jfloatArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jdoubleArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3Z (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jbooleanArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3J (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdoubleArray coords,
+ jlongArray vertex_data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(coords!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by gluTessVertex arg: coords");
+ }
+ }
+ if(vertex_data!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, vertex_data, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluTessVertex arg: vertex_data");
+ }
+ }
+ gluTessVertex (
+ (GLUtesselator *) tobj,
+ (GLdouble *) ptr1,
+ (void *) ptr2
+ );
+
+ if(coords!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, coords, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(vertex_data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessEndContour (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessEndContour (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessEndPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluTessEndPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessProperty (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint which,
+ jdouble value)
+ {
+
+ gluTessProperty (
+ (GLUtesselator *) tobj,
+ (GLenum) which,
+ (GLdouble) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessNormal ( GLUtesselator * tobj , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluTessNormal (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+
+ gluTessNormal (
+ (GLUtesselator *) tobj,
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble * value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluGetTessProperty (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint which,
+ jdoubleArray value)
+ {
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(value!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, value, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by gluGetTessProperty arg: value");
+ }
+ }
+ gluGetTessProperty (
+ (GLUtesselator *) tobj,
+ (GLenum) which,
+ (GLdouble *) ptr2
+ );
+
+ if(value!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, value, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluBeginPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluBeginPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNextContour ( GLUtesselator * tobj , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluNextContour (
+ JNIEnv *env, jobject obj,
+ jint tobj,
+ jint type)
+ {
+
+ gluNextContour (
+ (GLUtesselator *) tobj,
+ (GLenum) type
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFuncJauJNI_gluEndPolygon (
+ JNIEnv *env, jobject obj,
+ jint tobj)
+ {
+
+ gluEndPolygon (
+ (GLUtesselator *) tobj
+ );
+
+ }
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/CNativeCode/OpenGLU_funcs.c.skel b/CNativeCode/OpenGLU_funcs.c.skel
new file mode 100644
index 0000000..81cfda7
--- /dev/null
+++ b/CNativeCode/OpenGLU_funcs.c.skel
@@ -0,0 +1,55 @@
+/*
+ * Leo Chan -- 1995
+ *
+ * This C file takes care of all the native implementation for the
+ * OpenGL utility commands
+ * ---------------
+ *
+ * Sven Goethel
+ *
+ * September 1997
+ */
+
+/*
+ * need to include the JAVA internal header files for macros and function
+ * prototypes required to maipulated JAVA data structures and functions
+ *
+ * StubPreamble.h includes the structure and macro definitions neede to
+ * convert JAVA data structures into C data structures.
+ *
+ */
+
+#ifdef _WIN32_
+ #include "winstuff.h"
+#endif
+
+#include <stdio.h>
+#include <stdlib.h>
+
+#include <jni.h>
+
+/*
+ * the next thing to include are special headers that were created by
+ * JAVAH. They include the C structure definitions for the JAVA classes
+ */
+#include "gl4java_GLUFuncJauJNI.h"
+
+/*--------------------------------------------------------------------------
+ * here on in is just regular apple pie C
+ */
+
+/*
+ * next put any specific header files that are necessary to implement
+ * this native code
+ */
+#include<GL/gl.h>
+#include <GL/glu.h>
+
+#include "GLCallbackHelperJNI.h"
+#include "GLUCallbackJNI.h"
+#include "jnitools.h"
+
+/**
+ * herein lies the native JAVA methods for the OpenGL functions.
+ */
+
diff --git a/CNativeCode/OpenGL_JauJNI12_dynfuncs.c b/CNativeCode/OpenGL_JauJNI12_dynfuncs.c
new file mode 100644
index 0000000..e0e7d43
--- /dev/null
+++ b/CNativeCode/OpenGL_JauJNI12_dynfuncs.c
@@ -0,0 +1,23658 @@
+/* WARNING ! WARNING *** THIS FILE IS GENERATED BY C2J !!!
+
+ DO NOT MAKE ANY CHANGES *** MAKE CHANGES IN THE SKELETON FILES !!!
+*/
+
+
+/*
+ * Leo Chan -- 1995
+ *
+ * This mammoth C file takes care of all the native implementation for the
+ * bulk of OpenGL commands
+ * ---------------
+ *
+ * Sven Goethel
+ *
+ * September 1997
+ */
+
+/*
+ * need to include the JAVA internal header files for macros and function
+ * prototypes required to maipulated JAVA data structures and functions
+ *
+ * StubPreamble.h includes the structure and macro definitions neede to
+ * convert JAVA data structures into C data structures.
+ *
+ */
+
+#include "OpenGL_misc.h"
+
+/*
+ * the next thing to include are special headers that were created by
+ * JAVAH. They include the C structure definitions for the JAVA classes
+ */
+#include "gl4java_GLFuncJauJNI.h"
+
+/*--------------------------------------------------------------------------
+ * here on in is just regular apple pie C
+ */
+
+#ifndef LIBAPIENTRY
+ #define LIBAPIENTRY
+#endif
+#ifndef LIBAPI
+ #define LIBAPI
+#endif
+
+#ifndef CALLBACK
+ #define CALLBACK
+#endif
+/** THIS IS A MANUAL CODED PART
+ gl-manualCodedImplJNI.java
+*/
+
+static const char _gl_n_a_string[] = "GL-String not avaiable !";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLFuncJauJNI_glGetString ( JNIEnv *env, jobject obj,
+ jint name )
+{
+ const char * tmpString=0;
+
+ tmpString = glGetString ( /* jint */ name);
+ if(tmpString==NULL)
+ tmpString=_gl_n_a_string;
+
+ return (*env)->NewStringUTF(env, tmpString);
+}
+
+static const char * _gl_lib_vendor_="Jausoft - Sven Goethel Software Development";
+static const char * _gl_lib_version_="2.4.1.0";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLFuncJauJNI_getNativeVendor ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _gl_lib_vendor_);
+}
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLFuncJauJNI_getNativeVersion ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _gl_lib_version_);
+}
+
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: gl-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearIndex ( GLfloat c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearIndex (
+ JNIEnv *env, jobject obj,
+ jfloat c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glClearIndex", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearColor (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glClearColor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClear ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClear (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glClear", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexMask ( GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexMask (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIndexMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMask ( GLboolean red , GLboolean green , GLboolean blue , GLboolean alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorMask (
+ JNIEnv *env, jobject obj,
+ jboolean red,
+ jboolean green,
+ jboolean blue,
+ jboolean alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean, GLboolean, GLboolean, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean, GLboolean, GLboolean, GLboolean))
+ getGLProcAddressHelper("glColorMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) red,
+ (GLboolean) green,
+ (GLboolean) blue,
+ (GLboolean) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAlphaFunc ( GLenum func , GLclampf ref ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glAlphaFunc (
+ JNIEnv *env, jobject obj,
+ jint func,
+ jfloat ref)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLclampf))
+ getGLProcAddressHelper("glAlphaFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func,
+ (GLclampf) ref
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendFunc ( GLenum sfactor , GLenum dfactor ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendFunc (
+ JNIEnv *env, jobject obj,
+ jint sfactor,
+ jint dfactor)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glBlendFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) sfactor,
+ (GLenum) dfactor
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLogicOp ( GLenum opcode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLogicOp (
+ JNIEnv *env, jobject obj,
+ jint opcode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glLogicOp", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) opcode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCullFace ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCullFace (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glCullFace", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrontFace ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFrontFace (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glFrontFace", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointSize ( GLfloat size ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointSize (
+ JNIEnv *env, jobject obj,
+ jfloat size)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glPointSize", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) size
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineWidth ( GLfloat width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLineWidth (
+ JNIEnv *env, jobject obj,
+ jfloat width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glLineWidth", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineStipple ( GLint factor , GLushort pattern ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLineStipple (
+ JNIEnv *env, jobject obj,
+ jint factor,
+ jshort pattern)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLushort))
+ getGLProcAddressHelper("glLineStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) factor,
+ (GLushort) pattern
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonMode ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonMode (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glPolygonMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffset ( GLfloat factor , GLfloat units ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonOffset (
+ JNIEnv *env, jobject obj,
+ jfloat factor,
+ jfloat units)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPolygonOffset", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) factor,
+ (GLfloat) units
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonStipple ( const GLubyte * mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonStipple (
+ JNIEnv *env, jobject obj,
+ jbyteArray mask)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glPolygonStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(mask!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, mask, 0);
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(mask!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, mask, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPolygonStipple ( GLubyte * mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPolygonStipple (
+ JNIEnv *env, jobject obj,
+ jbyteArray mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte *))
+ getGLProcAddressHelper("glGetPolygonStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(mask!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, mask, &isCopiedArray0);
+ }
+ __func_ptr__ (
+ (GLubyte *) ptr0
+ );
+
+ if(mask!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, mask, ptr0, (isCopiedArray0 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlag ( GLboolean flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlag (
+ JNIEnv *env, jobject obj,
+ jboolean flag)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean))
+ getGLProcAddressHelper("glEdgeFlag", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) flag
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagv ( const GLboolean * flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagv (
+ JNIEnv *env, jobject obj,
+ jbooleanArray flag)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLboolean *) = NULL;
+ jboolean *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLboolean *))
+ getGLProcAddressHelper("glEdgeFlagv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(flag!=NULL)
+ {
+ ptr0 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, flag, 0);
+ }
+ __func_ptr__ (
+ (const GLboolean *) ptr0
+ );
+
+ if(flag!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, flag, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScissor ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScissor (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glScissor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClipPlane ( GLenum plane , const GLdouble * equation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClipPlane (
+ JNIEnv *env, jobject obj,
+ jint plane,
+ jdoubleArray equation)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glClipPlane", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(equation!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, equation, 0);
+ }
+ __func_ptr__ (
+ (GLenum) plane,
+ (const GLdouble *) ptr1
+ );
+
+ if(equation!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, equation, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetClipPlane ( GLenum plane , GLdouble * equation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetClipPlane (
+ JNIEnv *env, jobject obj,
+ jint plane,
+ jdoubleArray equation)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetClipPlane", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(equation!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, equation, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) plane,
+ (GLdouble *) ptr1
+ );
+
+ if(equation!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, equation, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawBuffer (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDrawBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadBuffer (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glReadBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnable ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnable (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glEnable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisable ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDisable (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDisable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsEnabled ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsEnabled (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLenum) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glIsEnabled", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLenum) cap
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnableClientState (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glEnableClientState", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDisableClientState (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDisableClientState", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetBooleanv ( GLenum pname , GLboolean * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetBooleanv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean *))
+ getGLProcAddressHelper("glGetBooleanv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLboolean *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetDoublev ( GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetDoublev (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetDoublev", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLdouble *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetFloatv ( GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetFloatv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetFloatv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetIntegerv ( GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetIntegerv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint *))
+ getGLProcAddressHelper("glGetIntegerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushAttrib (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glPushAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopAttrib ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopAttrib (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushClientAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushClientAttrib (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glPushClientAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopClientAttrib ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopClientAttrib (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopClientAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint glRenderMode ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glRenderMode (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static jint (CALLBACK *__func_ptr__)(GLenum) = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glRenderMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ (GLenum) mode
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLenum glGetError ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetError (
+ JNIEnv *env, jobject obj)
+ {
+ static jint (CALLBACK *__func_ptr__)() = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)())
+ getGLProcAddressHelper("glGetError", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFinish ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFinish (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glFinish", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFlush ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFlush (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glFlush", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHint ( GLenum target , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glHint (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glHint", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearDepth ( GLclampd depth ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearDepth (
+ JNIEnv *env, jobject obj,
+ jdouble depth)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampd) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampd))
+ getGLProcAddressHelper("glClearDepth", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampd) depth
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthFunc ( GLenum func ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthFunc (
+ JNIEnv *env, jobject obj,
+ jint func)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDepthFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthMask ( GLboolean flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthMask (
+ JNIEnv *env, jobject obj,
+ jboolean flag)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean))
+ getGLProcAddressHelper("glDepthMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) flag
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthRange ( GLclampd near_val , GLclampd far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthRange (
+ JNIEnv *env, jobject obj,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampd, GLclampd) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampd, GLclampd))
+ getGLProcAddressHelper("glDepthRange", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampd) near_val,
+ (GLclampd) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearAccum ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearAccum (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glClearAccum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue,
+ (GLfloat) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAccum ( GLenum op , GLfloat value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glAccum (
+ JNIEnv *env, jobject obj,
+ jint op,
+ jfloat value)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glAccum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) op,
+ (GLfloat) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMatrixMode ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMatrixMode (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glMatrixMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glOrtho ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glOrtho (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glOrtho", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top,
+ (GLdouble) near_val,
+ (GLdouble) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrustum ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFrustum (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glFrustum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top,
+ (GLdouble) near_val,
+ (GLdouble) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glViewport ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glViewport (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glViewport", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushMatrix ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushMatrix (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPushMatrix", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopMatrix ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopMatrix (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopMatrix", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadIdentity ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadIdentity (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glLoadIdentity", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadMatrixd (
+ JNIEnv *env, jobject obj,
+ jdoubleArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glLoadMatrixd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, m, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadMatrixf (
+ JNIEnv *env, jobject obj,
+ jfloatArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glLoadMatrixf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, m, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultMatrixd (
+ JNIEnv *env, jobject obj,
+ jdoubleArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glMultMatrixd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, m, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultMatrixf (
+ JNIEnv *env, jobject obj,
+ jfloatArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glMultMatrixf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, m, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotated ( GLdouble angle , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRotated (
+ JNIEnv *env, jobject obj,
+ jdouble angle,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRotated", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) angle,
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotatef ( GLfloat angle , GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRotatef (
+ JNIEnv *env, jobject obj,
+ jfloat angle,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRotatef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) angle,
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScaled ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScaled (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glScaled", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScalef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScalef (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glScalef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslated ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTranslated (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTranslated", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslatef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTranslatef (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTranslatef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsList ( GLuint list ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsList (
+ JNIEnv *env, jobject obj,
+ jint list)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) list
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteLists ( GLuint list , GLsizei range ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteLists (
+ JNIEnv *env, jobject obj,
+ jint list,
+ jint range)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLsizei))
+ getGLProcAddressHelper("glDeleteLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list,
+ (GLsizei) range
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLuint glGenLists ( GLsizei range ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenLists (
+ JNIEnv *env, jobject obj,
+ jint range)
+ {
+ static jint (CALLBACK *__func_ptr__)(GLsizei) = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)(GLsizei))
+ getGLProcAddressHelper("glGenLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ (GLsizei) range
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNewList ( GLuint list , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNewList (
+ JNIEnv *env, jobject obj,
+ jint list,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLenum))
+ getGLProcAddressHelper("glNewList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEndList ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEndList (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glEndList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallList ( GLuint list ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallList (
+ JNIEnv *env, jobject obj,
+ jint list)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glCallList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallLists ( GLsizei n , GLenum type , const GLvoid * lists ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3B (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jbyteArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3S (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jshortArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3I (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jintArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3F (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jfloatArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3D (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jdoubleArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jbooleanArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3J (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jlongArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jlong *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glListBase ( GLuint base ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glListBase (
+ JNIEnv *env, jobject obj,
+ jint base)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glListBase", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) base
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBegin ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBegin (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBegin", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnd ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnd (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glEnd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glVertex2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glVertex2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glVertex3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glVertex3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z,
+ jdouble w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z,
+ (GLdouble) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z,
+ jfloat w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z,
+ (GLfloat) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z,
+ jint w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glVertex4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z,
+ (GLint) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z,
+ jshort w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glVertex4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z,
+ (GLshort) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3b ( GLbyte nx , GLbyte ny , GLbyte nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3b (
+ JNIEnv *env, jobject obj,
+ jbyte nx,
+ jbyte ny,
+ jbyte nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glNormal3b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) nx,
+ (GLbyte) ny,
+ (GLbyte) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3d ( GLdouble nx , GLdouble ny , GLdouble nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3d (
+ JNIEnv *env, jobject obj,
+ jdouble nx,
+ jdouble ny,
+ jdouble nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glNormal3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) nx,
+ (GLdouble) ny,
+ (GLdouble) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3f ( GLfloat nx , GLfloat ny , GLfloat nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3f (
+ JNIEnv *env, jobject obj,
+ jfloat nx,
+ jfloat ny,
+ jfloat nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glNormal3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) nx,
+ (GLfloat) ny,
+ (GLfloat) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3i ( GLint nx , GLint ny , GLint nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3i (
+ JNIEnv *env, jobject obj,
+ jint nx,
+ jint ny,
+ jint nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glNormal3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) nx,
+ (GLint) ny,
+ (GLint) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3s ( GLshort nx , GLshort ny , GLshort nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3s (
+ JNIEnv *env, jobject obj,
+ jshort nx,
+ jshort ny,
+ jshort nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glNormal3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) nx,
+ (GLshort) ny,
+ (GLshort) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glNormal3bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glNormal3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glNormal3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glNormal3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glNormal3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexd ( GLdouble c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexd (
+ JNIEnv *env, jobject obj,
+ jdouble c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glIndexd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexf ( GLfloat c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexf (
+ JNIEnv *env, jobject obj,
+ jfloat c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glIndexf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexi ( GLint c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexi (
+ JNIEnv *env, jobject obj,
+ jint c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glIndexi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexs ( GLshort c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexs (
+ JNIEnv *env, jobject obj,
+ jshort c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort))
+ getGLProcAddressHelper("glIndexs", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexub ( GLubyte c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexub (
+ JNIEnv *env, jobject obj,
+ jbyte c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte))
+ getGLProcAddressHelper("glIndexub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexdv ( const GLdouble * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexdv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glIndexdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexfv ( const GLfloat * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexfv (
+ JNIEnv *env, jobject obj,
+ jfloatArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glIndexfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexiv ( const GLint * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexiv (
+ JNIEnv *env, jobject obj,
+ jintArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glIndexiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexsv ( const GLshort * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexsv (
+ JNIEnv *env, jobject obj,
+ jshortArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glIndexsv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexubv ( const GLubyte * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glIndexubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3b ( GLbyte red , GLbyte green , GLbyte blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3b (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glColor3b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) red,
+ (GLbyte) green,
+ (GLbyte) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3d ( GLdouble red , GLdouble green , GLdouble blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3d (
+ JNIEnv *env, jobject obj,
+ jdouble red,
+ jdouble green,
+ jdouble blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glColor3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) red,
+ (GLdouble) green,
+ (GLdouble) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3f ( GLfloat red , GLfloat green , GLfloat blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3f (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glColor3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3i ( GLint red , GLint green , GLint blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3i (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glColor3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) red,
+ (GLint) green,
+ (GLint) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3s ( GLshort red , GLshort green , GLshort blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3s (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glColor3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) red,
+ (GLshort) green,
+ (GLshort) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ub ( GLubyte red , GLubyte green , GLubyte blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ub (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte, GLubyte, GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte, GLubyte, GLubyte))
+ getGLProcAddressHelper("glColor3ub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) red,
+ (GLubyte) green,
+ (GLubyte) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ui ( GLuint red , GLuint green , GLuint blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ui (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLuint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLuint, GLuint))
+ getGLProcAddressHelper("glColor3ui", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) red,
+ (GLuint) green,
+ (GLuint) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3us ( GLushort red , GLushort green , GLushort blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3us (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLushort, GLushort, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLushort, GLushort, GLushort))
+ getGLProcAddressHelper("glColor3us", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLushort) red,
+ (GLushort) green,
+ (GLushort) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4b ( GLbyte red , GLbyte green , GLbyte blue , GLbyte alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4b (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue,
+ jbyte alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glColor4b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) red,
+ (GLbyte) green,
+ (GLbyte) blue,
+ (GLbyte) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4d ( GLdouble red , GLdouble green , GLdouble blue , GLdouble alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4d (
+ JNIEnv *env, jobject obj,
+ jdouble red,
+ jdouble green,
+ jdouble blue,
+ jdouble alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glColor4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) red,
+ (GLdouble) green,
+ (GLdouble) blue,
+ (GLdouble) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4f ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4f (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glColor4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue,
+ (GLfloat) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4i ( GLint red , GLint green , GLint blue , GLint alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4i (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue,
+ jint alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glColor4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) red,
+ (GLint) green,
+ (GLint) blue,
+ (GLint) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4s ( GLshort red , GLshort green , GLshort blue , GLshort alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4s (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue,
+ jshort alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glColor4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) red,
+ (GLshort) green,
+ (GLshort) blue,
+ (GLshort) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ub ( GLubyte red , GLubyte green , GLubyte blue , GLubyte alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ub (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue,
+ jbyte alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte, GLubyte, GLubyte, GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte, GLubyte, GLubyte, GLubyte))
+ getGLProcAddressHelper("glColor4ub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) red,
+ (GLubyte) green,
+ (GLubyte) blue,
+ (GLubyte) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ui ( GLuint red , GLuint green , GLuint blue , GLuint alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ui (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue,
+ jint alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLuint, GLuint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLuint, GLuint, GLuint))
+ getGLProcAddressHelper("glColor4ui", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) red,
+ (GLuint) green,
+ (GLuint) blue,
+ (GLuint) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4us ( GLushort red , GLushort green , GLushort blue , GLushort alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4us (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue,
+ jshort alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLushort, GLushort, GLushort, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLushort, GLushort, GLushort, GLushort))
+ getGLProcAddressHelper("glColor4us", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLushort) red,
+ (GLushort) green,
+ (GLushort) blue,
+ (GLushort) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glColor3bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glColor3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glColor3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glColor3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glColor3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glColor3ubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3uiv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLuint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLuint *))
+ getGLProcAddressHelper("glColor3uiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLuint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3usv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLushort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLushort *))
+ getGLProcAddressHelper("glColor3usv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLushort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glColor4bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glColor4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glColor4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glColor4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glColor4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glColor4ubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4uiv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLuint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLuint *))
+ getGLProcAddressHelper("glColor4uiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLuint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4usv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLushort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLushort *))
+ getGLProcAddressHelper("glColor4usv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLushort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1d ( GLdouble s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1d (
+ JNIEnv *env, jobject obj,
+ jdouble s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glTexCoord1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1f ( GLfloat s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1f (
+ JNIEnv *env, jobject obj,
+ jfloat s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glTexCoord1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1i ( GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1i (
+ JNIEnv *env, jobject obj,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glTexCoord1i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1s ( GLshort s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1s (
+ JNIEnv *env, jobject obj,
+ jshort s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort))
+ getGLProcAddressHelper("glTexCoord1s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2d ( GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2f ( GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2i ( GLint s , GLint t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glTexCoord2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2s ( GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3d ( GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t,
+ jdouble r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3f ( GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t,
+ jfloat r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3i ( GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t,
+ jint r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glTexCoord3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t,
+ (GLint) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3s ( GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t,
+ jshort r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4d ( GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t,
+ jdouble r,
+ jdouble q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r,
+ (GLdouble) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4f ( GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t,
+ jfloat r,
+ jfloat q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r,
+ (GLfloat) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4i ( GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t,
+ jint r,
+ jint q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glTexCoord4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t,
+ (GLint) r,
+ (GLint) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4s ( GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t,
+ jshort r,
+ jshort q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r,
+ (GLshort) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord1dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord1fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord1iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord1sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glRasterPos2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glRasterPos3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z,
+ jdouble w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z,
+ (GLdouble) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z,
+ jfloat w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z,
+ (GLfloat) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z,
+ jint w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glRasterPos4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z,
+ (GLint) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z,
+ jshort w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z,
+ (GLshort) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectd ( GLdouble x1 , GLdouble y1 , GLdouble x2 , GLdouble y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectd (
+ JNIEnv *env, jobject obj,
+ jdouble x1,
+ jdouble y1,
+ jdouble x2,
+ jdouble y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRectd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x1,
+ (GLdouble) y1,
+ (GLdouble) x2,
+ (GLdouble) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectf ( GLfloat x1 , GLfloat y1 , GLfloat x2 , GLfloat y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectf (
+ JNIEnv *env, jobject obj,
+ jfloat x1,
+ jfloat y1,
+ jfloat x2,
+ jfloat y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRectf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x1,
+ (GLfloat) y1,
+ (GLfloat) x2,
+ (GLfloat) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRecti ( GLint x1 , GLint y1 , GLint x2 , GLint y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRecti (
+ JNIEnv *env, jobject obj,
+ jint x1,
+ jint y1,
+ jint x2,
+ jint y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glRecti", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x1,
+ (GLint) y1,
+ (GLint) x2,
+ (GLint) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRects ( GLshort x1 , GLshort y1 , GLshort x2 , GLshort y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRects (
+ JNIEnv *env, jobject obj,
+ jshort x1,
+ jshort y1,
+ jshort x2,
+ jshort y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRects", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x1,
+ (GLshort) y1,
+ (GLshort) x2,
+ (GLshort) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectdv ( const GLdouble * v1 , const GLdouble * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectdv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v1,
+ jdoubleArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *, const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *, const GLdouble *))
+ getGLProcAddressHelper("glRectdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v1, 0);
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v2, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0,
+ (const GLdouble *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectfv ( const GLfloat * v1 , const GLfloat * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectfv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v1,
+ jfloatArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *, const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *, const GLfloat *))
+ getGLProcAddressHelper("glRectfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v1, 0);
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v2, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0,
+ (const GLfloat *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectiv ( const GLint * v1 , const GLint * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectiv (
+ JNIEnv *env, jobject obj,
+ jintArray v1,
+ jintArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *, const GLint *) = NULL;
+ jint *ptr0 = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *, const GLint *))
+ getGLProcAddressHelper("glRectiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v1, 0);
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v2, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0,
+ (const GLint *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectsv ( const GLshort * v1 , const GLshort * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectsv (
+ JNIEnv *env, jobject obj,
+ jshortArray v1,
+ jshortArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *, const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *, const GLshort *))
+ getGLProcAddressHelper("glRectsv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v1, 0);
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v2, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0,
+ (const GLshort *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointer ( GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3B (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3S (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3I (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3F (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3D (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3Z (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3J (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jlong *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointerv ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3B (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbyteArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3S (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jshortArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3I (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3F (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3D (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3Z (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3J (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jlongArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElement ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glArrayElement (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glArrayElement", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArrays ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawArrays (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLsizei))
+ getGLProcAddressHelper("glDrawArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawElements ( GLenum mode , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3B (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jbyteArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3S (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jshortArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3I (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jintArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3F (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jfloatArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3D (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jdoubleArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jbooleanArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3J (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jlongArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInterleavedArrays ( GLenum format , GLsizei stride , const GLvoid * pointer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3B (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jbyteArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3S (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jshortArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3I (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jintArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3F (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jfloatArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3D (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jdoubleArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jbooleanArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3J (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jlongArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glShadeModel ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glShadeModel (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glShadeModel", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightf ( GLenum light , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightf (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glLightf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLighti ( GLenum light , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLighti (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glLighti", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightfv ( GLenum light , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightfv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glLightfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightiv ( GLenum light , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightiv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glLightiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightfv ( GLenum light , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetLightfv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetLightfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightiv ( GLenum light , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetLightiv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetLightiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModelf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glLightModelf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeli ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModeli (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glLightModeli", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModelfv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glLightModelfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeliv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModeliv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glLightModeliv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialf ( GLenum face , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialf (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glMaterialf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMateriali ( GLenum face , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMateriali (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glMateriali", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialfv ( GLenum face , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialfv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMaterialfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialiv ( GLenum face , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialiv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glMaterialiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialfv ( GLenum face , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMaterialfv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMaterialfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialiv ( GLenum face , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMaterialiv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMaterialiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMaterial ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorMaterial (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glColorMaterial", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelZoom ( GLfloat xfactor , GLfloat yfactor ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelZoom (
+ JNIEnv *env, jobject obj,
+ jfloat xfactor,
+ jfloat yfactor)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPixelZoom", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) xfactor,
+ (GLfloat) yfactor
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStoref ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelStoref (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPixelStoref", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStorei ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelStorei (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glPixelStorei", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelTransferf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPixelTransferf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelTransferi (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glPixelTransferi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapfv ( GLenum map , GLint mapsize , const GLfloat * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapfv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLfloat *))
+ getGLProcAddressHelper("glPixelMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, values, 0);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLfloat *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapuiv ( GLenum map , GLint mapsize , const GLuint * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapuiv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLuint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLuint *))
+ getGLProcAddressHelper("glPixelMapuiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, values, 0);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLuint *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapusv ( GLenum map , GLint mapsize , const GLushort * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapusv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLushort *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLushort *))
+ getGLProcAddressHelper("glPixelMapusv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, values, 0);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLushort *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapfv ( GLenum map , GLfloat * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapfv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetPixelMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLfloat *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapuiv ( GLenum map , GLuint * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapuiv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint *))
+ getGLProcAddressHelper("glGetPixelMapuiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLuint *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapusv ( GLenum map , GLushort * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapusv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLushort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLushort *))
+ getGLProcAddressHelper("glGetPixelMapusv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLushort *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBitmap ( GLsizei width , GLsizei height , GLfloat xorig , GLfloat yorig , GLfloat xmove , GLfloat ymove , const GLubyte * bitmap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBitmap (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jfloat xorig,
+ jfloat yorig,
+ jfloat xmove,
+ jfloat ymove,
+ jbyteArray bitmap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *) = NULL;
+ jbyte *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *))
+ getGLProcAddressHelper("glBitmap", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(bitmap!=NULL)
+ {
+ ptr6 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, bitmap, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLfloat) xorig,
+ (GLfloat) yorig,
+ (GLfloat) xmove,
+ (GLfloat) ymove,
+ (const GLubyte *) ptr6
+ );
+
+ if(bitmap!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, bitmap, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawPixels ( GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyPixels (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint type)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum))
+ getGLProcAddressHelper("glCopyPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) type
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilFunc ( GLenum func , GLint ref , GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilFunc (
+ JNIEnv *env, jobject obj,
+ jint func,
+ jint ref,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLuint))
+ getGLProcAddressHelper("glStencilFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func,
+ (GLint) ref,
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilMask ( GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilMask (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glStencilMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilOp ( GLenum fail , GLenum zfail , GLenum zpass ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilOp (
+ JNIEnv *env, jobject obj,
+ jint fail,
+ jint zfail,
+ jint zpass)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum))
+ getGLProcAddressHelper("glStencilOp", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) fail,
+ (GLenum) zfail,
+ (GLenum) zpass
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearStencil ( GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearStencil (
+ JNIEnv *env, jobject obj,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glClearStencil", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGend ( GLenum coord , GLenum pname , GLdouble param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGend (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdouble param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble))
+ getGLProcAddressHelper("glTexGend", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLdouble) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenf ( GLenum coord , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGenf (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexGenf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeni ( GLenum coord , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGeni (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexGeni", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGendv ( GLenum coord , GLenum pname , const GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGendv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLdouble *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLdouble *))
+ getGLProcAddressHelper("glTexGendv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLdouble *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenfv ( GLenum coord , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGenfv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexGenfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeniv ( GLenum coord , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGeniv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexGeniv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGendv ( GLenum coord , GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGendv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetTexGendv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLdouble *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGenfv ( GLenum coord , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGenfv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexGenfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGeniv ( GLenum coord , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGeniv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexGeniv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexEnvf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvi ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvi (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexEnvi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexEnvfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnviv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnviv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexEnviv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnvfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexEnvfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexEnvfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnviv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexEnviv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexEnviv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameterf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexParameterf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteri ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameteri (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexParameteri", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameterfv ( GLenum target , GLint level , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexLevelParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexLevelParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) pname,
+ (GLfloat *) ptr3
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameteriv ( GLenum target , GLint level , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexLevelParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexLevelParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) pname,
+ (GLint *) ptr3
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage1D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage2D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexImage ( GLenum target , GLint level , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTextures ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glGenTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTextures ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *))
+ getGLProcAddressHelper("glDeleteTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTexture ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBindTexture (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint))
+ getGLProcAddressHelper("glBindTexture", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLuint) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTextures ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPrioritizeTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jfloatArray priorities)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, const GLclampf *) = NULL;
+ jint *ptr1 = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *, const GLclampf *))
+ getGLProcAddressHelper("glPrioritizeTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, 0);
+ }
+ if(priorities!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, priorities, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (const GLclampf *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ if(priorities!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, priorities, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResident ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glAreTexturesResident (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jbooleanArray residences)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, GLboolean *) = NULL;
+ jboolean ret;
+
+ jint *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLsizei, const GLuint *, GLboolean *))
+ getGLProcAddressHelper("glAreTexturesResident", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, 0);
+ }
+ if(residences!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, residences, &isCopiedArray2);
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (GLboolean *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ if(residences!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, residences, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTexture ( GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsTexture (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsTexture", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) texture
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLsizei width , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage1D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLint border ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexImage1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint border)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint))
+ getGLProcAddressHelper("glCopyTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLint) border
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage2D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height , GLint border ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexImage2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint border)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint))
+ getGLProcAddressHelper("glCopyTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint stride , GLint order , const GLdouble * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap1d (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble u1,
+ jdouble u2,
+ jint stride,
+ jint order,
+ jdoubleArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *))
+ getGLProcAddressHelper("glMap1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, points, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) stride,
+ (GLint) order,
+ (const GLdouble *) ptr5
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, points, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint stride , GLint order , const GLfloat * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap1f (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat u1,
+ jfloat u2,
+ jint stride,
+ jint order,
+ jfloatArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *))
+ getGLProcAddressHelper("glMap1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, points, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) stride,
+ (GLint) order,
+ (const GLfloat *) ptr5
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, points, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint ustride , GLint uorder , GLdouble v1 , GLdouble v2 , GLint vstride , GLint vorder , const GLdouble * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap2d (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble u1,
+ jdouble u2,
+ jint ustride,
+ jint uorder,
+ jdouble v1,
+ jdouble v2,
+ jint vstride,
+ jint vorder,
+ jdoubleArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *) = NULL;
+ jdouble *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *))
+ getGLProcAddressHelper("glMap2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr9 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, points, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) ustride,
+ (GLint) uorder,
+ (GLdouble) v1,
+ (GLdouble) v2,
+ (GLint) vstride,
+ (GLint) vorder,
+ (const GLdouble *) ptr9
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, points, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint ustride , GLint uorder , GLfloat v1 , GLfloat v2 , GLint vstride , GLint vorder , const GLfloat * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap2f (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat u1,
+ jfloat u2,
+ jint ustride,
+ jint uorder,
+ jfloat v1,
+ jfloat v2,
+ jint vstride,
+ jint vorder,
+ jfloatArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *) = NULL;
+ jfloat *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *))
+ getGLProcAddressHelper("glMap2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr9 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, points, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) ustride,
+ (GLint) uorder,
+ (GLfloat) v1,
+ (GLfloat) v2,
+ (GLint) vstride,
+ (GLint) vorder,
+ (const GLfloat *) ptr9
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, points, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapdv ( GLenum target , GLenum query , GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapdv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetMapdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLdouble *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapfv ( GLenum target , GLenum query , GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLfloat *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapiv ( GLenum target , GLenum query , GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapiv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMapiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLint *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1d ( GLdouble u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1d (
+ JNIEnv *env, jobject obj,
+ jdouble u)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glEvalCoord1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) u
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1f ( GLfloat u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1f (
+ JNIEnv *env, jobject obj,
+ jfloat u)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glEvalCoord1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) u
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glEvalCoord1dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, u, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glEvalCoord1fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, u, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2d ( GLdouble u , GLdouble v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2d (
+ JNIEnv *env, jobject obj,
+ jdouble u,
+ jdouble v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glEvalCoord2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) u,
+ (GLdouble) v
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2f ( GLfloat u , GLfloat v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2f (
+ JNIEnv *env, jobject obj,
+ jfloat u,
+ jfloat v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glEvalCoord2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) u,
+ (GLfloat) v
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glEvalCoord2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, u, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glEvalCoord2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, u, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1d ( GLint un , GLdouble u1 , GLdouble u2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid1d (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jdouble u1,
+ jdouble u2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMapGrid1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLdouble) u1,
+ (GLdouble) u2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1f ( GLint un , GLfloat u1 , GLfloat u2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid1f (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jfloat u1,
+ jfloat u2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMapGrid1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLfloat) u1,
+ (GLfloat) u2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2d ( GLint un , GLdouble u1 , GLdouble u2 , GLint vn , GLdouble v1 , GLdouble v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid2d (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jdouble u1,
+ jdouble u2,
+ jint vn,
+ jdouble v1,
+ jdouble v2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMapGrid2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) vn,
+ (GLdouble) v1,
+ (GLdouble) v2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2f ( GLint un , GLfloat u1 , GLfloat u2 , GLint vn , GLfloat v1 , GLfloat v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid2f (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jfloat u1,
+ jfloat u2,
+ jint vn,
+ jfloat v1,
+ jfloat v2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMapGrid2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) vn,
+ (GLfloat) v1,
+ (GLfloat) v2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint1 ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalPoint1 (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glEvalPoint1", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint2 ( GLint i , GLint j ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalPoint2 (
+ JNIEnv *env, jobject obj,
+ jint i,
+ jint j)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glEvalPoint2", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i,
+ (GLint) j
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh1 ( GLenum mode , GLint i1 , GLint i2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalMesh1 (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint i1,
+ jint i2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint))
+ getGLProcAddressHelper("glEvalMesh1", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) i1,
+ (GLint) i2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh2 ( GLenum mode , GLint i1 , GLint i2 , GLint j1 , GLint j2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalMesh2 (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint i1,
+ jint i2,
+ jint j1,
+ jint j2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glEvalMesh2", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) i1,
+ (GLint) i2,
+ (GLint) j1,
+ (GLint) j2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glFogf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogi (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glFogi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogfv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glFogfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogiv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogiv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glFogiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFeedbackBuffer ( GLsizei size , GLenum type , GLfloat * buffer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFeedbackBuffer (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jfloatArray buffer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, GLfloat *))
+ getGLProcAddressHelper("glFeedbackBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(buffer!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, buffer, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLsizei) size,
+ (GLenum) type,
+ (GLfloat *) ptr2
+ );
+
+ if(buffer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, buffer, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPassThrough ( GLfloat token ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPassThrough (
+ JNIEnv *env, jobject obj,
+ jfloat token)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glPassThrough", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) token
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSelectBuffer ( GLsizei size , GLuint * buffer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSelectBuffer (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jintArray buffer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glSelectBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(buffer!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, buffer, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLsizei) size,
+ (GLuint *) ptr1
+ );
+
+ if(buffer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, buffer, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInitNames ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInitNames (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glInitNames", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadName ( GLuint name ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadName (
+ JNIEnv *env, jobject obj,
+ jint name)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glLoadName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) name
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushName ( GLuint name ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushName (
+ JNIEnv *env, jobject obj,
+ jint name)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glPushName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) name
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopName ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopName (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawRangeElements ( GLenum mode , GLuint start , GLuint end , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jbyteArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jshortArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jintArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jfloatArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jdoubleArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jbooleanArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jlongArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTable ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTable ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glColorTableParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glColorTableParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorSubTable ( GLenum target , GLsizei start , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyColorSubTable (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorTable ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyColorTable (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTable ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetColorTableParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetColorTableParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquation ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendEquation (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBlendEquation", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendColor (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glBlendColor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHistogram ( GLenum target , GLsizei width , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glHistogram (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint width,
+ jint internalformat,
+ jboolean sink)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, GLboolean))
+ getGLProcAddressHelper("glHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) width,
+ (GLenum) internalformat,
+ (GLboolean) sink
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetHistogram ( GLenum target ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glResetHistogram (
+ JNIEnv *env, jobject obj,
+ jint target)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glResetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogram ( GLenum target , GLboolean reset , GLenum format , GLenum type , GLvoid * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jbyteArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jdoubleArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jbooleanArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jlongArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogramParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetHistogramParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogramParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetHistogramParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMinmax ( GLenum target , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMinmax (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jboolean sink)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLboolean))
+ getGLProcAddressHelper("glMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLboolean) sink
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetMinmax ( GLenum target ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glResetMinmax (
+ JNIEnv *env, jobject obj,
+ jint target)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glResetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmax ( GLenum target , GLboolean reset , GLenum format , GLenum types , GLvoid * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jbyteArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jdoubleArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jbooleanArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jlongArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmaxParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMinmaxParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmaxParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMinmaxParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter1D ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jint *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterf ( GLenum target , GLenum pname , GLfloat params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameterf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glConvolutionParameterf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) params
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glConvolutionParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteri ( GLenum target , GLenum pname , GLint params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameteri (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glConvolutionParameteri", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) params
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glConvolutionParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter1D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyConvolutionFilter1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter2D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyConvolutionFilter2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionFilter ( GLenum target , GLenum format , GLenum type , GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetConvolutionParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetConvolutionParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSeparableFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * row , const GLvoid * column ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3B_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray row,
+ jbyteArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jbyte *ptr6 = NULL;
+ jbyte *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3S_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray row,
+ jshortArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jshort *ptr6 = NULL;
+ jshort *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3I_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray row,
+ jintArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jint *ptr6 = NULL;
+ jint *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jint *) (*env)->GetPrimitiveArrayCritical(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jint *) (*env)->GetPrimitiveArrayCritical(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3F_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray row,
+ jfloatArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jfloat *ptr6 = NULL;
+ jfloat *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray row,
+ jdoubleArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jdouble *ptr6 = NULL;
+ jdouble *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3Z_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray row,
+ jbooleanArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean *ptr6 = NULL;
+ jboolean *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3J_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray row,
+ jlongArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jlong *ptr6 = NULL;
+ jlong *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetSeparableFilter ( GLenum target , GLenum format , GLenum type , GLvoid * row , GLvoid * column , GLvoid * span ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3B_3B_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray row,
+ jbyteArray column,
+ jbyteArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3S_3S_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray row,
+ jshortArray column,
+ jshortArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3I_3I_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray row,
+ jintArray column,
+ jintArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3F_3F_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray row,
+ jfloatArray column,
+ jfloatArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3D_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray row,
+ jdoubleArray column,
+ jdoubleArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3Z_3Z_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray row,
+ jbooleanArray column,
+ jbooleanArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3J_3J_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray row,
+ jlongArray column,
+ jlongArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColorEXT ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendColorEXT (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glBlendColorEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffsetEXT ( GLfloat factor , GLfloat bias ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonOffsetEXT (
+ JNIEnv *env, jobject obj,
+ jfloat factor,
+ jfloat bias)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPolygonOffsetEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) factor,
+ (GLfloat) bias
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3DEXT ( GLenum target , GLint level , GLenum internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage3DEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTexturesEXT ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glGenTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTexturesEXT ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *))
+ getGLProcAddressHelper("glDeleteTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTextureEXT ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBindTextureEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint))
+ getGLProcAddressHelper("glBindTextureEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLuint) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTexturesEXT ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPrioritizeTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jfloatArray priorities)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, const GLclampf *) = NULL;
+ jint *ptr1 = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *, const GLclampf *))
+ getGLProcAddressHelper("glPrioritizeTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, 0);
+ }
+ if(priorities!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, priorities, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (const GLclampf *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ if(priorities!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, priorities, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResidentEXT ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glAreTexturesResidentEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jbooleanArray residences)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, GLboolean *) = NULL;
+ jboolean ret;
+
+ jint *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLsizei, const GLuint *, GLboolean *))
+ getGLProcAddressHelper("glAreTexturesResidentEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, 0);
+ }
+ if(residences!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, residences, &isCopiedArray2);
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (GLboolean *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ if(residences!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, residences, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTextureEXT ( GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsTextureEXT (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsTextureEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) texture
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointerEXT ( GLsizei stride , GLsizei count , const GLboolean * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointerEXT (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, const GLboolean *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, const GLboolean *))
+ getGLProcAddressHelper("glEdgeFlagPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLboolean *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointervEXT ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3B (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbyteArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3S (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jshortArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3I (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3F (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3D (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3Z (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3J (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jlongArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElementEXT ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glArrayElementEXT (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glArrayElementEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArraysEXT ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawArraysEXT (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLsizei))
+ getGLProcAddressHelper("glDrawArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquationEXT ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendEquationEXT (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBlendEquationEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfEXT ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointParameterfEXT (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPointParameterfEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfvEXT ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointParameterfvEXT (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glPointParameterfvEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableEXT ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTableEXT ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableEXT ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfvEXT ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterfvEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetColorTableParameterfvEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterivEXT ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterivEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetColorTableParameterivEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLockArraysEXT ( GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLockArraysEXT (
+ JNIEnv *env, jobject obj,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLsizei))
+ getGLProcAddressHelper("glLockArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glUnlockArraysEXT ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glUnlockArraysEXT (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glUnlockArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glActiveTextureARB (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glActiveTextureARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClientActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClientActiveTextureARB (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glClientActiveTextureARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dARB ( GLenum target , GLdouble s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord1dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord1dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fARB ( GLenum target , GLfloat s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord1fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord1fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1iARB ( GLenum target , GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glMultiTexCoord1iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord1ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1sARB ( GLenum target , GLshort s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord1sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord1svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dARB ( GLenum target , GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord2dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord2dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fARB ( GLenum target , GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord2fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord2fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2iARB ( GLenum target , GLint s , GLint t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord2iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord2ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2sARB ( GLenum target , GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord2sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord2svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t,
+ jdouble r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord3dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord3dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t,
+ jfloat r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord3fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord3fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3iARB ( GLenum target , GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t,
+ jint r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord3iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t,
+ (GLint) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord3ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3sARB ( GLenum target , GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t,
+ jshort r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord3sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord3svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t,
+ jdouble r,
+ jdouble q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord4dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r,
+ (GLdouble) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord4dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t,
+ jfloat r,
+ jfloat q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord4fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r,
+ (GLfloat) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord4fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4iARB ( GLenum target , GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t,
+ jint r,
+ jint q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord4iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t,
+ (GLint) r,
+ (GLint) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord4ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4sARB ( GLenum target , GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t,
+ jshort r,
+ jshort q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord4sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r,
+ (GLshort) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord4svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/CNativeCode/OpenGL_JauJNI12tst_dynfuncs.c b/CNativeCode/OpenGL_JauJNI12tst_dynfuncs.c
new file mode 100644
index 0000000..c47667c
--- /dev/null
+++ b/CNativeCode/OpenGL_JauJNI12tst_dynfuncs.c
@@ -0,0 +1,26455 @@
+/* WARNING ! WARNING *** THIS FILE IS GENERATED BY C2J !!!
+
+ DO NOT MAKE ANY CHANGES *** MAKE CHANGES IN THE SKELETON FILES !!!
+*/
+
+
+/*
+ * Leo Chan -- 1995
+ *
+ * This mammoth C file takes care of all the native implementation for the
+ * bulk of OpenGL commands
+ * ---------------
+ *
+ * Sven Goethel
+ *
+ * September 1997
+ */
+
+/*
+ * need to include the JAVA internal header files for macros and function
+ * prototypes required to maipulated JAVA data structures and functions
+ *
+ * StubPreamble.h includes the structure and macro definitions neede to
+ * convert JAVA data structures into C data structures.
+ *
+ */
+
+#include "OpenGL_misc.h"
+
+/*
+ * the next thing to include are special headers that were created by
+ * JAVAH. They include the C structure definitions for the JAVA classes
+ */
+#include "gl4java_GLFuncJauJNI.h"
+
+/*--------------------------------------------------------------------------
+ * here on in is just regular apple pie C
+ */
+
+#ifndef LIBAPIENTRY
+ #define LIBAPIENTRY
+#endif
+#ifndef LIBAPI
+ #define LIBAPI
+#endif
+
+#ifndef CALLBACK
+ #define CALLBACK
+#endif
+/** THIS IS A MANUAL CODED PART
+ gl-manualCodedImplJNI.java
+*/
+
+static const char _gl_n_a_string[] = "GL-String not avaiable !";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLFuncJauJNI_glGetString ( JNIEnv *env, jobject obj,
+ jint name )
+{
+ const char * tmpString=0;
+
+ tmpString = glGetString ( /* jint */ name);
+ if(tmpString==NULL)
+ tmpString=_gl_n_a_string;
+
+ return (*env)->NewStringUTF(env, tmpString);
+}
+
+static const char * _gl_lib_vendor_="Jausoft - Sven Goethel Software Development";
+static const char * _gl_lib_version_="2.4.1.0";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLFuncJauJNI_getNativeVendor ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _gl_lib_vendor_);
+}
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLFuncJauJNI_getNativeVersion ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _gl_lib_version_);
+}
+
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: gl-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearIndex ( GLfloat c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearIndex (
+ JNIEnv *env, jobject obj,
+ jfloat c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glClearIndex", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearColor (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glClearColor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClear ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClear (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glClear", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexMask ( GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexMask (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIndexMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMask ( GLboolean red , GLboolean green , GLboolean blue , GLboolean alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorMask (
+ JNIEnv *env, jobject obj,
+ jboolean red,
+ jboolean green,
+ jboolean blue,
+ jboolean alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean, GLboolean, GLboolean, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean, GLboolean, GLboolean, GLboolean))
+ getGLProcAddressHelper("glColorMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) red,
+ (GLboolean) green,
+ (GLboolean) blue,
+ (GLboolean) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAlphaFunc ( GLenum func , GLclampf ref ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glAlphaFunc (
+ JNIEnv *env, jobject obj,
+ jint func,
+ jfloat ref)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLclampf))
+ getGLProcAddressHelper("glAlphaFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func,
+ (GLclampf) ref
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendFunc ( GLenum sfactor , GLenum dfactor ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendFunc (
+ JNIEnv *env, jobject obj,
+ jint sfactor,
+ jint dfactor)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glBlendFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) sfactor,
+ (GLenum) dfactor
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLogicOp ( GLenum opcode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLogicOp (
+ JNIEnv *env, jobject obj,
+ jint opcode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glLogicOp", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) opcode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCullFace ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCullFace (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glCullFace", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrontFace ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFrontFace (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glFrontFace", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointSize ( GLfloat size ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointSize (
+ JNIEnv *env, jobject obj,
+ jfloat size)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glPointSize", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) size
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineWidth ( GLfloat width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLineWidth (
+ JNIEnv *env, jobject obj,
+ jfloat width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glLineWidth", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineStipple ( GLint factor , GLushort pattern ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLineStipple (
+ JNIEnv *env, jobject obj,
+ jint factor,
+ jshort pattern)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLushort))
+ getGLProcAddressHelper("glLineStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) factor,
+ (GLushort) pattern
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonMode ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonMode (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glPolygonMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffset ( GLfloat factor , GLfloat units ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonOffset (
+ JNIEnv *env, jobject obj,
+ jfloat factor,
+ jfloat units)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPolygonOffset", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) factor,
+ (GLfloat) units
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonStipple ( const GLubyte * mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonStipple (
+ JNIEnv *env, jobject obj,
+ jbyteArray mask)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glPolygonStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(mask!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, mask, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glPolygonStipple arg: mask");
+ }
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(mask!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, mask, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPolygonStipple ( GLubyte * mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPolygonStipple (
+ JNIEnv *env, jobject obj,
+ jbyteArray mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte *))
+ getGLProcAddressHelper("glGetPolygonStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(mask!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, mask, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glGetPolygonStipple arg: mask");
+ }
+ }
+ __func_ptr__ (
+ (GLubyte *) ptr0
+ );
+
+ if(mask!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, mask, ptr0, (isCopiedArray0 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlag ( GLboolean flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlag (
+ JNIEnv *env, jobject obj,
+ jboolean flag)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean))
+ getGLProcAddressHelper("glEdgeFlag", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) flag
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagv ( const GLboolean * flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagv (
+ JNIEnv *env, jobject obj,
+ jbooleanArray flag)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLboolean *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jboolean *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLboolean *))
+ getGLProcAddressHelper("glEdgeFlagv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(flag!=NULL)
+ {
+ ptr0 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, flag, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glEdgeFlagv arg: flag");
+ }
+ }
+ __func_ptr__ (
+ (const GLboolean *) ptr0
+ );
+
+ if(flag!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, flag, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScissor ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScissor (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glScissor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClipPlane ( GLenum plane , const GLdouble * equation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClipPlane (
+ JNIEnv *env, jobject obj,
+ jint plane,
+ jdoubleArray equation)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glClipPlane", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(equation!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, equation, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glClipPlane arg: equation");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) plane,
+ (const GLdouble *) ptr1
+ );
+
+ if(equation!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, equation, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetClipPlane ( GLenum plane , GLdouble * equation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetClipPlane (
+ JNIEnv *env, jobject obj,
+ jint plane,
+ jdoubleArray equation)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetClipPlane", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(equation!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, equation, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetClipPlane arg: equation");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) plane,
+ (GLdouble *) ptr1
+ );
+
+ if(equation!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, equation, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawBuffer (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDrawBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadBuffer (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glReadBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnable ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnable (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glEnable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisable ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDisable (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDisable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsEnabled ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsEnabled (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLenum) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glIsEnabled", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLenum) cap
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnableClientState (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glEnableClientState", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDisableClientState (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDisableClientState", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetBooleanv ( GLenum pname , GLboolean * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetBooleanv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean *))
+ getGLProcAddressHelper("glGetBooleanv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetBooleanv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLboolean *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetDoublev ( GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetDoublev (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetDoublev", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetDoublev arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLdouble *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetFloatv ( GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetFloatv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetFloatv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetFloatv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetIntegerv ( GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetIntegerv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint *))
+ getGLProcAddressHelper("glGetIntegerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetIntegerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushAttrib (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glPushAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopAttrib ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopAttrib (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushClientAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushClientAttrib (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glPushClientAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopClientAttrib ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopClientAttrib (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopClientAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint glRenderMode ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glRenderMode (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static jint (CALLBACK *__func_ptr__)(GLenum) = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glRenderMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ (GLenum) mode
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLenum glGetError ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetError (
+ JNIEnv *env, jobject obj)
+ {
+ static jint (CALLBACK *__func_ptr__)() = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)())
+ getGLProcAddressHelper("glGetError", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFinish ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFinish (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glFinish", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFlush ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFlush (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glFlush", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHint ( GLenum target , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glHint (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glHint", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearDepth ( GLclampd depth ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearDepth (
+ JNIEnv *env, jobject obj,
+ jdouble depth)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampd) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampd))
+ getGLProcAddressHelper("glClearDepth", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampd) depth
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthFunc ( GLenum func ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthFunc (
+ JNIEnv *env, jobject obj,
+ jint func)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDepthFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthMask ( GLboolean flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthMask (
+ JNIEnv *env, jobject obj,
+ jboolean flag)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean))
+ getGLProcAddressHelper("glDepthMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) flag
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthRange ( GLclampd near_val , GLclampd far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthRange (
+ JNIEnv *env, jobject obj,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampd, GLclampd) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampd, GLclampd))
+ getGLProcAddressHelper("glDepthRange", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampd) near_val,
+ (GLclampd) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearAccum ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearAccum (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glClearAccum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue,
+ (GLfloat) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAccum ( GLenum op , GLfloat value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glAccum (
+ JNIEnv *env, jobject obj,
+ jint op,
+ jfloat value)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glAccum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) op,
+ (GLfloat) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMatrixMode ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMatrixMode (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glMatrixMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glOrtho ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glOrtho (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glOrtho", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top,
+ (GLdouble) near_val,
+ (GLdouble) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrustum ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFrustum (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glFrustum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top,
+ (GLdouble) near_val,
+ (GLdouble) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glViewport ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glViewport (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glViewport", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushMatrix ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushMatrix (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPushMatrix", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopMatrix ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopMatrix (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopMatrix", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadIdentity ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadIdentity (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glLoadIdentity", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadMatrixd (
+ JNIEnv *env, jobject obj,
+ jdoubleArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glLoadMatrixd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, m, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glLoadMatrixd arg: m");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadMatrixf (
+ JNIEnv *env, jobject obj,
+ jfloatArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glLoadMatrixf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, m, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glLoadMatrixf arg: m");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultMatrixd (
+ JNIEnv *env, jobject obj,
+ jdoubleArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glMultMatrixd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, m, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glMultMatrixd arg: m");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultMatrixf (
+ JNIEnv *env, jobject obj,
+ jfloatArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glMultMatrixf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, m, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glMultMatrixf arg: m");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotated ( GLdouble angle , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRotated (
+ JNIEnv *env, jobject obj,
+ jdouble angle,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRotated", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) angle,
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotatef ( GLfloat angle , GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRotatef (
+ JNIEnv *env, jobject obj,
+ jfloat angle,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRotatef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) angle,
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScaled ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScaled (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glScaled", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScalef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScalef (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glScalef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslated ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTranslated (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTranslated", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslatef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTranslatef (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTranslatef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsList ( GLuint list ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsList (
+ JNIEnv *env, jobject obj,
+ jint list)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) list
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteLists ( GLuint list , GLsizei range ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteLists (
+ JNIEnv *env, jobject obj,
+ jint list,
+ jint range)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLsizei))
+ getGLProcAddressHelper("glDeleteLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list,
+ (GLsizei) range
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLuint glGenLists ( GLsizei range ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenLists (
+ JNIEnv *env, jobject obj,
+ jint range)
+ {
+ static jint (CALLBACK *__func_ptr__)(GLsizei) = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)(GLsizei))
+ getGLProcAddressHelper("glGenLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ (GLsizei) range
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNewList ( GLuint list , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNewList (
+ JNIEnv *env, jobject obj,
+ jint list,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLenum))
+ getGLProcAddressHelper("glNewList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEndList ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEndList (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glEndList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallList ( GLuint list ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallList (
+ JNIEnv *env, jobject obj,
+ jint list)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glCallList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallLists ( GLsizei n , GLenum type , const GLvoid * lists ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3B (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jbyteArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3S (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jshortArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3I (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jintArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3F (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jfloatArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3D (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jdoubleArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jbooleanArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3J (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jlongArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glListBase ( GLuint base ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glListBase (
+ JNIEnv *env, jobject obj,
+ jint base)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glListBase", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) base
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBegin ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBegin (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBegin", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnd ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnd (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glEnd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glVertex2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glVertex2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glVertex3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glVertex3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z,
+ jdouble w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z,
+ (GLdouble) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z,
+ jfloat w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z,
+ (GLfloat) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z,
+ jint w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glVertex4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z,
+ (GLint) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z,
+ jshort w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glVertex4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z,
+ (GLshort) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex2dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex2fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex2iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex2sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex3dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex3fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex3iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex3sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex4dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex4fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex4iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex4sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3b ( GLbyte nx , GLbyte ny , GLbyte nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3b (
+ JNIEnv *env, jobject obj,
+ jbyte nx,
+ jbyte ny,
+ jbyte nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glNormal3b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) nx,
+ (GLbyte) ny,
+ (GLbyte) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3d ( GLdouble nx , GLdouble ny , GLdouble nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3d (
+ JNIEnv *env, jobject obj,
+ jdouble nx,
+ jdouble ny,
+ jdouble nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glNormal3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) nx,
+ (GLdouble) ny,
+ (GLdouble) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3f ( GLfloat nx , GLfloat ny , GLfloat nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3f (
+ JNIEnv *env, jobject obj,
+ jfloat nx,
+ jfloat ny,
+ jfloat nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glNormal3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) nx,
+ (GLfloat) ny,
+ (GLfloat) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3i ( GLint nx , GLint ny , GLint nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3i (
+ JNIEnv *env, jobject obj,
+ jint nx,
+ jint ny,
+ jint nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glNormal3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) nx,
+ (GLint) ny,
+ (GLint) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3s ( GLshort nx , GLshort ny , GLshort nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3s (
+ JNIEnv *env, jobject obj,
+ jshort nx,
+ jshort ny,
+ jshort nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glNormal3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) nx,
+ (GLshort) ny,
+ (GLshort) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glNormal3bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glNormal3bv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glNormal3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glNormal3dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glNormal3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glNormal3fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glNormal3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glNormal3iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glNormal3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glNormal3sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexd ( GLdouble c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexd (
+ JNIEnv *env, jobject obj,
+ jdouble c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glIndexd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexf ( GLfloat c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexf (
+ JNIEnv *env, jobject obj,
+ jfloat c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glIndexf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexi ( GLint c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexi (
+ JNIEnv *env, jobject obj,
+ jint c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glIndexi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexs ( GLshort c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexs (
+ JNIEnv *env, jobject obj,
+ jshort c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort))
+ getGLProcAddressHelper("glIndexs", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexub ( GLubyte c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexub (
+ JNIEnv *env, jobject obj,
+ jbyte c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte))
+ getGLProcAddressHelper("glIndexub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexdv ( const GLdouble * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexdv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glIndexdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, c, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glIndexdv arg: c");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexfv ( const GLfloat * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexfv (
+ JNIEnv *env, jobject obj,
+ jfloatArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glIndexfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, c, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glIndexfv arg: c");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexiv ( const GLint * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexiv (
+ JNIEnv *env, jobject obj,
+ jintArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glIndexiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, c, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glIndexiv arg: c");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexsv ( const GLshort * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexsv (
+ JNIEnv *env, jobject obj,
+ jshortArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glIndexsv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, c, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glIndexsv arg: c");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexubv ( const GLubyte * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glIndexubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, c, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glIndexubv arg: c");
+ }
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3b ( GLbyte red , GLbyte green , GLbyte blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3b (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glColor3b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) red,
+ (GLbyte) green,
+ (GLbyte) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3d ( GLdouble red , GLdouble green , GLdouble blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3d (
+ JNIEnv *env, jobject obj,
+ jdouble red,
+ jdouble green,
+ jdouble blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glColor3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) red,
+ (GLdouble) green,
+ (GLdouble) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3f ( GLfloat red , GLfloat green , GLfloat blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3f (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glColor3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3i ( GLint red , GLint green , GLint blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3i (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glColor3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) red,
+ (GLint) green,
+ (GLint) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3s ( GLshort red , GLshort green , GLshort blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3s (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glColor3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) red,
+ (GLshort) green,
+ (GLshort) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ub ( GLubyte red , GLubyte green , GLubyte blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ub (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte, GLubyte, GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte, GLubyte, GLubyte))
+ getGLProcAddressHelper("glColor3ub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) red,
+ (GLubyte) green,
+ (GLubyte) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ui ( GLuint red , GLuint green , GLuint blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ui (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLuint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLuint, GLuint))
+ getGLProcAddressHelper("glColor3ui", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) red,
+ (GLuint) green,
+ (GLuint) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3us ( GLushort red , GLushort green , GLushort blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3us (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLushort, GLushort, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLushort, GLushort, GLushort))
+ getGLProcAddressHelper("glColor3us", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLushort) red,
+ (GLushort) green,
+ (GLushort) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4b ( GLbyte red , GLbyte green , GLbyte blue , GLbyte alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4b (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue,
+ jbyte alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glColor4b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) red,
+ (GLbyte) green,
+ (GLbyte) blue,
+ (GLbyte) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4d ( GLdouble red , GLdouble green , GLdouble blue , GLdouble alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4d (
+ JNIEnv *env, jobject obj,
+ jdouble red,
+ jdouble green,
+ jdouble blue,
+ jdouble alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glColor4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) red,
+ (GLdouble) green,
+ (GLdouble) blue,
+ (GLdouble) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4f ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4f (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glColor4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue,
+ (GLfloat) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4i ( GLint red , GLint green , GLint blue , GLint alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4i (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue,
+ jint alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glColor4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) red,
+ (GLint) green,
+ (GLint) blue,
+ (GLint) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4s ( GLshort red , GLshort green , GLshort blue , GLshort alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4s (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue,
+ jshort alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glColor4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) red,
+ (GLshort) green,
+ (GLshort) blue,
+ (GLshort) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ub ( GLubyte red , GLubyte green , GLubyte blue , GLubyte alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ub (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue,
+ jbyte alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte, GLubyte, GLubyte, GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte, GLubyte, GLubyte, GLubyte))
+ getGLProcAddressHelper("glColor4ub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) red,
+ (GLubyte) green,
+ (GLubyte) blue,
+ (GLubyte) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ui ( GLuint red , GLuint green , GLuint blue , GLuint alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ui (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue,
+ jint alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLuint, GLuint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLuint, GLuint, GLuint))
+ getGLProcAddressHelper("glColor4ui", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) red,
+ (GLuint) green,
+ (GLuint) blue,
+ (GLuint) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4us ( GLushort red , GLushort green , GLushort blue , GLushort alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4us (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue,
+ jshort alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLushort, GLushort, GLushort, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLushort, GLushort, GLushort, GLushort))
+ getGLProcAddressHelper("glColor4us", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLushort) red,
+ (GLushort) green,
+ (GLushort) blue,
+ (GLushort) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glColor3bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3bv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glColor3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glColor3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glColor3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glColor3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glColor3ubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3ubv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3uiv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLuint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLuint *))
+ getGLProcAddressHelper("glColor3uiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3uiv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLuint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3usv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLushort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLushort *))
+ getGLProcAddressHelper("glColor3usv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3usv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLushort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glColor4bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4bv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glColor4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glColor4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glColor4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glColor4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glColor4ubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4ubv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4uiv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLuint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLuint *))
+ getGLProcAddressHelper("glColor4uiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4uiv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLuint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4usv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLushort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLushort *))
+ getGLProcAddressHelper("glColor4usv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4usv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLushort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1d ( GLdouble s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1d (
+ JNIEnv *env, jobject obj,
+ jdouble s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glTexCoord1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1f ( GLfloat s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1f (
+ JNIEnv *env, jobject obj,
+ jfloat s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glTexCoord1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1i ( GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1i (
+ JNIEnv *env, jobject obj,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glTexCoord1i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1s ( GLshort s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1s (
+ JNIEnv *env, jobject obj,
+ jshort s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort))
+ getGLProcAddressHelper("glTexCoord1s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2d ( GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2f ( GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2i ( GLint s , GLint t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glTexCoord2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2s ( GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3d ( GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t,
+ jdouble r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3f ( GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t,
+ jfloat r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3i ( GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t,
+ jint r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glTexCoord3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t,
+ (GLint) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3s ( GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t,
+ jshort r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4d ( GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t,
+ jdouble r,
+ jdouble q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r,
+ (GLdouble) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4f ( GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t,
+ jfloat r,
+ jfloat q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r,
+ (GLfloat) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4i ( GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t,
+ jint r,
+ jint q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glTexCoord4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t,
+ (GLint) r,
+ (GLint) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4s ( GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t,
+ jshort r,
+ jshort q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r,
+ (GLshort) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord1dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord1dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord1fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord1fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord1iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord1iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord1sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord1sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord2dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord2fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord2iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord2sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord3dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord3fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord3iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord3sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord4dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord4fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord4iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord4sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glRasterPos2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glRasterPos3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z,
+ jdouble w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z,
+ (GLdouble) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z,
+ jfloat w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z,
+ (GLfloat) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z,
+ jint w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glRasterPos4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z,
+ (GLint) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z,
+ jshort w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z,
+ (GLshort) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos2dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos2fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos2iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos2sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos3dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos3fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos3iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos3sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos4dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos4fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos4iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos4sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectd ( GLdouble x1 , GLdouble y1 , GLdouble x2 , GLdouble y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectd (
+ JNIEnv *env, jobject obj,
+ jdouble x1,
+ jdouble y1,
+ jdouble x2,
+ jdouble y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRectd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x1,
+ (GLdouble) y1,
+ (GLdouble) x2,
+ (GLdouble) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectf ( GLfloat x1 , GLfloat y1 , GLfloat x2 , GLfloat y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectf (
+ JNIEnv *env, jobject obj,
+ jfloat x1,
+ jfloat y1,
+ jfloat x2,
+ jfloat y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRectf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x1,
+ (GLfloat) y1,
+ (GLfloat) x2,
+ (GLfloat) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRecti ( GLint x1 , GLint y1 , GLint x2 , GLint y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRecti (
+ JNIEnv *env, jobject obj,
+ jint x1,
+ jint y1,
+ jint x2,
+ jint y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glRecti", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x1,
+ (GLint) y1,
+ (GLint) x2,
+ (GLint) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRects ( GLshort x1 , GLshort y1 , GLshort x2 , GLshort y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRects (
+ JNIEnv *env, jobject obj,
+ jshort x1,
+ jshort y1,
+ jshort x2,
+ jshort y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRects", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x1,
+ (GLshort) y1,
+ (GLshort) x2,
+ (GLshort) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectdv ( const GLdouble * v1 , const GLdouble * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectdv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v1,
+ jdoubleArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *, const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *, const GLdouble *))
+ getGLProcAddressHelper("glRectdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v1, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRectdv arg: v1");
+ }
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v2, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glRectdv arg: v2");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0,
+ (const GLdouble *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectfv ( const GLfloat * v1 , const GLfloat * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectfv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v1,
+ jfloatArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *, const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *, const GLfloat *))
+ getGLProcAddressHelper("glRectfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v1, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRectfv arg: v1");
+ }
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v2, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glRectfv arg: v2");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0,
+ (const GLfloat *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectiv ( const GLint * v1 , const GLint * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectiv (
+ JNIEnv *env, jobject obj,
+ jintArray v1,
+ jintArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *, const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *, const GLint *))
+ getGLProcAddressHelper("glRectiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v1, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRectiv arg: v1");
+ }
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v2, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glRectiv arg: v2");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0,
+ (const GLint *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectsv ( const GLshort * v1 , const GLshort * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectsv (
+ JNIEnv *env, jobject obj,
+ jshortArray v1,
+ jshortArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *, const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *, const GLshort *))
+ getGLProcAddressHelper("glRectsv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v1, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRectsv arg: v1");
+ }
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v2, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glRectsv arg: v2");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0,
+ (const GLshort *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointer ( GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3B (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3S (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3I (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3F (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3D (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3Z (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3J (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointerv ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3B (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbyteArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3S (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jshortArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3I (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3F (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3D (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3Z (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3J (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jlongArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElement ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glArrayElement (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glArrayElement", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArrays ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawArrays (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLsizei))
+ getGLProcAddressHelper("glDrawArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawElements ( GLenum mode , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3B (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jbyteArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3S (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jshortArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3I (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jintArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3F (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jfloatArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3D (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jdoubleArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jbooleanArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3J (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jlongArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInterleavedArrays ( GLenum format , GLsizei stride , const GLvoid * pointer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3B (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jbyteArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3S (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jshortArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3I (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jintArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3F (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jfloatArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3D (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jdoubleArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jbooleanArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3J (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jlongArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glShadeModel ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glShadeModel (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glShadeModel", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightf ( GLenum light , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightf (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glLightf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLighti ( GLenum light , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLighti (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glLighti", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightfv ( GLenum light , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightfv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glLightfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glLightfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightiv ( GLenum light , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightiv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glLightiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glLightiv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightfv ( GLenum light , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetLightfv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetLightfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetLightfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightiv ( GLenum light , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetLightiv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetLightiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetLightiv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModelf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glLightModelf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeli ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModeli (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glLightModeli", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModelfv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glLightModelfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glLightModelfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeliv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModeliv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glLightModeliv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glLightModeliv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialf ( GLenum face , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialf (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glMaterialf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMateriali ( GLenum face , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMateriali (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glMateriali", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialfv ( GLenum face , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialfv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMaterialfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glMaterialfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialiv ( GLenum face , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialiv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glMaterialiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glMaterialiv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialfv ( GLenum face , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMaterialfv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMaterialfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMaterialfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialiv ( GLenum face , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMaterialiv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMaterialiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMaterialiv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMaterial ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorMaterial (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glColorMaterial", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelZoom ( GLfloat xfactor , GLfloat yfactor ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelZoom (
+ JNIEnv *env, jobject obj,
+ jfloat xfactor,
+ jfloat yfactor)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPixelZoom", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) xfactor,
+ (GLfloat) yfactor
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStoref ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelStoref (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPixelStoref", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStorei ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelStorei (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glPixelStorei", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelTransferf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPixelTransferf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelTransferi (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glPixelTransferi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapfv ( GLenum map , GLint mapsize , const GLfloat * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapfv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLfloat *))
+ getGLProcAddressHelper("glPixelMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glPixelMapfv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLfloat *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapuiv ( GLenum map , GLint mapsize , const GLuint * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapuiv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLuint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLuint *))
+ getGLProcAddressHelper("glPixelMapuiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glPixelMapuiv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLuint *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapusv ( GLenum map , GLint mapsize , const GLushort * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapusv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLushort *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLushort *))
+ getGLProcAddressHelper("glPixelMapusv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glPixelMapusv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLushort *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapfv ( GLenum map , GLfloat * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapfv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetPixelMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPixelMapfv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLfloat *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapuiv ( GLenum map , GLuint * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapuiv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint *))
+ getGLProcAddressHelper("glGetPixelMapuiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPixelMapuiv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLuint *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapusv ( GLenum map , GLushort * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapusv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLushort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLushort *))
+ getGLProcAddressHelper("glGetPixelMapusv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPixelMapusv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLushort *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBitmap ( GLsizei width , GLsizei height , GLfloat xorig , GLfloat yorig , GLfloat xmove , GLfloat ymove , const GLubyte * bitmap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBitmap (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jfloat xorig,
+ jfloat yorig,
+ jfloat xmove,
+ jfloat ymove,
+ jbyteArray bitmap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *))
+ getGLProcAddressHelper("glBitmap", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(bitmap!=NULL)
+ {
+ ptr6 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, bitmap, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glBitmap arg: bitmap");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLfloat) xorig,
+ (GLfloat) yorig,
+ (GLfloat) xmove,
+ (GLfloat) ymove,
+ (const GLubyte *) ptr6
+ );
+
+ if(bitmap!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, bitmap, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawPixels ( GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyPixels (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint type)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum))
+ getGLProcAddressHelper("glCopyPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) type
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilFunc ( GLenum func , GLint ref , GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilFunc (
+ JNIEnv *env, jobject obj,
+ jint func,
+ jint ref,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLuint))
+ getGLProcAddressHelper("glStencilFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func,
+ (GLint) ref,
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilMask ( GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilMask (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glStencilMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilOp ( GLenum fail , GLenum zfail , GLenum zpass ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilOp (
+ JNIEnv *env, jobject obj,
+ jint fail,
+ jint zfail,
+ jint zpass)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum))
+ getGLProcAddressHelper("glStencilOp", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) fail,
+ (GLenum) zfail,
+ (GLenum) zpass
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearStencil ( GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearStencil (
+ JNIEnv *env, jobject obj,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glClearStencil", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGend ( GLenum coord , GLenum pname , GLdouble param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGend (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdouble param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble))
+ getGLProcAddressHelper("glTexGend", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLdouble) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenf ( GLenum coord , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGenf (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexGenf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeni ( GLenum coord , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGeni (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexGeni", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGendv ( GLenum coord , GLenum pname , const GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGendv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLdouble *))
+ getGLProcAddressHelper("glTexGendv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexGendv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLdouble *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenfv ( GLenum coord , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGenfv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexGenfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexGenfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeniv ( GLenum coord , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGeniv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexGeniv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexGeniv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGendv ( GLenum coord , GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGendv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetTexGendv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexGendv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLdouble *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGenfv ( GLenum coord , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGenfv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexGenfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexGenfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGeniv ( GLenum coord , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGeniv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexGeniv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexGeniv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexEnvf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvi ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvi (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexEnvi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexEnvfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexEnvfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnviv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnviv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexEnviv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexEnviv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnvfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexEnvfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexEnvfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexEnvfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnviv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexEnviv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexEnviv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexEnviv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameterf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexParameterf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteri ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameteri (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexParameteri", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameterfv ( GLenum target , GLint level , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexLevelParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexLevelParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetTexLevelParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) pname,
+ (GLfloat *) ptr3
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameteriv ( GLenum target , GLint level , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexLevelParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexLevelParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetTexLevelParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) pname,
+ (GLint *) ptr3
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage1D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jbyte *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jshort *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jint *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jfloat *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jboolean *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jlong *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage2D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jbyte *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jshort *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jint *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jfloat *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jboolean *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jlong *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexImage ( GLenum target , GLint level , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTextures ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glGenTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGenTextures arg: textures");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTextures ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *))
+ getGLProcAddressHelper("glDeleteTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glDeleteTextures arg: textures");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTexture ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBindTexture (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint))
+ getGLProcAddressHelper("glBindTexture", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLuint) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTextures ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPrioritizeTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jfloatArray priorities)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, const GLclampf *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *, const GLclampf *))
+ getGLProcAddressHelper("glPrioritizeTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glPrioritizeTextures arg: textures");
+ }
+ }
+ if(priorities!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, priorities, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glPrioritizeTextures arg: priorities");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (const GLclampf *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ if(priorities!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, priorities, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResident ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glAreTexturesResident (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jbooleanArray residences)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, GLboolean *) = NULL;
+ jboolean ret;
+
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLsizei, const GLuint *, GLboolean *))
+ getGLProcAddressHelper("glAreTexturesResident", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glAreTexturesResident arg: textures");
+ }
+ }
+ if(residences!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, residences, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glAreTexturesResident arg: residences");
+ }
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (GLboolean *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ if(residences!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, residences, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTexture ( GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsTexture (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsTexture", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) texture
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLsizei width , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jbyte *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jshort *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jint *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jfloat *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jboolean *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jlong *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage1D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLint border ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexImage1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint border)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint))
+ getGLProcAddressHelper("glCopyTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLint) border
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage2D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height , GLint border ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexImage2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint border)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint))
+ getGLProcAddressHelper("glCopyTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint stride , GLint order , const GLdouble * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap1d (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble u1,
+ jdouble u2,
+ jint stride,
+ jint order,
+ jdoubleArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *))
+ getGLProcAddressHelper("glMap1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, points, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glMap1d arg: points");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) stride,
+ (GLint) order,
+ (const GLdouble *) ptr5
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, points, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint stride , GLint order , const GLfloat * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap1f (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat u1,
+ jfloat u2,
+ jint stride,
+ jint order,
+ jfloatArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *))
+ getGLProcAddressHelper("glMap1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, points, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glMap1f arg: points");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) stride,
+ (GLint) order,
+ (const GLfloat *) ptr5
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, points, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint ustride , GLint uorder , GLdouble v1 , GLdouble v2 , GLint vstride , GLint vorder , const GLdouble * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap2d (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble u1,
+ jdouble u2,
+ jint ustride,
+ jint uorder,
+ jdouble v1,
+ jdouble v2,
+ jint vstride,
+ jint vorder,
+ jdoubleArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jdouble *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *))
+ getGLProcAddressHelper("glMap2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr9 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, points, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glMap2d arg: points");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) ustride,
+ (GLint) uorder,
+ (GLdouble) v1,
+ (GLdouble) v2,
+ (GLint) vstride,
+ (GLint) vorder,
+ (const GLdouble *) ptr9
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, points, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint ustride , GLint uorder , GLfloat v1 , GLfloat v2 , GLint vstride , GLint vorder , const GLfloat * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap2f (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat u1,
+ jfloat u2,
+ jint ustride,
+ jint uorder,
+ jfloat v1,
+ jfloat v2,
+ jint vstride,
+ jint vorder,
+ jfloatArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jfloat *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *))
+ getGLProcAddressHelper("glMap2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr9 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, points, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glMap2f arg: points");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) ustride,
+ (GLint) uorder,
+ (GLfloat) v1,
+ (GLfloat) v2,
+ (GLint) vstride,
+ (GLint) vorder,
+ (const GLfloat *) ptr9
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, points, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapdv ( GLenum target , GLenum query , GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapdv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetMapdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMapdv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLdouble *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapfv ( GLenum target , GLenum query , GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMapfv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLfloat *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapiv ( GLenum target , GLenum query , GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapiv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMapiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMapiv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLint *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1d ( GLdouble u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1d (
+ JNIEnv *env, jobject obj,
+ jdouble u)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glEvalCoord1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) u
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1f ( GLfloat u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1f (
+ JNIEnv *env, jobject obj,
+ jfloat u)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glEvalCoord1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) u
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glEvalCoord1dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, u, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glEvalCoord1dv arg: u");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glEvalCoord1fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, u, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glEvalCoord1fv arg: u");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2d ( GLdouble u , GLdouble v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2d (
+ JNIEnv *env, jobject obj,
+ jdouble u,
+ jdouble v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glEvalCoord2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) u,
+ (GLdouble) v
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2f ( GLfloat u , GLfloat v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2f (
+ JNIEnv *env, jobject obj,
+ jfloat u,
+ jfloat v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glEvalCoord2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) u,
+ (GLfloat) v
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glEvalCoord2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, u, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glEvalCoord2dv arg: u");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glEvalCoord2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, u, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glEvalCoord2fv arg: u");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1d ( GLint un , GLdouble u1 , GLdouble u2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid1d (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jdouble u1,
+ jdouble u2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMapGrid1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLdouble) u1,
+ (GLdouble) u2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1f ( GLint un , GLfloat u1 , GLfloat u2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid1f (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jfloat u1,
+ jfloat u2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMapGrid1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLfloat) u1,
+ (GLfloat) u2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2d ( GLint un , GLdouble u1 , GLdouble u2 , GLint vn , GLdouble v1 , GLdouble v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid2d (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jdouble u1,
+ jdouble u2,
+ jint vn,
+ jdouble v1,
+ jdouble v2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMapGrid2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) vn,
+ (GLdouble) v1,
+ (GLdouble) v2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2f ( GLint un , GLfloat u1 , GLfloat u2 , GLint vn , GLfloat v1 , GLfloat v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid2f (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jfloat u1,
+ jfloat u2,
+ jint vn,
+ jfloat v1,
+ jfloat v2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMapGrid2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) vn,
+ (GLfloat) v1,
+ (GLfloat) v2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint1 ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalPoint1 (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glEvalPoint1", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint2 ( GLint i , GLint j ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalPoint2 (
+ JNIEnv *env, jobject obj,
+ jint i,
+ jint j)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glEvalPoint2", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i,
+ (GLint) j
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh1 ( GLenum mode , GLint i1 , GLint i2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalMesh1 (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint i1,
+ jint i2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint))
+ getGLProcAddressHelper("glEvalMesh1", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) i1,
+ (GLint) i2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh2 ( GLenum mode , GLint i1 , GLint i2 , GLint j1 , GLint j2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalMesh2 (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint i1,
+ jint i2,
+ jint j1,
+ jint j2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glEvalMesh2", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) i1,
+ (GLint) i2,
+ (GLint) j1,
+ (GLint) j2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glFogf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogi (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glFogi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogfv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glFogfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glFogfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogiv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogiv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glFogiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glFogiv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFeedbackBuffer ( GLsizei size , GLenum type , GLfloat * buffer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFeedbackBuffer (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jfloatArray buffer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, GLfloat *))
+ getGLProcAddressHelper("glFeedbackBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(buffer!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, buffer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glFeedbackBuffer arg: buffer");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) size,
+ (GLenum) type,
+ (GLfloat *) ptr2
+ );
+
+ if(buffer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, buffer, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPassThrough ( GLfloat token ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPassThrough (
+ JNIEnv *env, jobject obj,
+ jfloat token)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glPassThrough", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) token
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSelectBuffer ( GLsizei size , GLuint * buffer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSelectBuffer (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jintArray buffer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glSelectBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(buffer!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, buffer, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glSelectBuffer arg: buffer");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) size,
+ (GLuint *) ptr1
+ );
+
+ if(buffer!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, buffer, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInitNames ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInitNames (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glInitNames", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadName ( GLuint name ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadName (
+ JNIEnv *env, jobject obj,
+ jint name)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glLoadName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) name
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushName ( GLuint name ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushName (
+ JNIEnv *env, jobject obj,
+ jint name)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glPushName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) name
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopName ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopName (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawRangeElements ( GLenum mode , GLuint start , GLuint end , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jbyteArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jshortArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jintArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jfloatArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jdoubleArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jbooleanArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jlongArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jbyte *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jshort *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jint *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jfloat *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jdouble *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jboolean *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jlong *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jbyte *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jshort *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jint *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jfloat *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jdouble *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jboolean *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jlong *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTable ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTable ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glColorTableParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glColorTableParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glColorTableParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glColorTableParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorSubTable ( GLenum target , GLsizei start , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyColorSubTable (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorTable ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyColorTable (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTable ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetColorTableParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetColorTableParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetColorTableParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetColorTableParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquation ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendEquation (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBlendEquation", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendColor (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glBlendColor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHistogram ( GLenum target , GLsizei width , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glHistogram (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint width,
+ jint internalformat,
+ jboolean sink)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, GLboolean))
+ getGLProcAddressHelper("glHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) width,
+ (GLenum) internalformat,
+ (GLboolean) sink
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetHistogram ( GLenum target ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glResetHistogram (
+ JNIEnv *env, jobject obj,
+ jint target)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glResetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogram ( GLenum target , GLboolean reset , GLenum format , GLenum type , GLvoid * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jbyteArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jdoubleArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jbooleanArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jlongArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogramParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetHistogramParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetHistogramParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogramParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetHistogramParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetHistogramParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMinmax ( GLenum target , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMinmax (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jboolean sink)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLboolean))
+ getGLProcAddressHelper("glMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLboolean) sink
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetMinmax ( GLenum target ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glResetMinmax (
+ JNIEnv *env, jobject obj,
+ jint target)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glResetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmax ( GLenum target , GLboolean reset , GLenum format , GLenum types , GLvoid * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jbyteArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jdoubleArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jbooleanArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jlongArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmaxParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMinmaxParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMinmaxParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmaxParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMinmaxParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMinmaxParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter1D ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jint *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterf ( GLenum target , GLenum pname , GLfloat params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameterf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glConvolutionParameterf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) params
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glConvolutionParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glConvolutionParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteri ( GLenum target , GLenum pname , GLint params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameteri (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glConvolutionParameteri", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) params
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glConvolutionParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glConvolutionParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter1D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyConvolutionFilter1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter2D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyConvolutionFilter2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionFilter ( GLenum target , GLenum format , GLenum type , GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetConvolutionParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetConvolutionParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetConvolutionParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetConvolutionParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSeparableFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * row , const GLvoid * column ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3B_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray row,
+ jbyteArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jbyte *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3S_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray row,
+ jshortArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jshort *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3I_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray row,
+ jintArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jint *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jint *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jint *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3F_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray row,
+ jfloatArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jfloat *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray row,
+ jdoubleArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3Z_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray row,
+ jbooleanArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jboolean *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3J_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray row,
+ jlongArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jlong *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr7, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetSeparableFilter ( GLenum target , GLenum format , GLenum type , GLvoid * row , GLvoid * column , GLvoid * span ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3B_3B_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray row,
+ jbyteArray column,
+ jbyteArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3S_3S_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray row,
+ jshortArray column,
+ jshortArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3I_3I_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray row,
+ jintArray column,
+ jintArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3F_3F_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray row,
+ jfloatArray column,
+ jfloatArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3D_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray row,
+ jdoubleArray column,
+ jdoubleArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3Z_3Z_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray row,
+ jbooleanArray column,
+ jbooleanArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3J_3J_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray row,
+ jlongArray column,
+ jlongArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColorEXT ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendColorEXT (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glBlendColorEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffsetEXT ( GLfloat factor , GLfloat bias ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonOffsetEXT (
+ JNIEnv *env, jobject obj,
+ jfloat factor,
+ jfloat bias)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPolygonOffsetEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) factor,
+ (GLfloat) bias
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3DEXT ( GLenum target , GLint level , GLenum internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jbyte *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jshort *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jint *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jfloat *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jdouble *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jboolean *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jlong *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jbyte *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jshort *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jint *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jint *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jfloat *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jdouble *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jboolean *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jlong *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage3DEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTexturesEXT ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glGenTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGenTexturesEXT arg: textures");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTexturesEXT ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *))
+ getGLProcAddressHelper("glDeleteTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glDeleteTexturesEXT arg: textures");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTextureEXT ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBindTextureEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint))
+ getGLProcAddressHelper("glBindTextureEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLuint) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTexturesEXT ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPrioritizeTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jfloatArray priorities)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, const GLclampf *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *, const GLclampf *))
+ getGLProcAddressHelper("glPrioritizeTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glPrioritizeTexturesEXT arg: textures");
+ }
+ }
+ if(priorities!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, priorities, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glPrioritizeTexturesEXT arg: priorities");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (const GLclampf *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ if(priorities!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, priorities, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResidentEXT ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glAreTexturesResidentEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jbooleanArray residences)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, GLboolean *) = NULL;
+ jboolean ret;
+
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLsizei, const GLuint *, GLboolean *))
+ getGLProcAddressHelper("glAreTexturesResidentEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glAreTexturesResidentEXT arg: textures");
+ }
+ }
+ if(residences!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, residences, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glAreTexturesResidentEXT arg: residences");
+ }
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (GLboolean *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, textures, ptr1, JNI_ABORT);
+ }
+ if(residences!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, residences, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTextureEXT ( GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsTextureEXT (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsTextureEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) texture
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jint *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointerEXT ( GLsizei stride , GLsizei count , const GLboolean * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointerEXT (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, const GLboolean *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, const GLboolean *))
+ getGLProcAddressHelper("glEdgeFlagPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glEdgeFlagPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLboolean *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointervEXT ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3B (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbyteArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3S (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jshortArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3I (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3F (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3D (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3Z (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3J (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jlongArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElementEXT ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glArrayElementEXT (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glArrayElementEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArraysEXT ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawArraysEXT (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLsizei))
+ getGLProcAddressHelper("glDrawArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquationEXT ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendEquationEXT (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBlendEquationEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfEXT ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointParameterfEXT (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPointParameterfEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfvEXT ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointParameterfvEXT (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glPointParameterfvEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glPointParameterfvEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableEXT ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTableEXT ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableEXT ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jint *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfvEXT ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterfvEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetColorTableParameterfvEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetColorTableParameterfvEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterivEXT ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterivEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetColorTableParameterivEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetColorTableParameterivEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLockArraysEXT ( GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLockArraysEXT (
+ JNIEnv *env, jobject obj,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLsizei))
+ getGLProcAddressHelper("glLockArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glUnlockArraysEXT ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glUnlockArraysEXT (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glUnlockArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glActiveTextureARB (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glActiveTextureARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClientActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClientActiveTextureARB (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glClientActiveTextureARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dARB ( GLenum target , GLdouble s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord1dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord1dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord1dvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fARB ( GLenum target , GLfloat s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord1fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord1fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord1fvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1iARB ( GLenum target , GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glMultiTexCoord1iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord1ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord1ivARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1sARB ( GLenum target , GLshort s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord1sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord1svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord1svARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dARB ( GLenum target , GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord2dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord2dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord2dvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fARB ( GLenum target , GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord2fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord2fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord2fvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2iARB ( GLenum target , GLint s , GLint t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord2iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord2ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord2ivARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2sARB ( GLenum target , GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord2sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord2svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord2svARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t,
+ jdouble r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord3dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord3dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord3dvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t,
+ jfloat r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord3fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord3fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord3fvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3iARB ( GLenum target , GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t,
+ jint r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord3iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t,
+ (GLint) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord3ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord3ivARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3sARB ( GLenum target , GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t,
+ jshort r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord3sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord3svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord3svARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t,
+ jdouble r,
+ jdouble q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord4dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r,
+ (GLdouble) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord4dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord4dvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t,
+ jfloat r,
+ jfloat q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord4fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r,
+ (GLfloat) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord4fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord4fvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4iARB ( GLenum target , GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t,
+ jint r,
+ jint q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord4iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t,
+ (GLint) r,
+ (GLint) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord4ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord4ivARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4sARB ( GLenum target , GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t,
+ jshort r,
+ jshort q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord4sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r,
+ (GLshort) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord4svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord4svARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/CNativeCode/OpenGL_JauJNI_dynfuncs.c b/CNativeCode/OpenGL_JauJNI_dynfuncs.c
new file mode 100644
index 0000000..534d61e
--- /dev/null
+++ b/CNativeCode/OpenGL_JauJNI_dynfuncs.c
@@ -0,0 +1,23658 @@
+/* WARNING ! WARNING *** THIS FILE IS GENERATED BY C2J !!!
+
+ DO NOT MAKE ANY CHANGES *** MAKE CHANGES IN THE SKELETON FILES !!!
+*/
+
+
+/*
+ * Leo Chan -- 1995
+ *
+ * This mammoth C file takes care of all the native implementation for the
+ * bulk of OpenGL commands
+ * ---------------
+ *
+ * Sven Goethel
+ *
+ * September 1997
+ */
+
+/*
+ * need to include the JAVA internal header files for macros and function
+ * prototypes required to maipulated JAVA data structures and functions
+ *
+ * StubPreamble.h includes the structure and macro definitions neede to
+ * convert JAVA data structures into C data structures.
+ *
+ */
+
+#include "OpenGL_misc.h"
+
+/*
+ * the next thing to include are special headers that were created by
+ * JAVAH. They include the C structure definitions for the JAVA classes
+ */
+#include "gl4java_GLFuncJauJNI.h"
+
+/*--------------------------------------------------------------------------
+ * here on in is just regular apple pie C
+ */
+
+#ifndef LIBAPIENTRY
+ #define LIBAPIENTRY
+#endif
+#ifndef LIBAPI
+ #define LIBAPI
+#endif
+
+#ifndef CALLBACK
+ #define CALLBACK
+#endif
+/** THIS IS A MANUAL CODED PART
+ gl-manualCodedImplJNI.java
+*/
+
+static const char _gl_n_a_string[] = "GL-String not avaiable !";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLFuncJauJNI_glGetString ( JNIEnv *env, jobject obj,
+ jint name )
+{
+ const char * tmpString=0;
+
+ tmpString = glGetString ( /* jint */ name);
+ if(tmpString==NULL)
+ tmpString=_gl_n_a_string;
+
+ return (*env)->NewStringUTF(env, tmpString);
+}
+
+static const char * _gl_lib_vendor_="Jausoft - Sven Goethel Software Development";
+static const char * _gl_lib_version_="2.4.1.0";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLFuncJauJNI_getNativeVendor ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _gl_lib_vendor_);
+}
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLFuncJauJNI_getNativeVersion ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _gl_lib_version_);
+}
+
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: gl-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearIndex ( GLfloat c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearIndex (
+ JNIEnv *env, jobject obj,
+ jfloat c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glClearIndex", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearColor (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glClearColor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClear ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClear (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glClear", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexMask ( GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexMask (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIndexMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMask ( GLboolean red , GLboolean green , GLboolean blue , GLboolean alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorMask (
+ JNIEnv *env, jobject obj,
+ jboolean red,
+ jboolean green,
+ jboolean blue,
+ jboolean alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean, GLboolean, GLboolean, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean, GLboolean, GLboolean, GLboolean))
+ getGLProcAddressHelper("glColorMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) red,
+ (GLboolean) green,
+ (GLboolean) blue,
+ (GLboolean) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAlphaFunc ( GLenum func , GLclampf ref ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glAlphaFunc (
+ JNIEnv *env, jobject obj,
+ jint func,
+ jfloat ref)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLclampf))
+ getGLProcAddressHelper("glAlphaFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func,
+ (GLclampf) ref
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendFunc ( GLenum sfactor , GLenum dfactor ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendFunc (
+ JNIEnv *env, jobject obj,
+ jint sfactor,
+ jint dfactor)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glBlendFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) sfactor,
+ (GLenum) dfactor
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLogicOp ( GLenum opcode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLogicOp (
+ JNIEnv *env, jobject obj,
+ jint opcode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glLogicOp", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) opcode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCullFace ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCullFace (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glCullFace", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrontFace ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFrontFace (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glFrontFace", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointSize ( GLfloat size ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointSize (
+ JNIEnv *env, jobject obj,
+ jfloat size)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glPointSize", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) size
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineWidth ( GLfloat width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLineWidth (
+ JNIEnv *env, jobject obj,
+ jfloat width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glLineWidth", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineStipple ( GLint factor , GLushort pattern ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLineStipple (
+ JNIEnv *env, jobject obj,
+ jint factor,
+ jshort pattern)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLushort))
+ getGLProcAddressHelper("glLineStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) factor,
+ (GLushort) pattern
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonMode ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonMode (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glPolygonMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffset ( GLfloat factor , GLfloat units ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonOffset (
+ JNIEnv *env, jobject obj,
+ jfloat factor,
+ jfloat units)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPolygonOffset", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) factor,
+ (GLfloat) units
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonStipple ( const GLubyte * mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonStipple (
+ JNIEnv *env, jobject obj,
+ jbyteArray mask)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glPolygonStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(mask!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, mask, 0);
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(mask!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, mask, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPolygonStipple ( GLubyte * mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPolygonStipple (
+ JNIEnv *env, jobject obj,
+ jbyteArray mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte *))
+ getGLProcAddressHelper("glGetPolygonStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(mask!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, mask, &isCopiedArray0);
+ }
+ __func_ptr__ (
+ (GLubyte *) ptr0
+ );
+
+ if(mask!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, mask, ptr0, (isCopiedArray0 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlag ( GLboolean flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlag (
+ JNIEnv *env, jobject obj,
+ jboolean flag)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean))
+ getGLProcAddressHelper("glEdgeFlag", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) flag
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagv ( const GLboolean * flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagv (
+ JNIEnv *env, jobject obj,
+ jbooleanArray flag)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLboolean *) = NULL;
+ jboolean *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLboolean *))
+ getGLProcAddressHelper("glEdgeFlagv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(flag!=NULL)
+ {
+ ptr0 = (*env)->GetBooleanArrayElements(env, flag, 0);
+ }
+ __func_ptr__ (
+ (const GLboolean *) ptr0
+ );
+
+ if(flag!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, flag, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScissor ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScissor (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glScissor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClipPlane ( GLenum plane , const GLdouble * equation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClipPlane (
+ JNIEnv *env, jobject obj,
+ jint plane,
+ jdoubleArray equation)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glClipPlane", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(equation!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, equation, 0);
+ }
+ __func_ptr__ (
+ (GLenum) plane,
+ (const GLdouble *) ptr1
+ );
+
+ if(equation!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, equation, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetClipPlane ( GLenum plane , GLdouble * equation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetClipPlane (
+ JNIEnv *env, jobject obj,
+ jint plane,
+ jdoubleArray equation)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetClipPlane", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(equation!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, equation, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) plane,
+ (GLdouble *) ptr1
+ );
+
+ if(equation!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, equation, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawBuffer (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDrawBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadBuffer (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glReadBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnable ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnable (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glEnable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisable ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDisable (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDisable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsEnabled ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsEnabled (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLenum) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glIsEnabled", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLenum) cap
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnableClientState (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glEnableClientState", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDisableClientState (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDisableClientState", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetBooleanv ( GLenum pname , GLboolean * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetBooleanv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean *))
+ getGLProcAddressHelper("glGetBooleanv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLboolean *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetDoublev ( GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetDoublev (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetDoublev", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLdouble *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetFloatv ( GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetFloatv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetFloatv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetIntegerv ( GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetIntegerv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint *))
+ getGLProcAddressHelper("glGetIntegerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushAttrib (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glPushAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopAttrib ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopAttrib (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushClientAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushClientAttrib (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glPushClientAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopClientAttrib ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopClientAttrib (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopClientAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint glRenderMode ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glRenderMode (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static jint (CALLBACK *__func_ptr__)(GLenum) = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glRenderMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ (GLenum) mode
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLenum glGetError ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetError (
+ JNIEnv *env, jobject obj)
+ {
+ static jint (CALLBACK *__func_ptr__)() = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)())
+ getGLProcAddressHelper("glGetError", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFinish ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFinish (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glFinish", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFlush ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFlush (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glFlush", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHint ( GLenum target , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glHint (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glHint", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearDepth ( GLclampd depth ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearDepth (
+ JNIEnv *env, jobject obj,
+ jdouble depth)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampd) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampd))
+ getGLProcAddressHelper("glClearDepth", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampd) depth
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthFunc ( GLenum func ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthFunc (
+ JNIEnv *env, jobject obj,
+ jint func)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDepthFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthMask ( GLboolean flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthMask (
+ JNIEnv *env, jobject obj,
+ jboolean flag)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean))
+ getGLProcAddressHelper("glDepthMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) flag
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthRange ( GLclampd near_val , GLclampd far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthRange (
+ JNIEnv *env, jobject obj,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampd, GLclampd) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampd, GLclampd))
+ getGLProcAddressHelper("glDepthRange", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampd) near_val,
+ (GLclampd) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearAccum ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearAccum (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glClearAccum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue,
+ (GLfloat) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAccum ( GLenum op , GLfloat value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glAccum (
+ JNIEnv *env, jobject obj,
+ jint op,
+ jfloat value)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glAccum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) op,
+ (GLfloat) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMatrixMode ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMatrixMode (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glMatrixMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glOrtho ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glOrtho (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glOrtho", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top,
+ (GLdouble) near_val,
+ (GLdouble) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrustum ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFrustum (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glFrustum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top,
+ (GLdouble) near_val,
+ (GLdouble) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glViewport ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glViewport (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glViewport", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushMatrix ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushMatrix (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPushMatrix", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopMatrix ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopMatrix (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopMatrix", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadIdentity ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadIdentity (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glLoadIdentity", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadMatrixd (
+ JNIEnv *env, jobject obj,
+ jdoubleArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glLoadMatrixd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, m, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadMatrixf (
+ JNIEnv *env, jobject obj,
+ jfloatArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glLoadMatrixf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, m, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultMatrixd (
+ JNIEnv *env, jobject obj,
+ jdoubleArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glMultMatrixd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, m, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultMatrixf (
+ JNIEnv *env, jobject obj,
+ jfloatArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glMultMatrixf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, m, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotated ( GLdouble angle , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRotated (
+ JNIEnv *env, jobject obj,
+ jdouble angle,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRotated", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) angle,
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotatef ( GLfloat angle , GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRotatef (
+ JNIEnv *env, jobject obj,
+ jfloat angle,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRotatef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) angle,
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScaled ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScaled (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glScaled", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScalef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScalef (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glScalef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslated ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTranslated (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTranslated", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslatef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTranslatef (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTranslatef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsList ( GLuint list ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsList (
+ JNIEnv *env, jobject obj,
+ jint list)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) list
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteLists ( GLuint list , GLsizei range ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteLists (
+ JNIEnv *env, jobject obj,
+ jint list,
+ jint range)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLsizei))
+ getGLProcAddressHelper("glDeleteLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list,
+ (GLsizei) range
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLuint glGenLists ( GLsizei range ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenLists (
+ JNIEnv *env, jobject obj,
+ jint range)
+ {
+ static jint (CALLBACK *__func_ptr__)(GLsizei) = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)(GLsizei))
+ getGLProcAddressHelper("glGenLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ (GLsizei) range
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNewList ( GLuint list , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNewList (
+ JNIEnv *env, jobject obj,
+ jint list,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLenum))
+ getGLProcAddressHelper("glNewList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEndList ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEndList (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glEndList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallList ( GLuint list ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallList (
+ JNIEnv *env, jobject obj,
+ jint list)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glCallList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallLists ( GLsizei n , GLenum type , const GLvoid * lists ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3B (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jbyteArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3S (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jshortArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3I (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jintArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3F (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jfloatArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3D (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jdoubleArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jbooleanArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3J (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jlongArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jlong *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glListBase ( GLuint base ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glListBase (
+ JNIEnv *env, jobject obj,
+ jint base)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glListBase", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) base
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBegin ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBegin (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBegin", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnd ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnd (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glEnd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glVertex2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glVertex2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glVertex3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glVertex3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z,
+ jdouble w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z,
+ (GLdouble) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z,
+ jfloat w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z,
+ (GLfloat) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z,
+ jint w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glVertex4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z,
+ (GLint) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z,
+ jshort w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glVertex4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z,
+ (GLshort) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3b ( GLbyte nx , GLbyte ny , GLbyte nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3b (
+ JNIEnv *env, jobject obj,
+ jbyte nx,
+ jbyte ny,
+ jbyte nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glNormal3b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) nx,
+ (GLbyte) ny,
+ (GLbyte) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3d ( GLdouble nx , GLdouble ny , GLdouble nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3d (
+ JNIEnv *env, jobject obj,
+ jdouble nx,
+ jdouble ny,
+ jdouble nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glNormal3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) nx,
+ (GLdouble) ny,
+ (GLdouble) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3f ( GLfloat nx , GLfloat ny , GLfloat nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3f (
+ JNIEnv *env, jobject obj,
+ jfloat nx,
+ jfloat ny,
+ jfloat nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glNormal3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) nx,
+ (GLfloat) ny,
+ (GLfloat) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3i ( GLint nx , GLint ny , GLint nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3i (
+ JNIEnv *env, jobject obj,
+ jint nx,
+ jint ny,
+ jint nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glNormal3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) nx,
+ (GLint) ny,
+ (GLint) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3s ( GLshort nx , GLshort ny , GLshort nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3s (
+ JNIEnv *env, jobject obj,
+ jshort nx,
+ jshort ny,
+ jshort nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glNormal3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) nx,
+ (GLshort) ny,
+ (GLshort) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glNormal3bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glNormal3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glNormal3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glNormal3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glNormal3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexd ( GLdouble c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexd (
+ JNIEnv *env, jobject obj,
+ jdouble c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glIndexd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexf ( GLfloat c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexf (
+ JNIEnv *env, jobject obj,
+ jfloat c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glIndexf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexi ( GLint c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexi (
+ JNIEnv *env, jobject obj,
+ jint c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glIndexi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexs ( GLshort c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexs (
+ JNIEnv *env, jobject obj,
+ jshort c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort))
+ getGLProcAddressHelper("glIndexs", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexub ( GLubyte c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexub (
+ JNIEnv *env, jobject obj,
+ jbyte c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte))
+ getGLProcAddressHelper("glIndexub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexdv ( const GLdouble * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexdv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glIndexdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexfv ( const GLfloat * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexfv (
+ JNIEnv *env, jobject obj,
+ jfloatArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glIndexfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexiv ( const GLint * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexiv (
+ JNIEnv *env, jobject obj,
+ jintArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glIndexiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexsv ( const GLshort * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexsv (
+ JNIEnv *env, jobject obj,
+ jshortArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glIndexsv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexubv ( const GLubyte * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glIndexubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3b ( GLbyte red , GLbyte green , GLbyte blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3b (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glColor3b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) red,
+ (GLbyte) green,
+ (GLbyte) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3d ( GLdouble red , GLdouble green , GLdouble blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3d (
+ JNIEnv *env, jobject obj,
+ jdouble red,
+ jdouble green,
+ jdouble blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glColor3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) red,
+ (GLdouble) green,
+ (GLdouble) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3f ( GLfloat red , GLfloat green , GLfloat blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3f (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glColor3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3i ( GLint red , GLint green , GLint blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3i (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glColor3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) red,
+ (GLint) green,
+ (GLint) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3s ( GLshort red , GLshort green , GLshort blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3s (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glColor3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) red,
+ (GLshort) green,
+ (GLshort) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ub ( GLubyte red , GLubyte green , GLubyte blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ub (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte, GLubyte, GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte, GLubyte, GLubyte))
+ getGLProcAddressHelper("glColor3ub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) red,
+ (GLubyte) green,
+ (GLubyte) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ui ( GLuint red , GLuint green , GLuint blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ui (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLuint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLuint, GLuint))
+ getGLProcAddressHelper("glColor3ui", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) red,
+ (GLuint) green,
+ (GLuint) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3us ( GLushort red , GLushort green , GLushort blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3us (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLushort, GLushort, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLushort, GLushort, GLushort))
+ getGLProcAddressHelper("glColor3us", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLushort) red,
+ (GLushort) green,
+ (GLushort) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4b ( GLbyte red , GLbyte green , GLbyte blue , GLbyte alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4b (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue,
+ jbyte alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glColor4b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) red,
+ (GLbyte) green,
+ (GLbyte) blue,
+ (GLbyte) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4d ( GLdouble red , GLdouble green , GLdouble blue , GLdouble alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4d (
+ JNIEnv *env, jobject obj,
+ jdouble red,
+ jdouble green,
+ jdouble blue,
+ jdouble alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glColor4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) red,
+ (GLdouble) green,
+ (GLdouble) blue,
+ (GLdouble) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4f ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4f (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glColor4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue,
+ (GLfloat) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4i ( GLint red , GLint green , GLint blue , GLint alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4i (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue,
+ jint alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glColor4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) red,
+ (GLint) green,
+ (GLint) blue,
+ (GLint) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4s ( GLshort red , GLshort green , GLshort blue , GLshort alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4s (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue,
+ jshort alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glColor4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) red,
+ (GLshort) green,
+ (GLshort) blue,
+ (GLshort) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ub ( GLubyte red , GLubyte green , GLubyte blue , GLubyte alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ub (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue,
+ jbyte alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte, GLubyte, GLubyte, GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte, GLubyte, GLubyte, GLubyte))
+ getGLProcAddressHelper("glColor4ub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) red,
+ (GLubyte) green,
+ (GLubyte) blue,
+ (GLubyte) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ui ( GLuint red , GLuint green , GLuint blue , GLuint alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ui (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue,
+ jint alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLuint, GLuint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLuint, GLuint, GLuint))
+ getGLProcAddressHelper("glColor4ui", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) red,
+ (GLuint) green,
+ (GLuint) blue,
+ (GLuint) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4us ( GLushort red , GLushort green , GLushort blue , GLushort alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4us (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue,
+ jshort alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLushort, GLushort, GLushort, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLushort, GLushort, GLushort, GLushort))
+ getGLProcAddressHelper("glColor4us", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLushort) red,
+ (GLushort) green,
+ (GLushort) blue,
+ (GLushort) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glColor3bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glColor3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glColor3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glColor3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glColor3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glColor3ubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3uiv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLuint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLuint *))
+ getGLProcAddressHelper("glColor3uiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLuint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3usv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLushort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLushort *))
+ getGLProcAddressHelper("glColor3usv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLushort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glColor4bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glColor4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glColor4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glColor4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glColor4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glColor4ubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4uiv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLuint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLuint *))
+ getGLProcAddressHelper("glColor4uiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLuint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4usv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLushort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLushort *))
+ getGLProcAddressHelper("glColor4usv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLushort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1d ( GLdouble s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1d (
+ JNIEnv *env, jobject obj,
+ jdouble s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glTexCoord1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1f ( GLfloat s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1f (
+ JNIEnv *env, jobject obj,
+ jfloat s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glTexCoord1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1i ( GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1i (
+ JNIEnv *env, jobject obj,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glTexCoord1i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1s ( GLshort s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1s (
+ JNIEnv *env, jobject obj,
+ jshort s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort))
+ getGLProcAddressHelper("glTexCoord1s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2d ( GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2f ( GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2i ( GLint s , GLint t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glTexCoord2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2s ( GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3d ( GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t,
+ jdouble r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3f ( GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t,
+ jfloat r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3i ( GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t,
+ jint r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glTexCoord3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t,
+ (GLint) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3s ( GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t,
+ jshort r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4d ( GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t,
+ jdouble r,
+ jdouble q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r,
+ (GLdouble) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4f ( GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t,
+ jfloat r,
+ jfloat q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r,
+ (GLfloat) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4i ( GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t,
+ jint r,
+ jint q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glTexCoord4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t,
+ (GLint) r,
+ (GLint) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4s ( GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t,
+ jshort r,
+ jshort q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r,
+ (GLshort) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord1dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord1fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord1iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord1sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glRasterPos2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glRasterPos3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z,
+ jdouble w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z,
+ (GLdouble) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z,
+ jfloat w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z,
+ (GLfloat) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z,
+ jint w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glRasterPos4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z,
+ (GLint) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z,
+ jshort w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z,
+ (GLshort) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectd ( GLdouble x1 , GLdouble y1 , GLdouble x2 , GLdouble y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectd (
+ JNIEnv *env, jobject obj,
+ jdouble x1,
+ jdouble y1,
+ jdouble x2,
+ jdouble y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRectd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x1,
+ (GLdouble) y1,
+ (GLdouble) x2,
+ (GLdouble) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectf ( GLfloat x1 , GLfloat y1 , GLfloat x2 , GLfloat y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectf (
+ JNIEnv *env, jobject obj,
+ jfloat x1,
+ jfloat y1,
+ jfloat x2,
+ jfloat y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRectf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x1,
+ (GLfloat) y1,
+ (GLfloat) x2,
+ (GLfloat) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRecti ( GLint x1 , GLint y1 , GLint x2 , GLint y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRecti (
+ JNIEnv *env, jobject obj,
+ jint x1,
+ jint y1,
+ jint x2,
+ jint y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glRecti", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x1,
+ (GLint) y1,
+ (GLint) x2,
+ (GLint) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRects ( GLshort x1 , GLshort y1 , GLshort x2 , GLshort y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRects (
+ JNIEnv *env, jobject obj,
+ jshort x1,
+ jshort y1,
+ jshort x2,
+ jshort y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRects", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x1,
+ (GLshort) y1,
+ (GLshort) x2,
+ (GLshort) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectdv ( const GLdouble * v1 , const GLdouble * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectdv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v1,
+ jdoubleArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *, const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *, const GLdouble *))
+ getGLProcAddressHelper("glRectdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v1, 0);
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v2, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0,
+ (const GLdouble *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectfv ( const GLfloat * v1 , const GLfloat * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectfv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v1,
+ jfloatArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *, const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *, const GLfloat *))
+ getGLProcAddressHelper("glRectfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v1, 0);
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v2, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0,
+ (const GLfloat *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectiv ( const GLint * v1 , const GLint * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectiv (
+ JNIEnv *env, jobject obj,
+ jintArray v1,
+ jintArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *, const GLint *) = NULL;
+ jint *ptr0 = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *, const GLint *))
+ getGLProcAddressHelper("glRectiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v1, 0);
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v2, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0,
+ (const GLint *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectsv ( const GLshort * v1 , const GLshort * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectsv (
+ JNIEnv *env, jobject obj,
+ jshortArray v1,
+ jshortArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *, const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *, const GLshort *))
+ getGLProcAddressHelper("glRectsv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v1, 0);
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v2, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0,
+ (const GLshort *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointer ( GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3B (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3S (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3I (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3F (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3D (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3Z (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3J (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jlong *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointerv ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3B (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbyteArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetByteArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3S (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jshortArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3I (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3F (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3D (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3Z (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3J (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jlongArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetLongArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElement ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glArrayElement (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glArrayElement", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArrays ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawArrays (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLsizei))
+ getGLProcAddressHelper("glDrawArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawElements ( GLenum mode , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3B (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jbyteArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3S (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jshortArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3I (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jintArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3F (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jfloatArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3D (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jdoubleArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jbooleanArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3J (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jlongArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInterleavedArrays ( GLenum format , GLsizei stride , const GLvoid * pointer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3B (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jbyteArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3S (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jshortArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3I (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jintArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3F (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jfloatArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3D (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jdoubleArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jbooleanArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3J (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jlongArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glShadeModel ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glShadeModel (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glShadeModel", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightf ( GLenum light , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightf (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glLightf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLighti ( GLenum light , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLighti (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glLighti", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightfv ( GLenum light , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightfv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glLightfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightiv ( GLenum light , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightiv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glLightiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightfv ( GLenum light , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetLightfv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetLightfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightiv ( GLenum light , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetLightiv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetLightiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModelf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glLightModelf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeli ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModeli (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glLightModeli", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModelfv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glLightModelfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeliv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModeliv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glLightModeliv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialf ( GLenum face , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialf (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glMaterialf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMateriali ( GLenum face , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMateriali (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glMateriali", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialfv ( GLenum face , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialfv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMaterialfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialiv ( GLenum face , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialiv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glMaterialiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialfv ( GLenum face , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMaterialfv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMaterialfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialiv ( GLenum face , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMaterialiv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMaterialiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMaterial ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorMaterial (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glColorMaterial", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelZoom ( GLfloat xfactor , GLfloat yfactor ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelZoom (
+ JNIEnv *env, jobject obj,
+ jfloat xfactor,
+ jfloat yfactor)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPixelZoom", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) xfactor,
+ (GLfloat) yfactor
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStoref ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelStoref (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPixelStoref", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStorei ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelStorei (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glPixelStorei", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelTransferf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPixelTransferf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelTransferi (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glPixelTransferi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapfv ( GLenum map , GLint mapsize , const GLfloat * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapfv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLfloat *))
+ getGLProcAddressHelper("glPixelMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, values, 0);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLfloat *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapuiv ( GLenum map , GLint mapsize , const GLuint * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapuiv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLuint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLuint *))
+ getGLProcAddressHelper("glPixelMapuiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, values, 0);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLuint *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapusv ( GLenum map , GLint mapsize , const GLushort * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapusv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLushort *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLushort *))
+ getGLProcAddressHelper("glPixelMapusv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, values, 0);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLushort *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapfv ( GLenum map , GLfloat * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapfv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetPixelMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, values, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLfloat *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapuiv ( GLenum map , GLuint * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapuiv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint *))
+ getGLProcAddressHelper("glGetPixelMapuiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, values, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLuint *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapusv ( GLenum map , GLushort * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapusv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLushort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLushort *))
+ getGLProcAddressHelper("glGetPixelMapusv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, values, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLushort *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBitmap ( GLsizei width , GLsizei height , GLfloat xorig , GLfloat yorig , GLfloat xmove , GLfloat ymove , const GLubyte * bitmap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBitmap (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jfloat xorig,
+ jfloat yorig,
+ jfloat xmove,
+ jfloat ymove,
+ jbyteArray bitmap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *) = NULL;
+ jbyte *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *))
+ getGLProcAddressHelper("glBitmap", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(bitmap!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, bitmap, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLfloat) xorig,
+ (GLfloat) yorig,
+ (GLfloat) xmove,
+ (GLfloat) ymove,
+ (const GLubyte *) ptr6
+ );
+
+ if(bitmap!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, bitmap, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawPixels ( GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyPixels (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint type)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum))
+ getGLProcAddressHelper("glCopyPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) type
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilFunc ( GLenum func , GLint ref , GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilFunc (
+ JNIEnv *env, jobject obj,
+ jint func,
+ jint ref,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLuint))
+ getGLProcAddressHelper("glStencilFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func,
+ (GLint) ref,
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilMask ( GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilMask (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glStencilMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilOp ( GLenum fail , GLenum zfail , GLenum zpass ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilOp (
+ JNIEnv *env, jobject obj,
+ jint fail,
+ jint zfail,
+ jint zpass)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum))
+ getGLProcAddressHelper("glStencilOp", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) fail,
+ (GLenum) zfail,
+ (GLenum) zpass
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearStencil ( GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearStencil (
+ JNIEnv *env, jobject obj,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glClearStencil", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGend ( GLenum coord , GLenum pname , GLdouble param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGend (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdouble param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble))
+ getGLProcAddressHelper("glTexGend", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLdouble) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenf ( GLenum coord , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGenf (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexGenf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeni ( GLenum coord , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGeni (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexGeni", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGendv ( GLenum coord , GLenum pname , const GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGendv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLdouble *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLdouble *))
+ getGLProcAddressHelper("glTexGendv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLdouble *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenfv ( GLenum coord , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGenfv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexGenfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeniv ( GLenum coord , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGeniv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexGeniv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGendv ( GLenum coord , GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGendv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetTexGendv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLdouble *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGenfv ( GLenum coord , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGenfv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexGenfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGeniv ( GLenum coord , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGeniv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexGeniv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexEnvf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvi ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvi (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexEnvi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexEnvfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnviv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnviv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexEnviv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnvfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexEnvfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexEnvfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnviv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexEnviv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexEnviv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameterf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexParameterf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteri ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameteri (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexParameteri", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameterfv ( GLenum target , GLint level , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexLevelParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexLevelParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) pname,
+ (GLfloat *) ptr3
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameteriv ( GLenum target , GLint level , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexLevelParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexLevelParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, params, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) pname,
+ (GLint *) ptr3
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage1D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage2D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexImage ( GLenum target , GLint level , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTextures ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glGenTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTextures ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *))
+ getGLProcAddressHelper("glDeleteTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTexture ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBindTexture (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint))
+ getGLProcAddressHelper("glBindTexture", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLuint) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTextures ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPrioritizeTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jfloatArray priorities)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, const GLclampf *) = NULL;
+ jint *ptr1 = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *, const GLclampf *))
+ getGLProcAddressHelper("glPrioritizeTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, 0);
+ }
+ if(priorities!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, priorities, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (const GLclampf *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ if(priorities!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, priorities, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResident ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glAreTexturesResident (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jbooleanArray residences)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, GLboolean *) = NULL;
+ jboolean ret;
+
+ jint *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLsizei, const GLuint *, GLboolean *))
+ getGLProcAddressHelper("glAreTexturesResident", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, 0);
+ }
+ if(residences!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, residences, &isCopiedArray2);
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (GLboolean *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ if(residences!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, residences, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTexture ( GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsTexture (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsTexture", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) texture
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLsizei width , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage1D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLint border ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexImage1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint border)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint))
+ getGLProcAddressHelper("glCopyTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLint) border
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage2D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height , GLint border ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexImage2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint border)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint))
+ getGLProcAddressHelper("glCopyTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint stride , GLint order , const GLdouble * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap1d (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble u1,
+ jdouble u2,
+ jint stride,
+ jint order,
+ jdoubleArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *))
+ getGLProcAddressHelper("glMap1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, points, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) stride,
+ (GLint) order,
+ (const GLdouble *) ptr5
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, points, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint stride , GLint order , const GLfloat * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap1f (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat u1,
+ jfloat u2,
+ jint stride,
+ jint order,
+ jfloatArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *))
+ getGLProcAddressHelper("glMap1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, points, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) stride,
+ (GLint) order,
+ (const GLfloat *) ptr5
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, points, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint ustride , GLint uorder , GLdouble v1 , GLdouble v2 , GLint vstride , GLint vorder , const GLdouble * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap2d (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble u1,
+ jdouble u2,
+ jint ustride,
+ jint uorder,
+ jdouble v1,
+ jdouble v2,
+ jint vstride,
+ jint vorder,
+ jdoubleArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *) = NULL;
+ jdouble *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *))
+ getGLProcAddressHelper("glMap2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr9 = (*env)->GetDoubleArrayElements(env, points, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) ustride,
+ (GLint) uorder,
+ (GLdouble) v1,
+ (GLdouble) v2,
+ (GLint) vstride,
+ (GLint) vorder,
+ (const GLdouble *) ptr9
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, points, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint ustride , GLint uorder , GLfloat v1 , GLfloat v2 , GLint vstride , GLint vorder , const GLfloat * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap2f (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat u1,
+ jfloat u2,
+ jint ustride,
+ jint uorder,
+ jfloat v1,
+ jfloat v2,
+ jint vstride,
+ jint vorder,
+ jfloatArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *) = NULL;
+ jfloat *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *))
+ getGLProcAddressHelper("glMap2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr9 = (*env)->GetFloatArrayElements(env, points, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) ustride,
+ (GLint) uorder,
+ (GLfloat) v1,
+ (GLfloat) v2,
+ (GLint) vstride,
+ (GLint) vorder,
+ (const GLfloat *) ptr9
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, points, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapdv ( GLenum target , GLenum query , GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapdv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetMapdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLdouble *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapfv ( GLenum target , GLenum query , GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLfloat *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapiv ( GLenum target , GLenum query , GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapiv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMapiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, v, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLint *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1d ( GLdouble u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1d (
+ JNIEnv *env, jobject obj,
+ jdouble u)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glEvalCoord1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) u
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1f ( GLfloat u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1f (
+ JNIEnv *env, jobject obj,
+ jfloat u)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glEvalCoord1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) u
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glEvalCoord1dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, u, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glEvalCoord1fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, u, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2d ( GLdouble u , GLdouble v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2d (
+ JNIEnv *env, jobject obj,
+ jdouble u,
+ jdouble v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glEvalCoord2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) u,
+ (GLdouble) v
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2f ( GLfloat u , GLfloat v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2f (
+ JNIEnv *env, jobject obj,
+ jfloat u,
+ jfloat v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glEvalCoord2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) u,
+ (GLfloat) v
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glEvalCoord2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, u, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glEvalCoord2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, u, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1d ( GLint un , GLdouble u1 , GLdouble u2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid1d (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jdouble u1,
+ jdouble u2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMapGrid1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLdouble) u1,
+ (GLdouble) u2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1f ( GLint un , GLfloat u1 , GLfloat u2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid1f (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jfloat u1,
+ jfloat u2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMapGrid1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLfloat) u1,
+ (GLfloat) u2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2d ( GLint un , GLdouble u1 , GLdouble u2 , GLint vn , GLdouble v1 , GLdouble v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid2d (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jdouble u1,
+ jdouble u2,
+ jint vn,
+ jdouble v1,
+ jdouble v2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMapGrid2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) vn,
+ (GLdouble) v1,
+ (GLdouble) v2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2f ( GLint un , GLfloat u1 , GLfloat u2 , GLint vn , GLfloat v1 , GLfloat v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid2f (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jfloat u1,
+ jfloat u2,
+ jint vn,
+ jfloat v1,
+ jfloat v2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMapGrid2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) vn,
+ (GLfloat) v1,
+ (GLfloat) v2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint1 ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalPoint1 (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glEvalPoint1", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint2 ( GLint i , GLint j ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalPoint2 (
+ JNIEnv *env, jobject obj,
+ jint i,
+ jint j)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glEvalPoint2", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i,
+ (GLint) j
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh1 ( GLenum mode , GLint i1 , GLint i2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalMesh1 (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint i1,
+ jint i2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint))
+ getGLProcAddressHelper("glEvalMesh1", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) i1,
+ (GLint) i2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh2 ( GLenum mode , GLint i1 , GLint i2 , GLint j1 , GLint j2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalMesh2 (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint i1,
+ jint i2,
+ jint j1,
+ jint j2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glEvalMesh2", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) i1,
+ (GLint) i2,
+ (GLint) j1,
+ (GLint) j2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glFogf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogi (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glFogi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogfv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glFogfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogiv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogiv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glFogiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFeedbackBuffer ( GLsizei size , GLenum type , GLfloat * buffer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFeedbackBuffer (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jfloatArray buffer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, GLfloat *))
+ getGLProcAddressHelper("glFeedbackBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(buffer!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, buffer, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLsizei) size,
+ (GLenum) type,
+ (GLfloat *) ptr2
+ );
+
+ if(buffer!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, buffer, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPassThrough ( GLfloat token ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPassThrough (
+ JNIEnv *env, jobject obj,
+ jfloat token)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glPassThrough", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) token
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSelectBuffer ( GLsizei size , GLuint * buffer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSelectBuffer (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jintArray buffer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glSelectBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(buffer!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, buffer, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLsizei) size,
+ (GLuint *) ptr1
+ );
+
+ if(buffer!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, buffer, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInitNames ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInitNames (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glInitNames", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadName ( GLuint name ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadName (
+ JNIEnv *env, jobject obj,
+ jint name)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glLoadName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) name
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushName ( GLuint name ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushName (
+ JNIEnv *env, jobject obj,
+ jint name)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glPushName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) name
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopName ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopName (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawRangeElements ( GLenum mode , GLuint start , GLuint end , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jbyteArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jshortArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jintArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jfloatArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jdoubleArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jbooleanArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jlongArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTable ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTable ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glColorTableParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glColorTableParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorSubTable ( GLenum target , GLsizei start , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyColorSubTable (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorTable ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyColorTable (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTable ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetColorTableParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetColorTableParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquation ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendEquation (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBlendEquation", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendColor (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glBlendColor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHistogram ( GLenum target , GLsizei width , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glHistogram (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint width,
+ jint internalformat,
+ jboolean sink)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, GLboolean))
+ getGLProcAddressHelper("glHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) width,
+ (GLenum) internalformat,
+ (GLboolean) sink
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetHistogram ( GLenum target ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glResetHistogram (
+ JNIEnv *env, jobject obj,
+ jint target)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glResetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogram ( GLenum target , GLboolean reset , GLenum format , GLenum type , GLvoid * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jbyteArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jdoubleArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jbooleanArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jlongArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogramParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetHistogramParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogramParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetHistogramParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMinmax ( GLenum target , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMinmax (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jboolean sink)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLboolean))
+ getGLProcAddressHelper("glMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLboolean) sink
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetMinmax ( GLenum target ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glResetMinmax (
+ JNIEnv *env, jobject obj,
+ jint target)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glResetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmax ( GLenum target , GLboolean reset , GLenum format , GLenum types , GLvoid * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jbyteArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jdoubleArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jbooleanArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jlongArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmaxParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMinmaxParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmaxParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMinmaxParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter1D ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterf ( GLenum target , GLenum pname , GLfloat params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameterf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glConvolutionParameterf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) params
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glConvolutionParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteri ( GLenum target , GLenum pname , GLint params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameteri (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glConvolutionParameteri", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) params
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glConvolutionParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter1D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyConvolutionFilter1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter2D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyConvolutionFilter2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionFilter ( GLenum target , GLenum format , GLenum type , GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetConvolutionParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetConvolutionParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSeparableFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * row , const GLvoid * column ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3B_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray row,
+ jbyteArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jbyte *ptr6 = NULL;
+ jbyte *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetByteArrayElements(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3S_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray row,
+ jshortArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jshort *ptr6 = NULL;
+ jshort *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetShortArrayElements(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3I_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray row,
+ jintArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jint *ptr6 = NULL;
+ jint *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetIntArrayElements(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3F_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray row,
+ jfloatArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jfloat *ptr6 = NULL;
+ jfloat *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetFloatArrayElements(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray row,
+ jdoubleArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jdouble *ptr6 = NULL;
+ jdouble *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetDoubleArrayElements(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3Z_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray row,
+ jbooleanArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean *ptr6 = NULL;
+ jboolean *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetBooleanArrayElements(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3J_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray row,
+ jlongArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jlong *ptr6 = NULL;
+ jlong *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetLongArrayElements(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetSeparableFilter ( GLenum target , GLenum format , GLenum type , GLvoid * row , GLvoid * column , GLvoid * span ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3B_3B_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray row,
+ jbyteArray column,
+ jbyteArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3S_3S_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray row,
+ jshortArray column,
+ jshortArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3I_3I_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray row,
+ jintArray column,
+ jintArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3F_3F_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray row,
+ jfloatArray column,
+ jfloatArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3D_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray row,
+ jdoubleArray column,
+ jdoubleArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3Z_3Z_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray row,
+ jbooleanArray column,
+ jbooleanArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3J_3J_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray row,
+ jlongArray column,
+ jlongArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColorEXT ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendColorEXT (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glBlendColorEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffsetEXT ( GLfloat factor , GLfloat bias ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonOffsetEXT (
+ JNIEnv *env, jobject obj,
+ jfloat factor,
+ jfloat bias)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPolygonOffsetEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) factor,
+ (GLfloat) bias
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3DEXT ( GLenum target , GLint level , GLenum internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage3DEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTexturesEXT ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glGenTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTexturesEXT ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *))
+ getGLProcAddressHelper("glDeleteTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTextureEXT ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBindTextureEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint))
+ getGLProcAddressHelper("glBindTextureEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLuint) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTexturesEXT ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPrioritizeTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jfloatArray priorities)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, const GLclampf *) = NULL;
+ jint *ptr1 = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *, const GLclampf *))
+ getGLProcAddressHelper("glPrioritizeTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, 0);
+ }
+ if(priorities!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, priorities, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (const GLclampf *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ if(priorities!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, priorities, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResidentEXT ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glAreTexturesResidentEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jbooleanArray residences)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, GLboolean *) = NULL;
+ jboolean ret;
+
+ jint *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLsizei, const GLuint *, GLboolean *))
+ getGLProcAddressHelper("glAreTexturesResidentEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, 0);
+ }
+ if(residences!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, residences, &isCopiedArray2);
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (GLboolean *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ if(residences!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, residences, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTextureEXT ( GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsTextureEXT (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsTextureEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) texture
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointerEXT ( GLsizei stride , GLsizei count , const GLboolean * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointerEXT (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, const GLboolean *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, const GLboolean *))
+ getGLProcAddressHelper("glEdgeFlagPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLboolean *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointervEXT ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3B (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbyteArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetByteArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3S (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jshortArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3I (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3F (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3D (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3Z (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3J (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jlongArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetLongArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElementEXT ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glArrayElementEXT (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glArrayElementEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArraysEXT ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawArraysEXT (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLsizei))
+ getGLProcAddressHelper("glDrawArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquationEXT ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendEquationEXT (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBlendEquationEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfEXT ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointParameterfEXT (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPointParameterfEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfvEXT ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointParameterfvEXT (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glPointParameterfvEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableEXT ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTableEXT ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableEXT ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfvEXT ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterfvEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetColorTableParameterfvEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterivEXT ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterivEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetColorTableParameterivEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLockArraysEXT ( GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLockArraysEXT (
+ JNIEnv *env, jobject obj,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLsizei))
+ getGLProcAddressHelper("glLockArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glUnlockArraysEXT ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glUnlockArraysEXT (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glUnlockArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glActiveTextureARB (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glActiveTextureARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClientActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClientActiveTextureARB (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glClientActiveTextureARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dARB ( GLenum target , GLdouble s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord1dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord1dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fARB ( GLenum target , GLfloat s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord1fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord1fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1iARB ( GLenum target , GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glMultiTexCoord1iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord1ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1sARB ( GLenum target , GLshort s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord1sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord1svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dARB ( GLenum target , GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord2dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord2dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fARB ( GLenum target , GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord2fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord2fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2iARB ( GLenum target , GLint s , GLint t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord2iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord2ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2sARB ( GLenum target , GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord2sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord2svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t,
+ jdouble r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord3dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord3dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t,
+ jfloat r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord3fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord3fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3iARB ( GLenum target , GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t,
+ jint r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord3iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t,
+ (GLint) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord3ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3sARB ( GLenum target , GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t,
+ jshort r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord3sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord3svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t,
+ jdouble r,
+ jdouble q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord4dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r,
+ (GLdouble) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord4dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t,
+ jfloat r,
+ jfloat q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord4fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r,
+ (GLfloat) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord4fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4iARB ( GLenum target , GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t,
+ jint r,
+ jint q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord4iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t,
+ (GLint) r,
+ (GLint) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord4ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4sARB ( GLenum target , GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t,
+ jshort r,
+ jshort q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord4sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r,
+ (GLshort) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord4svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/CNativeCode/OpenGL_JauJNInf_dynfuncs.c b/CNativeCode/OpenGL_JauJNInf_dynfuncs.c
new file mode 100644
index 0000000..9bc6a0c
--- /dev/null
+++ b/CNativeCode/OpenGL_JauJNInf_dynfuncs.c
@@ -0,0 +1,23658 @@
+/* WARNING ! WARNING *** THIS FILE IS GENERATED BY C2J !!!
+
+ DO NOT MAKE ANY CHANGES *** MAKE CHANGES IN THE SKELETON FILES !!!
+*/
+
+
+/*
+ * Leo Chan -- 1995
+ *
+ * This mammoth C file takes care of all the native implementation for the
+ * bulk of OpenGL commands
+ * ---------------
+ *
+ * Sven Goethel
+ *
+ * September 1997
+ */
+
+/*
+ * need to include the JAVA internal header files for macros and function
+ * prototypes required to maipulated JAVA data structures and functions
+ *
+ * StubPreamble.h includes the structure and macro definitions neede to
+ * convert JAVA data structures into C data structures.
+ *
+ */
+
+#include "OpenGL_misc.h"
+
+/*
+ * the next thing to include are special headers that were created by
+ * JAVAH. They include the C structure definitions for the JAVA classes
+ */
+#include "gl4java_GLFuncJauJNInf.h"
+
+/*--------------------------------------------------------------------------
+ * here on in is just regular apple pie C
+ */
+
+#ifndef LIBAPIENTRY
+ #define LIBAPIENTRY
+#endif
+#ifndef LIBAPI
+ #define LIBAPI
+#endif
+
+#ifndef CALLBACK
+ #define CALLBACK
+#endif
+/** THIS IS A MANUAL CODED PART
+ gl-manualCodedImplJNI.java
+*/
+
+static const char _gl_n_a_string[] = "GL-String not avaiable !";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLFuncJauJNInf_glGetString ( JNIEnv *env, jobject obj,
+ jint name )
+{
+ const char * tmpString=0;
+
+ tmpString = glGetString ( /* jint */ name);
+ if(tmpString==NULL)
+ tmpString=_gl_n_a_string;
+
+ return (*env)->NewStringUTF(env, tmpString);
+}
+
+static const char * _gl_lib_vendor_="Jausoft - Sven Goethel Software Development";
+static const char * _gl_lib_version_="2.4.1.0";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLFuncJauJNInf_getNativeVendor ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _gl_lib_vendor_);
+}
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLFuncJauJNInf_getNativeVersion ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _gl_lib_version_);
+}
+
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: gl-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLFuncJauJNInf !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearIndex ( GLfloat c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glClearIndex (
+ JNIEnv *env, jobject obj,
+ jfloat c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glClearIndex", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glClearColor (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glClearColor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClear ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glClear (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glClear", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexMask ( GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexMask (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIndexMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMask ( GLboolean red , GLboolean green , GLboolean blue , GLboolean alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorMask (
+ JNIEnv *env, jobject obj,
+ jboolean red,
+ jboolean green,
+ jboolean blue,
+ jboolean alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean, GLboolean, GLboolean, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean, GLboolean, GLboolean, GLboolean))
+ getGLProcAddressHelper("glColorMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) red,
+ (GLboolean) green,
+ (GLboolean) blue,
+ (GLboolean) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAlphaFunc ( GLenum func , GLclampf ref ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glAlphaFunc (
+ JNIEnv *env, jobject obj,
+ jint func,
+ jfloat ref)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLclampf))
+ getGLProcAddressHelper("glAlphaFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func,
+ (GLclampf) ref
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendFunc ( GLenum sfactor , GLenum dfactor ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glBlendFunc (
+ JNIEnv *env, jobject obj,
+ jint sfactor,
+ jint dfactor)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glBlendFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) sfactor,
+ (GLenum) dfactor
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLogicOp ( GLenum opcode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glLogicOp (
+ JNIEnv *env, jobject obj,
+ jint opcode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glLogicOp", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) opcode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCullFace ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glCullFace (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glCullFace", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrontFace ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glFrontFace (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glFrontFace", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointSize ( GLfloat size ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPointSize (
+ JNIEnv *env, jobject obj,
+ jfloat size)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glPointSize", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) size
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineWidth ( GLfloat width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glLineWidth (
+ JNIEnv *env, jobject obj,
+ jfloat width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glLineWidth", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineStipple ( GLint factor , GLushort pattern ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glLineStipple (
+ JNIEnv *env, jobject obj,
+ jint factor,
+ jshort pattern)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLushort))
+ getGLProcAddressHelper("glLineStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) factor,
+ (GLushort) pattern
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonMode ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPolygonMode (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glPolygonMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffset ( GLfloat factor , GLfloat units ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPolygonOffset (
+ JNIEnv *env, jobject obj,
+ jfloat factor,
+ jfloat units)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPolygonOffset", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) factor,
+ (GLfloat) units
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonStipple ( const GLubyte * mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPolygonStipple (
+ JNIEnv *env, jobject obj,
+ jbyteArray mask)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glPolygonStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(mask!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, mask, 0);
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(mask!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, mask, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPolygonStipple ( GLubyte * mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetPolygonStipple (
+ JNIEnv *env, jobject obj,
+ jbyteArray mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte *))
+ getGLProcAddressHelper("glGetPolygonStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(mask!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, mask, &isCopiedArray0);
+ }
+ __func_ptr__ (
+ (GLubyte *) ptr0
+ );
+
+ if(mask!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, mask, ptr0, (isCopiedArray0 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlag ( GLboolean flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEdgeFlag (
+ JNIEnv *env, jobject obj,
+ jboolean flag)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean))
+ getGLProcAddressHelper("glEdgeFlag", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) flag
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagv ( const GLboolean * flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEdgeFlagv (
+ JNIEnv *env, jobject obj,
+ jbooleanArray flag)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLboolean *) = NULL;
+ jboolean *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLboolean *))
+ getGLProcAddressHelper("glEdgeFlagv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(flag!=NULL)
+ {
+ ptr0 = (*env)->GetBooleanArrayElements(env, flag, 0);
+ }
+ __func_ptr__ (
+ (const GLboolean *) ptr0
+ );
+
+ if(flag!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, flag, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScissor ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glScissor (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glScissor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClipPlane ( GLenum plane , const GLdouble * equation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glClipPlane (
+ JNIEnv *env, jobject obj,
+ jint plane,
+ jdoubleArray equation)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glClipPlane", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(equation!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, equation, 0);
+ }
+ __func_ptr__ (
+ (GLenum) plane,
+ (const GLdouble *) ptr1
+ );
+
+ if(equation!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, equation, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetClipPlane ( GLenum plane , GLdouble * equation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetClipPlane (
+ JNIEnv *env, jobject obj,
+ jint plane,
+ jdoubleArray equation)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetClipPlane", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(equation!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, equation, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) plane,
+ (GLdouble *) ptr1
+ );
+
+ if(equation!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, equation, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawBuffer (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDrawBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glReadBuffer (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glReadBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnable ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEnable (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glEnable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisable ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDisable (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDisable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsEnabled ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIsEnabled (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLenum) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glIsEnabled", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLenum) cap
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEnableClientState (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glEnableClientState", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDisableClientState (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDisableClientState", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetBooleanv ( GLenum pname , GLboolean * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetBooleanv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean *))
+ getGLProcAddressHelper("glGetBooleanv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLboolean *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetDoublev ( GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetDoublev (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetDoublev", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLdouble *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetFloatv ( GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetFloatv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetFloatv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetIntegerv ( GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetIntegerv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint *))
+ getGLProcAddressHelper("glGetIntegerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPushAttrib (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glPushAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopAttrib ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPopAttrib (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushClientAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPushClientAttrib (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glPushClientAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopClientAttrib ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPopClientAttrib (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopClientAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint glRenderMode ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRenderMode (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static jint (CALLBACK *__func_ptr__)(GLenum) = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glRenderMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ (GLenum) mode
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLenum glGetError ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetError (
+ JNIEnv *env, jobject obj)
+ {
+ static jint (CALLBACK *__func_ptr__)() = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)())
+ getGLProcAddressHelper("glGetError", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFinish ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glFinish (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glFinish", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFlush ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glFlush (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glFlush", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHint ( GLenum target , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glHint (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glHint", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearDepth ( GLclampd depth ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glClearDepth (
+ JNIEnv *env, jobject obj,
+ jdouble depth)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampd) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampd))
+ getGLProcAddressHelper("glClearDepth", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampd) depth
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthFunc ( GLenum func ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDepthFunc (
+ JNIEnv *env, jobject obj,
+ jint func)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDepthFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthMask ( GLboolean flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDepthMask (
+ JNIEnv *env, jobject obj,
+ jboolean flag)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean))
+ getGLProcAddressHelper("glDepthMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) flag
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthRange ( GLclampd near_val , GLclampd far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDepthRange (
+ JNIEnv *env, jobject obj,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampd, GLclampd) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampd, GLclampd))
+ getGLProcAddressHelper("glDepthRange", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampd) near_val,
+ (GLclampd) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearAccum ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glClearAccum (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glClearAccum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue,
+ (GLfloat) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAccum ( GLenum op , GLfloat value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glAccum (
+ JNIEnv *env, jobject obj,
+ jint op,
+ jfloat value)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glAccum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) op,
+ (GLfloat) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMatrixMode ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMatrixMode (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glMatrixMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glOrtho ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glOrtho (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glOrtho", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top,
+ (GLdouble) near_val,
+ (GLdouble) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrustum ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glFrustum (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glFrustum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top,
+ (GLdouble) near_val,
+ (GLdouble) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glViewport ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glViewport (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glViewport", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushMatrix ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPushMatrix (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPushMatrix", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopMatrix ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPopMatrix (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopMatrix", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadIdentity ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glLoadIdentity (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glLoadIdentity", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glLoadMatrixd (
+ JNIEnv *env, jobject obj,
+ jdoubleArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glLoadMatrixd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, m, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glLoadMatrixf (
+ JNIEnv *env, jobject obj,
+ jfloatArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glLoadMatrixf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, m, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultMatrixd (
+ JNIEnv *env, jobject obj,
+ jdoubleArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glMultMatrixd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, m, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultMatrixf (
+ JNIEnv *env, jobject obj,
+ jfloatArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glMultMatrixf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, m, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotated ( GLdouble angle , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRotated (
+ JNIEnv *env, jobject obj,
+ jdouble angle,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRotated", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) angle,
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotatef ( GLfloat angle , GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRotatef (
+ JNIEnv *env, jobject obj,
+ jfloat angle,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRotatef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) angle,
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScaled ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glScaled (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glScaled", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScalef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glScalef (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glScalef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslated ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTranslated (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTranslated", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslatef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTranslatef (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTranslatef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsList ( GLuint list ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIsList (
+ JNIEnv *env, jobject obj,
+ jint list)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) list
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteLists ( GLuint list , GLsizei range ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDeleteLists (
+ JNIEnv *env, jobject obj,
+ jint list,
+ jint range)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLsizei))
+ getGLProcAddressHelper("glDeleteLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list,
+ (GLsizei) range
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLuint glGenLists ( GLsizei range ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGenLists (
+ JNIEnv *env, jobject obj,
+ jint range)
+ {
+ static jint (CALLBACK *__func_ptr__)(GLsizei) = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)(GLsizei))
+ getGLProcAddressHelper("glGenLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ (GLsizei) range
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNewList ( GLuint list , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNewList (
+ JNIEnv *env, jobject obj,
+ jint list,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLenum))
+ getGLProcAddressHelper("glNewList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEndList ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEndList (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glEndList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallList ( GLuint list ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glCallList (
+ JNIEnv *env, jobject obj,
+ jint list)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glCallList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallLists ( GLsizei n , GLenum type , const GLvoid * lists ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glCallLists__II_3B (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jbyteArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glCallLists__II_3S (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jshortArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glCallLists__II_3I (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jintArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glCallLists__II_3F (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jfloatArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glCallLists__II_3D (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jdoubleArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glCallLists__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jbooleanArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glCallLists__II_3J (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jlongArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jlong *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, lists, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glListBase ( GLuint base ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glListBase (
+ JNIEnv *env, jobject obj,
+ jint base)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glListBase", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) base
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBegin ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glBegin (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBegin", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnd ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEnd (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glEnd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex2d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex2f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex2i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glVertex2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex2s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glVertex2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex3d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex3f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex3i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glVertex3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex3s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glVertex3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex4d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z,
+ jdouble w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z,
+ (GLdouble) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex4f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z,
+ jfloat w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z,
+ (GLfloat) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex4i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z,
+ jint w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glVertex4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z,
+ (GLint) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex4s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z,
+ jshort w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glVertex4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z,
+ (GLshort) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertex4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3b ( GLbyte nx , GLbyte ny , GLbyte nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormal3b (
+ JNIEnv *env, jobject obj,
+ jbyte nx,
+ jbyte ny,
+ jbyte nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glNormal3b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) nx,
+ (GLbyte) ny,
+ (GLbyte) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3d ( GLdouble nx , GLdouble ny , GLdouble nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormal3d (
+ JNIEnv *env, jobject obj,
+ jdouble nx,
+ jdouble ny,
+ jdouble nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glNormal3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) nx,
+ (GLdouble) ny,
+ (GLdouble) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3f ( GLfloat nx , GLfloat ny , GLfloat nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormal3f (
+ JNIEnv *env, jobject obj,
+ jfloat nx,
+ jfloat ny,
+ jfloat nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glNormal3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) nx,
+ (GLfloat) ny,
+ (GLfloat) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3i ( GLint nx , GLint ny , GLint nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormal3i (
+ JNIEnv *env, jobject obj,
+ jint nx,
+ jint ny,
+ jint nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glNormal3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) nx,
+ (GLint) ny,
+ (GLint) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3s ( GLshort nx , GLshort ny , GLshort nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormal3s (
+ JNIEnv *env, jobject obj,
+ jshort nx,
+ jshort ny,
+ jshort nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glNormal3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) nx,
+ (GLshort) ny,
+ (GLshort) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormal3bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glNormal3bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormal3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glNormal3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormal3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glNormal3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormal3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glNormal3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormal3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glNormal3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexd ( GLdouble c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexd (
+ JNIEnv *env, jobject obj,
+ jdouble c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glIndexd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexf ( GLfloat c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexf (
+ JNIEnv *env, jobject obj,
+ jfloat c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glIndexf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexi ( GLint c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexi (
+ JNIEnv *env, jobject obj,
+ jint c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glIndexi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexs ( GLshort c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexs (
+ JNIEnv *env, jobject obj,
+ jshort c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort))
+ getGLProcAddressHelper("glIndexs", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexub ( GLubyte c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexub (
+ JNIEnv *env, jobject obj,
+ jbyte c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte))
+ getGLProcAddressHelper("glIndexub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexdv ( const GLdouble * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexdv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glIndexdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexfv ( const GLfloat * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexfv (
+ JNIEnv *env, jobject obj,
+ jfloatArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glIndexfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexiv ( const GLint * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexiv (
+ JNIEnv *env, jobject obj,
+ jintArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glIndexiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexsv ( const GLshort * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexsv (
+ JNIEnv *env, jobject obj,
+ jshortArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glIndexsv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexubv ( const GLubyte * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glIndexubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, c, 0);
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3b ( GLbyte red , GLbyte green , GLbyte blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor3b (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glColor3b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) red,
+ (GLbyte) green,
+ (GLbyte) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3d ( GLdouble red , GLdouble green , GLdouble blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor3d (
+ JNIEnv *env, jobject obj,
+ jdouble red,
+ jdouble green,
+ jdouble blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glColor3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) red,
+ (GLdouble) green,
+ (GLdouble) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3f ( GLfloat red , GLfloat green , GLfloat blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor3f (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glColor3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3i ( GLint red , GLint green , GLint blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor3i (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glColor3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) red,
+ (GLint) green,
+ (GLint) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3s ( GLshort red , GLshort green , GLshort blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor3s (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glColor3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) red,
+ (GLshort) green,
+ (GLshort) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ub ( GLubyte red , GLubyte green , GLubyte blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor3ub (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte, GLubyte, GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte, GLubyte, GLubyte))
+ getGLProcAddressHelper("glColor3ub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) red,
+ (GLubyte) green,
+ (GLubyte) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ui ( GLuint red , GLuint green , GLuint blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor3ui (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLuint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLuint, GLuint))
+ getGLProcAddressHelper("glColor3ui", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) red,
+ (GLuint) green,
+ (GLuint) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3us ( GLushort red , GLushort green , GLushort blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor3us (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLushort, GLushort, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLushort, GLushort, GLushort))
+ getGLProcAddressHelper("glColor3us", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLushort) red,
+ (GLushort) green,
+ (GLushort) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4b ( GLbyte red , GLbyte green , GLbyte blue , GLbyte alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor4b (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue,
+ jbyte alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glColor4b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) red,
+ (GLbyte) green,
+ (GLbyte) blue,
+ (GLbyte) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4d ( GLdouble red , GLdouble green , GLdouble blue , GLdouble alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor4d (
+ JNIEnv *env, jobject obj,
+ jdouble red,
+ jdouble green,
+ jdouble blue,
+ jdouble alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glColor4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) red,
+ (GLdouble) green,
+ (GLdouble) blue,
+ (GLdouble) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4f ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor4f (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glColor4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue,
+ (GLfloat) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4i ( GLint red , GLint green , GLint blue , GLint alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor4i (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue,
+ jint alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glColor4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) red,
+ (GLint) green,
+ (GLint) blue,
+ (GLint) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4s ( GLshort red , GLshort green , GLshort blue , GLshort alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor4s (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue,
+ jshort alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glColor4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) red,
+ (GLshort) green,
+ (GLshort) blue,
+ (GLshort) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ub ( GLubyte red , GLubyte green , GLubyte blue , GLubyte alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor4ub (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue,
+ jbyte alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte, GLubyte, GLubyte, GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte, GLubyte, GLubyte, GLubyte))
+ getGLProcAddressHelper("glColor4ub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) red,
+ (GLubyte) green,
+ (GLubyte) blue,
+ (GLubyte) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ui ( GLuint red , GLuint green , GLuint blue , GLuint alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor4ui (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue,
+ jint alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLuint, GLuint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLuint, GLuint, GLuint))
+ getGLProcAddressHelper("glColor4ui", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) red,
+ (GLuint) green,
+ (GLuint) blue,
+ (GLuint) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4us ( GLushort red , GLushort green , GLushort blue , GLushort alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor4us (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue,
+ jshort alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLushort, GLushort, GLushort, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLushort, GLushort, GLushort, GLushort))
+ getGLProcAddressHelper("glColor4us", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLushort) red,
+ (GLushort) green,
+ (GLushort) blue,
+ (GLushort) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor3bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glColor3bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glColor3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glColor3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glColor3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glColor3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor3ubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glColor3ubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor3uiv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLuint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLuint *))
+ getGLProcAddressHelper("glColor3uiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLuint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor3usv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLushort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLushort *))
+ getGLProcAddressHelper("glColor3usv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLushort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor4bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glColor4bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glColor4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glColor4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glColor4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glColor4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor4ubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jbyte *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glColor4ubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor4uiv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLuint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLuint *))
+ getGLProcAddressHelper("glColor4uiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLuint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColor4usv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLushort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLushort *))
+ getGLProcAddressHelper("glColor4usv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLushort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1d ( GLdouble s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord1d (
+ JNIEnv *env, jobject obj,
+ jdouble s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glTexCoord1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1f ( GLfloat s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord1f (
+ JNIEnv *env, jobject obj,
+ jfloat s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glTexCoord1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1i ( GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord1i (
+ JNIEnv *env, jobject obj,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glTexCoord1i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1s ( GLshort s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord1s (
+ JNIEnv *env, jobject obj,
+ jshort s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort))
+ getGLProcAddressHelper("glTexCoord1s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2d ( GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord2d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2f ( GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord2f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2i ( GLint s , GLint t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord2i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glTexCoord2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2s ( GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord2s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3d ( GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord3d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t,
+ jdouble r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3f ( GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord3f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t,
+ jfloat r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3i ( GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord3i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t,
+ jint r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glTexCoord3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t,
+ (GLint) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3s ( GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord3s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t,
+ jshort r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4d ( GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord4d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t,
+ jdouble r,
+ jdouble q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r,
+ (GLdouble) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4f ( GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord4f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t,
+ jfloat r,
+ jfloat q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r,
+ (GLfloat) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4i ( GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord4i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t,
+ jint r,
+ jint q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glTexCoord4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t,
+ (GLint) r,
+ (GLint) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4s ( GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord4s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t,
+ jshort r,
+ jshort q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r,
+ (GLshort) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord1dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord1dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord1fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord1fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord1iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord1iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord1sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord1sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoord4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos2d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos2f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos2i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glRasterPos2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos2s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos3d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos3f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos3i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glRasterPos3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos3s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos4d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z,
+ jdouble w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z,
+ (GLdouble) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos4f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z,
+ jfloat w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z,
+ (GLfloat) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos4i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z,
+ jint w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glRasterPos4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z,
+ (GLint) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos4s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z,
+ jshort w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z,
+ (GLshort) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jint *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRasterPos4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectd ( GLdouble x1 , GLdouble y1 , GLdouble x2 , GLdouble y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRectd (
+ JNIEnv *env, jobject obj,
+ jdouble x1,
+ jdouble y1,
+ jdouble x2,
+ jdouble y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRectd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x1,
+ (GLdouble) y1,
+ (GLdouble) x2,
+ (GLdouble) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectf ( GLfloat x1 , GLfloat y1 , GLfloat x2 , GLfloat y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRectf (
+ JNIEnv *env, jobject obj,
+ jfloat x1,
+ jfloat y1,
+ jfloat x2,
+ jfloat y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRectf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x1,
+ (GLfloat) y1,
+ (GLfloat) x2,
+ (GLfloat) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRecti ( GLint x1 , GLint y1 , GLint x2 , GLint y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRecti (
+ JNIEnv *env, jobject obj,
+ jint x1,
+ jint y1,
+ jint x2,
+ jint y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glRecti", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x1,
+ (GLint) y1,
+ (GLint) x2,
+ (GLint) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRects ( GLshort x1 , GLshort y1 , GLshort x2 , GLshort y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRects (
+ JNIEnv *env, jobject obj,
+ jshort x1,
+ jshort y1,
+ jshort x2,
+ jshort y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRects", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x1,
+ (GLshort) y1,
+ (GLshort) x2,
+ (GLshort) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectdv ( const GLdouble * v1 , const GLdouble * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRectdv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v1,
+ jdoubleArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *, const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *, const GLdouble *))
+ getGLProcAddressHelper("glRectdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v1, 0);
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v2, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0,
+ (const GLdouble *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectfv ( const GLfloat * v1 , const GLfloat * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRectfv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v1,
+ jfloatArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *, const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *, const GLfloat *))
+ getGLProcAddressHelper("glRectfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v1, 0);
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v2, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0,
+ (const GLfloat *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectiv ( const GLint * v1 , const GLint * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRectiv (
+ JNIEnv *env, jobject obj,
+ jintArray v1,
+ jintArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *, const GLint *) = NULL;
+ jint *ptr0 = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *, const GLint *))
+ getGLProcAddressHelper("glRectiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v1, 0);
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v2, 0);
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0,
+ (const GLint *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectsv ( const GLshort * v1 , const GLshort * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glRectsv (
+ JNIEnv *env, jobject obj,
+ jshortArray v1,
+ jshortArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *, const GLshort *) = NULL;
+ jshort *ptr0 = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *, const GLshort *))
+ getGLProcAddressHelper("glRectsv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v1, 0);
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v2, 0);
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0,
+ (const GLshort *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertexPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertexPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertexPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertexPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertexPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertexPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertexPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormalPointer__II_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormalPointer__II_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormalPointer__II_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormalPointer__II_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormalPointer__II_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormalPointer__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormalPointer__II_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexPointer__II_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexPointer__II_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexPointer__II_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexPointer__II_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexPointer__II_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexPointer__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexPointer__II_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoordPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoordPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoordPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoordPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoordPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoordPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoordPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointer ( GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEdgeFlagPointer__I_3B (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEdgeFlagPointer__I_3S (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEdgeFlagPointer__I_3I (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEdgeFlagPointer__I_3F (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEdgeFlagPointer__I_3D (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEdgeFlagPointer__I_3Z (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEdgeFlagPointer__I_3J (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jlong *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointerv ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetPointerv__I_3_3B (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbyteArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetByteArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetPointerv__I_3_3S (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jshortArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetPointerv__I_3_3I (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetPointerv__I_3_3F (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetPointerv__I_3_3D (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetPointerv__I_3_3Z (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetPointerv__I_3_3J (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jlongArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetLongArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElement ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glArrayElement (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glArrayElement", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArrays ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawArrays (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLsizei))
+ getGLProcAddressHelper("glDrawArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawElements ( GLenum mode , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawElements__III_3B (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jbyteArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawElements__III_3S (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jshortArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawElements__III_3I (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jintArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawElements__III_3F (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jfloatArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawElements__III_3D (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jdoubleArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawElements__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jbooleanArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawElements__III_3J (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jlongArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInterleavedArrays ( GLenum format , GLsizei stride , const GLvoid * pointer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glInterleavedArrays__II_3B (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jbyteArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glInterleavedArrays__II_3S (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jshortArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glInterleavedArrays__II_3I (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jintArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glInterleavedArrays__II_3F (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jfloatArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glInterleavedArrays__II_3D (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jdoubleArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glInterleavedArrays__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jbooleanArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glInterleavedArrays__II_3J (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jlongArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, pointer, 0);
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glShadeModel ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glShadeModel (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glShadeModel", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightf ( GLenum light , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glLightf (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glLightf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLighti ( GLenum light , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glLighti (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glLighti", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightfv ( GLenum light , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glLightfv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glLightfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightiv ( GLenum light , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glLightiv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glLightiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightfv ( GLenum light , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetLightfv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetLightfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightiv ( GLenum light , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetLightiv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetLightiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glLightModelf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glLightModelf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeli ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glLightModeli (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glLightModeli", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glLightModelfv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glLightModelfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeliv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glLightModeliv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glLightModeliv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialf ( GLenum face , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMaterialf (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glMaterialf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMateriali ( GLenum face , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMateriali (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glMateriali", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialfv ( GLenum face , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMaterialfv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMaterialfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialiv ( GLenum face , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMaterialiv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glMaterialiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialfv ( GLenum face , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetMaterialfv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMaterialfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialiv ( GLenum face , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetMaterialiv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMaterialiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMaterial ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorMaterial (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glColorMaterial", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelZoom ( GLfloat xfactor , GLfloat yfactor ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPixelZoom (
+ JNIEnv *env, jobject obj,
+ jfloat xfactor,
+ jfloat yfactor)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPixelZoom", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) xfactor,
+ (GLfloat) yfactor
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStoref ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPixelStoref (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPixelStoref", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStorei ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPixelStorei (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glPixelStorei", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPixelTransferf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPixelTransferf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPixelTransferi (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glPixelTransferi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapfv ( GLenum map , GLint mapsize , const GLfloat * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPixelMapfv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLfloat *))
+ getGLProcAddressHelper("glPixelMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, values, 0);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLfloat *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapuiv ( GLenum map , GLint mapsize , const GLuint * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPixelMapuiv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLuint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLuint *))
+ getGLProcAddressHelper("glPixelMapuiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, values, 0);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLuint *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapusv ( GLenum map , GLint mapsize , const GLushort * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPixelMapusv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLushort *) = NULL;
+ jshort *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLushort *))
+ getGLProcAddressHelper("glPixelMapusv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, values, 0);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLushort *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapfv ( GLenum map , GLfloat * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetPixelMapfv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetPixelMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, values, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLfloat *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapuiv ( GLenum map , GLuint * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetPixelMapuiv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint *))
+ getGLProcAddressHelper("glGetPixelMapuiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, values, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLuint *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapusv ( GLenum map , GLushort * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetPixelMapusv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLushort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLushort *))
+ getGLProcAddressHelper("glGetPixelMapusv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, values, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLushort *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBitmap ( GLsizei width , GLsizei height , GLfloat xorig , GLfloat yorig , GLfloat xmove , GLfloat ymove , const GLubyte * bitmap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glBitmap (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jfloat xorig,
+ jfloat yorig,
+ jfloat xmove,
+ jfloat ymove,
+ jbyteArray bitmap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *) = NULL;
+ jbyte *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *))
+ getGLProcAddressHelper("glBitmap", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(bitmap!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, bitmap, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLfloat) xorig,
+ (GLfloat) yorig,
+ (GLfloat) xmove,
+ (GLfloat) ymove,
+ (const GLubyte *) ptr6
+ );
+
+ if(bitmap!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, bitmap, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glReadPixels__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glReadPixels__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glReadPixels__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glReadPixels__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glReadPixels__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glReadPixels__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glReadPixels__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray6);
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawPixels ( GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawPixels__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawPixels__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawPixels__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawPixels__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawPixels__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawPixels__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawPixels__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glCopyPixels (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint type)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum))
+ getGLProcAddressHelper("glCopyPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) type
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilFunc ( GLenum func , GLint ref , GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glStencilFunc (
+ JNIEnv *env, jobject obj,
+ jint func,
+ jint ref,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLuint))
+ getGLProcAddressHelper("glStencilFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func,
+ (GLint) ref,
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilMask ( GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glStencilMask (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glStencilMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilOp ( GLenum fail , GLenum zfail , GLenum zpass ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glStencilOp (
+ JNIEnv *env, jobject obj,
+ jint fail,
+ jint zfail,
+ jint zpass)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum))
+ getGLProcAddressHelper("glStencilOp", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) fail,
+ (GLenum) zfail,
+ (GLenum) zpass
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearStencil ( GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glClearStencil (
+ JNIEnv *env, jobject obj,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glClearStencil", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGend ( GLenum coord , GLenum pname , GLdouble param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexGend (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdouble param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble))
+ getGLProcAddressHelper("glTexGend", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLdouble) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenf ( GLenum coord , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexGenf (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexGenf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeni ( GLenum coord , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexGeni (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexGeni", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGendv ( GLenum coord , GLenum pname , const GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexGendv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLdouble *) = NULL;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLdouble *))
+ getGLProcAddressHelper("glTexGendv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLdouble *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenfv ( GLenum coord , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexGenfv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexGenfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeniv ( GLenum coord , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexGeniv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexGeniv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGendv ( GLenum coord , GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetTexGendv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetTexGendv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLdouble *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGenfv ( GLenum coord , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetTexGenfv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexGenfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGeniv ( GLenum coord , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetTexGeniv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexGeniv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexEnvf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexEnvf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvi ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexEnvi (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexEnvi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexEnvfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexEnvfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnviv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexEnviv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexEnviv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnvfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetTexEnvfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexEnvfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnviv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetTexEnviv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexEnviv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexParameterf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexParameterf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteri ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexParameteri (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexParameteri", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetTexParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetTexParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameterfv ( GLenum target , GLint level , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetTexLevelParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexLevelParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) pname,
+ (GLfloat *) ptr3
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameteriv ( GLenum target , GLint level , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetTexLevelParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexLevelParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, params, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) pname,
+ (GLint *) ptr3
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage1D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage1D__IIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage1D__IIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage1D__IIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage1D__IIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage1D__IIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage1D__IIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage1D__IIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage2D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage2D__IIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage2D__IIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage2D__IIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage2D__IIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage2D__IIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage2D__IIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage2D__IIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexImage ( GLenum target , GLint level , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetTexImage__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetTexImage__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetTexImage__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetTexImage__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetTexImage__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetTexImage__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetTexImage__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTextures ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGenTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glGenTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTextures ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDeleteTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *))
+ getGLProcAddressHelper("glDeleteTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTexture ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glBindTexture (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint))
+ getGLProcAddressHelper("glBindTexture", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLuint) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTextures ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPrioritizeTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jfloatArray priorities)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, const GLclampf *) = NULL;
+ jint *ptr1 = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *, const GLclampf *))
+ getGLProcAddressHelper("glPrioritizeTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, 0);
+ }
+ if(priorities!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, priorities, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (const GLclampf *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ if(priorities!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, priorities, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResident ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNInf_glAreTexturesResident (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jbooleanArray residences)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, GLboolean *) = NULL;
+ jboolean ret;
+
+ jint *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLsizei, const GLuint *, GLboolean *))
+ getGLProcAddressHelper("glAreTexturesResident", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, 0);
+ }
+ if(residences!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, residences, &isCopiedArray2);
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (GLboolean *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ if(residences!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, residences, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTexture ( GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIsTexture (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsTexture", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) texture
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLsizei width , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage1D__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage1D__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage1D__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage1D__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage1D__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage1D__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage1D__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage2D__IIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage2D__IIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage2D__IIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage2D__IIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage2D__IIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage2D__IIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage2D__IIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr8 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage1D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLint border ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glCopyTexImage1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint border)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint))
+ getGLProcAddressHelper("glCopyTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLint) border
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage2D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height , GLint border ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glCopyTexImage2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint border)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint))
+ getGLProcAddressHelper("glCopyTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glCopyTexSubImage1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glCopyTexSubImage2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint stride , GLint order , const GLdouble * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMap1d (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble u1,
+ jdouble u2,
+ jint stride,
+ jint order,
+ jdoubleArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *))
+ getGLProcAddressHelper("glMap1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, points, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) stride,
+ (GLint) order,
+ (const GLdouble *) ptr5
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, points, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint stride , GLint order , const GLfloat * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMap1f (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat u1,
+ jfloat u2,
+ jint stride,
+ jint order,
+ jfloatArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *))
+ getGLProcAddressHelper("glMap1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, points, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) stride,
+ (GLint) order,
+ (const GLfloat *) ptr5
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, points, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint ustride , GLint uorder , GLdouble v1 , GLdouble v2 , GLint vstride , GLint vorder , const GLdouble * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMap2d (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble u1,
+ jdouble u2,
+ jint ustride,
+ jint uorder,
+ jdouble v1,
+ jdouble v2,
+ jint vstride,
+ jint vorder,
+ jdoubleArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *) = NULL;
+ jdouble *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *))
+ getGLProcAddressHelper("glMap2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr9 = (*env)->GetDoubleArrayElements(env, points, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) ustride,
+ (GLint) uorder,
+ (GLdouble) v1,
+ (GLdouble) v2,
+ (GLint) vstride,
+ (GLint) vorder,
+ (const GLdouble *) ptr9
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, points, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint ustride , GLint uorder , GLfloat v1 , GLfloat v2 , GLint vstride , GLint vorder , const GLfloat * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMap2f (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat u1,
+ jfloat u2,
+ jint ustride,
+ jint uorder,
+ jfloat v1,
+ jfloat v2,
+ jint vstride,
+ jint vorder,
+ jfloatArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *) = NULL;
+ jfloat *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *))
+ getGLProcAddressHelper("glMap2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr9 = (*env)->GetFloatArrayElements(env, points, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) ustride,
+ (GLint) uorder,
+ (GLfloat) v1,
+ (GLfloat) v2,
+ (GLint) vstride,
+ (GLint) vorder,
+ (const GLfloat *) ptr9
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, points, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapdv ( GLenum target , GLenum query , GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetMapdv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetMapdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLdouble *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapfv ( GLenum target , GLenum query , GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetMapfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLfloat *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapiv ( GLenum target , GLenum query , GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetMapiv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMapiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, v, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLint *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1d ( GLdouble u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEvalCoord1d (
+ JNIEnv *env, jobject obj,
+ jdouble u)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glEvalCoord1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) u
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1f ( GLfloat u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEvalCoord1f (
+ JNIEnv *env, jobject obj,
+ jfloat u)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glEvalCoord1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) u
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEvalCoord1dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glEvalCoord1dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, u, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEvalCoord1fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glEvalCoord1fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, u, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2d ( GLdouble u , GLdouble v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEvalCoord2d (
+ JNIEnv *env, jobject obj,
+ jdouble u,
+ jdouble v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glEvalCoord2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) u,
+ (GLdouble) v
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2f ( GLfloat u , GLfloat v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEvalCoord2f (
+ JNIEnv *env, jobject obj,
+ jfloat u,
+ jfloat v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glEvalCoord2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) u,
+ (GLfloat) v
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEvalCoord2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jdouble *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glEvalCoord2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, u, 0);
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEvalCoord2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jfloat *ptr0 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glEvalCoord2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, u, 0);
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1d ( GLint un , GLdouble u1 , GLdouble u2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMapGrid1d (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jdouble u1,
+ jdouble u2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMapGrid1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLdouble) u1,
+ (GLdouble) u2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1f ( GLint un , GLfloat u1 , GLfloat u2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMapGrid1f (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jfloat u1,
+ jfloat u2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMapGrid1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLfloat) u1,
+ (GLfloat) u2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2d ( GLint un , GLdouble u1 , GLdouble u2 , GLint vn , GLdouble v1 , GLdouble v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMapGrid2d (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jdouble u1,
+ jdouble u2,
+ jint vn,
+ jdouble v1,
+ jdouble v2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMapGrid2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) vn,
+ (GLdouble) v1,
+ (GLdouble) v2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2f ( GLint un , GLfloat u1 , GLfloat u2 , GLint vn , GLfloat v1 , GLfloat v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMapGrid2f (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jfloat u1,
+ jfloat u2,
+ jint vn,
+ jfloat v1,
+ jfloat v2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMapGrid2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) vn,
+ (GLfloat) v1,
+ (GLfloat) v2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint1 ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEvalPoint1 (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glEvalPoint1", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint2 ( GLint i , GLint j ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEvalPoint2 (
+ JNIEnv *env, jobject obj,
+ jint i,
+ jint j)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glEvalPoint2", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i,
+ (GLint) j
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh1 ( GLenum mode , GLint i1 , GLint i2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEvalMesh1 (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint i1,
+ jint i2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint))
+ getGLProcAddressHelper("glEvalMesh1", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) i1,
+ (GLint) i2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh2 ( GLenum mode , GLint i1 , GLint i2 , GLint j1 , GLint j2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEvalMesh2 (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint i1,
+ jint i2,
+ jint j1,
+ jint j2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glEvalMesh2", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) i1,
+ (GLint) i2,
+ (GLint) j1,
+ (GLint) j2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glFogf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glFogf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glFogi (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glFogi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glFogfv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glFogfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogiv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glFogiv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glFogiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFeedbackBuffer ( GLsizei size , GLenum type , GLfloat * buffer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glFeedbackBuffer (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jfloatArray buffer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, GLfloat *))
+ getGLProcAddressHelper("glFeedbackBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(buffer!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, buffer, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLsizei) size,
+ (GLenum) type,
+ (GLfloat *) ptr2
+ );
+
+ if(buffer!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, buffer, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPassThrough ( GLfloat token ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPassThrough (
+ JNIEnv *env, jobject obj,
+ jfloat token)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glPassThrough", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) token
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSelectBuffer ( GLsizei size , GLuint * buffer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glSelectBuffer (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jintArray buffer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glSelectBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(buffer!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, buffer, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLsizei) size,
+ (GLuint *) ptr1
+ );
+
+ if(buffer!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, buffer, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInitNames ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glInitNames (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glInitNames", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadName ( GLuint name ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glLoadName (
+ JNIEnv *env, jobject obj,
+ jint name)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glLoadName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) name
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushName ( GLuint name ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPushName (
+ JNIEnv *env, jobject obj,
+ jint name)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glPushName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) name
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopName ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPopName (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawRangeElements ( GLenum mode , GLuint start , GLuint end , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawRangeElements__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jbyteArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawRangeElements__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jshortArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawRangeElements__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jintArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawRangeElements__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jfloatArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawRangeElements__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jdoubleArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawRangeElements__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jbooleanArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawRangeElements__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jlongArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, indices, 0);
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage3D__IIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage3D__IIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage3D__IIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage3D__IIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage3D__IIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage3D__IIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage3D__IIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage3D__IIIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage3D__IIIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage3D__IIIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage3D__IIIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage3D__IIIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage3D__IIIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage3D__IIIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glCopyTexSubImage3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTable ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorTable__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorTable__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorTable__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorTable__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorTable__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorTable__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorTable__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTable ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorSubTable__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorSubTable__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorSubTable__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorSubTable__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorSubTable__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorSubTable__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorSubTable__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorTableParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glColorTableParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorTableParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glColorTableParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorSubTable ( GLenum target , GLsizei start , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glCopyColorSubTable (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorTable ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glCopyColorTable (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTable ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetColorTable__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetColorTable__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetColorTable__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetColorTable__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetColorTable__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetColorTable__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetColorTable__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetColorTableParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetColorTableParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetColorTableParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetColorTableParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquation ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glBlendEquation (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBlendEquation", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glBlendColor (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glBlendColor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHistogram ( GLenum target , GLsizei width , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glHistogram (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint width,
+ jint internalformat,
+ jboolean sink)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, GLboolean))
+ getGLProcAddressHelper("glHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) width,
+ (GLenum) internalformat,
+ (GLboolean) sink
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetHistogram ( GLenum target ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glResetHistogram (
+ JNIEnv *env, jobject obj,
+ jint target)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glResetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogram ( GLenum target , GLboolean reset , GLenum format , GLenum type , GLvoid * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetHistogram__IZII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jbyteArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetHistogram__IZII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetHistogram__IZII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetHistogram__IZII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetHistogram__IZII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jdoubleArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetHistogram__IZII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jbooleanArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetHistogram__IZII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jlongArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetHistogramParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetHistogramParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetHistogramParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetHistogramParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMinmax ( GLenum target , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMinmax (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jboolean sink)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLboolean))
+ getGLProcAddressHelper("glMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLboolean) sink
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetMinmax ( GLenum target ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glResetMinmax (
+ JNIEnv *env, jobject obj,
+ jint target)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glResetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmax ( GLenum target , GLboolean reset , GLenum format , GLenum types , GLvoid * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetMinmax__IZII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jbyteArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetMinmax__IZII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetMinmax__IZII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetMinmax__IZII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetMinmax__IZII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jdoubleArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetMinmax__IZII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jbooleanArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetMinmax__IZII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jlongArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, values, &isCopiedArray4);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetMinmaxParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMinmaxParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetMinmaxParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMinmaxParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter1D ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glConvolutionFilter1D__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glConvolutionFilter1D__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glConvolutionFilter1D__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glConvolutionFilter1D__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glConvolutionFilter1D__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glConvolutionFilter1D__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glConvolutionFilter1D__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glConvolutionFilter2D__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glConvolutionFilter2D__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glConvolutionFilter2D__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glConvolutionFilter2D__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glConvolutionFilter2D__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glConvolutionFilter2D__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glConvolutionFilter2D__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr6 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, image, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterf ( GLenum target , GLenum pname , GLfloat params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glConvolutionParameterf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glConvolutionParameterf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) params
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glConvolutionParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glConvolutionParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteri ( GLenum target , GLenum pname , GLint params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glConvolutionParameteri (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glConvolutionParameteri", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) params
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glConvolutionParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glConvolutionParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter1D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glCopyConvolutionFilter1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter2D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glCopyConvolutionFilter2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionFilter ( GLenum target , GLenum format , GLenum type , GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetConvolutionFilter__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetConvolutionFilter__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetConvolutionFilter__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetConvolutionFilter__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetConvolutionFilter__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetConvolutionFilter__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetConvolutionFilter__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, image, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetConvolutionParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetConvolutionParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetConvolutionParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetConvolutionParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSeparableFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * row , const GLvoid * column ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glSeparableFilter2D__IIIIII_3B_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray row,
+ jbyteArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jbyte *ptr6 = NULL;
+ jbyte *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetByteArrayElements(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glSeparableFilter2D__IIIIII_3S_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray row,
+ jshortArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jshort *ptr6 = NULL;
+ jshort *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetShortArrayElements(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glSeparableFilter2D__IIIIII_3I_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray row,
+ jintArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jint *ptr6 = NULL;
+ jint *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetIntArrayElements(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glSeparableFilter2D__IIIIII_3F_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray row,
+ jfloatArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jfloat *ptr6 = NULL;
+ jfloat *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetFloatArrayElements(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glSeparableFilter2D__IIIIII_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray row,
+ jdoubleArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jdouble *ptr6 = NULL;
+ jdouble *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetDoubleArrayElements(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glSeparableFilter2D__IIIIII_3Z_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray row,
+ jbooleanArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean *ptr6 = NULL;
+ jboolean *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetBooleanArrayElements(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glSeparableFilter2D__IIIIII_3J_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray row,
+ jlongArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jlong *ptr6 = NULL;
+ jlong *ptr7 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, row, 0);
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetLongArrayElements(env, column, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetSeparableFilter ( GLenum target , GLenum format , GLenum type , GLvoid * row , GLvoid * column , GLvoid * span ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetSeparableFilter__III_3B_3B_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray row,
+ jbyteArray column,
+ jbyteArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetSeparableFilter__III_3S_3S_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray row,
+ jshortArray column,
+ jshortArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetSeparableFilter__III_3I_3I_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray row,
+ jintArray column,
+ jintArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetSeparableFilter__III_3F_3F_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray row,
+ jfloatArray column,
+ jfloatArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetSeparableFilter__III_3D_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray row,
+ jdoubleArray column,
+ jdoubleArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetSeparableFilter__III_3Z_3Z_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray row,
+ jbooleanArray column,
+ jbooleanArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetSeparableFilter__III_3J_3J_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray row,
+ jlongArray column,
+ jlongArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, row, &isCopiedArray3);
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, column, &isCopiedArray4);
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, span, &isCopiedArray5);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColorEXT ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glBlendColorEXT (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glBlendColorEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffsetEXT ( GLfloat factor , GLfloat bias ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPolygonOffsetEXT (
+ JNIEnv *env, jobject obj,
+ jfloat factor,
+ jfloat bias)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPolygonOffsetEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) factor,
+ (GLfloat) bias
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3DEXT ( GLenum target , GLint level , GLenum internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage3DEXT__IIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage3DEXT__IIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage3DEXT__IIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage3DEXT__IIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage3DEXT__IIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage3DEXT__IIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexImage3DEXT__IIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr9 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage3DEXT__IIIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetByteArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage3DEXT__IIIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetShortArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage3DEXT__IIIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetIntArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage3DEXT__IIIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetFloatArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage3DEXT__IIIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetDoubleArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage3DEXT__IIIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetBooleanArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexSubImage3DEXT__IIIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr10 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetLongArrayElements(env, pixels, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glCopyTexSubImage3DEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTexturesEXT ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGenTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glGenTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTexturesEXT ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDeleteTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *))
+ getGLProcAddressHelper("glDeleteTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTextureEXT ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glBindTextureEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint))
+ getGLProcAddressHelper("glBindTextureEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLuint) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTexturesEXT ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPrioritizeTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jfloatArray priorities)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, const GLclampf *) = NULL;
+ jint *ptr1 = NULL;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *, const GLclampf *))
+ getGLProcAddressHelper("glPrioritizeTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, 0);
+ }
+ if(priorities!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, priorities, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (const GLclampf *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ if(priorities!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, priorities, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResidentEXT ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNInf_glAreTexturesResidentEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jbooleanArray residences)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, GLboolean *) = NULL;
+ jboolean ret;
+
+ jint *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLsizei, const GLuint *, GLboolean *))
+ getGLProcAddressHelper("glAreTexturesResidentEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, 0);
+ }
+ if(residences!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, residences, &isCopiedArray2);
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (GLboolean *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ if(residences!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, residences, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTextureEXT ( GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIsTextureEXT (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsTextureEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) texture
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertexPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertexPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertexPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertexPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertexPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertexPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glVertexPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormalPointerEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormalPointerEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormalPointerEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormalPointerEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormalPointerEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormalPointerEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glNormalPointerEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexPointerEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexPointerEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexPointerEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexPointerEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexPointerEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexPointerEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glIndexPointerEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoordPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jbyte *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoordPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jshort *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoordPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jint *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoordPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jfloat *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoordPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jdouble *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoordPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glTexCoordPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jlong *ptr4 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointerEXT ( GLsizei stride , GLsizei count , const GLboolean * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glEdgeFlagPointerEXT (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, const GLboolean *) = NULL;
+ jboolean *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, const GLboolean *))
+ getGLProcAddressHelper("glEdgeFlagPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, ptr, 0);
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLboolean *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointervEXT ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetPointervEXT__I_3_3B (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbyteArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetByteArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetPointervEXT__I_3_3S (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jshortArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetPointervEXT__I_3_3I (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetPointervEXT__I_3_3F (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetPointervEXT__I_3_3D (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetPointervEXT__I_3_3Z (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetPointervEXT__I_3_3J (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jlongArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetLongArrayElements(env, params, &isCopiedArray1);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElementEXT ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glArrayElementEXT (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glArrayElementEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArraysEXT ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glDrawArraysEXT (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLsizei))
+ getGLProcAddressHelper("glDrawArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquationEXT ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glBlendEquationEXT (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBlendEquationEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfEXT ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPointParameterfEXT (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPointParameterfEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfvEXT ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glPointParameterfvEXT (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glPointParameterfvEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, 0);
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableEXT ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorTableEXT__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorTableEXT__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorTableEXT__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorTableEXT__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorTableEXT__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorTableEXT__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorTableEXT__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, table, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTableEXT ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorSubTableEXT__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jbyte *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorSubTableEXT__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jshort *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorSubTableEXT__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jint *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorSubTableEXT__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jfloat *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorSubTableEXT__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jdouble *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorSubTableEXT__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glColorSubTableEXT__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jlong *ptr5 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, data, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableEXT ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetColorTableEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetColorTableEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetColorTableEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetColorTableEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetColorTableEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetColorTableEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetColorTableEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, table, &isCopiedArray3);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfvEXT ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetColorTableParameterfvEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetColorTableParameterfvEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterivEXT ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glGetColorTableParameterivEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetColorTableParameterivEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLockArraysEXT ( GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glLockArraysEXT (
+ JNIEnv *env, jobject obj,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLsizei))
+ getGLProcAddressHelper("glLockArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glUnlockArraysEXT ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glUnlockArraysEXT (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glUnlockArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glActiveTextureARB (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glActiveTextureARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClientActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glClientActiveTextureARB (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glClientActiveTextureARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dARB ( GLenum target , GLdouble s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord1dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord1dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord1dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord1dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fARB ( GLenum target , GLfloat s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord1fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord1fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord1fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord1fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1iARB ( GLenum target , GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord1iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glMultiTexCoord1iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord1ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord1ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1sARB ( GLenum target , GLshort s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord1sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord1sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord1svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord1svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dARB ( GLenum target , GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord2dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord2dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord2dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord2dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fARB ( GLenum target , GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord2fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord2fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord2fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord2fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2iARB ( GLenum target , GLint s , GLint t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord2iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord2iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord2ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord2ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2sARB ( GLenum target , GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord2sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord2sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord2svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord2svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord3dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t,
+ jdouble r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord3dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord3dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord3dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord3fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t,
+ jfloat r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord3fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord3fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord3fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3iARB ( GLenum target , GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord3iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t,
+ jint r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord3iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t,
+ (GLint) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord3ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord3ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3sARB ( GLenum target , GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord3sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t,
+ jshort r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord3sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord3svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord3svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord4dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t,
+ jdouble r,
+ jdouble q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord4dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r,
+ (GLdouble) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord4dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jdouble *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord4dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord4fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t,
+ jfloat r,
+ jfloat q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord4fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r,
+ (GLfloat) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord4fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jfloat *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord4fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4iARB ( GLenum target , GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord4iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t,
+ jint r,
+ jint q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord4iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t,
+ (GLint) r,
+ (GLint) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord4ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jint *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord4ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4sARB ( GLenum target , GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord4sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t,
+ jshort r,
+ jshort q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord4sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r,
+ (GLshort) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNInf_glMultiTexCoord4svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jshort *ptr1 = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord4svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v, 0);
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/CNativeCode/OpenGL_JauJNItst_dynfuncs.c b/CNativeCode/OpenGL_JauJNItst_dynfuncs.c
new file mode 100644
index 0000000..1782e0c
--- /dev/null
+++ b/CNativeCode/OpenGL_JauJNItst_dynfuncs.c
@@ -0,0 +1,26455 @@
+/* WARNING ! WARNING *** THIS FILE IS GENERATED BY C2J !!!
+
+ DO NOT MAKE ANY CHANGES *** MAKE CHANGES IN THE SKELETON FILES !!!
+*/
+
+
+/*
+ * Leo Chan -- 1995
+ *
+ * This mammoth C file takes care of all the native implementation for the
+ * bulk of OpenGL commands
+ * ---------------
+ *
+ * Sven Goethel
+ *
+ * September 1997
+ */
+
+/*
+ * need to include the JAVA internal header files for macros and function
+ * prototypes required to maipulated JAVA data structures and functions
+ *
+ * StubPreamble.h includes the structure and macro definitions neede to
+ * convert JAVA data structures into C data structures.
+ *
+ */
+
+#include "OpenGL_misc.h"
+
+/*
+ * the next thing to include are special headers that were created by
+ * JAVAH. They include the C structure definitions for the JAVA classes
+ */
+#include "gl4java_GLFuncJauJNI.h"
+
+/*--------------------------------------------------------------------------
+ * here on in is just regular apple pie C
+ */
+
+#ifndef LIBAPIENTRY
+ #define LIBAPIENTRY
+#endif
+#ifndef LIBAPI
+ #define LIBAPI
+#endif
+
+#ifndef CALLBACK
+ #define CALLBACK
+#endif
+/** THIS IS A MANUAL CODED PART
+ gl-manualCodedImplJNI.java
+*/
+
+static const char _gl_n_a_string[] = "GL-String not avaiable !";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLFuncJauJNI_glGetString ( JNIEnv *env, jobject obj,
+ jint name )
+{
+ const char * tmpString=0;
+
+ tmpString = glGetString ( /* jint */ name);
+ if(tmpString==NULL)
+ tmpString=_gl_n_a_string;
+
+ return (*env)->NewStringUTF(env, tmpString);
+}
+
+static const char * _gl_lib_vendor_="Jausoft - Sven Goethel Software Development";
+static const char * _gl_lib_version_="2.4.1.0";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLFuncJauJNI_getNativeVendor ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _gl_lib_vendor_);
+}
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLFuncJauJNI_getNativeVersion ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _gl_lib_version_);
+}
+
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: gl-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearIndex ( GLfloat c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearIndex (
+ JNIEnv *env, jobject obj,
+ jfloat c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glClearIndex", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearColor (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glClearColor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClear ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClear (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glClear", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexMask ( GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexMask (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIndexMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMask ( GLboolean red , GLboolean green , GLboolean blue , GLboolean alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorMask (
+ JNIEnv *env, jobject obj,
+ jboolean red,
+ jboolean green,
+ jboolean blue,
+ jboolean alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean, GLboolean, GLboolean, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean, GLboolean, GLboolean, GLboolean))
+ getGLProcAddressHelper("glColorMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) red,
+ (GLboolean) green,
+ (GLboolean) blue,
+ (GLboolean) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAlphaFunc ( GLenum func , GLclampf ref ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glAlphaFunc (
+ JNIEnv *env, jobject obj,
+ jint func,
+ jfloat ref)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLclampf))
+ getGLProcAddressHelper("glAlphaFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func,
+ (GLclampf) ref
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendFunc ( GLenum sfactor , GLenum dfactor ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendFunc (
+ JNIEnv *env, jobject obj,
+ jint sfactor,
+ jint dfactor)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glBlendFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) sfactor,
+ (GLenum) dfactor
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLogicOp ( GLenum opcode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLogicOp (
+ JNIEnv *env, jobject obj,
+ jint opcode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glLogicOp", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) opcode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCullFace ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCullFace (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glCullFace", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrontFace ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFrontFace (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glFrontFace", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointSize ( GLfloat size ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointSize (
+ JNIEnv *env, jobject obj,
+ jfloat size)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glPointSize", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) size
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineWidth ( GLfloat width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLineWidth (
+ JNIEnv *env, jobject obj,
+ jfloat width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glLineWidth", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineStipple ( GLint factor , GLushort pattern ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLineStipple (
+ JNIEnv *env, jobject obj,
+ jint factor,
+ jshort pattern)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLushort))
+ getGLProcAddressHelper("glLineStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) factor,
+ (GLushort) pattern
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonMode ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonMode (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glPolygonMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffset ( GLfloat factor , GLfloat units ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonOffset (
+ JNIEnv *env, jobject obj,
+ jfloat factor,
+ jfloat units)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPolygonOffset", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) factor,
+ (GLfloat) units
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonStipple ( const GLubyte * mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonStipple (
+ JNIEnv *env, jobject obj,
+ jbyteArray mask)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glPolygonStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(mask!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, mask, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glPolygonStipple arg: mask");
+ }
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(mask!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, mask, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPolygonStipple ( GLubyte * mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPolygonStipple (
+ JNIEnv *env, jobject obj,
+ jbyteArray mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte *))
+ getGLProcAddressHelper("glGetPolygonStipple", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(mask!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, mask, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glGetPolygonStipple arg: mask");
+ }
+ }
+ __func_ptr__ (
+ (GLubyte *) ptr0
+ );
+
+ if(mask!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, mask, ptr0, (isCopiedArray0 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlag ( GLboolean flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlag (
+ JNIEnv *env, jobject obj,
+ jboolean flag)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean))
+ getGLProcAddressHelper("glEdgeFlag", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) flag
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagv ( const GLboolean * flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagv (
+ JNIEnv *env, jobject obj,
+ jbooleanArray flag)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLboolean *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jboolean *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLboolean *))
+ getGLProcAddressHelper("glEdgeFlagv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(flag!=NULL)
+ {
+ ptr0 = (*env)->GetBooleanArrayElements(env, flag, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glEdgeFlagv arg: flag");
+ }
+ }
+ __func_ptr__ (
+ (const GLboolean *) ptr0
+ );
+
+ if(flag!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, flag, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScissor ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScissor (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glScissor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClipPlane ( GLenum plane , const GLdouble * equation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClipPlane (
+ JNIEnv *env, jobject obj,
+ jint plane,
+ jdoubleArray equation)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glClipPlane", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(equation!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, equation, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glClipPlane arg: equation");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) plane,
+ (const GLdouble *) ptr1
+ );
+
+ if(equation!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, equation, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetClipPlane ( GLenum plane , GLdouble * equation ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetClipPlane (
+ JNIEnv *env, jobject obj,
+ jint plane,
+ jdoubleArray equation)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetClipPlane", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(equation!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, equation, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetClipPlane arg: equation");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) plane,
+ (GLdouble *) ptr1
+ );
+
+ if(equation!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, equation, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawBuffer (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDrawBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadBuffer (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glReadBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnable ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnable (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glEnable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisable ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDisable (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDisable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsEnabled ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsEnabled (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLenum) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glIsEnabled", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLenum) cap
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnableClientState (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glEnableClientState", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDisableClientState (
+ JNIEnv *env, jobject obj,
+ jint cap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDisableClientState", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) cap
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetBooleanv ( GLenum pname , GLboolean * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetBooleanv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean *))
+ getGLProcAddressHelper("glGetBooleanv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetBooleanv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLboolean *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetDoublev ( GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetDoublev (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetDoublev", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetDoublev arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLdouble *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetFloatv ( GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetFloatv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetFloatv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetFloatv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetIntegerv ( GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetIntegerv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint *))
+ getGLProcAddressHelper("glGetIntegerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetIntegerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushAttrib (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glPushAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopAttrib ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopAttrib (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushClientAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushClientAttrib (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbitfield) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbitfield))
+ getGLProcAddressHelper("glPushClientAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbitfield) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopClientAttrib ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopClientAttrib (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopClientAttrib", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint glRenderMode ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glRenderMode (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static jint (CALLBACK *__func_ptr__)(GLenum) = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glRenderMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ (GLenum) mode
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLenum glGetError ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetError (
+ JNIEnv *env, jobject obj)
+ {
+ static jint (CALLBACK *__func_ptr__)() = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)())
+ getGLProcAddressHelper("glGetError", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFinish ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFinish (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glFinish", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFlush ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFlush (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glFlush", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHint ( GLenum target , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glHint (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glHint", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearDepth ( GLclampd depth ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearDepth (
+ JNIEnv *env, jobject obj,
+ jdouble depth)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampd) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampd))
+ getGLProcAddressHelper("glClearDepth", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampd) depth
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthFunc ( GLenum func ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthFunc (
+ JNIEnv *env, jobject obj,
+ jint func)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glDepthFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthMask ( GLboolean flag ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthMask (
+ JNIEnv *env, jobject obj,
+ jboolean flag)
+ {
+ static void (CALLBACK *__func_ptr__)(GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLboolean))
+ getGLProcAddressHelper("glDepthMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLboolean) flag
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthRange ( GLclampd near_val , GLclampd far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDepthRange (
+ JNIEnv *env, jobject obj,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampd, GLclampd) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampd, GLclampd))
+ getGLProcAddressHelper("glDepthRange", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampd) near_val,
+ (GLclampd) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearAccum ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearAccum (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glClearAccum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue,
+ (GLfloat) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAccum ( GLenum op , GLfloat value ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glAccum (
+ JNIEnv *env, jobject obj,
+ jint op,
+ jfloat value)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glAccum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) op,
+ (GLfloat) value
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMatrixMode ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMatrixMode (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glMatrixMode", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glOrtho ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glOrtho (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glOrtho", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top,
+ (GLdouble) near_val,
+ (GLdouble) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrustum ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFrustum (
+ JNIEnv *env, jobject obj,
+ jdouble left,
+ jdouble right,
+ jdouble bottom,
+ jdouble top,
+ jdouble near_val,
+ jdouble far_val)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glFrustum", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) left,
+ (GLdouble) right,
+ (GLdouble) bottom,
+ (GLdouble) top,
+ (GLdouble) near_val,
+ (GLdouble) far_val
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glViewport ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glViewport (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glViewport", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushMatrix ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushMatrix (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPushMatrix", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopMatrix ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopMatrix (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopMatrix", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadIdentity ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadIdentity (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glLoadIdentity", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadMatrixd (
+ JNIEnv *env, jobject obj,
+ jdoubleArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glLoadMatrixd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, m, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glLoadMatrixd arg: m");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadMatrixf (
+ JNIEnv *env, jobject obj,
+ jfloatArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glLoadMatrixf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, m, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glLoadMatrixf arg: m");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultMatrixd (
+ JNIEnv *env, jobject obj,
+ jdoubleArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glMultMatrixd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, m, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glMultMatrixd arg: m");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultMatrixf (
+ JNIEnv *env, jobject obj,
+ jfloatArray m)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glMultMatrixf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(m!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, m, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glMultMatrixf arg: m");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(m!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, m, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotated ( GLdouble angle , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRotated (
+ JNIEnv *env, jobject obj,
+ jdouble angle,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRotated", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) angle,
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotatef ( GLfloat angle , GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRotatef (
+ JNIEnv *env, jobject obj,
+ jfloat angle,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRotatef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) angle,
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScaled ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScaled (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glScaled", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScalef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glScalef (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glScalef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslated ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTranslated (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTranslated", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslatef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTranslatef (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTranslatef", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsList ( GLuint list ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsList (
+ JNIEnv *env, jobject obj,
+ jint list)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) list
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteLists ( GLuint list , GLsizei range ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteLists (
+ JNIEnv *env, jobject obj,
+ jint list,
+ jint range)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLsizei))
+ getGLProcAddressHelper("glDeleteLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list,
+ (GLsizei) range
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLuint glGenLists ( GLsizei range ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenLists (
+ JNIEnv *env, jobject obj,
+ jint range)
+ {
+ static jint (CALLBACK *__func_ptr__)(GLsizei) = NULL;
+ jint ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jint (CALLBACK *)(GLsizei))
+ getGLProcAddressHelper("glGenLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jint) __func_ptr__ (
+ (GLsizei) range
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNewList ( GLuint list , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNewList (
+ JNIEnv *env, jobject obj,
+ jint list,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLenum))
+ getGLProcAddressHelper("glNewList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEndList ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEndList (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glEndList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallList ( GLuint list ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallList (
+ JNIEnv *env, jobject obj,
+ jint list)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glCallList", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) list
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallLists ( GLsizei n , GLenum type , const GLvoid * lists ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3B (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jbyteArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3S (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jshortArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3I (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jintArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3F (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jfloatArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3D (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jdoubleArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jbooleanArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCallLists__II_3J (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jint type,
+ jlongArray lists)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glCallLists", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(lists!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, lists, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glCallLists arg: lists");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLenum) type,
+ (const GLvoid *) ptr2
+ );
+
+ if(lists!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, lists, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glListBase ( GLuint base ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glListBase (
+ JNIEnv *env, jobject obj,
+ jint base)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glListBase", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) base
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBegin ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBegin (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBegin", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnd ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEnd (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glEnd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glVertex2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glVertex2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glVertex3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glVertex3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z,
+ jdouble w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glVertex4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z,
+ (GLdouble) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z,
+ jfloat w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glVertex4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z,
+ (GLfloat) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z,
+ jint w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glVertex4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z,
+ (GLint) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z,
+ jshort w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glVertex4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z,
+ (GLshort) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex2dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex2fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex2iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex2sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex3dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex3fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex3iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex3sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glVertex4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex4dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glVertex4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex4fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glVertex4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex4iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertex4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glVertex4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glVertex4sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3b ( GLbyte nx , GLbyte ny , GLbyte nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3b (
+ JNIEnv *env, jobject obj,
+ jbyte nx,
+ jbyte ny,
+ jbyte nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glNormal3b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) nx,
+ (GLbyte) ny,
+ (GLbyte) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3d ( GLdouble nx , GLdouble ny , GLdouble nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3d (
+ JNIEnv *env, jobject obj,
+ jdouble nx,
+ jdouble ny,
+ jdouble nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glNormal3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) nx,
+ (GLdouble) ny,
+ (GLdouble) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3f ( GLfloat nx , GLfloat ny , GLfloat nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3f (
+ JNIEnv *env, jobject obj,
+ jfloat nx,
+ jfloat ny,
+ jfloat nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glNormal3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) nx,
+ (GLfloat) ny,
+ (GLfloat) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3i ( GLint nx , GLint ny , GLint nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3i (
+ JNIEnv *env, jobject obj,
+ jint nx,
+ jint ny,
+ jint nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glNormal3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) nx,
+ (GLint) ny,
+ (GLint) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3s ( GLshort nx , GLshort ny , GLshort nz ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3s (
+ JNIEnv *env, jobject obj,
+ jshort nx,
+ jshort ny,
+ jshort nz)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glNormal3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) nx,
+ (GLshort) ny,
+ (GLshort) nz
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glNormal3bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glNormal3bv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glNormal3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glNormal3dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glNormal3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glNormal3fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glNormal3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glNormal3iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormal3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glNormal3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glNormal3sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexd ( GLdouble c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexd (
+ JNIEnv *env, jobject obj,
+ jdouble c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glIndexd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexf ( GLfloat c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexf (
+ JNIEnv *env, jobject obj,
+ jfloat c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glIndexf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexi ( GLint c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexi (
+ JNIEnv *env, jobject obj,
+ jint c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glIndexi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexs ( GLshort c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexs (
+ JNIEnv *env, jobject obj,
+ jshort c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort))
+ getGLProcAddressHelper("glIndexs", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexub ( GLubyte c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexub (
+ JNIEnv *env, jobject obj,
+ jbyte c)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte))
+ getGLProcAddressHelper("glIndexub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) c
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexdv ( const GLdouble * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexdv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glIndexdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, c, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glIndexdv arg: c");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexfv ( const GLfloat * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexfv (
+ JNIEnv *env, jobject obj,
+ jfloatArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glIndexfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, c, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glIndexfv arg: c");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexiv ( const GLint * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexiv (
+ JNIEnv *env, jobject obj,
+ jintArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glIndexiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, c, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glIndexiv arg: c");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexsv ( const GLshort * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexsv (
+ JNIEnv *env, jobject obj,
+ jshortArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glIndexsv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, c, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glIndexsv arg: c");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexubv ( const GLubyte * c ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray c)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glIndexubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(c!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, c, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glIndexubv arg: c");
+ }
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(c!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, c, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3b ( GLbyte red , GLbyte green , GLbyte blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3b (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glColor3b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) red,
+ (GLbyte) green,
+ (GLbyte) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3d ( GLdouble red , GLdouble green , GLdouble blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3d (
+ JNIEnv *env, jobject obj,
+ jdouble red,
+ jdouble green,
+ jdouble blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glColor3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) red,
+ (GLdouble) green,
+ (GLdouble) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3f ( GLfloat red , GLfloat green , GLfloat blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3f (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glColor3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3i ( GLint red , GLint green , GLint blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3i (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glColor3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) red,
+ (GLint) green,
+ (GLint) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3s ( GLshort red , GLshort green , GLshort blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3s (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glColor3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) red,
+ (GLshort) green,
+ (GLshort) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ub ( GLubyte red , GLubyte green , GLubyte blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ub (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte, GLubyte, GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte, GLubyte, GLubyte))
+ getGLProcAddressHelper("glColor3ub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) red,
+ (GLubyte) green,
+ (GLubyte) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ui ( GLuint red , GLuint green , GLuint blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ui (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLuint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLuint, GLuint))
+ getGLProcAddressHelper("glColor3ui", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) red,
+ (GLuint) green,
+ (GLuint) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3us ( GLushort red , GLushort green , GLushort blue ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3us (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue)
+ {
+ static void (CALLBACK *__func_ptr__)(GLushort, GLushort, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLushort, GLushort, GLushort))
+ getGLProcAddressHelper("glColor3us", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLushort) red,
+ (GLushort) green,
+ (GLushort) blue
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4b ( GLbyte red , GLbyte green , GLbyte blue , GLbyte alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4b (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue,
+ jbyte alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLbyte, GLbyte, GLbyte, GLbyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLbyte, GLbyte, GLbyte, GLbyte))
+ getGLProcAddressHelper("glColor4b", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLbyte) red,
+ (GLbyte) green,
+ (GLbyte) blue,
+ (GLbyte) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4d ( GLdouble red , GLdouble green , GLdouble blue , GLdouble alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4d (
+ JNIEnv *env, jobject obj,
+ jdouble red,
+ jdouble green,
+ jdouble blue,
+ jdouble alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glColor4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) red,
+ (GLdouble) green,
+ (GLdouble) blue,
+ (GLdouble) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4f ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4f (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glColor4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) red,
+ (GLfloat) green,
+ (GLfloat) blue,
+ (GLfloat) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4i ( GLint red , GLint green , GLint blue , GLint alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4i (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue,
+ jint alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glColor4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) red,
+ (GLint) green,
+ (GLint) blue,
+ (GLint) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4s ( GLshort red , GLshort green , GLshort blue , GLshort alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4s (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue,
+ jshort alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glColor4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) red,
+ (GLshort) green,
+ (GLshort) blue,
+ (GLshort) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ub ( GLubyte red , GLubyte green , GLubyte blue , GLubyte alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ub (
+ JNIEnv *env, jobject obj,
+ jbyte red,
+ jbyte green,
+ jbyte blue,
+ jbyte alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLubyte, GLubyte, GLubyte, GLubyte) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLubyte, GLubyte, GLubyte, GLubyte))
+ getGLProcAddressHelper("glColor4ub", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLubyte) red,
+ (GLubyte) green,
+ (GLubyte) blue,
+ (GLubyte) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ui ( GLuint red , GLuint green , GLuint blue , GLuint alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ui (
+ JNIEnv *env, jobject obj,
+ jint red,
+ jint green,
+ jint blue,
+ jint alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint, GLuint, GLuint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint, GLuint, GLuint, GLuint))
+ getGLProcAddressHelper("glColor4ui", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) red,
+ (GLuint) green,
+ (GLuint) blue,
+ (GLuint) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4us ( GLushort red , GLushort green , GLushort blue , GLushort alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4us (
+ JNIEnv *env, jobject obj,
+ jshort red,
+ jshort green,
+ jshort blue,
+ jshort alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLushort, GLushort, GLushort, GLushort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLushort, GLushort, GLushort, GLushort))
+ getGLProcAddressHelper("glColor4us", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLushort) red,
+ (GLushort) green,
+ (GLushort) blue,
+ (GLushort) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glColor3bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3bv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glColor3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glColor3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glColor3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glColor3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3ubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glColor3ubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3ubv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3uiv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLuint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLuint *))
+ getGLProcAddressHelper("glColor3uiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3uiv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLuint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor3usv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLushort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLushort *))
+ getGLProcAddressHelper("glColor3usv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor3usv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLushort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4bv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLbyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLbyte *))
+ getGLProcAddressHelper("glColor4bv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4bv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLbyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glColor4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glColor4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glColor4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glColor4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4ubv (
+ JNIEnv *env, jobject obj,
+ jbyteArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLubyte *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jbyte *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLubyte *))
+ getGLProcAddressHelper("glColor4ubv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetByteArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4ubv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLubyte *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4uiv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLuint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLuint *))
+ getGLProcAddressHelper("glColor4uiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4uiv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLuint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColor4usv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLushort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLushort *))
+ getGLProcAddressHelper("glColor4usv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glColor4usv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLushort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1d ( GLdouble s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1d (
+ JNIEnv *env, jobject obj,
+ jdouble s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glTexCoord1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1f ( GLfloat s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1f (
+ JNIEnv *env, jobject obj,
+ jfloat s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glTexCoord1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1i ( GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1i (
+ JNIEnv *env, jobject obj,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glTexCoord1i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1s ( GLshort s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1s (
+ JNIEnv *env, jobject obj,
+ jshort s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort))
+ getGLProcAddressHelper("glTexCoord1s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2d ( GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2f ( GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2i ( GLint s , GLint t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glTexCoord2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2s ( GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3d ( GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t,
+ jdouble r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3f ( GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t,
+ jfloat r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3i ( GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t,
+ jint r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glTexCoord3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t,
+ (GLint) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3s ( GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t,
+ jshort r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4d ( GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4d (
+ JNIEnv *env, jobject obj,
+ jdouble s,
+ jdouble t,
+ jdouble r,
+ jdouble q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glTexCoord4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r,
+ (GLdouble) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4f ( GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4f (
+ JNIEnv *env, jobject obj,
+ jfloat s,
+ jfloat t,
+ jfloat r,
+ jfloat q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glTexCoord4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r,
+ (GLfloat) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4i ( GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4i (
+ JNIEnv *env, jobject obj,
+ jint s,
+ jint t,
+ jint r,
+ jint q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glTexCoord4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s,
+ (GLint) t,
+ (GLint) r,
+ (GLint) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4s ( GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4s (
+ JNIEnv *env, jobject obj,
+ jshort s,
+ jshort t,
+ jshort r,
+ jshort q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glTexCoord4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r,
+ (GLshort) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord1dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord1dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord1fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord1fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord1iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord1iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord1sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord1sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord1sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord2dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord2fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord2iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord2sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord3dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord3fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord3iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord3sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glTexCoord4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord4dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glTexCoord4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord4fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glTexCoord4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord4iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoord4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glTexCoord4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glTexCoord4sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glRasterPos2i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos2s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos3d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos3f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint))
+ getGLProcAddressHelper("glRasterPos3i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos3s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4d (
+ JNIEnv *env, jobject obj,
+ jdouble x,
+ jdouble y,
+ jdouble z,
+ jdouble w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRasterPos4d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x,
+ (GLdouble) y,
+ (GLdouble) z,
+ (GLdouble) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4f (
+ JNIEnv *env, jobject obj,
+ jfloat x,
+ jfloat y,
+ jfloat z,
+ jfloat w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRasterPos4f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x,
+ (GLfloat) y,
+ (GLfloat) z,
+ (GLfloat) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4i (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint z,
+ jint w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glRasterPos4i", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLint) z,
+ (GLint) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4s (
+ JNIEnv *env, jobject obj,
+ jshort x,
+ jshort y,
+ jshort z,
+ jshort w)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRasterPos4s", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x,
+ (GLshort) y,
+ (GLshort) z,
+ (GLshort) w
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos2dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos2fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos2iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos2iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos2sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos2sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos2sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos3dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos3dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos3fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos3fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos3iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos3iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos3sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos3sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos3sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glRasterPos4dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos4dv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glRasterPos4fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos4fv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4iv (
+ JNIEnv *env, jobject obj,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *))
+ getGLProcAddressHelper("glRasterPos4iv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos4iv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRasterPos4sv (
+ JNIEnv *env, jobject obj,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *))
+ getGLProcAddressHelper("glRasterPos4sv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRasterPos4sv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectd ( GLdouble x1 , GLdouble y1 , GLdouble x2 , GLdouble y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectd (
+ JNIEnv *env, jobject obj,
+ jdouble x1,
+ jdouble y1,
+ jdouble x2,
+ jdouble y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glRectd", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) x1,
+ (GLdouble) y1,
+ (GLdouble) x2,
+ (GLdouble) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectf ( GLfloat x1 , GLfloat y1 , GLfloat x2 , GLfloat y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectf (
+ JNIEnv *env, jobject obj,
+ jfloat x1,
+ jfloat y1,
+ jfloat x2,
+ jfloat y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glRectf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) x1,
+ (GLfloat) y1,
+ (GLfloat) x2,
+ (GLfloat) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRecti ( GLint x1 , GLint y1 , GLint x2 , GLint y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRecti (
+ JNIEnv *env, jobject obj,
+ jint x1,
+ jint y1,
+ jint x2,
+ jint y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glRecti", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x1,
+ (GLint) y1,
+ (GLint) x2,
+ (GLint) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRects ( GLshort x1 , GLshort y1 , GLshort x2 , GLshort y2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRects (
+ JNIEnv *env, jobject obj,
+ jshort x1,
+ jshort y1,
+ jshort x2,
+ jshort y2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glRects", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLshort) x1,
+ (GLshort) y1,
+ (GLshort) x2,
+ (GLshort) y2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectdv ( const GLdouble * v1 , const GLdouble * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectdv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray v1,
+ jdoubleArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *, const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *, const GLdouble *))
+ getGLProcAddressHelper("glRectdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, v1, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRectdv arg: v1");
+ }
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v2, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glRectdv arg: v2");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0,
+ (const GLdouble *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectfv ( const GLfloat * v1 , const GLfloat * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectfv (
+ JNIEnv *env, jobject obj,
+ jfloatArray v1,
+ jfloatArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *, const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *, const GLfloat *))
+ getGLProcAddressHelper("glRectfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, v1, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRectfv arg: v1");
+ }
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v2, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glRectfv arg: v2");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0,
+ (const GLfloat *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectiv ( const GLint * v1 , const GLint * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectiv (
+ JNIEnv *env, jobject obj,
+ jintArray v1,
+ jintArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLint *, const GLint *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jint *ptr0 = NULL;
+ static int isWarned0 = 0;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLint *, const GLint *))
+ getGLProcAddressHelper("glRectiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (*env)->GetIntArrayElements(env, v1, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRectiv arg: v1");
+ }
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v2, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glRectiv arg: v2");
+ }
+ }
+ __func_ptr__ (
+ (const GLint *) ptr0,
+ (const GLint *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectsv ( const GLshort * v1 , const GLshort * v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glRectsv (
+ JNIEnv *env, jobject obj,
+ jshortArray v1,
+ jshortArray v2)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLshort *, const GLshort *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jshort *ptr0 = NULL;
+ static int isWarned0 = 0;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLshort *, const GLshort *))
+ getGLProcAddressHelper("glRectsv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v1!=NULL)
+ {
+ ptr0 = (*env)->GetShortArrayElements(env, v1, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glRectsv arg: v1");
+ }
+ }
+ if(v2!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v2, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glRectsv arg: v2");
+ }
+ }
+ __func_ptr__ (
+ (const GLshort *) ptr0,
+ (const GLshort *) ptr1
+ );
+
+ if(v1!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v1, ptr0, JNI_ABORT);
+ }
+ if(v2!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v2, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glVertexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointer__II_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glNormalPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glColorPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointer__II_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glIndexPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointer__III_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glTexCoordPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointer ( GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3B (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetByteArrayElements(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3S (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3I (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3F (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3D (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3Z (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointer__I_3J (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glEdgeFlagPointer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr1 = (*env)->GetLongArrayElements(env, ptr, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glEdgeFlagPointer arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (const GLvoid *) ptr1
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointerv ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3B (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbyteArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetByteArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3S (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jshortArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3I (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3F (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3D (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3Z (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointerv__I_3_3J (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jlongArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointerv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetLongArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointerv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElement ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glArrayElement (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glArrayElement", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArrays ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawArrays (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLsizei))
+ getGLProcAddressHelper("glDrawArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawElements ( GLenum mode , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3B (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jbyteArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3S (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jshortArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3I (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jintArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3F (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jfloatArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3D (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jdoubleArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jbooleanArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawElements__III_3J (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint count,
+ jint type,
+ jlongArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, indices, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glDrawElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr3
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, indices, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInterleavedArrays ( GLenum format , GLsizei stride , const GLvoid * pointer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3B (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jbyteArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jbyte *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetByteArrayElements(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3S (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jshortArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3I (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jintArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3F (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jfloatArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3D (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jdoubleArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3Z (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jbooleanArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInterleavedArrays__II_3J (
+ JNIEnv *env, jobject obj,
+ jint format,
+ jint stride,
+ jlongArray pointer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jlong *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glInterleavedArrays", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pointer!=NULL)
+ {
+ ptr2 = (*env)->GetLongArrayElements(env, pointer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glInterleavedArrays arg: pointer");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) format,
+ (GLsizei) stride,
+ (const GLvoid *) ptr2
+ );
+
+ if(pointer!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pointer, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glShadeModel ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glShadeModel (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glShadeModel", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightf ( GLenum light , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightf (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glLightf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLighti ( GLenum light , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLighti (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glLighti", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightfv ( GLenum light , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightfv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glLightfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glLightfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightiv ( GLenum light , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightiv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glLightiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glLightiv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightfv ( GLenum light , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetLightfv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetLightfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetLightfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightiv ( GLenum light , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetLightiv (
+ JNIEnv *env, jobject obj,
+ jint light,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetLightiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetLightiv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) light,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModelf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glLightModelf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeli ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModeli (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glLightModeli", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModelfv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glLightModelfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glLightModelfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeliv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLightModeliv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glLightModeliv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glLightModeliv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialf ( GLenum face , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialf (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glMaterialf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMateriali ( GLenum face , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMateriali (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glMateriali", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialfv ( GLenum face , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialfv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMaterialfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glMaterialfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialiv ( GLenum face , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMaterialiv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glMaterialiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glMaterialiv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialfv ( GLenum face , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMaterialfv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMaterialfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMaterialfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialiv ( GLenum face , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMaterialiv (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMaterialiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMaterialiv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMaterial ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorMaterial (
+ JNIEnv *env, jobject obj,
+ jint face,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum))
+ getGLProcAddressHelper("glColorMaterial", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) face,
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelZoom ( GLfloat xfactor , GLfloat yfactor ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelZoom (
+ JNIEnv *env, jobject obj,
+ jfloat xfactor,
+ jfloat yfactor)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPixelZoom", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) xfactor,
+ (GLfloat) yfactor
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStoref ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelStoref (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPixelStoref", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStorei ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelStorei (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glPixelStorei", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelTransferf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPixelTransferf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelTransferi (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glPixelTransferi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapfv ( GLenum map , GLint mapsize , const GLfloat * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapfv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLfloat *))
+ getGLProcAddressHelper("glPixelMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, values, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glPixelMapfv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLfloat *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapuiv ( GLenum map , GLint mapsize , const GLuint * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapuiv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLuint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLuint *))
+ getGLProcAddressHelper("glPixelMapuiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, values, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glPixelMapuiv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLuint *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapusv ( GLenum map , GLint mapsize , const GLushort * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPixelMapusv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jint mapsize,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, const GLushort *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jshort *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, const GLushort *))
+ getGLProcAddressHelper("glPixelMapusv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr2 = (*env)->GetShortArrayElements(env, values, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glPixelMapusv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLint) mapsize,
+ (const GLushort *) ptr2
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, values, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapfv ( GLenum map , GLfloat * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapfv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetPixelMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, values, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPixelMapfv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLfloat *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapuiv ( GLenum map , GLuint * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapuiv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint *))
+ getGLProcAddressHelper("glGetPixelMapuiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, values, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPixelMapuiv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLuint *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapusv ( GLenum map , GLushort * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPixelMapusv (
+ JNIEnv *env, jobject obj,
+ jint map,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLushort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLushort *))
+ getGLProcAddressHelper("glGetPixelMapusv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, values, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPixelMapusv arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) map,
+ (GLushort *) ptr1
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, values, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBitmap ( GLsizei width , GLsizei height , GLfloat xorig , GLfloat yorig , GLfloat xmove , GLfloat ymove , const GLubyte * bitmap ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBitmap (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jfloat xorig,
+ jfloat yorig,
+ jfloat xmove,
+ jfloat ymove,
+ jbyteArray bitmap)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *))
+ getGLProcAddressHelper("glBitmap", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(bitmap!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, bitmap, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glBitmap arg: bitmap");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLfloat) xorig,
+ (GLfloat) yorig,
+ (GLfloat) xmove,
+ (GLfloat) ymove,
+ (const GLubyte *) ptr6
+ );
+
+ if(bitmap!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, bitmap, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glReadPixels__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glReadPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glReadPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr6, (isCopiedArray6 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawPixels ( GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawPixels__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glDrawPixels arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum type ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyPixels (
+ JNIEnv *env, jobject obj,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint type)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint, GLsizei, GLsizei, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint, GLsizei, GLsizei, GLenum))
+ getGLProcAddressHelper("glCopyPixels", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) type
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilFunc ( GLenum func , GLint ref , GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilFunc (
+ JNIEnv *env, jobject obj,
+ jint func,
+ jint ref,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLuint))
+ getGLProcAddressHelper("glStencilFunc", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) func,
+ (GLint) ref,
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilMask ( GLuint mask ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilMask (
+ JNIEnv *env, jobject obj,
+ jint mask)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glStencilMask", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) mask
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilOp ( GLenum fail , GLenum zfail , GLenum zpass ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glStencilOp (
+ JNIEnv *env, jobject obj,
+ jint fail,
+ jint zfail,
+ jint zpass)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum))
+ getGLProcAddressHelper("glStencilOp", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) fail,
+ (GLenum) zfail,
+ (GLenum) zpass
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearStencil ( GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClearStencil (
+ JNIEnv *env, jobject obj,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glClearStencil", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGend ( GLenum coord , GLenum pname , GLdouble param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGend (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdouble param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble))
+ getGLProcAddressHelper("glTexGend", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLdouble) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenf ( GLenum coord , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGenf (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexGenf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeni ( GLenum coord , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGeni (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexGeni", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGendv ( GLenum coord , GLenum pname , const GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGendv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLdouble *))
+ getGLProcAddressHelper("glTexGendv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexGendv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLdouble *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenfv ( GLenum coord , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGenfv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexGenfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexGenfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeniv ( GLenum coord , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexGeniv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexGeniv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexGeniv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGendv ( GLenum coord , GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGendv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetTexGendv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexGendv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLdouble *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGenfv ( GLenum coord , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGenfv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexGenfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexGenfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGeniv ( GLenum coord , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexGeniv (
+ JNIEnv *env, jobject obj,
+ jint coord,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexGeniv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexGeniv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) coord,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexEnvf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvi ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvi (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexEnvi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnvfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexEnvfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexEnvfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnviv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexEnviv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexEnviv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexEnviv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnvfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexEnvfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexEnvfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexEnvfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnviv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexEnviv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexEnviv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexEnviv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameterf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glTexParameterf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteri ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameteri (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glTexParameteri", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glTexParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glTexParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glTexParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetTexParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameterfv ( GLenum target , GLint level , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexLevelParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetTexLevelParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetTexLevelParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) pname,
+ (GLfloat *) ptr3
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameteriv ( GLenum target , GLint level , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexLevelParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint *))
+ getGLProcAddressHelper("glGetTexLevelParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, params, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetTexLevelParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) pname,
+ (GLint *) ptr3
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage1D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jbyte *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jshort *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jint *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jfloat *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jboolean *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage1D__IIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jlong *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr7 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glTexImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr7
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr7, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage2D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jbyte *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jshort *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jint *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jfloat *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jboolean *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage2D__IIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jlong *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexImage ( GLenum target , GLint level , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetTexImage__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetTexImage", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetTexImage arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTextures ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glGenTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGenTextures arg: textures");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTextures ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *))
+ getGLProcAddressHelper("glDeleteTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glDeleteTextures arg: textures");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTexture ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBindTexture (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint))
+ getGLProcAddressHelper("glBindTexture", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLuint) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTextures ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPrioritizeTextures (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jfloatArray priorities)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, const GLclampf *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *, const GLclampf *))
+ getGLProcAddressHelper("glPrioritizeTextures", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glPrioritizeTextures arg: textures");
+ }
+ }
+ if(priorities!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, priorities, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glPrioritizeTextures arg: priorities");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (const GLclampf *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ if(priorities!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, priorities, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResident ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glAreTexturesResident (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jbooleanArray residences)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, GLboolean *) = NULL;
+ jboolean ret;
+
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLsizei, const GLuint *, GLboolean *))
+ getGLProcAddressHelper("glAreTexturesResident", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glAreTexturesResident arg: textures");
+ }
+ }
+ if(residences!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, residences, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glAreTexturesResident arg: residences");
+ }
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (GLboolean *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ if(residences!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, residences, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTexture ( GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsTexture (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsTexture", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) texture
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLsizei width , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage1D__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glTexSubImage1D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jbyte *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jshort *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jint *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jfloat *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jdouble *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jboolean *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage2D__IIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray8 = JNI_FALSE;
+ jlong *ptr8 = NULL;
+ static int isWarned8 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr8 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray8);
+ if( isCopiedArray8 == JNI_TRUE && isWarned8==0 ) {
+ isWarned8=1;
+ printf("COPY by glTexSubImage2D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr8
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr8, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage1D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLint border ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexImage1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint border)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint))
+ getGLProcAddressHelper("glCopyTexImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLint) border
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage2D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height , GLint border ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexImage2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint height,
+ jint border)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint))
+ getGLProcAddressHelper("glCopyTexImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLint) border
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint stride , GLint order , const GLdouble * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap1d (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble u1,
+ jdouble u2,
+ jint stride,
+ jint order,
+ jdoubleArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *))
+ getGLProcAddressHelper("glMap1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, points, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glMap1d arg: points");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) stride,
+ (GLint) order,
+ (const GLdouble *) ptr5
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, points, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint stride , GLint order , const GLfloat * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap1f (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat u1,
+ jfloat u2,
+ jint stride,
+ jint order,
+ jfloatArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *))
+ getGLProcAddressHelper("glMap1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, points, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glMap1f arg: points");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) stride,
+ (GLint) order,
+ (const GLfloat *) ptr5
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, points, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint ustride , GLint uorder , GLdouble v1 , GLdouble v2 , GLint vstride , GLint vorder , const GLdouble * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap2d (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble u1,
+ jdouble u2,
+ jint ustride,
+ jint uorder,
+ jdouble v1,
+ jdouble v2,
+ jint vstride,
+ jint vorder,
+ jdoubleArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jdouble *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *))
+ getGLProcAddressHelper("glMap2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr9 = (*env)->GetDoubleArrayElements(env, points, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glMap2d arg: points");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) ustride,
+ (GLint) uorder,
+ (GLdouble) v1,
+ (GLdouble) v2,
+ (GLint) vstride,
+ (GLint) vorder,
+ (const GLdouble *) ptr9
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, points, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint ustride , GLint uorder , GLfloat v1 , GLfloat v2 , GLint vstride , GLint vorder , const GLfloat * points ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMap2f (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat u1,
+ jfloat u2,
+ jint ustride,
+ jint uorder,
+ jfloat v1,
+ jfloat v2,
+ jint vstride,
+ jint vorder,
+ jfloatArray points)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jfloat *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *))
+ getGLProcAddressHelper("glMap2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(points!=NULL)
+ {
+ ptr9 = (*env)->GetFloatArrayElements(env, points, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glMap2f arg: points");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) ustride,
+ (GLint) uorder,
+ (GLfloat) v1,
+ (GLfloat) v2,
+ (GLint) vstride,
+ (GLint) vorder,
+ (const GLfloat *) ptr9
+ );
+
+ if(points!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, points, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapdv ( GLenum target , GLenum query , GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapdv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLdouble *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jdouble *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLdouble *))
+ getGLProcAddressHelper("glGetMapdv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMapdv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLdouble *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapfv ( GLenum target , GLenum query , GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMapfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMapfv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLfloat *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapiv ( GLenum target , GLenum query , GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMapiv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint query,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMapiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, v, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMapiv arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) query,
+ (GLint *) ptr2
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1d ( GLdouble u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1d (
+ JNIEnv *env, jobject obj,
+ jdouble u)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble))
+ getGLProcAddressHelper("glEvalCoord1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) u
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1f ( GLfloat u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1f (
+ JNIEnv *env, jobject obj,
+ jfloat u)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glEvalCoord1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) u
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glEvalCoord1dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, u, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glEvalCoord1dv arg: u");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord1fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glEvalCoord1fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, u, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glEvalCoord1fv arg: u");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2d ( GLdouble u , GLdouble v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2d (
+ JNIEnv *env, jobject obj,
+ jdouble u,
+ jdouble v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLdouble, GLdouble))
+ getGLProcAddressHelper("glEvalCoord2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLdouble) u,
+ (GLdouble) v
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2f ( GLfloat u , GLfloat v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2f (
+ JNIEnv *env, jobject obj,
+ jfloat u,
+ jfloat v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glEvalCoord2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) u,
+ (GLfloat) v
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2dv (
+ JNIEnv *env, jobject obj,
+ jdoubleArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLdouble *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jdouble *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLdouble *))
+ getGLProcAddressHelper("glEvalCoord2dv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (*env)->GetDoubleArrayElements(env, u, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glEvalCoord2dv arg: u");
+ }
+ }
+ __func_ptr__ (
+ (const GLdouble *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalCoord2fv (
+ JNIEnv *env, jobject obj,
+ jfloatArray u)
+ {
+ static void (CALLBACK *__func_ptr__)(const GLfloat *) = NULL;
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jfloat *ptr0 = NULL;
+ static int isWarned0 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(const GLfloat *))
+ getGLProcAddressHelper("glEvalCoord2fv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(u!=NULL)
+ {
+ ptr0 = (*env)->GetFloatArrayElements(env, u, &isCopiedArray0);
+ if( isCopiedArray0 == JNI_TRUE && isWarned0==0 ) {
+ isWarned0=1;
+ printf("COPY by glEvalCoord2fv arg: u");
+ }
+ }
+ __func_ptr__ (
+ (const GLfloat *) ptr0
+ );
+
+ if(u!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, u, ptr0, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1d ( GLint un , GLdouble u1 , GLdouble u2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid1d (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jdouble u1,
+ jdouble u2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMapGrid1d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLdouble) u1,
+ (GLdouble) u2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1f ( GLint un , GLfloat u1 , GLfloat u2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid1f (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jfloat u1,
+ jfloat u2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMapGrid1f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLfloat) u1,
+ (GLfloat) u2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2d ( GLint un , GLdouble u1 , GLdouble u2 , GLint vn , GLdouble v1 , GLdouble v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid2d (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jdouble u1,
+ jdouble u2,
+ jint vn,
+ jdouble v1,
+ jdouble v2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMapGrid2d", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLdouble) u1,
+ (GLdouble) u2,
+ (GLint) vn,
+ (GLdouble) v1,
+ (GLdouble) v2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2f ( GLint un , GLfloat u1 , GLfloat u2 , GLint vn , GLfloat v1 , GLfloat v2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMapGrid2f (
+ JNIEnv *env, jobject obj,
+ jint un,
+ jfloat u1,
+ jfloat u2,
+ jint vn,
+ jfloat v1,
+ jfloat v2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMapGrid2f", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) un,
+ (GLfloat) u1,
+ (GLfloat) u2,
+ (GLint) vn,
+ (GLfloat) v1,
+ (GLfloat) v2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint1 ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalPoint1 (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glEvalPoint1", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint2 ( GLint i , GLint j ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalPoint2 (
+ JNIEnv *env, jobject obj,
+ jint i,
+ jint j)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLint))
+ getGLProcAddressHelper("glEvalPoint2", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i,
+ (GLint) j
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh1 ( GLenum mode , GLint i1 , GLint i2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalMesh1 (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint i1,
+ jint i2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint))
+ getGLProcAddressHelper("glEvalMesh1", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) i1,
+ (GLint) i2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh2 ( GLenum mode , GLint i1 , GLint i2 , GLint j1 , GLint j2 ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEvalMesh2 (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint i1,
+ jint i2,
+ jint j1,
+ jint j2)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glEvalMesh2", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) i1,
+ (GLint) i2,
+ (GLint) j1,
+ (GLint) j2
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogf (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glFogf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogi (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jint param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glFogi", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLint) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogfv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glFogfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glFogfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogiv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFogiv (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glFogiv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glFogiv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLint *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFeedbackBuffer ( GLsizei size , GLenum type , GLfloat * buffer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glFeedbackBuffer (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jfloatArray buffer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLenum, GLfloat *))
+ getGLProcAddressHelper("glFeedbackBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(buffer!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, buffer, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glFeedbackBuffer arg: buffer");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) size,
+ (GLenum) type,
+ (GLfloat *) ptr2
+ );
+
+ if(buffer!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, buffer, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPassThrough ( GLfloat token ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPassThrough (
+ JNIEnv *env, jobject obj,
+ jfloat token)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat))
+ getGLProcAddressHelper("glPassThrough", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) token
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSelectBuffer ( GLsizei size , GLuint * buffer ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSelectBuffer (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jintArray buffer)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glSelectBuffer", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(buffer!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, buffer, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glSelectBuffer arg: buffer");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) size,
+ (GLuint *) ptr1
+ );
+
+ if(buffer!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, buffer, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInitNames ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glInitNames (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glInitNames", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadName ( GLuint name ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLoadName (
+ JNIEnv *env, jobject obj,
+ jint name)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glLoadName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) name
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushName ( GLuint name ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPushName (
+ JNIEnv *env, jobject obj,
+ jint name)
+ {
+ static void (CALLBACK *__func_ptr__)(GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glPushName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLuint) name
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopName ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPopName (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glPopName", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawRangeElements ( GLenum mode , GLuint start , GLuint end , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jbyteArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jshortArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jintArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jfloatArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jdoubleArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jbooleanArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawRangeElements__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint start,
+ jint end,
+ jint count,
+ jint type,
+ jlongArray indices)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glDrawRangeElements", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(indices!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, indices, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glDrawRangeElements arg: indices");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLuint) start,
+ (GLuint) end,
+ (GLsizei) count,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(indices!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, indices, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jbyte *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jshort *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jint *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jfloat *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jdouble *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jboolean *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3D__IIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jlong *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jbyte *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jshort *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jint *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jfloat *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jdouble *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jboolean *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3D__IIIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jlong *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3D arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage3D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTable ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTable__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTable ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTable__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTable arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glColorTableParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glColorTableParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glColorTableParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glColorTableParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorSubTable ( GLenum target , GLsizei start , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyColorSubTable (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyColorSubTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorTable ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyColorTable (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTable ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTable__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTable", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTable arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetColorTableParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetColorTableParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetColorTableParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetColorTableParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquation ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendEquation (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBlendEquation", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendColor (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glBlendColor", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHistogram ( GLenum target , GLsizei width , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glHistogram (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint width,
+ jint internalformat,
+ jboolean sink)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLenum, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLenum, GLboolean))
+ getGLProcAddressHelper("glHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) width,
+ (GLenum) internalformat,
+ (GLboolean) sink
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetHistogram ( GLenum target ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glResetHistogram (
+ JNIEnv *env, jobject obj,
+ jint target)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glResetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogram ( GLenum target , GLboolean reset , GLenum format , GLenum type , GLvoid * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jbyteArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jdoubleArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jbooleanArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogram__IZII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint type,
+ jlongArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetHistogram", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetHistogram arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogramParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetHistogramParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetHistogramParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetHistogramParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetHistogramParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetHistogramParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMinmax ( GLenum target , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMinmax (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jboolean sink)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLboolean) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLboolean))
+ getGLProcAddressHelper("glMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLboolean) sink
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetMinmax ( GLenum target ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glResetMinmax (
+ JNIEnv *env, jobject obj,
+ jint target)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glResetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmax ( GLenum target , GLboolean reset , GLenum format , GLenum types , GLvoid * values ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jbyteArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jshortArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jintArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jfloatArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jdoubleArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jbooleanArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmax__IZII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jboolean reset,
+ jint format,
+ jint types,
+ jlongArray values)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLboolean, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLboolean, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetMinmax", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(values!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, values, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetMinmax arg: values");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLboolean) reset,
+ (GLenum) format,
+ (GLenum) types,
+ (GLvoid *) ptr4
+ );
+
+ if(values!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, values, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmaxParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetMinmaxParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMinmaxParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetMinmaxParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetMinmaxParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetMinmaxParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter1D ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter1D__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, image, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glConvolutionFilter1D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, image, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionFilter2D__IIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+ static int isWarned6 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, image, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glConvolutionFilter2D arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, image, ptr6, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterf ( GLenum target , GLenum pname , GLfloat params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameterf (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloat params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat))
+ getGLProcAddressHelper("glConvolutionParameterf", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat) params
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLfloat *))
+ getGLProcAddressHelper("glConvolutionParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glConvolutionParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteri ( GLenum target , GLenum pname , GLint params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameteri (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jint params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint))
+ getGLProcAddressHelper("glConvolutionParameteri", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint) params
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glConvolutionParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, const GLint *))
+ getGLProcAddressHelper("glConvolutionParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glConvolutionParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (const GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter1D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyConvolutionFilter1D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei))
+ getGLProcAddressHelper("glCopyConvolutionFilter1D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter2D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyConvolutionFilter2D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyConvolutionFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionFilter ( GLenum target , GLenum format , GLenum type , GLvoid * image ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionFilter__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray image)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetConvolutionFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(image!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, image, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetConvolutionFilter arg: image");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(image!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, image, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionParameterfv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetConvolutionParameterfv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetConvolutionParameterfv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetConvolutionParameteriv (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetConvolutionParameteriv", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetConvolutionParameteriv arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSeparableFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * row , const GLvoid * column ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3B_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbyteArray row,
+ jbyteArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jbyte *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jbyte *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetByteArrayElements(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetByteArrayElements(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3S_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jshortArray row,
+ jshortArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jshort *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jshort *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetShortArrayElements(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetShortArrayElements(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3I_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jintArray row,
+ jintArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jint *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jint *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetIntArrayElements(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetIntArrayElements(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3F_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jfloatArray row,
+ jfloatArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jfloat *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jfloat *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetFloatArrayElements(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetFloatArrayElements(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jdoubleArray row,
+ jdoubleArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jdouble *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jdouble *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetDoubleArrayElements(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetDoubleArrayElements(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3Z_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jbooleanArray row,
+ jbooleanArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jboolean *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jboolean *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetBooleanArrayElements(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetBooleanArrayElements(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glSeparableFilter2D__IIIIII_3J_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jlongArray row,
+ jlongArray column)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *) = NULL;
+ jboolean isCopiedArray6 = JNI_FALSE;
+ jlong *ptr6 = NULL;
+ static int isWarned6 = 0;
+ jboolean isCopiedArray7 = JNI_FALSE;
+ jlong *ptr7 = NULL;
+ static int isWarned7 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *))
+ getGLProcAddressHelper("glSeparableFilter2D", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr6 = (*env)->GetLongArrayElements(env, row, &isCopiedArray6);
+ if( isCopiedArray6 == JNI_TRUE && isWarned6==0 ) {
+ isWarned6=1;
+ printf("COPY by glSeparableFilter2D arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr7 = (*env)->GetLongArrayElements(env, column, &isCopiedArray7);
+ if( isCopiedArray7 == JNI_TRUE && isWarned7==0 ) {
+ isWarned7=1;
+ printf("COPY by glSeparableFilter2D arg: column");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr6,
+ (const GLvoid *) ptr7
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, row, ptr6, JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, column, ptr7, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetSeparableFilter ( GLenum target , GLenum format , GLenum type , GLvoid * row , GLvoid * column , GLvoid * span ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3B_3B_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray row,
+ jbyteArray column,
+ jbyteArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3S_3S_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray row,
+ jshortArray column,
+ jshortArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3I_3I_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray row,
+ jintArray column,
+ jintArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3F_3F_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray row,
+ jfloatArray column,
+ jfloatArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3D_3D_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray row,
+ jdoubleArray column,
+ jdoubleArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3Z_3Z_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray row,
+ jbooleanArray column,
+ jbooleanArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetSeparableFilter__III_3J_3J_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray row,
+ jlongArray column,
+ jlongArray span)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *))
+ getGLProcAddressHelper("glGetSeparableFilter", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(row!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, row, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetSeparableFilter arg: row");
+ }
+ }
+ if(column!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, column, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glGetSeparableFilter arg: column");
+ }
+ }
+ if(span!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, span, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glGetSeparableFilter arg: span");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3,
+ (GLvoid *) ptr4,
+ (GLvoid *) ptr5
+ );
+
+ if(row!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, row, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(column!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, column, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(span!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, span, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColorEXT ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendColorEXT (
+ JNIEnv *env, jobject obj,
+ jfloat red,
+ jfloat green,
+ jfloat blue,
+ jfloat alpha)
+ {
+ static void (CALLBACK *__func_ptr__)(GLclampf, GLclampf, GLclampf, GLclampf) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLclampf, GLclampf, GLclampf, GLclampf))
+ getGLProcAddressHelper("glBlendColorEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLclampf) red,
+ (GLclampf) green,
+ (GLclampf) blue,
+ (GLclampf) alpha
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffsetEXT ( GLfloat factor , GLfloat bias ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPolygonOffsetEXT (
+ JNIEnv *env, jobject obj,
+ jfloat factor,
+ jfloat bias)
+ {
+ static void (CALLBACK *__func_ptr__)(GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLfloat, GLfloat))
+ getGLProcAddressHelper("glPolygonOffsetEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLfloat) factor,
+ (GLfloat) bias
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3DEXT ( GLenum target , GLint level , GLenum internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jbyte *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jshort *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jint *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jfloat *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jdouble *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jboolean *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexImage3DEXT__IIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint internalFormat,
+ jint width,
+ jint height,
+ jint depth,
+ jint border,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray9 = JNI_FALSE;
+ jlong *ptr9 = NULL;
+ static int isWarned9 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr9 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray9);
+ if( isCopiedArray9 == JNI_TRUE && isWarned9==0 ) {
+ isWarned9=1;
+ printf("COPY by glTexImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLenum) internalFormat,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLint) border,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr9
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr9, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbyteArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jbyte *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetByteArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jshortArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jshort *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetShortArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jintArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jint *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetIntArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jfloatArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jfloat *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetFloatArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jdoubleArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jdouble *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetDoubleArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jbooleanArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jboolean *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetBooleanArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexSubImage3DEXT__IIIIIIIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint width,
+ jint height,
+ jint depth,
+ jint format,
+ jint type,
+ jlongArray pixels)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray10 = JNI_FALSE;
+ jlong *ptr10 = NULL;
+ static int isWarned10 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(pixels!=NULL)
+ {
+ ptr10 = (*env)->GetLongArrayElements(env, pixels, &isCopiedArray10);
+ if( isCopiedArray10 == JNI_TRUE && isWarned10==0 ) {
+ isWarned10=1;
+ printf("COPY by glTexSubImage3DEXT arg: pixels");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLsizei) width,
+ (GLsizei) height,
+ (GLsizei) depth,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr10
+ );
+
+ if(pixels!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, pixels, ptr10, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glCopyTexSubImage3DEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint level,
+ jint xoffset,
+ jint yoffset,
+ jint zoffset,
+ jint x,
+ jint y,
+ jint width,
+ jint height)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei))
+ getGLProcAddressHelper("glCopyTexSubImage3DEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) level,
+ (GLint) xoffset,
+ (GLint) yoffset,
+ (GLint) zoffset,
+ (GLint) x,
+ (GLint) y,
+ (GLsizei) width,
+ (GLsizei) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTexturesEXT ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGenTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLuint *))
+ getGLProcAddressHelper("glGenTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGenTexturesEXT arg: textures");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTexturesEXT ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDeleteTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *))
+ getGLProcAddressHelper("glDeleteTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glDeleteTexturesEXT arg: textures");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTextureEXT ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBindTextureEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLuint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLuint))
+ getGLProcAddressHelper("glBindTextureEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLuint) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTexturesEXT ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPrioritizeTexturesEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jfloatArray priorities)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, const GLclampf *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, const GLuint *, const GLclampf *))
+ getGLProcAddressHelper("glPrioritizeTexturesEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glPrioritizeTexturesEXT arg: textures");
+ }
+ }
+ if(priorities!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, priorities, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glPrioritizeTexturesEXT arg: priorities");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (const GLclampf *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ if(priorities!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, priorities, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResidentEXT ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glAreTexturesResidentEXT (
+ JNIEnv *env, jobject obj,
+ jint n,
+ jintArray textures,
+ jbooleanArray residences)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLsizei, const GLuint *, GLboolean *) = NULL;
+ jboolean ret;
+
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLsizei, const GLuint *, GLboolean *))
+ getGLProcAddressHelper("glAreTexturesResidentEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ if(textures!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, textures, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glAreTexturesResidentEXT arg: textures");
+ }
+ }
+ if(residences!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, residences, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glAreTexturesResidentEXT arg: residences");
+ }
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLsizei) n,
+ (const GLuint *) ptr1,
+ (GLboolean *) ptr2
+ );
+
+ if(textures!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, textures, ptr1, JNI_ABORT);
+ }
+ if(residences!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, residences, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTextureEXT ( GLuint texture ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_GLFuncJauJNI_glIsTextureEXT (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static jboolean (CALLBACK *__func_ptr__)(GLuint) = NULL;
+ jboolean ret;
+
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (jboolean (CALLBACK *)(GLuint))
+ getGLProcAddressHelper("glIsTextureEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return 0;
+ }
+ ret = (jboolean) __func_ptr__ (
+ (GLuint) texture
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glVertexPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glVertexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glVertexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glNormalPointerEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glNormalPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glNormalPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glColorPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glColorPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glIndexPointerEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glIndexPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, ptr, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glIndexPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr3
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr3, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3B (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbyteArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jbyte *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetByteArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3S (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jshortArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jshort *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetShortArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3I (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jintArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jint *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetIntArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3F (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jfloatArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3D (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jdoubleArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jdouble *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetDoubleArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jboolean *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glTexCoordPointerEXT__IIII_3J (
+ JNIEnv *env, jobject obj,
+ jint size,
+ jint type,
+ jint stride,
+ jint count,
+ jlongArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *) = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jlong *ptr4 = NULL;
+ static int isWarned4 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *))
+ getGLProcAddressHelper("glTexCoordPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr4 = (*env)->GetLongArrayElements(env, ptr, &isCopiedArray4);
+ if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
+ isWarned4=1;
+ printf("COPY by glTexCoordPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLint) size,
+ (GLenum) type,
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLvoid *) ptr4
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, ptr, ptr4, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointerEXT ( GLsizei stride , GLsizei count , const GLboolean * ptr ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glEdgeFlagPointerEXT (
+ JNIEnv *env, jobject obj,
+ jint stride,
+ jint count,
+ jbooleanArray ptr)
+ {
+ static void (CALLBACK *__func_ptr__)(GLsizei, GLsizei, const GLboolean *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jboolean *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLsizei, GLsizei, const GLboolean *))
+ getGLProcAddressHelper("glEdgeFlagPointerEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(ptr!=NULL)
+ {
+ ptr2 = (*env)->GetBooleanArrayElements(env, ptr, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glEdgeFlagPointerEXT arg: ptr");
+ }
+ }
+ __func_ptr__ (
+ (GLsizei) stride,
+ (GLsizei) count,
+ (const GLboolean *) ptr2
+ );
+
+ if(ptr!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, ptr, ptr2, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointervEXT ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3B (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbyteArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetByteArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3S (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jshortArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3I (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3F (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3D (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jdoubleArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3Z (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jbooleanArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetBooleanArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetPointervEXT__I_3_3J (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jlongArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, void **) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, void **))
+ getGLProcAddressHelper("glGetPointervEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetLongArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glGetPointervEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (void **) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, params, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElementEXT ( GLint i ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glArrayElementEXT (
+ JNIEnv *env, jobject obj,
+ jint i)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint))
+ getGLProcAddressHelper("glArrayElementEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) i
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArraysEXT ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glDrawArraysEXT (
+ JNIEnv *env, jobject obj,
+ jint mode,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLsizei))
+ getGLProcAddressHelper("glDrawArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode,
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquationEXT ( GLenum mode ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glBlendEquationEXT (
+ JNIEnv *env, jobject obj,
+ jint mode)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glBlendEquationEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) mode
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfEXT ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointParameterfEXT (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloat param)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glPointParameterfEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (GLfloat) param
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfvEXT ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glPointParameterfvEXT (
+ JNIEnv *env, jobject obj,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glPointParameterfvEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glPointParameterfvEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) pname,
+ (const GLfloat *) ptr1
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableEXT ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorTableEXT__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint internalformat,
+ jint width,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, table, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) internalformat,
+ (GLsizei) width,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, table, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTableEXT ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbyteArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jbyte *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetByteArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jshortArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jshort *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetShortArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jintArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jint *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetIntArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jfloatArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jdoubleArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jdouble *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetDoubleArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jbooleanArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jboolean *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetBooleanArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glColorSubTableEXT__IIIII_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint start,
+ jint count,
+ jint format,
+ jint type,
+ jlongArray data)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jlong *ptr5 = NULL;
+ static int isWarned5 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
+ getGLProcAddressHelper("glColorSubTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(data!=NULL)
+ {
+ ptr5 = (*env)->GetLongArrayElements(env, data, &isCopiedArray5);
+ if( isCopiedArray5 == JNI_TRUE && isWarned5==0 ) {
+ isWarned5=1;
+ printf("COPY by glColorSubTableEXT arg: data");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLsizei) start,
+ (GLsizei) count,
+ (GLenum) format,
+ (GLenum) type,
+ (const GLvoid *) ptr5
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, data, ptr5, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableEXT ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3B (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbyteArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jbyte *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetByteArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseByteArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3S (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jshortArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jshort *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetShortArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3I (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jintArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jint *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetIntArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3F (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jfloatArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3D (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jdoubleArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jdouble *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetDoubleArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3Z (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jbooleanArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jboolean *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetBooleanArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseBooleanArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableEXT__III_3J (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint format,
+ jint type,
+ jlongArray table)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLenum, GLvoid *) = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jlong *ptr3 = NULL;
+ static int isWarned3 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLenum, GLvoid *))
+ getGLProcAddressHelper("glGetColorTableEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(table!=NULL)
+ {
+ ptr3 = (*env)->GetLongArrayElements(env, table, &isCopiedArray3);
+ if( isCopiedArray3 == JNI_TRUE && isWarned3==0 ) {
+ isWarned3=1;
+ printf("COPY by glGetColorTableEXT arg: table");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) format,
+ (GLenum) type,
+ (GLvoid *) ptr3
+ );
+
+ if(table!=NULL)
+ {
+ (*env)->ReleaseLongArrayElements(env, table, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfvEXT ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterfvEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jfloatArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLfloat *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLfloat *))
+ getGLProcAddressHelper("glGetColorTableParameterfvEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetColorTableParameterfvEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLfloat *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterivEXT ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glGetColorTableParameterivEXT (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint pname,
+ jintArray params)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLenum, GLint *) = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jint *ptr2 = NULL;
+ static int isWarned2 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLenum, GLint *))
+ getGLProcAddressHelper("glGetColorTableParameterivEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(params!=NULL)
+ {
+ ptr2 = (*env)->GetIntArrayElements(env, params, &isCopiedArray2);
+ if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) {
+ isWarned2=1;
+ printf("COPY by glGetColorTableParameterivEXT arg: params");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLenum) pname,
+ (GLint *) ptr2
+ );
+
+ if(params!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, params, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLockArraysEXT ( GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glLockArraysEXT (
+ JNIEnv *env, jobject obj,
+ jint first,
+ jint count)
+ {
+ static void (CALLBACK *__func_ptr__)(GLint, GLsizei) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLint, GLsizei))
+ getGLProcAddressHelper("glLockArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLint) first,
+ (GLsizei) count
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glUnlockArraysEXT ( void ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glUnlockArraysEXT (
+ JNIEnv *env, jobject obj)
+ {
+ static void (CALLBACK *__func_ptr__)() = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)())
+ getGLProcAddressHelper("glUnlockArraysEXT", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glActiveTextureARB (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glActiveTextureARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClientActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glClientActiveTextureARB (
+ JNIEnv *env, jobject obj,
+ jint texture)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum))
+ getGLProcAddressHelper("glClientActiveTextureARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) texture
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dARB ( GLenum target , GLdouble s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord1dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord1dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord1dvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fARB ( GLenum target , GLfloat s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord1fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord1fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord1fvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1iARB ( GLenum target , GLint s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint))
+ getGLProcAddressHelper("glMultiTexCoord1iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord1ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord1ivARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1sARB ( GLenum target , GLshort s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord1sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord1svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord1svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord1svARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dARB ( GLenum target , GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord2dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord2dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord2dvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fARB ( GLenum target , GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord2fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord2fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord2fvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2iARB ( GLenum target , GLint s , GLint t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord2iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord2ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord2ivARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2sARB ( GLenum target , GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord2sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord2svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord2svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord2svARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t,
+ jdouble r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord3dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord3dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord3dvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t,
+ jfloat r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord3fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord3fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord3fvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3iARB ( GLenum target , GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t,
+ jint r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord3iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t,
+ (GLint) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord3ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord3ivARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3sARB ( GLenum target , GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t,
+ jshort r)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord3sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord3svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord3svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord3svARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4dARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdouble s,
+ jdouble t,
+ jdouble r,
+ jdouble q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble))
+ getGLProcAddressHelper("glMultiTexCoord4dARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLdouble) s,
+ (GLdouble) t,
+ (GLdouble) r,
+ (GLdouble) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4dvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jdoubleArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLdouble *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLdouble *))
+ getGLProcAddressHelper("glMultiTexCoord4dvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetDoubleArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord4dvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLdouble *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseDoubleArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4fARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloat s,
+ jfloat t,
+ jfloat r,
+ jfloat q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat))
+ getGLProcAddressHelper("glMultiTexCoord4fARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLfloat) s,
+ (GLfloat) t,
+ (GLfloat) r,
+ (GLfloat) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4fvARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jfloatArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLfloat *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLfloat *))
+ getGLProcAddressHelper("glMultiTexCoord4fvARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord4fvARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLfloat *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4iARB ( GLenum target , GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4iARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jint s,
+ jint t,
+ jint r,
+ jint q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLint, GLint, GLint, GLint) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLint, GLint, GLint, GLint))
+ getGLProcAddressHelper("glMultiTexCoord4iARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLint) s,
+ (GLint) t,
+ (GLint) r,
+ (GLint) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4ivARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jintArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLint *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLint *))
+ getGLProcAddressHelper("glMultiTexCoord4ivARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetIntArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord4ivARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLint *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseIntArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4sARB ( GLenum target , GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4sARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshort s,
+ jshort t,
+ jshort r,
+ jshort q)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, GLshort, GLshort, GLshort, GLshort) = NULL;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, GLshort, GLshort, GLshort, GLshort))
+ getGLProcAddressHelper("glMultiTexCoord4sARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (GLshort) s,
+ (GLshort) t,
+ (GLshort) r,
+ (GLshort) q
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLFuncJauJNI_glMultiTexCoord4svARB (
+ JNIEnv *env, jobject obj,
+ jint target,
+ jshortArray v)
+ {
+ static void (CALLBACK *__func_ptr__)(GLenum, const GLshort *) = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+ static int isWarned1 = 0;
+
+ if(__func_ptr__==NULL) {
+ __func_ptr__ = (void (CALLBACK *)(GLenum, const GLshort *))
+ getGLProcAddressHelper("glMultiTexCoord4svARB", NULL, 1, 0);
+ if(__func_ptr__==NULL)
+ return;
+ }
+ if(v!=NULL)
+ {
+ ptr1 = (*env)->GetShortArrayElements(env, v, &isCopiedArray1);
+ if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) {
+ isWarned1=1;
+ printf("COPY by glMultiTexCoord4svARB arg: v");
+ }
+ }
+ __func_ptr__ (
+ (GLenum) target,
+ (const GLshort *) ptr1
+ );
+
+ if(v!=NULL)
+ {
+ (*env)->ReleaseShortArrayElements(env, v, ptr1, JNI_ABORT);
+ }
+ }
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
diff --git a/CNativeCode/OpenGL_Win32.c b/CNativeCode/OpenGL_Win32.c
new file mode 100755
index 0000000..a667ce0
--- /dev/null
+++ b/CNativeCode/OpenGL_Win32.c
@@ -0,0 +1,1110 @@
+/*
+ * Original Author: Leo Chan -- 1995
+ *
+ * Adam King 1997
+ * Ported to Win32 from X
+ *
+ * This file takes care of the C implementation of finding the correct
+ * Win32 window, assigning an OpenGL graphics context to it, storing that
+ * graphics context in the java class data structure.
+ *
+ * also contains the use() and swap() functions for double buffering
+ *
+ * September 12, 1997 - Adam King
+ * - Added support for rendering directly into a Canvas ( BIG rewrite )
+ */
+#ifdef _WIN32_
+ #include "winstuff.h"
+#endif
+
+#include <stdio.h>
+#include <jni.h>
+
+/*
+void gl4java_bind_ext(int verbose);
+*/
+
+/*--------------------------------------------------------------------------
+ * here on in is just regular apple pie C
+ */
+
+#include <GL\gl.h>
+#include <gl\glu.h>
+#include <wingdi.h>
+
+static jboolean verbose = JNI_FALSE;
+
+// Color Palette handle
+static HPALETTE hPalette = NULL;
+static HGLRC tempRC;
+
+// Set Pixel Format function - forward declaration
+static void SetDCPixelFormat(HDC hDC, jboolean doubleBuffer, jboolean stereo, jint stencilBits, jboolean offScreenRenderer);
+static HPALETTE GetOpenGLPalette(HDC hDC);
+static HGLRC get_GC( HDC *hDC, jboolean doubleBuffer, jboolean stereo, jint stencilBits, HGLRC shareWith, jboolean offScreenRenderer,
+ int width, int height, HBITMAP *pix);
+
+static int PixelFormatDescriptorFromDc( HDC Dc, PIXELFORMATDESCRIPTOR *Pfd );
+static const char * GetTextualPixelFormatByHDC(HDC hdc);
+static const char * GetTextualPixelFormatByPFD(PIXELFORMATDESCRIPTOR *ppfd, int format);
+
+/* testJavaGLTypes does important implementation plattformspecific checks:
+ *
+ * o do fit X11-Vars in jint (because GLContext stores 'em like that)
+ * o do fit the JNI <-> GL Variables-Type Mapping
+ * o IF ERROR OR VERBOSE -> DUMP JNI,GL Type-Length
+ */
+jboolean testJavaGLTypes(jboolean verbose);
+
+/* testX11Java does important implementation plattformspecific checks:
+ *
+ * o do fit X11-Vars in jint (because GLContext stores 'em like that)
+ */
+jboolean testWin32Java(void);
+
+static void setupDIB(HDC hDCOrig, HDC hDC, HBITMAP * hBitmap, int width, int height);
+static void resizeDIB(HDC hDC, HBITMAP *hOldBitmap, HBITMAP *hBitmap);
+static void setupPalette(HDC hDC);
+
+
+JNIEXPORT jboolean JNICALL
+Java_gl4java_GLContext_openOpenGLNative( JNIEnv *env, jobject obj )
+{
+ jboolean ret = JNI_TRUE;
+
+ jclass cls = 0;
+ jfieldID fpixmapHandle=0;
+ jfieldID foffScreenRenderer;
+ jfieldID faccumSize=0;
+ jfieldID fwindowHandle=0, fpData=0, fdoubleBuffer, fstereoView, fstencilBits;
+ jfieldID fverbose=0;
+ jfieldID fglContext=0;
+ jfieldID fshareWith=0;
+ jfieldID fcreatewinw = 0, fcreatewinh = 0;
+
+ /* these variables will be mapped in the java-object ! */
+ jboolean joffScreenRenderer=JNI_FALSE;
+ jboolean jdoubleBuffer=JNI_TRUE;
+ jboolean jstereoView=JNI_FALSE;
+ jint jstencilBits=0;
+ jint jaccumSize=0;
+ HDC thisWin;
+ HGLRC gc;
+ jint pData=0;
+ HGLRC shareWith=NULL;
+ jint jcreatewinw = 0, jcreatewinh = 0;
+ HBITMAP pix;
+
+ PIXELFORMATDESCRIPTOR pfd;
+
+ cls = (*env)->GetObjectClass(env, obj);
+ if(cls==0)
+ {
+ fprintf(stderr,"oo0.0 cls==0\n");
+ fflush(stderr);
+ ret=JNI_FALSE;
+ }
+
+ if(ret==JNI_TRUE)
+ {
+ fverbose =(*env)->GetStaticFieldID(env, cls, "gljNativeDebug", "Z");
+ if (fverbose == 0)
+ {
+ fprintf(stderr,"oo0.2 fverbose==0\n");
+ fflush(stderr);
+ ret=JNI_FALSE;
+ } else {
+ verbose = (*env)->GetStaticBooleanField(env, cls, fverbose);
+ }
+ }
+
+ if(JNI_TRUE==verbose)
+ {
+ fprintf(stderr, "sizes:\n jint=%d\n HGLRC=%d\n HDC=%d\n",
+ sizeof(jint), sizeof(HGLRC), sizeof(HDC) );
+ fflush(stderr);
+ }
+
+ /* FIRST OF ALL CHECK IF A NATIVE POINTER OR WIN-TYPE FITS IN �jint� */
+ ret = testWin32Java();
+
+ ret = testJavaGLTypes(verbose);
+
+ if(ret==JNI_TRUE) {
+ fpData = (*env)->GetFieldID(env, cls, "pData", "I");
+ if (fpData == 0) ret= JNI_FALSE;
+ else pData =(*env)->GetIntField(env, obj, fpData);
+ }
+ if(JNI_TRUE==verbose)
+ {
+ fprintf(stderr, "received pData : %d\n", (int)pData);
+ }
+
+ if(ret==JNI_TRUE) {
+ fwindowHandle = (*env)->GetFieldID(env, cls, "windowHandle", "I");
+ if (fwindowHandle == 0) ret= JNI_FALSE;
+ }
+
+ if(ret==JNI_TRUE) {
+ fglContext=(*env)->GetFieldID(env, cls, "glContext", "I");
+ if (fglContext == 0) ret= JNI_FALSE;
+ }
+
+ if(ret==JNI_TRUE) {
+ foffScreenRenderer =
+ (*env)->GetFieldID(env, cls, "offScreenRenderer", "Z");
+ if (foffScreenRenderer == 0) ret= JNI_FALSE;
+ else joffScreenRenderer =(*env)->GetBooleanField(env, obj, foffScreenRenderer);
+ }
+
+ if(ret==JNI_TRUE) {
+ fdoubleBuffer = (*env)->GetFieldID(env, cls, "doubleBuffer", "Z");
+ if (fdoubleBuffer == 0) ret= JNI_FALSE;
+ else jdoubleBuffer =(*env)->GetBooleanField(env, obj, fdoubleBuffer);
+ }
+
+ if(ret==JNI_TRUE) {
+ fstereoView = (*env)->GetFieldID(env, cls, "stereoView", "Z");
+ if (fstereoView == 0) ret= JNI_FALSE;
+ else jstereoView =(*env)->GetBooleanField(env, obj, fstereoView);
+ }
+
+ if(ret==JNI_TRUE) {
+ fstencilBits = (*env)->GetFieldID(env, cls, "stencilBits", "I");
+ if (fstencilBits == 0) ret= JNI_FALSE;
+ else jstencilBits =(*env)->GetIntField(env, obj, fstencilBits);
+ }
+
+ if(ret==JNI_TRUE) {
+ faccumSize = (*env)->GetFieldID(env, cls, "accumSize", "I");
+ if (faccumSize == 0) ret= JNI_FALSE;
+ else jaccumSize =(*env)->GetIntField(env, obj, faccumSize);
+ }
+
+ if(ret==JNI_TRUE) {
+ fcreatewinw = (*env)->GetFieldID(env, cls, "createwinw", "I");
+ if (fcreatewinw == 0) ret= JNI_FALSE;
+ else jcreatewinw =(*env)->GetIntField(env, obj, fcreatewinw);
+ }
+
+ if(ret==JNI_TRUE) {
+ fcreatewinh = (*env)->GetFieldID(env, cls, "createwinh", "I");
+ if (fcreatewinh == 0) ret= JNI_FALSE;
+ else jcreatewinh =(*env)->GetIntField(env, obj, fcreatewinh);
+ }
+
+ if(ret==JNI_TRUE) {
+ fshareWith = (*env)->GetFieldID(env, cls, "sharedGLContextNative", "I");
+ if (fshareWith == 0) ret= JNI_FALSE;
+ else shareWith = (HGLRC) (*env)->GetIntField(env, obj, fshareWith);
+ }
+
+ if(ret==JNI_TRUE) {
+ fpixmapHandle = (*env)->GetFieldID(env, cls, "pixmapHandle", "I");
+ if (fpixmapHandle == 0) ret= JNI_FALSE;
+ }
+
+ if(joffScreenRenderer==JNI_TRUE)
+ {
+ jdoubleBuffer = JNI_FALSE;
+ }
+
+ if(JNI_TRUE==verbose && joffScreenRenderer==JNI_TRUE)
+ {
+ fprintf(stderr,"\nGL4Java: (USING OFFSCREEN GLPIXMAP BUFFER,\n\t forced: !doubleBuffer)\n");
+ fflush(stderr);
+ }
+
+ wglMakeCurrent(NULL, NULL);
+
+ /**
+ * with version jdk1.1.6 and later, we are able to use
+ * the java-function straight to achieve the native window
+ * handle ....
+ *
+ * this handle is saved to pData for the windows version !
+ */
+ if( pData == 0)
+ {
+ printf( "get_GC: Error, pData is zero\n");
+ return JNI_FALSE;
+ }
+ if( pData != 0 )
+ thisWin = (HDC)pData;
+
+ /* get the graphics context for this widget */
+ if( (gc = get_GC( &thisWin, jdoubleBuffer, jstereoView, jstencilBits, shareWith,
+ joffScreenRenderer, jcreatewinw, jcreatewinh, &pix)) == 0 )
+ {
+ printf( "getGC error" );
+ return JNI_FALSE;
+ }
+
+ /* fetch the states of doubleBuffer and stereo */
+ (void) PixelFormatDescriptorFromDc( thisWin, &pfd);
+
+ jdoubleBuffer = (pfd.dwFlags & PFD_DOUBLEBUFFER)?JNI_TRUE:JNI_FALSE;
+ if(ret==JNI_TRUE && fdoubleBuffer!=0) {
+ (*env)->SetBooleanField(env, obj, fdoubleBuffer,
+ jdoubleBuffer);
+ }
+
+ jstencilBits = (jint)(pfd.cStencilBits);
+ if(ret==JNI_TRUE && fstencilBits!=0) {
+ (*env)->SetIntField(env, obj,
+ fstencilBits, (jint)jstencilBits);
+ }
+
+ jaccumSize=(jint)(pfd.cAccumRedBits+pfd.cAccumGreenBits+pfd.cAccumBlueBits+pfd.cAccumAlphaBits);
+ if(ret==JNI_TRUE && faccumSize!=0) {
+ (*env)->SetIntField(env, obj,
+ faccumSize, (jint)jaccumSize);
+ }
+
+ if(ret==JNI_TRUE && fwindowHandle!=0) {
+ (*env)->SetIntField(env, obj, fwindowHandle, (jint)thisWin);
+ if(JNI_TRUE==verbose)
+ fprintf(stderr, "go and set windowHandle thisWin : %d; 0x%X\n",
+ (int)thisWin, (int)thisWin);
+ }
+
+ if(ret==JNI_TRUE && fpixmapHandle!=0) {
+ (*env)->SetIntField(env, obj, fpixmapHandle, (jint)pix);
+ if(JNI_TRUE==verbose)
+ fprintf(stderr, "go and set pixmapHandle pix: %d; 0x%X\n",
+ (int)pix, (int)pix);
+ }
+
+ if(ret==JNI_TRUE && fglContext !=0 ) {
+ (*env)->SetIntField(env, obj, fglContext, (jint)gc);
+ if(JNI_TRUE==verbose)
+ fprintf(stderr, "go and set gc : %d, 0x%X\n",
+ (int)gc, (int)gc);
+ }
+
+ /*
+ gl4java_bind_ext(JNI_TRUE==verbose);
+ */
+
+ return ret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_gl4java_GLContext_gljMakeCurrentNative( JNIEnv *env, jobject obj,
+ jint disp,
+ jint thisWin,
+ jint glContext)
+{
+ jboolean ret = JNI_TRUE;
+
+ if( !thisWin )
+ {
+ return JNI_FALSE;
+ }
+
+ if( !glContext )
+ {
+ return JNI_FALSE;
+ }
+
+ if ( ret==JNI_TRUE && !wglMakeCurrent((HDC)thisWin, (HGLRC)glContext) )
+ {
+ return JNI_FALSE;
+ }
+ return JNI_TRUE;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_gl4java_GLContext_gljFreeNative( JNIEnv *env, jobject obj,
+ jint disp,
+ jint thisWin,
+ jint glContext
+ )
+{
+ (void)thisWin;
+ (void)glContext;
+ (void)disp;
+
+ if ( ! wglMakeCurrent( NULL, NULL ) )
+ {
+ fprintf(stderr, "gljFree failed\n");
+ fflush(stderr);
+ return JNI_FALSE;
+ }
+ return JNI_TRUE;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_gl4java_GLContext_gljDestroyNative( JNIEnv *env, jobject obj )
+{
+ jboolean ret = JNI_TRUE;
+
+ jclass cls = 0;
+ jfieldID fwindowHandle=0, fpixmapHandle;
+ jfieldID fglContext=0;
+ jfieldID foffScreenRenderer;
+
+ jboolean joffScreenRenderer=JNI_FALSE;
+ HBITMAP pix;
+ HDC thisWin;
+ HGLRC gc;
+
+ cls = (*env)->GetObjectClass(env, obj);
+ if(cls==0)
+ {
+ ret=JNI_FALSE;
+ }
+
+ if(ret==JNI_TRUE) {
+ fwindowHandle = (*env)->GetFieldID(env, cls, "windowHandle", "I");
+ if (fwindowHandle == 0) ret= JNI_FALSE;
+ else thisWin =(HDC) (*env)->GetIntField(env, obj, fwindowHandle);
+ }
+
+ if(ret==JNI_TRUE) {
+ fglContext=(*env)->GetFieldID(env, cls, "glContext", "I");
+ if (fglContext == 0) ret= JNI_FALSE;
+ else gc =(HGLRC)(*env)->GetIntField(env, obj, fglContext);
+ }
+
+
+ if(ret==JNI_TRUE) {
+ fpixmapHandle = (*env)->GetFieldID(env, cls, "pixmapHandle", "I");
+ if (fpixmapHandle == 0) ret= JNI_FALSE;
+ else pix =(HBITMAP)(*env)->GetIntField(env, obj, fpixmapHandle);
+ }
+
+ if(ret==JNI_TRUE) {
+ foffScreenRenderer =
+ (*env)->GetFieldID(env, cls, "offScreenRenderer", "Z");
+ if (foffScreenRenderer == 0) ret= JNI_FALSE;
+ else joffScreenRenderer =(*env)->GetBooleanField(env, obj, foffScreenRenderer);
+ }
+
+
+ if(ret==JNI_TRUE)
+ {
+ if ( gc == 0 )
+ {
+ if(JNI_TRUE==verbose)
+ {
+ fprintf(stderr, "gljDestroy failed, GL context is 0\n");
+ fflush(stderr);
+ }
+ ret = JNI_FALSE;
+ }
+
+ if ( ret==JNI_TRUE && ! wglMakeCurrent( NULL, NULL ) )
+ {
+ fprintf(stderr, "gljDestroy failed (free)\n");
+ fflush(stderr);
+ ret=JNI_FALSE;
+ } else if( ret == JNI_TRUE) {
+ wglDeleteContext(gc);
+ }
+
+ if(joffScreenRenderer==JNI_TRUE)
+ {
+ if(pix!=0)
+ {
+ DeleteObject(pix);
+ pix=0;
+ }
+ if(thisWin!=0)
+ {
+ DeleteDC(thisWin);
+ thisWin=0;
+ }
+ }
+ }
+
+ if(ret==JNI_TRUE)
+ {
+ gc = 0;
+ thisWin = 0;
+ }
+
+ if(ret==JNI_TRUE && fwindowHandle!=0) {
+ (*env)->SetIntField(env, obj, fwindowHandle, (jint)thisWin);
+ }
+
+ if(ret==JNI_TRUE && fglContext) {
+ (*env)->SetIntField(env, obj, fglContext, (jint)gc);
+ }
+
+
+ if(ret==JNI_TRUE && fpixmapHandle!=0) {
+ (*env)->SetIntField(env, obj, fpixmapHandle, (jint)pix);
+ }
+
+ return ret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_gl4java_GLContext_gljSwapNative( JNIEnv *env, jobject obj,
+ jint disp,
+ jint thisWin,
+ jint glContext,
+ jboolean doubleBuffer
+ )
+{
+ jboolean ret = JNI_TRUE;
+
+ (void)glContext;
+ (void)disp;
+
+ if( !thisWin )
+ {
+ fprintf(stderr,"Swap does not got the window ...\n");
+ return JNI_FALSE;
+ }
+
+ if( doubleBuffer==JNI_TRUE )
+ {
+ if( SwapBuffers( (HDC)thisWin ) == FALSE )
+ {
+ /* Error in Win2000 implementation :o)
+ * printf( "Error in swap buffer!\n" );
+ */
+ return JNI_FALSE;
+ }
+ } else {
+ glFlush();
+ }
+ return ret;
+}
+
+static HGLRC get_GC( HDC * hDC, jboolean doubleBuffer, jboolean stereo, jint stencilBits, HGLRC shareWith, jboolean offScreenRenderer,
+ int width, int height, HBITMAP *pix)
+
+{
+ const char * text=0;
+ HDC hDCOrig = 0;
+
+
+ if( *hDC == 0 )
+ printf( "get_GC: Error, HDC is zero\n");
+
+ // Select the pixel format
+ if(offScreenRenderer)
+ {
+ hDCOrig = *hDC;
+ *hDC = CreateCompatibleDC(hDCOrig);
+ // setupDIB(*hDC, pix, width, height);
+ setupDIB(hDCOrig, *hDC, pix, width, height);
+ /* SetDCPixelFormat(hDCOffScr, doubleBuffer, stereo, stencilBits, offScreenRenderer); */
+ /* setupPalette(hDC); USE MY PROC */
+ }
+
+ SetDCPixelFormat(*hDC, doubleBuffer, stereo, stencilBits, offScreenRenderer);
+
+ // Create palette if needed
+ hPalette = GetOpenGLPalette(*hDC);
+
+ tempRC = wglCreateContext( *hDC );
+
+ if(verbose==JNI_TRUE)
+ {
+ fprintf(stderr,"\n\nPIXELFORMAT OF GL-Context SETTINGS:\n");
+ text=GetTextualPixelFormatByHDC(*hDC);
+ fprintf(stderr,text);
+ }
+
+ /* check if the context could be created */
+ if( tempRC == NULL ) {
+ fprintf(stderr, "getGC context could NOT be created \n");
+ return( 0 );
+ }
+
+ /* associated the context with the X window */
+ if( wglMakeCurrent( *hDC, tempRC ) == FALSE) {
+ fprintf(stderr,"wglMakeCurrent(%d,%d) failed on new context!!!\n",(int)*hDC,(int)tempRC);
+ fprintf(stderr,"Error code = %d\n",(int)GetLastError());
+ wglMakeCurrent(NULL, NULL);
+ wglDeleteContext( tempRC );
+ return( 0 );
+ }
+
+ if(shareWith!=NULL && wglShareLists(shareWith, tempRC)==FALSE)
+ {
+ fprintf(stderr,"\nERROR: Could not share lists between the new and the given GLContext (Win32Native)!\n");
+ fprintf(stderr,"Error code = %d\n",(int)GetLastError());
+ wglMakeCurrent(NULL, NULL);
+ wglDeleteContext( tempRC );
+ return( 0 );
+ }
+
+ if(JNI_TRUE==verbose)
+ printf( "HGLRC (glContext) created: %d\n", tempRC );
+
+ return tempRC;
+}
+
+// Select the pixel format for a given device context
+static void SetDCPixelFormat(HDC hDC, jboolean doubleBuffer, jboolean stereo, jint stencilBits, jboolean offScreenRenderer)
+{
+ int nPixelFormat=0;
+ const char * text=0;
+
+ static PIXELFORMATDESCRIPTOR pfd = {
+ sizeof(PIXELFORMATDESCRIPTOR), // Size of this structure
+ 1, // Version of this structure
+ 0, // will be defined later !!!!
+ PFD_TYPE_RGBA, // RGBA Color mode
+ 24, // Want 24bit color
+ 0,0,0,0,0,0, // Not used to select mode
+ 0,0, // Not used to select mode
+ 0,0,0,0,0, // Not used to select mode
+ 32, // Size of depth buffer
+ 0, // Not used to select mode
+ 0, // Not used to select mode
+ PFD_MAIN_PLANE, // Draw in main plane
+ 0, // Not used to select mode
+ 0,0,0 }; // Not used to select mode
+
+
+ // customize dw_flags
+ DWORD dw_flags = PFD_SUPPORT_OPENGL | PFD_GENERIC_ACCELERATED; // Support accelerated OpenGL calls in window
+
+ if(offScreenRenderer)
+ dw_flags |= PFD_DRAW_TO_BITMAP; // Draw to Bitmap
+ else
+ dw_flags |= PFD_DRAW_TO_WINDOW; // Draw to Window (not to bitmap)
+
+
+ if(doubleBuffer==JNI_TRUE)
+ dw_flags |= PFD_DOUBLEBUFFER ; // Double buffered is optional
+
+ if(stereo==JNI_TRUE)
+ dw_flags |= PFD_STEREO ; // Stereo is optional
+
+ pfd.dwFlags = dw_flags;
+
+ pfd.cColorBits = GetDeviceCaps(hDC, BITSPIXEL);
+
+ if(stencilBits>0)
+ pfd.cStencilBits = (BYTE) stencilBits;
+
+ if(verbose==JNI_TRUE)
+ {
+ fprintf(stderr,"\n\nUSER CHOOSED PIXELFORMAT (TRYING):\n");
+ text=GetTextualPixelFormatByPFD(&pfd, 0);
+ fprintf(stderr,text);
+ }
+
+ // Choose a pixel format that best matches that described in pfd
+ if( hDC == 0 )
+ printf( "SetDCPixelFormat: Error, no HDC-Contex is given\n");
+ else
+ nPixelFormat = ChoosePixelFormat(hDC, &pfd);
+
+ if( nPixelFormat == 0 )
+ printf( "SetDCPixelFormat: Error with PixelFormat\n" );
+
+ // Set the pixel format for the device context
+ if( SetPixelFormat(hDC, nPixelFormat, &pfd) == FALSE)
+ printf( "setpixel failed\n" );
+}
+
+
+// If necessary, creates a 3-3-2 palette for the device context listed.
+static HPALETTE GetOpenGLPalette(HDC hDC)
+{
+ HPALETTE hRetPal = NULL; // Handle to palette to be created
+ PIXELFORMATDESCRIPTOR pfd; // Pixel Format Descriptor
+ LOGPALETTE *pPal; // Pointer to memory for logical palette
+ int nPixelFormat; // Pixel format index
+ int nColors; // Number of entries in palette
+ int i; // Counting variable
+ BYTE RedRange,GreenRange,BlueRange;
+ // Range for each color entry (7,7,and 3)
+
+
+ // Get the pixel format index and retrieve the pixel format description
+ nPixelFormat = GetPixelFormat(hDC);
+ DescribePixelFormat(hDC, nPixelFormat, sizeof(PIXELFORMATDESCRIPTOR), &pfd);
+
+ // Does this pixel format require a palette? If not, do not create a
+ // palette and just return NULL
+ if(!(pfd.dwFlags & PFD_NEED_PALETTE))
+ return NULL;
+
+ // Number of entries in palette. 8 bits yeilds 256 entries
+ nColors = 1 << pfd.cColorBits;
+
+ // Allocate space for a logical palette structure plus all the palette entries
+ pPal = (LOGPALETTE*)malloc(sizeof(LOGPALETTE) + nColors*sizeof(PALETTEENTRY));
+
+ // Fill in palette header
+ pPal->palVersion = 0x300; // Windows 3.0
+ pPal->palNumEntries = nColors; // table size
+
+ // Build mask of all 1's. This creates a number represented by having
+ // the low order x bits set, where x = pfd.cRedBits, pfd.cGreenBits, and
+ // pfd.cBlueBits.
+ RedRange = (1 << pfd.cRedBits) -1;
+ GreenRange = (1 << pfd.cGreenBits) - 1;
+ BlueRange = (1 << pfd.cBlueBits) -1;
+
+ // Loop through all the palette entries
+ for(i = 0; i < nColors; i++)
+ {
+ // Fill in the 8-bit equivalents for each component
+ pPal->palPalEntry[i].peRed = (i >> pfd.cRedShift) & RedRange;
+ pPal->palPalEntry[i].peRed = (unsigned char)(
+ (double) pPal->palPalEntry[i].peRed * 255.0 / RedRange);
+
+ pPal->palPalEntry[i].peGreen = (i >> pfd.cGreenShift) & GreenRange;
+ pPal->palPalEntry[i].peGreen = (unsigned char)(
+ (double)pPal->palPalEntry[i].peGreen * 255.0 / GreenRange);
+
+ pPal->palPalEntry[i].peBlue = (i >> pfd.cBlueShift) & BlueRange;
+ pPal->palPalEntry[i].peBlue = (unsigned char)(
+ (double)pPal->palPalEntry[i].peBlue * 255.0 / BlueRange);
+
+ pPal->palPalEntry[i].peFlags = (unsigned char) NULL;
+ }
+
+
+ // Create the palette
+ hRetPal = CreatePalette(pPal);
+
+ // Go ahead and select and realize the palette for this device context
+ SelectPalette(hDC,hRetPal,FALSE);
+ RealizePalette(hDC);
+
+ // Free the memory used for the logical palette structure
+ free(pPal);
+
+ // Return the handle to the new palette
+ return hRetPal;
+}
+
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLContext_gljResizeNative( JNIEnv *env, jobject obj,
+ jboolean isOwnWindow,
+ jint disp, jint thisWin,
+ jint width, jint height)
+{
+}
+
+static jboolean testWin32Java()
+{
+ jboolean ret=JNI_TRUE;
+
+ /* NON DEPENDENCE CHECKS */
+
+ /* FIRST OF ALL CHECK IF A NATIVE POINTER OR WIN32-TYPE FITS IN �jint� */
+
+ if( sizeof(jint) < sizeof(int *) )
+ {
+ fprintf(stderr,"(int *) fits not in jint\n");
+ ret = JNI_FALSE;
+ }
+
+ if( sizeof(jint) < sizeof(HDC) )
+ {
+ fprintf(stderr,"HDC fits not in jint\n");
+ ret = JNI_FALSE;
+ }
+
+ if( sizeof(jint) < sizeof(HGLRC) )
+ {
+ fprintf(stderr,"HGLRC fits not in jint\n");
+ ret = JNI_FALSE;
+ }
+
+ if(ret==JNI_FALSE)
+ {
+ fflush(stderr);
+ }
+
+ return ret;
+}
+
+
+static void
+PrintMessage( const char *Format, ... )
+{
+ va_list ArgList;
+ char Buffer[256];
+
+ va_start(ArgList, Format);
+ vsprintf(Buffer, Format, ArgList);
+ va_end(ArgList);
+
+ fprintf(stderr, Buffer);
+}
+
+
+static int
+PixelFormatDescriptorFromDc( HDC Dc, PIXELFORMATDESCRIPTOR *Pfd )
+{
+ int PfdIndex;
+
+ if ( 0 < (PfdIndex = GetPixelFormat( Dc )) )
+ {
+ if ( 0 < DescribePixelFormat( Dc, PfdIndex, sizeof(*Pfd), Pfd ) )
+ {
+ return(PfdIndex);
+ }
+ else
+ {
+ PrintMessage("Could not get a description of pixel format %d\n",
+ PfdIndex );
+ }
+ }
+ else
+ {
+ PrintMessage("Could not get pixel format for Dc 0x%08lX\n", Dc );
+ }
+ return( 0 );
+}
+
+
+static const char * GetTextualPixelFormatByPFD(PIXELFORMATDESCRIPTOR *ppfd, int format)
+{
+ static char buffer[2000];
+ char line[200];
+
+ sprintf(buffer,"Pixel format %d\n", format);
+ sprintf(line," dwFlags - 0x%x\n", ppfd->dwFlags);
+ if (ppfd->dwFlags & PFD_DOUBLEBUFFER) { strcat(buffer, line); sprintf(line,"\tPFD_DOUBLEBUFFER\n "); }
+ if (ppfd->dwFlags & PFD_STEREO) { strcat(buffer, line); sprintf(line,"\tPFD_STEREO\n "); }
+ if (ppfd->dwFlags & PFD_DRAW_TO_WINDOW) { strcat(buffer, line); sprintf(line,"\tPFD_DRAW_TO_WINDOW\n "); }
+ if (ppfd->dwFlags & PFD_DRAW_TO_BITMAP) { strcat(buffer, line); sprintf(line,"\tPFD_DRAW_TO_BITMAP\n "); }
+ if (ppfd->dwFlags & PFD_SUPPORT_GDI) { strcat(buffer, line); sprintf(line,"\tPFD_SUPPORT_GDI\n "); }
+ if (ppfd->dwFlags & PFD_SUPPORT_OPENGL) { strcat(buffer, line); sprintf(line,"\tPFD_SUPPORT_OPENGL\n "); }
+ if (ppfd->dwFlags & PFD_GENERIC_ACCELERATED) { strcat(buffer, line); sprintf(line,"\tPFD_GENERIC_ACCELERATED\n "); }
+ if (ppfd->dwFlags & PFD_GENERIC_FORMAT) { strcat(buffer, line); sprintf(line,"\tPFD_GENERIC_FORMAT\n "); }
+ if (ppfd->dwFlags & PFD_NEED_PALETTE) { strcat(buffer, line); sprintf(line,"\tPFD_NEED_PALETTE\n "); }
+ if (ppfd->dwFlags & PFD_NEED_SYSTEM_PALETTE) { strcat(buffer, line); sprintf(line,"\tPFD_NEED_SYSTEM_PALETTE\n "); }
+ strcat(buffer, line); sprintf(line,"\n");
+ strcat(buffer, line); sprintf(line," iPixelType - %d\n", ppfd->iPixelType);
+ if (ppfd->iPixelType == PFD_TYPE_RGBA) { strcat(buffer, line); sprintf(line,"\tPGD_TYPE_RGBA\n"); }
+ if (ppfd->iPixelType == PFD_TYPE_COLORINDEX) { strcat(buffer, line); sprintf(line,"\tPGD_TYPE_COLORINDEX\n"); }
+ strcat(buffer, line); sprintf(line," cColorBits - %d\n", ppfd->cColorBits);
+ strcat(buffer, line); sprintf(line," cRedBits - %d\n", ppfd->cRedBits);
+ strcat(buffer, line); sprintf(line," cRedShift - %d\n", ppfd->cRedShift);
+ strcat(buffer, line); sprintf(line," cGreenBits - %d\n", ppfd->cGreenBits);
+ strcat(buffer, line); sprintf(line," cGreenShift - %d\n", ppfd->cGreenShift);
+ strcat(buffer, line); sprintf(line," cBlueBits - %d\n", ppfd->cBlueBits);
+ strcat(buffer, line); sprintf(line," cBlueShift - %d\n", ppfd->cBlueShift);
+ strcat(buffer, line); sprintf(line," cAlphaBits - %d\n", ppfd->cAlphaBits);
+ strcat(buffer, line); sprintf(line," cAlphaShift - 0x%x\n", ppfd->cAlphaShift);
+ strcat(buffer, line); sprintf(line," cAccumBits - %d\n", ppfd->cAccumBits);
+ strcat(buffer, line); sprintf(line," cAccumRedBits - %d\n", ppfd->cAccumRedBits);
+ strcat(buffer, line); sprintf(line," cAccumGreenBits - %d\n", ppfd->cAccumGreenBits);
+ strcat(buffer, line); sprintf(line," cAccumBlueBits - %d\n", ppfd->cAccumBlueBits);
+ strcat(buffer, line); sprintf(line," cAccumAlphaBits - %d\n", ppfd->cAccumAlphaBits);
+ strcat(buffer, line); sprintf(line," cDepthBits - %d\n", ppfd->cDepthBits);
+ strcat(buffer, line); sprintf(line," cStencilBits - %d\n", ppfd->cStencilBits);
+ strcat(buffer, line); sprintf(line," cAuxBuffers - %d\n", ppfd->cAuxBuffers);
+ strcat(buffer, line); sprintf(line," iLayerType - %d\n", ppfd->iLayerType);
+ strcat(buffer, line); sprintf(line," bReserved - %d\n", ppfd->bReserved);
+ strcat(buffer, line); sprintf(line," dwLayerMask - 0x%x\n", ppfd->dwLayerMask);
+ strcat(buffer, line); sprintf(line," dwVisibleMask - 0x%x\n", ppfd->dwVisibleMask);
+ strcat(buffer, line); sprintf(line," dwDamageMask - 0x%x\n", ppfd->dwDamageMask);
+ strcat(buffer, line);
+ return buffer;
+}
+
+static const char * GetTextualPixelFormatByHDC(HDC hdc)
+{
+ PIXELFORMATDESCRIPTOR pfd, *ppfd;
+ int format;
+
+ ppfd = &pfd;
+ format = PixelFormatDescriptorFromDc( hdc, ppfd );
+
+ return GetTextualPixelFormatByPFD(ppfd, format);
+}
+
+/*****************************************************************/
+
+/* Struct used to manage color ramps */
+struct colorIndexState {
+ GLfloat amb[3]; /* ambient color / bottom of ramp */
+ GLfloat diff[3]; /* diffuse color / middle of ramp */
+ GLfloat spec[3]; /* specular color / top of ramp */
+ GLfloat ratio; /* ratio of diffuse to specular in ramp */
+ GLint indexes[3]; /* where ramp was placed in palette */
+};
+#define NUM_COLORS (sizeof(colors) / sizeof(colors[0]))
+struct colorIndexState colors[] = {
+ {
+ { 0.0F, 0.0F, 0.0F },
+ { 0.1F, 0.6F, 0.3F },
+ { 1.0F, 1.0F, 1.0F },
+ 0.75F, { 0, 0, 0 },
+ },
+ {
+ { 0.0F, 0.0F, 0.0F },
+ { 0.0F, 0.2F, 0.5F },
+ { 1.0F, 1.0F, 1.0F },
+ 0.75F, { 0, 0, 0 },
+ },
+ {
+ { 0.0F, 0.05F, 0.05F },
+ { 0.6F, 0.0F, 0.8F },
+ { 1.0F, 1.0F, 1.0F },
+ 0.75F, { 0, 0, 0 },
+ },
+};
+
+
+static void
+setupDIB(HDC hDCOrig, HDC hDC, HBITMAP * hBitmap, int width, int height)
+{
+ BITMAPINFO *bmInfo;
+ BITMAPINFOHEADER *bmHeader;
+ UINT usage;
+ VOID *base;
+ int bmiSize;
+ int bitsPerPixel;
+ HBITMAP hOldBitmap=0;
+
+ bmiSize = sizeof(*bmInfo);
+ bitsPerPixel = GetDeviceCaps(hDC, BITSPIXEL);
+
+ switch (bitsPerPixel) {
+ case 8:
+ // bmiColors is 256 WORD palette indices
+ bmiSize += (256 * sizeof(WORD)) - sizeof(RGBQUAD);
+ break;
+ case 16:
+ // bmiColors is 3 WORD component masks
+ bmiSize += (3 * sizeof(DWORD)) - sizeof(RGBQUAD);
+ break;
+ case 24:
+ case 32:
+ default:
+ // bmiColors not used
+ break;
+ }
+
+ bmInfo = (BITMAPINFO *) calloc(1, bmiSize);
+ bmHeader = &bmInfo->bmiHeader;
+
+ bmHeader->biSize = sizeof(*bmHeader);
+ bmHeader->biWidth = width;
+ bmHeader->biHeight = height;
+ bmHeader->biPlanes = 1; // must be 1
+ bmHeader->biBitCount = bitsPerPixel;
+ bmHeader->biXPelsPerMeter = 0;
+ bmHeader->biYPelsPerMeter = 0;
+ bmHeader->biClrUsed = 0; // all are used
+ bmHeader->biClrImportant = 0; // all are important
+
+ switch (bitsPerPixel) {
+ case 8:
+ bmHeader->biCompression = BI_RGB;
+ bmHeader->biSizeImage = 0;
+ usage = DIB_PAL_COLORS;
+ // bmiColors is 256 WORD palette indices
+ {
+ WORD *palIndex = (WORD *) &bmInfo->bmiColors[0];
+ int i;
+
+ for (i=0; i<256; i++) {
+ palIndex[i] = i;
+ }
+ }
+ break;
+ case 16:
+ bmHeader->biCompression = BI_RGB;
+ bmHeader->biSizeImage = 0;
+ usage = DIB_RGB_COLORS;
+ // bmiColors is 3 WORD component masks
+ {
+ DWORD *compMask = (DWORD *) &bmInfo->bmiColors[0];
+
+ compMask[0] = 0xF800;
+ compMask[1] = 0x07E0;
+ compMask[2] = 0x001F;
+ }
+ break;
+ case 24:
+ case 32:
+ default:
+ bmHeader->biCompression = BI_RGB;
+ bmHeader->biSizeImage = 0;
+ usage = DIB_RGB_COLORS;
+ // bmiColors not used
+ break;
+ }
+
+ *hBitmap = CreateDIBSection(hDC, bmInfo, usage, &base, NULL, 0);
+ if (*hBitmap == NULL) {
+ (void) MessageBox(WindowFromDC(hDC),
+ "Failed to create DIBSection.",
+ "OpenGL application error",
+ MB_ICONERROR | MB_OK);
+ exit(1);
+ }
+
+ hOldBitmap = SelectObject(hDC, *hBitmap);
+ if(hOldBitmap!=0)
+ DeleteObject(hOldBitmap);
+
+ free(bmInfo);
+}
+
+
+/*
+static void
+setupDIB(HDC hDCOrig, HDC hDC, HBITMAP * hBitmap, int width, int height)
+{
+ HBITMAP hOldBitmap=0;
+
+ *hBitmap = CreateCompatibleBitmap( hDCOrig, width, height );
+ if (*hBitmap == NULL) {
+ fprintf(stderr,"Failed to create CreateCompatibleBitmap! \n");
+ fflush(stderr);
+ return;
+ }
+
+ hOldBitmap = SelectObject(hDC, *hBitmap);
+ if(hOldBitmap!=0)
+ DeleteObject(hOldBitmap);
+}
+*/
+
+
+static void resizeDIB(HDC hDC, HBITMAP *hOldBitmap, HBITMAP *hBitmap)
+{
+ /*
+ SelectObject(hDC, *hOldBitmap);
+ DeleteObject(*hBitmap);
+ setupDIB(hDC, hBitmap);
+ */
+}
+
+static void setupPalette(HDC hDC)
+{
+ PIXELFORMATDESCRIPTOR pfd;
+ LOGPALETTE* pPal;
+ int pixelFormat = GetPixelFormat(hDC);
+ int paletteSize;
+
+ DescribePixelFormat(hDC, pixelFormat, sizeof(PIXELFORMATDESCRIPTOR), &pfd);
+
+ /*
+ ** Determine if a palette is needed and if so what size.
+ */
+ if (pfd.dwFlags & PFD_NEED_PALETTE) {
+ paletteSize = 1 << pfd.cColorBits;
+ } else if (pfd.iPixelType == PFD_TYPE_COLORINDEX) {
+ paletteSize = 4096;
+ } else {
+ return;
+ }
+
+ pPal = (LOGPALETTE*)
+ malloc(sizeof(LOGPALETTE) + paletteSize * sizeof(PALETTEENTRY));
+ pPal->palVersion = 0x300;
+ pPal->palNumEntries = paletteSize;
+
+ if (pfd.iPixelType == PFD_TYPE_RGBA) {
+ /*
+ ** Fill the logical paletee with RGB color ramps
+ */
+ int redMask = (1 << pfd.cRedBits) - 1;
+ int greenMask = (1 << pfd.cGreenBits) - 1;
+ int blueMask = (1 << pfd.cBlueBits) - 1;
+ int i;
+
+ for (i=0; i<paletteSize; ++i) {
+ pPal->palPalEntry[i].peRed =
+ (((i >> pfd.cRedShift) & redMask) * 255) / redMask;
+ pPal->palPalEntry[i].peGreen =
+ (((i >> pfd.cGreenShift) & greenMask) * 255) / greenMask;
+ pPal->palPalEntry[i].peBlue =
+ (((i >> pfd.cBlueShift) & blueMask) * 255) / blueMask;
+ pPal->palPalEntry[i].peFlags = 0;
+ }
+ } else {
+ /*
+ ** Fill the logical palette with color ramps.
+ **
+ ** Set up the logical palette so that it can be realized
+ ** into the system palette as an identity palette.
+ **
+ ** 1) The default static entries should be present and at the right
+ ** location. The easiest way to do this is to grab them from
+ ** the current system palette.
+ **
+ ** 2) All non-static entries should be initialized to unique values.
+ ** The easiest way to do this is to ensure that all of the non-static
+ ** entries have the PC_NOCOLLAPSE flag bit set.
+ */
+ int numRamps = NUM_COLORS;
+ int rampSize = (paletteSize - 20) / numRamps;
+ int extra = (paletteSize - 20) - (numRamps * rampSize);
+ int i, r;
+
+ /*
+ ** Initialize static entries by copying them from the
+ ** current system palette.
+ */
+ GetSystemPaletteEntries(hDC, 0, paletteSize, &pPal->palPalEntry[0]);
+
+ /*
+ ** Fill in non-static entries with desired colors.
+ */
+ for (r=0; r<numRamps; ++r) {
+ int rampBase = r * rampSize + 10;
+ PALETTEENTRY *pe = &pPal->palPalEntry[rampBase];
+ int diffSize = (int) (rampSize * colors[r].ratio);
+ int specSize = rampSize - diffSize;
+
+ for (i=0; i<rampSize; ++i) {
+ GLfloat *c0, *c1;
+ GLint a;
+
+ if (i < diffSize) {
+ c0 = colors[r].amb;
+ c1 = colors[r].diff;
+ a = (i * 255) / (diffSize - 1);
+ } else {
+ c0 = colors[r].diff;
+ c1 = colors[r].spec;
+ a = ((i - diffSize) * 255) / (specSize - 1);
+ }
+
+ pe[i].peRed = (BYTE) (a * (c1[0] - c0[0]) + 255 * c0[0]);
+ pe[i].peGreen = (BYTE) (a * (c1[1] - c0[1]) + 255 * c0[1]);
+ pe[i].peBlue = (BYTE) (a * (c1[2] - c0[2]) + 255 * c0[2]);
+ pe[i].peFlags = PC_NOCOLLAPSE;
+ }
+
+ colors[r].indexes[0] = rampBase;
+ colors[r].indexes[1] = rampBase + (diffSize-1);
+ colors[r].indexes[2] = rampBase + (rampSize-1);
+ }
+
+ /*
+ ** Initialize any remaining non-static entries.
+ */
+ for (i=0; i<extra; ++i) {
+ int index = numRamps*rampSize+10+i;
+ PALETTEENTRY *pe = &pPal->palPalEntry[index];
+
+ pe->peRed = (BYTE) 0;
+ pe->peGreen = (BYTE) 0;
+ pe->peBlue = (BYTE) 0;
+ pe->peFlags = PC_NOCOLLAPSE;
+ }
+ }
+
+ hPalette = CreatePalette(pPal);
+ free(pPal);
+
+ if (hPalette) {
+ SelectPalette(hDC, hPalette, FALSE);
+ RealizePalette(hDC);
+ }
+}
+
+
diff --git a/CNativeCode/OpenGL_Win32_JDirect.c b/CNativeCode/OpenGL_Win32_JDirect.c
new file mode 100755
index 0000000..6b46874
--- /dev/null
+++ b/CNativeCode/OpenGL_Win32_JDirect.c
@@ -0,0 +1,182 @@
+/*
+ * Original Author: Leo Chan -- 1995
+ *
+ * Adam King 1997
+ * Ported to Win32 from X
+ *
+ * Ron Cemer 1999
+ * Ported to MS Java VM, which supports JDirect instead of JNI
+ *
+ * This file takes care of the C implementation of finding the correct
+ * Win32 window, assigning an OpenGL graphics context to it, storing that
+ * graphics context in the java class data structure.
+ *
+ * also contains the use() and swap() functions for double buffering
+ *
+ * September 12, 1997 - Adam King
+ * - Added support for rendering directly into a Canvas ( BIG rewrite )
+ *
+ * Currently, only the windows special overlapping window procs are
+ * implemented here !
+ *
+ * The other procs are implemented with JNI !
+ */
+
+#ifdef _WIN32_
+ #include "winstuff.h"
+#endif
+
+#include "GL/gl.h"
+
+#include <stdio.h>
+
+/*--------------------------------------------------------------------------
+ * here on in is just regular apple pie C
+ */
+
+#include <GL\gl.h>
+#include <gl\glu.h>
+#include <wingdi.h>
+
+#define CLASS_NAME "GL4JavaOglRenderingWindowClass"
+#define WINDOW_NAME "GL4JavaOglRenderingWindow"
+
+#define MAX_WINDOWS 1024
+
+static int verbose = 0;
+static LONG classregistered = 0;
+
+static LRESULT CALLBACK CallWndProc(int nCode,WPARAM wParam,LPARAM lParam);
+static LRESULT CALLBACK CallWndRetProc(int nCode,WPARAM wParam,LPARAM lParam);
+
+BOOL APIENTRY DllMain
+ (HANDLE hModule,
+ DWORD ul_reason_for_call,
+ LPVOID lpReserved)
+ {
+ switch (ul_reason_for_call)
+ {
+ case DLL_PROCESS_ATTACH:
+ /* Initialize various things the first time
+ that we attach this DLL to a process. */
+ if (InterlockedIncrement(&classregistered) == 1)
+ {
+ WNDCLASS wndclass;
+ LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
+
+ wndclass.style = CS_GLOBALCLASS | CS_SAVEBITS;
+ wndclass.lpfnWndProc = (WNDPROC)WindowProc;
+ wndclass.cbClsExtra = 0;
+ wndclass.cbWndExtra = 0;
+ wndclass.hInstance = hModule;
+ wndclass.hIcon = LoadIcon(NULL,IDI_APPLICATION);
+ wndclass.hCursor = LoadCursor(NULL,IDC_ARROW);
+ wndclass.hbrBackground = (HBRUSH)GetStockObject(LTGRAY_BRUSH);
+ wndclass.lpszMenuName = NULL;
+ wndclass.lpszClassName = CLASS_NAME;
+ RegisterClass(&wndclass);
+ }
+ else
+ InterlockedDecrement(&classregistered);
+ break;
+ case DLL_PROCESS_DETACH:
+ break;
+ case DLL_THREAD_ATTACH:
+ break;
+ case DLL_THREAD_DETACH:
+ break;
+ }
+ return TRUE;
+ } /* DllMain() */
+
+// Select the pixel format for a given device context
+
+static LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
+ {
+ return DefWindowProc(hwnd,uMsg,wParam,lParam);
+ } /* WindowProc() */
+
+__declspec(dllexport) void OGLWindowMsgPumpJDirect(void)
+ {
+ MSG msg;
+
+ while (PeekMessage(&msg,NULL,0,0,PM_REMOVE))
+ {
+ TranslateMessage(&msg);
+ DispatchMessage(&msg);
+ }
+ } /* OGLWindowMsgPumpJDirect() */
+
+__declspec(dllexport) void moveOGLWindowNativeJDirect(int _hdc, int x, int y, int width, int height)
+ {
+ HWND hwnd, hwndParent;
+ HDC hdc = (HDC)_hdc;
+ RECT rect;
+ int parentx = 0, parenty = 0;
+ int insetsleft = 0, insetstop = 0;
+
+ if (hdc != NULL)
+ {
+ if ((hwnd = WindowFromDC(hdc)) != NULL)
+ {
+ if ((hwndParent = GetParent(hwnd)) != NULL)
+ {
+ GetWindowRect(hwndParent,&rect);
+ parentx = rect.left;
+ parenty = rect.top;
+ }
+ else
+ parentx = parenty = 0;
+ MoveWindow(hwnd,x-parentx,y-parenty,width,height,TRUE);
+ GetWindowRect(hwnd,&rect);
+ insetsleft = rect.left-x;
+ insetstop = rect.top-y;
+ if ( (insetsleft) || (insetstop) )
+ MoveWindow(hwnd,x-(parentx+insetsleft),y-(parenty+insetstop),width,height,TRUE);
+ }
+ }
+ } /* moveOGLWindowNativeJDirect() */
+
+__declspec(dllexport) int createOGLWindowNativeJDirect(int hwndParent, int x, int y, int width, int height)
+ {
+ HWND hwnd;
+ HDC hdc;
+
+ if ((hwnd = CreateWindow
+ (CLASS_NAME,
+ WINDOW_NAME,
+ WS_CHILD | WS_VISIBLE | WS_DISABLED,
+ x,
+ y,
+ width,
+ height,
+ (HWND)hwndParent,
+ NULL,
+ NULL,
+ NULL)) == NULL)
+ {
+ fprintf(stderr,"createOGLWindowNativeJDirect(): CreateWindow failed!\n");
+ fprintf(stderr,"GetLastError() returns: %d\n",(int)GetLastError());
+ return(0);
+ }
+ hdc = GetDC(hwnd);
+ moveOGLWindowNativeJDirect((int)hdc, x, y, width, height);
+ return (int)hdc;
+ } /* createOGLWindowNativeJDirect() */
+
+__declspec(dllexport) void destroyOGLWindowNativeJDirect(int _hdc)
+ {
+ HWND hwnd;
+ HDC hdc = (HDC)_hdc;
+
+ if (hdc != NULL)
+ {
+ if ((hwnd = WindowFromDC(hdc)) != NULL)
+ {
+ ReleaseDC(hwnd,hdc);
+ DestroyWindow(hwnd);
+ }
+ }
+ } /* destroyOGLWindowNativeJDirect() */
+
+
diff --git a/CNativeCode/OpenGL_X11.c b/CNativeCode/OpenGL_X11.c
new file mode 100644
index 0000000..a1f3a33
--- /dev/null
+++ b/CNativeCode/OpenGL_X11.c
@@ -0,0 +1,1320 @@
+/*
+ * Leo Chan -- 1995
+ *
+ * This file takes care of the C implementation of opening up an
+ * X window, assigning an OpenGL graphics context to it, storing that
+ * graphics context in the java class data structure.
+ *
+ * also contains the use() and swap() functions for double buffering
+ *
+ * Adam King -- 1997
+ *
+ * Modified Creation window code to use the currently showing Java Frame
+ * window instead of creating a new window.
+ * ---------------
+ *
+ * Many improvements and changes are made !
+ *
+ * Sven Goethel
+ *
+ * September 1997
+ *
+ * some X stuff is also modified/debugged to run on aix ...
+ */
+
+/*
+ * need to include the JAVA internal header files for macros and function
+ * prototypes required to maipulated JAVA data structures and functions
+ *
+ * StubPreamble.h includes the structure and macro definitions neede to
+ * convert JAVA data structures into C data structures.
+ *
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <jni.h>
+
+/*
+ * the next thing to include are special headers that were created by
+ * JAVAH. They include the C structure definitions for the JAVA classes
+ */
+#include "gl4java_GLContext.h"
+
+/*--------------------------------------------------------------------------
+ * here on in is just regular apple pie C
+ */
+
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+
+#include <GL/glx.h>
+#include <X11/Xatom.h>
+
+#include <stdlib.h>
+
+
+/*
+ * STATIC FLAGS FOR gl4java behavior ...
+ */
+static jboolean verbose = JNI_FALSE;
+
+/*
+ * prototypes for functions local to this file scope
+ */
+static int get_GC( Display *display, Window win, XVisualInfo *visual,
+ GLXContext *gc, GLXContext gc_share);
+
+typedef struct {
+ XVisualInfo * visual;
+ GLXContext gc;
+ int success; /* 1: OK, 0: ERROR */
+} VisualGC;
+
+static VisualGC findVisualGlX( Display *display,
+ Window rootWin,
+ Window * pWin,
+ int width, int height,
+ jboolean doubleBuffer,
+ jboolean stereoView,
+ jboolean rgba,
+ jint stencilBits,
+ jint accumSize,
+ jboolean * pOwnWin,
+ GLXContext shareWith,
+ jboolean offscreen,
+ Pixmap *pix
+ );
+
+static void printVisualInfo ( Display *display, XVisualInfo * vi);
+static void printAllVisualInfo ( Display *disp, Window win);
+
+static int testVisualInfo ( Display *display, XVisualInfo * vi,
+ int dblBuffer, int stereoView, int rgbaMode,
+ int stencilSize, int accumSize);
+
+static XVisualInfo * findVisualIdByFeature( XVisualInfo ** visualList,
+ Display *disp, Window win,
+ int dblBuffer, int stereoView, int rgbaMode,
+ int stencilSize, int accumSize);
+
+/* testJavaGLTypes does important implementation plattformspecific checks:
+ *
+ * o do fit the JNI <-> GL Variables-Type Mapping
+ * o IF ERROR OR VERBOSE -> DUMP JNI,GL Type-Length
+ */
+jboolean testJavaGLTypes(jboolean verbose);
+
+/* testX11Java does important implementation plattformspecific checks:
+ *
+ * o do fit X11-Vars in jint (because GLFrame stores 'em like that)
+ */
+static jboolean testX11Java();
+
+static int x11gl_myErrorHandler(Display *pDisp, XErrorEvent *p_error)
+{
+ char err_msg[80];
+
+ XGetErrorText(pDisp, p_error->error_code, err_msg, 80);
+ fprintf(stderr, "X11 Error detected.\n %s\n", err_msg);
+ fprintf(stderr, " Protocol request: %d\n", p_error->request_code);
+ fprintf(stderr, " Resource ID : 0x%x\n", (int)p_error->resourceid);
+ fprintf(stderr, " \ntrying to continue ... \n");
+ fflush(stderr);
+ return 0;
+}
+
+static int x11gl_myIOErrorHandler(Display *pDisp)
+{
+ fprintf(stderr, "X11 I/O Error detected.\n");
+ fprintf(stderr, " \ndo not know what to do ... \n");
+ fflush(stderr);
+ return 0;
+}
+
+static Window createOwnOverlayWin(Display *display, Window rootwini, Window parentWin,
+ XVisualInfo *visual, int width, int height)
+{
+ /*
+ //------------------------------------------------------------------------//
+ // Some Systems (SGI) wont give up the window and so we have to create a //
+ // window that fits on top of the Java Canvas. //
+ //------------------------------------------------------------------------//
+ */
+ Window window=0;
+ XSetWindowAttributes attribs ;
+
+ /*
+ //----------------------------------------------------------------------//
+ // now we have the visual with the best depth so lets make a color map //
+ // for it. we use allocnone because this is a true colour visual and //
+ // the color map is read only anyway. This must be done because we //
+ // cannot call XCreateSimpleWindow. //
+ //----------------------------------------------------------------------//
+ */
+ int cmap = XCreateColormap ( display
+ , rootwini
+ , visual->visual
+ , AllocNone
+ );
+
+ /*
+ //----------------------------------------------------------------------//
+ // Set up the window attributes. //
+ //----------------------------------------------------------------------//
+ */
+ attribs.event_mask = ExposureMask ;
+ attribs.border_pixel = BlackPixel(display, DefaultScreen(display)) ;
+ attribs.colormap = cmap ;
+ attribs.bit_gravity = SouthWestGravity ; ;
+ attribs.background_pixel = 0xFF00FFFF ;
+
+ /*
+ //----------------------------------------------------------------------//
+ // Create a window. //
+ //----------------------------------------------------------------------//
+ */
+ window = XCreateWindow( display
+ , parentWin
+ , 0
+ , 0
+ , width
+ , height
+ , 0
+ , visual->depth
+ , InputOutput
+ , visual->visual
+ , CWBitGravity | CWColormap
+ | CWBorderPixel | CWBackPixel
+ , &attribs);
+
+ return window;
+}
+
+
+static void printVisualInfo ( Display *display, XVisualInfo * vi)
+{
+ int dblBuffer, stereoView, rgbaMode, stencilSize;
+ int accumRedSize, accumGreenSize, accumBlueSize, accumAlphaSize;
+
+ fprintf(stderr, "\nvi(ID:%d(0x%X)): \n screen %d, depth %d, class %d,\n clrmapsz %d, bitsPerRGB %d\n",
+ (int) vi->visualid,
+ (int) vi->visualid,
+ (int) vi->screen,
+ (int) vi->depth,
+ (int) vi->class,
+ (int) vi->colormap_size,
+ (int) vi->bits_per_rgb );
+
+ glXGetConfig( display, vi, GLX_DOUBLEBUFFER, &dblBuffer);
+ glXGetConfig( display, vi, GLX_STEREO, &stereoView);
+ glXGetConfig( display, vi, GLX_RGBA, &rgbaMode);
+ glXGetConfig( display, vi, GLX_STENCIL_SIZE, &stencilSize);
+ glXGetConfig( display, vi, GLX_ACCUM_RED_SIZE, &accumRedSize);
+ glXGetConfig( display, vi, GLX_ACCUM_GREEN_SIZE, &accumGreenSize);
+ glXGetConfig( display, vi, GLX_ACCUM_BLUE_SIZE, &accumBlueSize);
+ glXGetConfig( display, vi, GLX_ACCUM_ALPHA_SIZE, &accumAlphaSize);
+
+ fprintf(stderr, "\t doubleBuff: %d, ", dblBuffer);
+ fprintf(stderr, " stereo: %d, ", stereoView);
+ fprintf(stderr, " rgba: %d, ", rgbaMode);
+ fprintf(stderr, " stencilSize: %d !\n", stencilSize);
+ fprintf(stderr, "\t red accum: %d, ", accumRedSize);
+ fprintf(stderr, " green accum: %d, ", accumGreenSize);
+ fprintf(stderr, " blue accum: %d, ", accumBlueSize);
+ fprintf(stderr, " alpha accum: %d !\n", accumAlphaSize);
+
+ fflush(stderr);
+}
+
+static void printAllVisualInfo ( Display *disp, Window win)
+{
+ XVisualInfo * visualInfo=0;
+ XVisualInfo * vi=0;
+ XVisualInfo viTemplate;
+ int i, numReturns;
+ XWindowAttributes xwa;
+
+ if(XGetWindowAttributes(disp, win, &xwa) == 0)
+ {
+ fprintf(stderr, "\nERROR while fetching XWindowAttributes\n");
+ fflush(stderr);
+ return;
+ }
+
+ viTemplate.screen = DefaultScreen( disp );
+ viTemplate.class = (xwa.visual)->class ;
+ viTemplate.depth = xwa.depth;
+
+ visualInfo = XGetVisualInfo( disp, VisualScreenMask,
+ &viTemplate, &numReturns );
+
+ if(JNI_TRUE==verbose)
+ {
+ fprintf(stderr, "\nNum of Visuals : %d\n", numReturns );
+
+ for(i=0; i<numReturns; i++)
+ {
+ vi = &(visualInfo[i]);
+ printVisualInfo ( disp, vi);
+ }
+ }
+
+ XFree(visualInfo);
+}
+
+static int testVisualInfo ( Display *display, XVisualInfo * vi,
+ int dblBuffer, int stereoView, int rgbaMode,
+ int stencilSize, int accumSize)
+{
+ int glxCfg;
+
+ glXGetConfig( display, vi, GLX_DOUBLEBUFFER, &glxCfg);
+ if(glxCfg<dblBuffer) return 0;
+
+ glXGetConfig( display, vi, GLX_STEREO, &glxCfg);
+ if(glxCfg<stereoView) return 0;
+
+ glXGetConfig( display, vi, GLX_RGBA, &glxCfg);
+ if(glxCfg<rgbaMode) return 0;
+
+ glXGetConfig( display, vi, GLX_STENCIL_SIZE, &glxCfg);
+ if(glxCfg<stencilSize) return 0;
+
+ glXGetConfig(display, vi, GLX_ACCUM_RED_SIZE, &glxCfg);
+ if(glxCfg<accumSize) return 0;
+
+ glXGetConfig(display, vi, GLX_ACCUM_GREEN_SIZE, &glxCfg);
+ if(glxCfg<accumSize) return 0;
+
+ glXGetConfig(display, vi, GLX_ACCUM_BLUE_SIZE, &glxCfg);
+ if(glxCfg<accumSize) return 0;
+
+ if(rgbaMode>0) {
+ glXGetConfig(display, vi, GLX_ACCUM_ALPHA_SIZE, &glxCfg);
+ if(glxCfg<accumSize) return 0;
+ }
+
+ return 1;
+}
+
+
+static XVisualInfo * findVisualIdByFeature( XVisualInfo ** visualList,
+ Display *disp, Window win,
+ int dblBuffer, int stereoView, int rgbaMode,
+ int stencilSize, int accumSize)
+{
+ XVisualInfo * vi=0;
+ XVisualInfo viTemplate;
+ int i, numReturns;
+ XWindowAttributes xwa;
+ int done=0;
+
+ if(XGetWindowAttributes(disp, win, &xwa) == 0)
+ {
+ fprintf(stderr, "\nERROR while fetching XWindowAttributes\n");
+ fflush(stderr);
+ return 0;
+ }
+
+ viTemplate.screen = DefaultScreen( disp );
+ viTemplate.class = (xwa.visual)->class ;
+ viTemplate.depth = xwa.depth;
+
+ *visualList = XGetVisualInfo( disp, VisualScreenMask,
+ &viTemplate, &numReturns );
+
+ for(i=0; done==0 && i<numReturns; i++)
+ {
+ vi = &((*visualList)[i]);
+ if ( testVisualInfo ( disp, vi, dblBuffer, stereoView, rgbaMode,
+ stencilSize, accumSize) )
+ {
+ if(JNI_TRUE==verbose)
+ {
+ fprintf(stderr, "findVisualIdByFeature: Found matching Visual:\n");
+ printVisualInfo ( disp, vi);
+ }
+ return vi;
+ }
+ }
+
+ if(JNI_TRUE==verbose)
+ {
+ if( numReturns==0 )
+ fprintf(stderr, "findVisualIdByFeature: No available visuals. Exiting...\n" );
+ else if( i>=numReturns )
+ fprintf(stderr, "findVisualIdByFeature: No matching visual found ...\n" );
+ fflush(stderr);
+ }
+
+ XFree(*visualList);
+ *visualList=NULL;
+ return NULL;
+}
+
+/**
+ * Description for pWin:
+ * if ownwin:
+ * input: the parent window
+ * output: the newly created window
+ * else if ! ownwin:
+ * i/o: the window itself
+ */
+static VisualGC findVisualGlX( Display *display,
+ Window rootWin,
+ Window * pWin,
+ int width, int height,
+ jboolean doubleBuffer,
+ jboolean stereoView,
+ jboolean rgba,
+ jint stencilBits,
+ jint accumSize,
+ jboolean * pOwnWin,
+ GLXContext shareWith,
+ jboolean offscreen,
+ Pixmap *pix
+ )
+{
+ Window newWin = 0;
+ int visualAttribList[32];
+ int i=0;
+ int j=0;
+ int done=0;
+ VisualGC vgc = { NULL, 0, 0 };
+ jboolean tryChooseVisual = JNI_TRUE;
+ int gc_ret = 0;
+
+ /**
+ * The Visual seeked by Function: findVisualIdByFeature !
+ */
+ XVisualInfo * visualList=NULL; /* the visual list, to be XFree-ed */
+
+ /* backup variables ... */
+ jboolean _rgba=rgba;
+ jint _stencilBits=stencilBits;
+ jint _accumSize=accumSize;
+ jboolean _stereoView=stereoView;
+ jboolean _doubleBuffer=doubleBuffer;
+
+ do {
+ if(JNI_TRUE==verbose)
+ {
+ fprintf(stderr, "GL4Java: seeking visual loop# %d\n", j);
+ }
+
+ i=0;
+ visualAttribList[i++] = GLX_RED_SIZE;
+ visualAttribList[i++] = 1;
+ visualAttribList[i++] = GLX_GREEN_SIZE;
+ visualAttribList[i++] = 1;
+ visualAttribList[i++] = GLX_BLUE_SIZE;
+ visualAttribList[i++] = 1;
+ visualAttribList[i++] = GLX_DEPTH_SIZE;
+ visualAttribList[i++] = 1;
+ visualAttribList[i++] = GLX_ACCUM_RED_SIZE;
+ visualAttribList[i++] = accumSize;
+ visualAttribList[i++] = GLX_ACCUM_GREEN_SIZE;
+ visualAttribList[i++] = accumSize;
+ visualAttribList[i++] = GLX_ACCUM_BLUE_SIZE;
+ visualAttribList[i++] = accumSize;
+
+ if(JNI_TRUE==rgba)
+ {
+ visualAttribList[i++] = GLX_RGBA;
+ visualAttribList[i++] = GLX_ACCUM_ALPHA_SIZE;
+ visualAttribList[i++] = accumSize;
+ }
+ if(JNI_TRUE==doubleBuffer)
+ visualAttribList[i++] = GLX_DOUBLEBUFFER;
+ if(JNI_TRUE==stereoView)
+ visualAttribList[i++] = GLX_STEREO;
+ visualAttribList[i++] = GLX_STENCIL_SIZE;
+ visualAttribList[i++] = (int)stencilBits;
+ visualAttribList[i] = None;
+
+ if(tryChooseVisual==JNI_TRUE && vgc.visual==NULL)
+ {
+ vgc.visual = glXChooseVisual( display,
+ DefaultScreen( display ),
+ visualAttribList );
+ if(JNI_TRUE==verbose)
+ {
+ if(vgc.visual!=NULL)
+ {
+ fprintf(stderr, "glXChooseVisual: test visual(ID:%d(0x%X)):\n",
+ (int) vgc.visual->visualid,
+ (int) vgc.visual->visualid);
+ printVisualInfo ( display, vgc.visual);
+ } else
+ fprintf(stderr, "glXChooseVisual: no visual\n");
+ fflush(stderr);
+ }
+ }
+
+ if(vgc.visual==NULL)
+ {
+ vgc.visual = findVisualIdByFeature( &visualList,
+ display, *pWin,
+ doubleBuffer, stereoView,
+ rgba,
+ stencilBits,
+ accumSize);
+ }
+
+ if(vgc.visual==NULL)
+ {
+ vgc.visual = findVisualIdByFeature( &visualList,
+ display, *pWin,
+ doubleBuffer, stereoView,
+ rgba,
+ stencilBits>0,
+ accumSize>0);
+ }
+
+ if( *pOwnWin == JNI_TRUE && vgc.visual!=NULL)
+ {
+ newWin = createOwnOverlayWin(display,
+ rootWin,
+ *pWin /* the parent */,
+ vgc.visual, width, height);
+ }
+
+ if( offscreen==JNI_TRUE && vgc.visual!=NULL)
+ {
+ if(*pix!=0)
+ {
+ XFreePixmap(display, *pix);
+ }
+ if(vgc.visual !=NULL)
+ *pix = XCreatePixmap( display, rootWin, width, height,
+ vgc.visual->depth);
+ if(*pix!=0)
+ {
+ *pWin = glXCreateGLXPixmap( display, vgc.visual, *pix );
+ if(*pWin==0)
+ {
+ XFreePixmap(display, *pix);
+ *pix=0;
+ fprintf(stderr, "GL4Java(%d): glXCreateGLXPixmap failed\n", j);
+ fflush(stderr);
+ }
+ } else {
+ fprintf(stderr, "GL4Java(%d): XCreatePixmap failed\n", j);
+ fflush(stderr);
+ *pWin = 0;
+ }
+ if(JNI_TRUE==verbose)
+ {
+ if(*pWin!=0)
+ {
+ fprintf(stderr, "GL4Java(%d): pixmap ok\n", j);
+ fflush(stderr);
+ }
+ }
+ }
+
+ gc_ret = -100;
+
+ if( *pOwnWin == JNI_TRUE && newWin!=0 &&
+ (gc_ret=get_GC( display, newWin,
+ vgc.visual, &(vgc.gc), shareWith)) == 0
+ )
+ {
+ vgc.success=1;
+ *pWin = newWin ;
+ }
+ else if( vgc.visual!=NULL && *pOwnWin == JNI_FALSE && *pWin!=0 &&
+ (gc_ret=get_GC( display, *pWin,
+ vgc.visual, &(vgc.gc), shareWith)) == 0
+ )
+ {
+ vgc.success=1;
+ } else
+ {
+ j++; /* trial counter */
+ if(JNI_TRUE==verbose)
+ {
+ fprintf(stderr, "GL4Java(%d): Visual fetching failed (gc_get=%d)\n", j, gc_ret);
+ fflush(stderr);
+ }
+
+ if(*pix!=0)
+ {
+ XFreePixmap(display, *pix);
+ *pix=0;
+ }
+
+ if(visualList!=NULL)
+ {
+ XFree(visualList);
+ visualList=NULL;
+ vgc.visual=NULL;
+ } else if(vgc.visual!=NULL)
+ {
+ XFree(vgc.visual);
+ vgc.visual=NULL;
+ }
+
+ /* Fall-Back ... */
+ if(*pOwnWin==JNI_FALSE && offscreen==JNI_FALSE) {
+ rgba=_rgba;
+ stencilBits=_stencilBits;
+ accumSize=_accumSize;
+ stereoView=_stereoView;
+ doubleBuffer=_doubleBuffer;
+ *pOwnWin=JNI_TRUE;
+ } else if(accumSize>0 && offscreen==JNI_TRUE) {
+ accumSize=0;
+ } else if(doubleBuffer==JNI_FALSE && offscreen==JNI_TRUE) {
+ doubleBuffer=JNI_TRUE;
+ } else if(stencilBits>0) {
+ stencilBits=0;
+ } else if(stereoView==JNI_TRUE) {
+ stereoView=JNI_FALSE;
+ } else if(rgba==JNI_TRUE) {
+ rgba=JNI_FALSE;
+ } else if(doubleBuffer==JNI_TRUE) {
+ doubleBuffer=JNI_FALSE;
+ } else if(tryChooseVisual==JNI_TRUE) {
+ rgba=_rgba;
+ stencilBits=_stencilBits;
+ accumSize=_accumSize;
+ stereoView=_stereoView;
+ doubleBuffer=_doubleBuffer;
+ *pOwnWin=JNI_FALSE;
+ tryChooseVisual=JNI_FALSE;
+ } else done=1;
+ }
+ } while (vgc.success==0 && done==0) ;
+
+ if(vgc.success==1 && JNI_TRUE==verbose)
+ {
+ fprintf(stderr, "\nfindVisualGlX vi(ID:%d): \n screen %d, depth %d, class %d,\n clrmapsz %d, bitsPerRGB %d, shared with %d\n",
+ (int)vgc.visual->visualid,
+ (int)vgc.visual->screen,
+ (int)vgc.visual->depth,
+ (int)vgc.visual->class,
+ (int)vgc.visual->colormap_size,
+ (int)vgc.visual->bits_per_rgb,
+ (int)shareWith);
+ printVisualInfo ( display, vgc.visual);
+ }
+
+ return vgc;
+}
+
+/*
+ * OpenGL_GLFrame_openOpenGL
+ *
+ * the function name is created by JAVAH to reflect the package and class
+ * names of the JAVA object that called this native code.
+ *
+ * the parameter is a handle to the OpenGL_OpenGLFrame object --
+ * the data portion
+ * followed by the method table for the class.
+ */
+JNIEXPORT jboolean JNICALL
+Java_gl4java_GLContext_openOpenGLNative( JNIEnv *env, jobject obj )
+{
+ int screen = 0;
+
+ /* found matching visual and gc */
+ VisualGC vgc = { NULL, 0, 0 };
+
+ jboolean ret = JNI_TRUE;
+
+ jclass cls = 0;
+ jfieldID fdisplayHandle=0, fwindowHandle=0, fpixmapHandle=0;
+ jfieldID fverbose=0;
+ jfieldID fglContext=0;
+ jfieldID fstereoView=0, frgba=0, fstencilBits=0,
+ faccumSize=0, fownwind=0;
+ jfieldID fdoubleBuffer=0, foffScreenRenderer;
+
+ jfieldID fcreatewinw = 0, fcreatewinh = 0;
+ jfieldID fshareWith = 0;
+ jboolean joffScreenRenderer=JNI_FALSE;
+ jboolean jdoubleBuffer=JNI_TRUE;
+ jboolean jstereoView=JNI_FALSE;
+ jboolean jrgba=JNI_TRUE;
+ jint jstencilBits=0;
+ jint jaccumSize=0;
+ jboolean jownwind = JNI_FALSE ;
+ jint jcreatewinw = 0, jcreatewinh = 0;
+ jint jshareWith = 0;
+
+ /* these variables will be mapped in the java-object ! */
+ Window thisWin=0;
+ Display * display = 0;
+ Window rootwini = 0;
+ Pixmap pix;
+
+ int iValue, iValue1, iValue2, iValue3;
+
+ cls = (*env)->GetObjectClass(env, obj);
+ if(cls==0)
+ {
+ fprintf(stderr,"GL4Java ERROR: clazz not accessible\n");
+ fflush(stderr);
+ ret=JNI_FALSE;
+ }
+
+ if(ret==JNI_TRUE) {
+ fverbose =(*env)->GetStaticFieldID(env, cls, "gljNativeDebug", "Z");
+ if (fverbose == 0)
+ {
+ fprintf(stderr,"GL4Java: fverbose==0\n");
+ fflush(stderr);
+ ret=JNI_FALSE;
+ } else {
+ verbose = (*env)->GetStaticBooleanField(env, cls, fverbose);
+ }
+ }
+
+ if(JNI_TRUE==verbose)
+ {
+ fprintf(stderr, "GL4Java: sizes:\n jint=%d\n (Display *)=%d\n GLXContext=%d\n",
+ sizeof(jint), sizeof(Display *), sizeof(GLXContext) );
+ fflush(stderr);
+ }
+
+ /* FIRST OF ALL CHECK IF A NATIVE POINTER OR X11-TYPE FITS IN �jint� */
+ ret = testX11Java();
+ ret = testJavaGLTypes(verbose);
+
+ if(ret==JNI_TRUE) {
+ foffScreenRenderer =
+ (*env)->GetFieldID(env, cls, "offScreenRenderer", "Z");
+ if (foffScreenRenderer == 0) ret= JNI_FALSE;
+ else joffScreenRenderer =(*env)->GetBooleanField(env, obj, foffScreenRenderer);
+ }
+
+ if(ret==JNI_TRUE) {
+ fdoubleBuffer = (*env)->GetFieldID(env, cls, "doubleBuffer", "Z");
+ if (fdoubleBuffer == 0) ret= JNI_FALSE;
+ else jdoubleBuffer =(*env)->GetBooleanField(env, obj, fdoubleBuffer);
+ }
+
+ if(ret==JNI_TRUE) {
+ fstereoView = (*env)->GetFieldID(env, cls, "stereoView", "Z");
+ if (fstereoView == 0) ret= JNI_FALSE;
+ else jstereoView =(*env)->GetBooleanField(env, obj, fstereoView);
+ }
+
+ if(ret==JNI_TRUE) {
+ frgba = (*env)->GetFieldID(env, cls, "rgba", "Z");
+ if (frgba == 0) ret= JNI_FALSE;
+ else jrgba =(*env)->GetBooleanField(env, obj, frgba);
+ }
+
+ if(ret==JNI_TRUE) {
+ fstencilBits = (*env)->GetFieldID(env, cls, "stencilBits", "I");
+ if (fstencilBits == 0) ret= JNI_FALSE;
+ else jstencilBits =(*env)->GetIntField(env, obj, fstencilBits);
+ }
+
+ if(ret==JNI_TRUE) {
+ faccumSize = (*env)->GetFieldID(env, cls, "accumSize", "I");
+ if (faccumSize == 0) ret= JNI_FALSE;
+ else jaccumSize =(*env)->GetIntField(env, obj, faccumSize);
+ }
+
+ if(ret==JNI_TRUE) {
+ fcreatewinw = (*env)->GetFieldID(env, cls, "createwinw", "I");
+ if (fcreatewinw == 0) ret= JNI_FALSE;
+ else jcreatewinw =(*env)->GetIntField(env, obj, fcreatewinw);
+ }
+
+ if(ret==JNI_TRUE) {
+ fcreatewinh = (*env)->GetFieldID(env, cls, "createwinh", "I");
+ if (fcreatewinh == 0) ret= JNI_FALSE;
+ else jcreatewinh =(*env)->GetIntField(env, obj, fcreatewinh);
+ }
+
+ if(ret==JNI_TRUE) {
+ fownwind = (*env)->GetFieldID(env, cls, "createOwnWindow", "Z");
+ if (fownwind == 0) ret= JNI_FALSE;
+ else jownwind =(*env)->GetBooleanField(env, obj, fownwind);
+ }
+
+ if(ret==JNI_TRUE) {
+ fshareWith = (*env)->GetFieldID(env, cls, "sharedGLContextNative", "I");
+ if (fshareWith == 0) ret= JNI_FALSE;
+ else jshareWith =(*env)->GetIntField(env, obj, fshareWith);
+ }
+
+
+ if(ret==JNI_TRUE) {
+ fwindowHandle = (*env)->GetFieldID(env, cls, "windowHandle", "I");
+ if (fwindowHandle == 0) ret= JNI_FALSE;
+ else thisWin =(Window) (*env)->GetIntField(env, obj, fwindowHandle);
+ }
+
+ if(ret==JNI_TRUE) {
+ fpixmapHandle = (*env)->GetFieldID(env, cls, "pixmapHandle", "I");
+ if (fpixmapHandle == 0) ret= JNI_FALSE;
+ }
+
+ if(joffScreenRenderer==JNI_TRUE)
+ {
+ jownwind = JNI_FALSE;
+ thisWin=0;
+ }
+
+ if(thisWin==0 && joffScreenRenderer==JNI_FALSE)
+ {
+ fprintf(stderr,"\nGL4Java ERROR: given native window == NULL !\n");
+ fflush(stderr);
+ ret=JNI_FALSE;
+ }
+
+ if(JNI_TRUE==verbose)
+ {
+ fprintf(stderr,"\nGL4Java: (JAVA FOUND WINDOW HANDLE %d == 0x%x)\n",
+ (int)thisWin, (int)thisWin);
+ if(joffScreenRenderer==JNI_TRUE)
+ {
+ fprintf(stderr,"\nGL4Java: (USING OFFSCREEN GLPIXMAP BUFFER,\n\t forced: !ownWindow, window=NULL)\n");
+ }
+ fflush(stderr);
+ }
+
+ if(JNI_TRUE==verbose)
+ {
+ fprintf(stderr,"\nGL4Java: (try to use visuals: doubleBuffer=%d, stereoView=%d, rgba=%d, stencilBits=%d, accumSize=%d, ownWindow=%d)\n)\n",
+ (int)jdoubleBuffer, (int)jstereoView, (int)jrgba, (int)jstencilBits, (int)jaccumSize,
+ (int)jownwind );
+ fflush(stderr);
+ }
+
+ if(ret==JNI_TRUE) {
+ fdisplayHandle = (*env)->GetFieldID(env, cls, "displayHandle", "I");
+ if (fdisplayHandle == 0) ret= JNI_FALSE;
+ }
+
+ if(ret==JNI_TRUE) {
+ fglContext=(*env)->GetFieldID(env, cls, "glContext", "I");
+ if (fglContext == 0) ret= JNI_FALSE;
+ }
+
+ /*
+ if(ret==JNI_TRUE)
+ XSetErrorHandler(x11gl_myErrorHandler);
+
+ if(ret==JNI_TRUE)
+ XSetIOErrorHandler(x11gl_myIOErrorHandler);
+ */
+
+ if(ret==JNI_TRUE)
+ display = XOpenDisplay( NULL );
+
+ if(ret==JNI_TRUE && display == NULL ) {
+ /* return FALSE to tell JAVA that we couldn't open. could also use
+ * SignalError() here if we would prefer to throw an exception
+ */
+ fprintf(stderr, "GL4Java ERROR: Can not open Display\n");
+ fflush(stderr);
+ ret = JNI_FALSE;
+ }
+
+ /* Check to see if the Xserver supports OpenGL */
+ if(ret==JNI_TRUE) {
+ if( !glXQueryExtension(display, (int *) 0, (int *) 0) ) {
+ fprintf(stderr, "GL4Java ERROR: Can not query glx extension -> Server does not support OpenGL\n");
+ fflush(stderr);
+ ret = JNI_FALSE;
+ } else {
+ if (JNI_TRUE==verbose) {
+ fprintf(stdout, "GLX by %s Version %s\n",
+ glXGetClientString(display, GLX_VENDOR),
+ glXGetClientString(display, GLX_VERSION));
+ }
+ }
+ }
+
+ /* initialize the x stuff */
+ if(ret==JNI_TRUE)
+ {
+ screen = DefaultScreen( display );
+ rootwini = RootWindow(display,screen) ;
+
+ glXMakeCurrent(display, None, NULL);
+
+ vgc = findVisualGlX( display, rootwini, &thisWin,
+ (int)jcreatewinw, (int)jcreatewinh,
+ jdoubleBuffer, jstereoView, jrgba,
+ jstencilBits, jaccumSize,
+ &jownwind, (GLXContext) jshareWith,
+ joffScreenRenderer, &pix);
+
+ if(vgc.success == 0 && jrgba==JNI_TRUE)
+ {
+ jrgba=JNI_FALSE;
+ vgc = findVisualGlX( display, rootwini, &thisWin,
+ (int)jcreatewinw, (int)jcreatewinh,
+ jdoubleBuffer, jstereoView, jrgba,
+ jstencilBits, jaccumSize,
+ &jownwind, (GLXContext) jshareWith,
+ joffScreenRenderer, &pix);
+ }
+
+ if(vgc.success == 0)
+ {
+ fprintf(stderr,"GL4Java ERROR: GETTING GC FAILED\n");
+ fflush(stderr);
+
+ if(jownwind==JNI_TRUE && thisWin!=0)
+ XDestroyWindow( display, thisWin );
+ if(joffScreenRenderer==JNI_TRUE && pix!=0)
+ XFreePixmap(display, pix);
+ XCloseDisplay( display );
+ ret = JNI_FALSE;
+ } else {
+ if(glXGetConfig( display, vgc.visual,
+ GLX_DOUBLEBUFFER, &iValue)==0)
+ {
+ if (JNI_TRUE==verbose) {
+ fprintf(stdout,"doubleBuffer: %d\n", iValue);
+ fflush(stdout);
+ }
+ jdoubleBuffer=iValue?JNI_TRUE:JNI_FALSE;
+ if(ret==JNI_TRUE && fdoubleBuffer!=0) {
+ (*env)->SetBooleanField(env, obj, fdoubleBuffer,
+ jdoubleBuffer);
+ }
+
+ } else {
+ fprintf(stderr,"GL4Java: fetching doubleBuffer state failed\n");
+ fflush(stderr);
+ }
+ if(glXGetConfig( display, vgc.visual,
+ GLX_STEREO, &iValue)==0)
+ {
+ if (JNI_TRUE==verbose) {
+ fprintf(stdout,"stereoView: %d\n", iValue);
+ fflush(stdout);
+ }
+ jstereoView=iValue?JNI_TRUE:JNI_FALSE;
+ if(ret==JNI_TRUE && fstereoView!=0) {
+ (*env)->SetBooleanField(env, obj, fstereoView,
+ jstereoView);
+ }
+
+ } else {
+ fprintf(stderr,"GL4Java: fetching stereoView state failed\n");
+ fflush(stderr);
+ }
+ if(glXGetConfig( display, vgc.visual,
+ GLX_RGBA, &iValue)==0)
+ {
+ if (JNI_TRUE==verbose) {
+ fprintf(stdout,"rgba: %d\n", iValue);
+ fflush(stdout);
+ }
+ jrgba=iValue?JNI_TRUE:JNI_FALSE;
+ if(ret==JNI_TRUE && frgba!=0) {
+ (*env)->SetBooleanField(env, obj, frgba,
+ jrgba);
+ }
+
+ } else {
+ fprintf(stderr,"GL4Java: fetching rgba state failed\n");
+ fflush(stderr);
+ }
+ if(glXGetConfig( display, vgc.visual,
+ GLX_STENCIL_SIZE, &iValue)==0)
+ {
+ if (JNI_TRUE==verbose) {
+ fprintf(stdout,"stencilBits: %d\n", iValue);
+ fflush(stdout);
+ }
+ jstencilBits=iValue;
+ if(ret==JNI_TRUE && fstencilBits!=0) {
+ (*env)->SetIntField(env, obj,
+ fstencilBits, (jint)jstencilBits);
+ }
+
+ } else {
+ fprintf(stderr,"GL4Java: fetching stencilBits state failed\n");
+ fflush(stderr);
+ }
+ if(glXGetConfig( display, vgc.visual,GLX_ACCUM_RED_SIZE, &iValue)==0 &&
+ glXGetConfig( display, vgc.visual,GLX_ACCUM_GREEN_SIZE, &iValue1)==0 &&
+ glXGetConfig( display, vgc.visual,GLX_ACCUM_BLUE_SIZE, &iValue2)==0 &&
+ glXGetConfig( display, vgc.visual,GLX_ACCUM_ALPHA_SIZE, &iValue3)==0 )
+ {
+ if (JNI_TRUE==verbose) {
+ fprintf(stdout,"accumSize(red): %d\n", iValue);
+ fprintf(stdout,"accumSize(green): %d\n", iValue1);
+ fprintf(stdout,"accumSize(blue): %d\n", iValue2);
+ fprintf(stdout,"accumSize(alpha): %d\n", iValue3);
+ fflush(stdout);
+ }
+ jaccumSize=iValue+iValue1+iValue2+iValue3;
+ if(ret==JNI_TRUE && faccumSize!=0) {
+ (*env)->SetIntField(env, obj,
+ faccumSize, (jint)jaccumSize);
+ }
+
+ } else {
+ fprintf(stderr,"GL4Java: fetching accumSize(red) state failed\n");
+ fflush(stderr);
+ }
+ if(JNI_TRUE==verbose)
+ {
+ fprintf(stderr,"\nGL4Java: (using visuals: doubleBuffer=%d, stereoView=%d, rgba=%d, stencilBits=%d, accumSize=%d, ownWindow=%d)\n)\n",
+ (int)jdoubleBuffer, (int)jstereoView, (int)jrgba,
+ (int)jstencilBits, (int)jaccumSize, (int)jownwind);
+ fflush(stderr);
+ }
+
+ }
+ }
+
+ /* we are now done with the visual so we should free the storage */
+
+ if(ret==JNI_TRUE)
+ {
+ XClearWindow( display, thisWin );
+ XMapWindow( display, thisWin );
+ XFlush( display );
+ }
+
+ if(ret==JNI_TRUE && fwindowHandle!=0) {
+ (*env)->SetIntField(env, obj, fwindowHandle, (jint)thisWin);
+ }
+
+ if(ret==JNI_TRUE && fpixmapHandle!=0) {
+ (*env)->SetIntField(env, obj, fpixmapHandle, (jint)pix);
+ }
+
+ if(ret==JNI_TRUE && fdisplayHandle) {
+ (*env)->SetIntField(env, obj, fdisplayHandle, (jint)display);
+ }
+
+ if(ret==JNI_TRUE && fglContext) {
+ (*env)->SetIntField(env, obj, fglContext, (jint)vgc.gc);
+ }
+
+ if(ret==JNI_TRUE && fownwind) {
+ (*env)->SetBooleanField(env, obj, fownwind, jownwind);
+ }
+
+ return ret;
+}
+
+JNIEXPORT void JNICALL
+Java_gl4java_GLContext_gljResizeNative( JNIEnv *env, jobject obj,
+ jboolean isOwnWindow,
+ jint disp, jint thisWin,
+ jint width, jint height)
+{
+ /* perform a X11 synchronise, because rendering could be done
+ * by a native Thread .... So we have to try avoid gl* reentrance
+ * on the same GL-Context
+ */
+ glXWaitGL();
+
+ if(isOwnWindow)
+ {
+ XResizeWindow((Display *)disp, (Window)thisWin, width, height);
+ /* if(JNI_TRUE==verbose)
+ {
+ fprintf(stderr, "XResizeWindow -> %d x %d\n",
+ (int)width, (int)height);
+ fflush(stderr);
+ } */
+ }
+
+ return;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_gl4java_GLContext_gljMakeCurrentNative( JNIEnv *env, jobject obj,
+ jint disp,
+ jint thisWin,
+ jint glContext
+ )
+{
+ jboolean ret = JNI_TRUE;
+ GLXContext ctx = NULL;
+
+ if(glContext==0)
+ {
+ fprintf(stderr, "GL4Java ERROR: gljUse NO actual GC was created ...\n");
+ fflush(stderr);
+ return JNI_FALSE;
+ }
+
+ ctx = glXGetCurrentContext();
+
+ if(ctx==(GLXContext)glContext)
+ return JNI_TRUE;
+
+ if(ret==JNI_TRUE)
+ {
+ if( !glXMakeCurrent( (Display *)disp, (Window)thisWin,
+ (GLXContext)glContext ) )
+ {
+ fprintf(stderr, "GL4Java: gljMakeCurrent failed with GC\n Another thread may be use it now ...\n");
+ fflush(stderr);
+ ret = JNI_FALSE;
+ }
+ }
+
+ return ret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_gl4java_GLContext_gljFreeNative( JNIEnv *env, jobject obj,
+ jint disp,
+ jint thisWin,
+ jint glContext
+ )
+{
+ jboolean ret = JNI_TRUE;
+
+ (void)thisWin;
+ (void)glContext;
+
+ if(ret==JNI_TRUE)
+ {
+ if( !glXMakeCurrent( (Display *)disp, None, NULL ) )
+ {
+ fprintf(stderr, "GL4Java: gljFree failed\n");
+ fflush(stderr);
+ ret = JNI_FALSE;
+ }
+ }
+ return ret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_gl4java_GLContext_gljIsContextCurrentNative( JNIEnv *env, jobject obj,
+ jint glContext
+ )
+{
+ GLXContext ctx = glXGetCurrentContext();
+
+ if(ctx==(GLXContext)glContext)
+ return JNI_TRUE;
+
+ return JNI_FALSE;
+}
+
+
+JNIEXPORT jboolean JNICALL
+Java_gl4java_GLContext_gljDestroyNative( JNIEnv *env, jobject obj )
+{
+ jclass cls = 0;
+ jfieldID fdisplayHandle=0, fwindowHandle=0, fglContext=0;
+ jfieldID fpixmapHandle=0;
+ jfieldID fpData=0;
+
+ Display *disp=0;
+ GLXContext gc=0;
+ Window win=0;
+ jint pData=0;
+ Pixmap pix=0;
+
+ jboolean ret = JNI_TRUE;
+
+ cls = (*env)->GetObjectClass(env, obj);
+ if(cls==0) ret=JNI_FALSE;
+
+ if(ret==JNI_TRUE) {
+ fwindowHandle = (*env)->GetFieldID(env, cls, "windowHandle", "I");
+ if (fwindowHandle == 0) ret= JNI_FALSE;
+ else win = (Window) (*env)->GetIntField(env, obj, fwindowHandle);
+ }
+
+ if(ret==JNI_TRUE) {
+ fdisplayHandle = (*env)->GetFieldID(env, cls, "displayHandle", "I");
+ if (fdisplayHandle == 0) ret= JNI_FALSE;
+ else disp=(Display *)(*env)->GetIntField(env, obj, fdisplayHandle);
+ }
+
+ if(ret==JNI_TRUE) {
+ fglContext=(*env)->GetFieldID(env, cls, "glContext", "I");
+ if (fglContext == 0) ret= JNI_FALSE;
+ else gc =(GLXContext)(*env)->GetIntField(env, obj, fglContext);
+ }
+
+ if(ret==JNI_TRUE) {
+ fpData = (*env)->GetFieldID(env, cls, "pData", "I");
+ if (fpData == 0) ret= JNI_FALSE;
+ else pData =(*env)->GetIntField(env, obj, fpData);
+ }
+
+ if(ret==JNI_TRUE) {
+ fpixmapHandle = (*env)->GetFieldID(env, cls, "pixmapHandle", "I");
+ if (fpixmapHandle == 0) ret= JNI_FALSE;
+ else pix = (Pixmap)(*env)->GetIntField(env, obj, fpixmapHandle);
+ }
+
+ glXWaitGL();
+
+ if(ret==JNI_TRUE)
+ {
+ if ( gc == 0 )
+ {
+ if(JNI_TRUE==verbose)
+ {
+ fprintf(stderr, "GL4Java: gljDestroy failed, GL context is 0\n");
+ fflush(stderr);
+ }
+ ret = JNI_FALSE;
+ }
+ if( ret==JNI_TRUE && !glXMakeCurrent( disp, None, NULL ) )
+ {
+ fprintf(stderr, "GL4Java: gljDestroy failed\n");
+ fflush(stderr);
+ ret = JNI_FALSE;
+ } else if(ret==JNI_TRUE) {
+ glXDestroyContext(disp, gc);
+ if(pix!=0)
+ {
+ XFreePixmap(disp, (Pixmap)pix);
+ }
+ }
+ }
+
+ if(ret==JNI_TRUE)
+ {
+ gc = 0;
+ disp=0;
+ win = 0;
+ pix = 0;
+ pData=0; /* remark the class, we must reinit GL-Context ! */
+ }
+
+ if(ret==JNI_TRUE && fpixmapHandle!=0) {
+ (*env)->SetIntField(env, obj, fpixmapHandle, (jint)pix);
+ }
+
+ if(ret==JNI_TRUE && fwindowHandle!=0) {
+ (*env)->SetIntField(env, obj, fwindowHandle, (jint)win);
+ }
+
+ if(ret==JNI_TRUE && fdisplayHandle) {
+ (*env)->SetIntField(env, obj, fdisplayHandle, (jint)disp);
+ }
+
+ if(ret==JNI_TRUE && fglContext) {
+ (*env)->SetIntField(env, obj, fglContext, (jint)gc);
+ }
+
+
+ if(ret==JNI_TRUE && fpData) {
+ (*env)->SetIntField(env, obj, fpData, (jint)pData);
+ }
+ return ret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_gl4java_GLContext_gljSwapNative( JNIEnv *env, jobject obj,
+ jint disp,
+ jint thisWin,
+ jint glContext,
+ jboolean doubleBuffer
+ )
+{
+ (void)glContext;
+
+ if( doubleBuffer == JNI_FALSE ) {
+ /* don't double buffer */
+ glXWaitGL();
+ } else {
+ glXSwapBuffers( (Display *)disp, (Window)thisWin );
+ }
+
+ return JNI_TRUE;
+}
+
+/*
+ * Name : get_GC
+ *
+ * Parameters: win - the X window use to the OpenGL context with
+ * visual - The visual to create the context for
+ * gc - a pointer to a GLXContext structure. This is how
+ * the created context will be returned to the caller
+ *
+ * Returns : a pointer to a created GLXContext is returned through the
+ * gc argument.
+ * int - an error code: 0 means everything was fine
+ * -1 context creation failed
+ * -2 context/window association failed
+ *
+ * Purpose : create an X window Graphics context and assocaite it with
+ * the window. It returns 0 if everything was fine, -1 if the
+ * context could not be created, -2 if the context could not
+ * be associated with the window
+ */
+static int get_GC( Display *display, Window win, XVisualInfo *visual,
+ GLXContext *gc, GLXContext gc_share)
+{
+ int trial = 2;
+
+ while(trial>0)
+ {
+ switch(trial)
+ {
+ case 2:
+ *gc = glXCreateContext( display, visual, gc_share, GL_TRUE );
+ break;
+ case 1:
+ *gc = glXCreateContext( display, visual, gc_share, GL_FALSE );
+ break;
+ }
+ trial--;
+
+ /* check if the context could be created */
+ if( *gc == NULL ) {
+ continue;
+ }
+
+ /* associated the context with the X window */
+ if( glXMakeCurrent( display, win, *gc ) == False) {
+ glXDestroyContext( display, *gc );
+ continue;
+ } else return 0;
+ }
+
+ return -2;
+}
+
+static jboolean testX11Java()
+{
+ jboolean ret=JNI_TRUE;
+
+ /* NON DEPENDENCE CHECKS */
+
+ /* FIRST OF ALL CHECK IF A NATIVE POINTER OR X11-TYPE FITS IN �jint� */
+
+ if( sizeof(jint) < sizeof(Display *) )
+ {
+ fprintf(stderr,"GL4Java: (Display *) fits not in jint\n");
+ ret = JNI_FALSE;
+ }
+
+ if( sizeof(jint) < sizeof(GLXContext) )
+ {
+ fprintf(stderr,"GL4Java: GLXContext fits not in jint\n");
+ ret = JNI_FALSE;
+ }
+
+ if( sizeof(jint) < sizeof(Window) )
+ {
+ fprintf(stderr,"GL4Java: Window fits not in jint\n");
+ ret = JNI_FALSE;
+ }
+
+ if(ret==JNI_FALSE)
+ {
+ fflush(stderr);
+ }
+
+ return ret;
+}
+
diff --git a/CNativeCode/OpenGL_funcs.c.skel b/CNativeCode/OpenGL_funcs.c.skel
new file mode 100644
index 0000000..000af1a
--- /dev/null
+++ b/CNativeCode/OpenGL_funcs.c.skel
@@ -0,0 +1,44 @@
+/*
+ * Leo Chan -- 1995
+ *
+ * This mammoth C file takes care of all the native implementation for the
+ * bulk of OpenGL commands
+ * ---------------
+ *
+ * Sven Goethel
+ *
+ * September 1997
+ */
+
+/*
+ * need to include the JAVA internal header files for macros and function
+ * prototypes required to maipulated JAVA data structures and functions
+ *
+ * StubPreamble.h includes the structure and macro definitions neede to
+ * convert JAVA data structures into C data structures.
+ *
+ */
+
+#include "OpenGL_misc.h"
+
+/*
+ * the next thing to include are special headers that were created by
+ * JAVAH. They include the C structure definitions for the JAVA classes
+ */
+#include "gl4java_GLFuncJauJNI.h"
+
+/*--------------------------------------------------------------------------
+ * here on in is just regular apple pie C
+ */
+
+#ifndef LIBAPIENTRY
+ #define LIBAPIENTRY
+#endif
+#ifndef LIBAPI
+ #define LIBAPI
+#endif
+
+#ifndef CALLBACK
+ #define CALLBACK
+#endif
diff --git a/CNativeCode/OpenGL_mac.c b/CNativeCode/OpenGL_mac.c
new file mode 100644
index 0000000..0ca8663
--- /dev/null
+++ b/CNativeCode/OpenGL_mac.c
@@ -0,0 +1,2027 @@
+#include "agl.h"
+#include "aglRenderers.h"
+
+#include <stdlib.h>
+#include <stdio.h>
+
+/*
+ * Leo Chan -- 1995
+ *
+ * This file takes care of the C implementation of opening up an
+ * X window, assigning an OpenGL graphics context to it, storing that
+ * graphics context in the java class data structure.
+ *
+ * also contains the use() and swap() functions for double buffering
+ *
+ * Adam King -- 1997
+ *
+ * Modified Creation window code to use the currently showing Java Frame
+ * window instead of creating a new window.
+ * ---------------
+ *
+ * Sven Goethel
+ *
+ * September 1997
+ *
+ * some X stuff is also modified/debugged to run on aix ...
+ * ---------------
+ *
+ * gerard ziemski
+ *
+ * April 1999
+ *
+ * OpenGL port for Mac
+ *
+ *
+ * July 1999
+ *
+ * removed unused code
+ *
+ *
+ * August 1999
+ *
+ * added Java_gl4java_GLContext_createChildWindow
+ *
+ *
+ * September 1999
+ *
+ * removed Java_gl4java_GLContext_createChildWindow
+ * updated to 2.1.0.0
+ *
+ *
+ * November 1999
+ *
+ * (2.1.2.0)
+ * simplified (?) get_GC
+ * rewrote gljFreeNative, gljSwapNative, gljDestroyNative
+ * wrote gljResizeNative
+ * replaced printMessage and printError with println
+ *
+ * (2.1.2.1)
+ * using the main graphics device when choosing renderer
+ * added more queries to renderer which will be printed out if in verbal mode
+ * if possible choosing hardware accelerated renderer
+ *
+ *
+ * (2.1.2.2)
+ * January 2000
+ *
+ * rewrote get_GC to choose the best renderer available
+ * will now work on iMac
+ * given enough memory to an application (3500KB) a hardware accelerated renderer will be chosen
+ *
+ * why does a call to "ReleaseStringUTFChars" in "println" crashes ?!
+ *
+ *
+ * (2.3.0.0)
+ * March 2000
+ *
+ * fixed a bug in get_GC
+ * aglQueryRendererInfo returns the head info, i use aglNextRendererInfo to properly traverse
+ * the rest of renderers info
+ *
+ * all this betas, when are we going to get a final version of ATI and VooDoo OpenGL drivers ?
+ * and lets not forget about the MRJ itself
+ *
+ *
+ * (2.3.1.0)
+ * March 2000
+ *
+ * fixed (a workaround) the "obscured window" bug, see "gljMakeCurrentNative"
+ * implemented Java console for fprintf's, see mac_console.c
+ *
+ *
+ * (2.4.1.0)
+ * Sept 2000, Sven Goethel (jausoft)
+ *
+ * Added 2.4.1.0 GL/AGL Features
+ */
+
+
+// use
+//
+// tvb GetSharedLibrary ';dm r3'
+//
+// in MacsBug to see what libraries are loaded
+
+
+//
+// Includes
+//
+
+#include <jni.h>
+
+#include <agl.h>
+#include <gl.h>
+#include <glu.h>
+
+#include <QuickDraw.h>
+#include <MacWindows.h>
+
+#include <stdio.h>
+#include <stdlib.h>
+
+
+//
+// Private Includes
+//
+
+#include "gl4java_GLContext.h"
+#include "mac_console.h"
+
+// from here on, it's just a regular apple pie C
+
+// implemented in OpenGL_misc.c
+extern jboolean testJavaGLTypes(jboolean verbose);
+
+
+// for debugging
+//#define _DEBUG_OPENGL_MAC_
+//#define _DEBUG_DETAIL_OPENGL_MAC_
+
+
+//
+// Definitions
+//
+
+#define PIXEL_FROMAT_LIST_SIZE 40
+
+typedef struct
+{
+ GLboolean valid;
+
+ GLint id;
+
+ GLboolean accelerated;
+
+ GLint depthModes;
+
+ GLint colorModes;
+
+ GLint stencilModes;
+ GLint stencilSize;
+ GLint accumModes;
+ GLint accumSize;
+
+ GLboolean singleBuffer;
+ GLboolean doubleBuffer;
+ GLboolean mono;
+ GLboolean stereo;
+}
+RendererRect, *RendererRectPtr, **RendererRectHnd;
+
+typedef struct
+{
+ UInt32 count;
+
+ RendererRectPtr info;
+
+ GLint attributeList[PIXEL_FROMAT_LIST_SIZE];
+}
+RenderersInfoRect, *RenderersInfoRectPtr, **RenderersInfoRectHnd;
+
+/*
+ * STATIC FLAGS FOR gl4java behavior ...
+ */
+static jboolean verbose = JNI_FALSE;
+
+
+//
+// Private Function Prottypes
+//
+
+static jboolean testMacJava(JNIEnv *env);
+
+static AGLContext get_GC(JNIEnv *env, AGLDrawable glDrawable,
+ jboolean verbose, jboolean *doubleBuffer,
+ jboolean *stereo, jboolean *isRGBA,
+ int *stencilBits, int *accumSize, AGLContext sharedGLC,
+ jboolean isOffScr, GWorldPtr *g_world, int width, int height);
+
+static GLint setDefaultPixelFormat(JNIEnv *env,
+ GLint (*pixelFormatList)[PIXEL_FROMAT_LIST_SIZE],
+ jboolean verbose, jboolean doubleBuffer,
+ jboolean stereo, jboolean isRGBA,
+ int stencilBits, int accumSize,
+ jboolean isOffScr, int pixelsize);
+
+static void printPixelFormat(JNIEnv *env,
+ GLint pixelFormatList[PIXEL_FROMAT_LIST_SIZE]);
+static GLboolean isColorARGB(JNIEnv *env, GLint colorModes);
+static GLboolean isColorRGB(JNIEnv *env, GLint colorModes);
+static GLint chooseBestColor(JNIEnv *env, GLint colorModes);
+static GLint chooseBestDepth(JNIEnv *env, GLint depthModes);
+static GLint mapAGLDepth2DecDepth(JNIEnv *env, GLint depthModes);
+static void getRenderersInfo(JNIEnv *env, RenderersInfoRectPtr info);
+static void printRendererInfo(JNIEnv *env, AGLRendererInfo info);
+static void printRawRendererInfo(JNIEnv *env, RendererRect info);
+static void chooseBestRenderer(JNIEnv *env,
+ RenderersInfoRectPtr info,
+ jboolean verbose, jboolean *doubleBuffer,
+ jboolean *stereo, jboolean *isRGBA,
+ int *stencilBits, int *accumSize,
+ jboolean isOffScr, jboolean forceSWRenderer);
+
+static void printAllRenderer(JNIEnv *env);
+
+static void printPixelFormatInfo(JNIEnv *env, AGLPixelFormat info);
+
+static void checkPixelFormatInfo(JNIEnv *env, AGLPixelFormat info,
+ jboolean *doubleBuffer,
+ jboolean *stereo, jboolean *isRGBA,
+ int *stencilBits, int *accumSize);
+
+//
+// Java_gl4java_GLContext_openOpenGLNative
+//
+JNIEXPORT jboolean JNICALL
+Java_gl4java_GLContext_openOpenGLNative(JNIEnv *env, jobject obj)
+{
+ jclass javaClass = 0;
+
+ jfieldID fwindowHandle = 0,
+ fpData = 0;
+
+ jint pData = 0;
+ UInt32 *data = nil;
+
+ AGLDrawable glDrawable = nil;
+ AGLContext glContext = nil;
+
+ jfieldID fverbose=0, fglContext=0;
+ jfieldID fstereoView=0, frgba=0, fstencilBits=0, faccumSize=0, fownwind=0;
+ jfieldID fdoubleBuffer=0, foffScreenRenderer, fpixmapHandle=0;
+ jfieldID fcreatewinw = 0, fcreatewinh = 0;
+ jfieldID fshareWith = 0;
+
+ jboolean joffScreenRenderer=JNI_FALSE;
+ jboolean jdoubleBuffer=JNI_TRUE;
+ jboolean jstereoView=JNI_FALSE;
+ jboolean jrgba=JNI_TRUE;
+ jint jstencilBits=0;
+ jint jaccumSize=0;
+ jboolean jownwind = JNI_FALSE, ret=JNI_TRUE;
+ jint jcreatewinw = 0, jcreatewinh = 0;
+ jint jshareWith = 0;
+
+ // offscreen stuff ...
+ GWorldPtr g_world;
+
+ InstallJavaConsole(env);
+
+#ifdef _DEBUG_OPENGL_MAC_
+ fprintf(stderr, "in openOpenGLNative \n");
+#endif
+
+ javaClass = (*env)->GetObjectClass(env, obj);
+ if (javaClass == 0)
+ {
+ fprintf(stderr, "Error! openOpenGL:javaClass == 0 \n");
+
+ return JNI_FALSE;
+ }
+
+ fverbose = (*env)->GetStaticFieldID(env, javaClass, "gljNativeDebug", "Z");
+ if (fverbose == 0)
+ {
+ fprintf(stderr, "Error! openOpenGL:fverbose == 0 \n");
+
+ return JNI_FALSE;
+ }
+ else
+ {
+ verbose = (*env)->GetStaticBooleanField(env, javaClass, fverbose);
+ }
+
+#ifdef _DEBUG_OPENGL_MAC_
+ verbose = JNI_TRUE;
+#endif
+
+ if (verbose == JNI_TRUE)
+ {
+ fprintf(stderr, "sizes: jint=%d AGLDrawable=%d AGLContext= %d \n", sizeof(jint), sizeof(AGLDrawable), sizeof(AGLContext));
+ }
+
+ if ((testMacJava(env) && testJavaGLTypes(verbose)) != JNI_TRUE)
+ {
+ fprintf(stderr, "Error! openOpenGL: JNI & OpenGL-Native data does not fit !\n");
+ return JNI_FALSE;
+ }
+
+ fglContext=(*env)->GetFieldID(env, javaClass, "glContext", "I");
+ if (fglContext == 0)
+ {
+ fprintf(stderr, "Error! openOpenGL:fglContext == 0 \n");
+ return JNI_FALSE;
+ } else {
+ if (verbose == JNI_TRUE)
+ fprintf(stderr, "openOpenGL: fglContext ok \n");
+ }
+
+ if(ret==JNI_TRUE) {
+ foffScreenRenderer = (*env)->GetFieldID(env, javaClass, "offScreenRenderer", "Z");
+ if (foffScreenRenderer == 0) ret= JNI_FALSE;
+ else joffScreenRenderer =(*env)->GetBooleanField(env, obj, foffScreenRenderer);
+ }
+
+ if(ret==JNI_TRUE) {
+ fdoubleBuffer = (*env)->GetFieldID(env, javaClass, "doubleBuffer", "Z");
+ if (fdoubleBuffer == 0) ret= JNI_FALSE;
+ else jdoubleBuffer =(*env)->GetBooleanField(env, obj, fdoubleBuffer);
+ }
+
+ if(ret==JNI_TRUE) {
+ fstereoView = (*env)->GetFieldID(env, javaClass, "stereoView", "Z");
+ if (fstereoView == 0) ret= JNI_FALSE;
+ else jstereoView =(*env)->GetBooleanField(env, obj, fstereoView);
+ }
+
+ if(ret==JNI_TRUE) {
+ frgba = (*env)->GetFieldID(env, javaClass, "rgba", "Z");
+ if (frgba == 0) ret= JNI_FALSE;
+ else jrgba =(*env)->GetBooleanField(env, obj, frgba);
+ }
+
+ if(ret==JNI_TRUE) {
+ fstencilBits = (*env)->GetFieldID(env, javaClass, "stencilBits", "I");
+ if (fstencilBits == 0) ret= JNI_FALSE;
+ else jstencilBits =(*env)->GetIntField(env, obj, fstencilBits);
+ }
+
+ if(ret==JNI_TRUE) {
+ faccumSize = (*env)->GetFieldID(env, javaClass, "accumSize", "I");
+ if (faccumSize == 0) ret= JNI_FALSE;
+ else jaccumSize =(*env)->GetIntField(env, obj, faccumSize);
+ }
+
+ if(ret==JNI_TRUE) {
+ fcreatewinw = (*env)->GetFieldID(env, javaClass, "createwinw", "I");
+ if (fcreatewinw == 0) ret= JNI_FALSE;
+ else jcreatewinw =(*env)->GetIntField(env, obj, fcreatewinw);
+ }
+
+ if(ret==JNI_TRUE) {
+ fcreatewinh = (*env)->GetFieldID(env, javaClass, "createwinh", "I");
+ if (fcreatewinh == 0) ret= JNI_FALSE;
+ else jcreatewinh =(*env)->GetIntField(env, obj, fcreatewinh);
+ }
+
+ if(ret==JNI_TRUE) {
+ fownwind = (*env)->GetFieldID(env, javaClass, "createOwnWindow", "Z");
+ if (fownwind == 0) ret= JNI_FALSE;
+ else jownwind =(*env)->GetBooleanField(env, obj, fownwind);
+ }
+
+ if(ret==JNI_TRUE) {
+ fshareWith = (*env)->GetFieldID(env, javaClass, "sharedGLContextNative", "I");
+ if (fshareWith == 0) ret= JNI_FALSE;
+ else jshareWith =(*env)->GetIntField(env, obj, fshareWith);
+ }
+
+ if(ret==JNI_TRUE) {
+ fwindowHandle = (*env)->GetFieldID(env, javaClass, "windowHandle", "I");
+ if(fwindowHandle == 0) ret= JNI_FALSE;
+ }
+
+
+ if(ret==JNI_TRUE) {
+ fpData = (*env)->GetFieldID(env, javaClass, "pData", "I");
+ if (fpData == 0)
+ {
+ fprintf(stderr, "Error! openOpenGL:fpData == 0 \n");
+ return JNI_FALSE;
+ }
+ else
+ {
+ pData =(*env)->GetIntField(env, obj, fpData);
+ if (verbose == JNI_TRUE)
+ fprintf(stderr, "openOpenGL: received pData %d \n", (UInt32)pData);
+ }
+ }
+
+ if(ret==JNI_TRUE) {
+ fpixmapHandle = (*env)->GetFieldID(env, javaClass, "pixmapHandle", "I");
+ if (fpixmapHandle == 0) ret= JNI_FALSE;
+ }
+
+ if(joffScreenRenderer==JNI_TRUE)
+ {
+ jownwind = JNI_FALSE;
+ pData=0;
+ }
+
+ if(pData==0 && joffScreenRenderer==JNI_FALSE)
+ {
+ fprintf(stderr,"\nGL4Java ERROR: given native window == NULL !\n");
+ fflush(stderr);
+ return JNI_FALSE;
+ }
+
+ if(joffScreenRenderer==JNI_FALSE)
+ {
+ data = (UInt32 *)pData;
+ if (data == 0)
+ {
+ fprintf(stderr, "Error! openOpenGL:data == 0 \n");
+ return JNI_FALSE;
+ } else {
+ glDrawable = (AGLDrawable)pData;
+ if (glDrawable == nil)
+ {
+ fprintf(stderr, "Error! openOpenGL:glDrawable == nil \n");
+ return JNI_FALSE;
+ } else if (verbose == JNI_TRUE) {
+ fprintf(stderr, "openOpenGL: glDrawable ok \n");
+ }
+ }
+ }
+
+ glContext = get_GC(env, glDrawable,
+ verbose, &jdoubleBuffer,
+ &jstereoView, &jrgba,
+ &jstencilBits, &jaccumSize, (AGLContext)jshareWith,
+ joffScreenRenderer, &g_world, jcreatewinw, jcreatewinh);
+
+ if (glContext == nil)
+ {
+ fprintf(stderr, "Error! openOpenGL:glContext == nil \n");
+
+ return JNI_FALSE;
+ }
+
+ (*env)->SetIntField(env, obj, fdoubleBuffer, jdoubleBuffer);
+ if (verbose == JNI_TRUE)
+ {
+ fprintf(stderr, "openOpenGL: set jdoubleBuffer %d \n", (UInt32)jdoubleBuffer);
+ }
+
+ (*env)->SetIntField(env, obj, fstereoView, jstereoView);
+ if (verbose == JNI_TRUE)
+ {
+ fprintf(stderr, "openOpenGL: set jstereoView %d \n", (UInt32)jstereoView);
+ }
+
+ (*env)->SetBooleanField(env, obj, frgba, jrgba);
+ if (verbose == JNI_TRUE)
+ {
+ fprintf(stderr, "openOpenGL: set jrgba %d \n", (UInt32)jrgba);
+ }
+
+ (*env)->SetIntField(env, obj, fstencilBits, jstencilBits);
+ if (verbose == JNI_TRUE)
+ {
+ fprintf(stderr, "openOpenGL: set jstencilBits %d \n", (UInt32)jstencilBits);
+ }
+
+ (*env)->SetIntField(env, obj, faccumSize, jaccumSize);
+ if (verbose == JNI_TRUE)
+ {
+ fprintf(stderr, "openOpenGL: set jaccumSize %d \n", (UInt32)jaccumSize);
+ }
+
+ (*env)->SetIntField(env, obj, fwindowHandle, (jint)glDrawable);
+
+ (*env)->SetIntField(env, obj, fpixmapHandle, (jint)g_world);
+
+ (*env)->SetIntField(env, obj, fglContext, (jint)glContext);
+
+ return JNI_TRUE;
+}
+
+//
+// Java_gl4java_GLContext_gljMakeCurrentNative
+//
+JNIEXPORT jboolean JNICALL
+Java_gl4java_GLContext_gljMakeCurrentNative(JNIEnv *env, jobject obj,
+ jint disp,
+ jint thisWin,
+ jint glContext
+ )
+{
+#ifdef _DEBUG_DETAIL_OPENGL_MAC_
+ fprintf(stderr, "in gljMakeCurrentNative, disp=%d, thisWin=%d, glContext=%d\n", disp, thisWin, glContext);
+#endif
+ GrafPtr port,
+ savedPort;
+
+
+ InstallJavaConsole(env);
+
+ // a workaround for the "obscured window" bug
+ if (thisWin != nil)
+ {
+ port = (GrafPtr)thisWin;
+ GetPort(&savedPort);
+ SetPort(port);
+ ClipRect(&((*(port->visRgn))->rgnBBox));
+ SetPort(savedPort);
+ }
+
+ /*
+ if (freeContextFirst == JNI_TRUE)
+ {
+ aglSetDrawable((AGLContext)glContext, nil);
+ aglSetCurrentContext(nil);
+ }*/
+
+ if (aglSetDrawable((AGLContext)glContext, (AGLDrawable)thisWin) == GL_FALSE)
+ {
+ fprintf(stderr, "Warning! aglSetDrawable failed \n");
+ }
+ else
+ {
+ if (aglSetCurrentContext((AGLContext)glContext) == GL_FALSE)
+ {
+ fprintf(stderr, "Warning! gljMakeCurrentNative: could not set context \n");
+ }
+ }
+
+ return JNI_TRUE;
+}
+
+//
+// Java_gl4java_GLContext_gljFreeNative
+//
+JNIEXPORT jboolean JNICALL
+Java_gl4java_GLContext_gljFreeNative(JNIEnv *env, jobject obj,
+ jint disp,
+ jint thisWin,
+ jint glContext)
+{
+ InstallJavaConsole(env);
+
+#ifdef _DEBUG_DETAIL_OPENGL_MAC_
+ fprintf(stderr, "in gljFreeNative, disp=%d, thisWin=%d, glContext=%d \n", disp, thisWin, glContext);
+#endif
+
+ if (aglSetDrawable((AGLContext)glContext, nil) == GL_FALSE)
+ {
+ fprintf(stderr, "gljFreeNative: aglSetDrawable failed \n");
+
+ return JNI_FALSE;
+ }
+ else
+ {
+ if (aglSetCurrentContext(nil) == GL_FALSE)
+ {
+ fprintf(stderr, "gljFreeNative: aglSetCurrentContext failed \n");
+
+ return JNI_FALSE;
+ }
+ }
+
+ return JNI_TRUE;
+}
+
+//
+// Java_gl4java_GLContext_gljDestroyNative
+//
+JNIEXPORT jboolean JNICALL
+Java_gl4java_GLContext_gljDestroyNative(JNIEnv *env, jobject obj)
+{
+ jclass javaClass = 0;
+ jfieldID fwindowHandle = 0,
+ fpData = 0,
+ fglContext = 0,
+ foffScreenRenderer=0,
+ fpixmapHandle=0;
+ AGLContext glContext = nil;
+ jboolean joffScreenRenderer=JNI_FALSE;
+
+ // offscreen stuff ...
+ GWorldPtr g_world;
+ PixMapHandle pixMap;
+
+ InstallJavaConsole(env);
+
+#ifdef _DEBUG_OPENGL_MAC_
+ fprintf(stderr, "in gljDestroyNative \n");
+#endif
+
+ javaClass = (*env)->GetObjectClass(env, obj);
+ if (javaClass == 0)
+ {
+ fprintf(stderr, "Error! gljDestroy:javaClass == 0 \n");
+
+ return JNI_FALSE;
+ }
+
+ fwindowHandle = (*env)->GetFieldID(env, javaClass, "windowHandle", "I");
+ if (fwindowHandle == 0)
+ {
+ fprintf(stderr, "Error! openOpenGL:fwindowHandle == 0 \n");
+
+ return JNI_FALSE;
+ }
+
+ fglContext = (*env)->GetFieldID(env, javaClass, "glContext", "I");
+ if (fglContext == 0)
+ {
+ fprintf(stderr, "Error! gljDestroy:fglContext == 0 \n");
+
+ return JNI_FALSE;
+ }
+ else
+ {
+ glContext = (AGLContext)(*env)->GetIntField(env, obj, fglContext);
+ if (glContext == nil)
+ {
+ fprintf(stderr, "Error! gljDestroy:glContext == nil \n");
+
+ return JNI_FALSE;
+ }
+ }
+
+ foffScreenRenderer = (*env)->GetFieldID(env, javaClass, "offScreenRenderer", "Z");
+ if (foffScreenRenderer == 0) return JNI_FALSE;
+ joffScreenRenderer =(*env)->GetBooleanField(env, obj, foffScreenRenderer);
+
+ fpixmapHandle = (*env)->GetFieldID(env, javaClass, "pixmapHandle", "I");
+ if (fpixmapHandle == 0) return JNI_FALSE;
+ g_world = (GWorldPtr)(*env)->GetIntField(env, obj, fpixmapHandle);
+
+ aglSetCurrentContext(nil);
+
+ if(joffScreenRenderer==JNI_FALSE)
+ {
+ if ((aglSetDrawable(glContext, nil) == GL_FALSE))
+ {
+ fprintf(stderr, "Warning! gljDestroy:aglSetDrawable failed (free) \n");
+
+ return JNI_FALSE;
+ }
+ else
+ {
+ aglDestroyContext(glContext);
+ }
+ } else {
+ /* Destroy the window and GWorld */
+ pixMap = GetGWorldPixMap(g_world);
+ UnlockPixels(pixMap);
+ DisposeGWorld(g_world);
+ }
+ (*env)->SetIntField(env, obj, fwindowHandle, (jint)nil);
+ (*env)->SetIntField(env, obj, fglContext, (jint)nil);
+ (*env)->SetIntField(env, obj, fpData, (jint)nil);
+ (*env)->SetIntField(env, obj, fpixmapHandle, (jint)nil);
+
+ UninstallJavaConsole();
+
+ return JNI_TRUE;
+}
+
+//
+// Java_gl4java_GLContext_gljSwap
+//
+JNIEXPORT jboolean JNICALL
+Java_gl4java_GLContext_gljSwapNative(JNIEnv *env, jobject obj,
+ jint disp,
+ jint thisWin,
+ jint glContext,
+ jboolean doubleBuffer)
+{
+ InstallJavaConsole(env);
+
+#ifdef _DEBUG_DETAIL_OPENGL_MAC_
+ fprintf(stderr, "in gljSwap, disp=%d, thisWin=%d, glContext=%d, doubleBuffer= %d \n", disp, thisWin, glContext, doubleBuffer);
+#endif
+
+ if (glContext == nil)
+ {
+ fprintf(stderr, "Error! gljSwapNative:glContext == nil \n");
+
+ return JNI_FALSE;
+ }
+
+ if (doubleBuffer == JNI_TRUE)
+ {
+ aglSwapBuffers((AGLContext)glContext);
+ }
+
+ return JNI_TRUE;
+}
+
+//
+// Java_gl4java_GLContext_gljResize
+//
+//
+JNIEXPORT void JNICALL
+Java_gl4java_GLContext_gljResizeNative(JNIEnv *env, jobject obj,
+ jboolean isOwnWindow,
+ jint disp, jint thisWin,
+ jint width, jint height)
+{
+ jclass javaClass = 0;
+ jfieldID fpData = 0,
+ fglContext = 0;
+ AGLContext glContext = nil;
+
+
+ InstallJavaConsole(env);
+
+#ifdef _DEBUG_OPENGL_MAC_
+ fprintf(stderr, "in gljResize, width=%d, height= %d \n", width, height);
+#endif
+
+/*
+ javaClass = (*env)->GetObjectClass(env, obj);
+ if (javaClass == 0)
+ {
+ fprintf(stderr, "Error! gljResizeNative:javaClass == 0 \n");
+
+ return;
+ }
+
+ fglContext = (*env)->GetFieldID(env, javaClass, "glContext", "I");
+ if (fglContext == 0)
+ {
+ fprintf(stderr, "Error! gljResizeNative:fglContext == 0 \n");
+
+ return;
+ }
+ else
+ {
+ glContext = (AGLContext)(*env)->GetIntField(env, obj, fglContext);
+ if (glContext == nil)
+ {
+ fprintf(stderr, "Error! gljResizeNative:glContext == nil \n");
+
+ return;
+ }
+ }
+
+ aglUpdateContext(glContext);
+*/
+}
+
+#pragma mark -
+
+//
+// testMacJava
+//
+static jboolean testMacJava(JNIEnv *env)
+{
+ jboolean ret = JNI_TRUE;
+
+
+ if (sizeof(jint) < sizeof(UInt32 *))
+ {
+ fprintf(stderr, "UInt32 does NOT fit in jint \n");
+
+ ret = JNI_FALSE;
+ }
+
+ if (sizeof(jint) < sizeof(AGLDrawable))
+ {
+ fprintf(stderr, "AGLDrawable does NOT fit in jint \n");
+
+ ret = JNI_FALSE;
+ }
+
+ if (sizeof(jint) < sizeof(AGLContext))
+ {
+ fprintf(stderr, "AGLContext does NOT fit in jint \n");
+
+ ret = JNI_FALSE;
+ }
+
+ return ret;
+}
+
+//
+// AGLContext
+//
+static AGLContext get_GC(JNIEnv *env, AGLDrawable glDrawable,
+ jboolean verbose, jboolean *doubleBuffer,
+ jboolean *stereo, jboolean *isRGBA,
+ int *stencilBits, int *accumSize, AGLContext sharedGLC,
+ jboolean isOffScr, GWorldPtr *g_world, int width, int height)
+
+{
+ GDHandle device = GetMainDevice();
+ AGLContext context = nil;
+ AGLPixelFormat pixelformat = nil;
+ RenderersInfoRect info;
+ GLenum err;
+
+ // offscreen stuff ...
+ Rect rect;
+ PixMapHandle pixMap;
+ void *baseaddr;
+ long pixelsize=0;
+ int rowbytes;
+ QDErr qdErr;
+
+
+#ifdef _DEBUG_OPENGL_MAC_
+ verbose = JNI_TRUE;
+ fprintf(stderr, "in get_GC, glDrawable=0x%X, verbose=%d, doubleBuffer=%d, stereo= %d \n", glDrawable, verbose, *doubleBuffer, *stereo);
+#endif
+
+ if (glDrawable == nil && isOffScr==JNI_FALSE)
+ {
+ fprintf(stderr, "get_GC: Error, glDrawable is nil \n");
+ return nil;
+ }
+
+ if (verbose == JNI_TRUE)
+ {
+ printAllRenderer(env);
+ }
+
+ if(isOffScr==JNI_TRUE)
+ {
+ /* Find the depth of the main screen */
+ pixelsize = (*(*GetMainDevice())->gdPMap)->pixelSize;
+
+ /* Create the offscreen gworld */
+ SetRect(&rect, 0, 0, width, height);
+ qdErr = NewGWorld(g_world, (short) pixelsize, &rect, NULL, NULL, useTempMem);
+ if(qdErr || !(*g_world)) {
+ fprintf(stderr, "get_GC: Error, NewGWorld is nil \n");
+ return nil;
+ }
+
+ /* Lock pixmap handle and get its specifications */
+ pixMap = GetGWorldPixMap(*g_world);
+ LockPixels(pixMap);
+ baseaddr = GetPixBaseAddr(pixMap);
+ rowbytes = (**pixMap).rowBytes & 0x7FFF;
+ }
+
+ setDefaultPixelFormat(env, &info.attributeList,
+ verbose, *doubleBuffer, *stereo, *isRGBA, *stencilBits,
+ *accumSize, isOffScr, pixelsize);
+
+ if(isOffScr==JNI_FALSE)
+ {
+ getRenderersInfo(env, &info);
+ chooseBestRenderer(env, &info,
+ verbose, doubleBuffer,
+ stereo, isRGBA,
+ stencilBits, accumSize,
+ isOffScr, false);
+ }
+ // create pixel format
+ if (verbose == JNI_TRUE)
+ {
+ printPixelFormat(env, info.attributeList);
+ }
+
+ if(isOffScr==JNI_FALSE)
+ pixelformat = aglChoosePixelFormat(&device, 1, info.attributeList);
+ else
+ pixelformat = aglChoosePixelFormat(NULL, 0, info.attributeList);
+
+ if (pixelformat == nil)
+ {
+ fprintf(stderr, "get_GC: Error, pixelformat is nil \n");
+
+ return nil;
+ }
+ else if (verbose == JNI_TRUE)
+ {
+ fprintf(stderr, "pixelformat ok \n");
+ printPixelFormatInfo(env, pixelformat);
+ }
+
+ DisposePtr((Ptr)info.info);
+
+ // create AGL context
+ context = aglCreateContext(pixelformat, sharedGLC);
+ if (context == nil)
+ {
+ fprintf(stderr, "getGC context could NOT be created \n");
+
+ return nil;
+ }
+ else if (verbose == JNI_TRUE)
+ {
+ fprintf(stderr, "context ok \n");
+
+ /*
+ parameter = 0;
+ if (aglSetInteger(context, AGL_SWAP_INTERVAL, &parameter) == GL_FALSE)
+ {
+ fprintf(stderr, "setting AGL_SWAP_INTERVAL failed \n");
+ }
+ */
+ }
+
+ checkPixelFormatInfo(env, pixelformat, doubleBuffer,
+ stereo, isRGBA, stencilBits, accumSize);
+
+ if(isOffScr==JNI_FALSE)
+ {
+ // associate the context with the Mac drawable (window)
+ if (aglSetDrawable(context, glDrawable) == GL_FALSE)
+ {
+ fprintf(stderr, "aglSetDrawable NOT successfull \n");
+
+ aglDestroyPixelFormat(pixelformat);
+ aglDestroyContext(context);
+
+ return nil;
+ }
+ else if (verbose == JNI_TRUE)
+ {
+ fprintf(stderr, "aglSetDrawable successfull \n");
+ }
+ } else {
+ /* Attach the off screen area to the context */
+ if(!aglSetOffScreen(context, width, height, rowbytes, baseaddr)) return nil;
+ }
+
+ if (aglSetCurrentContext(context) == GL_FALSE)
+ {
+ fprintf(stderr, "aglSetCurrentContext NOT successfull \n");
+
+ aglDestroyPixelFormat(pixelformat);
+ aglDestroyContext(context);
+
+ return nil;
+ }
+ else if (verbose == JNI_TRUE)
+ {
+ fprintf(stderr, "aglSetCurrentContext successfull \n");
+ }
+
+ if (verbose == JNI_TRUE)
+ {
+ fprintf(stderr, "AGLContext created: %d \n", (UInt32)context);
+ }
+
+ aglDestroyPixelFormat(pixelformat);
+
+ return context;
+}
+
+#pragma mark -
+
+//
+// setDefaultPixelFormat
+//
+static GLint setDefaultPixelFormat(JNIEnv *env, GLint (*pixelFormatList)[PIXEL_FROMAT_LIST_SIZE],
+ jboolean verbose, jboolean doubleBuffer,
+ jboolean stereo, jboolean isRGBA,
+ int stencilBits, int accumSize,
+ jboolean isOffScr, int pixelsize)
+{
+ int i=0;
+ int help;
+
+ (*pixelFormatList)[i++] = AGL_RENDERER_ID;
+ (*pixelFormatList)[i++] = AGL_RENDERER_GENERIC_ID;
+ //(*pixelFormatList)[i++] = AGL_RENDERER_ATI_ID;
+ //(*pixelFormatList)[i++] = AGL_RENDERER_GENERIC_ID|AGL_RENDERER_ATI_ID; // VooDoo?
+
+ (*pixelFormatList)[i++] = AGL_DEPTH_SIZE;
+ (*pixelFormatList)[i++] = 16;
+
+ if(isRGBA!=0)
+ (*pixelFormatList)[i++] = AGL_RGBA;
+
+ if(doubleBuffer!=0)
+ (*pixelFormatList)[i++] = AGL_DOUBLEBUFFER;
+
+ if(stereo!=0)
+ (*pixelFormatList)[i++] = AGL_STEREO;
+
+ if(stencilBits>0)
+ {
+ (*pixelFormatList)[i++] = AGL_STENCIL_SIZE;
+ (*pixelFormatList)[i++] = stencilBits;
+ }
+
+ if(accumSize>0)
+ {
+ (*pixelFormatList)[i++] = AGL_ACCUM_RED_SIZE;
+ (*pixelFormatList)[i++] = accumSize;
+ (*pixelFormatList)[i++] = AGL_ACCUM_GREEN_SIZE;
+ (*pixelFormatList)[i++] = accumSize;
+ (*pixelFormatList)[i++] = AGL_ACCUM_BLUE_SIZE;
+ (*pixelFormatList)[i++] = accumSize;
+ if(isRGBA)
+ {
+ (*pixelFormatList)[i++] = AGL_ACCUM_ALPHA_SIZE;
+ (*pixelFormatList)[i++] = accumSize;
+ }
+ }
+
+ if(isOffScr!=0)
+ {
+ (*pixelFormatList)[i++] = AGL_OFFSCREEN;
+ (*pixelFormatList)[i++] = AGL_PIXEL_SIZE;
+ (*pixelFormatList)[i++] = pixelsize;
+ }
+ (*pixelFormatList)[i++] = AGL_NONE;
+}
+
+//
+// printPixelFormat
+//
+static void printPixelFormat(JNIEnv *env, GLint pixelFormatList[PIXEL_FROMAT_LIST_SIZE])
+{
+ fprintf(stderr, "attributes of pixel format lists \n");
+ fprintf(stderr, " renderer ID: 0x%X \n", pixelFormatList[1]);
+ fprintf(stderr, " z buffer depth: %d \n", pixelFormatList[3]);
+ fprintf(stderr, " double buffer: %d \n", (pixelFormatList[5]==AGL_DOUBLEBUFFER));
+ fprintf(stderr, " stereo: %d \n", (pixelFormatList[6]==AGL_STEREO));
+
+ fprintf(stderr, "attributes of pixel format lists in raw format \n");
+ fprintf(stderr, " 0: %d \n", pixelFormatList[0]);
+ fprintf(stderr, " 1: %d \n", pixelFormatList[1]);
+ fprintf(stderr, " 2: %d \n", pixelFormatList[2]);
+ fprintf(stderr, " 3: %d \n", pixelFormatList[3]);
+ fprintf(stderr, " 4: %d \n", pixelFormatList[4]);
+ fprintf(stderr, " 5: %d \n", pixelFormatList[5]);
+ fprintf(stderr, " 6: %d \n", pixelFormatList[6]);
+ fprintf(stderr, " 7: %d \n", pixelFormatList[7]);
+ fprintf(stderr, " 8: %d \n", pixelFormatList[8]);
+ fprintf(stderr, " 9: %d \n", pixelFormatList[9]);
+ fprintf(stderr, " 10: %d \n", pixelFormatList[10]);
+}
+
+//
+// isColorARGB
+//
+static GLboolean isColorARGB(JNIEnv *env, GLint colorModes)
+{
+ GLboolean isARGB = GL_FALSE;
+
+
+ if ((colorModes&AGL_ARGB16161616_BIT) != 0)
+ {
+ isARGB = GL_TRUE;
+ }
+ else if ((colorModes&AGL_ARGB12121212_BIT) != 0)
+ {
+ isARGB = GL_TRUE;
+ }
+ else if ((colorModes&AGL_RGB101010_A8_BIT) != 0)
+ {
+ isARGB = GL_TRUE;
+ }
+ else if ((colorModes&AGL_ARGB2101010_BIT) != 0)
+ {
+ isARGB = GL_TRUE;
+ }
+ else if ((colorModes&AGL_RGB888_A8_BIT) != 0)
+ {
+ isARGB = GL_TRUE;
+ }
+ else if ((colorModes&AGL_ARGB8888_BIT) != 0)
+ {
+ isARGB = GL_TRUE;
+ }
+ else if ((colorModes&AGL_RGB565_A8_BIT) != 0)
+ {
+ isARGB = GL_TRUE;
+ }
+ else if ((colorModes&AGL_RGB555_A8_BIT) != 0)
+ {
+ isARGB = GL_TRUE;
+ }
+ else if ((colorModes&AGL_ARGB1555_BIT) != 0)
+ {
+ isARGB = GL_TRUE;
+ }
+ else if ((colorModes&AGL_RGB444_A8_BIT) != 0)
+ {
+ isARGB = GL_TRUE;
+ }
+ else if ((colorModes&AGL_ARGB4444_BIT) != 0)
+ {
+ isARGB = GL_TRUE;
+ }
+ else if ((colorModes&AGL_RGB332_A8_BIT) != 0)
+ {
+ isARGB = GL_TRUE;
+ }
+ else if ((colorModes&AGL_BGR233_A8_BIT) != 0)
+ {
+ isARGB = GL_TRUE;
+ }
+ else if ((colorModes&AGL_RGB8_A8_BIT) != 0)
+ {
+ isARGB = GL_TRUE;
+ }
+
+ return isARGB;
+}
+
+//
+// isColorRGB
+//
+static GLboolean isColorRGB(JNIEnv *env, GLint colorModes)
+{
+ GLboolean isRGB = GL_FALSE;
+
+
+ if ((colorModes&AGL_RGB161616_BIT) != 0)
+ {
+ isRGB = GL_TRUE;
+ }
+ else if ((colorModes&AGL_RGB121212_BIT) != 0)
+ {
+ isRGB = GL_TRUE;
+ }
+ else if ((colorModes&AGL_RGB101010_BIT) != 0)
+ {
+ isRGB = GL_TRUE;
+ }
+ else if ((colorModes&AGL_RGB888_BIT) != 0)
+ {
+ isRGB = GL_TRUE;
+ }
+ else if ((colorModes&AGL_RGB565_BIT) != 0)
+ {
+ isRGB = GL_TRUE;
+ }
+ else if ((colorModes&AGL_RGB555_BIT) != 0)
+ {
+ isRGB = GL_TRUE;
+ }
+ else if ((colorModes&AGL_RGB444_BIT) != 0)
+ {
+ isRGB = GL_TRUE;
+ }
+ else if ((colorModes&AGL_RGB332_BIT) != 0)
+ {
+ isRGB = GL_TRUE;
+ }
+ else if ((colorModes&AGL_BGR233_BIT) != 0)
+ {
+ isRGB = GL_TRUE;
+ }
+ else if ((colorModes&AGL_RGB8_BIT) != 0)
+ {
+ isRGB = GL_TRUE;
+ }
+
+ return isRGB;
+}
+
+//
+// chooseBestColor
+//
+static GLint chooseBestColor(JNIEnv *env, GLint colorModes)
+{
+ GLint best = 0;
+
+
+ if ((colorModes&AGL_ARGB16161616_BIT) != 0)
+ {
+ best = AGL_ARGB16161616_BIT;
+ }
+ else if ((colorModes&AGL_RGB161616_BIT) != 0)
+ {
+ best = AGL_RGB161616_BIT;
+ }
+ else if ((colorModes&AGL_ARGB12121212_BIT) != 0)
+ {
+ best = AGL_ARGB12121212_BIT;
+ }
+ else if ((colorModes&AGL_RGB121212_BIT) != 0)
+ {
+ best = AGL_RGB121212_BIT;
+ }
+ else if ((colorModes&AGL_RGB101010_A8_BIT) != 0)
+ {
+ best = AGL_RGB101010_A8_BIT;
+ }
+ else if ((colorModes&AGL_ARGB2101010_BIT) != 0)
+ {
+ best = AGL_ARGB2101010_BIT;
+ }
+ else if ((colorModes&AGL_RGB101010_BIT) != 0)
+ {
+ best = AGL_RGB101010_BIT;
+ }
+ else if ((colorModes&AGL_RGB888_A8_BIT) != 0)
+ {
+ best = AGL_RGB888_A8_BIT;
+ }
+ else if ((colorModes&AGL_ARGB8888_BIT) != 0)
+ {
+ best = AGL_ARGB8888_BIT;
+ }
+ else if ((colorModes&AGL_RGB888_BIT) != 0)
+ {
+ best = AGL_RGB888_BIT;
+ }
+ else if ((colorModes&AGL_RGB565_A8_BIT) != 0)
+ {
+ best = AGL_RGB565_A8_BIT;
+ }
+ else if ((colorModes&AGL_RGB565_BIT) != 0)
+ {
+ best = AGL_RGB565_BIT;
+ }
+ else if ((colorModes&AGL_RGB555_A8_BIT) != 0)
+ {
+ best = AGL_RGB555_A8_BIT;
+ }
+ else if ((colorModes&AGL_ARGB1555_BIT) != 0)
+ {
+ best = AGL_ARGB1555_BIT;
+ }
+ else if ((colorModes&AGL_RGB555_BIT) != 0)
+ {
+ best = AGL_RGB555_BIT;
+ }
+ else if ((colorModes&AGL_RGB444_A8_BIT) != 0)
+ {
+ best = AGL_RGB444_A8_BIT;
+ }
+ else if ((colorModes&AGL_ARGB4444_BIT) != 0)
+ {
+ best = AGL_ARGB4444_BIT;
+ }
+ else if ((colorModes&AGL_RGB444_BIT) != 0)
+ {
+ best = AGL_RGB444_BIT;
+ }
+ else if ((colorModes&AGL_RGB332_A8_BIT) != 0)
+ {
+ best = AGL_RGB332_A8_BIT;
+ }
+ else if ((colorModes&AGL_RGB332_BIT) != 0)
+ {
+ best = AGL_RGB332_BIT;
+ }
+ else if ((colorModes&AGL_BGR233_A8_BIT) != 0)
+ {
+ best = AGL_BGR233_A8_BIT;
+ }
+ else if ((colorModes&AGL_BGR233_BIT) != 0)
+ {
+ best = AGL_BGR233_BIT;
+ }
+ else if ((colorModes&AGL_RGB8_A8_BIT) != 0)
+ {
+ best = AGL_RGB8_A8_BIT;
+ }
+ else if ((colorModes&AGL_RGB8_BIT) != 0)
+ {
+ best = AGL_RGB8_BIT;
+ }
+/*
+ else if ((colorModes&AGL_INDEX16_BIT) != 0)
+ {
+ best = AGL_INDEX16_BIT;
+ }
+ else if ((colorModes&AGL_INDEX8_BIT) != 0)
+ {
+ best = AGL_INDEX8_BIT;
+ }
+
+*/
+ return best;
+}
+
+//
+// chooseBestDepth
+//
+static GLint chooseBestDepth(JNIEnv *env, GLint depthModes)
+{
+ GLint best = 0;
+
+
+ if ((depthModes&AGL_128_BIT) != 0)
+ {
+ best = AGL_128_BIT;
+ }
+ else if ((depthModes&AGL_96_BIT) != 0)
+ {
+ best = AGL_96_BIT;
+ }
+ else if ((depthModes&AGL_64_BIT) != 0)
+ {
+ best = AGL_64_BIT;
+ }
+ else if ((depthModes&AGL_48_BIT) != 0)
+ {
+ best = AGL_48_BIT;
+ }
+ else if ((depthModes&AGL_32_BIT) != 0)
+ {
+ best = AGL_32_BIT;
+ }
+ else if ((depthModes&AGL_24_BIT) != 0)
+ {
+ best = AGL_24_BIT;
+ }
+ else if ((depthModes&AGL_16_BIT) != 0)
+ {
+ best = AGL_16_BIT;
+ }
+ else if ((depthModes&AGL_12_BIT) != 0)
+ {
+ best = AGL_12_BIT;
+ }
+ else if ((depthModes&AGL_10_BIT) != 0)
+ {
+ best = AGL_10_BIT;
+ }
+ else if ((depthModes&AGL_8_BIT) != 0)
+ {
+ best = AGL_8_BIT;
+ }
+ else if ((depthModes&AGL_6_BIT) != 0)
+ {
+ best = AGL_6_BIT;
+ }
+ else if ((depthModes&AGL_5_BIT) != 0)
+ {
+ best = AGL_5_BIT;
+ }
+ else if ((depthModes&AGL_4_BIT) != 0)
+ {
+ best = AGL_4_BIT;
+ }
+ else if ((depthModes&AGL_3_BIT) != 0)
+ {
+ best = AGL_3_BIT;
+ }
+ else if ((depthModes&AGL_2_BIT) != 0)
+ {
+ best = AGL_2_BIT;
+ }
+ else if ((depthModes&AGL_1_BIT) != 0)
+ {
+ best = AGL_1_BIT;
+ }
+ else if ((depthModes&AGL_0_BIT) != 0)
+ {
+ best = AGL_0_BIT;
+ }
+
+ return best;
+}
+
+//
+// mapAGLDepth2DecDepth
+//
+static GLint mapAGLDepth2DecDepth(JNIEnv *env, GLint depthMode)
+{
+ GLint depth = 0;
+
+
+ if (depthMode == AGL_128_BIT)
+ {
+ depth = 128;
+ }
+ else if (depthMode == AGL_96_BIT)
+ {
+ depth = 96;
+ }
+ else if (depthMode == AGL_64_BIT)
+ {
+ depth = 64;
+ }
+ else if (depthMode == AGL_48_BIT)
+ {
+ depth = 48;
+ }
+ else if (depthMode == AGL_32_BIT)
+ {
+ depth = 32;
+ }
+ else if (depthMode == AGL_24_BIT)
+ {
+ depth = 24;
+ }
+ else if (depthMode == AGL_16_BIT)
+ {
+ depth = 16;
+ }
+ else if (depthMode == AGL_12_BIT)
+ {
+ depth = 12;
+ }
+ else if (depthMode == AGL_10_BIT)
+ {
+ depth = 10;
+ }
+ else if (depthMode == AGL_8_BIT)
+ {
+ depth = 8;
+ }
+ else if (depthMode == AGL_6_BIT)
+ {
+ depth = 6;
+ }
+ else if (depthMode == AGL_5_BIT)
+ {
+ depth = 5;
+ }
+ else if (depthMode == AGL_4_BIT)
+ {
+ depth = 4;
+ }
+ else if (depthMode == AGL_3_BIT)
+ {
+ depth = 3;
+ }
+ else if (depthMode == AGL_2_BIT)
+ {
+ depth = 2;
+ }
+ else if (depthMode == AGL_1_BIT)
+ {
+ depth = 1;
+ }
+ else if (depthMode == AGL_0_BIT)
+ {
+ depth = 0;
+ }
+
+ return depth;
+}
+
+//
+// getRenderersInfo
+//
+static void getRenderersInfo(JNIEnv *env, RenderersInfoRectPtr info)
+{
+ UInt32 count = 0;
+ AGLRendererInfo renderInfo = nil,
+ renderInfoHead = nil;
+ GDHandle device = GetMainDevice();
+ GLint returnedInfo = 0;
+ //THz saveZone = GetZone();
+
+
+ count = 0;
+ renderInfoHead = aglQueryRendererInfo(&device, 1);
+ renderInfo = renderInfoHead;
+ while (renderInfo != nil)
+ {
+ renderInfo = aglNextRendererInfo(renderInfo);
+ count++;
+ }
+ aglDestroyRendererInfo(renderInfoHead);
+
+ info->count = count;
+ //SetZone(SystemZone());
+ info->info = (RendererRectPtr)NewPtrClear(info->count * sizeof(RendererRect));
+ //SetZone(saveZone);
+
+ count = 0;
+ renderInfoHead = aglQueryRendererInfo(&device, 1);
+ renderInfo = renderInfoHead;
+ while (renderInfo != nil)
+ {
+ info->info[count].valid = GL_TRUE;
+
+ aglDescribeRenderer(renderInfo, AGL_RENDERER_ID, &returnedInfo);
+ info->info[count].id = returnedInfo;
+
+ aglDescribeRenderer(renderInfo, AGL_ACCELERATED, &returnedInfo);
+ info->info[count].accelerated = (GLboolean)returnedInfo;
+
+ aglDescribeRenderer(renderInfo, AGL_BUFFER_MODES, &returnedInfo);
+ info->info[count].singleBuffer = (GLboolean)((returnedInfo&AGL_SINGLEBUFFER_BIT)!=0);
+ info->info[count].doubleBuffer = (GLboolean)((returnedInfo&AGL_DOUBLEBUFFER_BIT)!=0);
+ info->info[count].mono = (GLboolean)((returnedInfo&AGL_MONOSCOPIC_BIT)!=0);
+ info->info[count].stereo = (GLboolean)((returnedInfo&AGL_STEREOSCOPIC_BIT)!=0);
+
+ aglDescribeRenderer(renderInfo, AGL_COLOR_MODES, &returnedInfo);
+ info->info[count].colorModes = returnedInfo;
+
+ aglDescribeRenderer(renderInfo, AGL_DEPTH_MODES, &returnedInfo);
+ info->info[count].depthModes = returnedInfo;
+
+ aglDescribeRenderer(renderInfo, AGL_STENCIL_MODES, &returnedInfo);
+ info->info[count].stencilModes = returnedInfo;
+
+ aglDescribeRenderer(renderInfo, AGL_ACCUM_MODES, &returnedInfo);
+ info->info[count].accumModes = returnedInfo;
+
+ renderInfo = aglNextRendererInfo(renderInfo);
+ count++;
+ }
+ aglDestroyRendererInfo(renderInfoHead);
+}
+
+//
+// printRendererInfo
+//
+static void printRawRendererInfo(JNIEnv *env, RendererRect info)
+{
+ fprintf(stderr, "renderer info \n");
+ fprintf(stderr, " valid: %d \n", info.valid);
+ fprintf(stderr, " ID: 0x%X \n", info.id);
+ fprintf(stderr, " accelerated: %d \n", info.accelerated);
+ fprintf(stderr, " depthModes: %d \n", info.depthModes);
+ fprintf(stderr, " colorModes: %d \n", info.colorModes);
+ fprintf(stderr, " stencilModes: %d \n", info.stencilModes);
+ fprintf(stderr, " singleBuffer: %d \n", info.singleBuffer);
+ fprintf(stderr, " doubleBuffer: %d \n", info.doubleBuffer);
+ fprintf(stderr, " mono: %d \n", info.mono);
+ fprintf(stderr, " stereo: %d \n", info.stereo);
+}
+
+//
+// chooseBestRenderer
+//
+static void chooseBestRenderer(JNIEnv *env, RenderersInfoRectPtr info,
+ jboolean verbose, jboolean *doubleBuffer,
+ jboolean *stereo, jboolean *isRGBA,
+ int *stencilBits, int *accumSize,
+ jboolean isOffScr, jboolean forceSWRenderer)
+{
+ int i=0, help=0;
+ UInt32 count, listIndex= 0;
+ GLboolean haveAcceleratedRenderer = GL_FALSE,
+ haveValidRenderer = GL_FALSE,
+ chooseNewPixelFormat = GL_FALSE;
+
+
+ for (count=0; count<(info->count); count++)
+ {
+ info->info[count].valid =
+ info->info[count].valid &&
+ (isColorARGB(env, info->info[count].colorModes) == GL_TRUE);
+
+ if (*doubleBuffer == JNI_TRUE)
+ {
+ info->info[count].valid =
+ info->info[count].valid &&
+ (info->info[count].doubleBuffer == GL_TRUE);
+ }
+
+ if (*stereo == JNI_TRUE)
+ {
+ // there are no stereoscopic OpenGL renderers
+ // for mac avaialable yet
+ // no reason to reject a
+ // (possibly hardware accelerated)
+ // renderer just because of that
+ //info->info[count].valid =
+ // info->info[count].valid &&
+ // (info->info[count].stereo == GL_TRUE);
+ }
+
+ haveAcceleratedRenderer =
+ haveAcceleratedRenderer ||
+ (info->info[count].accelerated == GL_TRUE);
+
+ haveValidRenderer = haveValidRenderer ||
+ (info->info[count].valid == GL_TRUE);
+ }
+
+ // first look for an accelerated renderer
+ if (chooseNewPixelFormat == GL_FALSE)
+ {
+ count = 0;
+ while (count < info->count)
+ {
+ if ( (info->info[count].valid == GL_TRUE) &&
+ (
+ (
+ (info->info[count].accelerated == GL_TRUE) &&
+ forceSWRenderer==JNI_FALSE
+ ) || (
+ (info->info[count].accelerated == GL_FALSE) &&
+ forceSWRenderer==JNI_TRUE
+ )
+ )
+ )
+ {
+ chooseNewPixelFormat = GL_TRUE;
+
+ // hardware accelerated (VooDoo, ATI?)
+ // renderer doesn't work without it ??
+ if( info->info[count].accelerated == GL_TRUE )
+ *doubleBuffer = JNI_TRUE;
+
+ break;
+ }
+
+ count++;
+ }
+ }
+
+ // now look for any renderer
+ if (chooseNewPixelFormat == GL_FALSE)
+ {
+ count = 0;
+ while (count < info->count)
+ {
+ if (info->info[count].valid == GL_TRUE)
+ {
+ chooseNewPixelFormat = GL_TRUE;
+
+ break;
+ }
+
+ count++;
+ }
+ }
+
+ if (chooseNewPixelFormat == GL_TRUE)
+ {
+ info->attributeList[i++] = AGL_RENDERER_ID;
+ info->attributeList[i++] = info->info[count].id;
+
+ info->attributeList[i++] = AGL_DEPTH_SIZE;
+ info->attributeList[i++] =
+ mapAGLDepth2DecDepth(env,
+ chooseBestDepth(env, info->info[count].depthModes));
+
+ // if we want RGB mode, but none is avaiable,
+ // we do choose RGBA !
+ if(*isRGBA==JNI_FALSE &&
+ !isColorRGB(env, info->info[count].colorModes))
+ *isRGBA=JNI_TRUE;
+
+ if(*isRGBA==JNI_TRUE &&
+ isColorARGB(env, info->info[count].colorModes))
+ {
+ info->attributeList[i++] = AGL_RGBA;
+ } else {
+ *isRGBA=JNI_FALSE;
+ }
+
+ listIndex = i;
+
+ if ( (*doubleBuffer == JNI_TRUE) &&
+ (info->info[count].doubleBuffer == GL_TRUE)
+ )
+ {
+ info->attributeList[listIndex++] = AGL_DOUBLEBUFFER;
+ }
+ else
+ {
+ *doubleBuffer = JNI_FALSE;
+ }
+
+ if ( (*stereo == JNI_TRUE) &&
+ (info->info[count].stereo == GL_TRUE)
+ )
+ {
+ info->attributeList[listIndex++] = AGL_STEREO;
+ }
+ else
+ {
+ *stereo = JNI_FALSE;
+ }
+
+ if ( (*stencilBits > 0) &&
+ (info->info[count].stencilModes != 0)
+ )
+ {
+ info->attributeList[listIndex++] = AGL_STENCIL_SIZE;
+ info->attributeList[listIndex++] = *stencilBits;
+ }
+ else
+ {
+ *stencilBits = 0;
+ }
+
+ if ( (*accumSize > 0) &&
+ (info->info[count].accumModes != 0)
+ )
+ {
+ info->attributeList[listIndex++] = AGL_ACCUM_RED_SIZE;
+ info->attributeList[listIndex++] = *accumSize;
+ info->attributeList[listIndex++] = AGL_ACCUM_GREEN_SIZE;
+ info->attributeList[listIndex++] = *accumSize;
+ info->attributeList[listIndex++] = AGL_ACCUM_BLUE_SIZE;
+ info->attributeList[listIndex++] = *accumSize;
+ if(isRGBA)
+ {
+ info->attributeList[listIndex++] =
+ AGL_ACCUM_ALPHA_SIZE;
+ info->attributeList[listIndex++] =
+ *accumSize;
+ }
+ } else {
+ *accumSize=0;
+ }
+
+ if(isOffScr!=0)
+ info->attributeList[listIndex++] = AGL_OFFSCREEN;
+
+ info->attributeList[listIndex++] = AGL_NONE;
+ }
+
+ DisposePtr((Ptr)info->info);
+ info->info = nil;
+}
+
+#pragma mark -
+
+//
+// printBufferModes
+//
+static void printBufferModes(JNIEnv *env, GLint v)
+{
+ if(v & AGL_MONOSCOPIC_BIT) fprintf(stderr, " AGL_MONOSCOPIC_BIT \n");
+ if(v & AGL_STEREOSCOPIC_BIT) fprintf(stderr, " AGL_STEREOSCOPIC_BIT \n");
+ if(v & AGL_SINGLEBUFFER_BIT) fprintf(stderr, " AGL_SINGLEBUFFER_BIT \n");
+ if(v & AGL_DOUBLEBUFFER_BIT) fprintf(stderr, " AGL_DOUBLEBUFFER_BIT \n");
+}
+
+//
+// printColorModes
+//
+static void printColorModes(JNIEnv *env, GLint v)
+{
+ if(v & AGL_RGB8_BIT) fprintf(stderr, " AGL_RGB8_BIT \n");
+ if(v & AGL_RGB8_A8_BIT) fprintf(stderr, " AGL_RGB8_A8_BIT \n");
+ if(v & AGL_BGR233_BIT) fprintf(stderr, " AGL_BGR233_BIT \n");
+ if(v & AGL_BGR233_A8_BIT) fprintf(stderr, " AGL_BGR233_A8_BIT \n");
+ if(v & AGL_RGB332_BIT) fprintf(stderr, " AGL_RGB332_BIT \n");
+ if(v & AGL_RGB332_A8_BIT) fprintf(stderr, " AGL_RGB332_A8_BIT \n");
+ if(v & AGL_RGB444_BIT) fprintf(stderr, " AGL_RGB444_BIT \n");
+ if(v & AGL_ARGB4444_BIT) fprintf(stderr, " AGL_ARGB4444_BIT \n");
+ if(v & AGL_RGB444_A8_BIT) fprintf(stderr, " AGL_RGB444_A8_BIT \n");
+ if(v & AGL_RGB555_BIT) fprintf(stderr, " AGL_RGB555_BIT \n");
+ if(v & AGL_ARGB1555_BIT) fprintf(stderr, " AGL_ARGB1555_BIT \n");
+ if(v & AGL_RGB555_A8_BIT) fprintf(stderr, " AGL_RGB555_A8_BIT \n");
+ if(v & AGL_RGB565_BIT) fprintf(stderr, " AGL_RGB565_BIT \n");
+ if(v & AGL_RGB565_A8_BIT) fprintf(stderr, " AGL_RGB565_A8_BIT \n");
+ if(v & AGL_RGB888_BIT) fprintf(stderr, " AGL_RGB888_BIT \n");
+ if(v & AGL_ARGB8888_BIT) fprintf(stderr, " AGL_ARGB8888_BIT \n");
+ if(v & AGL_RGB888_A8_BIT) fprintf(stderr, " AGL_RGB888_A8_BIT \n");
+ if(v & AGL_RGB101010_BIT) fprintf(stderr, " AGL_RGB101010_BIT \n");
+ if(v & AGL_ARGB2101010_BIT) fprintf(stderr, " AGL_ARGB2101010_BIT \n");
+ if(v & AGL_RGB101010_A8_BIT) fprintf(stderr, " AGL_RGB101010_A8_BIT \n");
+ if(v & AGL_RGB121212_BIT) fprintf(stderr, " AGL_RGB121212_BIT \n");
+ if(v & AGL_ARGB12121212_BIT) fprintf(stderr, " AGL_ARGB12121212_BIT \n");
+ if(v & AGL_RGB161616_BIT) fprintf(stderr, " AGL_RGB161616_BIT \n");
+ if(v & AGL_ARGB16161616_BIT) fprintf(stderr, " AGL_ARGB16161616_BIT \n");
+ if(v & AGL_INDEX8_BIT) fprintf(stderr, " AGL_INDEX8_BIT \n");
+ if(v & AGL_INDEX16_BIT) fprintf(stderr, " AGL_INDEX16_BIT \n");
+}
+
+//
+// printBitModes
+//
+static void printBitModes(JNIEnv *env, GLint v)
+{
+ if(v & AGL_0_BIT) fprintf(stderr, " AGL_0_BIT \n");
+ if(v & AGL_1_BIT) fprintf(stderr, " AGL_1_BIT \n");
+ if(v & AGL_2_BIT) fprintf(stderr, " AGL_2_BIT \n");
+ if(v & AGL_3_BIT) fprintf(stderr, " AGL_3_BIT \n");
+ if(v & AGL_4_BIT) fprintf(stderr, " AGL_4_BIT \n");
+ if(v & AGL_5_BIT) fprintf(stderr, " AGL_5_BIT \n");
+ if(v & AGL_6_BIT) fprintf(stderr, " AGL_6_BIT \n");
+ if(v & AGL_8_BIT) fprintf(stderr, " AGL_8_BIT \n");
+ if(v & AGL_10_BIT) fprintf(stderr, " AGL_10_BIT \n");
+ if(v & AGL_12_BIT) fprintf(stderr, " AGL_12_BIT \n");
+ if(v & AGL_16_BIT) fprintf(stderr, " AGL_16_BIT \n");
+ if(v & AGL_24_BIT) fprintf(stderr, " AGL_24_BIT \n");
+ if(v & AGL_32_BIT) fprintf(stderr, " AGL_32_BIT \n");
+ if(v & AGL_48_BIT) fprintf(stderr, " AGL_48_BIT \n");
+ if(v & AGL_64_BIT) fprintf(stderr, " AGL_64_BIT \n");
+ if(v & AGL_96_BIT) fprintf(stderr, " AGL_96_BIT \n");
+ if(v & AGL_128_BIT) fprintf(stderr, " AGL_128_BIT \n");
+}
+
+//
+// printRendererInfo
+//
+static void printRendererInfo(JNIEnv *env, AGLRendererInfo info)
+{
+ GLint rv;
+
+
+ aglDescribeRenderer(info, AGL_RENDERER_ID, &rv);
+ fprintf(stderr, " AGL_RENDERER_ID : 0x%X \n", rv);
+
+ aglDescribeRenderer(info, AGL_OFFSCREEN, &rv);
+ fprintf(stderr, " AGL_OFFSCREEN : %s \n", (rv ? "GL_TRUE" : "GL_FALSE"));
+
+ aglDescribeRenderer(info, AGL_FULLSCREEN, &rv);
+ fprintf(stderr, " AGL_FULLSCREEN : %s \n", (rv ? "GL_TRUE" : "GL_FALSE"));
+
+ aglDescribeRenderer(info, AGL_WINDOW, &rv);
+ fprintf(stderr, " AGL_WINDOW : %s \n", (rv ? "GL_TRUE" : "GL_FALSE"));
+
+ aglDescribeRenderer(info, AGL_ACCELERATED, &rv);
+ fprintf(stderr, " AGL_ACCELERATED : %s \n", (rv ? "GL_TRUE" : "GL_FALSE"));
+
+ aglDescribeRenderer(info, AGL_ROBUST, &rv);
+ fprintf(stderr, " AGL_ROBUST : %s \n", (rv ? "GL_TRUE" : "GL_FALSE"));
+
+ aglDescribeRenderer(info, AGL_BACKING_STORE, &rv);
+ fprintf(stderr, " AGL_BACKING_STORE : %s \n", (rv ? "GL_TRUE" : "GL_FALSE"));
+
+ aglDescribeRenderer(info, AGL_MP_SAFE, &rv);
+ fprintf(stderr, " AGL_MP_SAFE : %s \n", (rv ? "GL_TRUE" : "GL_FALSE"));
+
+ aglDescribeRenderer(info, AGL_COMPLIANT, &rv);
+ fprintf(stderr, " AGL_COMPLIANT : %s \n", (rv ? "GL_TRUE" : "GL_FALSE"));
+
+ aglDescribeRenderer(info, AGL_MULTISCREEN, &rv);
+ fprintf(stderr, " AGL_MULTISCREEN : %s \n", (rv ? "GL_TRUE" : "GL_FALSE"));
+
+ aglDescribeRenderer(info, AGL_BUFFER_MODES, &rv);
+ fprintf(stderr, " AGL_BUFFER_MODES : 0x%X \n", rv);
+ printBufferModes(env, rv);
+
+ aglDescribeRenderer(info, AGL_MIN_LEVEL, &rv);
+ fprintf(stderr, " AGL_MIN_LEVEL : %d \n", rv);
+
+ aglDescribeRenderer(info, AGL_MAX_LEVEL, &rv);
+ fprintf(stderr, " AGL_MAX_LEVEL : %d \n", rv);
+
+ aglDescribeRenderer(info, AGL_COLOR_MODES, &rv);
+ fprintf(stderr, " AGL_COLOR_MODES : 0x%X \n", rv);
+ printColorModes(env, rv);
+
+ aglDescribeRenderer(info, AGL_ACCUM_MODES, &rv);
+ fprintf(stderr, " AGL_ACCUM_MODES : 0x%X \n", rv);
+ printColorModes(env, rv);
+
+ aglDescribeRenderer(info, AGL_DEPTH_MODES, &rv);
+ fprintf(stderr, " AGL_DEPTH_MODES : 0x%X \n", rv);
+ printBitModes(env, rv);
+
+ aglDescribeRenderer(info, AGL_STENCIL_MODES, &rv);
+ fprintf(stderr, " AGL_STENCIL_MODES : 0x%X \n", rv);
+ printBitModes(env, rv);
+
+ aglDescribeRenderer(info, AGL_MAX_AUX_BUFFERS, &rv);
+ fprintf(stderr, " AGL_MAX_AUX_BUFFERS : %d \n", rv);
+
+ aglDescribeRenderer(info, AGL_VIDEO_MEMORY, &rv);
+ fprintf(stderr, " AGL_VIDEO_MEMORY : %d \n", rv);
+
+ aglDescribeRenderer(info, AGL_TEXTURE_MEMORY, &rv);
+ fprintf(stderr, " AGL_TEXTURE_MEMORY : %d \n", rv);
+}
+
+//
+// checkGetRendererInfo
+//
+static void checkGetRendererInfo(JNIEnv *env, GDHandle device)
+{
+ AGLRendererInfo info,
+ infoSaved;
+ GLint inum;
+
+
+ info = aglQueryRendererInfo(&device, 1);
+ if (info == nil)
+ {
+ fprintf(stderr, "aglQueryRendererInfo : Info Error \n");
+ return;
+ }
+
+ inum = 0;
+ while (info != nil)
+ {
+ fprintf(stderr, " Renderer : %d \n", inum);
+ printRendererInfo(env, info);
+ infoSaved = info;
+ info = aglNextRendererInfo(infoSaved);
+ aglDestroyRendererInfo(infoSaved);
+ inum++;
+ }
+}
+
+//
+// printAllRenderer
+//
+static void printAllRenderer(JNIEnv *env)
+{
+ GLenum err;
+ GDHandle device;
+ GLuint dnum = 0;
+
+
+ fprintf(stderr, "the renderers that are available on this system: \n");
+
+ err = aglGetError();
+ if (err != AGL_NO_ERROR)
+ {
+ fprintf(stderr, "aglGetError 1 - %s \n", aglErrorString(err));
+ }
+
+ device = GetDeviceList();
+ while (device != nil)
+ {
+ fprintf(stderr, "Device : %d \n", dnum);
+ checkGetRendererInfo(env, device);
+ device = GetNextDevice(device);
+ dnum++;
+ }
+
+ err = aglGetError();
+ if (err != AGL_NO_ERROR)
+ {
+ fprintf(stderr, "aglGetError 2 - %s \n", aglErrorString(err));
+ }
+}
+
+
+//
+// printPixelFormatInfo
+//
+static void printPixelFormatInfo(JNIEnv *env, AGLPixelFormat info)
+{
+ GLint rv, rv1, rv2, rv3, rv4;
+
+ aglDescribePixelFormat(info, AGL_BUFFER_SIZE, &rv);
+ fprintf(stderr, " AGL_BUFFER_SIZE : %d \n", rv);
+
+ aglDescribePixelFormat(info, AGL_LEVEL, &rv);
+ fprintf(stderr, " AGL_LEVEL : %d \n", rv);
+
+ aglDescribePixelFormat(info, AGL_RGBA, &rv);
+ fprintf(stderr, " AGL_RGBA : %d \n", rv);
+
+ aglDescribePixelFormat(info, AGL_DOUBLEBUFFER, &rv);
+ fprintf(stderr, " AGL_DOUBLEBUFFER : %d \n", rv);
+
+ aglDescribePixelFormat(info, AGL_STEREO, &rv);
+ fprintf(stderr, " AGL_STEREO : %d \n", rv);
+
+ aglDescribePixelFormat(info, AGL_AUX_BUFFERS, &rv);
+ fprintf(stderr, " AGL_AUX_BUFFERS : %d \n", rv);
+
+ aglDescribePixelFormat(info, AGL_RED_SIZE, &rv);
+ fprintf(stderr, " AGL_RED_SIZE : %d \n", rv);
+
+ aglDescribePixelFormat(info, AGL_GREEN_SIZE, &rv);
+ fprintf(stderr, " AGL_GREEN_SIZE : %d \n", rv);
+
+ aglDescribePixelFormat(info, AGL_BLUE_SIZE, &rv);
+ fprintf(stderr, " AGL_BLUE_SIZE : %d \n", rv);
+
+ aglDescribePixelFormat(info, AGL_ALPHA_SIZE, &rv);
+ fprintf(stderr, " AGL_ALPHA_SIZE : %d \n", rv);
+
+ aglDescribePixelFormat(info, AGL_DEPTH_SIZE, &rv);
+ fprintf(stderr, " AGL_DEPTH_SIZE : %d \n", rv);
+
+ aglDescribePixelFormat(info, AGL_STENCIL_SIZE, &rv);
+ fprintf(stderr, " AGL_STENCIL_SIZE : %d \n", rv);
+
+ aglDescribePixelFormat(info, AGL_ACCUM_RED_SIZE, &rv1);
+ aglDescribePixelFormat(info, AGL_ACCUM_GREEN_SIZE, &rv2);
+ aglDescribePixelFormat(info, AGL_ACCUM_BLUE_SIZE, &rv3);
+ aglDescribePixelFormat(info, AGL_ACCUM_ALPHA_SIZE, &rv4);
+ fprintf(stderr, " AGL_ACCUM_SIZE (rgba) : %d / %d / %d / %d \n",
+ rv1, rv2, rv3, rv4 );
+
+ aglDescribePixelFormat(info, AGL_PIXEL_SIZE, &rv);
+ fprintf(stderr, " AGL_PIXEL_SIZE : %d \n", rv);
+
+ aglDescribePixelFormat(info, AGL_OFFSCREEN, &rv);
+ fprintf(stderr, " AGL_OFFSCREEN : %d \n", rv);
+
+ aglDescribePixelFormat(info, AGL_FULLSCREEN, &rv);
+ fprintf(stderr, " AGL_FULLSCREEN : %d \n", rv);
+
+ aglDescribePixelFormat(info, AGL_WINDOW, &rv);
+ fprintf(stderr, " AGL_WINDOW : %d \n", rv);
+
+ aglDescribePixelFormat(info, AGL_RENDERER_ID, &rv);
+ fprintf(stderr, " AGL_RENDERER_ID : %d \n", rv);
+
+ aglDescribePixelFormat(info, AGL_SINGLE_RENDERER, &rv);
+ fprintf(stderr, " AGL_SINGLE_RENDERER : %d \n", rv);
+
+ aglDescribePixelFormat(info, AGL_ACCELERATED, &rv);
+ fprintf(stderr, " AGL_ACCELERATED : %d \n", rv);
+
+ aglDescribePixelFormat(info, AGL_BACKING_STORE, &rv);
+ fprintf(stderr, " AGL_BACKING_STORE : %d \n", rv);
+
+ aglDescribePixelFormat(info, AGL_COMPLIANT, &rv);
+ fprintf(stderr, " AGL_COMPLIANT : %d \n", rv);
+}
+
+static void checkPixelFormatInfo(JNIEnv *env, AGLPixelFormat info,
+ jboolean *doubleBuffer,
+ jboolean *stereo, jboolean *isRGBA,
+ int *stencilBits, int *accumSize)
+{
+ GLint rv, rv1, rv2, rv3, rv4;
+
+ aglDescribePixelFormat(info, AGL_RGBA, &rv);
+ *isRGBA= (rv==GL_TRUE)?JNI_TRUE:JNI_FALSE;
+
+ aglDescribePixelFormat(info, AGL_DOUBLEBUFFER, &rv);
+ *doubleBuffer= (rv==GL_TRUE)?JNI_TRUE:JNI_FALSE;
+
+ aglDescribePixelFormat(info, AGL_STEREO, &rv);
+ *stereo = (rv==GL_TRUE)?JNI_TRUE:JNI_FALSE;
+
+ aglDescribePixelFormat(info, AGL_STENCIL_SIZE, &rv);
+ *stencilBits = (rv==GL_TRUE)?JNI_TRUE:JNI_FALSE;
+
+ aglDescribePixelFormat(info, AGL_ACCUM_RED_SIZE, &rv1);
+ aglDescribePixelFormat(info, AGL_ACCUM_GREEN_SIZE, &rv2);
+ aglDescribePixelFormat(info, AGL_ACCUM_BLUE_SIZE, &rv3);
+ aglDescribePixelFormat(info, AGL_ACCUM_ALPHA_SIZE, &rv4);
+ *accumSize=rv1+rv2+rv3;
+ if(*isRGBA==JNI_TRUE)
+ *accumSize+=rv4;
+}
diff --git a/CNativeCode/OpenGL_misc.c b/CNativeCode/OpenGL_misc.c
new file mode 100644
index 0000000..d2ad7c6
--- /dev/null
+++ b/CNativeCode/OpenGL_misc.c
@@ -0,0 +1,887 @@
+
+#include "OpenGL_misc.h"
+#include "gl4java_GLContext.h"
+
+#ifdef _X11_
+ #include <GL/glx.h>
+ #include <dlfcn.h>
+#endif
+
+#ifdef macintosh
+ #include <agl.h>
+ #include <string.h>
+ #include <CodeFragments.h>
+ #include <Errors.h>
+ #include <TextUtils.h>
+ #include <StringCompare.h>
+ #include "mac_console.h"
+
+ #define fragNoErr 0
+#endif
+
+static const char * _lib_version_= __LIB_VERSION__ ;
+
+#ifdef macintosh
+ static const char * _lib_vendor_ = "Jausoft - Sven Goethel Software Development & Gerard Ziemski";
+#else
+ static const char * _lib_vendor_ = "Jausoft - Sven Goethel Software Development";
+#endif
+
+#ifndef LIBAPIENTRY
+ #define LIBAPIENTRY
+#endif
+#ifndef LIBAPI
+ #define LIBAPI
+#endif
+#ifndef CALLBACK
+ #define CALLBACK
+#endif
+
+jboolean testJavaGLTypes(jboolean verbose);
+
+JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM * vm, void *reserved);
+JNIEXPORT void JNICALL JNI_OnUnload(JavaVM *vm, void *reserved);
+
+jboolean testJavaGLTypes(jboolean verbose)
+{
+ jboolean ret=JNI_TRUE;
+ jint i1 = (jint)0xaaff;
+ jint i2 = 0;
+ jlong l1 = (jlong)i1;
+ i2 = (jint)l1;
+
+ if(i1!=i2)
+ {
+ fprintf(stderr,"(jint)((jlong)0xaaff) != (jint)0xaaff\n");
+ ret = JNI_FALSE;
+ }
+
+ /* NON DEPENDENCE CHECKS */
+
+ /* NOW LET's CHECK THE TAKEN JNI-TYPE <-> GL-TYPE MAPPING */
+
+ if( sizeof(GLUtriangulatorObj *) > sizeof(jlong) )
+ {
+ fprintf(stderr,"(GLUtriangulatorObj *) > (jlong)\n");
+ ret = JNI_FALSE;
+ }
+
+ if( sizeof(GLUnurbsObj *) > sizeof(jlong) )
+ {
+ fprintf(stderr,"(GLUnurbsObj *) > (jlong)\n");
+ ret = JNI_FALSE;
+ }
+
+ if( sizeof(GLUquadricObj *) > sizeof(jlong) )
+ {
+ fprintf(stderr,"(GLUquadricObj *) > (jlong)\n");
+ ret = JNI_FALSE;
+ }
+
+ if( sizeof(GLvoid *) > sizeof(jbyte *) )
+ {
+ fprintf(stderr,"(GLvoid *) > (jbyte *)\n");
+ ret = JNI_FALSE;
+ }
+
+ if( sizeof(GLbyte) != sizeof(jbyte) )
+ {
+ fprintf(stderr,"GLbyte != jbyte\n");
+ ret = JNI_FALSE;
+ }
+
+ if( sizeof(GLshort) != sizeof(jshort) )
+ {
+ fprintf(stderr,"GLshort != jshort\n");
+ ret = JNI_FALSE;
+ }
+
+ if( sizeof(GLint) != sizeof(jint) )
+ {
+ fprintf(stderr,"GLint != jint\n");
+ ret = JNI_FALSE;
+ }
+
+ if( sizeof(GLsizei) != sizeof(jint) )
+ {
+ fprintf(stderr,"GLsizei != jint\n");
+ ret = JNI_FALSE;
+ }
+
+ if( sizeof(GLfloat) != sizeof(jfloat) )
+ {
+ fprintf(stderr,"GLfloat != jfloat\n");
+ ret = JNI_FALSE;
+ }
+
+ if( sizeof(GLclampf) != sizeof(jfloat) )
+ {
+ fprintf(stderr,"GLclampf != jfloat\n");
+ ret = JNI_FALSE;
+ }
+
+ if( sizeof(GLdouble) != sizeof(jdouble) )
+ {
+ fprintf(stderr,"GLdouble != jdouble\n");
+ ret = JNI_FALSE;
+ }
+
+ if( sizeof(GLclampd) != sizeof(jdouble) )
+ {
+ fprintf(stderr,"GLclampd != jdouble\n");
+ ret = JNI_FALSE;
+ }
+
+ if( sizeof(GLubyte) != sizeof(jbyte) )
+ {
+ fprintf(stderr,"GLubyte != jboolean\n");
+ ret = JNI_FALSE;
+ }
+
+ if( sizeof(GLboolean) != sizeof(jboolean) )
+ {
+ fprintf(stderr,"GLboolean != jboolean\n");
+ ret = JNI_FALSE;
+ }
+
+ if( sizeof(GLushort) != sizeof(jshort) )
+ {
+ fprintf(stderr,"GLushort != jshort\n");
+ ret = JNI_FALSE;
+ }
+
+ /* NOT DEF'ed IN JNI
+ *
+ * GLuint, GLenum : 32-bit unsigned integer
+ * GLbitfield : dito.
+ */
+
+ if( sizeof(void *) > sizeof(jlong) )
+ {
+ fprintf(stderr,"(void *) > (jlong)\n");
+ ret = JNI_FALSE;
+ }
+
+ if( sizeof(GLuint) != sizeof(jint) )
+ {
+ fprintf(stderr,"GLuint != jint\n");
+ ret = JNI_FALSE;
+ }
+ if( sizeof(GLenum) != sizeof(jint) )
+ {
+ fprintf(stderr,"GLenum != jint\n");
+ ret = JNI_FALSE;
+ }
+ if( sizeof(GLbitfield) != sizeof(jint) )
+ {
+ fprintf(stderr,"GLbitfield != jint\n");
+ ret = JNI_FALSE;
+ }
+
+ if(ret==JNI_FALSE)
+ {
+ fflush(stderr);
+ }
+
+ /* VERBOSE/ERROR DUMP OF GL Types */
+
+ if(JNI_FALSE==verbose && ret==JNI_TRUE) return ret;
+
+ fprintf(stderr,"GLbyte %d\n", sizeof(GLbyte));
+ fprintf(stderr,"GLshort %d\n", sizeof(GLshort));
+ fprintf(stderr,"GLint %d\n", sizeof(GLint));
+ fprintf(stderr,"GLfloat %d\n", sizeof(GLfloat));
+ fprintf(stderr,"GLdouble %d\n", sizeof(GLdouble));
+ fprintf(stderr,"GLubyte %d\n", sizeof(GLubyte));
+ fprintf(stderr,"GLboolean %d\n", sizeof(GLboolean));
+ fprintf(stderr,"GLushort %d\n", sizeof(GLushort));
+ fprintf(stderr,"GLuint %d\n", sizeof(GLuint));
+ fprintf(stderr,"GLenum %d\n", sizeof(GLenum));
+ fprintf(stderr,"GLbitfield %d\n", sizeof(GLbitfield));
+
+ fprintf(stderr,"\njboolean %d\n", sizeof(jboolean));
+ fprintf(stderr,"jbyte %d\n", sizeof(jbyte));
+ fprintf(stderr,"jchar %d\n", sizeof(jchar));
+ fprintf(stderr,"jshort %d\n", sizeof(jshort));
+ fprintf(stderr,"jint %d\n", sizeof(jint));
+ fprintf(stderr,"jlong %d\n", sizeof(jlong));
+ fprintf(stderr,"jfloat %d\n", sizeof(jfloat));
+ fprintf(stderr,"jdouble %d\n", sizeof(jdouble));
+
+ fflush(stderr);
+
+ return ret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_gl4java_GLContext_gljCheckGLTypesNative(JNIEnv *env, jobject obj )
+{
+ return testJavaGLTypes(JNI_TRUE);
+}
+
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLContext_gljGetNativeLibVersionNative(JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _lib_version_);
+}
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLContext_gljGetNativeLibVendorNative(JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _lib_vendor_);
+}
+
+JNIEXPORT jint JNICALL
+JNI_OnLoad(JavaVM * vm, void *reserved)
+{
+ return 0x00010001; /* old JDK 1.1 JNI :-) */
+}
+
+JNIEXPORT void JNICALL
+JNI_OnUnload(JavaVM *vm, void *reserved)
+{
+ /* old JNI :-) */
+}
+
+
+/**
+ * Experimental Code, not done yet !
+ * This one is to upspeed the Offscreen rendering engine for e.g. Swing !
+ */
+JNIEXPORT void JNICALL
+Java_gl4java_GLContext_gljReadPixelGL2AWT__IIIIIII_3B (
+ JNIEnv *env, jobject obj,
+ jint xpos,
+ jint ypos,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jint bufferName,
+ jbyteArray pixelGLDest)
+{
+ GLint swapbytes, lsbfirst, rowlength;
+ GLint skiprows, skippixels, alignment;
+ GLint unswapbytes, unlsbfirst, unrowlength;
+ GLint unskiprows, unskippixels, unalignment;
+
+ jbyte *pixelGLDestData = NULL;
+ jsize lenPixelGLDest = 0;
+
+ jboolean isCopiedArray = JNI_FALSE;
+
+ if(pixelGLDest==NULL)
+ return;
+
+ lenPixelGLDest = (*env)->GetArrayLength(env, pixelGLDest);
+ pixelGLDestData = (*env)->GetByteArrayElements(env, pixelGLDest,
+ &isCopiedArray);
+
+ /* Save current modes. */
+ glGetIntegerv(GL_PACK_SWAP_BYTES, &swapbytes);
+ glGetIntegerv(GL_PACK_LSB_FIRST, &lsbfirst);
+ glGetIntegerv(GL_PACK_ROW_LENGTH, &rowlength);
+ glGetIntegerv(GL_PACK_SKIP_ROWS, &skiprows);
+ glGetIntegerv(GL_PACK_SKIP_PIXELS, &skippixels);
+ glGetIntegerv(GL_PACK_ALIGNMENT, &alignment);
+ glGetIntegerv(GL_UNPACK_SWAP_BYTES, &unswapbytes);
+ glGetIntegerv(GL_UNPACK_LSB_FIRST, &unlsbfirst);
+ glGetIntegerv(GL_UNPACK_ROW_LENGTH, &unrowlength);
+ glGetIntegerv(GL_UNPACK_SKIP_ROWS, &unskiprows);
+ glGetIntegerv(GL_UNPACK_SKIP_PIXELS, &unskippixels);
+ glGetIntegerv(GL_UNPACK_ALIGNMENT, &unalignment);
+
+ /* Little endian machines (DEC Alpha, Inten X86, PPC(in LSB mode)...
+ for example) could benefit from setting
+ GL_PACK_LSB_FIRST to GL_TRUE
+ instead of GL_FALSE, but this would require changing the
+ generated bitmaps too. */
+ glPixelStorei(GL_PACK_SWAP_BYTES, GL_FALSE);
+ glPixelStorei(GL_PACK_LSB_FIRST, GL_TRUE);
+ glPixelStorei(GL_PACK_ROW_LENGTH, width);
+ glPixelStorei(GL_PACK_SKIP_ROWS, 0);
+ glPixelStorei(GL_PACK_SKIP_PIXELS, 0);
+ glPixelStorei(GL_PACK_ALIGNMENT, 1);
+ glPixelStorei(GL_UNPACK_SWAP_BYTES, GL_FALSE);
+ glPixelStorei(GL_UNPACK_LSB_FIRST, GL_TRUE);
+ glPixelStorei(GL_UNPACK_ROW_LENGTH, width);
+ glPixelStorei(GL_UNPACK_SKIP_ROWS, 0);
+ glPixelStorei(GL_UNPACK_SKIP_PIXELS, 0);
+ glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
+
+ /* Actually read the pixels. */
+ glReadBuffer(bufferName);
+ glReadPixels(xpos, ypos, width, height, format, type,
+ pixelGLDestData);
+
+ /* Restore saved modes. */
+ glPixelStorei(GL_PACK_SWAP_BYTES, swapbytes);
+ glPixelStorei(GL_PACK_LSB_FIRST, lsbfirst);
+ glPixelStorei(GL_PACK_ROW_LENGTH, rowlength);
+ glPixelStorei(GL_PACK_SKIP_ROWS, skiprows);
+ glPixelStorei(GL_PACK_SKIP_PIXELS, skippixels);
+ glPixelStorei(GL_PACK_ALIGNMENT, alignment);
+ glPixelStorei(GL_UNPACK_SWAP_BYTES, unswapbytes);
+ glPixelStorei(GL_UNPACK_LSB_FIRST, unlsbfirst);
+ glPixelStorei(GL_UNPACK_ROW_LENGTH, unrowlength);
+ glPixelStorei(GL_UNPACK_SKIP_ROWS, unskiprows);
+ glPixelStorei(GL_UNPACK_SKIP_PIXELS, unskippixels);
+ glPixelStorei(GL_UNPACK_ALIGNMENT, unalignment);
+
+ glFlush();
+ glFinish();
+
+ (*env)->ReleaseByteArrayElements(env,
+ pixelGLDest, pixelGLDestData,
+ (isCopiedArray==JNI_TRUE)?0:JNI_ABORT);
+}
+
+/**
+ * This one is to upspeed the Offscreen rendering engine for e.g. Swing !
+ */
+JNIEXPORT void JNICALL
+Java_gl4java_GLContext_gljReadPixelGL2AWT__IIIIIII_3B_3I (
+ JNIEnv *env, jobject obj,
+ jint xpos,
+ jint ypos,
+ jint width,
+ jint height,
+ jint format,
+ jint type,
+ jint bufferName,
+ jbyteArray pixelGL,
+ jintArray pixelDest)
+{
+ GLint swapbytes, lsbfirst, rowlength;
+ GLint skiprows, skippixels, alignment;
+ GLint unswapbytes, unlsbfirst, unrowlength;
+ GLint unskiprows, unskippixels, unalignment;
+
+ jsize lenPixelSource = 0;
+ jbyte *pixelGLData = NULL;
+ jsize lenPixelDest = 0;
+ jint *pixelDestData = NULL;
+ int alpha=0;
+ int red=0;
+ int green=0;
+ int blue=0;
+ int offset=0;
+ int y_desc;
+ int x;
+
+ jboolean isCopiedArray0 = JNI_FALSE;
+ jboolean isCopiedArray1 = JNI_FALSE;
+
+ if(pixelGL==NULL || pixelDest==NULL)
+ return;
+
+ lenPixelSource = (*env)->GetArrayLength(env, pixelGL);
+ pixelGLData = (*env)->GetByteArrayElements(env, pixelGL,
+ &isCopiedArray0);
+ lenPixelDest = (*env)->GetArrayLength(env, pixelDest);
+ pixelDestData = (*env)->GetIntArrayElements(env, pixelDest,
+ &isCopiedArray1);
+
+ /* Save current modes. */
+ glGetIntegerv(GL_PACK_SWAP_BYTES, &swapbytes);
+ glGetIntegerv(GL_PACK_LSB_FIRST, &lsbfirst);
+ glGetIntegerv(GL_PACK_ROW_LENGTH, &rowlength);
+ glGetIntegerv(GL_PACK_SKIP_ROWS, &skiprows);
+ glGetIntegerv(GL_PACK_SKIP_PIXELS, &skippixels);
+ glGetIntegerv(GL_PACK_ALIGNMENT, &alignment);
+ glGetIntegerv(GL_UNPACK_SWAP_BYTES, &unswapbytes);
+ glGetIntegerv(GL_UNPACK_LSB_FIRST, &unlsbfirst);
+ glGetIntegerv(GL_UNPACK_ROW_LENGTH, &unrowlength);
+ glGetIntegerv(GL_UNPACK_SKIP_ROWS, &unskiprows);
+ glGetIntegerv(GL_UNPACK_SKIP_PIXELS, &unskippixels);
+ glGetIntegerv(GL_UNPACK_ALIGNMENT, &unalignment);
+
+ /* Little endian machines (DEC Alpha, Inten X86, PPC(in LSB mode)...
+ for example) could benefit from setting
+ GL_PACK_LSB_FIRST to GL_TRUE
+ instead of GL_FALSE, but this would require changing the
+ generated bitmaps too. */
+ glPixelStorei(GL_PACK_SWAP_BYTES, GL_FALSE);
+ glPixelStorei(GL_PACK_LSB_FIRST, GL_TRUE);
+ glPixelStorei(GL_PACK_ROW_LENGTH, width);
+ glPixelStorei(GL_PACK_SKIP_ROWS, 0);
+ glPixelStorei(GL_PACK_SKIP_PIXELS, 0);
+ glPixelStorei(GL_PACK_ALIGNMENT, 1);
+ glPixelStorei(GL_UNPACK_SWAP_BYTES, GL_FALSE);
+ glPixelStorei(GL_UNPACK_LSB_FIRST, GL_TRUE);
+ glPixelStorei(GL_UNPACK_ROW_LENGTH, 0);
+ glPixelStorei(GL_UNPACK_SKIP_ROWS, 0);
+ glPixelStorei(GL_UNPACK_SKIP_PIXELS, 0);
+ glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
+
+ /* Actually read the pixels. */
+ glReadBuffer(bufferName);
+ glReadPixels(xpos, ypos, width, height, format, type, pixelGLData);
+
+ /* Restore saved modes. */
+ glPixelStorei(GL_PACK_SWAP_BYTES, swapbytes);
+ glPixelStorei(GL_PACK_LSB_FIRST, lsbfirst);
+ glPixelStorei(GL_PACK_ROW_LENGTH, rowlength);
+ glPixelStorei(GL_PACK_SKIP_ROWS, skiprows);
+ glPixelStorei(GL_PACK_SKIP_PIXELS, skippixels);
+ glPixelStorei(GL_PACK_ALIGNMENT, alignment);
+ glPixelStorei(GL_UNPACK_SWAP_BYTES, unswapbytes);
+ glPixelStorei(GL_UNPACK_LSB_FIRST, unlsbfirst);
+ glPixelStorei(GL_UNPACK_ROW_LENGTH, unrowlength);
+ glPixelStorei(GL_UNPACK_SKIP_ROWS, unskiprows);
+ glPixelStorei(GL_UNPACK_SKIP_PIXELS, unskippixels);
+ glPixelStorei(GL_UNPACK_ALIGNMENT, unalignment);
+
+ for(y_desc=height-1; y_desc>=0; y_desc--)
+ {
+ for(x=0;x<width;x++)
+ {
+ red = ( (int)(pixelGLData[offset++]) & 0xff ) << 16;
+ green = ( (int)(pixelGLData[offset++]) & 0xff ) << 8;
+ blue = (int)(pixelGLData[offset++]) & 0xff;
+
+ if(format==GL_RGBA)
+ alpha = ( (int)(pixelGLData[offset++]) & 0xff ) << 24;
+ else
+ alpha = ( (int) 0xff ) << 24;
+
+ pixelDestData[y_desc*width + x] = alpha | red | green | blue;
+ }
+ }
+
+ (*env)->ReleaseByteArrayElements(env, pixelGL, pixelGLData,
+ (isCopiedArray0==JNI_TRUE)?0:JNI_ABORT);
+
+ (*env)->ReleaseIntArrayElements(env, pixelDest, pixelDestData,
+ (isCopiedArray1==JNI_TRUE)?0:JNI_ABORT);
+}
+
+/**
+ * Experimental Code, not done yet !
+ * This one is to upspeed the Offscreen rendering engine for e.g. Swing !
+ */
+JNIEXPORT void JNICALL
+Java_gl4java_GLContext_gljCpyOffScrnImg2Buffer__III_3B
+ (JNIEnv *env, jobject obj, jint width, jint height, jint format, jbyteArray pixelDest)
+{
+}
+
+/**
+ * Experimental Code, not done yet !
+ * This one is to upspeed the Offscreen rendering engine for e.g. Swing !
+ */
+JNIEXPORT void JNICALL
+Java_gl4java_GLContext_gljCpyOffScrnImg2Buffer__III_3I
+ (JNIEnv *env, jobject obj, jint width, jint height, jint format, jintArray pixelDest)
+{
+#ifdef _X11_
+
+ jclass cls = 0;
+ jfieldID fpixmapHandle=0;
+
+ jsize lenPixelDest = 0;
+ jint *pixelDestData = NULL;
+ jboolean isCopiedArray = JNI_FALSE;
+ jboolean ret = JNI_TRUE;
+ int sizemax=0;
+ int sizepix=0;
+
+
+ jfieldID fdisplayHandle=0;
+ Display *disp=0;
+ Pixmap pix=0;
+ XImage *image;
+
+ cls = (*env)->GetObjectClass(env, obj);
+
+ fdisplayHandle = (*env)->GetFieldID(env, cls, "displayHandle", "I");
+ if (fdisplayHandle == 0) ret= JNI_FALSE;
+ else disp=(Display *)(*env)->GetIntField(env, obj, fdisplayHandle);
+
+ fpixmapHandle = (*env)->GetFieldID(env, cls, "pixmapHandle", "I");
+ if (fpixmapHandle == 0) ret= JNI_FALSE;
+ else pix = (Pixmap)(*env)->GetIntField(env, obj, fpixmapHandle);
+
+ if(pix==0 || pixelDest==NULL)
+ return;
+
+ lenPixelDest = (*env)->GetArrayLength(env, pixelDest);
+ pixelDestData = (*env)->GetIntArrayElements(env, pixelDest,
+ &isCopiedArray);
+
+ if(format==GL_RGBA) {
+ image = XGetImage(disp, pix, 0, 0, width, height,
+ 0xffffffff, ZPixmap);
+ printf("format RGBA!!\n");
+ } else if(format==GL_RGB) {
+ image = XGetImage(disp, pix, 0, 0, width, height,
+ 0x00ffffff, ZPixmap);
+ printf("format RGB!!\n");
+ } else {
+ image = XGetImage(disp, pix, 0, 0, width, height,
+ 0xffffffff, ZPixmap);
+ printf("format not supported - guessing RGBA!!\n");
+ }
+
+ if(image!=NULL)
+ {
+ printf("width %d height %d\n", (int)width, (int)height);
+ printf("depth %d, bytes_per_line %d, width %d, height %d\n",
+ image->depth, image->bytes_per_line, image->width, image->height);
+ sizemax=(int)(lenPixelDest*sizeof(jint));
+ sizepix=image->bytes_per_line*image->height;
+
+ printf("sizeof dest-array: %d bytes\n", sizemax);
+ printf("sizeof image bpl*height: %d bytes\n", sizepix);
+
+ if(sizepix<sizemax) sizemax=sizepix;
+
+ (*env)->SetIntArrayRegion(env, pixelDest, 0, sizemax/sizeof(jint),
+ (jint*)image->data);
+ printf("copied ..\n");
+ } else {
+ printf("invalid image ...\n");
+ }
+
+ if(pixelDestData!=NULL)
+ (*env)->ReleaseIntArrayElements(env, pixelDest, pixelDestData,
+ JNI_ABORT);
+#endif
+}
+
+#ifdef macintosh
+
+#ifndef NDEBUG
+
+static void PrintSymbolNamesByConnection (CFragConnectionID myConnID)
+{
+ long myIndex;
+ long myCount; /*number of exported symbols in fragment*/
+ OSErr myErr;
+ Str255 myName; /*symbol name*/
+ Ptr myAddr; /*symbol address*/
+ CFragSymbolClass myClass; /*symbol class*/
+ static char buffer[256];
+
+ myErr = CountSymbols(myConnID, &myCount);
+ if (!myErr)
+ for (myIndex = 1; myIndex <= myCount; myIndex++)
+ {
+ myErr = GetIndSymbol(myConnID, myIndex, myName,
+ &myAddr, &myClass);
+ if (!myErr)
+ {
+ p2cstrcpy (buffer, myName);
+
+ printf("%d/%d: class %d - name %s\n",
+ myIndex, myCount, myClass, buffer);
+ }
+ }
+}
+
+static Ptr SeekSymbolNamesByConnection (CFragConnectionID myConnID, Str255 name)
+{
+ long myIndex;
+ long myCount; /*number of exported symbols in fragment*/
+ OSErr myErr;
+ Str255 myName; /*symbol name*/
+ Ptr myAddr; /*symbol address*/
+ CFragSymbolClass myClass; /*symbol class*/
+
+ myErr = CountSymbols(myConnID, &myCount);
+ if (!myErr)
+ for (myIndex = 1; myIndex <= myCount; myIndex++)
+ {
+ myErr = GetIndSymbol(myConnID, myIndex, myName,
+ &myAddr, &myClass);
+ if (!myErr && EqualString (myName, name, true, true) == true )
+ return myAddr;
+ }
+}
+
+#endif /* ifndef NDEBUG */
+
+#endif /* ifdef macintosh */
+
+void * LIBAPIENTRY getGLProcAddressHelper(const char * func, int * method,
+ int debug, int verbose )
+{
+ void * funcPtr=NULL;
+ int lmethod;
+
+#ifdef _X11_
+
+ void * libHandleGL;
+
+ /*
+ * void (*glXGetProcAddressARB(const GLubyte *procName))
+ */
+ static void * (CALLBACK *__glXGetProcAddress)
+ (const GLubyte *procName) = NULL;
+ static int __firstAccess = 1;
+
+ if(__glXGetProcAddress==NULL && __firstAccess)
+ {
+ libHandleGL = dlopen("libGL.so", RTLD_LAZY|RTLD_GLOBAL);
+ if(libHandleGL==NULL)
+ {
+ printf("cannot access OpenGL library libGL.so\n");
+ fflush(NULL);
+ } else {
+ __glXGetProcAddress =
+ dlsym(libHandleGL, "glXGetProcAddressARB");
+
+ if(__glXGetProcAddress!=NULL && verbose) {
+ printf("found glXGetProcAddressARB in libGL.so\n");
+ fflush(NULL);
+ }
+
+ if(__glXGetProcAddress==NULL)
+ {
+ __glXGetProcAddress =
+ dlsym(libHandleGL, "glXGetProcAddressEXT");
+
+ if(__glXGetProcAddress!=NULL && verbose) {
+ printf("found glXGetProcAddressEXT in libGL.so\n");
+ fflush(NULL);
+ }
+ }
+
+ if(__glXGetProcAddress==NULL)
+ {
+ __glXGetProcAddress =
+ dlsym(libHandleGL, "glXGetProcAddress");
+
+ if(__glXGetProcAddress!=NULL && verbose) {
+ printf("found glXGetProcAddress in libGL.so\n");
+ fflush(NULL);
+ }
+ }
+
+ dlclose(libHandleGL);
+ libHandleGL=NULL;
+
+ if(__glXGetProcAddress==NULL)
+ {
+ printf("cannot find glXGetProcAddress* in OpenGL library libGL.so\n");
+ fflush(NULL);
+ libHandleGL = dlopen("libglx.so", RTLD_LAZY|RTLD_GLOBAL);
+ if(libHandleGL==NULL)
+ {
+ printf("cannot access GLX library libglx.so\n");
+ fflush(NULL);
+ } else {
+ __glXGetProcAddress =
+ dlsym(libHandleGL, "glXGetProcAddressARB");
+
+ if(__glXGetProcAddress!=NULL && verbose) {
+ printf("found glXGetProcAddressARB in libglx.so\n");
+ fflush(NULL);
+ }
+
+ if(__glXGetProcAddress==NULL) {
+ __glXGetProcAddress =
+ dlsym(libHandleGL, "glXGetProcAddressEXT");
+
+ if(__glXGetProcAddress!=NULL && verbose) {
+ printf("found glXGetProcAddressEXT in libglx.so\n");
+ fflush(NULL);
+ }
+ }
+
+ if(__glXGetProcAddress==NULL) {
+ __glXGetProcAddress =
+ dlsym(libHandleGL, "glXGetProcAddress");
+
+ if(__glXGetProcAddress!=NULL && verbose) {
+ printf("found glXGetProcAddress in libglx.so\n");
+ fflush(NULL);
+ }
+ }
+
+ dlclose(libHandleGL);
+ libHandleGL=NULL;
+ }
+ }
+ }
+ }
+ if(__glXGetProcAddress==NULL && __firstAccess)
+ {
+ printf("cannot find glXGetProcAddress* in GLX library libglx.so\n");
+ fflush(NULL);
+ }
+ __firstAccess = 0;
+
+ if(__glXGetProcAddress!=NULL)
+ funcPtr = __glXGetProcAddress(func);
+
+ if(funcPtr==NULL) {
+ lmethod=2;
+ libHandleGL = dlopen("libGL.so", RTLD_LAZY|RTLD_GLOBAL);
+ if(libHandleGL==NULL)
+ {
+ printf("cannot access OpenGL library libGL.so\n");
+ fflush(NULL);
+ } else {
+ funcPtr = dlsym(libHandleGL, func);
+ dlclose(libHandleGL);
+ }
+ } else lmethod=1;
+#endif
+
+
+#ifdef _WIN32_
+
+ HMODULE hDLL_OPENGL32 = 0;
+
+
+
+ funcPtr = wglGetProcAddress(func);
+ if(funcPtr==NULL)
+ {
+ lmethod=2;
+
+
+ if(hDLL_OPENGL32==NULL)
+
+ {
+ hDLL_OPENGL32 = LoadLibrary ("OPENGL32.DLL");
+
+ /* hDLL_OPENGL32 = GetModuleHandle ("OPENGL32.DLL"); */
+
+ }
+ if(hDLL_OPENGL32==NULL)
+ {
+ printf("cannot access OpenGL library OPENGL32.DLL\n");
+ fflush(NULL);
+ } else {
+ funcPtr = GetProcAddress (hDLL_OPENGL32, func);
+ FreeLibrary(hDLL_OPENGL32);
+ }
+ } else lmethod=1;
+#endif
+
+#ifdef macintosh
+ Str255 errName;
+ Str255 funcName;
+ Ptr glLibMainAddr = 0;
+ CFragConnectionID glLibConnectId = 0;
+ CFragSymbolClass glLibSymClass = 0;
+ OSErr returnError=fragNoErr;
+ #ifndef NDEBUG
+ static int firstTime = 1;
+ #endif
+
+ returnError =
+ GetSharedLibrary("\pOpenGLLibrary",
+ kPowerPCCFragArch,
+ kReferenceCFrag,
+ &glLibConnectId,
+ &glLibMainAddr,
+ errName);
+
+ if (returnError != fragNoErr)
+ {
+ printf ("GetSharedLibrary Err(%d): Ahhh! Didn't find LIBRARY !\n",
+ returnError);
+ }
+
+ if (returnError == fragNoErr)
+ {
+ c2pstrcpy ( funcName, func );
+
+ #ifndef NDEBUG
+ if(firstTime)
+ {
+ PrintSymbolNamesByConnection (glLibConnectId);
+ firstTime=0;
+ }
+ funcPtr = (void *)
+ SeekSymbolNamesByConnection (glLibConnectId, funcName);
+ #endif
+
+ if(funcPtr==NULL)
+ {
+ returnError =
+ FindSymbol (glLibConnectId, funcName,
+ &funcPtr, & glLibSymClass );
+ lmethod=2;
+ }
+ #ifndef NDEBUG
+ else lmethod=3;
+ #endif
+
+ if (returnError != fragNoErr)
+ {
+ printf ("GetSharedLibrary Err(%d): Ahhh! Didn't find SYMBOL: %s !\n",
+ returnError, func);
+ }
+ returnError = fragNoErr; // fall back to ok mode ...
+ }
+
+ if (returnError == fragNoErr && glLibConnectId!=NULL)
+ {
+ returnError = CloseConnection(&glLibConnectId);
+
+ if (returnError != fragNoErr)
+ {
+ printf ("GetSharedLibrary Err(%d): Ahhh! Didn't close LIBRARY !\n",
+ returnError);
+ }
+ }
+
+
+#endif
+
+ if(funcPtr==NULL)
+ {
+ if(debug||verbose)
+ {
+ printf("%s (%d): not implemented !\n", func, lmethod);
+ fflush(NULL);
+ }
+ } else if(verbose) {
+ printf("%s (%d): loaded !\n", func, lmethod);
+ fflush(NULL);
+ }
+ if(method!=NULL) *method=lmethod;
+ return funcPtr;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_gl4java_GLContext_gljTestGLProc (
+ JNIEnv *env, jobject obj, jstring name, jboolean verbose )
+{
+ jboolean res;
+ int method=0;
+
+ const char *str = (*env)->GetStringUTFChars(env, name, 0);
+
+ #ifdef macintosh
+ InstallJavaConsole(env);
+ #endif
+
+ res = ( getGLProcAddressHelper(str, &method, 0, verbose)!=NULL )?
+ JNI_TRUE:JNI_FALSE;
+
+ (*env)->ReleaseStringUTFChars(env, name, str);
+ return res;
+}
+
+
+JNIEXPORT jint JNICALL
+Java_gl4java_GLContext_gljGetCurrentContext(
+ JNIEnv *env, jobject obj )
+{
+ #ifdef _WIN32_
+ return (jint) wglGetCurrentContext();
+ #else
+ #ifdef macintosh
+ return (jint) aglGetCurrentContext();
+ #else
+ return (jint) glXGetCurrentContext();
+ #endif
+ #endif
+}
+
diff --git a/CNativeCode/OpenGL_misc.h b/CNativeCode/OpenGL_misc.h
new file mode 100644
index 0000000..2312d8c
--- /dev/null
+++ b/CNativeCode/OpenGL_misc.h
@@ -0,0 +1,28 @@
+
+#ifndef OPENGLMISC
+ #define OPENGLMISC
+
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <stdarg.h>
+
+ #ifdef _WIN32_
+ #include "winstuff.h"
+ #endif
+
+ #include <jni.h>
+
+ #include<GL/gl.h>
+ #include <GL/glu.h>
+
+ #ifndef LIBAPIENTRY
+ #define LIBAPIENTRY
+ #endif
+ #ifndef LIBAPI
+ #define LIBAPI
+ #endif
+
+ LIBAPI void * LIBAPIENTRY getGLProcAddressHelper
+ (const char * func, int * method,
+ int debug, int verbose );
+#endif
diff --git a/CNativeCode/getProtos b/CNativeCode/getProtos
new file mode 100755
index 0000000..d133bea
--- /dev/null
+++ b/CNativeCode/getProtos
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+rm a.h
+
+for i in $(cat aaa.txt); do
+ echo looking for $i
+ sed -n "/$i(/,/);/w a.tmp.h" /usr/local/src/mesa/include/GL/gl.h
+ cat a.tmp.h >> a.h
+done
+
+rm a.tmp.h
diff --git a/CNativeCode/jni12tools.c b/CNativeCode/jni12tools.c
new file mode 100644
index 0000000..8e2cc37
--- /dev/null
+++ b/CNativeCode/jni12tools.c
@@ -0,0 +1,516 @@
+#include <string.h>
+#include "jnitools.h"
+
+#ifdef __BUILTIN_VA_ARG_INCR
+ /* Special stuff for the SunOS port ... */
+ va_list __builtin_va_arg_incr = 0;
+ va_list __builtin_va_alist = 0;
+#endif
+
+static int isinit = 0;
+static jclass classString=0;
+static jmethodID String_getBytes_ID=0;
+static jmethodID String_init_ID=0;
+
+static int init(JNIEnv *env)
+{
+ classString = (*env)->FindClass(env, "java/lang/String");
+ if(classString)
+ {
+ String_getBytes_ID =
+ (*env)->GetMethodID(env, classString, "getBytes", "()[B");
+ if(!String_getBytes_ID) return 0;
+ String_init_ID = (*env)->GetMethodID(env, classString, "<init>", "([B)V");
+ if(!String_init_ID) return 0;
+ } else return 0;
+ return 1;
+}
+
+/* Throw an exception by name */
+void LIBAPIENTRY jnitoolsThrowByName(JNIEnv *env, const char *name, const char *msg, ...)
+{
+ static char buffer[1024];
+ va_list va;
+ jclass cls = 0;
+
+ if(!isinit && init(env)) isinit=1;
+
+ va_start(va, msg);
+
+ #ifdef NO_VSNPRINTF
+ (void) vsprintf(buffer, msg, va); /* dangerous -> stack overwrite ... */
+ #else
+ (void) vsnprintf(buffer, 1023, msg, va);
+ #endif
+ buffer[1023]=0;
+
+ va_end(va);
+
+ cls = (*env)->FindClass(env, name);
+
+ if (cls != 0) /* Otherwise an exception has already been thrown */
+ (*env)->ThrowNew(env, cls, buffer);
+
+ /* It's a good practice to clean up the local references. */
+ (*env)->DeleteLocalRef(env, cls);
+}
+
+/* Translates a Java string to a C string using the String.getBytes
+ * method, which uses default local encoding.
+ */
+char * LIBAPIENTRY jnitoolsGetJavaString(JNIEnv *env, jstring jstr)
+{
+ jbyteArray hab = 0;
+ jthrowable exc;
+ char *result = 0;
+
+ if(!isinit && init(env)) isinit=1;
+
+ hab = (*env)->CallObjectMethod(env, jstr, String_getBytes_ID);
+ exc = (*env)->ExceptionOccurred(env);
+ if (!exc) {
+ jint len = (*env)->GetArrayLength(env, hab);
+ result = (char *)malloc(len + 1);
+ if (result == 0) {
+ jnitoolsThrowByName(env, "java/lang/OutOfMemoryError", 0);
+ (*env)->DeleteLocalRef(env, hab);
+ return 0;
+ }
+ (*env)->GetByteArrayRegion(env, hab, 0, len, (jbyte *)result);
+ result[len] = 0; /* NULL-terminate */
+ } else {
+ (*env)->DeleteLocalRef(env, exc);
+ }
+ (*env)->DeleteLocalRef(env, hab);
+ return result;
+}
+
+/**
+ * signature: e.g. "(II[I)V" for "void <name>(int, int, int[])"
+ *
+ * argIndex: 0-n argument index of the method signature
+ * -1 return type
+ */
+static JavaBasicType _jnitoolsGetJavaBasicTypeAndArgLen(JNIEnv *env,
+ const char * signature, int argIndex,
+ const char * errText,
+ int * argLen)
+{
+ int i, j, arg, argend, arraydim;
+ char c, *help;
+ JavaBasicType jbt = T_NOPE;
+
+ if(!isinit && init(env)) isinit=1;
+
+ *argLen=0;
+
+ if(signature==NULL) return T_NOPE;
+ j=strlen(signature);
+
+ for(i=0, arg=0, argend=0, arraydim=0; i<j; i++)
+ {
+ c=signature[i];
+ if(c=='(') continue;
+ if(c==')') { argend=1; continue; }
+ if(c=='[') { arraydim++; continue; }
+ switch (c)
+ {
+ case 'L':
+ help = strchr(signature+i, ';');
+ if(help==NULL)
+ {
+ jnitoolsThrowByName(env,
+ "java/lang/IllegalArgumentException",
+ "%s(arg #%d): invalid signature (inv. object) at %d <%s>\n",
+ errText, argIndex+1, i, signature);
+ return T_NOPE;
+ }
+ jbt = (arraydim==0)?T_OBJECT:T_OBJECT_ARRAY;
+ i = help-signature;
+ arraydim=0;
+ break;
+ case 'V':
+ if(arraydim>0)
+ {
+ jnitoolsThrowByName(env,
+ "java/lang/IllegalArgumentException",
+ "%s(arg #%d): invalid signature (void array) at %d <%s>\n",
+ errText, argIndex+1, i, signature);
+ return T_NOPE;
+ }
+ jbt = T_VOID;
+ arraydim=0;
+ break;
+ case 'Z':
+ jbt = (arraydim==0)?T_BOOLEAN:T_BOOLEAN_ARRAY;
+ arraydim=0;
+ break;
+ case 'B':
+ jbt = (arraydim==0)?T_BYTE:T_BYTE_ARRAY;
+ arraydim=0;
+ break;
+ case 'C':
+ jbt = (arraydim==0)?T_CHAR:T_CHAR_ARRAY;
+ arraydim=0;
+ break;
+ case 'S':
+ jbt = (arraydim==0)?T_SHORT:T_SHORT_ARRAY;
+ arraydim=0;
+ break;
+ case 'I':
+ jbt = (arraydim==0)?T_INT:T_INT_ARRAY;
+ arraydim=0;
+ break;
+ case 'J':
+ jbt = (arraydim==0)?T_LONG:T_LONG_ARRAY;
+ arraydim=0;
+ break;
+ case 'F':
+ jbt = (arraydim==0)?T_FLOAT:T_FLOAT_ARRAY;
+ arraydim=0;
+ break;
+ case 'D':
+ jbt = (arraydim==0)?T_DOUBLE:T_DOUBLE_ARRAY;
+ arraydim=0;
+ break;
+ }
+ if( (argIndex >=0 && arg==argIndex) ||
+ (argIndex==-1 && argend==1)
+ )
+ {
+ *argLen=arg;
+ return jbt;
+ }
+ arg++;
+ }
+ return T_NOPE;
+}
+
+/**
+ * signature: e.g. "(II[I)V" for "void <name>(int, int, int[])"
+ *
+ * argIndex: 0-n argument index of the method signature
+ * -1 return type
+ */
+int LIBAPIENTRY jnitoolsGetArgNumber(JNIEnv *env,
+ const char * signature,
+ const char * errText)
+{
+ int num = 0;
+ (void) _jnitoolsGetJavaBasicTypeAndArgLen(env,
+ signature, -1,
+ errText,
+ &num);
+ return num;
+}
+
+/**
+ * signature: e.g. "(II[I)V" for "void <name>(int, int, int[])"
+ *
+ * argIndex: 0-n argument index of the method signature
+ * -1 return type
+ */
+JavaBasicType LIBAPIENTRY jnitoolsGetJavaBasicType(JNIEnv *env,
+ const char * signature, int argIndex,
+ const char * errText)
+{
+ int num = 0;
+ JavaBasicType jbt = _jnitoolsGetJavaBasicTypeAndArgLen(env,
+ signature, argIndex,
+ errText,
+ &num);
+ return jbt;
+}
+
+jarray LIBAPIENTRY jnitoolsNativeArray2JavaArray (JNIEnv *env, JavaBasicType jbt,
+ void *data, int dataArrayLen,
+ const char * errText, int arg)
+{
+ jarray res = 0;
+
+ if(!isinit && init(env)) isinit=1;
+
+ switch(jbt)
+ {
+ case T_BOOLEAN_ARRAY:
+ res = (*env)->NewBooleanArray(env, dataArrayLen);
+ if(data!=NULL)
+ (*env)->SetBooleanArrayRegion(env, (jbooleanArray)res,
+ 0, dataArrayLen,
+ (jboolean*)data);
+ break;
+ case T_BYTE_ARRAY:
+ res = (*env)->NewByteArray(env, dataArrayLen);
+ if(data!=NULL)
+ (*env)->SetByteArrayRegion(env, (jbyteArray)res,
+ 0, dataArrayLen, (jbyte*)data);
+ break;
+ case T_CHAR_ARRAY:
+ res = (*env)->NewCharArray(env, dataArrayLen);
+ if(data!=NULL)
+ (*env)->SetCharArrayRegion(env, (jcharArray)res,
+ 0, dataArrayLen, (jchar*)data);
+ break;
+ case T_SHORT_ARRAY:
+ res = (*env)->NewShortArray(env, dataArrayLen);
+ if(data!=NULL)
+ (*env)->SetShortArrayRegion(env, (jshortArray)res,
+ 0, dataArrayLen, (jshort*)data);
+ break;
+ case T_INT_ARRAY:
+ res = (*env)->NewIntArray(env, dataArrayLen);
+ if(data!=NULL)
+ (*env)->SetIntArrayRegion(env, (jintArray)res,
+ 0, dataArrayLen, (jint*)data);
+ break;
+ case T_LONG_ARRAY:
+ res = (*env)->NewLongArray(env, dataArrayLen);
+ if(data!=NULL)
+ (*env)->SetLongArrayRegion(env, (jlongArray)res,
+ 0, dataArrayLen, (jlong*)data);
+ break;
+ case T_FLOAT_ARRAY:
+ res = (*env)->NewFloatArray(env, dataArrayLen);
+ if(data!=NULL)
+ (*env)->SetFloatArrayRegion(env, (jfloatArray)res,
+ 0, dataArrayLen, (jfloat*)data);
+ break;
+ case T_DOUBLE_ARRAY:
+ res = (*env)->NewDoubleArray(env, dataArrayLen);
+ if(data!=NULL)
+ (*env)->SetDoubleArrayRegion(env, (jdoubleArray)res,
+ 0, dataArrayLen, (jdouble*)data);
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "%s(arg #%d): Type is not an array",
+ errText, arg);
+ return 0;
+ }
+ return res;
+}
+
+jarray LIBAPIENTRY jnitoolsNativePtrArray2JavaArray (JNIEnv *env,
+ JavaBasicType jbt,
+ void *data[/*pointerNumber*/],
+ int pointerNumber,
+ int dataArrayLen,
+ const char * errText, int arg)
+
+{
+ unsigned char * buffer = NULL;
+ jarray res = 0;
+ int i;
+ int setLenElems = dataArrayLen/pointerNumber;
+ int setLenBytes = 0;
+
+
+ if(!isinit && init(env)) isinit=1;
+
+ switch(jbt)
+ {
+ case T_BYTE_ARRAY:
+ setLenBytes = setLenElems * sizeof(jbyte) ;
+ break;
+ case T_CHAR_ARRAY:
+ setLenBytes = setLenElems * sizeof(jchar) ;
+ break;
+ case T_SHORT_ARRAY:
+ setLenBytes = setLenElems * sizeof(jshort) ;
+ break;
+ case T_BOOLEAN_ARRAY:
+ setLenBytes = setLenElems * sizeof(jboolean) ;
+ break;
+ case T_INT_ARRAY:
+ setLenBytes = setLenElems * sizeof(jint) ;
+ break;
+ case T_LONG_ARRAY:
+ setLenBytes = setLenElems * sizeof(jlong) ;
+ break;
+ case T_FLOAT_ARRAY:
+ setLenBytes = setLenElems * sizeof(jfloat) ;
+ break;
+ case T_DOUBLE_ARRAY:
+ setLenBytes = setLenElems * sizeof(jdouble) ;
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "%s(arg #%d): Type is not an array",
+ errText, arg);
+ return 0;
+ }
+ buffer = calloc (pointerNumber, setLenBytes);
+ if(buffer==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/Exception",
+ "%s(arg #%d): Out of memory",
+ errText, arg);
+ return 0;
+ }
+ for(i=0; i<pointerNumber; i++)
+ memcpy(buffer+i*setLenBytes,
+ data[i], setLenBytes);
+
+ res = jnitoolsNativeArray2JavaArray (env, jbt,
+ buffer, dataArrayLen,
+ errText, arg);
+ free(buffer);
+ return res;
+}
+
+void LIBAPIENTRY jnitoolsReleaseJavaArray2NativeArray (JNIEnv *env, jarray arr, JavaBasicType jbt,
+ void *data, int dataArrayLen,
+ const char * errText, int arg)
+{
+ int len = (*env)->GetArrayLength(env, arr);
+ int lenb = 0;
+ void * arrdata = 0;
+
+ if(!isinit && init(env)) isinit=1;
+
+ if(len!=dataArrayLen)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "%s(arg #%d): Array-Length differs of Java-Callback input(%d) vs output(%d)", errText, arg, dataArrayLen, len);
+ return;
+ }
+
+ arrdata = (void *) (*env)->GetPrimitiveArrayCritical(env, arr, 0);
+
+ switch(jbt)
+ {
+ case T_BOOLEAN_ARRAY:
+ lenb = len*sizeof(jboolean);
+ break;
+ case T_BYTE_ARRAY:
+ lenb = len*sizeof(jbyte);
+ break;
+ case T_CHAR_ARRAY:
+ lenb = len*sizeof(jchar);
+ break;
+ case T_SHORT_ARRAY:
+ lenb = len*sizeof(jshort);
+ break;
+ case T_INT_ARRAY:
+ lenb = len*sizeof(jint);
+ break;
+ case T_LONG_ARRAY:
+ lenb = len*sizeof(jlong);
+ break;
+ case T_FLOAT_ARRAY:
+ lenb = len*sizeof(jfloat);
+ break;
+ case T_DOUBLE_ARRAY:
+ lenb = len*sizeof(jdouble);
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "%s(arg #%d): Type is not an array",
+ errText, arg);
+ }
+ memcpy (data, arrdata, lenb);
+ (*env)->ReleasePrimitiveArrayCritical(env, arr, arrdata, JNI_ABORT);
+}
+
+void LIBAPIENTRY jnitoolsReleaseJavaArray2NativeArrayPtr (JNIEnv *env,
+ jarray arr,
+ JavaBasicType jbt,
+ void *data[/*pointerNumber*/],
+ int pointerNumber,
+ int dataArrayLen,
+ const char * errText,
+ int arg)
+{
+ int len = (*env)->GetArrayLength(env, arr);
+ unsigned char * arrdata = 0;
+ int i;
+ int setLenElems = dataArrayLen/pointerNumber;
+ int setLenBytes = 0;
+
+ if(!isinit && init(env)) isinit=1;
+
+ if(len!=dataArrayLen)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "%s(arg #%d): Array-Length differs of Java-Callback input(%d) vs output(%d)", errText, arg, dataArrayLen, len);
+ return;
+ }
+
+ arrdata = (unsigned char *)
+ (*env)->GetPrimitiveArrayCritical(env, arr, 0);
+
+ switch(jbt)
+ {
+ case T_BOOLEAN_ARRAY:
+ setLenBytes = setLenElems * sizeof(jboolean);
+ break;
+ case T_BYTE_ARRAY:
+ setLenBytes = setLenElems * sizeof(jbyte);
+ break;
+ case T_CHAR_ARRAY:
+ setLenBytes = setLenElems * sizeof(jchar);
+ break;
+ case T_SHORT_ARRAY:
+ setLenBytes = setLenElems * sizeof(jshort);
+ break;
+ case T_INT_ARRAY:
+ setLenBytes = setLenElems * sizeof(jint);
+ break;
+ case T_LONG_ARRAY:
+ setLenBytes = setLenElems * sizeof(jlong);
+ break;
+ case T_FLOAT_ARRAY:
+ setLenBytes = setLenElems * sizeof(jfloat);
+ break;
+ case T_DOUBLE_ARRAY:
+ setLenBytes = setLenElems * sizeof(jdouble);
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "%s(arg #%d): Type is not an array", errText, arg);
+ }
+ for(i=0; i<pointerNumber; i++)
+ memcpy(data[i], arrdata+i*setLenBytes,
+ setLenBytes);
+ (*env)->ReleasePrimitiveArrayCritical(env, arr, arrdata, JNI_ABORT);
+}
+
+
+void * LIBAPIENTRY jnitoolsCreateNativeArray (JavaBasicType jbt, int dataArrayLen, const char * errText)
+{
+ void * arrdata = 0;
+
+ (void)errText;
+
+ switch(jbt)
+ {
+ case T_BOOLEAN_ARRAY:
+ arrdata = calloc(dataArrayLen, sizeof(int));
+ break;
+ case T_BYTE_ARRAY:
+ arrdata = calloc(dataArrayLen, sizeof(char));
+ break;
+ case T_CHAR_ARRAY:
+ arrdata = calloc(dataArrayLen, sizeof(char));
+ break;
+ case T_SHORT_ARRAY:
+ arrdata = calloc(dataArrayLen, sizeof(short));
+ break;
+ case T_INT_ARRAY:
+ arrdata = calloc(dataArrayLen, sizeof(int));
+ break;
+ case T_LONG_ARRAY:
+ arrdata = calloc(dataArrayLen, sizeof(long));
+ break;
+ case T_FLOAT_ARRAY:
+ arrdata = calloc(dataArrayLen, sizeof(float));
+ break;
+ case T_DOUBLE_ARRAY:
+ arrdata = calloc(dataArrayLen, sizeof(double));
+ break;
+ default:
+ return 0;
+ }
+ return arrdata;
+}
+
diff --git a/CNativeCode/jnitools.c b/CNativeCode/jnitools.c
new file mode 100644
index 0000000..18a4aa5
--- /dev/null
+++ b/CNativeCode/jnitools.c
@@ -0,0 +1,560 @@
+#include <string.h>
+#include "jnitools.h"
+
+#ifdef __BUILTIN_VA_ARG_INCR
+ /* Special stuff for the SunOS port ... */
+ va_list __builtin_va_arg_incr = 0;
+ va_list __builtin_va_alist = 0;
+#endif
+
+static int isinit = 0;
+static jclass classString=0;
+static jmethodID String_getBytes_ID=0;
+static jmethodID String_init_ID=0;
+
+static int init(JNIEnv *env)
+{
+ classString = (*env)->FindClass(env, "java/lang/String");
+ if(classString)
+ {
+ String_getBytes_ID =
+ (*env)->GetMethodID(env, classString, "getBytes", "()[B");
+ if(!String_getBytes_ID) return 0;
+ String_init_ID = (*env)->GetMethodID(env, classString, "<init>", "([B)V");
+ if(!String_init_ID) return 0;
+ } else return 0;
+ return 1;
+}
+
+/* Throw an exception by name */
+void LIBAPIENTRY jnitoolsThrowByName(JNIEnv *env, const char *name, const char *msg, ...)
+{
+ static char buffer[1024];
+ va_list va;
+ jclass cls = 0;
+
+ if(!isinit && init(env)) isinit=1;
+
+ va_start(va, msg);
+
+ #ifdef NO_VSNPRINTF
+ (void) vsprintf(buffer, msg, va); /* dangerous -> stack overwrite ... */
+ #else
+ (void) vsnprintf(buffer, 1023, msg, va);
+ #endif
+ buffer[1023]=0;
+
+ va_end(va);
+
+ cls = (*env)->FindClass(env, name);
+
+ if (cls != 0) /* Otherwise an exception has already been thrown */
+ (*env)->ThrowNew(env, cls, buffer);
+
+ /* It's a good practice to clean up the local references. */
+ (*env)->DeleteLocalRef(env, cls);
+}
+
+/* Translates a Java string to a C string using the String.getBytes
+ * method, which uses default local encoding.
+ */
+char * LIBAPIENTRY jnitoolsGetJavaString(JNIEnv *env, jstring jstr)
+{
+ jbyteArray hab = 0;
+ jthrowable exc;
+ char *result = 0;
+
+ if(!isinit && init(env)) isinit=1;
+
+ hab = (*env)->CallObjectMethod(env, jstr, String_getBytes_ID);
+ exc = (*env)->ExceptionOccurred(env);
+ if (!exc) {
+ jint len = (*env)->GetArrayLength(env, hab);
+ result = (char *)malloc(len + 1);
+ if (result == 0) {
+ jnitoolsThrowByName(env, "java/lang/OutOfMemoryError", 0);
+ (*env)->DeleteLocalRef(env, hab);
+ return 0;
+ }
+ (*env)->GetByteArrayRegion(env, hab, 0, len, (jbyte *)result);
+ result[len] = 0; /* NULL-terminate */
+ } else {
+ (*env)->DeleteLocalRef(env, exc);
+ }
+ (*env)->DeleteLocalRef(env, hab);
+ return result;
+}
+
+/**
+ * signature: e.g. "(II[I)V" for "void <name>(int, int, int[])"
+ *
+ * argIndex: 0-n argument index of the method signature
+ * -1 return type
+ */
+static JavaBasicType _jnitoolsGetJavaBasicTypeAndArgLen(JNIEnv *env,
+ const char * signature, int argIndex,
+ const char * errText,
+ int * argLen)
+{
+ int i, j, arg, argend, arraydim;
+ char c, *help;
+ JavaBasicType jbt = T_NOPE;
+
+ if(!isinit && init(env)) isinit=1;
+
+ *argLen=0;
+
+ if(signature==NULL) return T_NOPE;
+ j=strlen(signature);
+
+ for(i=0, arg=0, argend=0, arraydim=0; i<j; i++)
+ {
+ c=signature[i];
+ if(c=='(') continue;
+ if(c==')') { argend=1; continue; }
+ if(c=='[') { arraydim++; continue; }
+ switch (c)
+ {
+ case 'L':
+ help = strchr(signature+i, ';');
+ if(help==NULL)
+ {
+ jnitoolsThrowByName(env,
+ "java/lang/IllegalArgumentException",
+ "%s(arg #%d): invalid signature (inv. object) at %d <%s>\n",
+ errText, argIndex+1, i, signature);
+ return T_NOPE;
+ }
+ jbt = (arraydim==0)?T_OBJECT:T_OBJECT_ARRAY;
+ i = help-signature;
+ arraydim=0;
+ break;
+ case 'V':
+ if(arraydim>0)
+ {
+ jnitoolsThrowByName(env,
+ "java/lang/IllegalArgumentException",
+ "%s(arg #%d): invalid signature (void array) at %d <%s>\n",
+ errText, argIndex+1, i, signature);
+ return T_NOPE;
+ }
+ jbt = T_VOID;
+ arraydim=0;
+ break;
+ case 'Z':
+ jbt = (arraydim==0)?T_BOOLEAN:T_BOOLEAN_ARRAY;
+ arraydim=0;
+ break;
+ case 'B':
+ jbt = (arraydim==0)?T_BYTE:T_BYTE_ARRAY;
+ arraydim=0;
+ break;
+ case 'C':
+ jbt = (arraydim==0)?T_CHAR:T_CHAR_ARRAY;
+ arraydim=0;
+ break;
+ case 'S':
+ jbt = (arraydim==0)?T_SHORT:T_SHORT_ARRAY;
+ arraydim=0;
+ break;
+ case 'I':
+ jbt = (arraydim==0)?T_INT:T_INT_ARRAY;
+ arraydim=0;
+ break;
+ case 'J':
+ jbt = (arraydim==0)?T_LONG:T_LONG_ARRAY;
+ arraydim=0;
+ break;
+ case 'F':
+ jbt = (arraydim==0)?T_FLOAT:T_FLOAT_ARRAY;
+ arraydim=0;
+ break;
+ case 'D':
+ jbt = (arraydim==0)?T_DOUBLE:T_DOUBLE_ARRAY;
+ arraydim=0;
+ break;
+ }
+ if( (argIndex >=0 && arg==argIndex) ||
+ (argIndex==-1 && argend==1)
+ )
+ {
+ *argLen=arg;
+ return jbt;
+ }
+ arg++;
+ }
+ return T_NOPE;
+}
+
+/**
+ * signature: e.g. "(II[I)V" for "void <name>(int, int, int[])"
+ *
+ * argIndex: 0-n argument index of the method signature
+ * -1 return type
+ */
+int LIBAPIENTRY jnitoolsGetArgNumber(JNIEnv *env,
+ const char * signature,
+ const char * errText)
+{
+ int num = 0;
+ (void) _jnitoolsGetJavaBasicTypeAndArgLen(env,
+ signature, -1,
+ errText,
+ &num);
+ return num;
+}
+
+/**
+ * signature: e.g. "(II[I)V" for "void <name>(int, int, int[])"
+ *
+ * argIndex: 0-n argument index of the method signature
+ * -1 return type
+ */
+JavaBasicType LIBAPIENTRY jnitoolsGetJavaBasicType(JNIEnv *env,
+ const char * signature, int argIndex,
+ const char * errText)
+{
+ int num = 0;
+ JavaBasicType jbt = _jnitoolsGetJavaBasicTypeAndArgLen(env,
+ signature, argIndex,
+ errText,
+ &num);
+ return jbt;
+}
+
+jarray LIBAPIENTRY jnitoolsNativeArray2JavaArray (JNIEnv *env, JavaBasicType jbt,
+ void *data, int dataArrayLen,
+ const char * errText, int arg)
+{
+ jarray res = 0;
+
+ if(!isinit && init(env)) isinit=1;
+
+ switch(jbt)
+ {
+ case T_BOOLEAN_ARRAY:
+ res = (*env)->NewBooleanArray(env, dataArrayLen);
+ if(data!=NULL)
+ (*env)->SetBooleanArrayRegion(env, (jbooleanArray)res,
+ 0, dataArrayLen,
+ (jboolean*)data);
+ break;
+ case T_BYTE_ARRAY:
+ res = (*env)->NewByteArray(env, dataArrayLen);
+ if(data!=NULL)
+ (*env)->SetByteArrayRegion(env, (jbyteArray)res,
+ 0, dataArrayLen, (jbyte*)data);
+ break;
+ case T_CHAR_ARRAY:
+ res = (*env)->NewCharArray(env, dataArrayLen);
+ if(data!=NULL)
+ (*env)->SetCharArrayRegion(env, (jcharArray)res,
+ 0, dataArrayLen, (jchar*)data);
+ break;
+ case T_SHORT_ARRAY:
+ res = (*env)->NewShortArray(env, dataArrayLen);
+ if(data!=NULL)
+ (*env)->SetShortArrayRegion(env, (jshortArray)res,
+ 0, dataArrayLen, (jshort*)data);
+ break;
+ case T_INT_ARRAY:
+ res = (*env)->NewIntArray(env, dataArrayLen);
+ if(data!=NULL)
+ (*env)->SetIntArrayRegion(env, (jintArray)res,
+ 0, dataArrayLen, (jint*)data);
+ break;
+ case T_LONG_ARRAY:
+ res = (*env)->NewLongArray(env, dataArrayLen);
+ if(data!=NULL)
+ (*env)->SetLongArrayRegion(env, (jlongArray)res,
+ 0, dataArrayLen, (jlong*)data);
+ break;
+ case T_FLOAT_ARRAY:
+ res = (*env)->NewFloatArray(env, dataArrayLen);
+ if(data!=NULL)
+ (*env)->SetFloatArrayRegion(env, (jfloatArray)res,
+ 0, dataArrayLen, (jfloat*)data);
+ break;
+ case T_DOUBLE_ARRAY:
+ res = (*env)->NewDoubleArray(env, dataArrayLen);
+ if(data!=NULL)
+ (*env)->SetDoubleArrayRegion(env, (jdoubleArray)res,
+ 0, dataArrayLen, (jdouble*)data);
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "%s(arg #%d): Type is not an array",
+ errText, arg);
+ return 0;
+ }
+ return res;
+}
+
+jarray LIBAPIENTRY jnitoolsNativePtrArray2JavaArray (JNIEnv *env,
+ JavaBasicType jbt,
+ void *data[/*pointerNumber*/],
+ int pointerNumber,
+ int dataArrayLen,
+ const char * errText, int arg)
+
+{
+ unsigned char * buffer = NULL;
+ jarray res = 0;
+ int i;
+ int setLenElems = dataArrayLen/pointerNumber;
+ int setLenBytes = 0;
+
+
+ if(!isinit && init(env)) isinit=1;
+
+ switch(jbt)
+ {
+ case T_BYTE_ARRAY:
+ setLenBytes = setLenElems * sizeof(jbyte) ;
+ break;
+ case T_CHAR_ARRAY:
+ setLenBytes = setLenElems * sizeof(jchar) ;
+ break;
+ case T_SHORT_ARRAY:
+ setLenBytes = setLenElems * sizeof(jshort) ;
+ break;
+ case T_BOOLEAN_ARRAY:
+ setLenBytes = setLenElems * sizeof(jboolean) ;
+ break;
+ case T_INT_ARRAY:
+ setLenBytes = setLenElems * sizeof(jint) ;
+ break;
+ case T_LONG_ARRAY:
+ setLenBytes = setLenElems * sizeof(jlong) ;
+ break;
+ case T_FLOAT_ARRAY:
+ setLenBytes = setLenElems * sizeof(jfloat) ;
+ break;
+ case T_DOUBLE_ARRAY:
+ setLenBytes = setLenElems * sizeof(jdouble) ;
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "%s(arg #%d): Type is not an array",
+ errText, arg);
+ return 0;
+ }
+ buffer = calloc (pointerNumber, setLenBytes);
+ if(buffer==NULL)
+ {
+ jnitoolsThrowByName(env, "java/lang/Exception",
+ "%s(arg #%d): Out of memory",
+ errText, arg);
+ return 0;
+ }
+ for(i=0; i<pointerNumber; i++)
+ memcpy(buffer+i*setLenBytes,
+ data[i], setLenBytes);
+
+ res = jnitoolsNativeArray2JavaArray (env, jbt,
+ buffer, dataArrayLen,
+ errText, arg);
+ free(buffer);
+ return res;
+}
+
+void LIBAPIENTRY jnitoolsReleaseJavaArray2NativeArray (JNIEnv *env, jarray arr, JavaBasicType jbt,
+ void *data, int dataArrayLen,
+ const char * errText, int arg)
+{
+ int len = (*env)->GetArrayLength(env, arr);
+ void * arrdata = 0;
+
+ if(!isinit && init(env)) isinit=1;
+
+ if(len!=dataArrayLen)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "%s(arg #%d): Array-Length differs of Java-Callback input(%d) vs output(%d)", errText, arg, dataArrayLen, len);
+ return;
+ }
+
+ switch(jbt)
+ {
+ case T_BOOLEAN_ARRAY:
+ arrdata = (*env)->GetBooleanArrayElements(env, (jbooleanArray)arr, 0);
+ memcpy (data, arrdata, len*sizeof(jboolean));
+ (*env)->ReleaseBooleanArrayElements(env,(jbooleanArray)arr,arrdata,JNI_ABORT);
+ break;
+ case T_BYTE_ARRAY:
+ arrdata = (*env)->GetByteArrayElements(env, (jbyteArray)arr, 0);
+ memcpy (data, arrdata, len*sizeof(jbyte));
+ (*env)->ReleaseByteArrayElements(env,(jbyteArray)arr,arrdata,JNI_ABORT);
+ break;
+ case T_CHAR_ARRAY:
+ arrdata = (*env)->GetCharArrayElements(env, (jcharArray)arr, 0);
+ memcpy (data, arrdata, len*sizeof(jchar));
+ (*env)->ReleaseCharArrayElements(env,(jcharArray)arr,arrdata,JNI_ABORT);
+ break;
+ case T_SHORT_ARRAY:
+ arrdata = (*env)->GetShortArrayElements(env, (jshortArray)arr, 0);
+ memcpy (data, arrdata, len*sizeof(jshort));
+ (*env)->ReleaseShortArrayElements(env,(jshortArray)arr,arrdata,JNI_ABORT);
+ break;
+ case T_INT_ARRAY:
+ arrdata = (*env)->GetIntArrayElements(env, (jintArray)arr, 0);
+ memcpy (data, arrdata, len*sizeof(jint));
+ (*env)->ReleaseIntArrayElements(env,(jintArray)arr,arrdata,JNI_ABORT);
+ break;
+ case T_LONG_ARRAY:
+ arrdata = (*env)->GetLongArrayElements(env, (jlongArray)arr, 0);
+ memcpy (data, arrdata, len*sizeof(jlong));
+ (*env)->ReleaseLongArrayElements(env,(jlongArray)arr,arrdata,JNI_ABORT);
+ break;
+ case T_FLOAT_ARRAY:
+ arrdata = (*env)->GetFloatArrayElements(env, (jfloatArray)arr, 0);
+ memcpy (data, arrdata, len*sizeof(jfloat));
+ (*env)->ReleaseFloatArrayElements(env,(jfloatArray)arr,arrdata,JNI_ABORT);
+ break;
+ case T_DOUBLE_ARRAY:
+ arrdata = (*env)->GetDoubleArrayElements(env, (jdoubleArray)arr, 0);
+ memcpy (data, arrdata, len*sizeof(jdouble));
+ (*env)->ReleaseDoubleArrayElements(env,(jdoubleArray)arr,arrdata,JNI_ABORT);
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "%s(arg #%d): Type is not an array",
+ errText, arg);
+ }
+}
+
+void LIBAPIENTRY jnitoolsReleaseJavaArray2NativeArrayPtr (JNIEnv *env,
+ jarray arr,
+ JavaBasicType jbt,
+ void *data[/*pointerNumber*/],
+ int pointerNumber,
+ int dataArrayLen,
+ const char * errText,
+ int arg)
+{
+ int len = (*env)->GetArrayLength(env, arr);
+ unsigned char * arrdata = 0;
+ int i;
+ int setLenElems = dataArrayLen/pointerNumber;
+ int setLenBytes;
+
+ if(!isinit && init(env)) isinit=1;
+
+ if(len!=dataArrayLen)
+ {
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "%s(arg #%d): Array-Length differs of Java-Callback input(%d) vs output(%d)", errText, arg, dataArrayLen, len);
+ return;
+ }
+
+ switch(jbt)
+ {
+ case T_BOOLEAN_ARRAY:
+ arrdata = (unsigned char *) (*env)->GetBooleanArrayElements(env, (jbooleanArray)arr, 0);
+ setLenBytes = setLenElems * sizeof(jboolean);
+ for(i=0; i<pointerNumber; i++)
+ memcpy(data[i], arrdata+i*setLenBytes,
+ setLenBytes);
+ (*env)->ReleaseBooleanArrayElements(env,(jbooleanArray)arr, (jboolean *)arrdata,JNI_ABORT);
+ break;
+ case T_BYTE_ARRAY:
+ arrdata = (unsigned char *) (*env)->GetByteArrayElements(env, (jbyteArray)arr, 0);
+ setLenBytes = setLenElems * sizeof(jbyte);
+ for(i=0; i<pointerNumber; i++)
+ memcpy(data[i], arrdata+i*setLenBytes,
+ setLenBytes);
+ (*env)->ReleaseByteArrayElements(env,(jbyteArray)arr, (jbyte *)arrdata,JNI_ABORT);
+ break;
+ case T_CHAR_ARRAY:
+ arrdata = (unsigned char *) (*env)->GetCharArrayElements(env, (jcharArray)arr, 0);
+ setLenBytes = setLenElems * sizeof(jchar);
+ for(i=0; i<pointerNumber; i++)
+ memcpy(data[i], arrdata+i*setLenBytes,
+ setLenBytes);
+ (*env)->ReleaseCharArrayElements(env,(jcharArray)arr, (jchar *)arrdata,JNI_ABORT);
+ break;
+ case T_SHORT_ARRAY:
+ arrdata = (unsigned char *) (*env)->GetShortArrayElements(env, (jshortArray)arr, 0);
+ setLenBytes = setLenElems * sizeof(jshort);
+ for(i=0; i<pointerNumber; i++)
+ memcpy(data[i], arrdata+i*setLenBytes,
+ setLenBytes);
+ (*env)->ReleaseShortArrayElements(env,(jshortArray)arr, (jshort *)arrdata,JNI_ABORT);
+ break;
+ case T_INT_ARRAY:
+ arrdata = (unsigned char *) (*env)->GetIntArrayElements(env, (jintArray)arr, 0);
+ setLenBytes = setLenElems * sizeof(jint);
+ for(i=0; i<pointerNumber; i++)
+ memcpy(data[i], arrdata+i*setLenBytes,
+ setLenBytes);
+ (*env)->ReleaseIntArrayElements(env,(jintArray)arr, (jint *)arrdata,JNI_ABORT);
+ break;
+ case T_LONG_ARRAY:
+ arrdata = (unsigned char *) (*env)->GetLongArrayElements(env, (jlongArray)arr, 0);
+ setLenBytes = setLenElems * sizeof(jlong);
+ for(i=0; i<pointerNumber; i++)
+ memcpy(data[i], arrdata+i*setLenBytes,
+ setLenBytes);
+ (*env)->ReleaseLongArrayElements(env,(jlongArray)arr, (jlong *)arrdata,JNI_ABORT);
+ break;
+ case T_FLOAT_ARRAY:
+ arrdata = (unsigned char *) (*env)->GetFloatArrayElements(env, (jfloatArray)arr, 0);
+ setLenBytes = setLenElems * sizeof(jfloat);
+ for(i=0; i<pointerNumber; i++)
+ memcpy(data[i], arrdata+i*setLenBytes,
+ setLenBytes);
+ (*env)->ReleaseFloatArrayElements(env,(jfloatArray)arr, (jfloat *)arrdata,JNI_ABORT);
+ break;
+ case T_DOUBLE_ARRAY:
+ arrdata = (unsigned char *) (*env)->GetDoubleArrayElements(env, (jdoubleArray)arr, 0);
+ setLenBytes = setLenElems * sizeof(jdouble);
+ for(i=0; i<pointerNumber; i++)
+ memcpy(data[i], arrdata+i*setLenBytes,
+ setLenBytes);
+ (*env)->ReleaseDoubleArrayElements(env,(jdoubleArray)arr, (jdouble *)arrdata,JNI_ABORT);
+ break;
+ default:
+ jnitoolsThrowByName(env, "java/lang/IllegalArgumentException",
+ "%s(arg #%d): Type is not an array", errText, arg);
+ }
+}
+
+
+void * LIBAPIENTRY jnitoolsCreateNativeArray (JavaBasicType jbt, int dataArrayLen, const char * errText)
+{
+ void * arrdata = 0;
+
+ (void)errText;
+
+ switch(jbt)
+ {
+ case T_BOOLEAN_ARRAY:
+ arrdata = calloc(dataArrayLen, sizeof(int));
+ break;
+ case T_BYTE_ARRAY:
+ arrdata = calloc(dataArrayLen, sizeof(char));
+ break;
+ case T_CHAR_ARRAY:
+ arrdata = calloc(dataArrayLen, sizeof(char));
+ break;
+ case T_SHORT_ARRAY:
+ arrdata = calloc(dataArrayLen, sizeof(short));
+ break;
+ case T_INT_ARRAY:
+ arrdata = calloc(dataArrayLen, sizeof(int));
+ break;
+ case T_LONG_ARRAY:
+ arrdata = calloc(dataArrayLen, sizeof(long));
+ break;
+ case T_FLOAT_ARRAY:
+ arrdata = calloc(dataArrayLen, sizeof(float));
+ break;
+ case T_DOUBLE_ARRAY:
+ arrdata = calloc(dataArrayLen, sizeof(double));
+ break;
+ default:
+ return 0;
+ }
+ return arrdata;
+}
+
diff --git a/CNativeCode/jnitools.h b/CNativeCode/jnitools.h
new file mode 100644
index 0000000..ee02405
--- /dev/null
+++ b/CNativeCode/jnitools.h
@@ -0,0 +1,122 @@
+
+#ifndef JNITOOLS
+ #define JNITOOLS
+
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <stdarg.h>
+
+ #ifdef _WIN32_
+ #include "winstuff.h"
+ #endif
+
+ #include <jni.h>
+
+ #ifndef LIBAPIENTRY
+ #define LIBAPIENTRY
+ #endif
+ #ifndef LIBAPI
+ #define LIBAPI
+ #endif
+
+ typedef enum {
+ T_NOPE = 0,
+ T_VOID,
+ T_BOOLEAN,
+ T_BYTE,
+ T_CHAR,
+ T_SHORT,
+ T_INT,
+ T_LONG,
+ T_FLOAT,
+ T_DOUBLE,
+ T_OBJECT,
+ T_ARRAY_TYPE_BORDER,
+ T_BOOLEAN_ARRAY,
+ T_BYTE_ARRAY,
+ T_CHAR_ARRAY,
+ T_SHORT_ARRAY,
+ T_INT_ARRAY,
+ T_LONG_ARRAY,
+ T_FLOAT_ARRAY,
+ T_DOUBLE_ARRAY,
+ T_OBJECT_ARRAY
+ } JavaBasicType;
+
+ /* Throw an exception by name */
+ LIBAPI void LIBAPIENTRY jnitoolsThrowByName(JNIEnv *env, const char *name, const char *msg, ...);
+
+ /* Translates a Java string to a C string using the String.getBytes
+ * method, which uses default local encoding.
+ */
+ LIBAPI char * LIBAPIENTRY jnitoolsGetJavaString(JNIEnv *env, jstring jstr);
+
+ /**
+ * signature: e.g. "(II[I)V" for "void <name>(int, int, int[])"
+ *
+ * argIndex: 0-n argument index of the method signature
+ * -1 return type
+ */
+ LIBAPI JavaBasicType LIBAPIENTRY jnitoolsGetJavaBasicType(JNIEnv *env, const char * signature, int argIndex, const char * errText);
+
+ LIBAPI int LIBAPIENTRY jnitoolsGetArgNumber(JNIEnv *env,
+ const char * signature,
+ const char * errText);
+ /**
+ * e.g.: int a[4];
+ * jarray arr = jnitoolsNativeArray2JavaArray(env, T_INT_ARRAY,
+ * a, 4);
+ */
+ LIBAPI jarray LIBAPIENTRY jnitoolsNativeArray2JavaArray (JNIEnv *env,
+ JavaBasicType jbt,
+ void *data, int dataArrayLen,
+ const char * errText, int arg);
+
+ /**
+ * e.g.: int * a[2];
+ * a[0] = calloc (4, sizeof(int));
+ * a[1] = calloc (4, sizeof(int));
+ * jarray arr = jnitoolsNativePtrArray2JavaArray(env, T_INT_ARRAY,
+ * a, 2, 8);
+ */
+ LIBAPI jarray LIBAPIENTRY jnitoolsNativePtrArray2JavaArray(JNIEnv *env,
+ JavaBasicType jbt,
+ void *data[/*pointerNumber*/],
+ int pointerNumber,
+ int dataArrayLen,
+ const char * errText, int arg);
+
+
+ /**
+ * e.g.: int a[4];
+ * jarray arr = ...
+ * jnitoolsReleaseJavaArray2NativeArray(env, arr, T_INT_ARRAY,
+ * a, 4);
+ */
+ LIBAPI void LIBAPIENTRY jnitoolsReleaseJavaArray2NativeArray(
+ JNIEnv *env,
+ jarray arr, JavaBasicType jbt,
+ void *data, int dataArrayLen,
+ const char * errText, int arg);
+
+ /**
+ * e.g.: int * a[2];
+ * a[0] = calloc (4, sizeof(int));
+ * a[1] = calloc (4, sizeof(int));
+ * jarray arr = ...
+ * jnitoolsReleaseJavaArray2NativeArrayPtr (env, arr, T_INT_ARRAY,
+ * a, 2, 8);
+ */
+ LIBAPI void LIBAPIENTRY jnitoolsReleaseJavaArray2NativeArrayPtr (
+ JNIEnv *env,
+ jarray arr,
+ JavaBasicType jbt,
+ void *data[/*pointerNumber*/],
+ int pointerNumber,
+ int dataArrayLen,
+ const char * errText, int arg);
+
+ LIBAPI void * LIBAPIENTRY jnitoolsCreateNativeArray (JavaBasicType jbt,
+ int dataArrayLen,
+ const char * errText);
+#endif
diff --git a/CNativeCode/mac_console.c b/CNativeCode/mac_console.c
new file mode 100644
index 0000000..669bba3
--- /dev/null
+++ b/CNativeCode/mac_console.c
@@ -0,0 +1,119 @@
+// File "mac_console.c"
+
+#include <stdio.h>
+#include "mac_console.h"
+
+
+static JNIEnv *gJNIenv = nil;
+
+static char kMessage[] = "";
+static char gMessage[BUFSIZ];
+
+
+//
+// InstallJavaConsole
+//
+void InstallJavaConsole(JNIEnv *env)
+{
+ gJNIenv = env;
+}
+
+//
+// UninstallJavaConsole
+//
+void UninstallJavaConsole(void)
+{
+ gJNIenv = nil;
+}
+
+
+//
+// InstallConsole
+//
+int InstallConsole(void)
+{
+}
+
+//
+// RemoveConsole
+//
+int RemoveConsole(void)
+{
+}
+
+//
+// WriteCharsToConsole
+//
+int WriteCharsToConsole(void)
+{
+ jclass class_System;
+ jfieldID id_err;
+ jobject object_err;
+ jclass class_PrintStream;
+ jmethodID id_println;
+ jmethodID id_flush;
+ jstring string = nil;
+ int messageLength = 0;
+ char *message = nil;
+
+
+ // _FILE
+ //debugstr((char*)stderr->buffer);
+
+ if (gJNIenv != nil)
+ {
+ if (stderr->buffer_len > 0)
+ {
+ messageLength = stderr->buffer_len;
+ message = (char*)stderr->buffer;
+ }
+ else if (stdout->buffer_len > 0)
+ {
+ messageLength = stdout->buffer_len;
+ message = (char*)stdout->buffer;
+ }
+
+ if (messageLength < BUFSIZ)
+ {
+ strncpy(gMessage, message, messageLength);
+ gMessage[messageLength] = '\0';
+ }
+ else
+ {
+ strncpy(gMessage, message, BUFSIZ);
+ gMessage[BUFSIZ-1] = '\0';
+ }
+
+ string = (*gJNIenv)->NewStringUTF(gJNIenv, gMessage);
+ if (string != nil)
+ {
+ class_System = (*gJNIenv)->FindClass(gJNIenv, "java/lang/System");
+ id_err = (*gJNIenv)->GetStaticFieldID(gJNIenv, class_System, "err", "Ljava/io/PrintStream;");
+ object_err = (*gJNIenv)->GetStaticObjectField(gJNIenv, class_System, id_err);
+ class_PrintStream = (*gJNIenv)->GetObjectClass(gJNIenv, object_err);
+ id_println = (*gJNIenv)->GetMethodID(gJNIenv, class_PrintStream, "print", "(Ljava/lang/String;)V");
+
+ (*gJNIenv)->CallVoidMethod(gJNIenv, object_err, id_println, string);
+
+ (*gJNIenv)->DeleteLocalRef(gJNIenv, string);
+ (*gJNIenv)->DeleteLocalRef(gJNIenv, class_PrintStream);
+ (*gJNIenv)->DeleteLocalRef(gJNIenv, object_err);
+ (*gJNIenv)->DeleteLocalRef(gJNIenv, class_System);
+ }
+ else
+ {
+ //debugstr("string is null");
+ }
+ }
+ else
+ {
+ //debugstr("gJNIenv is null");
+ }
+}
+
+//
+// ReadCharsFromConsole
+//
+int ReadCharsFromConsole(void)
+{
+}
diff --git a/CNativeCode/mac_console.h b/CNativeCode/mac_console.h
new file mode 100644
index 0000000..59ba834
--- /dev/null
+++ b/CNativeCode/mac_console.h
@@ -0,0 +1,16 @@
+// File "mac_console.h"
+
+#include <jni.h>
+#include <stdio.h>
+#include <string.h>
+#include <MacTypes.h>
+#include <MacMemory.h>
+
+
+void InstallJavaConsole(JNIEnv *env);
+void UninstallJavaConsole(void);
+int InstallConsole(void);
+int RemoveConsole(void);
+int WriteCharsToConsole(void);
+int ReadCharsFromConsole(void);
+
diff --git a/CNativeCode/mac_nop_main.c b/CNativeCode/mac_nop_main.c
new file mode 100644
index 0000000..011711a
--- /dev/null
+++ b/CNativeCode/mac_nop_main.c
@@ -0,0 +1 @@
+#include <stdio.h> int main() { printf("GL4Java-Main NOP called (DLL)!"); return 0; } \ No newline at end of file
diff --git a/CNativeCode/macppcdefs.h b/CNativeCode/macppcdefs.h
new file mode 100644
index 0000000..b1aa588
--- /dev/null
+++ b/CNativeCode/macppcdefs.h
@@ -0,0 +1,7 @@
+#ifndef _macppcdefs_h
+ #define _macppcdefs_h
+
+ #define __LIB_VERSION__ "2.4.1.2"
+
+ #define NDEBUG
+#endif
diff --git a/CNativeCode/makeFuncs b/CNativeCode/makeFuncs
new file mode 100755
index 0000000..48208cc
--- /dev/null
+++ b/CNativeCode/makeFuncs
@@ -0,0 +1,4 @@
+#! /bin/sh
+
+sed 's/;/{ fprintf(stderr,"function not implemented in SGI-Irix65-GL\n");}/g' a.h > a.c
+
diff --git a/CNativeCode/misc/context.h b/CNativeCode/misc/context.h
new file mode 100644
index 0000000..cee1d75
--- /dev/null
+++ b/CNativeCode/misc/context.h
@@ -0,0 +1,18 @@
+
+
+typedef struct GL4JCtxData {
+ int handle; // the java side - handle
+ void * glContext; // the orig. GL context
+ void * vertex; //
+ void * normal;
+ void * color;
+ void * index;
+ void * texcoords[];
+ void * edgeflag;
+};
+
+#define MAX_GL4J_CONTEXT = 100;
+extern GL4JCtxData gl4jCtxData[MAX_GL4J_CONTEXT];
+
+GL4JCtxData findGL4JCtxData(void * glcontext);
+void releaseGL4JCtxData(GL4JCtxData * data);
diff --git a/CNativeCode/misc/glx_pbuffers.txt b/CNativeCode/misc/glx_pbuffers.txt
new file mode 100644
index 0000000..126e339
--- /dev/null
+++ b/CNativeCode/misc/glx_pbuffers.txt
@@ -0,0 +1,80 @@
+ [Add the following to section 3.2.3 on Offscreen Rendering]
+
+ To create a GLXPbuffer call:
+
+ GLXPbuffer glXCreateGLXPbufferSGIX(Display *dpy,
+ GLXFBConfig config,
+ unsigned int width,
+ unsigned int height,
+ int *attrib_list);
+
+ This creates a single GLXPbuffer and returns its XID. <width> and <height>
+ specify the pixel width and height of the rectangular pbuffer and
+ <attrib_list> specifies a list of attributes for the pbuffer. Currently
+ only three attributes can be specified in <attrib_list>:
+ GLX_PRESERVED_CONTENTS_SGIX, GLX_LARGEST_PBUFFER_SGIX and
+ GLX_DIGITAL_MEDIA_PBUFFER_SGIX.
+
+ [Add following the section on the GLX_PRESERVED_CONTENTS_SGIX attrib]
+
+ The resulting pbuffer, when made current, will contain color buffers
+ and ancillary buffers as specified by <config>. It is possible to create
+ a pbuffer with back buffers and to swap the front and back buffers by
+ calling glXSwapBuffers. Note that some pbuffers use framebuffer resources
+ so applications should consider deallocating them when they are not in use.
+
+ If the GLX_DIGITAL_MEDIA_PBUFFER_SGIX attribute is set to True in
+ <attrib_list>, then one or more of the pbuffer's color or ancillary
+ buffers may be shared with those of a currently associated DMbuffer.
+ Buffers described by the pbuffer's GLXFBConfig which are not defined
+ by the DMbuffer, are GLX resources that remain associated with the
+ DM pbuffer until it is destroyed.
+ An implementation may fail glXCreateGLXPbufferSGIX and generate a
+ BadMatch error when the sepcified <config> does not describe a
+ drawable that is compatible with any supported DMbuffers.
+
+ The GLXPbuffer is associated with a DMbuffer by calling:
+
+ Bool glXAssociateDMPbufferSGIX(Display *dpy,
+ GLXPbufferSGIX pbuffer,
+ DMparams *params,
+ DMbuffer dmbuffer);
+
+ The parameter <display> specifies a connection to an X server, and must
+ match the display used to create the GLXPbuffer <pbuffer>. The
+ DMparams <params> arg specifies the digital media characteristics
+ of the <dmbuffer> that will be associated with the DM pbuffer.
+ If glXAssociateDMbufferSGIX succeeds, any previously associated DMbuffer
+ is released and a value of True is returned. Subsequent GL commands
+ effect <dmbuffer> as they would any standard pbuffer. If a newly
+ released DMbuffer has no remaining clients, its buffers will also be freed.
+ A BadMatch error is generated when the specified DMparams or DMbuffer
+ are not compatible with the <pbuffer>, and a value of False is returned.
+
+ Before the DM pbuffer can be made current to a GLXContext, it must
+ be associated with a compatible DMbuffer. glXMakeCurrentReadSGI will
+ return False and generate a GLXBadDrawable error when a DM pbuffer
+ drawable has no associated DMbuffer.
+
+ A GLXPbuffer is destroyed by calling:
+
+ void glXDestroyGLXPbufferSGIX(Display *dpy,
+ GLXPbuffer pbuf);
+
+ The GLXPbuffer will be destroyed once it is no longer current to any
+ client. When a GLXPbuffer is destroyed, any memory resources that
+ attached to it, are freed, and its XID is made available for reuse.
+ Associated DMbuffers are released, and if they no lonnger have a
+ client, are also freed.
+
+Errors
+
+ XXX - not complete yet
+
+New State
+
+ None.
+
+New Implementation Dependent State
+
+ None.
diff --git a/CNativeCode/winstuff.h.skel b/CNativeCode/winstuff.h.skel
new file mode 100644
index 0000000..1cfc688
--- /dev/null
+++ b/CNativeCode/winstuff.h.skel
@@ -0,0 +1,33 @@
+#ifndef __WINSTUFF__
+ #define __WINSTUFF__
+
+ #include <windows.h>
+
+ /**
+ * Out of the Document:
+ * http://java.sun.com/products/jdk/faq/jni-j2sdk-faq.html
+ * So if you have trouble with the type __int64,
+ * please use this #define !!!
+ */
+ #ifdef FOOBAR_COMPILER
+ #define __int64 signed_64_bit_type
+ #endif
+
+ /*
+ #include "gl.win32.not.h"
+ #include "gl.win32.ext.h"
+ */
+
+ #define __LIB_VERSION__ __SED_LIB_VERSION__
+
+ #ifdef LIBAPIENTRY
+ #undef LIBAPIENTRY
+ #endif
+ #ifdef LIBAPI
+ #undef LIBAPI
+ #endif
+
+ #define LIBAPI __declspec(dllexport)
+ #define LIBAPIENTRY __stdcall
+#endif
+
diff --git a/COMPILATION.txt b/COMPILATION.txt
new file mode 100644
index 0000000..a20a4c3
--- /dev/null
+++ b/COMPILATION.txt
@@ -0,0 +1,234 @@
+\begin{verbatim}
+
+SOURCE INSTALLATION
+===================
+
+ Prerequisites
+ =============
+
+ You must allready have the following installed:
+
+ 1. Common
+
+ (a) JDK >= 1.2
+
+ (b) JavaCC >= 1.1
+
+ (c) bash
+
+ (d) GNU make
+
+ (e) GNU tools
+
+ (f) Java PNG archive (com.sixlegs.image.png)
+ Copy the png.jar file into a CLASSPATH-directory,
+ e.g. <JAVA_HOME>/jre/lib/ext/png.jar !
+
+ You can get a copy from the jausoft website also:
+
+http://jausoft.goethel.de/Files/Java/1.1.X/GL4Java/binpkg/png-1.0a-jar.zip
+
+
+ 2. UNIX/X11
+
+ (a) ( GL + GLU ) or ( MesaGL + MesaGLU Version 2.4 or higher)
+ We are looking for libGL.so AND libGLU.so in your library PATH, so
+ please create a symbolic link from the Mesa libs, to the abstract
+ one's !!
+ Please be sure to use a GLU Version >= 1.2 !!
+
+ (b) X11R6 (XFree86 works fine ;-) 3.6, or >= 4.0
+
+ (c) Unix standard file-utilities (tar, gzip, ...)
+
+ (d) LaTeX and LaTeX2Html (to generate the documentation)
+
+ 3. Windows 32 (NT & 95)
+ (a) MS-OpenGL and GLU library installed !
+ See if you have opengl32.dll AND glu32.dll
+ installed in your library path
+ (c:/winnt/system32 OR c:/windows/system)
+
+ (b) WinZip (to extract zip and tar-gzip files), be sure to disable the
+ option LF/CR conversion in TAR-Archives ! You can also use the jar
+ command-line tool of the JDK for zip files !
+
+ (c) Unix standard utilities (make, ksh (bash), tar ...) E.g. GNU-Win32
+ Project from Cygnus[_1_1], make sure to have zip installed also !
+ (d) LaTeX and LaTeX2Html (not testet - to generate the documentation)
+
+ (e) For compiling GL4Java for the MS-JVM, be sure you have the new MS-
+ JVM machine (build 3186) installed.
+
+
+ Obtain GL4Java
+ ===============
+
+ Official TAR-BALL
+ =================
+
+Login as root (or any other), obtain the source archive for GL4Java.
+
+http://jausoft.goethel.de/Files/Java/1.1.X/GL4Java/archive/
+
+Copy the .tar.gz file to a directory such as /usr/local and cd to that
+directory, then unpack the file:
+ cd /usr/local ( or where ever you placed the file )
+ gunzip GL4JavaX.Y.Z-Rn-src.tar.gz ; tar xvf GL4JavaX.Y.Z-Rn-src.tar
+ gunzip GL4JavaX.Y.Z-Rn-doc.tar.gz ;
+ tar xvf GL4JavaX.Y.Z-Rn-doc.tar (optional :-)
+
+X is the major, Y the minor and Z the bugfix library version number, and Rn
+(e.g. R2) is the release number, where no changes in the libs where made !
+
+A new directory will be created called GL4Java.
+
+
+ Anonymous CVS Access (Developer Version)
+ ========================================
+
+This project's SourceForge CVS repository can be checked out through anonymous
+(pserver) CVS with the following instruction set.
+The module you wish to check out must be specified as the modulename.
+When prompted for a password for anonymous, simply press the Enter key.
+
+cvs -d:pserver:[email protected]:/cvsroot/GL4Java login
+
+cvs -z3 -d:pserver:[email protected]:/cvsroot/GL4Java co GL4Java
+
+Updates from within the module's directory do not need the -d parameter.
+
+
+
+ Compilation
+ ===========
+
+ UNICEs and WINDOWs users
+ =========================
+
+Go to the directory GL4Java,
+which is the root-directory of GL4Java
+- so we stay here for the following procedures !
+
+You will see some 'symbols.mak.<machine>' files.
+Choose the right 'symbols.mak.<machine>' file, or create one.
+Edit your choosen or created 'symbols.mak.<machine>',
+so it will fit to your OS configuration - mind all macros !
+
+Copy the file 'symbols.mak.<your-machine>' to 'symbols.mak',
+a symbolic link for unices is recomended.
+
+The created lib will be copied to 'HOME_LIB_DIR' by automatic
+(via tar - symbolic links are still alive ;-) !
+
+All compiled java class files and the are copied into the directory
+'DEST_CLASSES_DIR' !
+This class-copy procedure can be forced later with the make call:
+ �make classcpy�.
+The gl4java.jar archive is generated in the directory 'DEST_CLASSES_DIR' also.
+
+Because GL4Java supports Netscape's JVM & JNI,
+we do try to ask for a privilege to run native DLL's.
+Because this requested privilege - the 'netscape' security-classes are
+delivered in the file �capsapi_classes.zip� which is used in the JAVAC macro
+definition in symbols.mak.
+
+
+ UNICEs users
+ ============
+
+Do not forget to add your 'HOME_LIB_DIR' (set in symbols.mak)
+to your LD_LIBRARY_PATH !
+
+Next create the library, class-files and all is needed with (for Unix/X11):
+ make x11
+
+The Unix makefile-action does the complete creation :-)
+
+The shared libraries are moved to the HOME_LIB_DIR (see above)
+or copied with the "-a" option to keep the symbolic links alive !
+
+ WINDOWs users
+ ==============
+
+Next create the class-files and all preparations with (Win32):
+ make w32
+
+The Windows makefile-action only creates the tool (gljni) and all Java classes
+and C-wrappers. An additional C compiler invocation must be done.
+
+To compile GL4Java, we still use MS Visual C++ 6.0 ! We also assume that
+Windows is installed under c:/WIN_NT ! The compiler flags are set to Pentium
+Pro (686 / PII) with the optimizimg Intel compiler !
+Also Java2 SDK is installed under c:/java2 ! Also MS Java SDK is installed
+under c:/MSJAVASDK !
+Please check all location in the makefile !
+
+ 1. If you have installed cygwin32 and it's bash and make, etc... AND set it
+ up very well (CLASSPATH, PATH, ...) you can invoke the makefile_b with
+ make w32 to create all java-depended stuff and the C-wrappers.
+
+ 2. Befor going any further, check if the files opengl32.dll glu.dll_a,
+ glu32.dll exist in c:/WIN_NT/system32 OR c:/windows/system ! IF not get
+ MS-OpenGL Lib (opengl32.dll, glu32.dll) !
+
+ 3. Go with the Explorer to the directory Win32VC6 and open the workspace
+ Win32VC6.dsw !
+
+ 4. Now, you should fix some option in the project file, we used:
+ The order of this path is important !
+ INCLUDEPATH:
+ c:/projects/java-1.1.X/GL4Java/CClassHeaders; \
+ c:/projects/java-1.1.X/GL4Java/CNativeCode; \
+ c:/java2/include; \
+ c:/java2/include/windows \
+ <the MSVC60 SDK PATH's ...>
+ LIBPATH:
+ c:/WIN_NT/system32; \
+ <the MSVC60 SDK PATH's ...>
+ WHERE: Java2 is installed under c:/java2 GL4Java is installed under d:/
+ projects/java-1.1.X/GL4Java
+
+ 5. Now just compile each project and the targets are placed in the lib
+ directory !
+
+ 6. Copy the generated dll's (in the libs-directory) to your windows system32
+ directory, or (better) to your /java2/jre/bin directory .
+
+ UNICEs and WINDOWs users
+ =========================
+
+If all goes well, just type e.g.:
+ 'java gl4java.GLContext -info'
+
+This will just test the bindings and gives you some informations !
+
+
+Next create the demos with.
+ cd demos
+ make
+
+If all goes well, just type e.g.:
+ 'java glDemosCvs'
+
+in this directory,
+and you should see a demo manager for all the GL4Java demos we have written.
+
+To allow JAVA2's appletviewer or Java2-Plug-In using JNI native libs,
+just look at GL4Java/demo/Java2Applet.bat
+(You have to change the gl4java.policy file) !
+
+You can - of course - use your 'policytool', which is shipped with JAVA2 !
+To use the demo Applets for Java2-Plug-In from www.jausoft.com, please add the
+following lines to your java.policy file:
+ grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/-"
+ {
+ permission java.security.AllPermission;
+ };
+You can also compare the totally native glut version against the java version.
+The glut versions do exist in the demos path also (under native).
+
+Sven Goethel
+2000-11-18
+
+\end{verbatim}
diff --git a/INSTALL.txt b/INSTALL.txt
new file mode 100644
index 0000000..4ec33f3
--- /dev/null
+++ b/INSTALL.txt
@@ -0,0 +1,261 @@
+\begin{verbatim}
+
+WHERE DO YOU GET the actual version of GL4Java ?
+================================================
+
+ Unix, Windows, ...
+ ===================
+ http://jausoft.goethel.de/Files/Java/1.1.X/GL4Java/
+
+ binpkg/png-1.0a-jar.zip (the PNG-JAR file)
+ binpkg/gl4javaX.Y.Z.R-jar.zip (the JAR file)
+ binpkg/gl4javaX.Y.Z.R-glutfonts-jar.zip (the JAR file)
+ binpkg/gl4javaX.Y.Z.R-classes.zip (the classes in a ZIP)
+ binpkg/gl4javaX.Y.Z.R-glutfonts-classes.zip (the classes in a ZIP)
+ binpkg/libGL4JavaX.Y.Z.R-<UNIX-TYPE>.tar.gz (the native libs - unix)
+ binpkg/libGL4JavaX.Y.Z.R-<WIN32-TYPE>.zip (the native libs - win32)
+
+ archive/GL4JavaX.Y.Z.R-demos.zip (demos - for users :-)
+ archive/GL4JavaX.Y.Z.R-src.tgz (sources no demos - for developers :-)
+ archive/GL4JavaX.Y.Z.R-doc.tgz (everything - for the patiente :-)
+
+ (where X is the major, Y the minor, Z the bugfix and R the release
+ library version number !
+ Take a look at VERSIONS.txt for a closer description !
+ )
+
+
+The Documentation
+=================
+
+It is recommended to check the documentation (so much work on it ;-).
+Just download the file 'GL4JavaX.Y.Z-doc.tgz' and un-gzip and un-tar it
+(Windows users may use WinZip here :-)
+
+Now you can read the HTML-Documentation with:
+ <YourHtmlBrowser> GL4Java/docs/html/GL4Java.html
+
+Or you can read the Postscript version with:
+ <YourPostScriptViewer> GL4Java/docs/GL4Java.ps
+
+Special Java2 Installation file:
+ Java2.txt
+
+Special Netscape Installation file:
+ Netscape.txt
+
+Special MS-JVM Installation file:
+ MS-JVM.txt
+
+
+YOU MUST ALLREADY HAVE THE FOLLOWING INSTALLED:
+===============================================
+
+ COMMON:
+ =======
+ o >= jdk 1.1.5 (for using)
+ o >= jdk 1.2 (for developing)
+
+
+ tested:
+ jdk1.1.7 (win32 (plus jit), linux (plus jit (tya v3.0)))
+ jdk1.2 (win32, linux (Pre-V1,native,no-jit))
+ Java2 (Java1.2) Plug-In on Netscape 4.5 (Win32)
+ Netscape 4.5 (Win32)
+
+ UNIX / X11 :
+ ============
+ o ( GL + GLU ) or ( MesaGL + MesaGLU Version 3.0 or higher)
+ AND glut (only for c-demos yet)
+
+ We are looking for libGL.so AND libGLU.so in your library PATH,
+ so please create a symbolic link from the Mesa libs,
+ to the abstract one's !!
+
+ o X11R6 (XFree86 works fine ;-)
+
+ o Unix standard file-utilities (tar, gzip, ...)
+
+ WINDOWS 32 (NT & 95)
+ ====================
+ o M$ OpenGL and GLU library - !!!! MUST !!!!
+
+ see if you have opengl32.dll AND glu32.dll
+ installed in your library path
+ (c:/winnt/system32 OR c:/windows/system)
+
+ o For running GL4Java within MS-JVM:
+ Be sure you have the new MS-JVM machine (build 3186) installed:
+
+ Microsoft (R) VM for Java, 5.0 Release 5.0.0.3186
+
+ o Unix standard file-utilities (tar, gzip, ...)
+ OR WinZip (can extract tar-files ;-)
+
+
+Installation procedure for UNIX/WINDOWs BINARY DISTRIBUTION:
+============================================================
+
+ UNICE and WINDOWs USERS JAVA ARCHIVE
+ =====================================
+
+
+o Choose a version number X.Y.Z.R !
+ Be shure that the version numbers X.Y are the same
+ for the gl4java.jar file and the native libraries !
+ The closest version number match provides the best compatibility !
+
+o download the gl4java.jar files, which is zipped in
+
+ binpkg/gl4javaX.Y.Z.R-jar.zip (the JAR file)
+ binpkg/gl4javaX.Y.Z.R-glutfonts-jar.zip (the JAR file)
+
+o unzip the downloaded gl4javaX.Y.Z.R*-jar.zip files,
+ this will result a file called gl4java.jar and gl4java-glutfonts.jar !
+
+o download the png.jar file, which is zipped in
+
+ binpkg/png-1.0a-jar.zip (the PNG-JAR file)
+
+o unzip the downloaded png-1.0a-jar.zip file,
+ this will result a file called png.jar !
+
+o Add gl4java.jar AND png.jar to your CLASSPATH (echo \$CLASSPATH)
+ if you use Java 1.1.X !
+
+o If you use JAVA2 or JRE - copy gl4java.jar AND png.jar to :
+ ./jre/lib/ext/.
+
+o If you use JAVA2 Plug-In copy gl4java.jar AND png.jar to :
+ ./jre/lib/.
+ (looks like a bug, because the Java2-PlugIn does not find
+ the gl4java.jar file in the ./jre/lib/ext directory )
+
+
+ UNICE USERS NATIVE LIBRARY
+ ============================
+
+o download the native libraries, which is zipped in
+
+ binpkg/libGL4JavaX.Y.Z.R-<UNIX-TYPE>.tar.gz (the native libs - unix)
+
+o change to a directory which is within your LD_LIBRARY_PATH
+ environment variable !
+ (Look at 'echo $LD_LIBRARY_PATH').
+
+o unpack the downloaded libGL4JavaX.Y.Z.R-<UNIX-TYPE>.tar.gz,
+ this will result some files called libGL4Java*.so* !
+ If you want to copy the extracted library files,
+ be sure to use 'cp -a' to keep the symbolic links alive !
+
+o If you use JAVA2, JAVA2-Plug-In or JRE - copy the libs to :
+ ./jre/lib/<machine>/.
+ e.g. linux:
+ ./jre/lib/i386/.
+
+ or
+
+ ./jre/lib/i386/green-threads/.
+
+ Be sure to use 'cp -a' to keep the symbolic links alive !
+
+o If you want to use Netscape 4.5 or above,
+ please read Netscape.txt
+
+
+
+ WINDOWs USERS NATIVE LIBRARY
+ ============================
+
+o download the native libraries, which is zipped in
+
+ binpkg/libGL4JavaX.Y.Z.R-<WIN32-TYPE>.zip (the native libs - win32)
+
+o unzip the downloaded libGL4JavaX.Y.Z.R-<WIN32-TYPE>.zip,
+ this will result some files called GL4Java*.dll !
+
+o Then copy the libraries
+ to c:/winnt/system32 (WINNT), c:/windows/system (WIN9X)
+ or where the other's *.dll files exits !
+
+ You can also copy the files (better) to /java2/jre/bin if using java2 !
+
+o If you use JAVA2, JAVA2-Plug-In or JRE - copy the libs also to :
+ ./jre/bin/.
+
+o If you want to use Netscape 4.5 or above,
+ please read Netscape.txt
+
+o If you use MS-JVM (MS-InternetExplorer >=4.0)
+ please read MS-JVM.txt
+
+
+ UNICE and WINDOWs USERS
+ =======================
+
+o You can check the installation and the used library versions with:
+ java gl4java.GLContext
+
+o You can now download the demos-archive GL4JavaX.Y.Z.R-demos.zip
+ This will create the directory GL4Java/demos !
+ Just try the demos while typing:
+ cd demos
+ java glDemosCvs
+
+ This will invoke the demo-manager !
+
+o To allow JAVA2's appletviewer using JNI native libs,
+ just look at GL4Java/demo/Java2Applet.bat
+ (You have to change the gl4java.policy file) !
+
+ You can - of course - use your 'policytool',
+ which is shipped with JAVA2 !
+
+ To use the demo Applets for Java2-Plug-In from www.jausoft.com,
+ please add the following lines to your java.policy file:
+
+grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/-" {
+ permission java.security.AllPermission;
+};
+
+
+o You can check JAVA2-Plug-In with the Java-Applets-Html-File's
+ demos/glLogoCvsAppletJ2P.html
+ demos/glOlympicCvsAppletJ2P.html
+ demos/testTextPPM1J2P.html
+
+o You can check Netscape Win32-JVM with the Java-Applets-Html-File's
+ demos/glLogoCvsApplet.html
+ demos/glOlympicCvsApplet.html
+ demos/testTextPPM1.html (copy swingall.jar of Swing1.1 to
+ ./Netcape/Communicator/Program/Java/classes )
+
+o You can check MS-InternetExplorer >= 4.0 with the Java-Applets-Html-File's
+ demos/glLogoCvsApplet.html
+ demos/glOlympicCvsApplet.html
+ demos/testTextPPM1.html (extract swingall.jar of Swing1.1 to
+ C:\WINDOWS\Java\TRUSTLIB - and delete
+ C:\WINDOWS\Java\TRUSTLIB\META-INF !)
+
+o you will find further documentations in docs/html/GL4Java.html
+ or docs/GL4Java.ps !
+ (Download GL4JavaX.Y.Z.R-doc.tgz,
+ or check it online - search for it at www.jausoft.com :-)
+
+
+have a lot of fun, responses and ideas are welcome !
+
+Sven Goethel
+
+6th July 1998
+22 April 1999
+1st June 1999
+2nd September 1999
+16th Novemeber 1999
+7th March 2000
+
+
+---------------------
+
+\end{verbatim}
+
diff --git a/INSTALLER.txt b/INSTALLER.txt
new file mode 100644
index 0000000..ddc3771
--- /dev/null
+++ b/INSTALLER.txt
@@ -0,0 +1,52 @@
+\begin{verbatim}
+
+GL4Java - INSTALLER - Web-Applet !
+===================================
+
+You can install GL4Java directly from the Web,
+while using the URL:
+
+ http://www.jausoft.com/Files/Java/1.1.X/GL4Java/Installer/
+
+The Web-Installer works for:
+ - Netscape >= 4.5
+ - MS-IE Explorer
+ - JDK-Appletviewer
+ - Hotjava-Browser
+
+ For the two last ones,
+ make sure, if you use Java2,
+ you have to edit the jre/lib/security/java.policy file
+ - or you should allow your JDK 1.1.X appletviewer to have
+ full system access !
+
+Sven Goethel !
+
+
+
+GL4Java - INSTALLER - Application !
+===================================
+
+Just download the Installer:
+ http://www.jausoft.com/Files/Java/1.1.X/GL4Java/binpkg
+
+ GL4JavaX.Y.Z.R-INSTALLER.zip
+
+With this package you are able to install GL4Java stand-alone !
+
+All needed files fir the installation
+will be downloaded to your local hard disk,
+if they does not exist !
+
+Extract the package !
+
+Just go into the directory "GL4Java/Installer"
+an call:
+
+ ./install.sh -> Unix
+ ./install.bat -> Win32
+
+And follow the instructions !
+
+
+\end{verbatim}
diff --git a/Installer/.htaccess b/Installer/.htaccess
new file mode 100644
index 0000000..c509e32
--- /dev/null
+++ b/Installer/.htaccess
@@ -0,0 +1 @@
+AddType application/x-x509-ca-cert CRT
diff --git a/Installer/CHANGES.txt b/Installer/CHANGES.txt
new file mode 100644
index 0000000..d8b68bf
--- /dev/null
+++ b/Installer/CHANGES.txt
@@ -0,0 +1,82 @@
+\begin{verbatim}
+
+ GL4Java Installer
+ Copyright (c) 1999 Ronald B. Cemer
+
+ GL4Java Installer 2.04
+ Copyright (c) 1999 Ronald B. Cemer, Sven Goethel
+
+This is the CHANGES file for the GL4Java Installer !
+
+This CHANGES starts with version 2.00 !
+
+GL4Java Installer 2.00 is based upon version 1.05, by Ron Cemer !
+
+Last Changes: 19. August 2000 (Version 2.04)
+
+-----------------
+TOP = new
+DOWN = old
+-----------------
+
+August 19, 2000 (Version 2.04):
+
+ - Improved the standalone installation.
+ - The Installer has now its own binpkg zip archiv,
+ to be downloaded !
+ - Unix and Dos startscripts are supported !
+ - All needed Files for the installation procedure
+ are fetched from the jausoft website,
+ during the installation, if they does not exist localy !
+
+ - Added machine info printouts ...
+
+June 08, 2000 (Version 2.03):
+
+ - Adding Linux-PowerPC
+ - Respecting GL4Java 2.4.0, only one generic GL vendor exists :)
+ - If no JVM vendor can be fetched, a SUN-JVM compatible one
+ is expected.
+
+April 01, 2000 (Version 2.02):
+
+ - Adding Sun-JVM 1.1.X & Sun-Java2 support for the
+ - appletviewer/hotjava-browser/Java2-PlugIn
+ - application (java -cp GL4JInst.jar GL4JInst)
+
+ - Now it is possible, to bundle the directories:
+ ./Installer
+ ./binpkg
+ together - to run the installer as a standalone application !
+
+Dezember 07, 1999 (Version 2.00 - Sven Goethel):
+
+ Starting integrating the Installer to the GL4Java Homepage !
+
+ This version 2.00 is based upon the original version 1.05,
+ by Ron Cemer !
+
+ - Splitting the class GL4JInst into:
+ GL4JInst
+ MachineCtrl
+ FilelistOS (interface for:)
+ FilelistJavaArchiv
+ FilelistJavaClasses
+ FilelistLinuxI386GlibcMesaNVidia
+ FilelistLinuxI386GlibcMesaSoft
+ FilelistWin32I386
+ FilelistWin95I386OpenGL
+ FilelistTool
+ FileTool
+
+ This is done in the nature to achive the know-how
+ of Ron's code, so I had to do a little clean-up ;-)
+
+ - The Applet-Tag parameter is *not* supported know !
+
+ - The archive files are fetched directly
+ out of the ../binpkg directory.
+ The archive files are created with the makefile
+ of GL4Java
+
+\end{verbatim}
diff --git a/Installer/FileTool.java b/Installer/FileTool.java
new file mode 100644
index 0000000..49cc782
--- /dev/null
+++ b/Installer/FileTool.java
@@ -0,0 +1,645 @@
+import java.awt.*;
+import java.io.*;
+import java.net.*;
+import java.util.*;
+import java.util.zip.*;
+
+public class FileTool
+{
+ public static final boolean fileExists(MachineCtrl mctrl,
+ String filename
+ )
+ {
+ if (mctrl.isNetscapeJvm)
+ {
+ try
+ {
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalFileAccess");
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalConnect");
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalFdRead");
+ }
+ catch (Exception e)
+ {
+ System.out.println
+ ("Netscape denied privileges, or a failure occurred.\n"+
+ "Here is the exception that was caught:\n"+e+"\n");
+ return false;
+ }
+ }
+ else if (mctrl.isMicrosoftJvm)
+ {
+ try
+ {
+ com.ms.security.PolicyEngine.assertPermission (com.ms.security.PermissionID.FILEIO);
+ com.ms.security.PolicyEngine.assertPermission
+ (com.ms.security.PermissionID.PROPERTY);
+ com.ms.security.PolicyEngine.assertPermission
+ (com.ms.security.PermissionID.SYSTEM);
+ }
+ catch (Exception e)
+ {
+ System.out.println
+ ("Microsoft VM denied privileges, or a failure occurred.\n"+
+ "Here is the exception that was caught:\n"+e+"\n");
+ return false;
+ }
+ }
+ File f = new File(filename);
+ return f.exists();
+ }
+
+ public static final boolean libraryExists(MachineCtrl mctrl,
+ String libname, Vector libdirlist
+ )
+ {
+ if (mctrl.isNetscapeJvm)
+ {
+ try
+ {
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalFileAccess");
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalExecAccess");
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalConnect");
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalFdRead");
+ }
+ catch (Exception e)
+ {
+ System.out.println
+ ("Netscape denied privileges, or a failure occurred.\n"+
+ "Here is the exception that was caught:\n"+e+"\n");
+ return false;
+ }
+ }
+ else if (mctrl.isMicrosoftJvm)
+ {
+ try
+ {
+ com.ms.security.PolicyEngine.assertPermission (com.ms.security.PermissionID.FILEIO);
+ com.ms.security.PolicyEngine.assertPermission
+ (com.ms.security.PermissionID.PROPERTY);
+ com.ms.security.PolicyEngine.assertPermission
+ (com.ms.security.PermissionID.SYSTEM);
+ }
+ catch (Exception e)
+ {
+ System.out.println
+ ("Microsoft VM denied privileges, or a failure occurred.\n"+
+ "Here is the exception that was caught:\n"+e+"\n");
+ return false;
+ }
+ }
+ if (mctrl.isUnix)
+ {
+ File f = new File("/etc/ld.so.conf");
+ if (f.exists())
+ {
+ try
+ {
+ BufferedReader br =
+ new BufferedReader(new FileReader(f));
+ try
+ {
+ while (true)
+ {
+ String s = br.readLine();
+ if (s == null) break;
+ if (s.length() > 0)
+ libdirlist.addElement(new String(s));
+ }
+ }
+ catch (Exception e)
+ {
+ br.close();
+ }
+ }
+ catch (Exception e)
+ { }
+ }
+ }
+ if (libdirlist != null)
+ {
+ for (int i = 0; i < libdirlist.size(); i++)
+ {
+ String s = (String)libdirlist.elementAt(i);
+ if ( (s != null) && (s.length() > 0) )
+ {
+ if (new File(s + "/" + libname).exists())
+ {
+ System.out.println
+ ("File found: "+s + "/" + libname+"\n");
+ return true;
+ }
+ }
+ }
+ }
+ return false;
+ }
+
+ /**
+ * Create all directory entries,
+ * which the given path contains !
+ *
+ * The given path can contain a file at the end,
+ * only elements finishing with a "/" are interpreted as an
+ * directory, therefor only for these, directories are created !
+ *
+ * E.g. "../binpkg/test.zip"
+ * The following directories will be created:
+ * .. -> error is catched and ignored
+ * ../binpkg/
+ *
+ *
+ * This is the same, like "mkdir -P /hello/dirs/" !
+ */
+ public static final boolean MkdirWithParents(MachineCtrl mctrl, String path)
+ {
+ if(path==null) return true;
+
+ if (mctrl.isNetscapeJvm)
+ {
+ try
+ {
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalFileAccess");
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalExecAccess");
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalConnect");
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalFdRead");
+ }
+ catch (Exception e)
+ {
+ System.out.println
+ ("Netscape denied privileges, or a failure occurred.\n"+
+ "Here is the exception that was caught:\n"+e+"\n");
+ return false;
+ }
+ }
+ else if (mctrl.isMicrosoftJvm)
+ {
+ try
+ {
+ com.ms.security.PolicyEngine.assertPermission (com.ms.security.PermissionID.FILEIO);
+ com.ms.security.PolicyEngine.assertPermission
+ (com.ms.security.PermissionID.PROPERTY);
+ com.ms.security.PolicyEngine.assertPermission
+ (com.ms.security.PermissionID.SYSTEM);
+ }
+ catch (Exception e)
+ {
+ System.out.println
+ ("Microsoft VM denied privileges, or a failure occurred.\n"+
+ "Here is the exception that was caught:\n"+e+"\n");
+ return false;
+ }
+ }
+ int dl = path.length();
+ int pos = 0;
+ File tmpdir = null;
+ String thisPath = null;
+
+ while(0<=pos && pos<dl)
+ {
+ pos = path.indexOf('/', pos+1);
+ if(pos>0)
+ {
+ thisPath = path.substring(0,pos);
+ tmpdir = new File (thisPath);
+ try
+ {
+ tmpdir.mkdir();
+ System.out.println("mkdir "+thisPath);
+ }
+ catch (Exception e0)
+ { }
+ tmpdir = null;
+ }
+ }
+
+ return true;
+ }
+
+ /**
+ * Copy all files from the zip
+ * or jar archive pointed to by zipURL to their
+ * corresponding destination given in targetDirs[] !
+ *
+ * The status window is updated with the name of the
+ * source file being copied.
+ *
+ * Each listed source file is simultaneously copied to
+ * all of its destination files. This means that the
+ * zip archive is only read once to minimize the amount
+ * of data that is transferred over the network.
+ */
+ public static final boolean copyFilesFromZip
+ (MachineCtrl mctrl,
+ URL zipURL, String targetDirs[],
+ TextArea statustextarea
+ )
+ {
+ int i, j;
+ boolean ok = true;
+ int nFiles = targetDirs.length;
+ String srcFile = null;
+ String destFiles[] = new String[nFiles];
+ File dstfils[] = new File[nFiles];
+ FileOutputStream fos[] = new FileOutputStream[nFiles];
+
+ if(targetDirs==null) return true;
+
+ if (mctrl.isNetscapeJvm)
+ {
+ try
+ {
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalFileAccess");
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalExecAccess");
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalConnect");
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalFdRead");
+ }
+ catch (Exception e)
+ {
+ System.out.println
+ ("Netscape denied privileges, or a failure occurred.\n"+
+ "Here is the exception that was caught:\n"+e+"\n");
+ return false;
+ }
+ }
+ else if (mctrl.isMicrosoftJvm)
+ {
+ try
+ {
+ com.ms.security.PolicyEngine.assertPermission (com.ms.security.PermissionID.FILEIO);
+ com.ms.security.PolicyEngine.assertPermission
+ (com.ms.security.PermissionID.PROPERTY);
+ com.ms.security.PolicyEngine.assertPermission
+ (com.ms.security.PermissionID.SYSTEM);
+ }
+ catch (Exception e)
+ {
+ System.out.println
+ ("Microsoft VM denied privileges, or a failure occurred.\n"+
+ "Here is the exception that was caught:\n"+e+"\n");
+ return false;
+ }
+ }
+ for (i = 0; i < nFiles; i++)
+ {
+ //
+ // adding a trailing path-seperator, if needed !
+ //
+ if(targetDirs[i]!=null)
+ {
+ targetDirs[i] = targetDirs[i].trim();
+ if(targetDirs[i].indexOf('/', targetDirs[i].length()-1)<0)
+ targetDirs[i] += "/";
+ System.out.println("targetDir: "+targetDirs[i]);
+ }
+ }
+
+ ZipInputStream zis = null;
+
+ // Open the archive.
+ try
+ {
+ zis = new ZipInputStream(zipURL.openStream());
+ }
+ catch (Exception e0)
+ {
+ if(statustextarea!=null)
+ statustextarea.setText
+ (statustextarea.getText() +
+ "Cannot open file: " + zipURL + "\n");
+ return false; // Should never happen!
+ }
+
+ try
+ {
+ while (ok)
+ {
+ ZipEntry entry = zis.getNextEntry();
+ if(entry==null)
+ break;
+
+ if (!entry.isDirectory())
+ {
+ srcFile = entry.getName();
+
+ for(i=0; ok && i<nFiles; i++)
+ {
+ destFiles[i] = targetDirs[i] + srcFile;
+ dstfils[i] = new File(destFiles[i]);
+
+ if (dstfils[i].exists())
+ {
+ try
+ {
+ dstfils[i].delete();
+ }
+ catch (Exception e0)
+ { }
+ } else {
+ FileTool.MkdirWithParents(mctrl, destFiles[i]);
+ }
+
+ try
+ {
+ fos[i] = new FileOutputStream(dstfils[i]);
+ }
+ catch (Exception e0)
+ {
+ fos[i] = null;
+
+ if(statustextarea!=null)
+ statustextarea.setText
+ (statustextarea.getText() +
+ "Cannot create file: " + destFiles[i] + "\n");
+ ok= false;
+ break; // breaks the beast ...
+ }
+ }
+
+ if(ok)
+ if(statustextarea!=null)
+ statustextarea.setText
+ (statustextarea.getText() +
+ "Installing source file: " + srcFile );
+
+ try
+ {
+ byte[] buf = new byte[4096];
+ int bytesread;
+ while (ok &&
+ (bytesread = zis.read(buf,0,buf.length)) >= 0
+ )
+ {
+ if (bytesread < 1) continue;
+ try
+ {
+ // Write the data to the destination files.
+ for (i = 0; ok && i < nFiles; i++)
+ {
+ if (fos[i] != null)
+ fos[i].write(buf,0,bytesread);
+ }
+ if(statustextarea!=null)
+ statustextarea.setText
+ (statustextarea.getText() + ".");
+ }
+ catch (Exception e0)
+ {
+ // We got a write error.
+
+ if(statustextarea!=null)
+ statustextarea.setText
+ (statustextarea.getText() +
+ "\nCannot write file: " + destFiles[i] +
+ "\n");
+
+ ok = false;
+ continue; // breaks the beast ...
+ }
+ }
+ }
+ catch (Exception e0)
+ { } // Should never happen!
+
+ if(statustextarea!=null)
+ statustextarea.setText
+ (statustextarea.getText() + "\n");
+
+ for (j = 0; j < i; j++)
+ {
+ if (fos[j] != null)
+ {
+ try
+ {
+ fos[j].close();
+ }
+ catch(Exception e1)
+ { }
+ }
+ if (!ok && dstfils[j] != null)
+ {
+ try
+ {
+ dstfils[j].delete();
+ }
+ catch (Exception e1)
+ { }
+ fos[j] = null;
+ }
+ }
+ }
+ }
+ }
+ catch (Exception e0)
+ { } // End of archive.
+
+ try
+ {
+ zis.close();
+ }
+ catch(Exception e1)
+ { }
+
+ if(!ok)
+ {
+ if(statustextarea!=null)
+ statustextarea.setText
+ (statustextarea.getText() +
+ "INSTALLATION INCOMPLETE !!\n"+
+ "Please check this log files for reasons !\n");
+ return false;
+ }
+
+ return true;
+ }
+
+ /**
+ * Copy srcFile from the remote directory pointed to by
+ * baseURL to the local path pointed to by destFile.
+ *
+ * If baseURL is null,
+ * an ordinary filecopy is used (Local Harddisk)
+ */
+ public static final boolean copyFileFromDir(MachineCtrl mctrl,
+ URL baseURL,
+ String srcFile, String destFile,
+ TextArea statustextarea)
+ {
+ URL srcURL = null;
+ InputStream is = null;
+ FileOutputStream fos = null;
+ File srcfil = null;
+ File dstfil = null;
+ boolean ok = true;
+
+ if (mctrl.isNetscapeJvm)
+ {
+ try
+ {
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalFileAccess");
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalExecAccess");
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalConnect");
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalFdRead");
+ }
+ catch (Exception e)
+ {
+ System.out.println
+ ("Netscape denied privileges, or a failure occurred.\n"+
+ "Here is the exception that was caught:\n"+e+"\n");
+ return false;
+ }
+ }
+ else if (mctrl.isMicrosoftJvm)
+ {
+ try
+ {
+ com.ms.security.PolicyEngine.assertPermission (com.ms.security.PermissionID.FILEIO);
+ com.ms.security.PolicyEngine.assertPermission
+ (com.ms.security.PermissionID.PROPERTY);
+ com.ms.security.PolicyEngine.assertPermission
+ (com.ms.security.PermissionID.SYSTEM);
+ }
+ catch (Exception e)
+ {
+ System.out.println
+ ("Microsoft VM denied privileges, or a failure occurred.\n"+
+ "Here is the exception that was caught:\n"+e+"\n");
+ return false;
+ }
+ }
+ try
+ {
+ if(baseURL!=null)
+ srcURL = new URL(baseURL.toString() + "/" + srcFile);
+ }
+ catch (Exception e)
+ {
+ if(statustextarea!=null)
+ statustextarea.setText
+ (statustextarea.getText() +
+ "Cannot get URL: " + baseURL.toString()+"/"+srcFile+"\n");
+ return false;
+ }
+
+ dstfil = new File(destFile);
+
+ // Open the source file.
+ try
+ {
+ if(srcURL!=null)
+ is = srcURL.openStream();
+ else {
+ srcfil = new File(srcFile);
+ is = new FileInputStream(srcfil);
+ }
+ }
+ catch (Exception e0)
+ {
+ if(statustextarea!=null)
+ statustextarea.setText
+ (statustextarea.getText() +
+ "Cannot open file: " + srcURL + "\n");
+ return false;
+ }
+
+ FileTool.MkdirWithParents(mctrl, destFile);
+
+ // If the destination file exists, attempt to
+ // delete it.
+ if (dstfil.exists())
+ {
+ try
+ {
+ dstfil.delete();
+ }
+ catch (Exception e0)
+ { }
+ }
+
+ // Create the destination file.
+ try
+ {
+ fos = new FileOutputStream(dstfil);
+ }
+ catch (Exception e0)
+ {
+ if(statustextarea!=null)
+ statustextarea.setText
+ (statustextarea.getText() +
+ "Cannot create file: " + destFile + "\n");
+ ok=false;
+ }
+
+ // Copy the data from the source to the destination.
+ try
+ {
+ byte[] buf = new byte[4096];
+ int bytesread;
+ while (ok && (bytesread = is.read(buf,0,buf.length)) >= 0)
+ {
+ if (bytesread < 1) continue;
+ try
+ {
+ // Write the data to the destination file.
+ fos.write(buf,0,bytesread);
+ }
+ catch (Exception e0)
+ {
+ // Write error.
+ if(statustextarea!=null)
+ statustextarea.setText
+ (statustextarea.getText() +
+ "Cannot write file: " + destFile + "\n");
+ ok = false;
+ }
+ }
+ }
+ catch (Exception e0)
+ { } // Should never happen!
+
+ try
+ {
+ if(is!=null)
+ is.close();
+ }
+ catch(Exception e1)
+ { }
+
+ try
+ {
+ if(fos!=null)
+ fos.close();
+ }
+ catch(Exception e1)
+ { }
+ try
+ {
+ if(!ok && dstfil!=null)
+ dstfil.delete();
+ }
+ catch(Exception e1)
+ { }
+
+ return ok;
+ }
+
+
+}
diff --git a/Installer/FilelistGL4JArchiv.java.skel b/Installer/FilelistGL4JArchiv.java.skel
new file mode 100644
index 0000000..6e31bfe
--- /dev/null
+++ b/Installer/FilelistGL4JArchiv.java.skel
@@ -0,0 +1,11 @@
+
+public class FilelistGL4JArchiv
+ implements FilelistOS
+{
+ public static final String version = "_MAJV_._MINV_._BUGV_._RELV_";
+
+ public static final String archiv = "../binpkg/gl4java_MAJV_._MINV_._BUGV_._RELV_-jar.zip" ;
+
+ public String getVersion() { return version; }
+ public String getArchiv() { return archiv; }
+}
diff --git a/Installer/FilelistGL4JClasses.java.skel b/Installer/FilelistGL4JClasses.java.skel
new file mode 100644
index 0000000..f86ac8a
--- /dev/null
+++ b/Installer/FilelistGL4JClasses.java.skel
@@ -0,0 +1,11 @@
+
+public class FilelistGL4JClasses
+ implements FilelistOS
+{
+ public static final String version = "_MAJV_._MINV_._BUGV_._RELV_";
+
+ public static final String archiv = "../binpkg/gl4java_MAJV_._MINV_._BUGV_._RELV_-classes.zip" ;
+
+ public String getVersion() { return version; }
+ public String getArchiv() { return archiv; }
+}
diff --git a/Installer/FilelistGLUTFontArchiv.java.skel b/Installer/FilelistGLUTFontArchiv.java.skel
new file mode 100644
index 0000000..c364758
--- /dev/null
+++ b/Installer/FilelistGLUTFontArchiv.java.skel
@@ -0,0 +1,11 @@
+
+public class FilelistGLUTFontArchiv
+ implements FilelistOS
+{
+ public static final String version = "_MAJV_._MINV_._BUGV_._RELV_";
+
+ public static final String archiv = "../binpkg/gl4java_MAJV_._MINV_._BUGV_._RELV_-glutfonts-jar.zip" ;
+
+ public String getVersion() { return version; }
+ public String getArchiv() { return archiv; }
+}
diff --git a/Installer/FilelistGLUTFontClasses.java.skel b/Installer/FilelistGLUTFontClasses.java.skel
new file mode 100644
index 0000000..82c1b4a
--- /dev/null
+++ b/Installer/FilelistGLUTFontClasses.java.skel
@@ -0,0 +1,11 @@
+
+public class FilelistGLUTFontClasses
+ implements FilelistOS
+{
+ public static final String version = "_MAJV_._MINV_._BUGV_._RELV_";
+
+ public static final String archiv = "../binpkg/gl4java_MAJV_._MINV_._BUGV_._RELV_-glutfonts-classes.zip" ;
+
+ public String getVersion() { return version; }
+ public String getArchiv() { return archiv; }
+}
diff --git a/Installer/FilelistHPUXPaRisc.java.skel b/Installer/FilelistHPUXPaRisc.java.skel
new file mode 100644
index 0000000..43f9b97
--- /dev/null
+++ b/Installer/FilelistHPUXPaRisc.java.skel
@@ -0,0 +1,11 @@
+
+public class FilelistHPUXPaRisc
+ implements FilelistOS
+{
+ public static final String version = "_MAJV_._MINV_._BUGV_._RELV_";
+
+ public static final String archiv = "../binpkg/libGL4Java_MAJV_._MINV_._BUGV_._RELV_-HPUX-b11-pa_risc.zip";
+
+ public String getVersion() { return version; }
+ public String getArchiv() { return archiv; }
+}
diff --git a/Installer/FilelistLinuxI386GlibcXF86.java.skel b/Installer/FilelistLinuxI386GlibcXF86.java.skel
new file mode 100644
index 0000000..fff686c
--- /dev/null
+++ b/Installer/FilelistLinuxI386GlibcXF86.java.skel
@@ -0,0 +1,11 @@
+
+public class FilelistLinuxI386GlibcXF86
+ implements FilelistOS
+{
+ public static final String version = "_MAJV_._MINV_._BUGV_._RELV_";
+
+ public static final String archiv = "../binpkg/libGL4Java_MAJV_._MINV_._BUGV_._RELV_-Linux-glibc2-xf86-x86.zip";
+
+ public String getVersion() { return version; }
+ public String getArchiv() { return archiv; }
+}
diff --git a/Installer/FilelistLinuxPPCGlibcXF86.java.skel b/Installer/FilelistLinuxPPCGlibcXF86.java.skel
new file mode 100644
index 0000000..1c655b5
--- /dev/null
+++ b/Installer/FilelistLinuxPPCGlibcXF86.java.skel
@@ -0,0 +1,11 @@
+
+public class FilelistLinuxPPCGlibcXF86
+ implements FilelistOS
+{
+ public static final String version = "_MAJV_._MINV_._BUGV_._RELV_";
+
+ public static final String archiv = "../binpkg/libGL4Java_MAJV_._MINV_._BUGV_._RELV_-Linux-glibc2-xf86-ppc.zip";
+
+ public String getVersion() { return version; }
+ public String getArchiv() { return archiv; }
+}
diff --git a/Installer/FilelistMacOSPPC.java.skel b/Installer/FilelistMacOSPPC.java.skel
new file mode 100644
index 0000000..c2b437d
--- /dev/null
+++ b/Installer/FilelistMacOSPPC.java.skel
@@ -0,0 +1,11 @@
+
+public class FilelistMacOSPPC
+ implements FilelistOS
+{
+ public static final String version = "_MAJV_._MINV_._BUGV_._RELV_";
+
+ public static final String archiv = "../binpkg/libGL4Java_MAJV_._MINV_._BUGV_._RELV_-MacOS-os9-ppc.zip";
+
+ public String getVersion() { return version; }
+ public String getArchiv() { return archiv; }
+}
diff --git a/Installer/FilelistOS.java b/Installer/FilelistOS.java
new file mode 100644
index 0000000..6210212
--- /dev/null
+++ b/Installer/FilelistOS.java
@@ -0,0 +1,6 @@
+
+public interface FilelistOS
+{
+ public String getVersion() ;
+ public String getArchiv() ;
+}
diff --git a/Installer/FilelistPNGArchiv.java b/Installer/FilelistPNGArchiv.java
new file mode 100644
index 0000000..211782f
--- /dev/null
+++ b/Installer/FilelistPNGArchiv.java
@@ -0,0 +1,11 @@
+
+public class FilelistPNGArchiv
+ implements FilelistOS
+{
+ public static final String version = "1.0a";
+
+ public static final String archiv = "../binpkg/png-1.0a-jar.zip";
+
+ public String getVersion() { return version; }
+ public String getArchiv() { return archiv; }
+}
diff --git a/Installer/FilelistPNGClasses.java b/Installer/FilelistPNGClasses.java
new file mode 100644
index 0000000..181b9d6
--- /dev/null
+++ b/Installer/FilelistPNGClasses.java
@@ -0,0 +1,11 @@
+
+public class FilelistPNGClasses
+ implements FilelistOS
+{
+ public static final String version = "1.0a";
+
+ public static final String archiv = "../binpkg/png-1.0a-classes.zip";
+
+ public String getVersion() { return version; }
+ public String getArchiv() { return archiv; }
+}
diff --git a/Installer/FilelistSGIIrix62Mips.java.skel b/Installer/FilelistSGIIrix62Mips.java.skel
new file mode 100644
index 0000000..6a176e9
--- /dev/null
+++ b/Installer/FilelistSGIIrix62Mips.java.skel
@@ -0,0 +1,11 @@
+
+public class FilelistSGIIrix62Mips
+ implements FilelistOS
+{
+ public static final String version = "_MAJV_._MINV_._BUGV_._RELV_";
+
+ public static final String archiv = "../binpkg/libGL4Java_MAJV_._MINV_._BUGV_._RELV_-SGI-IRIX-65-mips.zip";
+
+ public String getVersion() { return version; }
+ public String getArchiv() { return archiv; }
+}
diff --git a/Installer/FilelistSUNSolaris26Sparc.java.skel b/Installer/FilelistSUNSolaris26Sparc.java.skel
new file mode 100644
index 0000000..363adf6
--- /dev/null
+++ b/Installer/FilelistSUNSolaris26Sparc.java.skel
@@ -0,0 +1,11 @@
+
+public class FilelistSUNSolaris26Sparc
+ implements FilelistOS
+{
+ public static final String version = "_MAJV_._MINV_._BUGV_._RELV_";
+
+ public static final String archiv = "../binpkg/libGL4Java_MAJV_._MINV_._BUGV_._RELV_-SUNOS-57-sparc.zip";
+
+ public String getVersion() { return version; }
+ public String getArchiv() { return archiv; }
+}
diff --git a/Installer/FilelistTool.java b/Installer/FilelistTool.java
new file mode 100644
index 0000000..d0cd715
--- /dev/null
+++ b/Installer/FilelistTool.java
@@ -0,0 +1,66 @@
+
+public class FilelistTool
+{
+ public static final FilelistOS GetMyInstance(MachineCtrl mctrl)
+ {
+ if(mctrl==null)
+ return null;
+ if(mctrl.isWin32)
+ {
+ if(mctrl.osArch.indexOf("x86")>=0)
+ {
+ return new FilelistWin32I386();
+ }
+ return null;
+ }
+ if(mctrl.isUnix)
+ {
+ if(mctrl.unixFlavor==mctrl.unixFlavor_Linux)
+ {
+ if(mctrl.osArch.indexOf("x86")>=0 ||
+ mctrl.osArch.indexOf("i86")>=0 ||
+ mctrl.osArch.indexOf("i686")>=0 ||
+ mctrl.osArch.indexOf("i586")>=0 ||
+ mctrl.osArch.indexOf("i486")>=0 ||
+ mctrl.osArch.indexOf("i386")>=0
+ )
+ {
+ System.out.println("GLVendor: "+mctrl.glVendor);
+ if(mctrl.glVendor!=null)
+ {
+ if(mctrl.glVendor.indexOf("generic")>=0)
+ return new FilelistLinuxI386GlibcXF86();
+ }
+ return new FilelistLinuxI386GlibcXF86();
+ } else if(mctrl.osArch.indexOf("ppc")>=0)
+ {
+ System.out.println("GLVendor: "+mctrl.glVendor);
+ if(mctrl.glVendor!=null)
+ {
+ if(mctrl.glVendor.indexOf("generic")>=0)
+ return new FilelistLinuxPPCGlibcXF86();
+ }
+ return new FilelistLinuxPPCGlibcXF86();
+ }
+ } else if(mctrl.unixFlavor==mctrl.unixFlavor_Solaris)
+ {
+ if(mctrl.osArch.indexOf("sparc")>=0)
+ return new FilelistSUNSolaris26Sparc();
+ } else if(mctrl.unixFlavor==mctrl.unixFlavor_Irix)
+ {
+ if(mctrl.osArch.indexOf("mips")>=0)
+ return new FilelistSGIIrix62Mips();
+ } else if(mctrl.unixFlavor==mctrl.unixFlavor_HPUX)
+ {
+ if(mctrl.osArch.indexOf("pa_risc")>=0)
+ return new FilelistHPUXPaRisc();
+ }
+ }
+ if(mctrl.isMacOs)
+ {
+ if(mctrl.osArch.indexOf("powerpc")>=0)
+ return new FilelistMacOSPPC();
+ }
+ return null;
+ }
+}
diff --git a/Installer/FilelistWin32I386.java.skel b/Installer/FilelistWin32I386.java.skel
new file mode 100644
index 0000000..0b10312
--- /dev/null
+++ b/Installer/FilelistWin32I386.java.skel
@@ -0,0 +1,11 @@
+
+public class FilelistWin32I386
+ implements FilelistOS
+{
+ public String version = "_MAJV_._MINV_._BUGV_._RELV_";
+
+ public String archiv = "../binpkg/libGL4Java_MAJV_._MINV_._BUGV_._RELV_-Win32-x86.zip";
+
+ public String getVersion() { return version; }
+ public String getArchiv() { return archiv; }
+}
diff --git a/Installer/FilelistWin95I386OpenGL.java b/Installer/FilelistWin95I386OpenGL.java
new file mode 100644
index 0000000..d3ccd68
--- /dev/null
+++ b/Installer/FilelistWin95I386OpenGL.java
@@ -0,0 +1,11 @@
+
+public class FilelistWin95I386OpenGL
+ implements FilelistOS
+{
+ public String version = "opengl95";
+
+ public String archiv = "../binpkg/libOpenGL1.2-Win95-i386.zip";
+
+ public String getVersion() { return version; }
+ public String getArchiv() { return archiv; }
+}
diff --git a/Installer/GL4JInst.html b/Installer/GL4JInst.html
new file mode 100644
index 0000000..b84fd7e
--- /dev/null
+++ b/Installer/GL4JInst.html
@@ -0,0 +1,24 @@
+<HTML>
+<HEAD>
+<title>GL4Java Installation</title>
+
+<SCRIPT LANGUAGE="JavaScript">
+function do_redirect()
+{
+ var ua = navigator.userAgent;
+ if (ua.indexOf("MSIE") >= 0)
+ {
+ window.location.replace("GL4JInst_ie_check.html");
+ }
+ else
+ {
+ window.location.replace("GL4JInst_cacert_ns.html");
+ }
+}
+</SCRIPT>
+
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff" onLoad="do_redirect()">
+GL4Java Installation
+</BODY>
+</HTML>
diff --git a/Installer/GL4JInst.java b/Installer/GL4JInst.java
new file mode 100644
index 0000000..d29f16c
--- /dev/null
+++ b/Installer/GL4JInst.java
@@ -0,0 +1,730 @@
+/**
+ * @(#) GL4JInst.java
+ * @(#) author: Ronald B. Cemer, Sven Goethel
+ * @(#) copyright: Copyright (c) 1999 Ronald B. Cemer under GNU GPL
+ * @(#) version: 2.00
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.io.*;
+import java.net.*;
+import java.util.*;
+import java.util.zip.*;
+import java.lang.reflect.*;
+
+public class GL4JInst
+ extends Applet
+ implements Runnable, WindowListener, ActionListener
+{
+ boolean isAnApplet = true;
+ URL codeBase = null;
+
+ static private final String gl4javaWWW =
+ "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/Installer";
+
+ static private final String version = "2.04";
+
+ static private final String cannot_install_title =
+ "Cannot install GL4Java";
+ static private final String gl4java_not_installed_string =
+ "*** GL4Java INSTALLATION HAS FAILED ***";
+
+ // Status display:
+ private TextArea statustextarea = null;
+
+ // Popup window:
+ private Frame errorframe = null;
+ private TextArea errortextarea = null;
+ private Button errorokbutton = null;
+
+ Button bFinish = null;
+
+ // Misc:
+ private Thread myThread = null;
+ private String archive = null;
+ private String gl4j_archive = null;
+ private String glutfont_archive = null;
+ private boolean install_opengl = false;
+ private String opengl_archive = null;
+ private String png_archive = null;
+ private String gl_lib = null;
+ private String glu_lib = null;
+ private Vector lib_dir_list = null;
+ private String targetDirs[] = null;
+ private URL gl4javaURL = null;
+ private URL sourceURL = null;
+ private boolean initfailed = false;
+ private String initfailedreason = null;
+ private String tryrefresh = new String("");;
+
+ private MachineCtrl mctrl = null;
+
+ private String errstr = null;
+ boolean ok=true;
+
+ FilelistOS osFileLists = null;
+ FilelistWin95I386OpenGL osFileWin95OpenGL = new FilelistWin95I386OpenGL();
+ FilelistGL4JClasses fileGL4JClasses= new FilelistGL4JClasses();
+ FilelistGL4JArchiv fileGL4JArchiv= new FilelistGL4JArchiv();
+ FilelistGLUTFontClasses fileGLUTFontClasses= new FilelistGLUTFontClasses();
+ FilelistGLUTFontArchiv fileGLUTFontArchiv= new FilelistGLUTFontArchiv();
+ FilelistPNGClasses filePNGClasses= new FilelistPNGClasses();
+ FilelistPNGArchiv filePNGArchiv= new FilelistPNGArchiv();
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ // Create the status text area.
+ setLayout(new BorderLayout());
+ statustextarea = new TextArea();
+ statustextarea.setEditable(false);
+ statustextarea.setLocation(0,0);
+ statustextarea.setSize(getSize().width,getSize().height);
+ add("Center", statustextarea);
+ if(!isAnApplet)
+ {
+ bFinish = new Button("Quit");
+ bFinish.setActionCommand("quit");
+ bFinish.addActionListener(this);
+ add("South", bFinish);
+ try {
+ String current_dir = System.getProperty("user.dir");
+ if(current_dir!=null)
+ {
+ current_dir=current_dir.replace('\\','/');
+ if(!current_dir.endsWith("/"))
+ current_dir=current_dir+"/";
+ if(!current_dir.startsWith("/"))
+ current_dir="/"+current_dir;
+ codeBase = new URL ("file://"+current_dir);
+ gl4javaURL = new URL (gl4javaWWW);
+ }
+ } catch (Exception e) {
+ System.out.println("could not convert the current directory to a code-base !\n"+e);
+ }
+ } else {
+ codeBase = getCodeBase();
+ }
+
+ mctrl = new MachineCtrl("GL4Java Installation");
+ ok = mctrl.isError()==false;
+
+ if(!ok)
+ {
+ errstr=mctrl.errstr;
+ statustextarea.setText
+ (statustextarea.getText() + errstr +"\n");
+ return;
+ }
+ }
+
+
+ public void start()
+ {
+ if (!ok)
+ {
+ statustextarea.setText
+ (statustextarea.getText() + mctrl.errstr +"\n");
+ return;
+ }
+ mctrl.enablePrivilege();
+ if(mctrl.isError())
+ {
+ statustextarea.setText
+ (statustextarea.getText() + mctrl.errstr +"\n");
+ mctrl.clearError();
+ }
+ mctrl.fetchPrivilegedInfos();
+ if(mctrl.isError())
+ {
+ statustextarea.setText
+ (statustextarea.getText() + mctrl.errstr +"\n");
+ mctrl.clearError();
+ }
+ osFileLists = FilelistTool.GetMyInstance(mctrl);
+ if(osFileLists==null)
+ {
+ statustextarea.setText
+ (statustextarea.getText() +
+ "No Package Found for:\n"+
+ "Java VM vendor is: " + mctrl.jvmVendor + "\n" +
+ "OS: "+
+ mctrl.osName+" "+mctrl.osVersion+" "+mctrl.osArch+"\n");
+ ok=false;
+ } else {
+
+ String[] descrText = {
+ "GL4Java Installer Version "+ getAppletInfo(),
+ "GL4Java Classes Version "+FilelistGL4JClasses.version,
+ "GL4Java Native-Libs Version "+osFileLists.getVersion(),
+ "------------------------------------------------------------"};
+
+ mctrl.machineOptionWindow(this, descrText, "Start Installation",
+ (isAnApplet==true)?this:null);
+
+ if(mctrl.isError())
+ {
+ statustextarea.setText
+ (statustextarea.getText() + mctrl.errstr +"\n");
+ mctrl.clearError();
+ }
+ }
+ }
+
+ public void startInstallation()
+ {
+ if (!ok)
+ {
+ statustextarea.setText
+ (statustextarea.getText() + mctrl.errstr +"\n");
+ return;
+ }
+ osFileLists = FilelistTool.GetMyInstance(mctrl);
+ if(osFileLists==null)
+ {
+ statustextarea.setText
+ (statustextarea.getText() +
+ "No Package Found for:\n"+
+ "Java VM vendor is: " + mctrl.jvmVendor + "\n" +
+ "OS: "+
+ mctrl.osName+" "+mctrl.osVersion+" "+mctrl.osArch+"\n");
+ ok=false;
+ }
+ myThread = new Thread(this);
+ myThread.start();
+ }
+
+
+ public void stop()
+ {
+ // Don't stop until we're done.
+ while (myThread != null)
+ {
+ try
+ {
+ Thread.currentThread().sleep(100);
+ }
+ catch (Exception e)
+ { }
+ }
+ }
+
+
+ public void destroy()
+ {
+ }
+
+
+ public String getAppletInfo()
+ {
+ return version + " (c) 1999 Ronald B. Cemer & Sven Goethel";
+ }
+
+
+ public String[][] getParameterInfo()
+ {
+ String s[][] =
+ {
+ { "sourcedir", "URL", "directory containing installable files (overrides default zip files)" },
+ };
+ return s;
+ }
+
+
+ /* This is the run() method of the
+ thread which does the actual work. */
+
+
+ public void run()
+ {
+
+ if(ok)
+ {
+
+ Cursor oldCursor = getCursor();
+ setCursor(new Cursor(Cursor.WAIT_CURSOR));
+
+ // Initialize values for replaceable strings.
+ statustextarea.setText
+ (statustextarea.getText() +
+ "GL4Java Installer Version "+ getAppletInfo()+"\n"+
+ "GL4Java Classes Version "+FilelistGL4JClasses.version+"\n"+
+ "GL4Java Native-Libs Version "+osFileLists.getVersion()+"\n\n");
+
+ // Check for existence of GL and GLU libraries.
+ String fixstring = "";
+ lib_dir_list = new Vector();
+ if (mctrl.isWin32)
+ {
+ gl_lib = "OPENGL32.DLL";
+ glu_lib = "GLU32.DLL";
+ if (mctrl.os_lib_dir != null)
+ lib_dir_list.addElement(new String(mctrl.os_lib_dir));
+ fixstring =
+ "\n" +
+ "\n" +
+ "If you are running the first release of Windows 95, your\n" +
+ "system may not have OpenGL functionality. You can download\n" +
+ "OpenGL from the following URL:\n" +
+ " ftp://ftp.microsoft.com/softlib/MSLFILES/OPENGL95.EXE\n" +
+ "Be sure to save the file to an empty directory, then extract\n" +
+ "its contents using WinZip or another zip extractor, then copy\n" +
+ "the OPENGL32.DLL and GLU32.DLL files into your WINDOWS\\SYSTEM\n" +
+ "directory. Then return to this web page and run the GL4Java\n" +
+ "installation again.\n" +
+ "\n" +
+ "If you are running NT 4.0, you must have Service Pack 3 or\n" +
+ "later installed in order for your system to support OpenGL.\n" +
+ "NT 4.0 service packs can be downloaded from:\n" +
+ " www.microsoft.com/downloads\n";
+ }
+ else if (mctrl.isMacOs)
+ {
+ // TODO !!!
+ gl_lib = "GL.DLL";
+ glu_lib = "GLU.DLL";
+ if (mctrl.os_lib_dir != null)
+ lib_dir_list.addElement(new String(mctrl.os_lib_dir));
+ fixstring =
+ "\n" +
+ "\n" +
+ "Your system does not appear to have OpenGL functionality.\n" +
+ "You can download OpenGL for the Macintosh from the following URL:\n" +
+ " http://www.apple.com/opengl/\n" +
+ "Follow their installation instructions to install OpenGL.\n" +
+ "Then return to this web page and run the GL4Java installation\n" +
+ "again.";
+ }
+ else if (mctrl.isUnix)
+ {
+ gl_lib = "libGL.so";
+ glu_lib = "libGLU.so";
+ lib_dir_list.addElement(new String("/lib"));
+ lib_dir_list.addElement(new String("/usr/lib"));
+ lib_dir_list.addElement(new String("/usr/X11/lib"));
+ lib_dir_list.addElement(new String("/usr/X11R6/lib"));
+ lib_dir_list.addElement(new String("/usr/local/lib"));
+ fixstring =
+ "\n" +
+ "\n" +
+ "Your system does not appear to have OpenGL functionality.\n" +
+ "You can probably find a version of Mesa3D (a free OpenGL\n" +
+ "clone) at the following URL:\n" +
+ " http://www.mesa3d.org/\n" +
+ "Follow their installation instructions to install Mesa3D.\n" +
+ "Then return to this web page and run the GL4Java installation\n" +
+ "again.";
+ }
+
+ if ( (ok)
+ && (gl_lib != null)
+ && (gl_lib.length() > 0)
+ && (lib_dir_list != null)
+ && (lib_dir_list.size() > 0) )
+ {
+ if (!FileTool.libraryExists(mctrl,gl_lib,lib_dir_list))
+ {
+ if (mctrl.isWin95)
+ install_opengl = true;
+ else
+ {
+ ok = false;
+ statustextarea.setText
+ (statustextarea.getText() +
+ cannot_install_title+"\n"+
+ "GL4Java cannot be installed because\n" +
+ "the OpenGL library:\n" +
+ " " + gl_lib + "\n" +
+ "cannot be found." + fixstring);
+ return;
+ }
+ }
+ }
+
+ if ( (ok)
+ && (glu_lib != null)
+ && (glu_lib.length() > 0)
+ && (lib_dir_list != null)
+ && (lib_dir_list.size() > 0) )
+ {
+ if (!FileTool.libraryExists(mctrl,glu_lib,lib_dir_list))
+ {
+ if (mctrl.isWin95)
+ install_opengl = true;
+ else
+ {
+ ok = false;
+ statustextarea.setText
+ (statustextarea.getText() +
+ "GL4Java cannot be installed because\n" +
+ "the GLU library:\n" +
+ " " + glu_lib + "\n" +
+ "cannot be found." + fixstring);
+ return;
+ }
+ }
+ }
+ setCursor(oldCursor);
+ }
+
+ if (ok)
+ {
+ statustextarea.setText
+ (statustextarea.getText() +
+ "done.\n" +
+ "Java VM vendor is: " + mctrl.jvmVendor + "\n" +
+ "OS: "+
+ mctrl.osName+" "+mctrl.osVersion+" "+mctrl.osArch+"\n");
+ statustextarea.setText
+ (statustextarea.getText() +
+ "Classes will be installed to: " +
+ mctrl.browser_classes + "\n");
+ statustextarea.setText
+ (statustextarea.getText() +
+ "Native libraries will be installed to: " +
+ mctrl.browser_natives +"\n");
+
+ if (mctrl.isWin32)
+ {
+ if (mctrl.isWin95)
+ {
+ opengl_archive = osFileWin95OpenGL.getArchiv() ;
+ }
+ if(mctrl.isMicrosoftJvm)
+ {
+ gl4j_archive = fileGL4JClasses.getArchiv();
+ glutfont_archive = fileGLUTFontClasses.getArchiv();
+ png_archive = filePNGClasses.getArchiv();
+ } else {
+ gl4j_archive = fileGL4JArchiv.getArchiv();
+ glutfont_archive = fileGLUTFontArchiv.getArchiv();
+ png_archive = filePNGArchiv.getArchiv();
+ }
+ } else {
+ gl4j_archive = fileGL4JArchiv.getArchiv();
+ glutfont_archive = fileGLUTFontArchiv.getArchiv();
+ png_archive = filePNGArchiv.getArchiv();
+ }
+ archive = osFileLists.getArchiv();
+
+
+ // Install OpenGL if needed.
+
+ if ( ok
+ && (install_opengl)
+ && (opengl_archive != null)
+ && (opengl_archive.length() > 0) )
+ {
+ if(!isAnApplet && !FileTool.fileExists(mctrl, opengl_archive))
+ {
+ statustextarea.setText
+ (statustextarea.getText() +
+ "Getting File(s): OpenGL for Win95\n");
+
+ ok = FileTool.copyFileFromDir(mctrl,
+ gl4javaURL,
+ opengl_archive, opengl_archive,
+ statustextarea);
+ }
+ if(ok)
+ {
+ statustextarea.setText
+ (statustextarea.getText() +
+ "Install OpenGL for Win95\n");
+ try
+ {
+ sourceURL = new URL(codeBase,opengl_archive);
+ }
+ catch (Exception e)
+ {
+ ok=false;
+ statustextarea.setText
+ (statustextarea.getText() +
+ "File does not exist: "+codeBase+","+opengl_archive+" !\n");
+ }
+ }
+ if(ok)
+ {
+ targetDirs = new String[1];
+ targetDirs[0] = mctrl.os_lib_dir;
+ ok = FileTool.copyFilesFromZip
+ (mctrl, sourceURL, targetDirs, statustextarea);
+ }
+ }
+
+ // Now install the GL4Java files.
+
+ if ( ok
+ && (gl4j_archive != null)
+ && (gl4j_archive.length() > 0) )
+ {
+ if(!isAnApplet && !FileTool.fileExists(mctrl, gl4j_archive))
+ {
+ statustextarea.setText
+ (statustextarea.getText() +
+ "Getting File(s): GL4Java Java Classes\n");
+
+ ok = FileTool.copyFileFromDir(mctrl,
+ gl4javaURL,
+ gl4j_archive, gl4j_archive,
+ statustextarea);
+ }
+ if(ok)
+ {
+ statustextarea.setText
+ (statustextarea.getText() +
+ "Install GL4Java Java Classes\n");
+ try
+ {
+ sourceURL = new URL(codeBase,gl4j_archive);
+ }
+ catch (Exception e)
+ {
+ ok=false;
+ statustextarea.setText
+ (statustextarea.getText() +
+ "File does not exist: "+codeBase+","+gl4j_archive+" !\n");
+ }
+ }
+ if(ok)
+ {
+ targetDirs = new String[1];
+ targetDirs[0] = mctrl.browser_classes;
+ ok = FileTool.copyFilesFromZip
+ (mctrl, sourceURL, targetDirs,statustextarea);
+ }
+ }
+
+ if ( ok
+ && mctrl.installGLUTFontSupport
+ && (glutfont_archive != null)
+ && (glutfont_archive.length() > 0) )
+ {
+ if(!isAnApplet && !FileTool.fileExists(mctrl, glutfont_archive))
+ {
+ statustextarea.setText
+ (statustextarea.getText() +
+ "Getting File(s): GL4Java GLUT-FONT Java Classes\n");
+
+ ok = FileTool.copyFileFromDir(mctrl,
+ gl4javaURL,
+ glutfont_archive, glutfont_archive,
+ statustextarea);
+ }
+ if(ok)
+ {
+ statustextarea.setText
+ (statustextarea.getText() +
+ "Install GL4Java GLUT-FONT Java Classes\n");
+ try
+ {
+ sourceURL = new URL(codeBase,glutfont_archive);
+ }
+ catch (Exception e)
+ {
+ ok=false;
+ statustextarea.setText
+ (statustextarea.getText() +
+ "File does not exist: "+codeBase+","+glutfont_archive+" !\n");
+ }
+ }
+ if(ok)
+ {
+ targetDirs = new String[1];
+ targetDirs[0] = mctrl.browser_classes;
+ ok = FileTool.copyFilesFromZip
+ (mctrl, sourceURL, targetDirs,statustextarea);
+ }
+ }
+
+ if ( ok
+ && (png_archive != null)
+ && (png_archive.length() > 0) )
+ {
+ if(!isAnApplet && !FileTool.fileExists(mctrl, png_archive))
+ {
+ statustextarea.setText
+ (statustextarea.getText() +
+ "Getting File(s): PNG Java Classes\n");
+
+ ok = FileTool.copyFileFromDir(mctrl,
+ gl4javaURL,
+ png_archive, png_archive,
+ statustextarea);
+ }
+ if(ok)
+ {
+ statustextarea.setText
+ (statustextarea.getText() +
+ "Install PNG Java Classes\n");
+ try
+ {
+ sourceURL = new URL(codeBase,png_archive);
+ }
+ catch (Exception e)
+ {
+ ok=false;
+ statustextarea.setText
+ (statustextarea.getText() +
+ "File does not exist: "+codeBase+","+png_archive+" !\n");
+ }
+ }
+ if(ok)
+ {
+ targetDirs = new String[1];
+ targetDirs[0] = mctrl.browser_classes;
+ ok = FileTool.copyFilesFromZip
+ (mctrl, sourceURL, targetDirs,statustextarea);
+ }
+ }
+
+ if ( ok
+ && (archive != null)
+ && (archive.length() > 0) )
+ {
+ if(!isAnApplet && !FileTool.fileExists(mctrl, archive))
+ {
+ statustextarea.setText
+ (statustextarea.getText() +
+ "Getting File(s): GL4Java Native Libs\n");
+
+ ok = FileTool.copyFileFromDir(mctrl,
+ gl4javaURL,
+ archive, archive,
+ statustextarea);
+ }
+ if(ok)
+ {
+ statustextarea.setText
+ (statustextarea.getText() +
+ "Install GL4Java Native Libs\n");
+ try
+ {
+ sourceURL = new URL(codeBase,archive);
+ }
+ catch (Exception e)
+ {
+ ok=false;
+ statustextarea.setText
+ (statustextarea.getText() +
+ "File does not exist: "+codeBase+","+archive+" !\n");
+ }
+ }
+ if(ok)
+ {
+ targetDirs = new String[1];
+ targetDirs[0] = mctrl.browser_natives;
+ ok = FileTool.copyFilesFromZip
+ (mctrl, sourceURL, targetDirs,statustextarea);
+ }
+ }
+ } else {
+ statustextarea.setText
+ (statustextarea.getText() +
+ "GL4Java cannot be installed because\n" +
+ "your combination of browser, Java Virtual\n" +
+ "Machine and operating system may not currently.\n" +
+ "supported.\n" +
+ "\n" +
+ "Operating system: " + mctrl.osName + "\n" +
+ "Java VM vendor..: " + mctrl.jvmVendor + "\n" +
+ gl4java_not_installed_string);
+ }
+
+ statustextarea.setText
+ (statustextarea.getText() +
+ (ok==false ? "*** INSTALLATION FAILED ***\n" : "done.\n"));
+
+ if (ok)
+ {
+ statustextarea.setText
+ (statustextarea.getText() +
+ "The GL4Java libraries have been\n" +
+ "successfully installed on your\n" +
+ "system.\n" +
+ "\n" +
+ "Please restart your browser!\n"+
+ "\n" +
+ "You should now be able to run 3D web\n" +
+ "applets which use GL4Java.");
+ if(isAnApplet)
+ showStatus("Installation complete! Please restart your browser!");
+ } else if(isAnApplet)
+ showStatus("Installation failed!");
+
+ myThread = null;
+ }
+
+ public void windowActivated(WindowEvent e)
+ {
+ }
+
+ public void windowClosed(WindowEvent e)
+ {
+ }
+
+ public void windowClosing(WindowEvent e)
+ {
+ }
+
+ public void windowDeactivated(WindowEvent e)
+ {
+ }
+
+ public void windowDeiconified(WindowEvent e)
+ {
+ }
+
+ public void windowIconified(WindowEvent e)
+ {
+ }
+
+ public void windowOpened(WindowEvent e)
+ {
+ }
+
+ /* ActionListener methods used to kill errorframe and its contents: */
+
+ public void actionPerformed(ActionEvent e)
+ {
+ if (e.getActionCommand().equals("quit"))
+ {
+ stop();
+ if(myThread == null && !isAnApplet)
+ if(mctrl!=null && mctrl.dialog==null)
+ System.exit(0);
+
+ }
+ if (e.getActionCommand().equals("Start Installation"))
+ {
+ if(mctrl.dialog!=null)
+ {
+ mctrl.dialog.setVisible(false);
+ mctrl.dialog.dispose();
+ mctrl.dialog=null;
+ }
+ startInstallation();
+ }
+ }
+
+ public static void main( String args[] )
+ {
+ Frame mainFrame = new Frame("GL4Java Installation");
+
+ GL4JInst applet = new GL4JInst();
+
+ applet.isAnApplet=false;
+ applet.setSize(400, 600);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ }
+}
diff --git a/Installer/GL4JInst_cacert_ns.html b/Installer/GL4JInst_cacert_ns.html
new file mode 100644
index 0000000..8601bc6
--- /dev/null
+++ b/Installer/GL4JInst_cacert_ns.html
@@ -0,0 +1,58 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>GL4Java installation</title>
+<script LANGUAGE="JavaScript">
+function do_redirect()
+{
+ var ua = navigator.userAgent;
+ if (ua.indexOf("MSIE") >= 0)
+ {
+ window.location.replace("GL4JInst_ie_check.html");
+ }
+}
+</script>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff" onLoad="do_redirect()">
+<B> Warning ! New certificate ! </B>
+<br>
+Before you can begin the GL4Java installation under
+Netscape, you must first must:
+<br>&nbsp;&nbsp;&nbsp;<b>- delete the old certificate and</b>
+<br>&nbsp;&nbsp;&nbsp;<b>- re-import the new signing certificate.</b>
+<br>
+<br>
+To delete the old certificate, open the Netscape dialog:
+<br>&nbsp;&nbsp;&nbsp;<I>Communicator.Tools.Security</I>
+<br>Then click on <I>Certificates.Signers</I> and delete the old GL4Java
+certificate !
+<br>
+<br>
+The certificate enables
+the GL4Java installer to install the required GL4Java software components
+on your system.
+<br>
+<p><b>Import the signing certificate</b>, while using the link below.
+<p>A dialog box will pop up.
+<br>
+<p>When the "Accept this Certificate Authority for Certifying software
+developers" box comes up:
+<br>&nbsp;&nbsp;&nbsp; BE SURE THIS BOX CONTAINS A CHECK MARK.&nbsp; FAILURE
+TO PUT A CHECK MARK IN
+<br>&nbsp;&nbsp;&nbsp; THIS BOX WILL RESULT IN FAILURE TO INSTALL THE GL4JAVA
+LIBRARIES.
+<p>When the "Warn me before sending information to sites certified by this
+Certificate Authority" box comes up:
+<br>&nbsp;&nbsp;&nbsp; BE SURE THIS BOX CONTAINS A CHECK MARK.&nbsp; THIS
+IS AN EXTRA SECURITY PRECAUTION.
+<p>When asked for a name, enter the following name, exactly as shown: GL4Java
+<br>
+<p><b><a href="x509.crt">Click here to import the signing certificate.</a> Sat Aug 19, 2000 - Sun Nov 19, 2000 </b>
+<br>
+<p>After you have imported the certificate, <b><a href="GL4JInst_ns.html">Click
+here to begin the GL4Java installation.</a></b>
+<br>&nbsp;
+</body>
+</html>
diff --git a/Installer/GL4JInst_f13plugin.html b/Installer/GL4JInst_f13plugin.html
new file mode 100644
index 0000000..fc8da8c
--- /dev/null
+++ b/Installer/GL4JInst_f13plugin.html
@@ -0,0 +1,44 @@
+<HTML>
+<HEAD>
+<TITLE>GL4Java installation</TITLE>
+
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 500 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "GL4JInst.class" ARCHIVE = "GL4JInstaller.jar" WIDTH = 500 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "GL4JInst.class" ARCHIVE = "GL4JInstaller.jar" WIDTH = 500 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "GL4JInst.class" >
+<PARAM NAME = ARCHIVE VALUE = "GL4JInstaller.jar" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "GL4JInst.class" ARCHIVE = "GL4JInstaller.jar" WIDTH = 500 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</BODY>
+</HTML>
diff --git a/Installer/GL4JInst_fie.html b/Installer/GL4JInst_fie.html
new file mode 100644
index 0000000..c431d08
--- /dev/null
+++ b/Installer/GL4JInst_fie.html
@@ -0,0 +1,13 @@
+<HTML>
+<HEAD>
+<TITLE>GL4Java installation</TITLE>
+
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<applet code="GL4JInst.class" width=500 height=400>
+<param name="cabbase" value="GL4JInst.cab">
+</applet>
+<hr>
+</BODY>
+</HTML>
diff --git a/Installer/GL4JInst_fns.html b/Installer/GL4JInst_fns.html
new file mode 100644
index 0000000..b1629b0
--- /dev/null
+++ b/Installer/GL4JInst_fns.html
@@ -0,0 +1,12 @@
+<HTML>
+<HEAD>
+<TITLE>GL4Java installation</TITLE>
+
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<applet code="GL4JInst.class" archive="GL4JInst_ns.jar" width=500 height=400>
+</applet>
+<hr>
+</BODY>
+</HTML>
diff --git a/Installer/GL4JInst_fstd.html b/Installer/GL4JInst_fstd.html
new file mode 100644
index 0000000..0859955
--- /dev/null
+++ b/Installer/GL4JInst_fstd.html
@@ -0,0 +1,12 @@
+<HTML>
+<HEAD>
+<TITLE>GL4Java installation</TITLE>
+
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<applet code="GL4JInst.class" archive="GL4JInstaller.jar" width=500 height=400>
+</applet>
+<hr>
+</BODY>
+</HTML>
diff --git a/Installer/GL4JInst_ie.html b/Installer/GL4JInst_ie.html
new file mode 100644
index 0000000..3e16a81
--- /dev/null
+++ b/Installer/GL4JInst_ie.html
@@ -0,0 +1,24 @@
+<HTML>
+<HEAD>
+<TITLE>GL4Java installation</TITLE>
+
+<SCRIPT LANGUAGE="JavaScript">
+function do_redirect()
+{
+ var ua = navigator.userAgent;
+ if (ua.indexOf("MSIE") < 0)
+ {
+ window.location.replace("GL4JInst_cacert_ns.html");
+ }
+}
+</SCRIPT>
+
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff" onLoad="do_redirect()">
+<hr>
+<applet code="GL4JInst.class" width=500 height=400>
+<param name="cabbase" value="GL4JInst.cab">
+</applet>
+<hr>
+</BODY>
+</HTML>
diff --git a/Installer/GL4JInst_ie_check.html b/Installer/GL4JInst_ie_check.html
new file mode 100644
index 0000000..40e18f9
--- /dev/null
+++ b/Installer/GL4JInst_ie_check.html
@@ -0,0 +1,41 @@
+<HTML>
+<HEAD>
+<TITLE>GL4Java installation</TITLE>
+
+<SCRIPT LANGUAGE="JavaScript">
+function do_redirect()
+{
+ var ua = navigator.userAgent;
+ if (ua.indexOf("MSIE") < 0)
+ {
+ window.location.replace("GL4JInst_cacert_ns.html");
+ }
+}
+</SCRIPT>
+
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff" onLoad="do_redirect()">
+<hr>
+<p><u>For Win32 &amp; InternetExplorer Users Only</u></center>
+Be sure to have the MS-JavaVirtualMachine build 3186 or later installed !
+<br>
+<br>If you have java enabled, please have a look in the applet field below !!
+<br>
+<br>Otherwise check your Java Console (under the View menu) -
+<br>it should say something like
+<br>"Microsoft (R) VM for Java, 5.0 Release 5.0.0.3186".
+<br>If the last four digits are 3186 or above, you are fine.
+<br>
+<br>Get the new JVM direct from the Microsoft-Webside, if necessary:
+<br><br><a href="http://www.microsoft.com/java/vm/dl_vm40.htm">http://www.microsoft.com/java/vm/dl_vm40.htm</a>.
+<br><a href="http://www.microsoft.com/java/">http://www.microsoft.com/java/</a>.
+<hr>
+<applet code="MSJVMVersionApplet.class" width=500 height=100>
+</applet>
+<hr>
+<br>
+<p>If your MS-JVM version is fine, <b><a href="GL4JInst_ie.html">Click
+here to begin the GL4Java installation.</a></b>
+<br>&nbsp;
+</BODY>
+</HTML>
diff --git a/Installer/GL4JInst_ns.html b/Installer/GL4JInst_ns.html
new file mode 100644
index 0000000..dc3df6f
--- /dev/null
+++ b/Installer/GL4JInst_ns.html
@@ -0,0 +1,23 @@
+<HTML>
+<HEAD>
+<TITLE>GL4Java installation</TITLE>
+
+<SCRIPT LANGUAGE="JavaScript">
+function do_redirect()
+{
+ var ua = navigator.userAgent;
+ if (ua.indexOf("MSIE") >= 0)
+ {
+ window.location.replace("GL4JInst_ie.html");
+ }
+}
+</SCRIPT>
+
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff" onLoad="do_redirect()">
+<hr>
+<applet code="GL4JInst.class" archive="GL4JInst_ns.jar" width=500 height=400>
+</applet>
+<hr>
+</BODY>
+</HTML>
diff --git a/Installer/MSJVMVersionApplet.java b/Installer/MSJVMVersionApplet.java
new file mode 100644
index 0000000..f48e458
--- /dev/null
+++ b/Installer/MSJVMVersionApplet.java
@@ -0,0 +1,33 @@
+
+import java.awt.*;
+import java.util.*;
+import java.awt.event.*;
+import java.applet.*;
+
+public class MSJVMVersionApplet extends Applet
+{
+ public void init()
+ {
+ Properties props =
+ com.ms.util.SystemVersionManager.getVMVersion();
+ String build = props.getProperty("BuildIncrement");
+ int buildI = 0;
+ try {
+ buildI = Integer.valueOf(build).intValue();
+ } catch (Exception ex) {}
+ String descr = props.getProperty("Description");
+ setLayout(new BorderLayout());
+ String state = null;
+ if(buildI>=3186)
+ state = "!!!! YOUR MS-JVM VERSION LOOKS FINE !!!!";
+ else
+ state = "!!!! YOUR MS-JVM VERSION IS TOO OLD, PLEASE UPDATE !!!!";
+ TextArea text = new TextArea(
+ descr + "." + build + "\n"+
+ "Build: " + build + "\n\n" + state);
+
+ add("Center", text);
+
+ setBackground(Color.white);
+ }
+}
diff --git a/Installer/MachineCtrl.java b/Installer/MachineCtrl.java
new file mode 100644
index 0000000..cba487a
--- /dev/null
+++ b/Installer/MachineCtrl.java
@@ -0,0 +1,988 @@
+import java.lang.*;
+import java.awt.*;
+import java.applet.*;
+import java.awt.event.*;
+import java.io.*;
+import java.net.*;
+import java.util.*;
+import java.util.zip.*;
+import java.lang.reflect.*;
+
+
+public class MachineCtrl
+ implements ActionListener, ItemListener
+{
+
+ public String title = null;
+ Frame dialog = null;
+ public Button goToJausoftGL4Java = null;
+ public Button buttonOk = null;
+ public Button buttonCancel = null;
+ public Button buttonFileClasses = null;
+ public Button buttonFileNatives = null;
+ public TextField tf_browser_classes = null;
+ public TextField tf_browser_natives = null;
+ private Choice glVendorChoice = null;
+ public String glVendor = null;
+ public boolean installGLUTFontSupport = true;
+ private Checkbox checkboxInstallGLUTFontSupport = null;
+
+ // Values for replaceable strings:
+ public String browser_classes = null;
+ public String browser_natives = null;
+ public String os_dir = null;
+ public String os_lib_dir = null;
+
+ // Java VM vendor and operating system stuff:
+ public String jvmVendor = null;
+ public String jvmVersion = null;
+ public boolean isNetscapeJvm = false;
+ public boolean isSunJvm = false;
+ public boolean isMacJvm = false;
+ public boolean isMicrosoftJvm = false;
+
+ public String osName = null;
+ public String osVersion = null;
+ public String osArch = null;
+ public boolean isWin32 = false;
+ public boolean isWin95 = false;
+ public boolean isMacOs = false;
+ public boolean isMacOs9 = false;
+ public boolean isUnix = false;
+ public int unixFlavor = unixFlavor_Unknown;
+ static public final int
+ unixFlavor_Unknown = 0,
+ unixFlavor_Linux = 1,
+ unixFlavor_Solaris = 2,
+ unixFlavor_Aix = 3,
+ unixFlavor_Irix = 4,
+ unixFlavor_HPUX = 5;
+
+ private String pathsep = null;
+ private String filesep = null;
+
+ public String controlKey = null;
+ public String refreshButton = null;
+ public String refreshInfo = null;
+ public String errstr = null;
+
+ Applet applet = null;
+
+ public boolean isError()
+ { return errstr!=null; }
+
+ public void clearError()
+ { errstr=null; }
+
+ public MachineCtrl(String title)
+ {
+ this.title = title;
+
+ // Query Java VM vendor and operating system.
+ jvmVendor = java.lang.System.getProperty("java.vendor").toLowerCase();
+ jvmVersion = java.lang.System.getProperty("java.version").toLowerCase();
+
+ osName = System.getProperty("os.name").toLowerCase();
+ osVersion = System.getProperty("os.version").toLowerCase();
+ osArch = System.getProperty("os.arch").toLowerCase();
+
+ isNetscapeJvm = ( (jvmVendor!=null) && (jvmVendor.indexOf("netscape")>=0) );
+ isSunJvm = ( (jvmVendor!=null) && (jvmVendor.indexOf("sun")>=0) );
+ isMacJvm = ( (jvmVendor!=null) && (jvmVendor.indexOf("apple")>=0) );
+ isMicrosoftJvm = ( (jvmVendor!=null) && (jvmVendor.indexOf("microsoft")>=0) );
+ if( !isNetscapeJvm && !isMicrosoftJvm )
+ {
+ isSunJvm=true; // default, also for mac ...
+ }
+
+ isWin32 = osName.startsWith("wind");
+ isWin95 =
+ ( (isWin32)
+ && (osName.indexOf("windows 95") >= 0)
+ && (osVersion.startsWith("4.0")) );
+
+ isMacOs = osName.startsWith("mac os");
+ isMacOs9 = osVersion.startsWith("9.");
+
+ isUnix = ( (!isWin32) && (!isMacOs) );
+
+ pathsep = System.getProperty("path.separator");
+ filesep = System.getProperty("file.separator");
+
+ if (isUnix)
+ {
+ if (osName.indexOf("linux") >= 0)
+ unixFlavor = unixFlavor_Linux;
+ else if (osName.indexOf("solaris") >= 0)
+ unixFlavor = unixFlavor_Solaris;
+ else if (osName.indexOf("aix") >= 0)
+ unixFlavor = unixFlavor_Aix;
+ else if (osName.indexOf("irix") >= 0)
+ unixFlavor = unixFlavor_Irix;
+ else if (osName.indexOf("hp-ux") >= 0)
+ unixFlavor = unixFlavor_HPUX;
+ }
+ System.out.println("Machine Info:");
+ System.out.println("\tosName: "+osName);
+ System.out.println("\tosVersion: "+osVersion);
+ System.out.println("\tosArch: "+osArch);
+ System.out.println("");
+ System.out.println("jvmVendor: "+jvmVendor);
+ System.out.println("jvmVersion: "+jvmVersion);
+ System.out.println("");
+ System.out.println("pathsep: "+pathsep);
+ System.out.println("filesep: "+filesep);
+ System.out.println("");
+ System.out.println("End of Machine Info !");
+
+ // Fail if unsupported VM.
+ if ( (!isNetscapeJvm) && (!isMicrosoftJvm) && (!isSunJvm) )
+ {
+ errstr = new String
+ ("GL4Java cannot be installed because\n" +
+ "your Java Virtual Machine is not recognized\n" +
+ "by the installer.\n" +
+ "\n" +
+ "Operating system: " + osName + "\n" +
+ "Java VM vendor..: " + jvmVendor + "\n" +
+ "Java VM version..: " + jvmVersion + "\n" +
+ "\n" +
+ "NOTE: You must be running Netscape Communicator\n" +
+ " or Microsoft Internet Explorer to install\n" +
+ " GL4Java.");
+ }
+
+ // Fail if unsupported operating system.
+ if ( (isUnix) && (unixFlavor == unixFlavor_Unknown) )
+ {
+ errstr = new String
+ ("GL4Java cannot be installed because\n" +
+ "your operating system is not recognized\n" +
+ "by the installer.\n" +
+ "\n" +
+ "Operating system: " + osName + "\n" +
+ "Java VM vendor..: " + jvmVendor +"\n" +
+ "Java VM version..: " + jvmVersion );
+ }
+
+ {
+ if (isNetscapeJvm || isSunJvm)
+ {
+ controlKey = new String("Shift");
+ refreshButton = new String("Reload");
+ }
+ else if (isMicrosoftJvm)
+ {
+ controlKey = new String("Ctrl");
+ refreshButton = new String("Refresh");
+ }
+ if ( (controlKey != null) && (refreshButton != null) )
+ {
+ refreshInfo = new String
+ ("\n\n" +
+ "Under some circumstances, a failed\n" +
+ "installation can be corrected by\n" +
+ "holding down the " + controlKey + " key and\n" +
+ "clicking the " + refreshButton + " button on your\n" +
+ "browser's command bar.");
+ }
+ }
+ }
+
+ public boolean enablePrivilege()
+ {
+ // Attempt to assert the needed permissions.
+ if (isNetscapeJvm)
+ {
+ try
+ {
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalFileAccess");
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalExecAccess");
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalConnect");
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalFdRead");
+ }
+ catch (Exception e)
+ {
+ errstr = new String
+ ("Netscape denied privileges, or a failure occurred.\n"+
+ "Here is the exception that was caught:\n"+e+"\n");
+ return false;
+ }
+ }
+ else if (isMicrosoftJvm)
+ {
+ try
+ {
+ com.ms.security.PolicyEngine.assertPermission (com.ms.security.PermissionID.FILEIO);
+ com.ms.security.PolicyEngine.assertPermission
+ (com.ms.security.PermissionID.PROPERTY);
+ com.ms.security.PolicyEngine.assertPermission
+ (com.ms.security.PermissionID.SYSTEM);
+ }
+ catch (Exception e)
+ {
+ errstr = new String
+ ("Microsoft VM denied privileges, or a failure occurred.\n"+
+ "Here is the exception that was caught:\n"+e+"\n");
+ return false;
+ }
+ }
+ return true;
+ }
+
+
+ public boolean fetchPrivilegedInfos()
+ {
+ if (isNetscapeJvm)
+ {
+ try
+ {
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalFileAccess");
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalExecAccess");
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalConnect");
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalFdRead");
+ }
+ catch (Exception e)
+ {
+ errstr = new String
+ ("Netscape denied privileges, or a failure occurred.\n"+
+ "Here is the exception that was caught:\n"+e+"\n");
+ return false;
+ }
+ }
+ else if (isMicrosoftJvm)
+ {
+ try
+ {
+ com.ms.security.PolicyEngine.assertPermission (com.ms.security.PermissionID.FILEIO);
+ com.ms.security.PolicyEngine.assertPermission
+ (com.ms.security.PermissionID.PROPERTY);
+ com.ms.security.PolicyEngine.assertPermission
+ (com.ms.security.PermissionID.SYSTEM);
+ }
+ catch (Exception e)
+ {
+ errstr = new String
+ ("Microsoft VM denied privileges, or a failure occurred.\n"+
+ "Here is the exception that was caught:\n"+e+"\n");
+ return false;
+ }
+ }
+ if (isMicrosoftJvm)
+ {
+ if (isWin32)
+ {
+ int buflen = 1024;
+ StringBuffer buf = null;
+ int len = 0;
+
+ Class[] parameterTypes = null;
+ Method m = null;
+ Object args[] = null;
+ File f = null;
+
+ try
+ {
+ Class kernel32 = Class.forName("com.ms.win32.Kernel32");
+ try
+ {
+ parameterTypes = new Class[2];
+ parameterTypes[0] = Class.forName("java.lang.StringBuffer");
+ parameterTypes[1] = Integer.TYPE;
+ m = kernel32.getMethod("GetWindowsDirectory",parameterTypes);
+ args = new Object[2];
+ buf = new StringBuffer(buflen+1);
+ buf.setLength(buflen);
+ args[0] = buf;
+ args[1] = new Integer(buflen);
+ len = ((Integer)m.invoke(kernel32,args)).intValue();
+ buf.setLength(len);
+ f = new File(new String(buf));
+ os_dir = f.getAbsolutePath().replace('\\','/');
+ browser_classes = os_dir + "/JAVA/trustlib";
+ }
+ catch (Exception e)
+ {
+ browser_classes = null;
+ System.out.println(e);
+ System.out.println("call to get the win dir failed:\n"+ buf);
+ }
+ try
+ {
+ parameterTypes = new Class[2];
+ parameterTypes[0] = Class.forName("java.lang.StringBuffer");
+ parameterTypes[1] = Integer.TYPE;
+ m = kernel32.getMethod("GetSystemDirectory",parameterTypes);
+ args = new Object[2];
+ buf = new StringBuffer(buflen+1);
+ buf.setLength(buflen);
+ args[0] = buf;
+ args[1] = new Integer(buflen);
+ len = ((Integer)m.invoke(kernel32,args)).intValue();
+ f = new File(new String(buf));
+ os_lib_dir = f.getAbsolutePath().replace('\\','/');
+ browser_natives = os_lib_dir;
+ }
+ catch (Exception e)
+ {
+ browser_natives = null;
+ System.out.println(e);
+ System.out.println("call to get the sys dir failed:\n"+ buf);
+ }
+ }
+ catch (Exception e2)
+ {
+ System.out.println(e2);
+ browser_classes = null;
+ browser_natives = null;
+ }
+ if ( (browser_classes == null) || (browser_natives == null) )
+ {
+ errstr = new String (
+ "Hmmm...Looks as if you may have an early version of\n" +
+ "IE 4, or perhaps even a version older than IE 4.\n" +
+ "Because the installer is not able to get the\n" +
+ "privileges it needs, the installation will be\n" +
+ "aborted.\n" +
+ "\n" +
+ "If you DID receive a question about security but\n" +
+ "answered \"No\", you must hold down the Ctrl key\n" +
+ "and click on the browser's \"Refresh\" button, then\n" +
+ "answer \"Yes\" to the security question in order to\n" +
+ "grant the required privileges to the installer.\n" +
+ "\n" +
+ "If you did NOT receive a question about security, you\n" +
+ "should upgrade to the latest version of IE, then attempt\n" +
+ "the installation again. To do this, go to:\n" +
+ " http://www.microsoft.com/windows/ie/default.htm\n" +
+ "\n" +
+ "Operating system: " + osName + "\n" +
+ "Java VM vendor..: " + jvmVendor + "\n" );
+ return false;
+ }
+ } // if (isWin32)
+ else if (isMacOs)
+ {
+// TODO: Add IE init here for browser_classes and browser_natives directories
+// under MacOs.
+ } // if (isMacOs)
+ else if (isUnix)
+ {
+// TODO: Add IE init here for browser_classes and browser_natives directories
+// under Unix flavors.
+ } // if (isUnix)
+ } // if (isMicrosoftJvm)
+ else if (isNetscapeJvm || isSunJvm)
+ {
+ if (isWin32)
+ {
+ // Find WINDOWS and WINDOWS\SYSTEM directories for Win9x,
+ // or WINNT and WINNT\SYSTE23 directories for WinNT.
+ Process proc = null;
+ String path = "";
+ try
+ {
+ proc = Runtime.getRuntime().exec
+ ("COMMAND.COM /C ECHO %PATH%");
+ }
+ catch (Exception e)
+ { }
+ if (proc != null)
+ {
+ StringBuffer sb = new StringBuffer(4096);
+ sb.setLength(0);
+ try
+ {
+ InputStream is = proc.getInputStream();
+ int c;
+ int pos = 0;
+ while ((c = is.read()) != -1)
+ {
+ if ( (((char)c) == '\r') || (((char)c) == '\n') )
+ break;
+ sb.setLength(pos+1);
+ sb.setCharAt(pos,(char)c);
+ pos++;
+ }
+ }
+ catch (Exception e)
+ { }
+ if (sb.length() > 0) path = new String(sb);
+ }
+ if ( (path != null) && (path.length() > 0) )
+ {
+ while ( (path != null) && (path.length() > 0) )
+ {
+ int p = path.indexOf(pathsep);
+ String thispath = null;
+ if (p < 0)
+ {
+ thispath = path;
+ path = null;
+ }
+ else
+ {
+ thispath = path.substring(0,p);
+ if ((p+1) < path.length())
+ path = path.substring(p+1,path.length());
+ else
+ path = null;
+ }
+ if ( (thispath != null) && (thispath.length() > 0) )
+ {
+ File f = null;
+ thispath = thispath.replace('\\','/');
+ while (thispath.endsWith("/"))
+ {
+ if (thispath.length() > 1)
+ thispath = thispath.substring
+ (0,thispath.length()-1);
+ else
+ thispath = "";
+ }
+ f = new File(thispath+"/WIN.INI");
+ if (f.exists())
+ {
+ f = new File(thispath+"/SYSTEM.INI");
+ if (f.exists())
+ {
+ // Looks like a windows directory.
+ if ( (os_dir == null)
+ || (os_dir.length() < 1) )
+ os_dir = thispath;
+ // See if system or system32 exists and
+ // contains GL4JavaGljMSJDirect and
+ // (kernel32.dll or user32.dll).
+
+ String thispathA =thispath+"/SYSTEM";
+ String thispathB =thispath+"/system32";
+ String thispath2 = null;
+ boolean found = false;
+ String fname = null;
+ int i;
+
+ // check an existing GL4JavaGljMSJDirect
+ // to overwrite !
+ for (i = 0;
+ found == false && i < 2;
+ i++)
+ {
+ thispath2 =
+ (i == 0 ? thispathA : thispathB);
+
+ fname = thispath2 +
+ "/GL4JavaGljMSJDirect.dll";
+ f = new File (fname);
+
+ if (f.exists())
+ {
+ found=true;
+ System.out.println(fname + " found !!!");
+ } else
+ System.out.println(fname + " not found");
+ }
+
+ // if GL4JavaGljMSJDirect was never
+ // installed, find an appropiate path !
+ for (i = 0;
+ found == false && i < 2;
+ i++)
+ {
+ thispath2 =
+ (i == 0 ? thispathA : thispathB);
+
+ fname = thispath2 + "/KERNEL32.DLL";
+
+ f = new File (fname);
+
+ if (f.exists())
+ {
+ System.out.println(fname + " found !!!");
+ fname = thispath2 + "/USER32.DLL";
+ f = new File (fname);
+
+ if (f.exists())
+ {
+ // Looks like a windows/sytem
+ // or winnt/system32 directory.
+ System.out.println(fname + " found !!!");
+ found=true;
+ } else
+ System.out.println(fname + " not found");
+ } else
+ System.out.println(fname + " not found");
+ }
+ if(found)
+ {
+ if ( (os_lib_dir == null)
+ || (os_lib_dir.length()
+ < 1) )
+ os_lib_dir = thispath2;
+ }
+ }
+ }
+
+ // If there are two path separators, then
+ // it could be a windows system directory.
+ int idx = thispath.indexOf("/");
+ if (idx >= 0)
+ {
+ idx = thispath.indexOf("/",idx+1);
+ if (idx >= 0)
+ {
+ for (int i = 0; i < 2; i++)
+ {
+ f = new File
+ (thispath + "/KERNEL32.DLL");
+ if (f.exists())
+ {
+ f = new File
+ (thispath + "/USER32.DLL");
+ if (f.exists())
+ {
+ // Looks like a windows/sytem
+ // or winnt/system32 directory.
+ if ( (os_lib_dir == null)
+ || (os_lib_dir.length()
+ < 1) )
+ os_lib_dir = thispath;
+ if ( (os_dir == null)
+ || (os_dir.length() < 1) )
+ {
+ idx = thispath.lastIndexOf
+ ("/");
+ if (idx > 0)
+ os_dir = thispath.
+ substring(0,idx);
+ }
+ }
+ }
+ }
+
+ }
+ }
+ }
+ }
+ }
+ }
+ if ( (isWin32) || (isUnix) || (isMacOs) )
+ {
+ String classpath =
+ System.getProperty("java.class.path").replace('\\','/');
+ String javahome = System.getProperty("java.home");
+ if(javahome!=null)
+ {
+ javahome=javahome.replace('\\','/');
+ if(javahome.toLowerCase().endsWith("/jre"))
+ classpath+=pathsep+javahome+"/lib/ext/gl4java.jar";
+ }
+ if (classpath != null)
+ {
+ while ( (classpath != null) && (classpath.length() > 0) )
+ {
+ int p = classpath.indexOf(pathsep);
+ String thispath = null;
+ if (p < 0)
+ {
+ thispath = classpath;
+ classpath = null;
+ }
+ else
+ {
+ thispath = classpath.substring(0,p);
+ if ((p+1) < classpath.length())
+ classpath = classpath.substring(p+1,classpath.length());
+ else
+ classpath = null;
+ }
+ if ( (thispath != null)
+ && (thispath.length() > 0)
+ && thispath.toLowerCase().endsWith(".jar")
+ )
+ {
+ int lastpos = -1, newpos;
+ while ( (newpos =
+ thispath.indexOf('/',lastpos+1))
+ >= 0
+ )
+ lastpos = newpos;
+ if (lastpos >= 0)
+ {
+ thispath = thispath.substring(0,lastpos);
+ if (thispath.toLowerCase().endsWith("/java/classes")
+ || thispath.toLowerCase().endsWith("/jre/lib/ext") )
+ {
+ browser_classes = new String(thispath);
+ if (isUnix)
+ {
+ switch (unixFlavor)
+ {
+ case unixFlavor_Linux:
+ browser_natives = new String("/usr/lib");
+ break;
+ case unixFlavor_Solaris:
+ browser_natives = new String("/usr/lib");
+ break;
+ case unixFlavor_Aix:
+ browser_natives = new String("/usr/lib");
+ break;
+ case unixFlavor_Irix:
+ browser_natives = new String("/usr/lib");
+ break;
+ }
+ }
+ else
+ browser_natives = thispath.substring(0,thispath.length()-7) + "bin";
+ break;
+ }
+ }
+ }
+ }
+ }
+ } // if ( (isWin32) || (isUnix) || (isMacOs) )
+ /*
+ else if (isMacOs)
+ {
+ }
+ */
+ } // if (isNetscapeJvm)
+
+ return true;
+ }
+
+ public void machineOptionWindow(ActionListener action,
+ String[] headerText,
+ String oktxt,
+ Applet _applet)
+ {
+ int i;
+ Panel panFlow = null;
+
+ applet = _applet;
+
+ dialog = new Frame (title);
+ dialog.setLayout(new BorderLayout());
+
+ if(headerText!=null && headerText.length>0)
+ {
+ Panel panNorth = new Panel();
+ panNorth.setLayout(new GridLayout(headerText.length+2,1));
+
+ for(i=0; i<headerText.length; i++)
+ {
+ panFlow = new Panel();
+ panFlow.setLayout(new FlowLayout(FlowLayout.LEFT,0,0));
+ panFlow.add(new Label(headerText[i]));
+ panNorth.add(panFlow);
+ }
+ panFlow = new Panel();
+ panFlow.setLayout(new FlowLayout(FlowLayout.LEFT,0,0));
+ panFlow.add((goToJausoftGL4Java = new Button("goto")));
+ goToJausoftGL4Java.addActionListener(this);
+ panFlow.add(new Label("http://www.jausoft.com/gl4java/"));
+ panNorth.add(panFlow);
+ panFlow = new Panel();
+ panFlow.setLayout(new FlowLayout(FlowLayout.LEFT,0,0));
+ panFlow.add(new Label("------------------------------------------------------------"));
+ panNorth.add(panFlow);
+
+ dialog.add("North", panNorth);
+ }
+
+ Panel panMain = new Panel();
+ panMain.setLayout(new GridLayout(10,1));
+
+ if(osVersion!=null && osArch!=null)
+ panMain.add(new Label("OS: "+osName+" "+osVersion+" "+osArch));
+ else
+ panMain.add(new Label("OS: none"));
+
+ panFlow = new Panel();
+ panFlow.setLayout(new FlowLayout(FlowLayout.LEFT,0,0));
+ panFlow.add(new Label("os-dir/os-library-dir:"));
+ if(os_dir!=null && os_lib_dir!=null)
+ panFlow.add(new Label(os_dir.trim()+"/"+os_lib_dir.trim()));
+ else
+ panFlow.add(new Label("none/none"));
+ panMain.add(panFlow);
+
+ Panel panGL4JSpecials = new Panel();
+ panGL4JSpecials.setLayout(new GridLayout(1,2));
+ installGLUTFontSupport = true;
+ checkboxInstallGLUTFontSupport = new Checkbox("with GLUT-Fonts", true);
+ checkboxInstallGLUTFontSupport.addItemListener(this);
+ panGL4JSpecials.add(checkboxInstallGLUTFontSupport);
+ panGL4JSpecials.add(new Label("(takes up to 200kBytes)"));
+ panMain.add(panGL4JSpecials);
+
+ Panel panOS = new Panel();
+ panOS.setLayout(new GridLayout(2,2));
+ Checkbox cb1 = new Checkbox("Win32", isWin32);
+ cb1.setEnabled(false);
+ panOS.add(cb1);
+ cb1 = new Checkbox("Win95", isWin95);
+ cb1.setEnabled(false);
+ panOS.add(cb1);
+ cb1 = new Checkbox("MacOS", isMacOs);
+ cb1.setEnabled(false);
+ panOS.add(cb1);
+ cb1 = new Checkbox("Unix", isUnix);
+ cb1.setEnabled(false);
+ panOS.add(cb1);
+ panMain.add(panOS);
+
+ if(isUnix)
+ {
+ Panel panOSUnix = new Panel();
+ panOSUnix.setLayout(new GridLayout(2,2));
+ cb1 = new Checkbox("GNU/Linux", unixFlavor==unixFlavor_Linux);
+ cb1.setEnabled(false);
+ panOSUnix.add(cb1);
+ cb1 = new Checkbox("Solaris", unixFlavor==unixFlavor_Solaris);
+ cb1.setEnabled(false);
+ panOSUnix.add(cb1);
+ cb1 = new Checkbox("Aix", unixFlavor==unixFlavor_Aix);
+ cb1.setEnabled(false);
+ panOSUnix.add(cb1);
+ cb1 = new Checkbox("Irix", unixFlavor==unixFlavor_Irix);
+ cb1.setEnabled(false);
+ panOSUnix.add(cb1);
+ panMain.add(panOSUnix);
+
+ if(unixFlavor==unixFlavor_Linux)
+ {
+ panFlow = new Panel();
+ panFlow.setLayout(new FlowLayout(FlowLayout.LEFT,0,0));
+ panFlow.add(new Label("OpenGL Vendor:"));
+ glVendorChoice = new Choice();
+ glVendorChoice.addItemListener(this);
+ glVendor = "generic";
+ glVendorChoice.add(glVendor);
+ panFlow.add(glVendorChoice);
+ panMain.add(panFlow);
+ }
+ }
+
+ if(jvmVendor!=null)
+ panMain.add(new Label("JVM: "+jvmVendor.trim()));
+ else
+ panMain.add(new Label("JVM: none"));
+
+ Panel panJVM = new Panel();
+ panJVM.setLayout(new GridLayout(1,3));
+ cb1 = new Checkbox("Sun", isSunJvm);
+ cb1.setEnabled(false);
+ panJVM.add(cb1);
+ cb1 = new Checkbox("Netscape", isNetscapeJvm);
+ cb1.setEnabled(false);
+ panJVM.add(cb1);
+ cb1 = new Checkbox("Microsoft", isMicrosoftJvm);
+ cb1.setEnabled(false);
+ panJVM.add(cb1);
+ panMain.add(panJVM);
+
+ panFlow = new Panel();
+ //panFlow.setLayout(new GridLayout(1,3));
+ panFlow.setLayout(new FlowLayout(FlowLayout.LEFT));
+ panFlow.add(new Label("Java-Classes Path:"));
+ tf_browser_classes = new TextField(browser_classes,60);
+ tf_browser_classes.addActionListener(this);
+ panFlow.add(tf_browser_classes);
+ buttonFileClasses = new Button("...");
+ buttonFileClasses.addActionListener(this);
+ panFlow.add(buttonFileClasses);
+ panMain.add(panFlow);
+ panFlow = new Panel();
+ //panFlow.setLayout(new GridLayout(1,3));
+ panFlow.setLayout(new FlowLayout(FlowLayout.LEFT));
+ panFlow.add(new Label("Native-Lib's-Path:"));
+ tf_browser_natives = new TextField(browser_natives,60);
+ tf_browser_natives.addActionListener(this);
+ panFlow.add(tf_browser_natives);
+ buttonFileNatives = new Button("...");
+ buttonFileNatives.addActionListener(this);
+ panFlow.add(buttonFileNatives);
+ panMain.add(panFlow);
+
+ dialog.add("Center", panMain);
+
+ Panel panButtons = new Panel();
+ buttonOk=new Button(oktxt);
+ buttonOk.setActionCommand(oktxt);
+ buttonOk.addActionListener(this);
+ if(action!=null)
+ buttonOk.addActionListener(action);
+ buttonCancel=new Button("Cancel");
+ buttonCancel.addActionListener(this);
+ panButtons.add(buttonOk);
+ panButtons.add(buttonCancel);
+
+ dialog.add("South", panButtons);
+ dialog.pack();
+ dialog.setVisible(true);
+ }
+
+ public boolean checkTextFields()
+ {
+ boolean ok = true;
+ String str = null;
+
+ try {
+ String fname;
+ fname = tf_browser_classes.getText().replace('\\','/');
+ fname = fname.trim();
+ File f = new File(fname);
+ if(f.exists() && f.isDirectory())
+ {
+ browser_classes = fname;
+ System.out.println("Set Classes-Dir to: "+
+ browser_classes);
+ } else {
+ str = new String ("directory <"+
+ tf_browser_classes.getText().trim()+
+ "> is invalid");
+ ok=false;
+ }
+ } catch (Exception ex) {
+ str = new String ("directory <"+
+ tf_browser_classes.getText().trim()+
+ "> is invalid\n"+ex);
+ ok=false;
+ }
+ try {
+ String fname;
+ fname = tf_browser_natives.getText().replace('\\','/');
+ fname = fname.trim();
+ File f = new File(fname);
+ if(f.exists() && f.isDirectory())
+ {
+ browser_natives = fname;
+ System.out.println("Set Native-Dir to: "+
+ browser_natives);
+ } else {
+ str = new String ("directory <"+
+ tf_browser_natives.getText().trim()+
+ "> is invalid");
+ ok=false;
+ }
+ } catch (Exception ex) {
+ str = new String ("directory <"+
+ tf_browser_natives.getText().trim()+
+ "> is invalid\n"+ex);
+ ok=false;
+ }
+ if(!ok && str!=null)
+ {
+ System.out.println("\007\n"+str+"\n");
+ }
+ return ok;
+ }
+
+ public void actionPerformed(ActionEvent e)
+ {
+ Object src = e.getSource();
+ if (src.equals(buttonOk) || src.equals(buttonCancel))
+ {
+ if (src.equals(buttonOk) && checkTextFields()==false)
+ return;
+ if(dialog!=null)
+ {
+ dialog.setVisible(false);
+ dialog.dispose();
+ dialog = null;
+ }
+ } else if(src.equals(tf_browser_classes))
+ {
+ checkTextFields();
+ } else if(src.equals(tf_browser_natives))
+ {
+ checkTextFields();
+ } else if(src.equals(buttonFileClasses))
+ {
+ FileDialog fd =
+ new FileDialog(dialog,"GL4Java Classes Dir",FileDialog.SAVE);
+ fd.setDirectory(tf_browser_classes.getText());
+ fd.show();
+ tf_browser_classes.setText(fd.getDirectory());
+ checkTextFields();
+ } else if(src.equals(buttonFileNatives))
+ {
+ FileDialog fd =
+ new FileDialog(dialog,"GL4Java Classes Dir",FileDialog.SAVE);
+ fd.setDirectory(tf_browser_natives.getText());
+ fd.show();
+ tf_browser_natives.setText(fd.getDirectory());
+ checkTextFields();
+ } else if(src.equals(goToJausoftGL4Java) && applet!=null)
+ {
+ try {
+ URL home = new URL("http://www.jausoft.com/gl4java/");
+ applet.getAppletContext().showDocument(home, "GL4Java Homepage");
+ } catch (Exception ex) {
+ applet.showStatus("cannot open http://www.jausoft.com/gl4java/");
+ }
+ }
+ }
+
+ public void itemStateChanged(ItemEvent e)
+ {
+ if(glVendorChoice!=null &&
+ glVendorChoice.equals(e.getItemSelectable()) &&
+ e.getStateChange()==ItemEvent.SELECTED
+ )
+ {
+ Object item = e.getItem();
+
+ // System.out.println("selected ITEM:"+item.getClass()+", "+item);
+
+ if(item instanceof String)
+ {
+ String str = (String)item;
+ glVendor = str;
+ }
+ } else if(checkboxInstallGLUTFontSupport.equals(e.getItemSelectable()))
+ {
+ installGLUTFontSupport =
+ checkboxInstallGLUTFontSupport.getState();
+ }
+
+ }
+
+ public static void main( String args[] )
+ {
+ MachineCtrl mctrl = new MachineCtrl("Test Class MachineCtrl");
+ if(mctrl.isError())
+ {
+ System.out.println(mctrl.errstr);
+ mctrl.clearError();
+ }
+ mctrl.enablePrivilege();
+ if(mctrl.isError())
+ {
+ System.out.println(mctrl.errstr);
+ mctrl.clearError();
+ }
+ mctrl.fetchPrivilegedInfos();
+ if(mctrl.isError())
+ {
+ System.out.println(mctrl.errstr);
+ mctrl.clearError();
+ }
+ String[] header = { "Info Text", "2nd Line" };
+ mctrl.machineOptionWindow(null, header, "exit", null);
+ if(mctrl.isError())
+ {
+ System.out.println(mctrl.errstr);
+ mctrl.clearError();
+ }
+ }
+}
+
diff --git a/Installer/README.txt b/Installer/README.txt
new file mode 100644
index 0000000..149fe71
--- /dev/null
+++ b/Installer/README.txt
@@ -0,0 +1,87 @@
+ GL4Java Installer
+ Copyright (c) 1999 Ronald B. Cemer
+
+You may use, redistribute, and/or modify this software under the terms of the
+GNU General Public License (GPL). GL4Java, which is included in binary form
+as part of this software, is covered under the GNU Library General Public
+License (LGPL).
+
+To see the GPL, visit:
+ http://www.gnu.org/copyleft/gpl.html
+To see the LGPL, visit:
+ http://www.gnu.org/copyleft/lgpl.html
+
+To generate a copy of the distributed files (files which should be deployed on
+a web server), run the following batch file (Win32 only):
+ makedist (path)
+where (path) is replaced by the path to a directory where the files are to be
+copied. Only the files required to deploy the installer on a web server will
+be copied to this directory. Be careful, though, since it does copy some HTML
+files. Any existing HTML files of the same name(s) in the target directory
+could be wiped out by this batch file. For safety's sake, it's probably best
+to copy the files to an empty directory first, instead of a directory on a
+live web server.
+
+For Netscape, there is an included x509.crt file, which must be imported into
+Netscape's certificate database by the user. Netscape comes pre-configured to
+know the correct MIME type for this file when loading it from local disk.
+There is, however, a special requirement when delivering the x509.crt via a
+web server. The MIME type for ".crt" files must be set properly. Some web
+servers come configured correctly for ".crt" files by default. For Apache web
+server, for example, you will need to add the following line to
+/etc/mime.types if isn't already there:
+ application/x-x509-ca-cert crt
+In order for the change to take effect, you may need to reboot, or at least
+stop and restart the web server.
+
+The GL4Java installer can read the files to be installed from zip files on the
+web server (the GL4JLibs*.zip files that are generated by running libarc.bat),
+or straight from a directory on the web server. By default, the GL4Java
+installer reads from GL4JLibs*.zip files on the web server.
+
+You can change the the source for these files to a subdirectory of your
+choosing (on the web server) by making the changes listed below. Note that
+"mysource" should be replaced with the name of a subdirectory into which
+the GL4JLibs*.zip files have been extracted. For example, if you wanted to
+copy files from a directory on the web server, you could make a subdirectory
+named "libs", then change to that directory and unzip the GL4JLibs*.zip files
+from there.
+
+*** IMPORTANT *** After unzipping under Unix, you must be sure that all
+directories under the libs directory are mode 755 in order for the web server
+to be able to read from them. Change to the newly created "libs" directory
+(or whatever you called it), and enter the following commands EXACTLY as
+shown here:
+ for i in `find . -type d -print`
+ do
+ chmod 755 $i
+ done
+
+Keep in mind that when you are copying from a directory, the files are not
+compressed so they will take longer to download via modem. For this reason,
+it is highly recommended that you use the supplied zip files.
+
+Here are the changes to the html files which are required in order to make the
+GL4Java installer read from a sudirectory (remember to replace mysource with
+the name of your subdirectory which contains the extracted GL4JLibs*.zip
+files).
+
+Changes to GL4JInst_ie.html:
+ old:
+ <applet code="GL4JInst.class" width=400 height=400>
+ <param name="cabbase" value="GL4JInst.cab">
+ </applet>
+ new:
+ <applet code="GL4JInst.class" width=400 height=400>
+ <param name="cabbase" value="GL4JInst.cab">
+ <param name="sourcedir" value="mysource">
+ </applet>
+
+Changes to GL4JInst_ns.html:
+ old:
+ <applet code="GL4JInst.class" archive="GL4JInst.jar" width=400 height=400>
+ </applet>
+ new:
+ <applet code="GL4JInst.class" archive="GL4JInst.jar" width=400 height=400>
+ <param name="sourcedir" value="mysource">
+ </applet>
diff --git a/Installer/index.html b/Installer/index.html
new file mode 100644
index 0000000..0eb405c
--- /dev/null
+++ b/Installer/index.html
@@ -0,0 +1,33 @@
+<html>
+<head>
+ <title>GL4Java Installation</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+This procedure will install the GL4Java classes and
+native libraries on your system.
+<p>Be sure to own local access rights, to save the native libraries and
+the java classes to your browsers directory !
+<center>
+<br>
+<hr>
+<p>After the Installation, you have to restart your browser application !
+<br>&nbsp;
+<p>If you are ready to begin, <a href="GL4JInst.html">Click here to start
+the setup procedure.</a>
+<br>
+(JavaScript is needed - does not work for MacOS !)
+</center>
+<hr>
+<br>&nbsp;
+<p><a href="java.policy">The Java2 policy file example to give GL4Java the permission to run under Java2 (sdk, jre, plugin) (Click here) !</a>
+<br>&nbsp;
+<hr>
+<br>&nbsp;
+<p><a href="GL4JInst_fstd.html">Force standard Appletviewer installation (Click here) !</a>
+<p><a href="GL4JInst_f13plugin.html">Force Java Plug-In 1.3 installation (Click here) !</a>
+<p><a href="GL4JInst_fns.html">Force Netscape installation (Click here) !</a>
+<p><a href="GL4JInst_fie.html">Force MS-IE installation (Click here) !</a>
+<br>&nbsp;
+<hr>
+</body>
+</html>
diff --git a/Installer/install.bat b/Installer/install.bat
new file mode 100644
index 0000000..fa1f2e7
--- /dev/null
+++ b/Installer/install.bat
@@ -0,0 +1,12 @@
+@echo off
+if "x%CLASSPATH%" == "x" goto nocpath
+ set xxCLASSPATH=%CLASSPATH%
+ set CLASSPATH=GL4JInstaller.jar;%CLASSPATH%
+ java GL4JInst
+ set CLASSPATH=%xxCLASSPATH%
+ goto finish
+:nocpath
+ set CLASSPATH=GL4JInstaller.jar
+ java GL4JInst
+ set CLASSPATH=
+:finish
diff --git a/Installer/install.sh b/Installer/install.sh
new file mode 100755
index 0000000..8f21663
--- /dev/null
+++ b/Installer/install.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ -z ${CLASSPATH:=""} ] ; then
+ CLASSPATH=GL4JInstaller.jar
+else
+ CLASSPATH=GL4JInstaller.jar:${CLASSPATH}
+fi
+export CLASSPATH
+exec java GL4JInst
diff --git a/Installer/java.policy b/Installer/java.policy
new file mode 100644
index 0000000..6a606f0
--- /dev/null
+++ b/Installer/java.policy
@@ -0,0 +1,51 @@
+//
+// GL4Java extensions get all permissions !
+//
+// This peace should be added on top of the file:
+//
+// If a Java2 SDK is used:
+// <java2-installation>/jre/lib/security/java.policy
+//
+// If a Java2 JRE is used:
+// <jre-installation>/lib/security/java.policy
+//
+// GL4Java Homepage:
+//
+// http://www.jausoft.com/gl4java/
+//
+
+grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/Installer/*"
+{
+ permission java.security.AllPermission;
+};
+
+grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/*"
+{
+ permission java.security.AllPermission;
+};
+
+grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/MiscDemos/*
+{
+ permission java.security.AllPermission;
+};
+
+grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/RonsDemos/*
+{
+ permission java.security.AllPermission;
+};
+
+grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/SwingDemos/*
+{
+ permission java.security.AllPermission;
+};
+
+grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/GLLandScape/*
+{
+ permission java.security.AllPermission;
+};
+
+grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/HodglimsNeHe/*
+{
+ permission java.security.AllPermission;
+};
+
diff --git a/Installer/makeJar-Unix.sh b/Installer/makeJar-Unix.sh
new file mode 100755
index 0000000..ccfc58c
--- /dev/null
+++ b/Installer/makeJar-Unix.sh
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+. versiondef.sh
+
+
+rm -f *.class GL4JInstaller.jar
+
+javac -classpath ".:../capsapi_classes.zip" *.java
+
+. versionundef.sh
+
+rm -rf META-INF
+
+jar cf GL4JInstaller.jar *.class
+
+rm -f *.class
diff --git a/Installer/makeMSIESignedCab.sh b/Installer/makeMSIESignedCab.sh
new file mode 100755
index 0000000..dfb5f4c
--- /dev/null
+++ b/Installer/makeMSIESignedCab.sh
@@ -0,0 +1,19 @@
+#! /bin/sh
+
+. versiondef.sh
+
+# The Microsft signing keys were created using the Microsoft makecert and
+# cert2spc utilities, as follows:
+# makecert -nscp -r -n CN=GL4JInst GL4JInst.cer -sv GL4JInst.pvk
+# (when prompted for a password, click "None")
+# cert2spc GL4JInst.cer GL4JInst.spc
+
+rm -f *.class GL4JInst.cab
+//D/MSJAVASDK/BIN/jvc -nomessage -x- -cp:p .\;..\\CAPSAPI_CLASSES.ZIP *.java
+
+. versionundef.sh
+
+//D/MSJAVASDK/Bin/cabarc N GL4JInst.cab *.class
+# signcode -j javasign.dll -jp low -spc GL4JInst.spc -k GL4JInst GL4JInst.cab
+//D/MSJAVASDK/Bin/signcode -j javasign.dll -jp low -spc GL4JInstDemo.spc -v GL4JInstDemo.pvk GL4JInst.cab
+rm *.class
diff --git a/Installer/makeNetscapeSignedJar-Unix.sh b/Installer/makeNetscapeSignedJar-Unix.sh
new file mode 100755
index 0000000..d68c907
--- /dev/null
+++ b/Installer/makeNetscapeSignedJar-Unix.sh
@@ -0,0 +1,33 @@
+#! /bin/sh
+
+. versiondef.sh
+
+# The Netscape signing keys were created using the Netscape signtool
+# utility, as follows:
+# copy key3.db and cert7.db from one of the users directories.
+# signtool -d . -G GL4JInst204
+# Enter the following information:
+# certificate common name: GL4JInst204
+# organization: GL4Java Development Team
+# organization unit: GL4JInst
+# state or province: NRW
+# country (must be exactly 2 characters): DE
+# username: GL4JInst
+# email address: [email protected]
+# When the certificate has been created, copy x509.cacert to x509.crt using
+# the following command: copy x509.cacert x509.crt
+# Copy key3.db and cert7.db back to the users directories.
+
+cp ~/.netscape/key3.db .
+cp ~/.netscape/cert7.db .
+
+rm -f *.class GL4JInst_ns.jar
+javac -classpath ".:../capsapi_classes.zip" *.java
+
+. versionundef.sh
+
+rm -rf META-INF
+signtool -d . -e .class -k GL4JInst204 -Z GL4JInst_ns.jar -c9 --norecurse .
+rm -rf META-INF
+
+rm -f key3.db cert7.db *.class
diff --git a/Installer/makeNetscapeSignedJar-Win32.sh b/Installer/makeNetscapeSignedJar-Win32.sh
new file mode 100755
index 0000000..ba67d38
--- /dev/null
+++ b/Installer/makeNetscapeSignedJar-Win32.sh
@@ -0,0 +1,33 @@
+#! /bin/sh
+
+. versiondef.sh
+
+# The Netscape signing keys were created using the Netscape signtool
+# utility, as follows:
+# copy key3.db and cert7.db from one of the users directories.
+# signtool -d . -G GL4JInst204
+# Enter the following information:
+# certificate common name: GL4JInst204
+# organization: GL4Java Development Team
+# organization unit: GL4JInst
+# state or province: NRW
+# country (must be exactly 2 characters): DE
+# username: GL4JInst
+# email address: [email protected]
+# When the certificate has been created, copy x509.cacert to x509.crt using
+# the following command: copy x509.cacert x509.crt
+# Copy key3.db and cert7.db back to the users directories.
+
+cp ~/.netscape/key3.db .
+cp ~/.netscape/cert7.db .
+
+rm -f *.class GL4JInst_ns.jar
+javac -classpath ".;..\\capsapi_classes.zip" *.java
+rm -rf META-INF
+
+. versionundef.sh
+
+signtool -d . -e .class -k GL4JInst204 -Z GL4JInst_ns.jar -c9 --norecurse .
+rm -rf META-INF
+
+#rm -f key3.db cert7.db *.class
diff --git a/Installer/versiondef.sh b/Installer/versiondef.sh
new file mode 100644
index 0000000..2973f44
--- /dev/null
+++ b/Installer/versiondef.sh
@@ -0,0 +1,11 @@
+MAJV=2
+MINV=4
+BUGV=1
+RELV=0
+
+echo creating installer for version $MAJV.$MINV.$BUGV.$RELV !
+for i in *.skel ; do
+ sed -e "s/_MAJV_/$MAJV/g" -e "s/_MINV_/$MINV/g" -e "s/_BUGV_/$BUGV/g" \
+ -e "s/_RELV_/$RELV/g" $i > $(basename $i .skel)
+done
+
diff --git a/Installer/versionundef.sh b/Installer/versionundef.sh
new file mode 100644
index 0000000..a80d6b9
--- /dev/null
+++ b/Installer/versionundef.sh
@@ -0,0 +1,5 @@
+
+for i in *.skel ; do
+ rm -f $(basename $i .skel)
+done
+
diff --git a/Java2.txt b/Java2.txt
new file mode 100644
index 0000000..768b22b
--- /dev/null
+++ b/Java2.txt
@@ -0,0 +1,67 @@
+\begin{verbatim}
+
+With GL4Java Version 2.0.0 Release 1,
+GL4Java do supports the Java2 plattform !
+
+Please read INSTALL.txt first !
+
+Prerequisites
+==============
+
+Be sure to have:
+
+ ./jre/lib/ext/gl4java.jar : for Java2 or JRE
+ ./jre/lib/ext/gl4java-glutfonts.jar : for Java2 or JRE
+ ./jre/lib/ext/png.jar : for Java2 or JRE
+
+ For Windows32: Java2-Plug-In, Java2, JRE
+
+ ./jre/bin/GL4JavaJauGljJNI.dll
+ ./jre/bin/GL4JavaJauGLJNI.dll
+ ./jre/bin/GL4JavaJauGLUJNI.dll
+
+ For Unix: Java2-Plug-In, Java2, JRE
+
+ ./jre/lib/<machine>/libGL4JavaJauGljJNI.so*
+ ./jre/lib/<machine>/libGL4JavaJauGLJNI.so*
+ ./jre/lib/<machine>/libGL4JavaJauGLUJNI.so*
+
+ * => all symbolic links and the file itself,
+ use "cp -a" to keep the symbolic links alive !
+
+ e.g. linux:
+
+ ./jre/lib/i386/green-threads/.
+
+ Be sure to copy the linked lib-files also !
+
+
+Java2-Plug-In, Appletviewer, Security:
+======================================
+ To allow JAVA2's appletviewer and Plug-In using JNI native libs,
+ just look at GL4Java/demo/Java2Applet.bat
+ (You have to change the GL4Java.policy file) !
+
+ You can - of course - use your 'policytool',
+ which is shipped with JAVA2 !
+
+ You can check JAVA2-Plug-In with the Java-Applets-Html-File's
+ demos/glLogoCvsAppletJ2P.html
+ demos/glOlympicCvsAppletJ2P.html
+ demos/testTextPPM1J2P.html
+
+ To use the demo Applets for Java2-Plug-In from www.jausoft.com,
+ please add the following lines to your java.policy file:
+
+grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/-" {
+ permission java.security.AllPermission;
+};
+
+
+TODO:
+=====
+
+Test other plattforms :-)
+
+\end{verbatim}
+
diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644
index 0000000..66fa3cb
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,35 @@
+\begin{verbatim}
+
+GL4Java - A OpenGL language mapping to Java
+
+Copyright (C) 1999 Sven Goethel
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Library General Public
+License as published by the Free Software Foundation; either
+version 2 of the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Library General Public License for more details.
+
+You should have received a copy of the GNU Library General Public
+License along with this library; if not, write to the
+Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA.
+
+You can also check the GNU Library General Public License
+in the internet at http://www.gnu.org/copyleft/lgpl.html !
+
+If you like to contact the author use:
+
+Sven Goethel, Elpke 5, 33605 Bielefeld, Germany
+web : http://www.jausoft.com
+voice: +49-521-2399440
+fax : +49-521-2399442
+
+Sven Goethel, 15 January 1999
+
+\end{verbatim}
diff --git a/LINKS.html b/LINKS.html
new file mode 100644
index 0000000..d9fedad
--- /dev/null
+++ b/LINKS.html
@@ -0,0 +1,97 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+<HEAD>
+ <TITLE></TITLE>
+ <META NAME="GENERATOR" CONTENT="StarOffice/5.0 (Unix)">
+ <META NAME="CREATED" CONTENT="19990115;3183800">
+ <META NAME="CHANGEDBY" CONTENT="sven goethel">
+ <META NAME="CHANGED" CONTENT="19990115;3311300">
+ <STYLE>
+ <!--
+ -->
+ </STYLE>
+</HEAD>
+<BODY bgcolor="#e6e6ff">
+<HR>
+<P ALIGN=CENTER><B><U>Some places ....</U></B>
+</P>
+<P ALIGN=CENTER><FONT COLOR="#000080"><A HREF="http://java.sun.com/"><FONT COLOR="#000080"><IMG SRC="docs/html/images/j2j.gif" NAME="Grafik1" ALT="Jump2Java" ALIGN=BOTTOM HSPACE=20 WIDTH=80 HEIGHT=80 BORDER=1></FONT></A></FONT>
+<FONT COLOR="#000080">
+<A HREF="http://www.opengl.org/"><FONT COLOR="#000080"><IMG SRC="docs/html/images/ogla.gif" NAME="Grafik2" ALT="OpenGL" ALIGN=BOTTOM HSPACE=20 WIDTH=140 HEIGHT=80 BORDER=1></FONT></A></FONT>
+<FONT COLOR="#000080">
+<A HREF="http://www.gamelan.com/"><FONT COLOR="#000080"><IMG SRC="docs/html/images/gamelanbutton.gif" NAME="Grafik3" ALT="Gamelan" ALIGN=BOTTOM HSPACE=20 WIDTH=197 HEIGHT=43 BORDER=1></FONT></A></FONT>
+<FONT COLOR="#000080">
+<A HREF="http://jars.developer.com/jarssearch.html"><FONT COLOR="#800000"><IMG SRC="docs/html/images/jarswebsearch.gif" NAME="Grafik4" ALT="JARS" ALIGN=BOTTOM HSPACE=20 WIDTH=75 HEIGHT=38 BORDER=1></FONT></A></FONT>
+
+</P>
+<HR>
+<P ALIGN=CENTER><B><U>Some Java OpenGL places ...</U></B>
+</P>
+<P>GL4Java
+</P>
+<P><A HREF="http://www.jausoft.com/gl4java.html">http://www.jausoft.com/gl4java.html</A></P>
+
+</P>
+<P><A HREF="http://members.home.net/gziemski/pages/projects/GL4Java.html">http://members.home.net/gziemski/pages/projects/GL4Java.html
+<SPAN STYLE="text-decoration: none">(Macintosh port of GL4Java)</SPAN></A></P>
+<P><A HREF="http://www.jausoft.com/Files/Java/1.1.X/GL4JavaApps">http://www.jausoft.com/Files/Java/1.1.X/GL4JavaApps</A><SPAN STYLE="text-decoration: none"><A HREF="http://members.home.net/gziemski/pages/projects/GL4Java.html">
+ (<SPAN STYLE="text-decoration: none"> GL4Java-Applications:
+</SPAN></A>GLLandScape<A HREF="http://members.home.net/gziemski/pages/projects/GL4Java.html">)
+</A></SPAN><BR>&nbsp;
+</P>
+<P>Jogl
+</P>
+<P><A HREF="http://www.pajato.com/jogl">http://www.pajato.com/jogl</A>
+<BR>&nbsp;
+</P>
+<P>OpenGL4Java
+</P>
+<P><A HREF="http://www.magma.ca/%7Eaking/java">http://www.magma.ca/%7Eaking/java</A>
+
+</P>
+<P><A HREF="http://ftp.cgl.uwaterloo.ca/pub/software/meta/OpenGL4java.html">http://ftp.cgl.uwaterloo.ca/pub/software/meta/OpenGL4java.html</A>
+<BR>&nbsp;
+</P>
+<P ALIGN=CENTER><B><U>Some OpenGL places ....</U></B>
+</P>
+<P>Gateway to OpenGL Info
+</P>
+<P><A HREF="http://reality.sgi.com/mjk_asd/opengl-links.html">http://reality.sgi.com/mjk_asd/opengl-links.html</A>
+<BR>&nbsp;
+</P>
+<P>glx Specification
+</P>
+<P><A HREF="http://reality.sgi.com/mjk_asd/glxspec/glxspec.html">http://reality.sgi.com/mjk_asd/glxspec/glxspec.html</A>
+<BR>&nbsp;
+</P>
+<P>OpenGL WWW Center
+</P>
+<P><A HREF="http://www.sgi.com/Technology/openGL">http://www.sgi.com/Technology/openGL</A>
+
+</P>
+<P>OpenGL
+</P>
+<P><A HREF="http://www.opengl.org/">http://www.opengl.org</A>
+</P>
+<P>MESA 3.0 (includes glut now)</P>
+<P><A HREF="http://www.ssec.wisc.edu/~brianp/Mesa.html">http://www.ssec.wisc.edu/~brianp/Mesa.html</A>
+
+</P>
+<P>GLUT 3.5
+</P>
+<P><A HREF="http://reality.sgi.com/employees/mjk_asd/glut3/glut3.html">http://reality.sgi.com/employees/mjk_asd/glut3/glut3.html</A>
+<BR>&nbsp;
+</P>
+<P ALIGN=CENTER><B><U>Some Java places ....</U></B>
+<BR>&nbsp;
+</P>
+<P>JavaCC
+</P>
+<P><A HREF="http://www.metamata.com/JavaCC/">http://www.metamata.com/JavaCC/</A>
+<BR>&nbsp;
+</P>
+<P ALIGN=CENTER STYLE="margin-bottom: 0.00cm">... hope that helps
+;-)) !
+</P>
+</BODY>
+</HTML>
diff --git a/MS-JVM.txt b/MS-JVM.txt
new file mode 100644
index 0000000..80b1fd1
--- /dev/null
+++ b/MS-JVM.txt
@@ -0,0 +1,73 @@
+\begin{verbatim}
+
+With GL4Java Version 2.1.0 Release 0,
+GL4Java do supports the MS-JVM plattform,
+which means GL4Java-Applets runs under the MS InternetExplorer >= 4.0 !
+
+Please read INSTALL.txt first !
+
+Prerequisites
+==============
+
+Be sure to have:
+
+The new MS-JVM machine (build 3186) installed:
+
+ Microsoft (R) VM for Java, 5.0 Release 5.0.0.3186
+
+(The following version does NOT Work:
+ Microsoft (R) VM for Java (tm), 4.0 Release 4.79.0.2424)
+
+You can get it from the Microsoft-Webside's:
+ http://www.microsoft.com/java/
+ http://www.microsoft.com/java/vm/dl_vm40.htm
+
+Extracted the gl4java.jar, gl4java-glutfonts.jar AND png.jar archive
+(with WinZip or the jar command-line-tool)
+to: C:\WINDOWS\Java\TRUSTLIB,
+so you have the new directories:
+
+ C:\WINDOWS\Java\TRUSTLIB\com\sixlegs
+ C:\WINDOWS\Java\TRUSTLIB\gl4java
+ C:\WINDOWS\Java\TRUSTLIB\sun
+ C:\WINDOWS\Java\TRUSTLIB\META-INF
+
+Delete the new directory C:\WINDOWS\Java\TRUSTLIB\META-INF !
+
+Then copy the native library (DLL) GL4JavaGljMSJDirect.dll
+to C:\WINDOWS\SYSTEM[32]
+
+ C:\WINDOWS\SYSTEM32\GL4JavaGljMSJDirect.dll (WINNT)
+
+ or
+
+ C:\WINDOWS\SYSTEM\GL4JavaGljMSJDirect.dll (WIN9X)
+
+
+Notes:
+======
+
+Be sure to have a MS-JVM installed on your system,
+e.g. the one installed within MS-IE 4.0 !
+
+Applets, Security:
+======================================
+ Because now you have installed the GL4Java system on your local
+ system. All Applet's using GL4Java can run !
+
+ If not - please try to modify your MS-IE security setup !
+
+This Port to the MS-JVM is written by Ron Cemer
+and merged into the GL4Java official source tree by Sven Goethel.
+
+TODO:
+=====
+
+Support a better window update for the GL4Java OpenGL windows !
+
+Support query Double-Buffer and STEREO, like X11 !
+
+An Easy Installation Tool :-) That's Ron's sweating either.
+
+\end{verbatim}
+
diff --git a/MacOS9PPC/MacOS9PPC/gl4java-jdk1_1-libs b/MacOS9PPC/MacOS9PPC/gl4java-jdk1_1-libs
new file mode 100644
index 0000000..337bf3d
--- /dev/null
+++ b/MacOS9PPC/MacOS9PPC/gl4java-jdk1_1-libs
Binary files differ
diff --git a/MacOS9PPC/MacOS9PPC/gl4java-jdk1_2-libs b/MacOS9PPC/MacOS9PPC/gl4java-jdk1_2-libs
new file mode 100644
index 0000000..3aaf12d
--- /dev/null
+++ b/MacOS9PPC/MacOS9PPC/gl4java-jdk1_2-libs
Binary files differ
diff --git a/MacOS9PPC/demo-scripts/Accanti b/MacOS9PPC/demo-scripts/Accanti
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MacOS9PPC/demo-scripts/Accanti
diff --git a/MacOS9PPC/demo-scripts/GLImageViewerCanvas b/MacOS9PPC/demo-scripts/GLImageViewerCanvas
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MacOS9PPC/demo-scripts/GLImageViewerCanvas
diff --git a/MacOS9PPC/demo-scripts/GLLandscapeWorld b/MacOS9PPC/demo-scripts/GLLandscapeWorld
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MacOS9PPC/demo-scripts/GLLandscapeWorld
diff --git a/MacOS9PPC/demo-scripts/Gears b/MacOS9PPC/demo-scripts/Gears
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MacOS9PPC/demo-scripts/Gears
diff --git a/MacOS9PPC/demo-scripts/Morph3D b/MacOS9PPC/demo-scripts/Morph3D
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MacOS9PPC/demo-scripts/Morph3D
diff --git a/MacOS9PPC/demo-scripts/PngTextureTestApplet b/MacOS9PPC/demo-scripts/PngTextureTestApplet
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MacOS9PPC/demo-scripts/PngTextureTestApplet
diff --git a/MacOS9PPC/demo-scripts/Read Me b/MacOS9PPC/demo-scripts/Read Me
new file mode 100644
index 0000000..34ebbaf
--- /dev/null
+++ b/MacOS9PPC/demo-scripts/Read Me
@@ -0,0 +1 @@
+GL4Java MAC Demos ! You first have to install GL4Java :-) To start the demos, you can start some off the whole, while starting the little scripts in this directory ! You can browse and start all the demos, while opening the file < GL4Java/demos/demos.html > with the MS-IE ! Then you can navigate to the different demos - and start them ! Yours, Sven Goethel \ No newline at end of file
diff --git a/MacOS9PPC/demo-scripts/Select b/MacOS9PPC/demo-scripts/Select
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MacOS9PPC/demo-scripts/Select
diff --git a/MacOS9PPC/demo-scripts/Stencil b/MacOS9PPC/demo-scripts/Stencil
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MacOS9PPC/demo-scripts/Stencil
diff --git a/MacOS9PPC/demo-scripts/SwingOffScreenDemo1 b/MacOS9PPC/demo-scripts/SwingOffScreenDemo1
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MacOS9PPC/demo-scripts/SwingOffScreenDemo1
diff --git a/MacOS9PPC/demo-scripts/Tess b/MacOS9PPC/demo-scripts/Tess
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MacOS9PPC/demo-scripts/Tess
diff --git a/MacOS9PPC/demo-scripts/Tessdemo b/MacOS9PPC/demo-scripts/Tessdemo
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MacOS9PPC/demo-scripts/Tessdemo
diff --git a/MacOS9PPC/demo-scripts/tesswind b/MacOS9PPC/demo-scripts/tesswind
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MacOS9PPC/demo-scripts/tesswind
diff --git a/MacOS9PPC/demo-scripts/tex/DAISYX.png b/MacOS9PPC/demo-scripts/tex/DAISYX.png
new file mode 100644
index 0000000..4892a0b
--- /dev/null
+++ b/MacOS9PPC/demo-scripts/tex/DAISYX.png
Binary files differ
diff --git a/MacOS9PPC/gl4java-macos9ppc-install/GL4JavaInfo b/MacOS9PPC/gl4java-macos9ppc-install/GL4JavaInfo
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MacOS9PPC/gl4java-macos9ppc-install/GL4JavaInfo
diff --git a/MacOS9PPC/gl4java-macos9ppc-install/Icon b/MacOS9PPC/gl4java-macos9ppc-install/Icon
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MacOS9PPC/gl4java-macos9ppc-install/Icon
diff --git a/MacOS9PPC/gl4java-macos9ppc-install/Read Me b/MacOS9PPC/gl4java-macos9ppc-install/Read Me
new file mode 100644
index 0000000..e22a043
--- /dev/null
+++ b/MacOS9PPC/gl4java-macos9ppc-install/Read Me
@@ -0,0 +1 @@
+GL4Java MAC Installation ! If the AppleScript Installation failes, you can copy the files manually. The folder "sysextensions" represents the destination folder <extensions folder> of your MACOS, which is usally located under MACOS:system:extensions !! Just copy the contents of "sysextensions" to the <extensions folder> recursively ! Thats all ! Prerequisites: MRJ Java Runtime OpenGL Sources: http://www.jausoft.com/gl4java/ Notes: The stencil buffer and the accum buffer DOES work, but e.g. the hardware accelerated ATI OpenGL Renderer does NOT :-( But GL4Java does select the hardware renderer first, if avaiable ! So, you have to disable the hardware renderer, if you want to use those features (if the hardware renderer is "broken") ! Use the "extension on/off" tool to achive this action ! To check the installation, just start the GL4JavaInfo-Script ! You should also download all the demos ... Yours, Sven Goethel \ No newline at end of file
diff --git a/MacOS9PPC/gl4java-macos9ppc-install/gl4j-applescript-installer b/MacOS9PPC/gl4java-macos9ppc-install/gl4j-applescript-installer
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MacOS9PPC/gl4java-macos9ppc-install/gl4j-applescript-installer
diff --git a/MacOS9PPC/gl4java-macos9ppc-install/sysextensions/Icon b/MacOS9PPC/gl4java-macos9ppc-install/sysextensions/Icon
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MacOS9PPC/gl4java-macos9ppc-install/sysextensions/Icon
diff --git a/MacOS9PPC/gl4java-macos9ppc-install/sysextensions/MRJ Libraries/Icon b/MacOS9PPC/gl4java-macos9ppc-install/sysextensions/MRJ Libraries/Icon
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MacOS9PPC/gl4java-macos9ppc-install/sysextensions/MRJ Libraries/Icon
diff --git a/MacOS9PPC/gl4java-macos9ppc-install/sysextensions/MRJ Libraries/MRJClasses/Icon b/MacOS9PPC/gl4java-macos9ppc-install/sysextensions/MRJ Libraries/MRJClasses/Icon
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MacOS9PPC/gl4java-macos9ppc-install/sysextensions/MRJ Libraries/MRJClasses/Icon
diff --git a/MacOS9PPC/java11X/java11X b/MacOS9PPC/java11X/java11X
new file mode 100644
index 0000000..e007ad3
--- /dev/null
+++ b/MacOS9PPC/java11X/java11X
Binary files differ
diff --git a/Netscape.txt b/Netscape.txt
new file mode 100644
index 0000000..16c2d7f
--- /dev/null
+++ b/Netscape.txt
@@ -0,0 +1,91 @@
+\begin{verbatim}
+
+With GL4Java Version 2.0.1 Release 2,
+GL4Java do supports the Netscape 4.5 Win32-JVM and Unix plattform !
+
+<Version 2.0.0 Release 1 and Version 2.0.1 Release 1
+ has a bug within the capabilities call and the JAR package >
+
+Please read INSTALL.txt first !
+
+WINDOW 95/98/NT:
+=================
+
+Be sure to have:
+
+ ./Netcape/Communicator/Program/Java/classes/png.jar
+ ./Netcape/Communicator/Program/Java/classes/gl4java.jar
+ ./Netcape/Communicator/Program/Java/classes/gl4java-glutfonts.jar
+
+ ./Netcape/Communicator/Program/Java/bin/GL4JavaJauGljJNI.dll
+ ./Netcape/Communicator/Program/Java/bin/GL4JavaJauGLJNI.dll
+ ./Netcape/Communicator/Program/Java/bin/GL4JavaJauGLUJNI.dll
+
+
+UNIX (Linux/Solaris/...):
+=========================
+
+Be sure to have:
+
+ /opt/netscape/java/classes/gl4java-glutfonts.jar
+ /opt/netscape/java/classes/png.jar
+
+The nativ libraries must be installed on a directory,
+which is in your LD_LIBRARY_PATH environment !!
+E.g.:
+ /usr/lib/libGL4JavaJauGLJNI.so
+ /usr/lib/libGL4JavaJauGLJNI.so.2
+ /usr/lib/libGL4JavaJauGLJNI.so.2.1
+ /usr/lib/libGL4JavaJauGLJNI.so.2.1.2
+ /usr/lib/libGL4JavaJauGLJNInf.so
+ /usr/lib/libGL4JavaJauGLJNInf.so.2
+ /usr/lib/libGL4JavaJauGLJNInf.so.2.1
+ /usr/lib/libGL4JavaJauGLJNInf.so.2.1.2
+ /usr/lib/libGL4JavaJauGLUJNI.so
+ /usr/lib/libGL4JavaJauGLUJNI.so.2
+ /usr/lib/libGL4JavaJauGLUJNI.so.2.1
+ /usr/lib/libGL4JavaJauGLUJNI.so.2.1.2
+ /usr/lib/libGL4JavaJauGLUJNInf.so
+ /usr/lib/libGL4JavaJauGLUJNInf.so.2
+ /usr/lib/libGL4JavaJauGLUJNInf.so.2.1
+ /usr/lib/libGL4JavaJauGLUJNInf.so.2.1.2
+ /usr/lib/libGL4JavaJauGljJNI.so
+ /usr/lib/libGL4JavaJauGljJNI.so.2
+ /usr/lib/libGL4JavaJauGljJNI.so.2.1
+ /usr/lib/libGL4JavaJauGljJNI.so.2.1.2
+
+All symbolic links and the file itself,
+use "cp -a" to keep the symbolic links alive !
+
+Also you should be sure to have a CLASSPATH for Netscape set
+like this:
+ CLASSPATH=/opt/netscape/java/classes:.
+ for i in /opt/netscape/java/classes/*.jar ; do
+ CLASSPATH=$CLASSPATH:$i
+ done
+ echo $CLASSPATH
+ export CLASSPATH
+
+or just make the default whith:
+
+ CLASSPATH=
+ export CLASSPATH
+
+Applets/Security:
+======================
+You can check Netscape with the Java-Applets-Html-File's
+ demos/glLogoCvsApplet.html
+ demos/glOlympicCvsApplet.html
+ demos/testTextPPM1.html (copy swingall.jar of Swing1.1 to
+ ./Netcape/Communicator/Program/Java/classes )
+
+You will be asked to grant the asked privilege,
+so trust GL4Java and say yes !
+
+TODO:
+=====
+
+Test other plattforms :-)
+
+\end{verbatim}
+
diff --git a/PNG-LICENSE.txt b/PNG-LICENSE.txt
new file mode 100644
index 0000000..1d882bb
--- /dev/null
+++ b/PNG-LICENSE.txt
@@ -0,0 +1,17 @@
+com.sixlegs.image.png - Java package to read and display PNG images
+Copyright (C) 1998, 1999 Chris Nokleberg
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Library General Public
+License as published by the Free Software Foundation; either
+version 2 of the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Library General Public License for more details.
+
+You should have received a copy of the GNU Library General Public
+License along with this library; if not, write to the
+Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA.
diff --git a/PNG-README.txt b/PNG-README.txt
new file mode 100644
index 0000000..d504476
--- /dev/null
+++ b/PNG-README.txt
@@ -0,0 +1,161 @@
+Copyright (c) 1998,1999 Six-Legged Software
+All rights reserved.
+
+README - com.sixlegs.image.png v1.0
+
+Features
+
+ Supports all valid bit depths (grayscale/color), interlacing, paletted
+ images, alpha channel/transparency, gamma correction, access to most
+ standard chunks, private chunk handling, and progressive display.
+
+Revision History
+
+ Changes from v0.9 -> v1.0:
+
+ * Released as open-source under LGPL.
+ * Workaround for IE4.0, should work fine now.
+
+ Changes from v0.8 -> v0.9:
+
+ * Changes to significantly reduce memory usage (up to 40%):
+ + "setViewingGammaLocal", "setDisplayGammaLocal" methods removed.
+ + Multiple productions of image data no longer supported.
+ + Call "getEverything" only when you do not need image data.
+ * Support for proposed iTXt chunk (TextChunk class).
+ * "getTextChunk" now returns a TextChunk instead of String.
+ * "getTextKeys" changed to "getTextChunks".
+ * CR, LF, and CR-LF combinations in text chunks are transformed
+ to local newline conventions.
+ * Standard text chunks keywords are now case-sensitive.
+ * Character codes 0-8,11,12,14-31,127-159 in text chunks are
+ displayed using octal "\nnn" notation.
+
+ Changes from v0.7 -> v0.8:
+
+ * Support for oFFs, pCAL, sBIT, sCAL, and sPLT chunks.
+ * ChunkHandlers can now override standard ancillary chunks.
+ * Added documentation on reducing distribution size (see below).
+ * Fixed bug with getProperty("background").
+ * Fixed bug with getProperty("time").
+ * Modest performance improvements.
+ * Changed some property names and constants for consistency.
+ * Added source files for each example class.
+
+ Changes from v0.6 -> v0.7:
+
+ * Added getProperty method for easy access to chunk data.
+ * Added ChunkHandler interface for private chunk handling.
+ * Support for sRGB and iCCP chunks.
+ * Removed PngHeader class. Equivalent methods are now in PngImage.
+ * Improved text chunk handling.
+ * Changed "setViewingGamma" and "setDisplayGamma" to
+ "setViewingExponent" and "setDisplayExponent" to reflect proposed
+ changes to the PNG specification.
+ * Added GrayscaleFilter class (getGrayscaleFilter method removed).
+ * Example code documentation.
+
+ Changes from v0.5 -> v0.6:
+
+ * Progressive display of interlaced images.
+ * Grayscale filtering.
+ * "setViewingGammaLocal" and "setDisplayGammaLocal" allow you to
+ override the default gamma settings for an image.
+ * Added a RemoveAlphaFilter example class for better display
+ of transparent images.
+ * Fixed a bug with 16-bit grayscale images with bKGD chunks.
+ * Fixed a bug with very small interlaced images.
+ * Fixed a possible bug with interlaced images in which the first
+ scanline of each pass did not use the Sub or None filter.
+ * Package has changed from com.sixlegs.PNG to com.sixlegs.image.png;
+ this is the final package name.
+ * More documentation.
+
+Requirements
+
+ This package uses the java.util.zip package for ZLIB decompression,
+ and so requires Java 1.1 or higher. This means that it will not work
+ in older browsers, such as Netscape 3.x. It has been tested in
+ Netscape Communicator under Windows NT. Let me know if you encounter
+ problems on platforms that supposedly support Java 1.1.
+
+Getting Started
+
+ The entire com.sixlegs.PNG package has been archived in the png.jar
+ file. The easiest way to start using the package is to simply include
+ the path to the jar file in your CLASSPATH environment variable.
+
+ Alternatively, you can extract the class files by running the command
+
+ jar xvf png.jar
+
+ You would still probably want to add the location of the extracted
+ files to your CLASSPATH.
+
+Using the Package
+
+ Usually you will 'import com.sixlegs.image.png.*;' at the beginning
+ of your code. The PngImage class is an ImageProducer, so getting an
+ Image object from a local PNG file is easy:
+
+ PngImage png = new PngImage("test.png");
+ Image img = Toolkit.getDefaultToolkit().createImage(png);
+
+ The PngImage object also has constructors to read from a URL or an
+ InputStream. In addition, you can set variables, such as gamma
+ parameters, that will affect the resulting image. See the
+ documentation located in the 'doc' directory for more details.
+
+ Example code is located in the 'examples' directory.
+
+Reducing distribution size
+
+ Not all of the class files in the library are critical. By removing
+ unnecessary classes you can reduce the total size of the jar file
+ by almost half.
+
+ Each chunk type has its own class. The only five that must be
+ included are IHDR, IDAT, IEND, PLTE, and tRNS. All others may be
+ safely removed.
+
+ Be aware that the removal of certain chunks classes, such as gAMA,
+ sRGB, and bKGD, may affect the displayed image.
+
+ Furthermore, there is a separate "BitMover" class for each image
+ color format. You may safely remove the formats that you *know* you
+ do not need to support. Here is a key to the BitMover classes:
+
+ BitMover1G - 1 bit grayscale
+ BitMover1P - 1 bit paletted
+ BitMover2G - 2 bit grayscale
+ BitMover2P - 2 bit paletted
+ BitMover4G - 4 bit grayscale
+ BitMover4P - 4 bit paletted
+ BitMover8G - 8 bit grayscale
+ BitMover8GA - 8 bit grayscale + 8 bit alpha
+ BitMover8P - 8 bit paletted
+ BitMover8RGB - 24 bit truecolor
+ BitMover8RGBA - 24 bit truecolor + 8 bit alpha
+ BitMover16G - 16 bit grayscale
+ BitMover16GA - 16 bit grayscale + 16 bit alpha
+ BitMover16RGB - 48 bit truecolor
+ BitMover16RGBA - 48 bit truecolor + 16 bit alpha
+
+ Miscellaneous:
+
+ * Remove KeyValueChunk only if you remove AbstractTextChunk and iCCP.
+ * Remove AbstractTextChunk only if you remove tEXt, zTXt, and iTXt.
+ * Remove VcHRM only if you remove sRGB and cHRM.
+ * If you do not need private chunk handling you may remove
+ UserChunk and ChunkHandler.
+
+Contact Information
+
+ The latest version of this package is available from:
+ http://www.sixlegs.com/png/
+
+ Please let me know about any problems you encounter, or features
+ that you would find valuable.
+
+ Chris Nokleberg <[email protected]>
+
diff --git a/README.AdamKing.txt b/README.AdamKing.txt
new file mode 100644
index 0000000..c5e5298
--- /dev/null
+++ b/README.AdamKing.txt
@@ -0,0 +1,105 @@
+This readme is for the OpenGL4Java release 0.3.
+
+Welcome!
+-------
+This is an initial developer's release of a (unoffical) port of OpenGL(tm)
+for java. I've taken Leo Chan's original package and ported it to both
+WindowsNT/95 and to Linux. I've included Leo Chan's original readme file
+in this directory as README.orig. Also, I've added several features, the main
+one being OpenGl now drawing into a java Frame. What advantage does this
+provide? Well, you can now add menus to the OpenGL widget as well as
+receiving all normal events such as MouseMotion and Window events. You
+could very simply have a user rotate a openGL object by moving the mouse
+around in the Frame ( the demo for the next release will have this feature ).
+
+
+Installation
+------------
+For compiling/installation instructions, please read the INSTALL file.
+
+
+Use
+---
+Have a look at the testOGLWidget.java file included with this release. It
+shows how to create a java application that can show an OpenGL object. I
+will be adding more details on the steps required to create an OpenGL
+application in the following releases. Briefly, this is what must be done:
+
+1) Create the frame that will display the OpenGL scene.
+ - DO this by extending the class 'OpenGLFrame' or instatiating a new
+ OpenGLFrame object. Make sure you create it with a title.
+
+2) Create a new 'OpenGLwidget' object and pass it the 'OpenGLFrame'
+ object that it will be displayed in into it's constructor.
+
+3) Set up the OpenGL scene within the OpenGLwidget with normal opengl
+ functions.
+ NOTE: Currently the gl prefix and parameter suffix on
+ OpenGL functions are not used ie. glLightf become light. This
+ was how it was in Leo Chan original package, however I am
+ considering putting the gl prefix back on and possibly the parameter
+ suffix as well to be more in line with the normal OpenGL functions.
+ Please email me at [email protected] if you have any comment on this.
+
+4) Call swap() and the scene should be rendered into the Frame.
+
+
+The OpenGL4Java home page is at:
+
+ http://www.magmacom.com/~aking/java
+
+
+Known Bugs
+----------
+Both:
+ - If you create more than one OpenGLFrame, they MUST have different
+ titles.
+ - most of the bugs mentioned in Leo Chan's original readme are still
+ present. Since I now have fairly stable Win32 and Linux version
+ I will be fixing most of them over the next several releases
+ - Make sure that you place Thread.yield() statements in any loops
+ you have otherwise you might not get any events. This is the
+ case with the Linux version due to it's virtual machine's
+ threading model. However, the Win32 version isn't affected by this.
+
+Linux:
+ - The first X visual that is found is used. This shouldn't affect
+ most people
+
+Win32:
+ - I haven't tested it with Microsoft's VM, and I'm pretty sure it
+ won't work. Make sure you have Sun's VM.
+
+
+Bug Reporting
+-------------
+
+If you come across any bugs please email me with details, and please
+include the following information:
+
+Which Operating System and version:
+OpenGL4Java version:
+OpenGL library being used and version:
+
+or if you have any suggestions, just email me at [email protected]
+
+
+License:
+-------
+As per the original package, I'm releasing this as FREEWARE (ie. you can
+do anything you want with it ) for both for non-commercial and for
+commerical use.
+
+
+Warranty
+--------
+There is none. As I'm not a lawyer, and I don't know anyone that is,
+I shall say this in plain english. If you use this software and your system
+explodes/breaks, or data is lost/damaged, it's not my fault. By using the
+supplied software, you agree not to sue me and not to cause me any greif.
+
+
+Enjoy!
+Adam King
diff --git a/README.GLXDRI.txt b/README.GLXDRI.txt
new file mode 100644
index 0000000..6bfa661
--- /dev/null
+++ b/README.GLXDRI.txt
@@ -0,0 +1,130 @@
+GL4Java is prepared for XFree86 4.0 & OpenGL/DRI
+================================================
+
+
+ctx := OpenGL rendering context
+
+I have worked for the DRI compatibility of GL4Java.
+GL4Java is an OpenGL language mapping for Java.
+ http://www.jausoft.com/gl4java
+
+I used:
+ Linux version 2.3.99-pre6
+ DRI cvs source tree (check out at 30th April 2000)
+ GlideV3Dri-3.10-6
+ gcc version 2.95.2
+ glibc 2.1
+ Vodoo3 3dfx card
+
+While working for the compatibility, I have found some
+problems, which looks like bugs !
+
+I really would love to see your comments about chapter 1-3,
+thanxs a lot !
+
+Some bugs in OpenGL/DRI should be fixed/worked around:
+
+
+1.) 3dfx Bug: Missing library link for tdfx_dri.so
+===================================================
+
+This may happen for other drivers either.
+
+/xc/lib/GL/mesa/src/drv/tdfx/Makefile line 1051:
+old: REQUIREDLIBS = -lglide3x -lm
+new: REQUIREDLIBS = -lglide3x -lm -L../../../.. -lGL
+
+Now, the "ldd -r -v tdfx_dri.so" check does not complain
+about missing symbols. And GL4Java is able to load this lib
+via libGL.so ! The funny thing is, that the binary demos
+does not complain about the missing links ...
+
+
+3.) GLX/DRI Indirect Rendering mode
+===================================
+
+Within this mode, we have to use the GL4Java mode of
+an own created window for the ctx !
+Because without, we will not receive an double-buffered visual
+for the allready existing java native window !
+(But this work for DRI rendering mode)
+
+So, the workaround is, that the flag/define
+"GL4JAVA_FORCE_X11_OWN_WINDOW" is set.
+So in DRI and indirect rendering mode,
+an own native window is created !
+
+
+4.) Java2 JVM must run in native threads mode
+==============================================
+
+The environment var "THREADS_FLAG=native" must be set !
+Green threads does result in an exception ...
+
+
+=====================================================================
+
+FIXED:
+======
+
+2.) glxMakeCurrent(..) bug
+==========================
+
+Try the demo "glxdemo.c" (out of mesa/xdemos) !
+If you modify the code, so that the function code of
+"redraw" is encapsulated like this:
+
+/**
+ dpy, win & ctx are globals ...
+ */
+Display *dpy=NULL;
+GLXContext ctx=NULL;
+Window win=0;
+
+static void redraw( )
+{
+ /**
+ * Make the ctx current to this thread
+ */
+ glXMakeCurrent( dpy, win, ctx );
+
+ /*
+ ... original code here
+ */
+
+ /**
+ * Release the current thread's ctx,
+ * so that the ctx is usable for other threads ...
+ */
+ glXMakeCurrent( dpy, None, NULL );
+}
+
+The very first "redraw" does work !
+The upcoming calls just throwing the GL-Error messages:
+ "GL User Error: calling ; without a current context"
+and the GL impl. are not called !
+So - the call of "glXMakeCurrent( dpy, None, NULL )"
+makes the glx management very unhappy :-(
+
+
+A current workaround for GL4Java is the flag/define
+"GLXDRIMAKECURRENTBUG" !
+If this is set, the native implementation of the method
+GLContext::gljFree() does not call "glXMakeCurrent( dpy, None, NULL )"
+anymore ! So we do lost the thread safety !
+
+> In xc/xc/lib/GL/mesa/src/drv/tdfx/tdfx_xmesa.c in
+> the XMesaMakeCurrent()
+> function, look for this line (should be line 228):
+>
+> if (c==gCC) return GL_TRUE;
+>
+> Remove it.
+
+
+1st May 2000
+
+Sven Goethel
+http://www.jausoft.com
diff --git a/README.RonCemer.txt b/README.RonCemer.txt
new file mode 100644
index 0000000..a6ae904
--- /dev/null
+++ b/README.RonCemer.txt
@@ -0,0 +1,375 @@
+------------------------------------------------------------------------------
+
+ GL4Java Implementation for the Microsoft Java VM under Windows
+ And some Other Interesting Topics
+ Ronald B. Cemer
+ August 10, 1999
+
+{ This part is updated by Sven Goethel for GL4Java 2.1.0.0, 30th August 1999 }
+------------------------------------------------------------------------------
+
+
+Implementation
+
+
+I began with GL4Java version 2.0.1.2, as maintained and distributed by Sven
+Goethel.
+
+Microsoft's VM comes in several versions. While the latest versions support
+JNI (Java Native Interface, an API which allows Java to call native code in
+DLLs), many releases only support J/Direct, which is Microsoft's simplified
+(and quite handy, but highly non-standard) interface to native code in DLLs.
+I opted to use J/Direct for all native calls under the Microsoft VM.
+
+If you have an early VM, it won't support J/Direct either, so you have to
+download the latest VM in this case (or at least a newer one). See the
+"Installing" section.
+
+Microsoft's VM uses what they call "lightweight" components. They went to
+great pains to re-use all of the ActiveX controls (whatever!) that they had
+invested so much time and effort to develop. These controls are at the heart
+of the VM. By "lightweight" they mean that each control (button, canvass,
+etc.) does not have its own window handle, but are actually drawn onto the
+frame, which has a window handle. Therefore, within a frame (a top-level
+window), all components share that frame's window handle. As a result,
+there's really no window to render to with OpenGL. So I create one in the
+DLL, and maintain it there. The GLContext and GLCanvas classes cooperate to
+keep the size and position of this window synchronized with the size and
+position of the underlying canvas. It all happens fairly transparently.
+
+Beware, though, that you shouldn't try to draw on the canvas with normal Java
+drawing commands, because you'll be drawing on a canvas that is obscured by
+an OpenGL window and the results will never be seen. In fact, the Win32
+documentation states that PFD_DOUBLEBUFFER and PFD_SUPPORT_GDI are mutually
+exclusive (see ChoosePixelFormat), so you shouldn't be trying this anyway.
+Basically, the rule is this: Use OpenGL to draw everything in the GLCanvas or
+GLAnimCanvas space.
+
+------------------------------------------------------------------------------
+
+
+Changes to existing applets/applications
+
+
+To prevent security violations and to allow the applet to shutdown gracefully,
+I added doCleanup() function to the GLCanvas class. Since GLAnimCanvas is a
+subclass of GLCanvas, doCleanup() is effectively added to both classes.
+
+The doCleanup() function gets called by cvsDispose(). You should override
+doCleanup() in your applet and put all OpenGL cleanup code there. This is
+where you delete display lists and textures, etc.
+
+The following methods can be overridden in the GLCanvas or GLAnimCanvas object
+you create, but you must call the super.*() version of the same method in your
+overridden method in order for the applet to operate correctly. Here are
+sample implementations of these functions, with places for you to insert your
+code:
+
+ public void reshape(int width, int height)
+ {
+ super.reshape(width,height);
+ /* Put your code here. */
+ }
+
+ public void componentResized(ComponentEvent e)
+ {
+ super.componentResized(e);
+ /* Put your code here. */
+ }
+
+ public void componentMoved(ComponentEvent e)
+ {
+ super.componentMoved(e);
+ /* Put your code here. */
+ }
+
+ public void componentShown(ComponentEvent e)
+ {
+ super.componentShown(e);
+ /* Put your code here. */
+ }
+
+ public void componentHidden(ComponentEvent e)
+ {
+ super.componentHidden(e);
+ /* Put your code here. */
+ }
+
+ public void windowOpened(WindowEvent e)
+ {
+ super.windowOpened(e);
+ /* Put your code here. */
+ }
+
+ public void windowClosing(WindowEvent e)
+ {
+ super.windowClosing(e);
+ /* Put your code here. */
+ }
+
+ public void windowClosed(WindowEvent e)
+ {
+ super.windowClosed(e);
+ /* Put your code here. */
+ }
+
+ public void windowIconified(WindowEvent e)
+ {
+ super.windowIconified(e);
+ /* Put your code here. */
+ }
+
+ public void windowDeiconified(WindowEvent e)
+ {
+ super.windowDeiconified(e);
+ /* Put your code here. */
+ }
+
+ public void windowActivated(WindowEvent e)
+ {
+ super.windowActivated(e);
+ /* Put your code here. */
+ }
+
+ public void windowDeactivated(WindowEvent e)
+ {
+ super.windowDeactivated(e);
+ /* Put your code here. */
+ }
+
+
+The ideal structure for an applet is as follows. We will use DemoApplet as
+the applet class and DemoCanvas as the canvas class. Use your own names.
+
+The DemoApplet class looks like this:
+
+ public class DemoApplet extends Applet
+ {
+ DemoCanvas canvas = null;
+
+ public void init()
+ {
+ Dimension d = getSize();
+
+ setLayout(new BorderLayout());
+ canvas = new DemoCanvas(d.width, d.height, null, null);
+ add("Center", canvas);
+ }
+
+ public void start()
+ {
+ /* This only applies if you're using GLAnimCanvas: */
+ canvas.start();
+ }
+
+ public void stop()
+ {
+ /* This only applies if you're using GLAnimCanvas: */
+ canvas.stop();
+ }
+
+ public void destroy()
+ {
+ canvas.destroy();
+ }
+ }
+
+The DemoCanvas class looks like this:
+
+ class DemoCanvas extends GLAnimCanvas
+ {
+ public DemoCanvas(int w, int h, String glClass, String gluClass)
+ {
+ super(w, h, glClass, gluClass);
+ /* These only apply if you're using GLAnimCanvas: */
+ setUseRepaint(true); /* Only for GLAnimCanvas */
+ setUseFpsSleep(true); /* Run it wide open */
+ }
+
+ public void init()
+ {
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glEnable(GL_CULL_FACE);
+ gl.glShadeModel(GL_SMOOTH);
+ gl.glLightModeli(GL_LIGHT_MODEL_TWO_SIDE,GL_TRUE);
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+
+ /* Do any OpenGL - related initialization here. */
+
+ glj.gljCheckGL();
+
+ /* This only applies if you're using GLAnimCanvas: */
+ setSuspended(false);
+ }
+
+ public void ReInit()
+ {
+ /* This only applies if you're using GLAnimCanvas: */
+ setSuspended(false);
+ }
+
+ public void destroy()
+ {
+ if (glj != null)
+ {
+ /* Call cvsDispose(). It will shutdown the GL context and call doCleanup()
+ at the right time. */
+ cvsDispose();
+ }
+ }
+
+ public void doCleanup()
+ {
+ if (glj != null)
+ {
+ glj.gljMakeCurrent(true);
+ /* Do any OpenGL - related cleanup here. */
+ glj.gljFree();
+ }
+ }
+
+ public void display()
+ {
+ if (glj == null) return;
+ if (!glj.gljIsInit()) return;
+ if (glj.gljMakeCurrent(true) == false) return;
+
+ /* Put OpenGL commands here to render the scene. */
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+ }
+
+------------------------------------------------------------------------------
+
+
+Building the jar files
+
+
+First of all, edit symbols.mak.win32 to reflect your system's configuration.
+Then copy symbols.mak.win32 to symbols.mak. Note that you should use a UNIX
+editor (vim works nicely) to edit symbols.mak and any makefile(s), because
+the make that comes with Cygnus chokes on carriage-returns. Carriage-returns
+almost never appear in UNIX text files, because a newline (ASCII linefeed) is
+treated the same way a CR-LF pair is treated in DOS/Windows.
+
+To rebuild the Java classes which comprise the Java side of GL4Java, you will
+need the Microsoft SDK for Java, Sun JDK (1.2.1 or later is preferred), and
+Cygnus Win32 tools (UNIX commands for Win32). You can get each of these
+things at the following web sites:
+
+ Microsoft SDK for Java: http://www.microsoft.com/downloads/
+ Sun JDK 1.2.1 : http://www.java.sun.com/products/
+ Cygnus Win32 tools : http://sourceware.cygnus.com/cygwin/
+
+To build the gl4java.jar, execute the
+following commands:
+
+ make w32
+ cd ..
+
+Everything will get built except the DLLs.
+
+{ This part is updated by Sven Goethel for GL4Java 2.1.0.0 }
+------------------------------------------------------------------------------
+
+
+Building the dll files
+
+
+Support for building the MS-specific version of the DLL has not been added
+for DJGPP or Borland BC5, since I don't have either set up on my system.
+Sven Goethel or others may wish to add this for the next release.
+
+First make sure the jar files have been built and are up to date.
+
+To rebuild the DLLS, you need Microsoft Visual C++ 6.0. Open the workspace:
+
+ Win32VC6\Win32VC6.dsw
+
+Then select each project and select "Build -> Rebuild all".
+
+The create the archive with the makefile:
+
+ make win2binpkg
+
+... be sure to have zip !
+
+{ This part is updated by Sven Goethel for GL4Java 2.1.0.0 }
+------------------------------------------------------------------------------
+
+
+Installing
+
+
+Please read the MS-JVM.txt file !!
+
+{ This part is updated by Sven Goethel for GL4Java 2.1.0.0 }
+------------------------------------------------------------------------------
+
+
+Running
+
+
+To run a Java application, simply type jview followed by the class name.
+
+To run a Java applet, type jview /a followed by the html filename.
+
+To run a Java applet in Internet Explorer, just install the
+GL4Java classes and dll (see MS-JVM.txt) !
+Then you can run all applets :-) !
+No more security overload ...
+
+{ This part is updated by Sven Goethel for GL4Java 2.1.0.0 }
+------------------------------------------------------------------------------
+
+
+Deploying an applet
+
+
+You do not need to create a signed cab-file for your applet.
+Please read above - and MS-JVM.txt !!
+
+Original Text (Kept here for informational purpose):
+====================================================
+Sun and Netscape like signed jar files; IE likes signed cab files. What's
+more, they all use different signing techniques, so it's a bit of a mess to
+get past your browser's security measures, but it can be done.
+
+First of all, you're best off to forget about the Sun Java2 plug-in unless
+your users are willing to go through a huge download (about 10 MB). If you
+want to use the Java2 plug-in in spite of the download size, go to
+java.sun.com and read about their HTML converter. It's a free download that
+will fix up your HTML for both IE and Netscape to automatically download and
+install the Sun VM if it's not already on their system, the first time they
+try to run your applet. It works great, but the download time is too long
+for most users. The benefit is that you only have to maintain one set of
+HTML pages and one deployed copy of the applet.
+
+If you decide to go the route which minimizes the hassle for the end users,
+then you must deploy duplicate web pages (one set for Netscape and one for
+IE), and deploy both a signed jar file and a signed cab file. You need
+Netscape's signtool utility to sign jar files for Netscape's VM. You can
+get it at www.netscape.com. Build and sign a jar file with all of the
+classes which comprise your applet. Then build and sign a cab file with the
+same classes. Remember to use the correct signing tool for each. Then, in
+the page which is to start the applet, insert a little JavaScript code to
+sniff the browser (microsoft.com has app notes on how to do this), and
+redirect to either a Netscape-specific page which starts the applet from the
+jar file, or a Microsoft-specific page which starts the applet from the cab
+file.
+
+One final caveat. Some versions of IE 5 seem to be shipping without a Java
+VM of any kind. When you try to run a Java applet, it starts downloading the
+Microsoft Java VM (about 6.5 MB or so), which takes quite awhile. Even worse,
+in some early releases of IE 5, the hard-coded URL where the browser is
+supposed to go to get the VM is incorrect, so it can't find it, and so it
+basically tells you to go find it yourself. It's best to have a link on
+your page to http://www.microsoft.com/java/download/32updates.htm so they can
+at least get at the VM download if this happens to them.
+
+{ This part is updated by Sven Goethel for GL4Java 2.1.0.0 }
+------------------------------------------------------------------------------
diff --git a/README.SGI-IRIX b/README.SGI-IRIX
new file mode 100644
index 0000000..2e0fc99
--- /dev/null
+++ b/README.SGI-IRIX
@@ -0,0 +1,9 @@
+va2v122 trying setting the environment variable
+JAVA_OPENGL_NATIVE when running under -native.
+
+This preloads the OpenGL libraries and the underlying kernel execution
+vehicles are initialized right and work correctly under pthreads.
+
+------------------
+
+otherwise you may get a segmentation fault !
diff --git a/README.txt b/README.txt
new file mode 100644
index 0000000..846957e
--- /dev/null
+++ b/README.txt
@@ -0,0 +1,88 @@
+\begin{verbatim}
+
+GL4Java,
+a native OpenGL mapping to Java !
+
+Homepage:
+http://www.jausoft.com/gl4java !
+
+1st of all, a little index of all little text-files:
+
+ CHANGES.txt
+ A list of the changes are made through the versions.
+
+ INSTALLER.txt
+ The description howto install GL4Java with
+ the installer via web or as an downloaded application!
+
+ INSTALL.txt
+ The root description howto install GL4Java manually.
+ The following files are linked here:
+ Java2.txt
+ MS-JVM.txt
+ Netscape.txt
+
+ COMPILATION.txt
+ The description howto install GL4Java
+ from scratch (obtain + compiling) !
+
+ Some license informations:
+ LICENSE.txt
+ PNG-LICENSE.txt
+
+ Some historical, further readings:
+ PNG-README.txt
+ README.AdamKing.txt
+ README.RonCemer.txt
+ THANXS.txt
+
+ Some technical short-hand infos:
+ Tesselation.txt
+ VERSIONS.txt
+
+I encourage you te read these files carefully
+and also to read the html/pdf documentation as well,
+befor asking !
+
+You may want to add yourself to the GL4Java mailinglist !
+
+I would be very lucky, if i get some response, critic, inspirations,
+bugfixes and participation.
+
+I changed (see CHANGES) the naming convention for a better
+transparence and porting-ability (sorry for my english)
+- so i changed the lib-name to GL4Java !
+
+<Please forgive me for so many I's :>
+
+The following Unices were succesfully testes:
+
+ o Linux (x86) 2.X
+ o SunOS (Sparc) 5.X
+ o AIX 4.2 (RS/6000)
+ o SGI Irix
+
+ o Macintosh (check http://www.jausoft.com/gl4java.html)
+ o Windows NT 95/98 (x86) 4.0 (sun/netscape)
+ o Windows NT 95/98 (x86) 4.0 (msjvm/ie40)
+
+May be - WE can find a way for a standard OpenGL for Java API !
+
+As you can see, OpenGL-Rendering can be integrated in Java-Programs
+very well. You can use the normal java paint and event - functions
+as you used display and reshape in glut !
+
+See also LICENSE.txt for the license of GL4Java !
+
+Sven Goethel
+January 1999
+April 1999
+September 1999
+April 2000
+
+www : http://www.jausoft.com
+voice : +49-0521-2399440
+fax : +49-0521-2399442
+
+\end{verbatim}
diff --git a/SwingUsage.txt b/SwingUsage.txt
new file mode 100644
index 0000000..bd9cd71
--- /dev/null
+++ b/SwingUsage.txt
@@ -0,0 +1,33 @@
+GL4Java & Swing using Offscreen-Rendering
+=========================================
+
+The demos are located in:
+ demos/GLSwingDemos
+
+Start the demos with:
+ java GLSwingDemoApplet
+ java InternalGLFrameDemo1
+
+Status:
+=======
+
+Using Offscreen OpenGL rendering,
+if true overlapping Swing components are needed !
+
+Otherwise, please use the normal GLCanvas,
+because of fast direct rendering !
+
+The future X11 implementation should respect GLX Version 1.3
+with its PBuffer, which uses the direct rendering (-> hardware acceleration).
+
+The future Win32 implementation should find a way to use the
+hardware accelerated offscreen rendering !
+
+All other suggestions failed while testing.
+Tests for the other ways are still exists in the test directory !
+
+Suggestions are wellcome !
+
+Sven Goethel
+08. June 2000
+26. June 2000
diff --git a/THANXS.txt b/THANXS.txt
new file mode 100644
index 0000000..d7dcddc
--- /dev/null
+++ b/THANXS.txt
@@ -0,0 +1,54 @@
+\begin{verbatim}
+
+I want to THANK :
+
+ o The GNU & GNU/Linux community, and all the brave folks, who
+ wrote open sourced free (L)GPL'ed software.
+ Without them, a project like this is impossible !
+
+ o Leo Chan for porting the OpenGL library to java the first time !
+
+ o Adam King for porting Leo Changs version to integrate
+ the OpenGL-Rendering into the Java-Frame !
+
+ o Tommy Reilly for participating and much improvements
+
+ o Atilla Kolac for participating in GL4Java while his and mine
+ diploma thesis work.
+
+ o Leung Yau Wai for debugging Win32 !
+
+ o Eloi Maduell for keeping me working on the Netscape support
+ and his texture examples.
+
+ o Lee Elson & Odell Reynolds (both NASA)
+ for makeing the source code more compatible
+ and creating binaries for other unices.
+
+ o Gerard Ziemski for porting GL4Java to the MACintosh !
+
+ o Ron Cemer (www.3dstockcharts.com)
+ for start porting GL4Java to the MS-JVM
+ and writing the 1st version of the INSTALLER !
+
+ o Pontus Lidman (Mathcore) for adding
+ GLUT Font support for GL4Java !
+
+ o www.desys.com for paying me a fee,
+ to support offscreen rendering and swing integration !
+
+ o Max Gilead, for maintaining the FAQ and answering so many
+ questions in the mailinglist, and ...
+
+ o Ervin Vervaet (Java MD3 Viewer), Max Gilead (Fictor),
+ Aetius (SurfaceGL), Jean-Yves BRUD, and many other
+ - for helping being GL4Java bug clean.
+
+ o E3Futura & TeatreSoft for inviting me to the
+ www.campus-party.org (2k)
+ and makes my appearance to it possible.
+
+ o And all the many others, who are not named here ...
+
+\end{verbatim}
+
diff --git a/Tesselation.txt b/Tesselation.txt
new file mode 100644
index 0000000..61aaf40
--- /dev/null
+++ b/Tesselation.txt
@@ -0,0 +1,30 @@
+
+Since GL4Java 2.2.0, tesselation is supported !
+================================================
+
+Please look in the sources and/or javadoc
+of:
+ gl4java.GLUTFunc
+
+There exist also many demos:
+
+ demos/MiscDemos/tess
+ demos/MiscDemos/tessdemo
+ demos/MiscDemos/tesswind
+
+DETAILS
+=======
+
+The native callback manager of GL4Java seeks the
+callback function with:
+ - callback method-type (the "which" argument of the Callback function)
+ - the current gl-context
+
+Because the callback manager functions do not know the
+tessellator/nurbs/quadratics id,
+only ONE callback-method for one gl-context and "which"-method
+is supported !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+Sven Goethel
+http://www.jausoft.com
+7th March 2000
diff --git a/Trademarks.txt b/Trademarks.txt
new file mode 100644
index 0000000..83769b3
--- /dev/null
+++ b/Trademarks.txt
@@ -0,0 +1,14 @@
+<BLOCKQUOTE>
+* Java and all Java-based trademarks and logos are trademarks or registered
+trademarks of Sun Microsystems,Inc. in the United States and other countries.
+<BR>
+* Solaris is trademark of Sun Microsystems,Inc.<BR>
+* OpenGL is a registered trademark of SGI.<BR>
+* Windows and Windows NT are registered trademarks of Microsoft Corporation. <BR>
+* IRIX is a registerd trademark of SGI in the United States and other countries.<BR>
+* Mac is a registered trademark of Apple Computer, Inc. <BR>
+* Netscape is a trademark of Netscape Communications Corp.<BR>
+* The names of products and corporations are trademarks or registered trademarks of respective corporation.
+<P>
+</BLOCKQUOTE>
+
diff --git a/VERSIONS.txt b/VERSIONS.txt
new file mode 100644
index 0000000..b03bf96
--- /dev/null
+++ b/VERSIONS.txt
@@ -0,0 +1,43 @@
+\begin{verbatim}
+
+All about the GL4Java Version Numbers
+=====================================
+
+The GL4Java version-string is X.Y.Z.R:
+
+ X - The major version number,
+ this only changes if the architecture has changed significant AND
+ some or complete incompatibilities in the Java-API are drawn.
+ Synchronisation to other ports needed.
+
+ Y - The minor version number,
+ this may change if some changes or add-ons are made
+ without incompatibility in the Java-API/ Java-Files.
+ Synchronisation to other ports is recommended.
+
+ Z - The bugfix number,
+ this may change for bugfix purposes in the
+ Java- or Native-Files !
+ Synchronisation to other ports is not needed.
+
+ R - The release number,
+ for changes in native-libs, packaging, etc.
+ Synchronisation to other ports is not needed.
+
+ The reason for synchronisation within X and Y is because
+ the GL4Java compatibility !
+
+ A GL4Java X.Y.x.x application with an defined X and Y should run on all
+ implementations !
+
+ Another goal is that the gl4java.jar file of version X.Y.xx.xx can be used
+ for any machine !
+
+ My proposal is (from now on 2.0.0.1) to being synchronized for X and Y !
+ Everybody has to make an GL4Java-RFC to all developers on GL4Java
+ (actually three interests :-).
+
+ Please add yourself to the GL4Java mailinglist !
+ Look at http://www.jausoft.com/gl4java !
+
+\end{verbatim}
diff --git a/Win32VC6/GL4JavaJauGLJNI/GL4JavaJauGLJNI.dsp b/Win32VC6/GL4JavaJauGLJNI/GL4JavaJauGLJNI.dsp
new file mode 100755
index 0000000..7938301
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGLJNI/GL4JavaJauGLJNI.dsp
@@ -0,0 +1,63 @@
+# Microsoft Developer Studio Project File - Name="GL4JavaJauGLJNI" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
+
+CFG=GL4JavaJauGLJNI - Win32 Release
+!MESSAGE Dies ist kein g�ltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f�hren Sie den Befehl
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGLJNI.mak".
+!MESSAGE
+!MESSAGE Sie k�nnen beim Ausf�hren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGLJNI.mak" CFG="GL4JavaJauGLJNI - Win32 Release"
+!MESSAGE
+!MESSAGE F�r die Konfiguration stehen zur Auswahl:
+!MESSAGE
+!MESSAGE "GL4JavaJauGLJNI - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "../libs"
+# PROP Intermediate_Dir "../temp"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
+# ADD CPP /nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /FD /c
+# SUBTRACT CPP /Z<none> /YX
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD BASE RSC /l 0x407 /d "NDEBUG"
+# ADD RSC /l 0x407 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib opengl32.lib ../libs/GL4JavaJauGljJNI.lib /nologo /subsystem:windows /dll /machine:I386
+# SUBTRACT LINK32 /pdb:none /incremental:yes /debug
+# Begin Target
+
+# Name "GL4JavaJauGLJNI - Win32 Release"
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\OpenGL_JauJNI_dynfuncs.c
+# End Source File
+# End Target
+# End Project
diff --git a/Win32VC6/GL4JavaJauGLJNI/GL4JavaJauGLJNI.plg b/Win32VC6/GL4JavaJauGLJNI/GL4JavaJauGLJNI.plg
new file mode 100755
index 0000000..137690c
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGLJNI/GL4JavaJauGLJNI.plg
@@ -0,0 +1,33 @@
+<html>
+<body>
+<pre>
+<h1>Erstellungsprotokoll</h1>
+<h3>
+--------------------Konfiguration: GL4JavaJauGLJNI - Win32 Release--------------------
+</h3>
+<h3>Befehlszeilen</h3>
+Erstellen der tempor�ren Datei "D:\TEMP\RSP8D.tmp" mit Inhalten
+[
+/nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /Fo"../temp/" /Fd"../temp/" /FD /c
+"Y:\PROJECTS\JAVA\GL4JAVA\CNativeCode\OpenGL_JauJNI_dynfuncs.c"
+]
+Creating command line "cl.exe @D:\TEMP\RSP8D.tmp"
+Erstellen der tempor�ren Datei "D:\TEMP\RSP8E.tmp" mit Inhalten
+[
+kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib opengl32.lib ../libs/GL4JavaJauGljJNI.lib /nologo /subsystem:windows /dll /incremental:no /pdb:"../libs/GL4JavaJauGLJNI.pdb" /machine:I386 /out:"../libs/GL4JavaJauGLJNI.dll" /implib:"../libs/GL4JavaJauGLJNI.lib"
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\OpenGL_JauJNI_dynfuncs.obj
+]
+Erstellen der Befehlzeile "link.exe @D:\TEMP\RSP8E.tmp"
+<h3>Ausgabefenster</h3>
+Kompilierung l�uft...
+OpenGL_JauJNI_dynfuncs.c
+Linker-Vorgang l�uft...
+ Bibliothek ../libs/GL4JavaJauGLJNI.lib und Objekt ../libs/GL4JavaJauGLJNI.exp wird erstellt
+
+
+
+<h3>Ergebnisse</h3>
+GL4JavaJauGLJNI.dll - 0 Fehler, 0 Warnung(en)
+</pre>
+</body>
+</html>
diff --git a/Win32VC6/GL4JavaJauGLJNI12/GL4JavaJauGLJNI12.dsp b/Win32VC6/GL4JavaJauGLJNI12/GL4JavaJauGLJNI12.dsp
new file mode 100755
index 0000000..890b048
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGLJNI12/GL4JavaJauGLJNI12.dsp
@@ -0,0 +1,63 @@
+# Microsoft Developer Studio Project File - Name="GL4JavaJauGLJNI12" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
+
+CFG=GL4JavaJauGLJNI12 - Win32 Release
+!MESSAGE Dies ist kein g�ltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f�hren Sie den Befehl
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGLJNI12.mak".
+!MESSAGE
+!MESSAGE Sie k�nnen beim Ausf�hren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGLJNI12.mak" CFG="GL4JavaJauGLJNI12 - Win32 Release"
+!MESSAGE
+!MESSAGE F�r die Konfiguration stehen zur Auswahl:
+!MESSAGE
+!MESSAGE "GL4JavaJauGLJNI12 - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "../libs"
+# PROP Intermediate_Dir "../temp"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
+# ADD CPP /nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /FD /c
+# SUBTRACT CPP /Z<none> /YX
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD BASE RSC /l 0x407 /d "NDEBUG"
+# ADD RSC /l 0x407 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib opengl32.lib ../libs/GL4JavaJauGljJNI12.lib /nologo /subsystem:windows /dll /machine:I386
+# SUBTRACT LINK32 /pdb:none /incremental:yes /debug
+# Begin Target
+
+# Name "GL4JavaJauGLJNI12 - Win32 Release"
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\OpenGL_JauJNI12_dynfuncs.c
+# End Source File
+# End Target
+# End Project
diff --git a/Win32VC6/GL4JavaJauGLJNI12/GL4JavaJauGLJNI12.plg b/Win32VC6/GL4JavaJauGLJNI12/GL4JavaJauGLJNI12.plg
new file mode 100755
index 0000000..6c175fd
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGLJNI12/GL4JavaJauGLJNI12.plg
@@ -0,0 +1,33 @@
+<html>
+<body>
+<pre>
+<h1>Erstellungsprotokoll</h1>
+<h3>
+--------------------Konfiguration: GL4JavaJauGLJNI12 - Win32 Release--------------------
+</h3>
+<h3>Befehlszeilen</h3>
+Erstellen der tempor�ren Datei "D:\TEMP\RSP92.tmp" mit Inhalten
+[
+/nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /Fo"../temp/" /Fd"../temp/" /FD /c
+"Y:\PROJECTS\JAVA\GL4JAVA\CNativeCode\OpenGL_JauJNI12_dynfuncs.c"
+]
+Creating command line "cl.exe @D:\TEMP\RSP92.tmp"
+Erstellen der tempor�ren Datei "D:\TEMP\RSP93.tmp" mit Inhalten
+[
+kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib opengl32.lib ../libs/GL4JavaJauGljJNI12.lib /nologo /subsystem:windows /dll /incremental:no /pdb:"../libs/GL4JavaJauGLJNI12.pdb" /machine:I386 /out:"../libs/GL4JavaJauGLJNI12.dll" /implib:"../libs/GL4JavaJauGLJNI12.lib"
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\OpenGL_JauJNI12_dynfuncs.obj
+]
+Erstellen der Befehlzeile "link.exe @D:\TEMP\RSP93.tmp"
+<h3>Ausgabefenster</h3>
+Kompilierung l�uft...
+OpenGL_JauJNI12_dynfuncs.c
+Linker-Vorgang l�uft...
+ Bibliothek ../libs/GL4JavaJauGLJNI12.lib und Objekt ../libs/GL4JavaJauGLJNI12.exp wird erstellt
+
+
+
+<h3>Ergebnisse</h3>
+GL4JavaJauGLJNI12.dll - 0 Fehler, 0 Warnung(en)
+</pre>
+</body>
+</html>
diff --git a/Win32VC6/GL4JavaJauGLJNI12tst/GL4JavaJauGLJNI12tst.dsp b/Win32VC6/GL4JavaJauGLJNI12tst/GL4JavaJauGLJNI12tst.dsp
new file mode 100755
index 0000000..642f4a7
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGLJNI12tst/GL4JavaJauGLJNI12tst.dsp
@@ -0,0 +1,63 @@
+# Microsoft Developer Studio Project File - Name="GL4JavaJauGLJNI12tst" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
+
+CFG=GL4JavaJauGLJNI12tst - Win32 Release
+!MESSAGE Dies ist kein g�ltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f�hren Sie den Befehl
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGLJNI12tst.mak".
+!MESSAGE
+!MESSAGE Sie k�nnen beim Ausf�hren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGLJNI12tst.mak" CFG="GL4JavaJauGLJNI12tst - Win32 Release"
+!MESSAGE
+!MESSAGE F�r die Konfiguration stehen zur Auswahl:
+!MESSAGE
+!MESSAGE "GL4JavaJauGLJNI12tst - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "../libs"
+# PROP Intermediate_Dir "../temp"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
+# ADD CPP /nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /FD /c
+# SUBTRACT CPP /Z<none> /YX
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD BASE RSC /l 0x407 /d "NDEBUG"
+# ADD RSC /l 0x407 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib opengl32.lib ../libs/GL4JavaJauGljJNI12.lib /nologo /subsystem:windows /dll /machine:I386
+# SUBTRACT LINK32 /pdb:none /incremental:yes /debug
+# Begin Target
+
+# Name "GL4JavaJauGLJNI12tst - Win32 Release"
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\OpenGL_JauJNI12tst_dynfuncs.c
+# End Source File
+# End Target
+# End Project
diff --git a/Win32VC6/GL4JavaJauGLJNI12tst/GL4JavaJauGLJNI12tst.plg b/Win32VC6/GL4JavaJauGLJNI12tst/GL4JavaJauGLJNI12tst.plg
new file mode 100755
index 0000000..f6f3303
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGLJNI12tst/GL4JavaJauGLJNI12tst.plg
@@ -0,0 +1,33 @@
+<html>
+<body>
+<pre>
+<h1>Erstellungsprotokoll</h1>
+<h3>
+--------------------Konfiguration: GL4JavaJauGLJNI12tst - Win32 Release--------------------
+</h3>
+<h3>Befehlszeilen</h3>
+Erstellen der tempor�ren Datei "D:\TEMP\RSP97.tmp" mit Inhalten
+[
+/nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /Fo"../temp/" /Fd"../temp/" /FD /c
+"Y:\PROJECTS\JAVA\GL4JAVA\CNativeCode\OpenGL_JauJNI12tst_dynfuncs.c"
+]
+Creating command line "cl.exe @D:\TEMP\RSP97.tmp"
+Erstellen der tempor�ren Datei "D:\TEMP\RSP98.tmp" mit Inhalten
+[
+kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib opengl32.lib ../libs/GL4JavaJauGljJNI12.lib /nologo /subsystem:windows /dll /incremental:no /pdb:"../libs/GL4JavaJauGLJNI12tst.pdb" /machine:I386 /out:"../libs/GL4JavaJauGLJNI12tst.dll" /implib:"../libs/GL4JavaJauGLJNI12tst.lib"
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\OpenGL_JauJNI12tst_dynfuncs.obj
+]
+Erstellen der Befehlzeile "link.exe @D:\TEMP\RSP98.tmp"
+<h3>Ausgabefenster</h3>
+Kompilierung l�uft...
+OpenGL_JauJNI12tst_dynfuncs.c
+Linker-Vorgang l�uft...
+ Bibliothek ../libs/GL4JavaJauGLJNI12tst.lib und Objekt ../libs/GL4JavaJauGLJNI12tst.exp wird erstellt
+
+
+
+<h3>Ergebnisse</h3>
+GL4JavaJauGLJNI12tst.dll - 0 Fehler, 0 Warnung(en)
+</pre>
+</body>
+</html>
diff --git a/Win32VC6/GL4JavaJauGLJNI_g/GL4JavaJauGLJNI_g.dsp b/Win32VC6/GL4JavaJauGLJNI_g/GL4JavaJauGLJNI_g.dsp
new file mode 100755
index 0000000..d551fe0
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGLJNI_g/GL4JavaJauGLJNI_g.dsp
@@ -0,0 +1,63 @@
+# Microsoft Developer Studio Project File - Name="GL4JavaJauGLJNI_g" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
+
+CFG=GL4JavaJauGLJNI_g - Win32 Release
+!MESSAGE Dies ist kein g�ltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f�hren Sie den Befehl
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGLJNI_g.mak".
+!MESSAGE
+!MESSAGE Sie k�nnen beim Ausf�hren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGLJNI_g.mak" CFG="GL4JavaJauGLJNI_g - Win32 Release"
+!MESSAGE
+!MESSAGE F�r die Konfiguration stehen zur Auswahl:
+!MESSAGE
+!MESSAGE "GL4JavaJauGLJNI_g - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "../libs"
+# PROP Intermediate_Dir "../temp"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
+# ADD CPP /nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /FD /c
+# SUBTRACT CPP /Z<none> /YX
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD BASE RSC /l 0x407 /d "NDEBUG"
+# ADD RSC /l 0x407 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib opengl32.lib ../libs/GL4JavaJauGljJNI_g.lib /nologo /subsystem:windows /dll /machine:I386
+# SUBTRACT LINK32 /pdb:none /incremental:yes /debug
+# Begin Target
+
+# Name "GL4JavaJauGLJNI_g - Win32 Release"
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\OpenGL_JauJNI_dynfuncs.c
+# End Source File
+# End Target
+# End Project
diff --git a/Win32VC6/GL4JavaJauGLJNInf/GL4JavaJauGLJNInf.dsp b/Win32VC6/GL4JavaJauGLJNInf/GL4JavaJauGLJNInf.dsp
new file mode 100755
index 0000000..074dc07
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGLJNInf/GL4JavaJauGLJNInf.dsp
@@ -0,0 +1,63 @@
+# Microsoft Developer Studio Project File - Name="GL4JavaJauGLJNInf" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
+
+CFG=GL4JavaJauGLJNInf - Win32 Release
+!MESSAGE Dies ist kein g�ltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f�hren Sie den Befehl
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGLJNInf.mak".
+!MESSAGE
+!MESSAGE Sie k�nnen beim Ausf�hren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGLJNInf.mak" CFG="GL4JavaJauGLJNInf - Win32 Release"
+!MESSAGE
+!MESSAGE F�r die Konfiguration stehen zur Auswahl:
+!MESSAGE
+!MESSAGE "GL4JavaJauGLJNInf - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "../libs"
+# PROP Intermediate_Dir "../temp"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
+# ADD CPP /nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /FD /c
+# SUBTRACT CPP /YX
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD BASE RSC /l 0x407 /d "NDEBUG"
+# ADD RSC /l 0x407 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib opengl32.lib ../libs/GL4JavaJauGljJNI.lib /nologo /subsystem:windows /dll /machine:I386
+# SUBTRACT LINK32 /pdb:none /incremental:yes
+# Begin Target
+
+# Name "GL4JavaJauGLJNInf - Win32 Release"
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\OpenGL_JauJNInf_dynfuncs.c
+# End Source File
+# End Target
+# End Project
diff --git a/Win32VC6/GL4JavaJauGLJNInf/GL4JavaJauGLJNInf.plg b/Win32VC6/GL4JavaJauGLJNInf/GL4JavaJauGLJNInf.plg
new file mode 100755
index 0000000..70ca70e
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGLJNInf/GL4JavaJauGLJNInf.plg
@@ -0,0 +1,33 @@
+<html>
+<body>
+<pre>
+<h1>Erstellungsprotokoll</h1>
+<h3>
+--------------------Konfiguration: GL4JavaJauGLJNInf - Win32 Release--------------------
+</h3>
+<h3>Befehlszeilen</h3>
+Erstellen der tempor�ren Datei "D:\TEMP\RSP9C.tmp" mit Inhalten
+[
+/nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /Fo"../temp/" /Fd"../temp/" /FD /c
+"Y:\PROJECTS\JAVA\GL4JAVA\CNativeCode\OpenGL_JauJNInf_dynfuncs.c"
+]
+Creating command line "cl.exe @D:\TEMP\RSP9C.tmp"
+Erstellen der tempor�ren Datei "D:\TEMP\RSP9D.tmp" mit Inhalten
+[
+kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib opengl32.lib ../libs/GL4JavaJauGljJNI.lib /nologo /subsystem:windows /dll /incremental:no /pdb:"../libs/GL4JavaJauGLJNInf.pdb" /machine:I386 /out:"../libs/GL4JavaJauGLJNInf.dll" /implib:"../libs/GL4JavaJauGLJNInf.lib"
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\OpenGL_JauJNInf_dynfuncs.obj
+]
+Erstellen der Befehlzeile "link.exe @D:\TEMP\RSP9D.tmp"
+<h3>Ausgabefenster</h3>
+Kompilierung l�uft...
+OpenGL_JauJNInf_dynfuncs.c
+Linker-Vorgang l�uft...
+ Bibliothek ../libs/GL4JavaJauGLJNInf.lib und Objekt ../libs/GL4JavaJauGLJNInf.exp wird erstellt
+
+
+
+<h3>Ergebnisse</h3>
+GL4JavaJauGLJNInf.dll - 0 Fehler, 0 Warnung(en)
+</pre>
+</body>
+</html>
diff --git a/Win32VC6/GL4JavaJauGLJNItst/GL4JavaJauGLJNItst.dsp b/Win32VC6/GL4JavaJauGLJNItst/GL4JavaJauGLJNItst.dsp
new file mode 100755
index 0000000..773057d
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGLJNItst/GL4JavaJauGLJNItst.dsp
@@ -0,0 +1,63 @@
+# Microsoft Developer Studio Project File - Name="GL4JavaJauGLJNItst" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
+
+CFG=GL4JavaJauGLJNItst - Win32 Release
+!MESSAGE Dies ist kein g�ltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f�hren Sie den Befehl
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGLJNItst.mak".
+!MESSAGE
+!MESSAGE Sie k�nnen beim Ausf�hren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGLJNItst.mak" CFG="GL4JavaJauGLJNItst - Win32 Release"
+!MESSAGE
+!MESSAGE F�r die Konfiguration stehen zur Auswahl:
+!MESSAGE
+!MESSAGE "GL4JavaJauGLJNItst - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "../libs"
+# PROP Intermediate_Dir "../temp"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
+# ADD CPP /nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /FD /c
+# SUBTRACT CPP /Z<none> /YX
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD BASE RSC /l 0x407 /d "NDEBUG"
+# ADD RSC /l 0x407 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib opengl32.lib ../libs/GL4JavaJauGljJNI.lib /nologo /subsystem:windows /dll /machine:I386
+# SUBTRACT LINK32 /pdb:none /incremental:yes /debug
+# Begin Target
+
+# Name "GL4JavaJauGLJNItst - Win32 Release"
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\OpenGL_JauJNItst_dynfuncs.c
+# End Source File
+# End Target
+# End Project
diff --git a/Win32VC6/GL4JavaJauGLJNItst/GL4JavaJauGLJNItst.plg b/Win32VC6/GL4JavaJauGLJNItst/GL4JavaJauGLJNItst.plg
new file mode 100755
index 0000000..c59f55e
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGLJNItst/GL4JavaJauGLJNItst.plg
@@ -0,0 +1,33 @@
+<html>
+<body>
+<pre>
+<h1>Erstellungsprotokoll</h1>
+<h3>
+--------------------Konfiguration: GL4JavaJauGLJNItst - Win32 Release--------------------
+</h3>
+<h3>Befehlszeilen</h3>
+Erstellen der tempor�ren Datei "D:\TEMP\RSPA1.tmp" mit Inhalten
+[
+/nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /Fo"../temp/" /Fd"../temp/" /FD /c
+"Y:\PROJECTS\JAVA\GL4JAVA\CNativeCode\OpenGL_JauJNItst_dynfuncs.c"
+]
+Creating command line "cl.exe @D:\TEMP\RSPA1.tmp"
+Erstellen der tempor�ren Datei "D:\TEMP\RSPA2.tmp" mit Inhalten
+[
+kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib opengl32.lib ../libs/GL4JavaJauGljJNI.lib /nologo /subsystem:windows /dll /incremental:no /pdb:"../libs/GL4JavaJauGLJNItst.pdb" /machine:I386 /out:"../libs/GL4JavaJauGLJNItst.dll" /implib:"../libs/GL4JavaJauGLJNItst.lib"
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\OpenGL_JauJNItst_dynfuncs.obj
+]
+Erstellen der Befehlzeile "link.exe @D:\TEMP\RSPA2.tmp"
+<h3>Ausgabefenster</h3>
+Kompilierung l�uft...
+OpenGL_JauJNItst_dynfuncs.c
+Linker-Vorgang l�uft...
+ Bibliothek ../libs/GL4JavaJauGLJNItst.lib und Objekt ../libs/GL4JavaJauGLJNItst.exp wird erstellt
+
+
+
+<h3>Ergebnisse</h3>
+GL4JavaJauGLJNItst.dll - 0 Fehler, 0 Warnung(en)
+</pre>
+</body>
+</html>
diff --git a/Win32VC6/GL4JavaJauGLUJNI/GL4JavaJauGLUJNI.dsp b/Win32VC6/GL4JavaJauGLUJNI/GL4JavaJauGLUJNI.dsp
new file mode 100755
index 0000000..3d231af
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGLUJNI/GL4JavaJauGLUJNI.dsp
@@ -0,0 +1,67 @@
+# Microsoft Developer Studio Project File - Name="GL4JavaJauGLUJNI" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
+
+CFG=GL4JavaJauGLUJNI - Win32 Release
+!MESSAGE Dies ist kein g�ltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f�hren Sie den Befehl
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGLUJNI.mak".
+!MESSAGE
+!MESSAGE Sie k�nnen beim Ausf�hren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGLUJNI.mak" CFG="GL4JavaJauGLUJNI - Win32 Release"
+!MESSAGE
+!MESSAGE F�r die Konfiguration stehen zur Auswahl:
+!MESSAGE
+!MESSAGE "GL4JavaJauGLUJNI - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "../libs"
+# PROP Intermediate_Dir "../temp"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
+# ADD CPP /nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /FD /c
+# SUBTRACT CPP /YX
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD BASE RSC /l 0x407 /d "NDEBUG"
+# ADD RSC /l 0x407 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib glu32.lib ../libs/GL4JavaJauGljJNI.lib /nologo /subsystem:windows /dll /machine:I386
+# SUBTRACT LINK32 /pdb:none /incremental:yes
+# Begin Target
+
+# Name "GL4JavaJauGLUJNI - Win32 Release"
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\GLUCallbackJNI.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\OpenGLU_JauJNI_funcs.c
+# End Source File
+# End Target
+# End Project
diff --git a/Win32VC6/GL4JavaJauGLUJNI/GL4JavaJauGLUJNI.plg b/Win32VC6/GL4JavaJauGLUJNI/GL4JavaJauGLUJNI.plg
new file mode 100755
index 0000000..121c0e8
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGLUJNI/GL4JavaJauGLUJNI.plg
@@ -0,0 +1,37 @@
+<html>
+<body>
+<pre>
+<h1>Erstellungsprotokoll</h1>
+<h3>
+--------------------Konfiguration: GL4JavaJauGLUJNI - Win32 Release--------------------
+</h3>
+<h3>Befehlszeilen</h3>
+Erstellen der tempor�ren Datei "D:\TEMP\RSPA6.tmp" mit Inhalten
+[
+/nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /Fo"../temp/" /Fd"../temp/" /FD /c
+"Y:\PROJECTS\JAVA\GL4JAVA\CNativeCode\GLUCallbackJNI.c"
+"Y:\PROJECTS\JAVA\GL4JAVA\CNativeCode\OpenGLU_JauJNI_funcs.c"
+]
+Creating command line "cl.exe @D:\TEMP\RSPA6.tmp"
+Erstellen der tempor�ren Datei "D:\TEMP\RSPA7.tmp" mit Inhalten
+[
+kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib glu32.lib ../libs/GL4JavaJauGljJNI.lib /nologo /subsystem:windows /dll /incremental:no /pdb:"../libs/GL4JavaJauGLUJNI.pdb" /machine:I386 /out:"../libs/GL4JavaJauGLUJNI.dll" /implib:"../libs/GL4JavaJauGLUJNI.lib"
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\GLUCallbackJNI.obj
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\OpenGLU_JauJNI_funcs.obj
+]
+Erstellen der Befehlzeile "link.exe @D:\TEMP\RSPA7.tmp"
+<h3>Ausgabefenster</h3>
+Kompilierung l�uft...
+GLUCallbackJNI.c
+OpenGLU_JauJNI_funcs.c
+Generieren von Code...
+Linker-Vorgang l�uft...
+ Bibliothek ../libs/GL4JavaJauGLUJNI.lib und Objekt ../libs/GL4JavaJauGLUJNI.exp wird erstellt
+
+
+
+<h3>Ergebnisse</h3>
+GL4JavaJauGLUJNI.dll - 0 Fehler, 0 Warnung(en)
+</pre>
+</body>
+</html>
diff --git a/Win32VC6/GL4JavaJauGLUJNI12/GL4JavaJauGLUJNI12.dsp b/Win32VC6/GL4JavaJauGLUJNI12/GL4JavaJauGLUJNI12.dsp
new file mode 100755
index 0000000..358e941
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGLUJNI12/GL4JavaJauGLUJNI12.dsp
@@ -0,0 +1,67 @@
+# Microsoft Developer Studio Project File - Name="GL4JavaJauGLUJNI12" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
+
+CFG=GL4JavaJauGLUJNI12 - Win32 Release
+!MESSAGE Dies ist kein g�ltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f�hren Sie den Befehl
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGLUJNI12.mak".
+!MESSAGE
+!MESSAGE Sie k�nnen beim Ausf�hren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGLUJNI12.mak" CFG="GL4JavaJauGLUJNI12 - Win32 Release"
+!MESSAGE
+!MESSAGE F�r die Konfiguration stehen zur Auswahl:
+!MESSAGE
+!MESSAGE "GL4JavaJauGLUJNI12 - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "../libs"
+# PROP Intermediate_Dir "../temp"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
+# ADD CPP /nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /FD /c
+# SUBTRACT CPP /YX
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD BASE RSC /l 0x407 /d "NDEBUG"
+# ADD RSC /l 0x407 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib glu32.lib ../libs/GL4JavaJauGljJNI12.lib /nologo /subsystem:windows /dll /machine:I386
+# SUBTRACT LINK32 /pdb:none /incremental:yes
+# Begin Target
+
+# Name "GL4JavaJauGLUJNI12 - Win32 Release"
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\GLUCallbackJNI.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\OpenGLU_JauJNI12_funcs.c
+# End Source File
+# End Target
+# End Project
diff --git a/Win32VC6/GL4JavaJauGLUJNI12/GL4JavaJauGLUJNI12.plg b/Win32VC6/GL4JavaJauGLUJNI12/GL4JavaJauGLUJNI12.plg
new file mode 100755
index 0000000..3fa77db
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGLUJNI12/GL4JavaJauGLUJNI12.plg
@@ -0,0 +1,34 @@
+<html>
+<body>
+<pre>
+<h1>Erstellungsprotokoll</h1>
+<h3>
+--------------------Konfiguration: GL4JavaJauGLUJNI12 - Win32 Release--------------------
+</h3>
+<h3>Befehlszeilen</h3>
+Erstellen der tempor�ren Datei "D:\TEMP\RSPAB.tmp" mit Inhalten
+[
+/nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /Fo"../temp/" /Fd"../temp/" /FD /c
+"Y:\PROJECTS\JAVA\GL4JAVA\CNativeCode\OpenGLU_JauJNI12_funcs.c"
+]
+Creating command line "cl.exe @D:\TEMP\RSPAB.tmp"
+Erstellen der tempor�ren Datei "D:\TEMP\RSPAC.tmp" mit Inhalten
+[
+kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib glu32.lib ../libs/GL4JavaJauGljJNI12.lib /nologo /subsystem:windows /dll /incremental:no /pdb:"../libs/GL4JavaJauGLUJNI12.pdb" /machine:I386 /out:"../libs/GL4JavaJauGLUJNI12.dll" /implib:"../libs/GL4JavaJauGLUJNI12.lib"
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\GLUCallbackJNI.obj
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\OpenGLU_JauJNI12_funcs.obj
+]
+Erstellen der Befehlzeile "link.exe @D:\TEMP\RSPAC.tmp"
+<h3>Ausgabefenster</h3>
+Kompilierung l�uft...
+OpenGLU_JauJNI12_funcs.c
+Linker-Vorgang l�uft...
+ Bibliothek ../libs/GL4JavaJauGLUJNI12.lib und Objekt ../libs/GL4JavaJauGLUJNI12.exp wird erstellt
+
+
+
+<h3>Ergebnisse</h3>
+GL4JavaJauGLUJNI12.dll - 0 Fehler, 0 Warnung(en)
+</pre>
+</body>
+</html>
diff --git a/Win32VC6/GL4JavaJauGLUJNI12tst/GL4JavaJauGLUJNI12tst.dsp b/Win32VC6/GL4JavaJauGLUJNI12tst/GL4JavaJauGLUJNI12tst.dsp
new file mode 100755
index 0000000..286a9f0
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGLUJNI12tst/GL4JavaJauGLUJNI12tst.dsp
@@ -0,0 +1,67 @@
+# Microsoft Developer Studio Project File - Name="GL4JavaJauGLUJNI12tst" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
+
+CFG=GL4JavaJauGLUJNI12tst - Win32 Release
+!MESSAGE Dies ist kein g�ltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f�hren Sie den Befehl
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGLUJNI12tst.mak".
+!MESSAGE
+!MESSAGE Sie k�nnen beim Ausf�hren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGLUJNI12tst.mak" CFG="GL4JavaJauGLUJNI12tst - Win32 Release"
+!MESSAGE
+!MESSAGE F�r die Konfiguration stehen zur Auswahl:
+!MESSAGE
+!MESSAGE "GL4JavaJauGLUJNI12tst - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "../libs"
+# PROP Intermediate_Dir "../temp"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
+# ADD CPP /nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /FD /c
+# SUBTRACT CPP /YX
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD BASE RSC /l 0x407 /d "NDEBUG"
+# ADD RSC /l 0x407 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib glu32.lib ../libs/GL4JavaJauGljJNI12.lib /nologo /subsystem:windows /dll /machine:I386
+# SUBTRACT LINK32 /pdb:none /incremental:yes
+# Begin Target
+
+# Name "GL4JavaJauGLUJNI12tst - Win32 Release"
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\GLUCallbackJNI.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\OpenGLU_JauJNI12tst_funcs.c
+# End Source File
+# End Target
+# End Project
diff --git a/Win32VC6/GL4JavaJauGLUJNI12tst/GL4JavaJauGLUJNI12tst.plg b/Win32VC6/GL4JavaJauGLUJNI12tst/GL4JavaJauGLUJNI12tst.plg
new file mode 100755
index 0000000..89f7729
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGLUJNI12tst/GL4JavaJauGLUJNI12tst.plg
@@ -0,0 +1,34 @@
+<html>
+<body>
+<pre>
+<h1>Erstellungsprotokoll</h1>
+<h3>
+--------------------Konfiguration: GL4JavaJauGLUJNI12tst - Win32 Release--------------------
+</h3>
+<h3>Befehlszeilen</h3>
+Erstellen der tempor�ren Datei "D:\TEMP\RSPB0.tmp" mit Inhalten
+[
+/nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /Fo"../temp/" /Fd"../temp/" /FD /c
+"Y:\PROJECTS\JAVA\GL4JAVA\CNativeCode\OpenGLU_JauJNI12tst_funcs.c"
+]
+Creating command line "cl.exe @D:\TEMP\RSPB0.tmp"
+Erstellen der tempor�ren Datei "D:\TEMP\RSPB1.tmp" mit Inhalten
+[
+kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib glu32.lib ../libs/GL4JavaJauGljJNI12.lib /nologo /subsystem:windows /dll /incremental:no /pdb:"../libs/GL4JavaJauGLUJNI12tst.pdb" /machine:I386 /out:"../libs/GL4JavaJauGLUJNI12tst.dll" /implib:"../libs/GL4JavaJauGLUJNI12tst.lib"
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\GLUCallbackJNI.obj
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\OpenGLU_JauJNI12tst_funcs.obj
+]
+Erstellen der Befehlzeile "link.exe @D:\TEMP\RSPB1.tmp"
+<h3>Ausgabefenster</h3>
+Kompilierung l�uft...
+OpenGLU_JauJNI12tst_funcs.c
+Linker-Vorgang l�uft...
+ Bibliothek ../libs/GL4JavaJauGLUJNI12tst.lib und Objekt ../libs/GL4JavaJauGLUJNI12tst.exp wird erstellt
+
+
+
+<h3>Ergebnisse</h3>
+GL4JavaJauGLUJNI12tst.dll - 0 Fehler, 0 Warnung(en)
+</pre>
+</body>
+</html>
diff --git a/Win32VC6/GL4JavaJauGLUJNInf/GL4JavaJauGLUJNI.dsp b/Win32VC6/GL4JavaJauGLUJNInf/GL4JavaJauGLUJNI.dsp
new file mode 100755
index 0000000..8d43ff8
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGLUJNInf/GL4JavaJauGLUJNI.dsp
@@ -0,0 +1,67 @@
+# Microsoft Developer Studio Project File - Name="GL4JavaJauGLUJNInf" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
+
+CFG=GL4JavaJauGLUJNInf - Win32 Release
+!MESSAGE Dies ist kein g�ltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f�hren Sie den Befehl
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGLUJNI.mak".
+!MESSAGE
+!MESSAGE Sie k�nnen beim Ausf�hren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGLUJNI.mak" CFG="GL4JavaJauGLUJNInf - Win32 Release"
+!MESSAGE
+!MESSAGE F�r die Konfiguration stehen zur Auswahl:
+!MESSAGE
+!MESSAGE "GL4JavaJauGLUJNInf - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "../libs"
+# PROP Intermediate_Dir "../temp"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
+# ADD CPP /nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /FD /c
+# SUBTRACT CPP /YX
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD BASE RSC /l 0x407 /d "NDEBUG"
+# ADD RSC /l 0x407 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib glu32.lib ../libs/GL4JavaJauGljJNI.lib /nologo /subsystem:windows /dll /machine:I386 /out:"../libs/GL4JavaJauGLUJNInf.dll"
+# SUBTRACT LINK32 /pdb:none /incremental:yes
+# Begin Target
+
+# Name "GL4JavaJauGLUJNInf - Win32 Release"
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\GLUCallbackJNI.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\OpenGLU_JauJNInf_funcs.c
+# End Source File
+# End Target
+# End Project
diff --git a/Win32VC6/GL4JavaJauGLUJNInf/GL4JavaJauGLUJNI.plg b/Win32VC6/GL4JavaJauGLUJNInf/GL4JavaJauGLUJNI.plg
new file mode 100755
index 0000000..11616e7
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGLUJNInf/GL4JavaJauGLUJNI.plg
@@ -0,0 +1,34 @@
+<html>
+<body>
+<pre>
+<h1>Erstellungsprotokoll</h1>
+<h3>
+--------------------Konfiguration: GL4JavaJauGLUJNInf - Win32 Release--------------------
+</h3>
+<h3>Befehlszeilen</h3>
+Erstellen der tempor�ren Datei "D:\TEMP\RSPB5.tmp" mit Inhalten
+[
+/nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /Fo"../temp/" /Fd"../temp/" /FD /c
+"Y:\PROJECTS\JAVA\GL4JAVA\CNativeCode\OpenGLU_JauJNInf_funcs.c"
+]
+Creating command line "cl.exe @D:\TEMP\RSPB5.tmp"
+Erstellen der tempor�ren Datei "D:\TEMP\RSPB6.tmp" mit Inhalten
+[
+kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib glu32.lib ../libs/GL4JavaJauGljJNI.lib /nologo /subsystem:windows /dll /incremental:no /pdb:"../libs/GL4JavaJauGLUJNInf.pdb" /machine:I386 /out:"../libs/GL4JavaJauGLUJNInf.dll" /implib:"../libs/GL4JavaJauGLUJNInf.lib"
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\GLUCallbackJNI.obj
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\OpenGLU_JauJNInf_funcs.obj
+]
+Erstellen der Befehlzeile "link.exe @D:\TEMP\RSPB6.tmp"
+<h3>Ausgabefenster</h3>
+Kompilierung l�uft...
+OpenGLU_JauJNInf_funcs.c
+Linker-Vorgang l�uft...
+ Bibliothek ../libs/GL4JavaJauGLUJNInf.lib und Objekt ../libs/GL4JavaJauGLUJNInf.exp wird erstellt
+
+
+
+<h3>Ergebnisse</h3>
+GL4JavaJauGLUJNInf.dll - 0 Fehler, 0 Warnung(en)
+</pre>
+</body>
+</html>
diff --git a/Win32VC6/GL4JavaJauGLUJNItst/GL4JavaJauGLUJNItst.dsp b/Win32VC6/GL4JavaJauGLUJNItst/GL4JavaJauGLUJNItst.dsp
new file mode 100755
index 0000000..174d9cc
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGLUJNItst/GL4JavaJauGLUJNItst.dsp
@@ -0,0 +1,67 @@
+# Microsoft Developer Studio Project File - Name="GL4JavaJauGLUJNItst" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
+
+CFG=GL4JavaJauGLUJNItst - Win32 Release
+!MESSAGE Dies ist kein g�ltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f�hren Sie den Befehl
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGLUJNItst.mak".
+!MESSAGE
+!MESSAGE Sie k�nnen beim Ausf�hren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGLUJNItst.mak" CFG="GL4JavaJauGLUJNItst - Win32 Release"
+!MESSAGE
+!MESSAGE F�r die Konfiguration stehen zur Auswahl:
+!MESSAGE
+!MESSAGE "GL4JavaJauGLUJNItst - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "../libs"
+# PROP Intermediate_Dir "../temp"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
+# ADD CPP /nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /FD /c
+# SUBTRACT CPP /YX
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD BASE RSC /l 0x407 /d "NDEBUG"
+# ADD RSC /l 0x407 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib glu32.lib ../libs/GL4JavaJauGljJNI.lib /nologo /subsystem:windows /dll /machine:I386
+# SUBTRACT LINK32 /pdb:none /incremental:yes
+# Begin Target
+
+# Name "GL4JavaJauGLUJNItst - Win32 Release"
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\GLUCallbackJNI.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\OpenGLU_JauJNItst_funcs.c
+# End Source File
+# End Target
+# End Project
diff --git a/Win32VC6/GL4JavaJauGLUJNItst/GL4JavaJauGLUJNItst.plg b/Win32VC6/GL4JavaJauGLUJNItst/GL4JavaJauGLUJNItst.plg
new file mode 100755
index 0000000..67f0ef2
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGLUJNItst/GL4JavaJauGLUJNItst.plg
@@ -0,0 +1,34 @@
+<html>
+<body>
+<pre>
+<h1>Erstellungsprotokoll</h1>
+<h3>
+--------------------Konfiguration: GL4JavaJauGLUJNItst - Win32 Release--------------------
+</h3>
+<h3>Befehlszeilen</h3>
+Erstellen der tempor�ren Datei "D:\TEMP\RSPBA.tmp" mit Inhalten
+[
+/nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /Fo"../temp/" /Fd"../temp/" /FD /c
+"Y:\PROJECTS\JAVA\GL4JAVA\CNativeCode\OpenGLU_JauJNItst_funcs.c"
+]
+Creating command line "cl.exe @D:\TEMP\RSPBA.tmp"
+Erstellen der tempor�ren Datei "D:\TEMP\RSPBB.tmp" mit Inhalten
+[
+kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib glu32.lib ../libs/GL4JavaJauGljJNI.lib /nologo /subsystem:windows /dll /incremental:no /pdb:"../libs/GL4JavaJauGLUJNItst.pdb" /machine:I386 /out:"../libs/GL4JavaJauGLUJNItst.dll" /implib:"../libs/GL4JavaJauGLUJNItst.lib"
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\GLUCallbackJNI.obj
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\OpenGLU_JauJNItst_funcs.obj
+]
+Erstellen der Befehlzeile "link.exe @D:\TEMP\RSPBB.tmp"
+<h3>Ausgabefenster</h3>
+Kompilierung l�uft...
+OpenGLU_JauJNItst_funcs.c
+Linker-Vorgang l�uft...
+ Bibliothek ../libs/GL4JavaJauGLUJNItst.lib und Objekt ../libs/GL4JavaJauGLUJNItst.exp wird erstellt
+
+
+
+<h3>Ergebnisse</h3>
+GL4JavaJauGLUJNItst.dll - 0 Fehler, 0 Warnung(en)
+</pre>
+</body>
+</html>
diff --git a/Win32VC6/GL4JavaJauGljJNI/GL4JavaJauGljJNI.dsp b/Win32VC6/GL4JavaJauGljJNI/GL4JavaJauGljJNI.dsp
new file mode 100755
index 0000000..cff369f
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGljJNI/GL4JavaJauGljJNI.dsp
@@ -0,0 +1,75 @@
+# Microsoft Developer Studio Project File - Name="GL4JavaJauGljJNI" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
+
+CFG=GL4JavaJauGljJNI - Win32 Release
+!MESSAGE Dies ist kein g�ltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f�hren Sie den Befehl
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGljJNI.mak".
+!MESSAGE
+!MESSAGE Sie k�nnen beim Ausf�hren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGljJNI.mak" CFG="GL4JavaJauGljJNI - Win32 Release"
+!MESSAGE
+!MESSAGE F�r die Konfiguration stehen zur Auswahl:
+!MESSAGE
+!MESSAGE "GL4JavaJauGljJNI - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "../libs"
+# PROP Intermediate_Dir "../temp"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
+# ADD CPP /nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "NO_VSNPRINTF" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /FD /c
+# SUBTRACT CPP /Z<none>
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD BASE RSC /l 0x407 /d "NDEBUG"
+# ADD RSC /l 0x407 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib opengl32.lib /nologo /subsystem:windows /dll /machine:I386
+# SUBTRACT LINK32 /pdb:none /incremental:yes /debug
+# Begin Target
+
+# Name "GL4JavaJauGljJNI - Win32 Release"
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\GLCallbackHelperJNI.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\jnitools.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\OpenGL_misc.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\OpenGL_Win32.c
+# End Source File
+# End Target
+# End Project
diff --git a/Win32VC6/GL4JavaJauGljJNI/GL4JavaJauGljJNI.plg b/Win32VC6/GL4JavaJauGljJNI/GL4JavaJauGljJNI.plg
new file mode 100755
index 0000000..67f6ff2
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGljJNI/GL4JavaJauGljJNI.plg
@@ -0,0 +1,43 @@
+<html>
+<body>
+<pre>
+<h1>Erstellungsprotokoll</h1>
+<h3>
+--------------------Konfiguration: GL4JavaJauGljJNI - Win32 Release--------------------
+</h3>
+<h3>Befehlszeilen</h3>
+Erstellen der tempor�ren Datei "D:\TEMP\RSP83.tmp" mit Inhalten
+[
+/nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "NO_VSNPRINTF" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /Fo"../temp/" /Fd"../temp/" /FD /c
+"Y:\PROJECTS\JAVA\GL4JAVA\CNativeCode\GLCallbackHelperJNI.c"
+"Y:\PROJECTS\JAVA\GL4JAVA\CNativeCode\jnitools.c"
+"Y:\PROJECTS\JAVA\GL4JAVA\CNativeCode\OpenGL_misc.c"
+"Y:\PROJECTS\JAVA\GL4JAVA\CNativeCode\OpenGL_Win32.c"
+]
+Creating command line "cl.exe @D:\TEMP\RSP83.tmp"
+Erstellen der tempor�ren Datei "D:\TEMP\RSP84.tmp" mit Inhalten
+[
+kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib opengl32.lib /nologo /subsystem:windows /dll /incremental:no /pdb:"../libs/GL4JavaJauGljJNI.pdb" /machine:I386 /out:"../libs/GL4JavaJauGljJNI.dll" /implib:"../libs/GL4JavaJauGljJNI.lib"
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\GLCallbackHelperJNI.obj
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\jnitools.obj
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\OpenGL_misc.obj
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\OpenGL_Win32.obj
+]
+Erstellen der Befehlzeile "link.exe @D:\TEMP\RSP84.tmp"
+<h3>Ausgabefenster</h3>
+Kompilierung l�uft...
+GLCallbackHelperJNI.c
+jnitools.c
+OpenGL_misc.c
+OpenGL_Win32.c
+Generieren von Code...
+Linker-Vorgang l�uft...
+ Bibliothek ../libs/GL4JavaJauGljJNI.lib und Objekt ../libs/GL4JavaJauGljJNI.exp wird erstellt
+
+
+
+<h3>Ergebnisse</h3>
+GL4JavaJauGljJNI.dll - 0 Fehler, 0 Warnung(en)
+</pre>
+</body>
+</html>
diff --git a/Win32VC6/GL4JavaJauGljJNI12/GL4JavaJauGljJNI12.dsp b/Win32VC6/GL4JavaJauGljJNI12/GL4JavaJauGljJNI12.dsp
new file mode 100755
index 0000000..c323340
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGljJNI12/GL4JavaJauGljJNI12.dsp
@@ -0,0 +1,75 @@
+# Microsoft Developer Studio Project File - Name="GL4JavaJauGljJNI12" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
+
+CFG=GL4JavaJauGljJNI12 - Win32 Release
+!MESSAGE Dies ist kein g�ltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f�hren Sie den Befehl
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGljJNI12.mak".
+!MESSAGE
+!MESSAGE Sie k�nnen beim Ausf�hren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGljJNI12.mak" CFG="GL4JavaJauGljJNI12 - Win32 Release"
+!MESSAGE
+!MESSAGE F�r die Konfiguration stehen zur Auswahl:
+!MESSAGE
+!MESSAGE "GL4JavaJauGljJNI12 - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "../libs"
+# PROP Intermediate_Dir "../temp"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
+# ADD CPP /nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "NO_VSNPRINTF" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /FD /c
+# SUBTRACT CPP /Z<none>
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD BASE RSC /l 0x407 /d "NDEBUG"
+# ADD RSC /l 0x407 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib opengl32.lib /nologo /subsystem:windows /dll /machine:I386
+# SUBTRACT LINK32 /pdb:none /incremental:yes /debug
+# Begin Target
+
+# Name "GL4JavaJauGljJNI12 - Win32 Release"
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\GLCallbackHelperJNI.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\jni12tools.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\OpenGL_misc.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\OpenGL_Win32.c
+# End Source File
+# End Target
+# End Project
diff --git a/Win32VC6/GL4JavaJauGljJNI12/GL4JavaJauGljJNI12.plg b/Win32VC6/GL4JavaJauGljJNI12/GL4JavaJauGljJNI12.plg
new file mode 100755
index 0000000..8d12d2c
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGljJNI12/GL4JavaJauGljJNI12.plg
@@ -0,0 +1,36 @@
+<html>
+<body>
+<pre>
+<h1>Erstellungsprotokoll</h1>
+<h3>
+--------------------Konfiguration: GL4JavaJauGljJNI12 - Win32 Release--------------------
+</h3>
+<h3>Befehlszeilen</h3>
+Erstellen der tempor�ren Datei "D:\TEMP\RSP88.tmp" mit Inhalten
+[
+/nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "NO_VSNPRINTF" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /Fo"../temp/" /Fd"../temp/" /FD /c
+"Y:\PROJECTS\JAVA\GL4JAVA\CNativeCode\jni12tools.c"
+]
+Creating command line "cl.exe @D:\TEMP\RSP88.tmp"
+Erstellen der tempor�ren Datei "D:\TEMP\RSP89.tmp" mit Inhalten
+[
+kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib opengl32.lib /nologo /subsystem:windows /dll /incremental:no /pdb:"../libs/GL4JavaJauGljJNI12.pdb" /machine:I386 /out:"../libs/GL4JavaJauGljJNI12.dll" /implib:"../libs/GL4JavaJauGljJNI12.lib"
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\GLCallbackHelperJNI.obj
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\jni12tools.obj
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\OpenGL_misc.obj
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\OpenGL_Win32.obj
+]
+Erstellen der Befehlzeile "link.exe @D:\TEMP\RSP89.tmp"
+<h3>Ausgabefenster</h3>
+Kompilierung l�uft...
+jni12tools.c
+Linker-Vorgang l�uft...
+ Bibliothek ../libs/GL4JavaJauGljJNI12.lib und Objekt ../libs/GL4JavaJauGljJNI12.exp wird erstellt
+
+
+
+<h3>Ergebnisse</h3>
+GL4JavaJauGljJNI12.dll - 0 Fehler, 0 Warnung(en)
+</pre>
+</body>
+</html>
diff --git a/Win32VC6/GL4JavaJauGljJNI_g/GL4JavaJauGljJNI_g.dsp b/Win32VC6/GL4JavaJauGljJNI_g/GL4JavaJauGljJNI_g.dsp
new file mode 100755
index 0000000..d24cb1a
--- /dev/null
+++ b/Win32VC6/GL4JavaJauGljJNI_g/GL4JavaJauGljJNI_g.dsp
@@ -0,0 +1,75 @@
+# Microsoft Developer Studio Project File - Name="GL4JavaJauGljJNI_g" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
+
+CFG=GL4JavaJauGljJNI_g - Win32 Release
+!MESSAGE Dies ist kein g�ltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f�hren Sie den Befehl
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGljJNI_g.mak".
+!MESSAGE
+!MESSAGE Sie k�nnen beim Ausf�hren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaJauGljJNI_g.mak" CFG="GL4JavaJauGljJNI_g - Win32 Release"
+!MESSAGE
+!MESSAGE F�r die Konfiguration stehen zur Auswahl:
+!MESSAGE
+!MESSAGE "GL4JavaJauGljJNI_g - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "../libs"
+# PROP Intermediate_Dir "../temp"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
+# ADD CPP /nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "NO_VSNPRINTF" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /FD /c
+# SUBTRACT CPP /Z<none>
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD BASE RSC /l 0x407 /d "NDEBUG"
+# ADD RSC /l 0x407 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib opengl32.lib /nologo /subsystem:windows /dll /machine:I386
+# SUBTRACT LINK32 /pdb:none /incremental:yes /debug
+# Begin Target
+
+# Name "GL4JavaJauGljJNI_g - Win32 Release"
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\GLCallbackHelperJNI.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\jnitools.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\OpenGL_misc.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\OpenGL_Win32.c
+# End Source File
+# End Target
+# End Project
diff --git a/Win32VC6/GL4JavaMSJDirect/GL4JavaMSJDirect.dsp b/Win32VC6/GL4JavaMSJDirect/GL4JavaMSJDirect.dsp
new file mode 100755
index 0000000..8471a8d
--- /dev/null
+++ b/Win32VC6/GL4JavaMSJDirect/GL4JavaMSJDirect.dsp
@@ -0,0 +1,63 @@
+# Microsoft Developer Studio Project File - Name="GL4JavaMSJDirect" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
+
+CFG=GL4JavaMSJDirect - Win32 Release
+!MESSAGE Dies ist kein g�ltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE
+!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f�hren Sie den Befehl
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaMSJDirect.mak".
+!MESSAGE
+!MESSAGE Sie k�nnen beim Ausf�hren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE
+!MESSAGE NMAKE /f "GL4JavaMSJDirect.mak" CFG="GL4JavaMSJDirect - Win32 Release"
+!MESSAGE
+!MESSAGE F�r die Konfiguration stehen zur Auswahl:
+!MESSAGE
+!MESSAGE "GL4JavaMSJDirect - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "../libs"
+# PROP Intermediate_Dir "../temp"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
+# ADD CPP /nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "NO_VSNPRINTF" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /FD /c
+# SUBTRACT CPP /Z<none>
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
+# ADD BASE RSC /l 0x407 /d "NDEBUG"
+# ADD RSC /l 0x407 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib opengl32.lib glu32.lib ../libs/GL4JavaJauGljJNI.lib /nologo /subsystem:windows /dll /machine:I386 /out:"../libs/GL4JavaGljMSJDirect.dll"
+# SUBTRACT LINK32 /pdb:none /incremental:yes /map /debug
+# Begin Target
+
+# Name "GL4JavaMSJDirect - Win32 Release"
+# Begin Source File
+
+SOURCE=..\..\CNativeCode\OpenGL_Win32_JDirect.c
+# End Source File
+# End Target
+# End Project
diff --git a/Win32VC6/GL4JavaMSJDirect/GL4JavaMSJDirect.plg b/Win32VC6/GL4JavaMSJDirect/GL4JavaMSJDirect.plg
new file mode 100755
index 0000000..7cf4c9b
--- /dev/null
+++ b/Win32VC6/GL4JavaMSJDirect/GL4JavaMSJDirect.plg
@@ -0,0 +1,33 @@
+<html>
+<body>
+<pre>
+<h1>Erstellungsprotokoll</h1>
+<h3>
+--------------------Konfiguration: GL4JavaMSJDirect - Win32 Release--------------------
+</h3>
+<h3>Befehlszeilen</h3>
+Erstellen der tempor�ren Datei "D:\TEMP\RSPBF.tmp" mit Inhalten
+[
+/nologo /MT /W3 /GX /O2 /I "d:\java2\include" /I "d:\java2\include\win32" /I "..\..\CCLassHeaders" /I "..\..\CNativeCode" /D "NO_VSNPRINTF" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_WIN32_" /D "_MSVC_" /D "_MT" /D "_GL_DYNAMIC_BINDING_" /Fo"../temp/" /Fd"../temp/" /FD /c
+"Y:\PROJECTS\JAVA\GL4JAVA\CNativeCode\OpenGL_Win32_JDirect.c"
+]
+Creating command line "cl.exe @D:\TEMP\RSPBF.tmp"
+Erstellen der tempor�ren Datei "D:\TEMP\RSPC0.tmp" mit Inhalten
+[
+kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib opengl32.lib glu32.lib ../libs/GL4JavaJauGljJNI.lib /nologo /subsystem:windows /dll /incremental:no /pdb:"../libs/GL4JavaGljMSJDirect.pdb" /machine:I386 /out:"../libs/GL4JavaGljMSJDirect.dll" /implib:"../libs/GL4JavaGljMSJDirect.lib"
+\PROJECTS\JAVA\GL4JAVA\WIN32VC6\temp\OpenGL_Win32_JDirect.obj
+]
+Erstellen der Befehlzeile "link.exe @D:\TEMP\RSPC0.tmp"
+<h3>Ausgabefenster</h3>
+Kompilierung l�uft...
+OpenGL_Win32_JDirect.c
+Linker-Vorgang l�uft...
+ Bibliothek ../libs/GL4JavaGljMSJDirect.lib und Objekt ../libs/GL4JavaGljMSJDirect.exp wird erstellt
+
+
+
+<h3>Ergebnisse</h3>
+GL4JavaGljMSJDirect.dll - 0 Fehler, 0 Warnung(en)
+</pre>
+</body>
+</html>
diff --git a/Win32VC6/Win32VC6.dsp b/Win32VC6/Win32VC6.dsp
new file mode 100644
index 0000000..7b0239d
--- /dev/null
+++ b/Win32VC6/Win32VC6.dsp
@@ -0,0 +1,93 @@
+# Microsoft Developer Studio Project File - Name="Win32VC5" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 5.00
+# ** NICHT BEARBEITEN **
+
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
+
+CFG=Win32VC5 - Win32 Release
+
+!MESSAGE Dies ist kein g�ltiges Makefile. Zum Erstellen dieses Projekts mit\
+ NMAKE
+!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f�hren Sie den\
+ Befehl
+!MESSAGE
+!MESSAGE NMAKE /f "Win32VC5.mak".
+!MESSAGE
+!MESSAGE Sie k�nnen beim Ausf�hren von NMAKE eine Konfiguration angeben
+!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel:
+!MESSAGE
+!MESSAGE NMAKE /f "Win32VC5.mak" CFG="Win32VC5 - Win32 Debug"
+!MESSAGE
+!MESSAGE F�r die Konfiguration stehen zur Auswahl:
+!MESSAGE
+!MESSAGE "Win32VC5 - Win32 Release" (basierend auf\
+ "Win32 (x86) Dynamic-Link Library")
+!MESSAGE "Win32VC5 - Win32 Debug" (basierend auf\
+ "Win32 (x86) Dynamic-Link Library")
+!MESSAGE
+
+# Begin Project
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "Win32VC5 - Win32 Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Release"
+# PROP Intermediate_Dir "Release"
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
+# ADD CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
+# ADD BASE RSC /l 0x407 /d "NDEBUG"
+# ADD RSC /l 0x407 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
+
+!ELSEIF "$(CFG)" == "Win32VC5 - Win32 Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Debug"
+# PROP BASE Intermediate_Dir "Debug"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Debug"
+# PROP Intermediate_Dir "Debug"
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
+# ADD CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
+# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
+# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
+# ADD BASE RSC /l 0x407 /d "_DEBUG"
+# ADD RSC /l 0x407 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept
+
+!ENDIF
+
+# Begin Target
+
+# Name "Win32VC5 - Win32 Release"
+# Name "Win32VC5 - Win32 Debug"
+# End Target
+# End Project
diff --git a/Win32VC6/Win32VC6.dsw b/Win32VC6/Win32VC6.dsw
new file mode 100755
index 0000000..73a463c
--- /dev/null
+++ b/Win32VC6/Win32VC6.dsw
@@ -0,0 +1,173 @@
+Microsoft Developer Studio Workspace File, Format Version 6.00
+# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GEL�SCHT WERDEN!
+
+###############################################################################
+
+Project: "GL4JavaJauGLJNI"=.\GL4JavaJauGLJNI\GL4JavaJauGLJNI.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Project: "GL4JavaJauGLJNI12"=.\GL4JavaJauGLJNI12\GL4JavaJauGLJNI12.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Project: "GL4JavaJauGLJNI12tst"=.\GL4JavaJauGLJNI12tst\GL4JavaJauGLJNI12tst.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Project: "GL4JavaJauGLJNInf"=.\GL4JavaJauGLJNInf\GL4JavaJauGLJNInf.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Project: "GL4JavaJauGLJNItst"=.\GL4JavaJauGLJNItst\GL4JavaJauGLJNItst.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Project: "GL4JavaJauGLUJNI"=.\GL4JavaJauGLUJNI\GL4JavaJauGLUJNI.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Project: "GL4JavaJauGLUJNI12"=.\GL4JavaJauGLUJNI12\GL4JavaJauGLUJNI12.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Project: "GL4JavaJauGLUJNI12tst"=.\GL4JavaJauGLUJNI12tst\GL4JavaJauGLUJNI12tst.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Project: "GL4JavaJauGLUJNInf"=.\GL4JavaJauGLUJNInf\GL4JavaJauGLUJNI.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Project: "GL4JavaJauGLUJNItst"=.\GL4JavaJauGLUJNItst\GL4JavaJauGLUJNItst.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Project: "GL4JavaJauGljJNI"=.\GL4JavaJauGljJNI\GL4JavaJauGljJNI.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Project: "GL4JavaJauGljJNI12"=.\GL4JavaJauGljJNI12\GL4JavaJauGljJNI12.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Project: "GL4JavaMSJDirect"=.\GL4JavaMSJDirect\GL4JavaMSJDirect.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Global:
+
+Package=<5>
+{{{
+}}}
+
+Package=<3>
+{{{
+}}}
+
+###############################################################################
+
diff --git a/capsapi_classes.zip b/capsapi_classes.zip
new file mode 100644
index 0000000..ebf25e8
--- /dev/null
+++ b/capsapi_classes.zip
Binary files differ
diff --git a/demos.html b/demos.html
new file mode 100755
index 0000000..4cdbd76
--- /dev/null
+++ b/demos.html
@@ -0,0 +1,59 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="Author" content="Ron Cemer & Sven Goethel">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Misc Demos</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<p>Here are the demos-I for <B>
+<A HREF="http://www.jausoft.com/gl4java/">GL4Java</A> >= 2.4.0.0: </B> <br>
+<br>
+ <LI><P ALIGN=LEFT><I><A HREF="demos/glDemosCvs.html">glDemosCvs</A>
+ : Many OpenGL Canvas running together</I>
+ </P>
+ <LI><P ALIGN=LEFT><I><A HREF="demos/glOlympicCvsApplet.html">glOlympicCvsApplet</A>
+ : The Olympic Rings alone </I>
+ </P>
+ <LI><P ALIGN=LEFT><I><A HREF="demos/glLogoCvsApplet.html">glLogoCvsApplet</A>
+ : The OpenGL Logo alone</I></P>
+ <LI><P ALIGN=LEFT><I><A HREF="demos/glOlympicSwingApplet.html">glOlympicSwingApplet</A>
+ : The Olympic Rings using Swing (needs Swing 1.1 installed
+ either)</I></P>
+ <LI><P ALIGN=LEFT><I><A HREF="demos/testTextPPM1.html">testTextPPM1</A>
+ : A textured Box using Swing (needs Swing 1.1 installed
+ either)</I></P>
+
+<BR>
+
+ <LI><P ALIGN=LEFT><I><A HREF="demos/GLLandScape/index.html">GLLandScape World</A>
+ : The GLLandScape World
+ </I></P>
+ <LI><P ALIGN=LEFT><I><A HREF="demos/MiscDemos/index.html">Misc Demos</A>
+ : Some new ported demos.
+ </I></P>
+ <LI><P ALIGN=LEFT><I><A HREF="demos/RonsDemos/index.html">Ron's Demos</A>
+ : Demo's ported by Ron Cemer
+ </I></P>
+ <LI><P ALIGN=LEFT><I><A HREF="demos/HodglimsNeHe/index.html">Hodglim's NeHe Demos</A>
+ : Here are the NeHe OpenGL Tutorial Demos originally ported by Hodglim
+ </I></P>
+<BR>
+
+<P ALIGN=CENTER><SPAN STYLE="text-decoration: none"><I>For use with
+the Java2-Plug-In: Tested with Win32,Netscape,Java2 <A HREF="Java2.txt">(see
+Installation-instructions Java2)</A> ! </I></SPAN>
+</P>
+<UL>
+ <LI><P ALIGN=LEFT><I><A HREF="demos/glOlympicCvsAppletJ2P.html">glOlympicCvsAppletJ2P</A>
+ : Out of the demo directory of GL4Java </I>
+ </P>
+ <LI><P ALIGN=LEFT><I><A HREF="demos/glLogoCvsAppletJ2P.html">glLogoCvsAppletJ2P</A>
+ : Out of the demo directory of GL4Java</I></P>
+ <LI><P ALIGN=LEFT><I><A HREF="demos/testTextPPM1J2P.html">testTextPPM1J2P</A>
+ : Out of the demo directory of GL4Java (needs Swing 1.1 installed
+ either)</I></P>
+</UL>
+</BODY>
+</HTML>
diff --git a/demos/GLLandScape/GLLandScape-readme.txt b/demos/GLLandScape/GLLandScape-readme.txt
new file mode 100644
index 0000000..7ceb26f
--- /dev/null
+++ b/demos/GLLandScape/GLLandScape-readme.txt
@@ -0,0 +1,58 @@
+GLLandScape V 1.1 (for JDK 1.1.X + GL4Java)
+===========================================
+
+you need to have:
+=================
+
+ o jdk 1.1.X or java2
+ o GL4Java V 2.X.X (http://www.jausoft.com/gl4java.html)
+
+ABOUT
+=====
+
+GLLandScape is another demonstration and test for GL4Java.
+
+The landscape algorythms are taken from
+Nicholas Anderson's Landscape V1.0 !
+ http://www.fortunecity.com/skyscraper/online/263
+
+A landscape will be generated, where you can walk through :-)
+
+FUTURE
+======
+
+I ported Nicholas Anderson's Landscape V1.0,
+because i am thinking that this is a fine virtual-world,
+to create a game :-)
+
+CHANGES
+=======
+
+Now using display lists for the world -> faster !
+
+INSTALL
+=======
+
+be sure to have GL4Java correctly installed
+(check the manuals at http://www.jausoft.com/gl4java.html !
+
+extract the GLLandScape.zip file !
+
+generate the classes with: �javac *.java�
+
+run GLLandScape with: 'java GLLandScapeFrame'
+
+thats it :-)
+
+THANXS
+======
+
+Thanxs to Nicholas Anderson for his source code of
+Landscape V1.0, which was written in ANSI-C and uses
+OpenGL GLU and GLUT !
+
+Sven Goethel
+
+
+
diff --git a/demos/GLLandScape/GLLandScape1-big.html b/demos/GLLandScape/GLLandScape1-big.html
new file mode 100644
index 0000000..06dcdf4
--- /dev/null
+++ b/demos/GLLandScape/GLLandScape1-big.html
@@ -0,0 +1,14 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<applet code="GLLandScape1Applet.class" width=800 height=600>
+<param name=frames value="55">
+</applet>
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/GLLandScape/GLLandScape1-big_plugin13.html b/demos/GLLandScape/GLLandScape1-big_plugin13.html
new file mode 100644
index 0000000..1cb8f63
--- /dev/null
+++ b/demos/GLLandScape/GLLandScape1-big_plugin13.html
@@ -0,0 +1,46 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 800 HEIGHT = 600 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "GLLandScape1Applet.class" WIDTH = 800 HEIGHT = 600 frames = "55" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "GLLandScape1Applet.class" WIDTH = 800 HEIGHT = 600></XMP>
+<PARAM NAME = CODE VALUE = "GLLandScape1Applet.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+<PARAM NAME = frames VALUE ="55">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "GLLandScape1Applet.class" WIDTH = 800 HEIGHT = 600>
+<PARAM NAME = frames VALUE ="55">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/GLLandScape/GLLandScape1.html b/demos/GLLandScape/GLLandScape1.html
new file mode 100644
index 0000000..5521afd
--- /dev/null
+++ b/demos/GLLandScape/GLLandScape1.html
@@ -0,0 +1,14 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<applet code="GLLandScape1Applet.class" width=500 height=300>
+<param name=frames value="55">
+</applet>
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/GLLandScape/GLLandScape1.java b/demos/GLLandScape/GLLandScape1.java
new file mode 100644
index 0000000..209f6db
--- /dev/null
+++ b/demos/GLLandScape/GLLandScape1.java
@@ -0,0 +1,714 @@
+/**
+ * @(#) GLLandScape1.java
+ */
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+
+/**
+ * This is meant as an skellekton for porting/writing
+ * OpenGL to gl4java
+ *
+ * If you are interessting in further Documentation and/or
+ * the history of gl4java follow the following link.
+ *
+ * <pre>
+ <a href="gl4java.html#_top_">The gl4java Documentation</a>
+ * </pre>
+ * <p>
+ *
+ * This NEW dummy code uses repaint(),
+ * the std. java thread, and sleep to suspend with a given
+ * Frames per secounds value !!
+ * (of course - sDisplay is still avaiable,
+ * but i guess it is not that reliable ... comments welcome )
+ *
+ *
+ * @see WinDataAccess
+ * @version 1.1, 3. MAI 1999
+ * @author Sven Goethel
+ *
+ */
+class GLLandScape1 extends GLAnimCanvas
+{
+ /**
+ * Variables for the LandScape
+ */
+ class COLOUR
+ {
+ public float r, g, b;
+
+ public COLOUR()
+ {
+ r = 0.0f;
+ g = 0.0f;
+ b = 0.0f;
+ }
+
+ }
+
+ /* The constant MAP is used throughout the program and represents the MAP of
+ the matrix/landscape. */
+ static final int MAP = 256;
+
+ /* This is the holding space for the landscape. */
+ float y[/*MAP+2*/][/*MAP+2*/];
+
+ char object[/*MAP+1*/][/*MAP+1*/];
+
+ /* This is the holding space for the landscape colours. */
+ COLOUR c[/*MAP+1*/][/*MAP+1*/];
+
+ public static final int FORWARD = 1;
+
+ public static final int UP = 2;
+
+ public static final int TURNLEFT = 3;
+
+ public static final int STRAFELEFT = 4;
+
+ public static final int LOOKUP = 5;
+
+ public static final int LOOKSET = 6;
+
+ static final int TRUE = 1;
+
+ static final int FALSE = 0;
+
+ static final int WIDTH = 32;
+
+ /* The width of the texture map. */
+ byte texImg[/*WIDTH * WIDTH * 4*/];
+
+ int texName[/*1*/] = {0};
+
+ short comp = 32;
+
+ /* Scale modifier. */
+ short temp, texture_mapping = FALSE, land_fogging = TRUE,
+ flat_shading = FALSE;
+
+ /* Initial eye position and vector of sight. */
+ float posx, posy, posz;
+
+ float lookx, looky, lookz;
+
+ float mySpeed = 0;
+
+ int myDir = FORWARD;
+
+ // the display list for the land ..
+ int theLand;
+
+
+ public GLLandScape1(int w, int h)
+ {
+ super(w,h);
+ }
+
+ public void init_pos()
+ {
+ posx = 4500.0f;
+ posy = 256.0f;
+ posz = 4500.0f;
+ lookx = 4096.0f;
+ looky = 0.0f;
+ lookz = 4096.0f;
+ mySpeed = 0;
+ System.out.println("init_pos");
+ }
+
+ public void init()
+ {
+ int i, j;
+ /* here we should add and initialize our JAVA components */
+ texImg = new byte[WIDTH * WIDTH * 4];
+ y = new float[MAP + 2][MAP + 2];
+ object = new char[MAP + 1][MAP + 1];
+ c = new COLOUR[MAP + 1][MAP + 1];
+ for(i = 0;i <= MAP;i++)
+ {
+ for(j = 0;j <= MAP;j++)
+ {
+ c[i][j] = new COLOUR();
+ }
+ }
+ float fogColor[] = {0.75f, 0.75f, 1.0f, 1.0f};
+ init_pos();
+ // srand(224);
+
+ create_fractal();
+ genLand();
+
+ // srand((unsigned)time(NULL));
+ makeTexture();
+ /* ... and furthet OpenGL init's - like you want to */
+ gl.glPixelStorei(GL_UNPACK_ALIGNMENT,1);
+ if(texture_mapping == TRUE)
+ gl.glEnable(GL_TEXTURE_2D);
+ gl.glGenTextures(1,texName);
+ gl.glBindTexture(GL_TEXTURE_2D,texName[0]);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL_REPEAT);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,GL_REPEAT);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_NEAREST);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_NEAREST);
+ gl.glTexImage2D(GL_TEXTURE_2D,0,GL_RGBA,WIDTH,WIDTH,0,GL_RGBA,GL_UNSIGNED_BYTE,texImg);
+ gl.glEnable(GL_DEPTH_TEST);
+ if(flat_shading == FALSE)
+ gl.glShadeModel(GL_SMOOTH);
+ else
+ gl.glShadeModel(GL_FLAT);
+ if(land_fogging == TRUE)
+ gl.glEnable(GL_FOG);
+ else
+ gl.glDisable(GL_FOG);
+ gl.glFogi(GL_FOG_MODE,GL_LINEAR);
+ gl.glFogfv(GL_FOG_COLOR,fogColor);
+ gl.glFogf(GL_FOG_DENSITY,0.4f);
+ gl.glFogf(GL_FOG_START,800.0f);
+ gl.glFogf(GL_FOG_END,1000.0f);
+ gl.glClearColor(0.75f,0.75f,1.0f,1.0f);
+ // FreeConsole();
+ glj.gljCheckGL();
+
+
+ Dimension dim = getSize();
+ reshape(dim.width,dim.height);
+ myMove(FORWARD,mySpeed,true);
+ check_height();
+ repaint();
+ /* and start our working thread ... */
+ start();
+ }
+
+ public void display()
+ {
+ int i;
+ /* Standard gl4java Init */
+ if(!cvsIsInit() || glj.gljMakeCurrent() == false)
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+ // ... just render it
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ gl.glCallList(theLand);
+
+ myMove(FORWARD,mySpeed,true);
+ check_height();
+
+ setSuspended(mySpeed==0);
+
+ /* For your animation dutys ;-) */
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ /*************************************************************/
+ /*************************************************************/
+ /*************************************************************/
+ /*************************************************************/
+ /*************************************************************/
+ /*************************************************************/
+ void create_fractal()
+ {
+ int bsize, csize;
+ int x, z, i;
+ int r = 256;
+ /* The maximum random value. */
+ float gradient, shadow = 0.5f, n;
+ /* Make the matrix flat. */
+ for(x = 0;x < MAP + 2;x++)
+ for(z = 0;z < MAP + 2;z++)
+ y[x][z] = 0L;
+ bsize = MAP;
+ for(i = 0;i < 8;i++)
+ {
+ for(x = 0;x < MAP;x += bsize)
+ for(z = 0;z < MAP;z += bsize)
+ y[x][z] += (Math.random() * r - r / 2);
+ if(i > 4)
+ r = r / 2;
+ csize = bsize / 2;
+ if(csize > 0)
+ {
+ for(x = 0;x < MAP;x += bsize)
+ for(z = 0;z < MAP;z += bsize)
+ {
+ if(x < MAP)
+ y[x + csize][z] = (y[x + bsize][z] + y[x][z]) / 2;
+ if(z < MAP)
+ y[x][z + csize] = (y[x][z + bsize] + y[x][z]) / 2;
+ if(x < MAP && z < MAP)
+ y[x + csize][z + csize] = (y[x][z] + y[x + bsize][z] + y[x][z + bsize] + y[x + bsize][z + bsize]) / 4;
+ }
+ }
+ bsize = csize;
+ }
+ for(x = 0;x < MAP;x++)
+ {
+ for(z = 0;z < MAP;z++)
+ {
+ y[x][z] = y[x][z] + y[x + 1][z] + y[x + 1][z + 1] + y[x][z + 1];
+ y[x][z] /= 4.0f;
+ }
+ }
+ for(x = MAP;x > 0;x--)
+ {
+ for(z = 0;z < MAP;z++)
+ {
+ y[x][z] = y[x][z] + y[x - 1][z] + y[x - 1][z + 1] + y[x][z + 1];
+ y[x][z] /= 4.0f;
+ }
+ }
+ /* put trees in various places on grassland. */
+ for(x = 0;x < MAP;x++)
+ {
+ for(z = 0;z < MAP;z++)
+ {
+ if(((int)(Math.random() * 256.0f)) % 8 == 0 && y[x][z] > 0 && y[x][z] < 64)
+ {
+ object[x][z] = 't';
+ }
+ else
+ {
+ object[x][z] = 'n';
+ }
+ }
+ }
+ for(x = 0;x < MAP;x++)
+ for(z = 0;z < MAP;z++)
+ if(y[x][z] > 8)
+ {
+ n = y[x][z];
+ y[x][z] *= n;
+ y[x][z] /= 256.0f;
+ }
+ for(x = 0;x <= MAP;x++)
+ {
+ for(z = 0;z <= MAP;z++)
+ {
+ gradient = ((float)(y[x][z] - y[x + 1][z])) / 100.0f;
+ if(y[x][z] > 64)
+ {
+ if((y[x][z] - y[x][z + 1]) < 8 && (y[x][z] - y[x][z + 1]) > -8 && (y[x][z] - y[x + 1][z]) < 8 && (y[x][z] - y[x + 1][z]) > -8)
+ {
+ c[x][z].g = gradient + 0.75f;
+ c[x][z].r = c[x][z].g;
+ c[x][z].b = c[x][z].g;
+ }
+ else
+ {
+ c[x][z].r = gradient + 0.75f;
+ c[x][z].g = c[x][z].r * 0.8f;
+ c[x][z].b = c[x][z].r * 0.5f;
+ }
+ }
+ else
+ if(y[x][z] > 0)
+ {
+ c[x][z].g = gradient + 0.75f;
+ c[x][z].r = c[x][z].g * 0.6f;
+ c[x][z].b = 0.0f;
+ }
+ else
+ {
+ c[x][z].r = gradient + 1.0f;
+ c[x][z].g = c[x][z].r * 0.75f;
+ c[x][z].b = c[x][z].r * 0.5f;
+ }
+ }
+ }
+ for(x = 0;x <= MAP;x++)
+ for(z = 0;z <= MAP;z++)
+ {
+ if(y[x][z] < 0)
+ y[x][z] /= 4.0f;
+ }
+
+ }
+
+ void makeTexture()
+ {
+ int i, j, h, c;
+ for(i = 0;i < WIDTH;i++)
+ {
+ for(j = 0;j < WIDTH;j++)
+ {
+ c = (int)(Math.random() * 15 + 240);
+ h = i * WIDTH * 4 + j * 4;
+ texImg[h + 0] = (byte)c;
+ texImg[h + 1] = (byte)c;
+ texImg[h + 2] = (byte)c;
+ texImg[h + 3] = (byte)255;
+ }
+ }
+ }
+
+ void check_height()
+ {
+ float x0, x1, lx, lz, x, z, midpoint;
+ int fx, fz;
+ x = (posx / (comp * 1.0f));
+ z = (posz / (comp * 1.0f));
+ fx = (int)(x);
+ fz = (int)(z);
+ lx = x - fx;
+ lz = z - fz;
+ if(fx >= MAP + 2 || fz >= MAP + 2 || fx < 0 || fz < 0)
+ {
+ init_pos();
+ return;
+ }
+ x0 = y[fx][fz] + (y[fx][fz + 1] - y[fx][fz]) * lz;
+ x1 = y[fx + 1][fz] + (y[fx + 1][fz + 1] - y[fx + 1][fz]) * lz;
+ midpoint = x0 + (x1 - x0) * lx;
+ posy = midpoint + 16.0f;
+ }
+
+ /* Function that moves the eye / turns the angle of sight. */
+ /* Updates scene if update. */
+ void myMove(int dir, float amount, boolean update)
+ {
+ float diff = (float)Math.sqrt(lookx * lookx + lookz * lookz);
+ /*
+ float alpha = (float)
+ Math.atan(Math.abs(lookz)/Math.abs(lookx));
+ if(lookx<0&&lookz>=0)
+ alpha+=(float)(Math.PI/2.0);
+ else if(lookx>=0&&lookz>=0)
+ alpha+=0;
+ else if(lookx<0&&lookz<0)
+ alpha+=(float)Math.PI;
+ else if(lookx>=0&&lookz<0)
+ alpha+=(float)((3.0*Math.PI)/2.0);
+ float _alpha = (float) (alpha*180f/Math.PI );
+ */
+ boolean do_repaint = false;
+ lookx /= diff;
+ lookz /= diff;
+ //myDir=dir;
+ switch(dir)
+ {
+ case FORWARD:
+ posx += lookx * amount;
+ posz += lookz * amount;
+ break;
+ case TURNLEFT:
+ lookx = lookx * (float)Math.cos(amount) + lookz * (float)Math.sin(amount);
+ lookz = lookz * (float)Math.cos(amount) - lookx * (float)Math.sin(amount);
+ // lookx^2 + lookz^2 != 1 for some reason. Fix.
+ lookx /= diff;
+ lookz /= diff;
+ do_repaint = true;
+ break;
+ case STRAFELEFT:
+ posx += lookz * amount;
+ posz -= lookx * amount;
+ break;
+ case UP:
+ posy += amount;
+ do_repaint = true;
+ break;
+ case LOOKUP:
+ looky += amount;
+ do_repaint = true;
+ break;
+ case LOOKSET:
+ looky = amount;
+ do_repaint = true;
+ break;
+ }
+ int x = (int)(posx / (comp * 1.0f));
+ int z = (int)(posz / (comp * 1.0f));
+ if(x > MAP)
+ posx = 0;
+ if(z > MAP)
+ posz = 0;
+ if(posx < 0)
+ posx = MAP * comp;
+ if(posz < 0)
+ posz = MAP * comp;
+ if (update)
+ {
+ gl.glMatrixMode(GL_MODELVIEW); gl.glLoadIdentity();
+ glu.gluLookAt(posx, posy, posz,
+ posx+lookx, posy+looky,
+ posz+lookz, 0.0f,1.0f,0.0f);
+ if( do_repaint )
+ repaint();
+ }
+ }
+
+ void draw_tree(int x, int z)
+ {
+ int x1, y1, z1;
+ y1 = (int)y[x][z];
+ x1 = x * comp;
+ z1 = z * comp;
+ gl.glBegin(GL_POLYGON);
+ gl.glColor3f(0.6f,0.4f,0.0f);
+ gl.glVertex3f(x1 - 2,y1 + 5,z1);
+ gl.glVertex3f(x1 + 2,y1 + 5,z1);
+ gl.glVertex3f(x1 + 2,y1,z1);
+ gl.glVertex3f(x1 - 2,y1,z1);
+ gl.glEnd();
+ gl.glBegin(GL_POLYGON);
+ gl.glVertex3f(x1,y1 + 5,z1 - 2);
+ gl.glVertex3f(x1,y1 + 5,z1 + 2);
+ gl.glVertex3f(x1,y1,z1 + 2);
+ gl.glVertex3f(x1,y1,z1 - 2);
+ gl.glEnd();
+ gl.glBegin(GL_POLYGON);
+ gl.glColor3f(0.35f,0.7f,0.0f);
+ gl.glTexCoord2f(0.0f,0.0f);
+ gl.glVertex3f(x1 - 10,y1 + 5,z1);
+ gl.glTexCoord2f(0.5f,1.0f);
+ gl.glVertex3f(x1,y1 + 25,z1);
+ gl.glTexCoord2f(1.0f,0.0f);
+ gl.glVertex3f(x1 + 10,y1 + 5,z1);
+ gl.glEnd();
+ gl.glBegin(GL_POLYGON);
+ gl.glColor3f(0.4f,0.8f,0.0f);
+ gl.glTexCoord2f(0.0f,0.0f);
+ gl.glVertex3f(x1,y1 + 5,z1 - 10);
+ gl.glTexCoord2f(0.5f,1.0f);
+ gl.glVertex3f(x1,y1 + 25,z1);
+ gl.glTexCoord2f(1.0f,0.0f);
+ gl.glVertex3f(x1,y1 + 5,z1 + 10);
+ gl.glEnd();
+ }
+
+ void genLand()
+ {
+ int x, z, position_x, position_z;
+ float x1, x2, z1, z2;
+
+ theLand = gl.glGenLists(1);
+ gl.glNewList(theLand, GL_COMPILE);
+
+ position_x = (int)(posx / comp);
+ position_z = (int)(posz / comp);
+ for(x = position_x - 16;x < position_x + 17;x++)
+ for(z = position_z - 16;z < position_z + 17;z++)
+ {
+ if(x > 0 && x < MAP && z > 0 && z < MAP)
+ {
+ x1 = x * comp;
+ x2 = x * comp + comp;
+ z1 = z * comp;
+ z2 = z * comp + comp;
+ gl.glBegin(GL_POLYGON);
+ gl.glColor3f(c[x][z].r,c[x][z].g,c[x][z].b);
+ gl.glTexCoord2f(0.0f,0.0f);
+ gl.glVertex3f(x1,y[x][z],z1);
+ gl.glColor3f(c[x + 1][z].r,c[x + 1][z].g,c[x + 1][z].b);
+ gl.glTexCoord2f(1.0f,0.0f);
+ gl.glVertex3f(x2,y[x + 1][z],z1);
+ gl.glColor3f(c[x][z + 1].r,c[x][z + 1].g,c[x][z + 1].b);
+ gl.glTexCoord2f(0.0f,1.0f);
+ gl.glVertex3f(x1,y[x][z + 1],z2);
+ gl.glEnd();
+ gl.glBegin(GL_POLYGON);
+ gl.glColor3f(c[x + 1][z + 1].r,c[x + 1][z + 1].g,c[x + 1][z + 1].b);
+ gl.glTexCoord2f(1.0f,1.0f);
+ gl.glVertex3f(x2,y[x + 1][z + 1],z2);
+ gl.glColor3f(c[x][z + 1].r,c[x][z + 1].g,c[x][z + 1].b);
+ gl.glTexCoord2f(0.0f,1.0f);
+ gl.glVertex3f(x1,y[x][z + 1],z2);
+ gl.glColor3f(c[x + 1][z].r,c[x + 1][z].g,c[x + 1][z].b);
+ gl.glTexCoord2f(1.0f,0.0f);
+ gl.glVertex3f(x2,y[x + 1][z],z1);
+ gl.glEnd();
+ if(object[x][z] == 't')
+ draw_tree(x,z);
+ }
+ }
+ gl.glEndList();
+ glj.gljCheckGL();
+ }
+
+ public void reshape(int w, int h)
+ {
+ glj.gljResize(w,h);
+ gl.glViewport(0,0,w,h);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ glu.gluPerspective(60.0,(double)w / (double)h,1.0,1000.0);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ glu.gluLookAt(posx,posy,posz,posx + lookx,posy + looky,posz + lookz,0.0,1.0,0.0);
+ }
+
+ public float getMySpeed()
+ {
+ return mySpeed;
+ }
+
+ public void setMySpeed(float s)
+ {
+ mySpeed = s;
+ setSuspended(false);
+ }
+
+ public boolean getTextureState()
+ {
+ return texture_mapping == TRUE;
+ }
+
+ public void setTexture(boolean t)
+ {
+ if(t)
+ {
+ if(texture_mapping == FALSE)
+ {
+ if(glj!=null)
+ {
+ if(glj.gljMakeCurrent() == false)
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+ gl.glEnable(GL_TEXTURE_2D);
+ texture_mapping = TRUE;
+ glj.gljCheckGL();
+ repaint();
+ }
+ }
+ }
+ else
+ {
+ if(texture_mapping == TRUE)
+ {
+ if(glj!=null)
+ {
+ if(glj.gljMakeCurrent() == false)
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+ gl.glDisable(GL_TEXTURE_2D);
+ texture_mapping = FALSE;
+ glj.gljCheckGL();
+ repaint();
+ }
+ }
+ }
+ setSuspended(false);
+ }
+
+ public boolean getFogState()
+ {
+ return land_fogging == TRUE;
+ }
+
+ public void setFog(boolean t)
+ {
+ if(t)
+ {
+ if(land_fogging == FALSE)
+ {
+ if(glj!=null)
+ {
+ if(glj.gljMakeCurrent() == false)
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+ gl.glEnable(GL_FOG);
+ land_fogging = TRUE;
+ glj.gljCheckGL();
+ repaint();
+ }
+ }
+ }
+ else
+ {
+ if(land_fogging == TRUE)
+ {
+ if(glj!=null)
+ {
+ if(glj.gljMakeCurrent() == false)
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+ gl.glDisable(GL_FOG);
+ land_fogging = FALSE;
+ glj.gljCheckGL();
+ repaint();
+ }
+ }
+ }
+ setSuspended(false);
+ }
+
+ public boolean getFlatShadeState()
+ {
+ return flat_shading == TRUE;
+ }
+
+ public void setFlatShading(boolean t)
+ {
+ if(t)
+ {
+ if(flat_shading == FALSE)
+ {
+ if(glj!=null)
+ {
+ if(glj.gljMakeCurrent() == false)
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+ gl.glShadeModel(GL_FLAT);
+ flat_shading = TRUE;
+ glj.gljCheckGL();
+ repaint();
+ }
+ }
+ }
+ else
+ {
+ if(flat_shading == TRUE)
+ {
+ if(glj!=null)
+ {
+ if(glj.gljMakeCurrent() == false)
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+ gl.glShadeModel(GL_SMOOTH);
+ flat_shading = FALSE;
+ glj.gljCheckGL();
+ repaint();
+ }
+ }
+ }
+ setSuspended(false);
+ }
+
+ public void newFractal()
+ {
+ create_fractal();
+ if(!cvsIsInit() || glj.gljMakeCurrent() == false)
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+ gl.glFinish();
+ gl.glDeleteLists(theLand, 1);
+ genLand();
+ check_height();
+ repaint();
+ setSuspended(false);
+ }
+
+}
+
diff --git a/demos/GLLandScape/GLLandScape1Applet.java b/demos/GLLandScape/GLLandScape1Applet.java
new file mode 100644
index 0000000..155f934
--- /dev/null
+++ b/demos/GLLandScape/GLLandScape1Applet.java
@@ -0,0 +1,399 @@
+
+import gl4java.GLContext;
+import java.awt.*;
+import java.applet.*;
+import java.awt.event.*;
+
+public class GLLandScape1Applet extends Applet
+ implements MouseListener, KeyListener, ActionListener
+{
+ GLLandScape1 landScape = null;
+
+ Button bTexture = null;
+ Button bShading = null;
+ Button bFog = null;
+ Button bNewFractal = null;
+ Button bInfo = null;
+
+ Button bFps; TextField tFps;
+
+ boolean gameOn = true;
+
+ SpeedTimer tMySpeed = null;
+
+ public void init()
+ {
+ init(0,0);
+ }
+
+ public void init(int w, int h)
+ {
+ super.init();
+
+ setLayout(new BorderLayout());
+
+ Panel glFeatures = new Panel();
+ glFeatures.setLayout(new GridLayout(6,1));
+ glFeatures.add(bTexture =new Button("Texture"));
+ glFeatures.add(bShading =new Button("Shading"));
+ glFeatures.add(bFog =new Button("Fogging"));
+ glFeatures.add(bNewFractal =new Button("Fractal"));
+ bTexture.addMouseListener(this);
+ bShading.addMouseListener(this);
+ bFog.addMouseListener(this);
+ bNewFractal.addMouseListener(this);
+ add("East", glFeatures);
+
+ Panel pFps = new Panel();
+ pFps.setLayout(new GridLayout(1,3));
+ pFps.add(bInfo =new Button("info"));
+ pFps.add(bFps =new Button("get fps"));
+ pFps.add(tFps =new TextField());
+ bInfo.addMouseListener(this);
+ bFps.addMouseListener(this);
+ tFps.addActionListener(this);
+ add("South", pFps);
+
+ if(w==0 && h==0)
+ {
+ Dimension d = getSize();
+ landScape= new GLLandScape1(d.width, d.height);
+ } else {
+ landScape= new GLLandScape1(w, h);
+ }
+ landScape.setAnimateFps(30.0);
+ landScape.addMouseListener(this);
+ landScape.addKeyListener(this);
+
+ tMySpeed = new SpeedTimer(landScape, 200);
+
+ landScape.requestFocus();
+ landScape.setMySpeed(0);
+
+ add("Center", landScape);
+ }
+
+ public void destroy()
+ {
+ landScape.stop();
+ landScape.cvsDispose();
+ landScape.removeMouseListener(this);
+ landScape.removeKeyListener(this);
+ }
+
+ public void start()
+ {
+ landScape.start();
+ }
+
+ public void stop()
+ {
+ landScape.stop();
+ }
+
+ public static void main( String args[] ) {
+ String gljLib=null;
+ String glLib=null;
+ String gluLib=null;
+
+ if(args.length>0)
+ gljLib = args[0];
+ if(args.length>1)
+ glLib = args[1];
+ if(args.length>2)
+ gluLib = args[2];
+
+ if(GLContext.loadNativeLibraries(gljLib, glLib, gluLib)==false)
+ System.out.println("GLCanvasV2 could not load native libs:"+
+ gljLib + ", " + glLib + ", " + gluLib);
+
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+
+ GLLandScape1Applet window =
+ new GLLandScape1Applet();
+
+ Frame f = new Frame();
+ f.add(window);
+ window.init(500,300);
+ f.pack();
+ f.setVisible(true);
+
+ f.addWindowListener( new WindowAdapter()
+ {
+ public void windowClosed(WindowEvent e)
+ {
+ System.exit(0);
+ }
+ public void windowClosing(WindowEvent e)
+ {
+ System.exit(0);
+ }
+ }
+ );
+
+
+ window.start();
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(landScape ) )
+ {
+ landScape.requestFocus();
+ }
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ }
+ public void mouseReleased( MouseEvent evt ) {
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+
+ if( comp.equals(bTexture ) )
+ landScape.setTexture( ! landScape.getTextureState());
+ else if( comp.equals(bNewFractal ) )
+ landScape.newFractal();
+ else if( comp.equals(bShading ) )
+ landScape.setFlatShading(!landScape.getFlatShadeState());
+ else if( comp.equals(bFog ) )
+ landScape.setFog( ! landScape.getFogState());
+ else if( comp.equals(landScape) )
+ landScape.setSuspended(false);
+ else if( comp.equals(bFps) )
+ {
+ double fps = 0;
+
+ landScape.stopFpsCounter();
+ fps=landScape.getFps();
+ tFps.setText(String.valueOf(fps));
+ landScape.resetFpsCounter();
+ }
+ else if( comp.equals(bInfo) )
+ {
+ InfoWin iw = new InfoWin();
+ }
+ }
+
+
+ public void keyTyped(KeyEvent e)
+ {
+ }
+
+ public void keyPressed(KeyEvent e)
+ {
+ int key = e.getKeyCode();
+
+ if( gameOn==true )
+ {
+ if ( key==KeyEvent.VK_LEFT )
+ {
+ landScape.myMove(landScape.TURNLEFT, 0.1f, true);
+ tMySpeed.start();
+ }
+ else if ( key==KeyEvent.VK_RIGHT )
+ {
+ landScape.myMove(landScape.TURNLEFT, -0.1f, true);
+ tMySpeed.start();
+ }
+ else if ( key==KeyEvent.VK_UP )
+ {
+ float v = tMySpeed.getSpeed();
+
+ if ( e.isShiftDown() )
+ {
+ tMySpeed.setSpeed(v+2.0f);
+ }
+ else {
+ tMySpeed.setSpeed(v+1.0f);
+ }
+ tMySpeed.start();
+ }
+ else if ( key==KeyEvent.VK_DOWN )
+ {
+ float v = tMySpeed.getSpeed();
+
+ if ( e.isShiftDown() )
+ tMySpeed.setSpeed(v/2.0f);
+ else
+ tMySpeed.setSpeed(v-1.0f);
+ tMySpeed.start();
+ }
+ else if ( key==KeyEvent.VK_PAGE_UP )
+ {
+ landScape.myMove(landScape.LOOKUP, 0.1f, true);
+ tMySpeed.start();
+ }
+ else if ( key==KeyEvent.VK_PAGE_DOWN )
+ {
+ landScape.myMove(landScape.LOOKUP, -0.1f, true);
+ tMySpeed.start();
+ }
+ else if ( key==KeyEvent.VK_END )
+ {
+ landScape.myMove(landScape.LOOKSET, 0f, true);
+ tMySpeed.start();
+ }
+ }
+ }
+
+ public void keyReleased(KeyEvent e)
+ {
+ int key = e.getKeyCode();
+
+ if( gameOn==true &&
+ ( key==KeyEvent.VK_UP ||
+ key==KeyEvent.VK_DOWN
+ )
+ )
+ {
+ //ts.start();
+ }
+ else if( gameOn==true &&
+ ( key==KeyEvent.VK_LEFT ||
+ key==KeyEvent.VK_RIGHT
+ )
+ )
+ {
+ //landScape.noMySpeed();
+ }
+ }
+
+ public void actionPerformed(ActionEvent event)
+ {
+ Object source = event.getSource();
+
+ if ( source == tFps )
+ {
+ try {
+ double FramesPerSec=
+ Double.valueOf(tFps.getText()).doubleValue();
+ landScape.setAnimateFps(FramesPerSec);
+ landScape.setSuspended(false);
+ } catch (NumberFormatException s) {
+ System.out.println("wrong fps format, use float ..");
+ }
+
+ }
+ }
+
+ class SpeedTimer implements Runnable {
+ protected Thread me = null;
+ protected boolean to=false, started=false;
+ protected int _t;
+
+ protected float speed = 0.0f;
+ protected GLLandScape1 _ls;
+
+ public SpeedTimer(GLLandScape1 ls, int t)
+ { _ls=ls; _t=t; }
+
+ public void start()
+ {
+ if(me!=null) stop();
+ to=false;
+ started=true;
+
+ me = new Thread(this);
+ me.start();
+ }
+
+ public void stop() {
+ if(me!=null)
+ {
+ me.stop();
+ me=null;
+ started=false;
+ to=false;
+ }
+ }
+
+ public void run() {
+ if(me!=null)
+ {
+ try {me.sleep(_t,0);} catch (InterruptedException e){}
+ to=true;
+ while(speed>1.0f)
+ {
+ speed/=2.0f;
+ _ls.setMySpeed(speed);
+ try {me.sleep(_t,0);} catch (InterruptedException e){}
+ }
+ speed = 0.0f;
+ _ls.setMySpeed(0f);
+ }
+ }
+
+ public boolean isActive() { return to; }
+ public boolean isStarted() { return started; }
+
+ public float getSpeed() { return speed; }
+ public void setSpeed(float v)
+ { speed=v;
+ _ls.setMySpeed(speed);
+ }
+
+ }
+
+ class InfoWin extends Frame
+ implements ActionListener
+ {
+ protected Button DismissButton;
+
+ String text =
+ "GLLandScape1 V 1.2\n"+
+ "by Sven Goethel\n"+
+ "\thttp://www.jausoft.com/gl4java.html\n"+
+ "\tmailto:[email protected]\n\n"+
+ "The original sources for the lanscape algorythms,\n"+
+ "are taken from Nicholas Anderson's Landscape V1.0 !\n"+
+ "\thttp://www.fortunecity.com/skyscraper/online/263\n"+
+ "\tmailto:[email protected]\n\n"+
+ "usage:\n"+
+ "\t ARROW-UP : accelerate\n"+
+ "\t ARROW-UP + SHIFT : accelerate fast \n"+
+ "\t ARROW-DOWN : de-accelerate\n"+
+ "\t ARROW-DOWN + SHIFT : de-accelerate fast\n"+
+ "\t ARROW-LEFT : turn left\n"+
+ "\t ARROW-right : turn right\n"+
+ "\t PAGE-UP : look-up\n"+
+ "\t PAGE-DOWN : look-down\n"+
+ "\t END : look normal\n\n"+
+ "Have a lot of fun - Sven Goethel\n";
+
+ public InfoWin()
+ {
+ setTitle("INFO");
+ setName("INFO");
+
+ setLayout(new BorderLayout());
+ add("Center", new TextArea(text, 25, 50));
+
+ add("South", DismissButton = new Button("dismiss"));
+ DismissButton.addActionListener(this);
+
+ pack();
+ setVisible(true);
+
+ toFront();
+ }
+
+ public void actionPerformed(ActionEvent event) {
+ if ( event.getSource() == DismissButton)
+ {
+ setVisible(false);
+ dispose();
+ }
+ }
+ }
+}
diff --git a/demos/GLLandScape/GLLandScape1_plugin13.html b/demos/GLLandScape/GLLandScape1_plugin13.html
new file mode 100644
index 0000000..a3f188b
--- /dev/null
+++ b/demos/GLLandScape/GLLandScape1_plugin13.html
@@ -0,0 +1,46 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 500 HEIGHT = 300 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "GLLandScape1Applet.class" WIDTH = 500 HEIGHT = 300 frames = "55" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "GLLandScape1Applet.class" WIDTH = 500 HEIGHT = 300></XMP>
+<PARAM NAME = CODE VALUE = "GLLandScape1Applet.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+<PARAM NAME = frames VALUE ="55">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "GLLandScape1Applet.class" WIDTH = 500 HEIGHT = 300>
+<PARAM NAME = frames VALUE ="55">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/GLLandScape/GLLandScape1w1-big.html b/demos/GLLandScape/GLLandScape1w1-big.html
new file mode 100644
index 0000000..7e5eae0
--- /dev/null
+++ b/demos/GLLandScape/GLLandScape1w1-big.html
@@ -0,0 +1,14 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<applet code="GLLandScape1w1Applet.class" width=800 height=600>
+<param name=frames value="55">
+</applet>
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/GLLandScape/GLLandScape1w1-big_plugin13.html b/demos/GLLandScape/GLLandScape1w1-big_plugin13.html
new file mode 100644
index 0000000..1dc35f8
--- /dev/null
+++ b/demos/GLLandScape/GLLandScape1w1-big_plugin13.html
@@ -0,0 +1,46 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 800 HEIGHT = 600 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "GLLandScape1w1Applet.class" WIDTH = 800 HEIGHT = 600 frames = "55" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "GLLandScape1w1Applet.class" WIDTH = 800 HEIGHT = 600></XMP>
+<PARAM NAME = CODE VALUE = "GLLandScape1w1Applet.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+<PARAM NAME = frames VALUE ="55">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "GLLandScape1w1Applet.class" WIDTH = 800 HEIGHT = 600>
+<PARAM NAME = frames VALUE ="55">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/GLLandScape/GLLandScape1w1.html b/demos/GLLandScape/GLLandScape1w1.html
new file mode 100644
index 0000000..074a19e
--- /dev/null
+++ b/demos/GLLandScape/GLLandScape1w1.html
@@ -0,0 +1,14 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<applet code="GLLandScape1w1Applet.class" width=500 height=300>
+<param name=frames value="55">
+</applet>
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/GLLandScape/GLLandScape1w1.java b/demos/GLLandScape/GLLandScape1w1.java
new file mode 100644
index 0000000..9f6f1a3
--- /dev/null
+++ b/demos/GLLandScape/GLLandScape1w1.java
@@ -0,0 +1,781 @@
+/**
+ * @(#) GLLandScape1w1.java
+ */
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+
+/**
+ * This is meant as an skellekton for porting/writing
+ * OpenGL to gl4java
+ *
+ * If you are interessting in further Documentation and/or
+ * the history of gl4java follow the following link.
+ *
+ * <pre>
+ <a href="gl4java.html#_top_">The gl4java Documentation</a>
+ * </pre>
+ * <p>
+ *
+ * This NEW dummy code uses repaint(),
+ * the std. java thread, and sleep to suspend with a given
+ * Frames per secounds value !!
+ * (of course - sDisplay is still avaiable,
+ * but i guess it is not that reliable ... comments welcome )
+ *
+ *
+ * @see WinDataAccess
+ * @version 1.1, 3. MAI 1999
+ * @author Sven Goethel
+ *
+ */
+class GLLandScape1w1 extends GLAnimCanvas
+{
+ /**
+ * Variables for the LandScape
+ */
+ class COLOUR
+ {
+ public float r, g, b;
+
+ public COLOUR()
+ {
+ r = 0.0f;
+ g = 0.0f;
+ b = 0.0f;
+ }
+
+ }
+
+ /* The constant MAP is used throughout the program and represents the MAP of
+ the matrix/landscape. */
+ static final int MAP = 256;
+
+ /* This is the holding space for the landscape. */
+ float y[/*MAP+2*/][/*MAP+2*/];
+
+ char object[/*MAP+1*/][/*MAP+1*/];
+
+ /* This is the holding space for the landscape colours. */
+ COLOUR c[/*MAP+1*/][/*MAP+1*/];
+
+ public static final int FORWARD = 1;
+
+ public static final int UP = 2;
+
+ public static final int TURNLEFT = 3;
+
+ public static final int STRAFELEFT = 4;
+
+ public static final int LOOKUP = 5;
+
+ public static final int LOOKSET = 6;
+
+ static final int TRUE = 1;
+
+ static final int FALSE = 0;
+
+ static final int WIDTH = 32;
+
+ /* The width of the texture map. */
+ byte texImg[/*WIDTH * WIDTH * 4*/];
+
+ int texName[/*1*/] = {0};
+
+ short comp = 32;
+
+ /* Scale modifier. */
+ short temp, texture_mapping = FALSE, land_fogging = TRUE,
+ flat_shading = FALSE;
+
+ /* Initial eye position and vector of sight. */
+ float posx, posy, posz;
+
+ float lookx, looky, lookz;
+
+ float mySpeed = 0;
+
+ int myDir = FORWARD;
+
+ // the display list for the land ..
+ int theLand;
+
+
+ final int MAX_PLANES = 15;
+ GlutPlaneObj planes[] = null;
+ Random random = null;
+
+
+ public GLLandScape1w1(int w, int h)
+ {
+ super(w,h);
+ }
+
+ public void init_pos()
+ {
+ posx = 4500.0f;
+ posy = 256.0f;
+ posz = 4500.0f;
+ lookx = 4096.0f;
+ looky = 0.0f;
+ lookz = 4096.0f;
+ mySpeed = 0;
+ System.out.println("init_pos");
+ }
+
+ public void init()
+ {
+ int i, j;
+ /* here we should add and initialize our JAVA components */
+ texImg = new byte[WIDTH * WIDTH * 4];
+ y = new float[MAP + 2][MAP + 2];
+ object = new char[MAP + 1][MAP + 1];
+ c = new COLOUR[MAP + 1][MAP + 1];
+ for(i = 0;i <= MAP;i++)
+ {
+ for(j = 0;j <= MAP;j++)
+ {
+ c[i][j] = new COLOUR();
+ }
+ }
+ float fogColor[] = {0.75f, 0.75f, 1.0f, 1.0f};
+ init_pos();
+ // srand(224);
+
+ create_fractal();
+ genLand();
+
+ random = new Random(System.currentTimeMillis());
+ planes = new GlutPlaneObj[MAX_PLANES];
+ for (i = 0; i < MAX_PLANES; i++)
+ planes[i] = new GlutPlaneObj(gl, glu);
+
+ // srand((unsigned)time(NULL));
+ makeTexture();
+ /* ... and furthet OpenGL init's - like you want to */
+ gl.glPixelStorei(GL_UNPACK_ALIGNMENT,1);
+ if(texture_mapping == TRUE)
+ gl.glEnable(GL_TEXTURE_2D);
+ gl.glGenTextures(1,texName);
+ gl.glBindTexture(GL_TEXTURE_2D,texName[0]);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL_REPEAT);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,GL_REPEAT);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_NEAREST);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_NEAREST);
+ gl.glTexImage2D(GL_TEXTURE_2D,0,GL_RGBA,WIDTH,WIDTH,0,GL_RGBA,GL_UNSIGNED_BYTE,texImg);
+ gl.glEnable(GL_DEPTH_TEST);
+ if(flat_shading == FALSE)
+ gl.glShadeModel(GL_SMOOTH);
+ else
+ gl.glShadeModel(GL_FLAT);
+ if(land_fogging == TRUE)
+ gl.glEnable(GL_FOG);
+ else
+ gl.glDisable(GL_FOG);
+ gl.glFogi(GL_FOG_MODE,GL_LINEAR);
+ gl.glFogfv(GL_FOG_COLOR,fogColor);
+ gl.glFogf(GL_FOG_DENSITY,0.4f);
+ gl.glFogf(GL_FOG_START,800.0f);
+ gl.glFogf(GL_FOG_END,1000.0f);
+ gl.glClearColor(0.75f,0.75f,1.0f,1.0f);
+ // FreeConsole();
+ glj.gljCheckGL();
+
+
+ Dimension dim = getSize();
+ reshape(dim.width,dim.height);
+ myMove(FORWARD,mySpeed,true,false);
+ check_height();
+ repaint();
+ /* and start our working thread ... */
+ start();
+ }
+
+ public void display()
+ {
+ int i;
+ /* Standard gl4java Init */
+ if(!cvsIsInit() || glj.gljMakeCurrent() == false)
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+ // ... just render it
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ gl.glCallList(theLand);
+
+ gl.glShadeModel(GL_FLAT);
+ for (i = 0; i < MAX_PLANES; i++)
+ {
+ planes[i].display();
+ }
+ if(flat_shading == FALSE)
+ gl.glShadeModel(GL_SMOOTH);
+
+ myMove(FORWARD,mySpeed,true,false);
+ check_height();
+
+
+ /* For your animation dutys ;-) */
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ public void addPlane()
+ {
+ for (int i = 0; i < MAX_PLANES; i++)
+ {
+ if (planes[i].speed == 0.0f)
+ {
+ int c = random.nextInt() & 0x07;
+ while (c == 0) c = random.nextInt() & 0x07;
+ float r = (float)((c >> 2) & 0x01);
+ float g = (float)((c >> 1) & 0x01);
+ float b = (float)(c & 0x01);
+ // Blue fades into the background; lighten it up.
+ if (c == 0x01) r = g = 0.4f;
+ planes[i].setColor(r,g,b);
+ planes[i].speed =
+ ((float)(random.nextInt() % 20)) * 0.001f + 0.02f;
+ if ((random.nextInt() & 0x01) != 0)
+ planes[i].speed *= -1.0f;
+ planes[i].theta =
+ ((float)(random.nextInt() % 257))*0.1111f;
+ planes[i].tick();
+ if (isSuspended()) repaint();
+ System.out.println("plane added");
+ return;
+ }
+ }
+ }
+
+ public void removePlane()
+ {
+ for (int i = MAX_PLANES - 1; i >= 0; i--)
+ {
+ if (planes[i].speed != 0.0f)
+ {
+ planes[i].speed = 0.0f;
+ if (isSuspended()) repaint();
+ System.out.println("plane removed");
+ return;
+ }
+ }
+ }
+
+ /*************************************************************/
+ /*************************************************************/
+ /*************************************************************/
+ /*************************************************************/
+ /*************************************************************/
+ /*************************************************************/
+ void create_fractal()
+ {
+ int bsize, csize;
+ int x, z, i;
+ int r = 256;
+ /* The maximum random value. */
+ float gradient, shadow = 0.5f, n;
+ /* Make the matrix flat. */
+ for(x = 0;x < MAP + 2;x++)
+ for(z = 0;z < MAP + 2;z++)
+ y[x][z] = 0L;
+ bsize = MAP;
+ for(i = 0;i < 8;i++)
+ {
+ for(x = 0;x < MAP;x += bsize)
+ for(z = 0;z < MAP;z += bsize)
+ y[x][z] += (Math.random() * r - r / 2);
+ if(i > 4)
+ r = r / 2;
+ csize = bsize / 2;
+ if(csize > 0)
+ {
+ for(x = 0;x < MAP;x += bsize)
+ for(z = 0;z < MAP;z += bsize)
+ {
+ if(x < MAP)
+ y[x + csize][z] = (y[x + bsize][z] + y[x][z]) / 2;
+ if(z < MAP)
+ y[x][z + csize] = (y[x][z + bsize] + y[x][z]) / 2;
+ if(x < MAP && z < MAP)
+ y[x + csize][z + csize] = (y[x][z] + y[x + bsize][z] + y[x][z + bsize] + y[x + bsize][z + bsize]) / 4;
+ }
+ }
+ bsize = csize;
+ }
+ for(x = 0;x < MAP;x++)
+ {
+ for(z = 0;z < MAP;z++)
+ {
+ y[x][z] = y[x][z] + y[x + 1][z] + y[x + 1][z + 1] + y[x][z + 1];
+ y[x][z] /= 4.0f;
+ }
+ }
+ for(x = MAP;x > 0;x--)
+ {
+ for(z = 0;z < MAP;z++)
+ {
+ y[x][z] = y[x][z] + y[x - 1][z] + y[x - 1][z + 1] + y[x][z + 1];
+ y[x][z] /= 4.0f;
+ }
+ }
+ /* put trees in various places on grassland. */
+ for(x = 0;x < MAP;x++)
+ {
+ for(z = 0;z < MAP;z++)
+ {
+ if(((int)(Math.random() * 256.0f)) % 8 == 0 && y[x][z] > 0 && y[x][z] < 64)
+ {
+ object[x][z] = 't';
+ }
+ else
+ {
+ object[x][z] = 'n';
+ }
+ }
+ }
+ for(x = 0;x < MAP;x++)
+ for(z = 0;z < MAP;z++)
+ if(y[x][z] > 8)
+ {
+ n = y[x][z];
+ y[x][z] *= n;
+ y[x][z] /= 256.0f;
+ }
+ for(x = 0;x <= MAP;x++)
+ {
+ for(z = 0;z <= MAP;z++)
+ {
+ gradient = ((float)(y[x][z] - y[x + 1][z])) / 100.0f;
+ if(y[x][z] > 64)
+ {
+ if((y[x][z] - y[x][z + 1]) < 8 && (y[x][z] - y[x][z + 1]) > -8 && (y[x][z] - y[x + 1][z]) < 8 && (y[x][z] - y[x + 1][z]) > -8)
+ {
+ c[x][z].g = gradient + 0.75f;
+ c[x][z].r = c[x][z].g;
+ c[x][z].b = c[x][z].g;
+ }
+ else
+ {
+ c[x][z].r = gradient + 0.75f;
+ c[x][z].g = c[x][z].r * 0.8f;
+ c[x][z].b = c[x][z].r * 0.5f;
+ }
+ }
+ else
+ if(y[x][z] > 0)
+ {
+ c[x][z].g = gradient + 0.75f;
+ c[x][z].r = c[x][z].g * 0.6f;
+ c[x][z].b = 0.0f;
+ }
+ else
+ {
+ c[x][z].r = gradient + 1.0f;
+ c[x][z].g = c[x][z].r * 0.75f;
+ c[x][z].b = c[x][z].r * 0.5f;
+ }
+ }
+ }
+ for(x = 0;x <= MAP;x++)
+ for(z = 0;z <= MAP;z++)
+ {
+ if(y[x][z] < 0)
+ y[x][z] /= 4.0f;
+ }
+
+ }
+
+ void makeTexture()
+ {
+ int i, j, h, c;
+ for(i = 0;i < WIDTH;i++)
+ {
+ for(j = 0;j < WIDTH;j++)
+ {
+ c = (int)(Math.random() * 15 + 240);
+ h = i * WIDTH * 4 + j * 4;
+ texImg[h + 0] = (byte)c;
+ texImg[h + 1] = (byte)c;
+ texImg[h + 2] = (byte)c;
+ texImg[h + 3] = (byte)255;
+ }
+ }
+ }
+
+ void check_height()
+ {
+ float x0, x1, lx, lz, x, z, midpoint;
+ int fx, fz;
+ x = (posx / (comp * 1.0f));
+ z = (posz / (comp * 1.0f));
+ fx = (int)(x);
+ fz = (int)(z);
+ lx = x - fx;
+ lz = z - fz;
+ if(fx >= MAP + 2 || fz >= MAP + 2 || fx < 0 || fz < 0)
+ {
+ init_pos();
+ return;
+ }
+ x0 = y[fx][fz] + (y[fx][fz + 1] - y[fx][fz]) * lz;
+ x1 = y[fx + 1][fz] + (y[fx + 1][fz + 1] - y[fx + 1][fz]) * lz;
+ midpoint = x0 + (x1 - x0) * lx;
+ posy = midpoint + 16.0f;
+ }
+
+ /* Function that moves the eye / turns the angle of sight. */
+ /* Updates scene if update. */
+ void myMove(int dir, float amount, boolean update, boolean fetchGLContext)
+ {
+ float diff = (float)Math.sqrt(lookx * lookx + lookz * lookz);
+ /*
+ float alpha = (float)
+ Math.atan(Math.abs(lookz)/Math.abs(lookx));
+ if(lookx<0&&lookz>=0)
+ alpha+=(float)(Math.PI/2.0);
+ else if(lookx>=0&&lookz>=0)
+ alpha+=0;
+ else if(lookx<0&&lookz<0)
+ alpha+=(float)Math.PI;
+ else if(lookx>=0&&lookz<0)
+ alpha+=(float)((3.0*Math.PI)/2.0);
+ float _alpha = (float) (alpha*180f/Math.PI );
+ */
+ boolean do_repaint = false;
+ lookx /= diff;
+ lookz /= diff;
+ //myDir=dir;
+ switch(dir)
+ {
+ case FORWARD:
+ posx += lookx * amount;
+ posz += lookz * amount;
+ break;
+ case TURNLEFT:
+ lookx = lookx * (float)Math.cos(amount) + lookz * (float)Math.sin(amount);
+ lookz = lookz * (float)Math.cos(amount) - lookx * (float)Math.sin(amount);
+ // lookx^2 + lookz^2 != 1 for some reason. Fix.
+ lookx /= diff;
+ lookz /= diff;
+ do_repaint = true;
+ break;
+ case STRAFELEFT:
+ posx += lookz * amount;
+ posz -= lookx * amount;
+ break;
+ case UP:
+ posy += amount;
+ do_repaint = true;
+ break;
+ case LOOKUP:
+ looky += amount;
+ do_repaint = true;
+ break;
+ case LOOKSET:
+ looky = amount;
+ do_repaint = true;
+ break;
+ }
+ int x = (int)(posx / (comp * 1.0f));
+ int z = (int)(posz / (comp * 1.0f));
+ if(x > MAP)
+ posx = 0;
+ if(z > MAP)
+ posz = 0;
+ if(posx < 0)
+ posx = MAP * comp;
+ if(posz < 0)
+ posz = MAP * comp;
+ if (update)
+ {
+ if(fetchGLContext && glj.gljMakeCurrent() == false)
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+ gl.glMatrixMode(GL_MODELVIEW); gl.glLoadIdentity();
+ glu.gluLookAt(posx,posy,posz,
+ posx+lookx, posy+looky,
+ posz+lookz, 0.0f,1.0f,0.0f);
+
+ if(fetchGLContext)
+ glj.gljFree();
+
+ if( do_repaint )
+ repaint();
+ }
+ }
+
+ void draw_tree(int x, int z)
+ {
+ int x1, y1, z1;
+ y1 = (int)y[x][z];
+ x1 = x * comp;
+ z1 = z * comp;
+ gl.glBegin(GL_POLYGON);
+ gl.glColor3f(0.6f,0.4f,0.0f);
+ gl.glVertex3f(x1 - 2,y1 + 5,z1);
+ gl.glVertex3f(x1 + 2,y1 + 5,z1);
+ gl.glVertex3f(x1 + 2,y1,z1);
+ gl.glVertex3f(x1 - 2,y1,z1);
+ gl.glEnd();
+ gl.glBegin(GL_POLYGON);
+ gl.glVertex3f(x1,y1 + 5,z1 - 2);
+ gl.glVertex3f(x1,y1 + 5,z1 + 2);
+ gl.glVertex3f(x1,y1,z1 + 2);
+ gl.glVertex3f(x1,y1,z1 - 2);
+ gl.glEnd();
+ gl.glBegin(GL_POLYGON);
+ gl.glColor3f(0.35f,0.7f,0.0f);
+ gl.glTexCoord2f(0.0f,0.0f);
+ gl.glVertex3f(x1 - 10,y1 + 5,z1);
+ gl.glTexCoord2f(0.5f,1.0f);
+ gl.glVertex3f(x1,y1 + 25,z1);
+ gl.glTexCoord2f(1.0f,0.0f);
+ gl.glVertex3f(x1 + 10,y1 + 5,z1);
+ gl.glEnd();
+ gl.glBegin(GL_POLYGON);
+ gl.glColor3f(0.4f,0.8f,0.0f);
+ gl.glTexCoord2f(0.0f,0.0f);
+ gl.glVertex3f(x1,y1 + 5,z1 - 10);
+ gl.glTexCoord2f(0.5f,1.0f);
+ gl.glVertex3f(x1,y1 + 25,z1);
+ gl.glTexCoord2f(1.0f,0.0f);
+ gl.glVertex3f(x1,y1 + 5,z1 + 10);
+ gl.glEnd();
+ }
+
+ void genLand()
+ {
+ int x, z, position_x, position_z;
+ float x1, x2, z1, z2;
+
+ theLand = gl.glGenLists(1);
+ gl.glNewList(theLand, GL_COMPILE);
+
+ position_x = (int)(posx / comp);
+ position_z = (int)(posz / comp);
+ for(x = position_x - 16;x < position_x + 17;x++)
+ for(z = position_z - 16;z < position_z + 17;z++)
+ {
+ if(x > 0 && x < MAP && z > 0 && z < MAP)
+ {
+ x1 = x * comp;
+ x2 = x * comp + comp;
+ z1 = z * comp;
+ z2 = z * comp + comp;
+ gl.glBegin(GL_POLYGON);
+ gl.glColor3f(c[x][z].r,c[x][z].g,c[x][z].b);
+ gl.glTexCoord2f(0.0f,0.0f);
+ gl.glVertex3f(x1,y[x][z],z1);
+ gl.glColor3f(c[x + 1][z].r,c[x + 1][z].g,c[x + 1][z].b);
+ gl.glTexCoord2f(1.0f,0.0f);
+ gl.glVertex3f(x2,y[x + 1][z],z1);
+ gl.glColor3f(c[x][z + 1].r,c[x][z + 1].g,c[x][z + 1].b);
+ gl.glTexCoord2f(0.0f,1.0f);
+ gl.glVertex3f(x1,y[x][z + 1],z2);
+ gl.glEnd();
+ gl.glBegin(GL_POLYGON);
+ gl.glColor3f(c[x + 1][z + 1].r,c[x + 1][z + 1].g,c[x + 1][z + 1].b);
+ gl.glTexCoord2f(1.0f,1.0f);
+ gl.glVertex3f(x2,y[x + 1][z + 1],z2);
+ gl.glColor3f(c[x][z + 1].r,c[x][z + 1].g,c[x][z + 1].b);
+ gl.glTexCoord2f(0.0f,1.0f);
+ gl.glVertex3f(x1,y[x][z + 1],z2);
+ gl.glColor3f(c[x + 1][z].r,c[x + 1][z].g,c[x + 1][z].b);
+ gl.glTexCoord2f(1.0f,0.0f);
+ gl.glVertex3f(x2,y[x + 1][z],z1);
+ gl.glEnd();
+ if(object[x][z] == 't')
+ draw_tree(x,z);
+ }
+ }
+ gl.glEndList();
+ glj.gljCheckGL();
+ }
+
+ public void reshape(int w, int h)
+ {
+ glj.gljResize(w,h);
+ gl.glViewport(0,0,w,h);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ glu.gluPerspective(60.0,(double)w / (double)h,1.0,1000.0);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ glu.gluLookAt(posx,posy,posz,posx + lookx,posy + looky,posz + lookz,0.0,1.0,0.0);
+ }
+
+ public float getMySpeed()
+ {
+ return mySpeed;
+ }
+
+ public void setMySpeed(float s)
+ {
+ mySpeed = s;
+ }
+
+ public boolean getTextureState()
+ {
+ return texture_mapping == TRUE;
+ }
+
+ public void setTexture(boolean t)
+ {
+ if(t)
+ {
+ if(texture_mapping == FALSE)
+ {
+ if(glj!=null)
+ {
+ if(glj.gljMakeCurrent() == false)
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+ gl.glEnable(GL_TEXTURE_2D);
+ texture_mapping = TRUE;
+ glj.gljCheckGL();
+ repaint();
+ }
+ }
+ }
+ else
+ {
+ if(texture_mapping == TRUE)
+ {
+ if(glj!=null)
+ {
+ if(glj.gljMakeCurrent() == false)
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+ gl.glDisable(GL_TEXTURE_2D);
+ texture_mapping = FALSE;
+ glj.gljCheckGL();
+ repaint();
+ }
+ }
+ }
+ setSuspended(false);
+ }
+
+ public boolean getFogState()
+ {
+ return land_fogging == TRUE;
+ }
+
+ public void setFog(boolean t)
+ {
+ if(t)
+ {
+ if(land_fogging == FALSE)
+ {
+ if(glj!=null)
+ {
+ if(glj.gljMakeCurrent() == false)
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+ gl.glEnable(GL_FOG);
+ land_fogging = TRUE;
+ glj.gljCheckGL();
+ repaint();
+ }
+ }
+ }
+ else
+ {
+ if(land_fogging == TRUE)
+ {
+ if(glj!=null)
+ {
+ if(glj.gljMakeCurrent() == false)
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+ gl.glDisable(GL_FOG);
+ land_fogging = FALSE;
+ glj.gljCheckGL();
+ repaint();
+ }
+ }
+ }
+ setSuspended(false);
+ }
+
+ public boolean getFlatShadeState()
+ {
+ return flat_shading == TRUE;
+ }
+
+ public void setFlatShading(boolean t)
+ {
+ if(t)
+ {
+ if(flat_shading == FALSE)
+ {
+ if(glj!=null)
+ {
+ if(glj.gljMakeCurrent() == false)
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+ gl.glShadeModel(GL_FLAT);
+ flat_shading = TRUE;
+ glj.gljCheckGL();
+ repaint();
+ }
+ }
+ }
+ else
+ {
+ if(flat_shading == TRUE)
+ {
+ if(glj!=null)
+ {
+ if(glj.gljMakeCurrent() == false)
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+ gl.glShadeModel(GL_SMOOTH);
+ flat_shading = FALSE;
+ glj.gljCheckGL();
+ repaint();
+ }
+ }
+ }
+ setSuspended(false);
+ }
+
+ public void newFractal()
+ {
+ create_fractal();
+ if(!cvsIsInit() || glj.gljMakeCurrent() == false)
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+ gl.glFinish();
+ gl.glDeleteLists(theLand, 1);
+ genLand();
+ check_height();
+ repaint();
+ setSuspended(false);
+ }
+
+}
+
diff --git a/demos/GLLandScape/GLLandScape1w1Applet$SpeedTimer b/demos/GLLandScape/GLLandScape1w1Applet$SpeedTimer
new file mode 100644
index 0000000..81e347a
--- /dev/null
+++ b/demos/GLLandScape/GLLandScape1w1Applet$SpeedTimer
Binary files differ
diff --git a/demos/GLLandScape/GLLandScape1w1Applet.java b/demos/GLLandScape/GLLandScape1w1Applet.java
new file mode 100755
index 0000000..90da5f3
--- /dev/null
+++ b/demos/GLLandScape/GLLandScape1w1Applet.java
@@ -0,0 +1,416 @@
+
+import gl4java.GLContext;
+import java.awt.*;
+import java.applet.*;
+import java.awt.event.*;
+
+public class GLLandScape1w1Applet extends Applet
+ implements MouseListener, KeyListener, ActionListener
+{
+ GLLandScape1w1 landScape = null;
+
+ Button bAddPlane = null;
+ Button bRemPlane = null;
+ Button bTexture = null;
+ Button bShading = null;
+ Button bFog = null;
+ Button bNewFractal = null;
+ Button bInfo = null;
+
+ Button bFps; TextField tFps;
+
+ boolean gameOn = true;
+
+ SpeedTimer tMySpeed = null;
+
+ public void init()
+ {
+ init(0,0);
+ }
+
+ public void init(int w, int h)
+ {
+ super.init();
+
+ setLayout(new BorderLayout());
+
+ Panel glFeatures = new Panel();
+ glFeatures.setLayout(new GridLayout(6,1));
+ glFeatures.add(bAddPlane =new Button("+ Plane"));
+ glFeatures.add(bRemPlane =new Button("- Plane"));
+ glFeatures.add(bTexture =new Button("Texture"));
+ glFeatures.add(bShading =new Button("Shading"));
+ glFeatures.add(bFog =new Button("Fogging"));
+ glFeatures.add(bNewFractal =new Button("Fractal"));
+ bAddPlane.addMouseListener(this);
+ bRemPlane.addMouseListener(this);
+ bTexture.addMouseListener(this);
+ bShading.addMouseListener(this);
+ bFog.addMouseListener(this);
+ bNewFractal.addMouseListener(this);
+ add("East", glFeatures);
+
+ Panel pFps = new Panel();
+ pFps.setLayout(new GridLayout(1,3));
+ pFps.add(bInfo =new Button("info"));
+ pFps.add(bFps =new Button("get fps"));
+ pFps.add(tFps =new TextField());
+ bInfo.addMouseListener(this);
+ bFps.addMouseListener(this);
+ tFps.addActionListener(this);
+ add("South", pFps);
+
+ if(w==0 && h==0)
+ {
+ Dimension d = getSize();
+ landScape= new GLLandScape1w1(d.width, d.height);
+ } else {
+ landScape= new GLLandScape1w1(w, h);
+ }
+ landScape.setAnimateFps(30.0);
+ landScape.addMouseListener(this);
+ landScape.addKeyListener(this);
+
+ tMySpeed = new SpeedTimer(landScape, 200);
+
+ landScape.requestFocus();
+ landScape.setMySpeed(0);
+
+ add("Center", landScape);
+ }
+
+ public void destroy()
+ {
+ landScape.stop();
+ landScape.cvsDispose();
+ landScape.removeMouseListener(this);
+ landScape.removeKeyListener(this);
+ }
+
+ public void start()
+ {
+ landScape.start();
+ }
+
+ public void stop()
+ {
+ landScape.stop();
+ }
+
+ public static void main( String args[] ) {
+ String gljLib=null;
+ String glLib=null;
+ String gluLib=null;
+
+ if(args.length>0)
+ gljLib = args[0];
+ if(args.length>1)
+ glLib = args[1];
+ if(args.length>2)
+ gluLib = args[2];
+
+ if(GLContext.loadNativeLibraries(gljLib, glLib, gluLib)==false)
+ System.out.println("GLCanvasV2 could not load native libs:"+
+ gljLib + ", " + glLib + ", " + gluLib);
+
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+
+ GLLandScape1w1Applet window =
+ new GLLandScape1w1Applet();
+
+ Frame f = new Frame();
+
+ f.addWindowListener( new WindowAdapter()
+ {
+ public void windowClosed(WindowEvent e)
+ {
+ System.exit(0);
+ }
+ public void windowClosing(WindowEvent e)
+ {
+ windowClosed(e);
+ }
+ }
+ );
+
+ f.setLayout(new BorderLayout());
+ f.add("Center", window);
+ window.init(500,300);
+ window.start();
+ Dimension ps = window.getPreferredSize();
+ f.setBounds(-100,-100,99,99);
+ f.setVisible(true);
+ f.setVisible(false);
+ Insets i = f.getInsets();
+ f.setBounds(0,0,
+ ps.width+i.left+i.right,
+ ps.height+i.top+i.bottom);
+ f.setVisible(true);
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(landScape ) )
+ {
+ landScape.requestFocus();
+ }
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ }
+ public void mouseReleased( MouseEvent evt ) {
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+
+ if( comp.equals(bAddPlane ) )
+ landScape.addPlane();
+ else if( comp.equals(bRemPlane ) )
+ landScape.removePlane();
+ else if( comp.equals(bTexture ) )
+ landScape.setTexture( ! landScape.getTextureState());
+ else if( comp.equals(bNewFractal ) )
+ landScape.newFractal();
+ else if( comp.equals(bShading ) )
+ landScape.setFlatShading(!landScape.getFlatShadeState());
+ else if( comp.equals(bFog ) )
+ landScape.setFog( ! landScape.getFogState());
+ else if( comp.equals(landScape) )
+ landScape.setSuspended(false);
+ else if( comp.equals(bFps) )
+ {
+ double fps = 0;
+
+ landScape.stopFpsCounter();
+ fps=landScape.getFps();
+ tFps.setText(String.valueOf(fps));
+ landScape.resetFpsCounter();
+ }
+ else if( comp.equals(bInfo) )
+ {
+ InfoWin iw = new InfoWin();
+ }
+ }
+
+
+ public void keyTyped(KeyEvent e)
+ {
+ }
+
+ public void keyPressed(KeyEvent e)
+ {
+ int key = e.getKeyCode();
+
+ if( gameOn==true )
+ {
+ if ( key==KeyEvent.VK_LEFT )
+ {
+ landScape.myMove(landScape.TURNLEFT, 0.1f, true, true);
+ tMySpeed.start();
+ }
+ else if ( key==KeyEvent.VK_RIGHT )
+ {
+ landScape.myMove(landScape.TURNLEFT, -0.1f, true, true);
+ tMySpeed.start();
+ }
+ else if ( key==KeyEvent.VK_UP )
+ {
+ float v = tMySpeed.getSpeed();
+
+ if ( e.isShiftDown() )
+ {
+ tMySpeed.setSpeed(v+2.0f);
+ }
+ else {
+ tMySpeed.setSpeed(v+1.0f);
+ }
+ tMySpeed.start();
+ }
+ else if ( key==KeyEvent.VK_DOWN )
+ {
+ float v = tMySpeed.getSpeed();
+
+ if ( e.isShiftDown() )
+ tMySpeed.setSpeed(v/2.0f);
+ else
+ tMySpeed.setSpeed(v-1.0f);
+ tMySpeed.start();
+ }
+ else if ( key==KeyEvent.VK_PAGE_UP )
+ {
+ landScape.myMove(landScape.LOOKUP, 0.1f, true,true);
+ tMySpeed.start();
+ }
+ else if ( key==KeyEvent.VK_PAGE_DOWN )
+ {
+ landScape.myMove(landScape.LOOKUP, -0.1f, true,true);
+ tMySpeed.start();
+ }
+ else if ( key==KeyEvent.VK_END )
+ {
+ landScape.myMove(landScape.LOOKSET, 0f, true,true);
+ tMySpeed.start();
+ }
+ }
+ }
+
+ public void keyReleased(KeyEvent e)
+ {
+ int key = e.getKeyCode();
+
+ if( gameOn==true &&
+ ( key==KeyEvent.VK_UP ||
+ key==KeyEvent.VK_DOWN
+ )
+ )
+ {
+ //ts.start();
+ }
+ else if( gameOn==true &&
+ ( key==KeyEvent.VK_LEFT ||
+ key==KeyEvent.VK_RIGHT
+ )
+ )
+ {
+ //landScape.noMySpeed();
+ }
+ }
+
+ public void actionPerformed(ActionEvent event)
+ {
+ Object source = event.getSource();
+
+ if ( source == tFps )
+ {
+ try {
+ double FramesPerSec=
+ Double.valueOf(tFps.getText()).doubleValue();
+ landScape.setAnimateFps(FramesPerSec);
+ landScape.setSuspended(false);
+ } catch (NumberFormatException s) {
+ System.out.println("wrong fps format, use float ..");
+ }
+
+ }
+ }
+
+ class SpeedTimer implements Runnable {
+ protected Thread me = null;
+ protected boolean to=false, started=false;
+ protected int _t;
+
+ protected float speed = 0.0f;
+ protected GLLandScape1w1 _ls;
+
+ public SpeedTimer(GLLandScape1w1 ls, int t)
+ { _ls=ls; _t=t; }
+
+ public void start()
+ {
+ if(me!=null) stop();
+ to=false;
+ started=true;
+
+ me = new Thread(this);
+ me.start();
+ }
+
+ public void stop() {
+ if(me!=null)
+ {
+ me.stop();
+ me=null;
+ started=false;
+ to=false;
+ }
+ }
+
+ public void run() {
+ if(me!=null)
+ {
+ try {me.sleep(_t,0);} catch (InterruptedException e){}
+ to=true;
+ while(speed>1.0f)
+ {
+ speed/=2.0f;
+ _ls.setMySpeed(speed);
+ try {me.sleep(_t,0);} catch (InterruptedException e){}
+ }
+ speed = 0.0f;
+ _ls.setMySpeed(0f);
+ }
+ }
+
+ public boolean isActive() { return to; }
+ public boolean isStarted() { return started; }
+
+ public float getSpeed() { return speed; }
+ public void setSpeed(float v)
+ { speed=v;
+ _ls.setMySpeed(speed);
+ }
+
+ }
+
+ class InfoWin extends Frame
+ implements ActionListener
+ {
+ protected Button DismissButton;
+
+ String text =
+ "GLLandScape1w1 V 1.0\n"+
+ "by Sven Goethel\n"+
+ "\thttp://www.jausoft.com/gl4java.html\n"+
+ "\tmailto:[email protected]\n\n"+
+ "The original sources for the lanscape algorythms,\n"+
+ "are taken from Nicholas Anderson's Landscape V1.0 !\n"+
+ "\thttp://www.fortunecity.com/skyscraper/online/263\n"+
+ "\tmailto:[email protected]\n\n"+
+ "usage:\n"+
+ "\t ARROW-UP : accelerate\n"+
+ "\t ARROW-UP + SHIFT : accelerate fast \n"+
+ "\t ARROW-DOWN : de-accelerate\n"+
+ "\t ARROW-DOWN + SHIFT : de-accelerate fast\n"+
+ "\t ARROW-LEFT : turn left\n"+
+ "\t ARROW-right : turn right\n"+
+ "\t PAGE-UP : look-up\n"+
+ "\t PAGE-DOWN : look-down\n"+
+ "\t END : look normal\n\n"+
+ "Have a lot of fun - Sven Goethel\n";
+
+ public InfoWin()
+ {
+ setTitle("INFO");
+ setName("INFO");
+
+ setLayout(new BorderLayout());
+ add("Center", new TextArea(text, 25, 50));
+
+ add("South", DismissButton = new Button("dismiss"));
+ DismissButton.addActionListener(this);
+
+ pack();
+ setVisible(true);
+
+ toFront();
+ }
+
+ public void actionPerformed(ActionEvent event) {
+ if ( event.getSource() == DismissButton)
+ {
+ setVisible(false);
+ dispose();
+ }
+ }
+ }
+}
diff --git a/demos/GLLandScape/GLLandScape1w1_plugin13.html b/demos/GLLandScape/GLLandScape1w1_plugin13.html
new file mode 100644
index 0000000..32ab0bf
--- /dev/null
+++ b/demos/GLLandScape/GLLandScape1w1_plugin13.html
@@ -0,0 +1,46 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 500 HEIGHT = 300 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "GLLandScape1w1Applet.class" WIDTH = 500 HEIGHT = 300 frames = "55" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "GLLandScape1w1Applet.class" WIDTH = 500 HEIGHT = 300></XMP>
+<PARAM NAME = CODE VALUE = "GLLandScape1w1Applet.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+<PARAM NAME = frames VALUE ="55">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "GLLandScape1w1Applet.class" WIDTH = 500 HEIGHT = 300>
+<PARAM NAME = frames VALUE ="55">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/GLLandScape/GlutPlaneObj.java b/demos/GLLandScape/GlutPlaneObj.java
new file mode 100644
index 0000000..3b449a7
--- /dev/null
+++ b/demos/GLLandScape/GlutPlaneObj.java
@@ -0,0 +1,112 @@
+/**
+ * @(#) glutplane.java
+ * @(#) author: Mark J. Kilgard (converted to Java by Ron Cemer)
+ */
+
+/* This program is freely distributable without licensing fees
+ and is provided without guarantee or warrantee expressed or
+ implied. This program is -not- in the public domain. */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.GLFunc;
+import gl4java.GLUFunc;
+import gl4java.GLEnum;
+import gl4java.GLUEnum;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+public class GlutPlaneObj
+ implements GLEnum, GLUEnum
+{
+ float speed = 0.0f; /* zero speed means not flying */
+ float red = 0.0f, green = 0.0f, blue = 0.0f;
+ float theta = 0.0f;
+ public float x = 0.0f, y = 0.0f, z = 0.0f, angle = 0.0f;
+
+ public void setPosition(float x, float y, float z)
+ {
+ this.x=x;
+ this.y=y;
+ this.z=z;
+ }
+
+
+ public void setColor(float r, float g, float b)
+ {
+ red = r;
+ green = g;
+ blue = b;
+ }
+
+
+ private final double M_PI = 3.14159265;
+ private final double M_PI_2 = 1.57079632;
+
+ GLFunc gl;
+ GLUFunc glu;
+
+ public GlutPlaneObj(GLFunc gl, GLUFunc glu)
+ {
+ this.gl=gl;
+ this.glu=glu;
+ }
+
+ public void display()
+ {
+
+ if (speed != 0.0f)
+ {
+ tick();
+ // System.out.println("plane: ("+x+"/"+y+"/"+z+")");
+ gl.glPushMatrix();
+ gl.glTranslatef(x, y, z);
+ gl.glRotatef(290.0f, 1.0f, 0.0f, 0.0f);
+ gl.glRotatef(angle, 0.0f, 0.0f, 1.0f);
+ // gl.glScalef(1.0f / 3.0f, 1.0f / 4.0f, 1.0f / 4.0f);
+ gl.glScalef(5.0f, 5.0f, 5.0f);
+ gl.glTranslatef(0.0f, -4.0f, -1.5f);
+ gl.glBegin(GL_TRIANGLE_STRIP);
+ /* left wing */
+ gl.glVertex3f(-7.0f, 0.0f, 2.0f);
+ gl.glVertex3f(-1.0f, 0.0f, 3.0f);
+ gl.glColor3f(red,green,blue);
+ gl.glVertex3f(-1.0f, 7.0f, 3.0f);
+ /* left side */
+ gl.glColor3f(0.6f * red, 0.6f * green, 0.6f * blue);
+ gl.glVertex3f(0.0f, 0.0f, 0.0f);
+ gl.glVertex3f(0.0f, 8.0f, 0.0f);
+ /* right side */
+ gl.glVertex3f(1.0f, 0.0f, 3.0f);
+ gl.glVertex3f(1.0f, 7.0f, 3.0f);
+ /* final tip of right wing */
+ gl.glColor3f(red, green, blue);
+ gl.glVertex3f(7.0f, 0.0f, 2.0f);
+ gl.glEnd();
+ gl.glPopMatrix();
+ }
+ }
+
+ public void tick()
+ {
+ /*
+ posx = 4500.0f;
+ posy = 256.0f;
+ posz = 4500.0f;
+ */
+ theta += speed;
+ z = 4500.0f + 600.0f * (float)Math.cos(theta);
+ x = 4500.0f + 600.0f * (float)Math.sin(2.0f * theta);
+ y = 280.0f + (float)Math.sin(theta / 3.4f) * 20.0f;
+ angle = (float)
+ (((Math.atan(2.0) + M_PI_2) * Math.sin(theta) - M_PI_2) *
+ 180.0 / M_PI);
+ if (speed < 0.0f) angle += 180.0f;
+ }
+}
diff --git a/demos/GLLandScape/LICENSE.txt b/demos/GLLandScape/LICENSE.txt
new file mode 100644
index 0000000..9611410
--- /dev/null
+++ b/demos/GLLandScape/LICENSE.txt
@@ -0,0 +1,36 @@
+GLLandScape - A landscape generator, where you can walk through - uses GL4Java
+
+Copyright (C) 1999 Sven Goethel
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Library General Public
+License as published by the Free Software Foundation; either
+version 2 of the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Library General Public License for more details.
+
+You should have received a copy of the GNU Library General Public
+License along with this library; if not, write to the
+Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA.
+
+You can also check the GNU Library General Public License
+in the internet at http://www.gnu.org/copyleft/lgpl.html !
+
+If you like to contact the author use:
+
+Sven Goethel, Elpke 5, 33605 Bielefeld, Germany
+web : http://www.jausoft.com
+voice: +49-521-2399440
+fax : +49-521-2399442
+
+The landscape algorythms are taken from Nicholas Anderson's Landscape V1.0 !
+ http://www.fortunecity.com/skyscraper/online/263
+Those parts are still under the Copyright (C) of Nicholas Anderson !
+
+Sven Goethel, 15 January 1999
diff --git a/demos/GLLandScape/index.html b/demos/GLLandScape/index.html
new file mode 100644
index 0000000..2efada2
--- /dev/null
+++ b/demos/GLLandScape/index.html
@@ -0,0 +1,52 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="Author" content="Ron Cemer & Sven Goethel">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>GL4Java Landscape World</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<p>The GLLandScape World</p><BR>
+Paperplanes are flying arround a landscape !<br>
+<I>Thanxs to </I>
+<A HREF="http://pages.eidosnet.co.uk/~n.anderson/index.html">
+<I>Nicholas Anderson</I></A>
+<I> for ANSI-C sources of Landscape V1.0</I>
+<br>
+<br>
+Use the keybord's cursor keys to move arround.<br>
+The page up and down keys are used to look up and down.<br>
+This all is done to move like in Quake.<br>
+<br>
+<p>&nbsp;<a href="GLLandScape1.html">GLLandScape</a>
+: a LandScape V1 at 500x300
+<p>&nbsp;<a href="GLLandScape1-big.html">GLLandScape BIG</a>
+: a LandScape V1 at 800x600
+<p>&nbsp;<a href="GLLandScape1w1.html">GLLandScape-World</a>
+: a LandScape World V1 at 500x300
+<p>&nbsp;<a href="GLLandScape1w1-big.html">GLLandScape-World BIG</a>
+: a LandScape World V1 at 800x600
+<br>&nbsp;
+<br>
+<hr>
+<P ALIGN=CENTER><SPAN STYLE="text-decoration: none"><I>For use with
+the Java2-Plug-In: Tested with Win32,Netscape,Java2 <A HREF="Java2.txt">(see
+Installation-instructions Java2)</A> ! </I></SPAN><br>
+<br>&nbsp;
+<a href="../../Installer/java.policy">The Java2 (sdk, jre, plugin 1.3) policy file example to give GL4Java the necessary permissions (Click here) !</a>
+<br>&nbsp;
+</P>
+<p>&nbsp;<a href="GLLandScape1_plugin13.html">GLLandScape</a>
+: a LandScape V1 at 500x300
+<p>&nbsp;<a href="GLLandScape1-big_plugin13.html">GLLandScape BIG</a>
+: a LandScape V1 at 800x600
+<p>&nbsp;<a href="GLLandScape1w1_plugin13.html">GLLandScape-World</a>
+: a LandScape World V1 at 500x300
+<p>&nbsp;<a href="GLLandScape1w1-big_plugin13.html">GLLandScape-World BIG</a>
+: a LandScape World V1 at 800x600
+<br>&nbsp;
+<br>
+<hr>
+</body>
+</html>
diff --git a/demos/HodglimsNeHe/Lesson1.html b/demos/HodglimsNeHe/Lesson1.html
new file mode 100644
index 0000000..1c73238
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson1.html
@@ -0,0 +1,35 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson1 Applet: Setting Up OpenGL In Windows</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Setting Up OpenGL In Windows</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<APPLET CODE="Lesson1.class" WIDTH="400" HEIGHT="400">
+</APPLET>
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson1.java b/demos/HodglimsNeHe/Lesson1.java
new file mode 100644
index 0000000..fb05de2
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson1.java
@@ -0,0 +1,261 @@
+/**
+ * Lesson1.java
+ *
+ * Author: Darren Hodges
+ * Date: 16/12/1999
+ *
+ * Port of the NeHe OpenGL Tutorial (Lesson 1: "Setting Up OpenGL In Windows")
+ * to Java using the GL4Java interface to OpenGL.
+ * Although the title "Setting Up OpenGL In Windows" doesn't really apply
+ * to Java because it is a multi-platform language.
+ *
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+
+//GL4Java classes
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+
+
+public class Lesson1 extends Applet
+{
+ //Our rendering canvas
+ //We are using GLAnimCanvas because we want the canvas
+ //to be constantly redrawn
+ renderCanvas canvas = null;
+
+
+ /**
+ * void init()
+ *
+ * Initialise the applet.
+ */
+ public void init()
+ {
+ //We will use BorderLayout to layout the applet components
+ setLayout(new BorderLayout());
+
+ //Create our canvas and add it to the center of the applet
+ canvas = new renderCanvas(getSize().width, getSize().height);
+ canvas.requestFocus();
+ add("Center", canvas);
+ }
+
+
+ /**
+ * void start()
+ *
+ * Start the applet.
+ */
+ public void start()
+ {
+ //Start animating the canvas
+ canvas.start();
+ }
+
+
+ /**
+ * void stop()
+ *
+ * Stop the applet.
+ */
+ public void stop()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the applet.
+ */
+ public void destroy()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ //Destroy the canvas
+ canvas.destroy();
+ }
+
+
+
+ private class renderCanvas extends GLAnimCanvas
+ implements KeyListener, MouseListener
+ {
+ /**
+ * renderCanvas(int w, int h)
+ *
+ * Constructor.
+ */
+ public renderCanvas(int w, int h)
+ {
+ super(w, h);
+
+ //Registers this canvas to process keyboard events
+ addKeyListener(this);
+ addMouseListener(this);
+ }
+
+
+ /**
+ * void preInit()
+ *
+ * Called just BEFORE the GL-Context is created.
+ */
+ public void preInit()
+ {
+ //We want double buffering
+ doubleBuffer = true;
+ //But we dont want stereo view
+ stereoView = false;
+ }
+
+
+ /**
+ * void init()
+ *
+ * Called just AFTER the GL-Context is created.
+ */
+ public void init()
+ {
+ //This Will Clear The Background Color To Black
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+
+ //Enables Clearing Of The Depth Buffer
+ gl.glClearDepth(1.0);
+ //The Type Of Depth Test To Do
+ gl.glDepthFunc(GL_LESS);
+ //Enables Depth Testing
+ gl.glEnable(GL_DEPTH_TEST);
+
+ //Enables Smooth Color Shading
+ gl.glShadeModel(GL_SMOOTH);
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the canvas.
+ */
+ public void destroy()
+ {
+ //Destroy the GLContext
+ cvsDispose();
+ }
+
+
+ /**
+ * void reshape(int width, int height)
+ *
+ * Called after the first paint command.
+ */
+ public void reshape(int width, int height)
+ {
+ //Reset The Current Viewport And Perspective Transformation
+ gl.glViewport(0, 0, width, height);
+
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+
+ /**
+ * void display()
+ *
+ * Draw to the canvas.
+ */
+ public void display()
+ {
+ //Ensure GL is initialised correctly
+ if (glj.gljMakeCurrent(true) == false)
+ return;
+
+ //Clear The Screen And The Depth Buffer
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ //Reset The View
+ gl.glLoadIdentity();
+
+ //Swap buffers
+ glj.gljSwap();
+ }
+
+
+ /**
+ * void keyTyped(KeyEvent e)
+ *
+ * Invoked when a key has been typed. This event occurs when a key press is followed by a key release.
+ */
+ public void keyTyped(KeyEvent e)
+ {
+ //We are not handling any keyboard events yet
+ }
+
+
+ /**
+ * void keyPressed(KeyEvent e)
+ *
+ * Invoked when a key has been pressed.
+ */
+ public void keyPressed(KeyEvent e)
+ {
+ //We are not handling any keyboard events yet
+ }
+
+
+ /**
+ * void keyReleased(KeyEvent e)
+ *
+ * Invoked when a key has been released.
+ */
+ public void keyReleased(KeyEvent e)
+ {
+ //We are not handling any keyboard events yet
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ public void mouseExited( MouseEvent evt )
+ { }
+ public void mousePressed( MouseEvent evt )
+ { }
+ public void mouseReleased( MouseEvent evt )
+ { }
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ }
+}
diff --git a/demos/HodglimsNeHe/Lesson11.html b/demos/HodglimsNeHe/Lesson11.html
new file mode 100644
index 0000000..7976c3c
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson11.html
@@ -0,0 +1,35 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson11 Applet: OpenGL Flag Effect</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>OpenGL Flag Effect</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<APPLET CODE="Lesson11.class" WIDTH="400" HEIGHT="400">
+</APPLET>
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson11.java b/demos/HodglimsNeHe/Lesson11.java
new file mode 100644
index 0000000..ad566ee
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson11.java
@@ -0,0 +1,382 @@
+/**
+ * Lesson11.java
+ *
+ * Author: Darren Hodges
+ * Date: 23/12/1999
+ *
+ * Port of the NeHe OpenGL Tutorial (Lesson 11: "OpenGL Flag Effect")
+ * to Java using the GL4Java interface to OpenGL.
+ *
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+
+//GL4Java classes
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.utils.textures.*;
+
+
+public class Lesson11 extends Applet
+{
+ //Our rendering canvas
+ //We are using GLAnimCanvas because we want the canvas
+ //to be constantly redrawn
+ renderCanvas canvas = null;
+
+
+ /**
+ * void init()
+ *
+ * Initialise the applet.
+ */
+ public void init()
+ {
+ //We will use BorderLayout to layout the applet components
+ setLayout(new BorderLayout());
+
+ //Create our canvas and add it to the center of the applet
+ canvas = new renderCanvas(getSize().width, getSize().height);
+ canvas.requestFocus();
+ add("Center", canvas);
+ }
+
+
+ /**
+ * void start()
+ *
+ * Start the applet.
+ */
+ public void start()
+ {
+ //Start animating the canvas
+ canvas.start();
+ }
+
+
+ /**
+ * void stop()
+ *
+ * Stop the applet.
+ */
+ public void stop()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the applet.
+ */
+ public void destroy()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ //Destroy the canvas
+ canvas.destroy();
+ }
+
+
+
+ private class renderCanvas extends GLAnimCanvas
+ implements KeyListener, MouseListener
+ {
+ float xrot = 0.0f; //X Rotation
+ float yrot = 0.0f; //Y Rotation
+ float zrot = 0.0f; //Z Rotation
+
+ //The array for the points on the grid of our "wave"
+ float[][][] points = new float[45][45][3];
+
+ int wiggle_count = 0;
+
+ int[] texture = new int[1]; //Storage for one texture
+
+
+ /**
+ * renderCanvas(int w, int h)
+ *
+ * Constructor.
+ */
+ public renderCanvas(int w, int h)
+ {
+ super(w, h);
+
+ //Registers this canvas to process keyboard events
+ addKeyListener(this);
+ addMouseListener(this);
+ }
+
+
+ /**
+ * void preInit()
+ *
+ * Called just BEFORE the GL-Context is created.
+ */
+ public void preInit()
+ {
+ //We want double buffering
+ doubleBuffer = true;
+ //But we dont want stereo view
+ stereoView = false;
+ }
+
+
+ /**
+ * void LoadGLTextures()
+ *
+ * Load textures.
+ */
+ public void LoadGLTextures()
+ {
+ PngTextureLoader texLoader = new PngTextureLoader(gl, glu);
+ texLoader.readTexture(getCodeBase(), "data/tim.png");
+
+ if(texLoader.isOk())
+ {
+ //Create Texture
+ gl.glGenTextures(1, texture);
+ gl.glBindTexture(GL_TEXTURE_2D, texture[0]);
+
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
+
+ gl.glTexImage2D(GL_TEXTURE_2D,
+ 0,
+ 3,
+ texLoader.getImageWidth(),
+ texLoader.getImageHeight(),
+ 0,
+ GL_RGB,
+ GL_UNSIGNED_BYTE,
+ texLoader.getTexture());
+ }
+ }
+
+
+ /**
+ * void init()
+ *
+ * Called just AFTER the GL-Context is created.
+ */
+ public void init()
+ {
+ //Load The Texture(s)
+ LoadGLTextures();
+ //Enable Texture Mapping
+ gl.glEnable(GL_TEXTURE_2D);
+
+ //This Will Clear The Background Color To Black
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+
+ //Enables Clearing Of The Depth Buffer
+ gl.glClearDepth(1.0);
+ //The Type Of Depth Test To Do
+ gl.glDepthFunc(GL_LESS);
+ //Enables Depth Testing
+ gl.glEnable(GL_DEPTH_TEST);
+
+ //Enables Smooth Color Shading
+ gl.glShadeModel(GL_SMOOTH);
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+
+
+ for(float float_x = 0.0f; float_x < 9.0f; float_x += 0.2f)
+ {
+ for(float float_y = 0.0f; float_y < 9.0f; float_y += 0.2f)
+ {
+ points[(int)(float_x * 5)][(int)(float_y * 5)][0] = float_x - 4.4f;
+ points[(int)(float_x * 5)][(int)(float_y * 5)][1] = float_y - 4.4f;
+ points[(int)(float_x * 5)][(int)(float_y * 5)][2] = (float)(Math.sin(((float_x * 5 * 8) / 360) * 3.14159 * 2));
+ }
+ }
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the canvas.
+ */
+ public void destroy()
+ {
+ //Destroy the GLContext
+ cvsDispose();
+ }
+
+
+ /**
+ * void reshape(int width, int height)
+ *
+ * Called after the first paint command.
+ */
+ public void reshape(int width, int height)
+ {
+ //Reset The Current Viewport And Perspective Transformation
+ gl.glViewport(0, 0, width, height);
+
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+
+ /**
+ * void display()
+ *
+ * Draw to the canvas.
+ */
+ public void display()
+ {
+ //Ensure GL is initialised correctly
+ if (glj.gljMakeCurrent(true) == false)
+ return;
+
+ int x, y;
+ float float_x, float_y, float_xb, float_yb;
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ gl.glLoadIdentity();
+ gl.glTranslatef(0.0f, 0.0f, -15.0f);
+
+ gl.glRotatef(xrot, 1.0f, 0.0f, 0.0f);
+ gl.glRotatef(yrot, 0.0f, 1.0f, 0.0f);
+ gl.glRotatef(zrot, 0.0f, 0.0f, 1.0f);
+
+ gl.glBindTexture(GL_TEXTURE_2D, texture[0]);
+
+ gl.glPolygonMode(GL_BACK, GL_FILL);
+ gl.glPolygonMode(GL_FRONT, GL_LINE);
+
+ gl.glBegin(GL_QUADS);
+
+ for(x = 0; x < 44; x++)
+ {
+ for(y = 0; y < 44; y++)
+ {
+ float_x = (float)x / 44;
+ float_y = (float)y / 44;
+ float_xb = (float)(x + 1) / 44;
+ float_yb = (float)(y + 1) / 44;
+
+ gl.glTexCoord2f(float_x, float_y);
+ gl.glVertex3f(points[x][y][0], points[x][y][1], points[x][y][2]);
+
+ gl.glTexCoord2f(float_x, float_yb);
+ gl.glVertex3f(points[x][y + 1][0], points[x][y + 1][1], points[x][y + 1][2]);
+
+ gl.glTexCoord2f(float_xb, float_yb);
+ gl.glVertex3f(points[x + 1][y + 1][0], points[x + 1][y + 1][1], points[x + 1][y + 1][2]);
+
+ gl.glTexCoord2f(float_xb, float_y);
+ gl.glVertex3f(points[x + 1][y][0], points[x + 1][y][1], points[x + 1][y][2]);
+ }
+ }
+
+ gl.glEnd();
+
+ if(wiggle_count == 2)
+ {
+ for(y = 0; y < 45; y++)
+ {
+ points[44][y][2] = points[0][y][2];
+ }
+
+ for(x = 0; x < 44; x++)
+ {
+ for(y = 0; y < 45; y++)
+ {
+ points[x][y][2] = points[x + 1][y][2];
+ }
+ }
+
+ wiggle_count = 0;
+ }
+
+ wiggle_count++;
+
+ xrot += 0.3f;
+ yrot += 0.2f;
+ zrot += 0.4f;
+
+ //Swap buffers
+ glj.gljSwap();
+ }
+
+
+ /**
+ * void keyTyped(KeyEvent e)
+ *
+ * Invoked when a key has been typed. This event occurs when a key press is followed by a key release.
+ */
+ public void keyTyped(KeyEvent e)
+ {
+ //We are not handling any keyboard events
+ }
+
+
+ /**
+ * void keyPressed(KeyEvent e)
+ *
+ * Invoked when a key has been pressed.
+ */
+ public void keyPressed(KeyEvent e)
+ {
+ //We are not handling any keyboard events
+ }
+
+
+ /**
+ * void keyReleased(KeyEvent e)
+ *
+ * Invoked when a key has been released.
+ */
+ public void keyReleased(KeyEvent e)
+ {
+ //We are not handling any keyboard events
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ public void mouseExited( MouseEvent evt )
+ { }
+ public void mousePressed( MouseEvent evt )
+ { }
+ public void mouseReleased( MouseEvent evt )
+ { }
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ }
+}
diff --git a/demos/HodglimsNeHe/Lesson11_plugin13.html b/demos/HodglimsNeHe/Lesson11_plugin13.html
new file mode 100644
index 0000000..28737f8
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson11_plugin13.html
@@ -0,0 +1,66 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson11 Applet: OpenGL Flag Effect</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>OpenGL Flag Effect</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "400" HEIGHT = "400" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "Lesson11.class" WIDTH = "400" HEIGHT = "400" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "Lesson11.class" WIDTH = "400" HEIGHT = "400"></XMP>
+<PARAM NAME = CODE VALUE = "Lesson11.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "Lesson11.class" WIDTH = "400" HEIGHT = "400">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson12.html b/demos/HodglimsNeHe/Lesson12.html
new file mode 100644
index 0000000..037b1d6
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson12.html
@@ -0,0 +1,46 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson12 Applet: Display Lists</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Display Lists</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana"><B><U>Keys</U></B></FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<B>UP</B> - Rotate up<BR>
+<B>DOWN</B> - Rotate down<BR>
+<B>LEFT</B> - Rotate left<BR>
+<B>RIGHT</B> - Rotate right
+</FONT>
+</P>
+<P><FONT SIZE="1" FACE="Verdana"><B>Note:</B> You must click inside the applet window before using these keys.</FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<APPLET CODE="Lesson12.class" WIDTH="400" HEIGHT="400">
+</APPLET>
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson12.java b/demos/HodglimsNeHe/Lesson12.java
new file mode 100644
index 0000000..86a9f02
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson12.java
@@ -0,0 +1,437 @@
+/**
+ * Lesson12.java
+ *
+ * Author: Darren Hodges
+ * Date: 05/01/2000
+ *
+ * Port of the NeHe OpenGL Tutorial (Lesson 12: "Display Lists")
+ * to Java using the GL4Java interface to OpenGL.
+ *
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+
+//GL4Java classes
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.utils.textures.*;
+
+
+public class Lesson12 extends Applet
+{
+ //Our rendering canvas
+ //We are using GLAnimCanvas because we want the canvas
+ //to be constantly redrawn
+ renderCanvas canvas = null;
+
+
+ /**
+ * void init()
+ *
+ * Initialise the applet.
+ */
+ public void init()
+ {
+ //We will use BorderLayout to layout the applet components
+ setLayout(new BorderLayout());
+
+ //Create our canvas and add it to the center of the applet
+ canvas = new renderCanvas(getSize().width, getSize().height);
+ canvas.requestFocus();
+ add("Center", canvas);
+ }
+
+
+ /**
+ * void start()
+ *
+ * Start the applet.
+ */
+ public void start()
+ {
+ //Start animating the canvas
+ canvas.start();
+ }
+
+
+ /**
+ * void stop()
+ *
+ * Stop the applet.
+ */
+ public void stop()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the applet.
+ */
+ public void destroy()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ //Destroy the canvas
+ canvas.destroy();
+ }
+
+
+
+ private class renderCanvas extends GLAnimCanvas
+ implements KeyListener, MouseListener
+ {
+ int[] texture = new int[1]; //Storage for one texture
+
+ int cube = 0; //Storage For The Display List
+ int top = 0; //Storage For The Second Display List
+ int xloop = 0; //Loop For X Axis
+ int yloop = 0; //Loop For Y Axis
+
+ float xrot = 0.0f; //X Rotation
+ float yrot = 0.0f; //Y Rotation
+
+ //Box colours
+ float boxcol[][] =
+ {
+ {1.0f,0.0f,0.0f},{1.0f,0.5f,0.0f},{1.0f,1.0f,0.0f},{0.0f,1.0f,0.0f},{0.0f,1.0f,1.0f}
+ };
+
+ //Box top colours
+ float topcol[][] =
+ {
+ {0.5f,0.0f,0.0f},{0.5f,0.25f,0.0f},{0.5f,0.5f,0.0f},{0.0f,0.5f,0.0f},{0.0f,0.5f,0.5f}
+ };
+
+
+ /**
+ * renderCanvas(int w, int h)
+ *
+ * Constructor.
+ */
+ public renderCanvas(int w, int h)
+ {
+ super(w, h);
+
+ //Registers this canvas to process keyboard events
+ addKeyListener(this);
+ addMouseListener(this);
+ }
+
+
+ /**
+ * void preInit()
+ *
+ * Called just BEFORE the GL-Context is created.
+ */
+ public void preInit()
+ {
+ //We want double buffering
+ doubleBuffer = true;
+ //But we dont want stereo view
+ stereoView = false;
+ }
+
+
+ /**
+ *
+ * void BuildList()
+ *
+ * Builds our display lists
+ */
+ public void BuildList()
+ {
+ //Create display list for cube
+ cube = gl.glGenLists(2);
+
+ gl.glNewList(cube, GL_COMPILE);
+ gl.glBegin(GL_QUADS);
+ //Bottom Face
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f(-1.0f, -1.0f, -1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f( 1.0f, -1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ //Front Face
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, 1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, 1.0f); //Top Left Of The Texture and Quad
+ //Back Face
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, -1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, -1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, -1.0f); //Bottom Left Of The Texture and Quad
+ //Right face
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, -1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, -1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, 1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ //Left Face
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, -1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, 1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glEnd();
+ gl.glEndList();
+
+ //Create display list for cube top
+ top = cube + 1;
+
+ gl.glNewList(top, GL_COMPILE);
+ gl.glBegin(GL_QUADS);
+ //Top Face
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f(-1.0f, 1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f( 1.0f, 1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, -1.0f); //Top Right Of The Texture and Quad
+ gl.glEnd();
+ gl.glEndList();
+ }
+
+
+ /**
+ * void LoadGLTextures()
+ *
+ * Load textures.
+ */
+ public void LoadGLTextures()
+ {
+ PngTextureLoader texLoader = new PngTextureLoader(gl, glu);
+ texLoader.readTexture(getCodeBase(), "data/cube.png");
+
+ if(texLoader.isOk())
+ {
+ //Create Texture
+ gl.glGenTextures(1, texture);
+ gl.glBindTexture(GL_TEXTURE_2D, texture[0]);
+
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
+
+ gl.glTexImage2D(GL_TEXTURE_2D,
+ 0,
+ 3,
+ texLoader.getImageWidth(),
+ texLoader.getImageHeight(),
+ 0,
+ GL_RGB,
+ GL_UNSIGNED_BYTE,
+ texLoader.getTexture());
+ }
+ }
+
+
+ /**
+ * void init()
+ *
+ * Called just AFTER the GL-Context is created.
+ */
+ public void init()
+ {
+ //Load The Texture(s)
+ LoadGLTextures();
+
+ //Build display lists
+ BuildList();
+
+ //Enable Texture Mapping
+ gl.glEnable(GL_TEXTURE_2D);
+
+ //This Will Clear The Background Color To Black
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+
+ //Enables Clearing Of The Depth Buffer
+ gl.glClearDepth(1.0);
+ //The Type Of Depth Test To Do
+ gl.glDepthFunc(GL_LESS);
+ //Enables Depth Testing
+ gl.glEnable(GL_DEPTH_TEST);
+
+ //Enables Smooth Color Shading
+ gl.glShadeModel(GL_SMOOTH);
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the canvas.
+ */
+ public void destroy()
+ {
+ //Destroy the GLContext
+ cvsDispose();
+ }
+
+
+ /**
+ * void reshape(int width, int height)
+ *
+ * Called after the first paint command.
+ */
+ public void reshape(int width, int height)
+ {
+ //Reset The Current Viewport And Perspective Transformation
+ gl.glViewport(0, 0, width, height);
+
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+
+ //Enable 3D cards default light
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_LIGHTING);
+
+ //Enable coloured textures
+ gl.glEnable(GL_COLOR_MATERIAL);
+ }
+
+
+ /**
+ * void display()
+ *
+ * Draw to the canvas.
+ */
+ public void display()
+ {
+ //Ensure GL is initialised correctly
+ if (glj.gljMakeCurrent(true) == false)
+ return;
+
+ //Clear The Screen And The Depth Buffer
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ //Select texture
+ gl.glBindTexture(GL_TEXTURE_2D, texture[0]);
+
+ for(yloop = 1; yloop < 6; yloop++)
+ {
+ for(xloop = 0; xloop < yloop; xloop++)
+ {
+ //Reset The View
+ gl.glLoadIdentity();
+ gl.glTranslatef(1.4f + ((float)xloop * 2.8f) - ((float)yloop * 1.4f),((6.0f - (float)yloop) * 2.4f) -7.0f, -20.0f);
+ gl.glRotatef(45.0f - (2.0f * yloop) + xrot, 1.0f, 0.0f, 0.0f);
+ gl.glRotatef(45.0f + yrot, 0.0f, 1.0f, 0.0f);
+
+ //Select color
+ gl.glColor3fv(boxcol[yloop - 1]);
+ //Draw cube
+ gl.glCallList(cube);
+
+ //Select color
+ gl.glColor3fv(topcol[yloop - 1]);
+ //Draw top
+ gl.glCallList(top);
+ }
+ }
+
+ //Swap buffers
+ glj.gljSwap();
+ }
+
+
+ /**
+ * void keyTyped(KeyEvent e)
+ *
+ * Invoked when a key has been typed. This event occurs when a key press is followed by a key release.
+ */
+ public void keyTyped(KeyEvent e)
+ {
+ }
+
+
+ /**
+ * void keyPressed(KeyEvent e)
+ *
+ * Invoked when a key has been pressed.
+ */
+ public void keyPressed(KeyEvent e)
+ {
+ switch(e.getKeyCode())
+ {
+ //Rotate cubes when user presses UP
+ case KeyEvent.VK_UP:
+ {
+ xrot -= 0.2f;
+ break;
+ }
+
+ //Rotate cubes when user presses DOWN
+ case KeyEvent.VK_DOWN:
+ {
+ xrot += 0.2f;
+ break;
+ }
+
+ //Rotate cubes when user presses RIGHT
+ case KeyEvent.VK_RIGHT:
+ {
+ yrot += 0.2f;
+ break;
+ }
+
+ //Rotate cubes when user presses LEFT
+ case KeyEvent.VK_LEFT:
+ {
+ yrot -= 0.2f;
+ break;
+ }
+ }
+ }
+
+
+ /**
+ * void keyReleased(KeyEvent e)
+ *
+ * Invoked when a key has been released.
+ */
+ public void keyReleased(KeyEvent e)
+ {
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ public void mouseExited( MouseEvent evt )
+ { }
+ public void mousePressed( MouseEvent evt )
+ { }
+ public void mouseReleased( MouseEvent evt )
+ { }
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ }
+}
diff --git a/demos/HodglimsNeHe/Lesson12_plugin13.html b/demos/HodglimsNeHe/Lesson12_plugin13.html
new file mode 100644
index 0000000..6ac571e
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson12_plugin13.html
@@ -0,0 +1,77 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson12 Applet: Display Lists</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Display Lists</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana"><B><U>Keys</U></B></FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<B>UP</B> - Rotate up<BR>
+<B>DOWN</B> - Rotate down<BR>
+<B>LEFT</B> - Rotate left<BR>
+<B>RIGHT</B> - Rotate right
+</FONT>
+</P>
+<P><FONT SIZE="1" FACE="Verdana"><B>Note:</B> You must click inside the applet window before using these keys.</FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "400" HEIGHT = "400" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "Lesson12.class" WIDTH = "400" HEIGHT = "400" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "Lesson12.class" WIDTH = "400" HEIGHT = "400"></XMP>
+<PARAM NAME = CODE VALUE = "Lesson12.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "Lesson12.class" WIDTH = "400" HEIGHT = "400">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson16.html b/demos/HodglimsNeHe/Lesson16.html
new file mode 100644
index 0000000..ea079be
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson16.html
@@ -0,0 +1,51 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson16 Applet: Cool Looking Fog</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Cool Looking Fog</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana"><B><U>Keys</U></B></FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<B>L</B> - Lights ON/OFF<BR>
+<B>F</B> - Change texture filter<BR>
+<B>G</B> - Change fog mode<BR>
+<B>PG_UP</B> - Zoom out<BR>
+<B>PG_DOWN</B> - Zoom in<BR>
+<B>UP</B> - Rotate cube<BR>
+<B>DOWN</B> - Rotate cube<BR>
+<B>LEFT</B> - Rotate cube<BR>
+<B>RIGHT</B> - Rotate cube
+</FONT>
+</P>
+<P><FONT SIZE="1" FACE="Verdana"><B>Note:</B> You must click inside the applet window before using these keys.</FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<APPLET CODE="Lesson16.class" WIDTH="400" HEIGHT="400">
+</APPLET>
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson16.java b/demos/HodglimsNeHe/Lesson16.java
new file mode 100644
index 0000000..82fa7b7
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson16.java
@@ -0,0 +1,551 @@
+/**
+ * Lesson16.java
+ *
+ * Author: Darren Hodges
+ * Date: 19/01/2000
+ *
+ * Port of the NeHe OpenGL Tutorial (Lesson 16: "Cool Looking Fog")
+ * to Java using the GL4Java interface to OpenGL.
+ *
+ * Note: The MipMapping code is only available in GL4Java 2.1.2.1 and later!
+ *
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+
+//GL4Java classes
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.utils.textures.*;
+
+
+public class Lesson16 extends Applet
+{
+ //Our rendering canvas
+ //We are using GLAnimCanvas because we want the canvas
+ //to be constantly redrawn
+ renderCanvas canvas = null;
+
+
+ /**
+ * void init()
+ *
+ * Initialise the applet.
+ */
+ public void init()
+ {
+ //We will use BorderLayout to layout the applet components
+ setLayout(new BorderLayout());
+
+ //Create our canvas and add it to the center of the applet
+ canvas = new renderCanvas(getSize().width, getSize().height);
+ canvas.requestFocus();
+ add("Center", canvas);
+ }
+
+
+ /**
+ * void start()
+ *
+ * Start the applet.
+ */
+ public void start()
+ {
+ //Start animating the canvas
+ canvas.start();
+ }
+
+
+ /**
+ * void stop()
+ *
+ * Stop the applet.
+ */
+ public void stop()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the applet.
+ */
+ public void destroy()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ //Destroy the canvas
+ canvas.destroy();
+ }
+
+
+
+ private class renderCanvas extends GLAnimCanvas
+ implements KeyListener, MouseListener
+ {
+ boolean light = true; //Lighting ON/OFF
+ boolean lp = false; //L Pressed?
+ boolean fp = false; //F Pressed?
+ boolean gp = false; //G Pressed?
+
+ float xrot = 0.0f; //X Rotation
+ float yrot = 0.0f; //Y Rotation
+ float xspeed = 0.0f; //X Rotation Speed
+ float yspeed = 0.0f; //Y Rotation Speed
+
+ float z = -8.0f; //Depth Into The Screen
+
+ //Ambient light
+ float[] LightAmbient = { 0.5f, 0.5f, 0.5f, 1.0f };
+
+ //Diffuse light
+ float[] LightDiffuse = { 1.0f, 1.0f, 1.0f, 1.0f };
+
+ //Light position
+ float[] LightPosition = { 0.0f, 0.0f, 2.0f, 1.0f };
+
+ int filter = 0; //Which Filter To Use
+
+ int[] texture = new int[3]; //Storage for 3 textures
+
+ //Fog
+ int[] fogMode = { GL_EXP, GL_EXP2, GL_LINEAR }; //Storage For Three Types Of Fog
+ int fogfilter = 0; //Which Fog To Use
+ float[] fogColor = { 0.5f, 0.5f, 0.5f, 1.0f }; //Fog Color
+
+
+ /**
+ * renderCanvas(int w, int h)
+ *
+ * Constructor.
+ */
+ public renderCanvas(int w, int h)
+ {
+ super(w, h);
+
+ //Registers this canvas to process keyboard events
+ addKeyListener(this);
+ addMouseListener(this);
+ }
+
+
+ /**
+ * void preInit()
+ *
+ * Called just BEFORE the GL-Context is created.
+ */
+ public void preInit()
+ {
+ //We want double buffering
+ doubleBuffer = true;
+ //But we dont want stereo view
+ stereoView = false;
+ }
+
+
+ /**
+ * void LoadGLTextures()
+ *
+ * Load textures.
+ */
+ public void LoadGLTextures()
+ {
+ PngTextureLoader texLoader = new PngTextureLoader(gl, glu);
+ texLoader.readTexture(getCodeBase(), "data/crate.png");
+
+ if(texLoader.isOk())
+ {
+ //Create Nearest Filtered Texture
+ gl.glGenTextures(3, texture);
+ gl.glBindTexture(GL_TEXTURE_2D, texture[0]);
+
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
+
+ gl.glTexImage2D(GL_TEXTURE_2D,
+ 0,
+ 3,
+ texLoader.getImageWidth(),
+ texLoader.getImageHeight(),
+ 0,
+ GL_RGB,
+ GL_UNSIGNED_BYTE,
+ texLoader.getTexture());
+
+ //Create Linear Filtered Texture
+ gl.glBindTexture(GL_TEXTURE_2D, texture[1]);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
+
+ gl.glTexImage2D(GL_TEXTURE_2D,
+ 0,
+ 3,
+ texLoader.getImageWidth(),
+ texLoader.getImageHeight(),
+ 0,
+ GL_RGB,
+ GL_UNSIGNED_BYTE,
+ texLoader.getTexture());
+
+ //Create MipMapped Texture (Only with GL4Java 2.1.2.1 and later!)
+ gl.glBindTexture(GL_TEXTURE_2D, texture[2]);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_NEAREST);
+
+ glu.gluBuild2DMipmaps(GL_TEXTURE_2D,
+ 3,
+ texLoader.getImageWidth(),
+ texLoader.getImageHeight(),
+ GL_RGB,
+ GL_UNSIGNED_BYTE,
+ texLoader.getTexture());
+ }
+ }
+
+
+ /**
+ * void init()
+ *
+ * Called just AFTER the GL-Context is created.
+ */
+ public void init()
+ {
+ //Load The Texture(s)
+ LoadGLTextures();
+ //Enable Texture Mapping
+ gl.glEnable(GL_TEXTURE_2D);
+
+ //This Will Clear The Background Color To Color Of Fog
+ gl.glClearColor(0.5f, 0.5f, 0.5f, 1.0f);
+
+ //Enables Clearing Of The Depth Buffer
+ gl.glClearDepth(1.0);
+ //The Type Of Depth Test To Do
+ gl.glDepthFunc(GL_LESS);
+ //Enables Depth Testing
+ gl.glEnable(GL_DEPTH_TEST);
+
+ //Enables Smooth Color Shading
+ gl.glShadeModel(GL_SMOOTH);
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+
+ //Lights
+ gl.glLightfv(GL_LIGHT1, GL_AMBIENT, LightAmbient);
+ gl.glLightfv(GL_LIGHT1, GL_DIFFUSE, LightDiffuse);
+ gl.glLightfv(GL_LIGHT1, GL_POSITION, LightPosition);
+
+ //Enable light
+ gl.glEnable(GL_LIGHT1);
+ gl.glEnable(GL_LIGHTING);
+
+ //Enables GL_FOG
+ gl.glEnable(GL_FOG);
+ //Fog Mode
+ gl.glFogi(GL_FOG_MODE, fogMode[fogfilter]);
+ //Set Fog Color
+ gl.glFogfv(GL_FOG_COLOR, fogColor);
+ //How Dense Will The Fog Be
+ gl.glFogf(GL_FOG_DENSITY, 0.35f);
+ //Fog Hint Value
+ gl.glHint(GL_FOG_HINT, GL_DONT_CARE);
+ //Fog Start Depth
+ gl.glFogf(GL_FOG_START, 1.0f);
+ //Fog End Depth
+ gl.glFogf(GL_FOG_END, 5.0f);
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the canvas.
+ */
+ public void destroy()
+ {
+ //Destroy the GLContext
+ cvsDispose();
+ }
+
+
+ /**
+ * void reshape(int width, int height)
+ *
+ * Called after the first paint command.
+ */
+ public void reshape(int width, int height)
+ {
+ //Reset The Current Viewport And Perspective Transformation
+ gl.glViewport(0, 0, width, height);
+
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+
+ /**
+ * void display()
+ *
+ * Draw to the canvas.
+ */
+ public void display()
+ {
+ //Ensure GL is initialised correctly
+ if (glj.gljMakeCurrent(true) == false)
+ return;
+
+ //Clear The Screen And The Depth Buffer
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ //Reset The View
+ gl.glLoadIdentity();
+
+ //Move into the screen
+ gl.glTranslatef(0.0f, 0.0f, z);
+
+ //Rotate On The X Axis
+ gl.glRotatef(xrot,1.0f, 0.0f, 0.0f);
+ //Rotate On The Y Axis
+ gl.glRotatef(yrot, 0.0f, 1.0f, 0.0f);
+
+ //Select texture
+ gl.glBindTexture(GL_TEXTURE_2D, texture[filter]);
+
+ gl.glBegin(GL_QUADS);
+ //Front Face
+ gl.glNormal3f(0.0f, 0.0f, 1.0f);
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, 1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, 1.0f); //Top Left Of The Texture and Quad
+ //Back Face
+ gl.glNormal3f(0.0f, 0.0f, -1.0f);
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, -1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, -1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, -1.0f); //Bottom Left Of The Texture and Quad
+ //Top Face
+ gl.glNormal3f(0.0f, 1.0f, 0.0f);
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f(-1.0f, 1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f( 1.0f, 1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, -1.0f); //Top Right Of The Texture and Quad
+ //Bottom Face
+ gl.glNormal3f(0.0f, -1.0f, 0.0f);
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f(-1.0f, -1.0f, -1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f( 1.0f, -1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ //Right face
+ gl.glNormal3f(1.0f, 0.0f, 0.0f);
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, -1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, -1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, 1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ //Left Face
+ gl.glNormal3f(-1.0f, 0.0f, 0.0f);
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, -1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, 1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glEnd();
+
+ //X Axis Rotation
+ xrot += xspeed;
+ //Y Axis Rotation
+ yrot += yspeed;
+
+ //Swap buffers
+ glj.gljSwap();
+ }
+
+
+ /**
+ * void keyTyped(KeyEvent e)
+ *
+ * Invoked when a key has been typed. This event occurs when a key press is followed by a key release.
+ */
+ public void keyTyped(KeyEvent e)
+ {
+ }
+
+
+ /**
+ * void keyPressed(KeyEvent e)
+ *
+ * Invoked when a key has been pressed.
+ */
+ public void keyPressed(KeyEvent e)
+ {
+ switch(e.getKeyCode())
+ {
+ //Switch ON/OFF light when L is pressed
+ case KeyEvent.VK_L:
+ {
+ if(!lp)
+ {
+ lp = true;
+ //Toggle light
+ light = !light;
+
+ if(!light)
+ gl.glDisable(GL_LIGHTING);
+ else
+ gl.glEnable(GL_LIGHTING);
+ }
+
+ break;
+ }
+
+ //Switch filter when F is pressed
+ case KeyEvent.VK_F:
+ {
+ if(!fp)
+ {
+ fp = true;
+ //Change filter
+ filter += 1;
+ if(filter > 2)
+ filter = 0;
+ }
+
+ break;
+ }
+
+ //Switch fog mode when G is pressed
+ case KeyEvent.VK_G:
+ {
+ if(!gp)
+ {
+ gp = true;
+ //Toggle fog
+ fogfilter += 1;
+ if(fogfilter > 2)
+ fogfilter = 0;
+
+ gl.glFogi(GL_FOG_MODE, fogMode[fogfilter]); //Fog Mode
+ }
+
+ break;
+ }
+
+ //Move cube back when user presses PG_UP
+ case KeyEvent.VK_PAGE_UP:
+ {
+ z -= 0.2f;
+ break;
+ }
+
+ //Move cube forwards when user presses PG_DOWN
+ case KeyEvent.VK_PAGE_DOWN:
+ {
+ z += 0.2f;
+ break;
+ }
+
+ //Increase X rotation speed when user presses UP
+ case KeyEvent.VK_UP:
+ {
+ xspeed += 0.2f;
+ break;
+ }
+
+ //Decrease X rotation speed when user presses DOWN
+ case KeyEvent.VK_DOWN:
+ {
+ xspeed -= 0.2f;
+ break;
+ }
+
+ //Increase Y rotation speed when user presses RIGHT
+ case KeyEvent.VK_RIGHT:
+ {
+ yspeed += 0.2f;
+ break;
+ }
+
+ //Decrease Y rotation speed when user presses LEFT
+ case KeyEvent.VK_LEFT:
+ {
+ yspeed -= 0.2f;
+ break;
+ }
+ }
+ }
+
+
+ /**
+ * void keyReleased(KeyEvent e)
+ *
+ * Invoked when a key has been released.
+ */
+ public void keyReleased(KeyEvent e)
+ {
+ switch(e.getKeyCode())
+ {
+ //Key has been released
+ case KeyEvent.VK_L:
+ {
+ lp = false;
+ break;
+ }
+
+ //Key has been released
+ case KeyEvent.VK_F:
+ {
+ fp = false;
+ break;
+ }
+
+ //Key has been released
+ case KeyEvent.VK_G:
+ {
+ gp = false;
+ break;
+ }
+ }
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ public void mouseExited( MouseEvent evt )
+ { }
+ public void mousePressed( MouseEvent evt )
+ { }
+ public void mouseReleased( MouseEvent evt )
+ { }
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ }
+}
diff --git a/demos/HodglimsNeHe/Lesson16_plugin13.html b/demos/HodglimsNeHe/Lesson16_plugin13.html
new file mode 100644
index 0000000..43441bc
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson16_plugin13.html
@@ -0,0 +1,82 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson16 Applet: Cool Looking Fog</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Cool Looking Fog</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana"><B><U>Keys</U></B></FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<B>L</B> - Lights ON/OFF<BR>
+<B>F</B> - Change texture filter<BR>
+<B>G</B> - Change fog mode<BR>
+<B>PG_UP</B> - Zoom out<BR>
+<B>PG_DOWN</B> - Zoom in<BR>
+<B>UP</B> - Rotate cube<BR>
+<B>DOWN</B> - Rotate cube<BR>
+<B>LEFT</B> - Rotate cube<BR>
+<B>RIGHT</B> - Rotate cube
+</FONT>
+</P>
+<P><FONT SIZE="1" FACE="Verdana"><B>Note:</B> You must click inside the applet window before using these keys.</FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "400" HEIGHT = "400" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "Lesson16.class" WIDTH = "400" HEIGHT = "400" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "Lesson16.class" WIDTH = "400" HEIGHT = "400"></XMP>
+<PARAM NAME = CODE VALUE = "Lesson16.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "Lesson16.class" WIDTH = "400" HEIGHT = "400">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson18.html b/demos/HodglimsNeHe/Lesson18.html
new file mode 100644
index 0000000..2cf8f5a
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson18.html
@@ -0,0 +1,50 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson18 Applet: Quadratics</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Quadratics</B></FONT><BR>
+Ported by <A HREF="MAILTO: [email protected]">Lapo Luchini</A>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<FONT SIZE="1" FACE="Verdana"><B><U>Keys</U></B></FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<B>L</B> - Lights ON/OFF<BR>
+<B>F</B> - Change texture filter<BR>
+<B>PG_UP</B> - Zoom out<BR>
+<B>PG_DOWN</B> - Zoom in<BR>
+<B>UP</B> - Rotate cube<BR>
+<B>DOWN</B> - Rotate cube<BR>
+<B>LEFT</B> - Rotate cube<BR>
+<B>RIGHT</B> - Rotate cube
+</FONT>
+</P>
+<P><FONT SIZE="1" FACE="Verdana"><B>Note:</B> You must click inside the applet window before using these keys.</FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<APPLET CODE="Lesson18.class" WIDTH="400" HEIGHT="400">
+</APPLET>
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson18.java b/demos/HodglimsNeHe/Lesson18.java
new file mode 100644
index 0000000..b63a627
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson18.java
@@ -0,0 +1,459 @@
+/**
+ * Lesson18.java
+ *
+ * by Lapo Luchini <[email protected]>
+ * Based on Lesson 7 by Darren Hodges
+ * Date: 23/08/2000
+ *
+ * Port of the NeHe OpenGL Tutorial (Lesson 18: "Quadratics")
+ * to Java using the GL4Java interface to OpenGL.
+ *
+ * Note: The MipMapping code is only available in GL4Java 2.1.2.1 and later!
+ *
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+
+//GL4Java classes
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.utils.textures.*;
+
+public class Lesson18 extends Applet
+{
+ //Our rendering canvas
+ //We are using GLAnimCanvas because we want the canvas
+ //to be constantly redrawn
+ renderCanvas canvas=null;
+
+ /**
+ * void init()
+ *
+ * Initialise the applet.
+ */
+ public void init() {
+ //We will use BorderLayout to layout the applet components
+ setLayout(new BorderLayout());
+
+ //Create our canvas and add it to the center of the applet
+ canvas=new renderCanvas(getSize().width, getSize().height);
+ canvas.requestFocus();
+ add("Center", canvas);
+ }
+
+ /**
+ * void start()
+ *
+ * Start the applet.
+ */
+ public void start() {
+ //Start animating the canvas
+ canvas.start();
+ }
+
+ /**
+ * void stop()
+ *
+ * Stop the applet.
+ */
+ public void stop() {
+ //Stop animating the canvas
+ canvas.stop();
+ }
+
+ /**
+ * void destroy()
+ *
+ * Destroy the applet.
+ */
+ public void destroy() {
+ //Stop animating the canvas
+ canvas.stop();
+ //Destroy the canvas
+ canvas.destroy();
+ }
+
+ private class renderCanvas extends GLAnimCanvas
+ implements KeyListener, MouseListener
+ {
+ boolean light = true; //Lighting ON/OFF
+ boolean lp = false; //L Pressed?
+ boolean fp = false; //F Pressed?
+ boolean sp = false; //Spacebar Pressed?
+
+ float xrot = 0.0f; //X Rotation
+ float yrot = 0.0f; //Y Rotation
+ float xspeed = 0.0f; //X Rotation Speed
+ float yspeed = 0.0f; //Y Rotation Speed
+
+ float z = -5.0f; //Depth Into The Screen
+
+ //Ambient light
+ float[] LightAmbient = { 0.5f, 0.5f, 0.5f, 1.0f };
+
+ //Diffuse light
+ float[] LightDiffuse = { 1.0f, 1.0f, 1.0f, 1.0f };
+
+ //Light position
+ float[] LightPosition = { 0.0f, 0.0f, 2.0f, 1.0f };
+
+ int filter = 0; //Which Filter To Use
+
+ int[] texture = new int[3]; //Storage for 3 textures
+
+ int part1; // Start Of Disc
+ int part2; // End Of Disc
+ int p1=0; // Increase 1
+ int p2=1; // Increase 2
+ int quadratic; // Storage For Our Quadratic Objects
+ int object=0; // Which Object To Draw
+
+ public renderCanvas(int w, int h) {
+ super(w, h);
+ //Registers this canvas to process keyboard events
+ addKeyListener(this);
+ addMouseListener(this);
+ }
+
+ public void preInit() {
+ //We want double buffering
+ doubleBuffer = true;
+ //But we dont want stereo view
+ stereoView = false;
+ }
+
+ public void LoadTextures() {
+ PngTextureLoader texLoader=new PngTextureLoader(gl, glu);
+ // catch exception if executed by command-line
+ try {
+ texLoader.readTexture(getCodeBase(), "data/crate.png");
+ } catch(NullPointerException e) {
+ texLoader.readTexture("data/crate.png");
+ }
+ if(texLoader.isOk()) {
+ gl.glGenTextures(3, texture);
+ gl.glBindTexture(GL_TEXTURE_2D, texture[0]);
+
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
+
+ gl.glTexImage2D(GL_TEXTURE_2D,
+ 0,
+ 3,
+ texLoader.getImageWidth(),
+ texLoader.getImageHeight(),
+ 0,
+ GL_RGB,
+ GL_UNSIGNED_BYTE,
+ texLoader.getTexture());
+
+ //Create Linear Filtered Texture
+ gl.glBindTexture(GL_TEXTURE_2D, texture[1]);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
+
+ gl.glTexImage2D(GL_TEXTURE_2D,
+ 0,
+ 3,
+ texLoader.getImageWidth(),
+ texLoader.getImageHeight(),
+ 0,
+ GL_RGB,
+ GL_UNSIGNED_BYTE,
+ texLoader.getTexture());
+
+ //Create MipMapped Texture (Only with GL4Java 2.1.2.1 and later!)
+ gl.glBindTexture(GL_TEXTURE_2D, texture[2]);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_NEAREST);
+
+ glu.gluBuild2DMipmaps(GL_TEXTURE_2D,
+ 3,
+ texLoader.getImageWidth(),
+ texLoader.getImageHeight(), GL_RGB,
+ GL_UNSIGNED_BYTE,
+ texLoader.getTexture());
+ }
+ }
+
+ public void init() {
+ LoadTextures();
+ gl.glEnable(GL_TEXTURE_2D);
+
+ //This Will Clear The Background Color To Black
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+
+ //Enables Clearing Of The Depth Buffer
+ gl.glClearDepth(1.0);
+ //The Type Of Depth Lesson18 To Do
+ gl.glDepthFunc(GL_LESS);
+ //Enables Depth Lesson18ing
+ gl.glEnable(GL_DEPTH_TEST);
+
+ //Enables Smooth Color Shading
+ gl.glShadeModel(GL_SMOOTH);
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0, (float)getSize().width / (float)getSize().height, 0.1, 100.0);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+
+ //Lights
+ gl.glLightfv(GL_LIGHT1, GL_AMBIENT, LightAmbient);
+ gl.glLightfv(GL_LIGHT1, GL_DIFFUSE, LightDiffuse);
+ gl.glLightfv(GL_LIGHT1, GL_POSITION, LightPosition);
+
+ //Enable light
+ gl.glEnable(GL_LIGHT1);
+ gl.glEnable(GL_LIGHTING);
+
+ quadratic=glu.gluNewQuadric(); // Create A Pointer To The Quadric Object ( NEW )
+ glu.gluQuadricNormals(quadratic, GLU_SMOOTH); // Create Smooth Normals ( NEW )
+ glu.gluQuadricTexture(quadratic, GL_TRUE); // Create Texture Coords ( NEW )
+ }
+
+ public void destroy() {
+ //Destroy the GLContext
+ cvsDispose();
+ }
+
+ public void reshape(int width, int height) {
+ //Reset The Current Viewport And Perspective Transformation
+ gl.glViewport(0, 0, width, height);
+
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0, getSize().width/(float)getSize().height, 0.1, 100.0);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+ private void DrawCube() {
+ gl.glBegin(GL_QUADS);
+ //Front Face
+ gl.glNormal3f(0.0f, 0.0f, 1.0f);
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, 1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, 1.0f); //Top Left Of The Texture and Quad
+ //Back Face
+ gl.glNormal3f(0.0f, 0.0f, -1.0f);
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, -1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, -1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, -1.0f); //Bottom Left Of The Texture and Quad
+ //Top Face
+ gl.glNormal3f(0.0f, 1.0f, 0.0f);
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f(-1.0f, 1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f( 1.0f, 1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, -1.0f); //Top Right Of The Texture and Quad
+ //Bottom Face
+ gl.glNormal3f(0.0f, -1.0f, 0.0f);
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f(-1.0f, -1.0f, -1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f( 1.0f, -1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ //Right face
+ gl.glNormal3f(1.0f, 0.0f, 0.0f);
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, -1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, -1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, 1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ //Left Face
+ gl.glNormal3f(-1.0f, 0.0f, 0.0f);
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, -1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, 1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glEnd();
+ }
+
+ public void display() {
+ //Clear The Screen And The Depth Buffer
+ gl.glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
+ //Reset The View
+ gl.glLoadIdentity();
+
+ //Move into the screen
+ gl.glTranslatef(0.0f, 0.0f, z);
+
+ //Rotate On The X Axis
+ gl.glRotatef(xrot, 1.0f, 0.0f, 0.0f);
+ //Rotate On The Y Axis
+ gl.glRotatef(yrot, 0.0f, 1.0f, 0.0f);
+
+ gl.glBindTexture(GL_TEXTURE_2D, texture[filter]); // Select A Filtered Texture
+
+ switch(object) { // Check object To Find Out What To Draw
+ case 0: // Drawing Object 1
+ DrawCube(); // Draw Our Cube
+ break; // Done
+ case 1: // Drawing Object 2
+ gl.glTranslatef(0.0f,0.0f,-1.5f); // Center The Cylinder
+ glu.gluCylinder(quadratic,1.0f,1.0f,3.0f,32,32); // Draw Our Cylinder
+ break; // Done
+ case 2: // Drawing Object 3
+ glu.gluDisk(quadratic,0.5f,1.5f,32,32); // Draw A Disc (CD Shape)
+ break; // Done
+ case 3: // Drawing Object 4
+ glu.gluSphere(quadratic,1.3f,32,32); // Draw A Sphere
+ break; // Done
+ case 4: // Drawing Object 5
+ gl.glTranslatef(0.0f,0.0f,-1.5f); // Center The Cone
+ glu.gluCylinder(quadratic,1.0f,0.0f,3.0f,32,32); // A Cone With A Bottom Radius Of .5 And A Height Of 2
+ break; // Done
+ case 5: // Drawing Object 6
+ part1+=p1; // Increase Start Angle
+ part2+=p2; // Increase Sweep Angle
+ if(part1>359) { // 360 Degrees
+ p1=0; // Stop Increasing Start Angle
+ part1=0; // Set Start Angle To Zero
+ p2=1; // Start Increasing Sweep Angle
+ part2=0; // Start Sweep Angle At Zero
+ }
+ if(part2>359) { // 360 Degrees
+ p1=1; // Start Increasing Start Angle
+ p2=0; // Stop Increasing Sweep Angle
+ }
+ glu.gluPartialDisk(quadratic,0.5f,1.5f,32,32,part1,part2-part1); // A Disk Like The One Before
+ break; // Done
+ };
+ xrot+=xspeed; // Increase Rotation On X Axis
+ yrot+=yspeed; // Increase Rotation On Y Axis
+
+ //Swap buffers
+ glj.gljSwap();
+ }
+
+ public void keyTyped(KeyEvent e) {
+ //We are not handling any keyboard events yet
+ }
+ public void keyPressed(KeyEvent e) {
+ switch(e.getKeyCode()) {
+ //Switch ON/OFF light when L is pressed
+ case KeyEvent.VK_L:
+ if(!lp) {
+ lp = true;
+ //Toggle light
+ light = !light;
+
+ if(!light)
+ gl.glDisable(GL_LIGHTING);
+ else
+ gl.glEnable(GL_LIGHTING);
+ }
+
+ break;
+ //Switch filter when F is pressed
+ case KeyEvent.VK_F:
+ if(!fp) {
+ fp = true;
+ //Change filter
+ filter += 1;
+ if(filter > 2)
+ filter = 0;
+ }
+ break;
+ //Move cube back when user presses PG_UP
+ case KeyEvent.VK_PAGE_UP:
+ z -= 0.2f;
+ break;
+ //Move cube forwards when user presses PG_DOWN
+ case KeyEvent.VK_PAGE_DOWN:
+ z += 0.2f;
+ break;
+ //Increase X rotation speed when user presses UP
+ case KeyEvent.VK_UP:
+ xspeed += 0.2f;
+ break;
+ //Decrease X rotation speed when user presses DOWN
+ case KeyEvent.VK_DOWN:
+ xspeed -= 0.2f;
+ break;
+ //Increase Y rotation speed when user presses RIGHT
+ case KeyEvent.VK_RIGHT:
+ yspeed += 0.2f;
+ break;
+ //Decrease Y rotation speed when user presses LEFT
+ case KeyEvent.VK_LEFT:
+ yspeed -= 0.2f;
+ break;
+ //Switch filter when F is pressed
+ case KeyEvent.VK_SPACE:
+ if(!sp) {
+ sp = true;
+ //Change filter
+ object += 1;
+ if(object > 5)
+ object = 0;
+ }
+ break;
+ }
+ }
+ public void keyReleased(KeyEvent e) {
+ switch(e.getKeyCode()) {
+ //Key has been released
+ case KeyEvent.VK_L:
+ lp = false;
+ break;
+ //Key has been released
+ case KeyEvent.VK_F:
+ fp = false;
+ break;
+ case KeyEvent.VK_SPACE:
+ sp = false;
+ break;
+ }
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ public void mouseExited( MouseEvent evt )
+ { }
+ public void mousePressed( MouseEvent evt )
+ { }
+ public void mouseReleased( MouseEvent evt )
+ { }
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ }
+ static class MyAdapter extends WindowAdapter {
+ public void windowClosing(WindowEvent e) {
+ System.exit(0);
+ }
+ }
+ public static void main(String as[]) {
+ Frame f=new Frame("Lesson18");
+ Lesson18 a=new Lesson18();
+ a.init();
+ a.start();
+ f.add("Center", a);
+ f.setSize(400, 400);
+ f.show();
+ f.addWindowListener(new MyAdapter());
+ }
+}
diff --git a/demos/HodglimsNeHe/Lesson18_plugin13.html b/demos/HodglimsNeHe/Lesson18_plugin13.html
new file mode 100644
index 0000000..6c731ef
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson18_plugin13.html
@@ -0,0 +1,81 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson18 Applet: Quadratics</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Quadratics</B></FONT><BR>
+Ported by <A HREF="MAILTO: [email protected]">Lapo Luchini</A>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<FONT SIZE="1" FACE="Verdana"><B><U>Keys</U></B></FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<B>L</B> - Lights ON/OFF<BR>
+<B>F</B> - Change texture filter<BR>
+<B>PG_UP</B> - Zoom out<BR>
+<B>PG_DOWN</B> - Zoom in<BR>
+<B>UP</B> - Rotate cube<BR>
+<B>DOWN</B> - Rotate cube<BR>
+<B>LEFT</B> - Rotate cube<BR>
+<B>RIGHT</B> - Rotate cube
+</FONT>
+</P>
+<P><FONT SIZE="1" FACE="Verdana"><B>Note:</B> You must click inside the applet window before using these keys.</FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "400" HEIGHT = "400" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "Lesson18.class" WIDTH = "400" HEIGHT = "400" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "Lesson18.class" WIDTH = "400" HEIGHT = "400"></XMP>
+<PARAM NAME = CODE VALUE = "Lesson18.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "Lesson18.class" WIDTH = "400" HEIGHT = "400">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson1_plugin13.html b/demos/HodglimsNeHe/Lesson1_plugin13.html
new file mode 100644
index 0000000..02c7e26
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson1_plugin13.html
@@ -0,0 +1,66 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson1 Applet: Setting Up OpenGL In Windows</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Setting Up OpenGL In Windows</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "400" HEIGHT = "400" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "Lesson1.class" WIDTH = "400" HEIGHT = "400" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "Lesson1.class" WIDTH = "400" HEIGHT = "400"></XMP>
+<PARAM NAME = CODE VALUE = "Lesson1.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "Lesson1.class" WIDTH = "400" HEIGHT = "400">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson2.html b/demos/HodglimsNeHe/Lesson2.html
new file mode 100644
index 0000000..8589c39
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson2.html
@@ -0,0 +1,35 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson2 Applet: Your First Polygon</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Your First Polygon</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<APPLET CODE="Lesson2.class" WIDTH="400" HEIGHT="400">
+</APPLET>
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson2.java b/demos/HodglimsNeHe/Lesson2.java
new file mode 100644
index 0000000..8f6eb2c
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson2.java
@@ -0,0 +1,280 @@
+/**
+ * Lesson2.java
+ *
+ * Author: Darren Hodges
+ * Date: 16/12/1999
+ *
+ * Port of the NeHe OpenGL Tutorial (Lesson 2: "Your First Polygon")
+ * to Java using the GL4Java interface to OpenGL.
+ *
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+
+//GL4Java classes
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+
+
+public class Lesson2 extends Applet
+{
+ //Our rendering canvas
+ //We are using GLAnimCanvas because we want the canvas
+ //to be constantly redrawn
+ renderCanvas canvas = null;
+
+
+ /**
+ * void init()
+ *
+ * Initialise the applet.
+ */
+ public void init()
+ {
+ //We will use BorderLayout to layout the applet components
+ setLayout(new BorderLayout());
+
+ //Create our canvas and add it to the center of the applet
+ canvas = new renderCanvas(getSize().width, getSize().height);
+ canvas.requestFocus();
+ add("Center", canvas);
+ }
+
+
+ /**
+ * void start()
+ *
+ * Start the applet.
+ */
+ public void start()
+ {
+ //Start animating the canvas
+ canvas.start();
+ }
+
+
+ /**
+ * void stop()
+ *
+ * Stop the applet.
+ */
+ public void stop()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the applet.
+ */
+ public void destroy()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ //Destroy the canvas
+ canvas.destroy();
+ }
+
+
+
+ private class renderCanvas extends GLAnimCanvas
+ implements KeyListener, MouseListener
+ {
+ /**
+ * renderCanvas(int w, int h)
+ *
+ * Constructor.
+ */
+ public renderCanvas(int w, int h)
+ {
+ super(w, h);
+
+ //Registers this canvas to process keyboard events
+ addKeyListener(this);
+ addMouseListener(this);
+ }
+
+
+ /**
+ * void preInit()
+ *
+ * Called just BEFORE the GL-Context is created.
+ */
+ public void preInit()
+ {
+ //We want double buffering
+ doubleBuffer = true;
+ //But we dont want stereo view
+ stereoView = false;
+ }
+
+
+ /**
+ * void init()
+ *
+ * Called just AFTER the GL-Context is created.
+ */
+ public void init()
+ {
+ //This Will Clear The Background Color To Black
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+
+ //Enables Clearing Of The Depth Buffer
+ gl.glClearDepth(1.0);
+ //The Type Of Depth Test To Do
+ gl.glDepthFunc(GL_LESS);
+ //Enables Depth Testing
+ gl.glEnable(GL_DEPTH_TEST);
+
+ //Enables Smooth Color Shading
+ gl.glShadeModel(GL_SMOOTH);
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the canvas.
+ */
+ public void destroy()
+ {
+ //Destroy the GLContext
+ cvsDispose();
+ }
+
+
+ /**
+ * void reshape(int width, int height)
+ *
+ * Called after the first paint command.
+ */
+ public void reshape(int width, int height)
+ {
+ //Reset The Current Viewport And Perspective Transformation
+ gl.glViewport(0, 0, width, height);
+
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+
+ /**
+ * void display()
+ *
+ * Draw to the canvas.
+ */
+ public void display()
+ {
+ //Ensure GL is initialised correctly
+ if (glj.gljMakeCurrent(true) == false)
+ return;
+
+ //Clear The Screen And The Depth Buffer
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ //Reset The View
+ gl.glLoadIdentity();
+
+ //Move Left 1.5 Units And Into The Screen 8.0
+ gl.glTranslatef(-1.5f, 0.0f, -8.0f);
+
+ //Draw triangle
+ gl.glBegin(GL_POLYGON);
+ gl.glVertex3f(0.0f, 1.0f, 0.0f); //Top
+ gl.glVertex3f(1.0f, -1.0f, 0.0f); //Bottom Right
+ gl.glVertex3f(-1.0f, -1.0f, 0.0f); //Bottom Left
+ gl.glEnd();
+
+ //Move Right 3 Units
+ gl.glTranslatef(3.0f, 0.0f, 0.0f);
+
+ //Draw rectangle
+ gl.glBegin(GL_QUADS);
+ gl.glVertex3f(-1.0f, 1.0f, 0.0f); //Top Left
+ gl.glVertex3f(1.0f, 1.0f, 0.0f); //Top Right
+ gl.glVertex3f(1.0f, -1.0f, 0.0f); //Bottom Right
+ gl.glVertex3f(-1.0f, -1.0f, 0.0f); //Bottom Left
+ gl.glEnd();
+
+ //Swap buffers
+ glj.gljSwap();
+ }
+
+
+ /**
+ * void keyTyped(KeyEvent e)
+ *
+ * Invoked when a key has been typed. This event occurs when a key press is followed by a key release.
+ */
+ public void keyTyped(KeyEvent e)
+ {
+ //We are not handling any keyboard events yet
+ }
+
+
+ /**
+ * void keyPressed(KeyEvent e)
+ *
+ * Invoked when a key has been pressed.
+ */
+ public void keyPressed(KeyEvent e)
+ {
+ //We are not handling any keyboard events yet
+ }
+
+
+ /**
+ * void keyReleased(KeyEvent e)
+ *
+ * Invoked when a key has been released.
+ */
+ public void keyReleased(KeyEvent e)
+ {
+ //We are not handling any keyboard events yet
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ public void mouseExited( MouseEvent evt )
+ { }
+ public void mousePressed( MouseEvent evt )
+ { }
+ public void mouseReleased( MouseEvent evt )
+ { }
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ }
+}
diff --git a/demos/HodglimsNeHe/Lesson2_plugin13.html b/demos/HodglimsNeHe/Lesson2_plugin13.html
new file mode 100644
index 0000000..238a26e
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson2_plugin13.html
@@ -0,0 +1,66 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson2 Applet: Your First Polygon</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Your First Polygon</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "400" HEIGHT = "400" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "Lesson2.class" WIDTH = "400" HEIGHT = "400" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "Lesson2.class" WIDTH = "400" HEIGHT = "400"></XMP>
+<PARAM NAME = CODE VALUE = "Lesson2.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "Lesson2.class" WIDTH = "400" HEIGHT = "400">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson3.html b/demos/HodglimsNeHe/Lesson3.html
new file mode 100644
index 0000000..863c4e8
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson3.html
@@ -0,0 +1,35 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson3 Applet: Colors</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Colors</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<APPLET CODE="Lesson3.class" WIDTH="400" HEIGHT="400">
+</APPLET>
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson3.java b/demos/HodglimsNeHe/Lesson3.java
new file mode 100644
index 0000000..b5e3377
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson3.java
@@ -0,0 +1,284 @@
+/**
+ * Lesson3.java
+ *
+ * Author: Darren Hodges
+ * Date: 16/12/1999
+ *
+ * Port of the NeHe OpenGL Tutorial (Lesson 3: "Colors")
+ * to Java using the GL4Java interface to OpenGL.
+ *
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+
+//GL4Java classes
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+
+
+public class Lesson3 extends Applet
+{
+ //Our rendering canvas
+ //We are using GLAnimCanvas because we want the canvas
+ //to be constantly redrawn
+ renderCanvas canvas = null;
+
+
+ /**
+ * void init()
+ *
+ * Initialise the applet.
+ */
+ public void init()
+ {
+ //We will use BorderLayout to layout the applet components
+ setLayout(new BorderLayout());
+
+ //Create our canvas and add it to the center of the applet
+ canvas = new renderCanvas(getSize().width, getSize().height);
+ canvas.requestFocus();
+ add("Center", canvas);
+ }
+
+
+ /**
+ * void start()
+ *
+ * Start the applet.
+ */
+ public void start()
+ {
+ //Start animating the canvas
+ canvas.start();
+ }
+
+
+ /**
+ * void stop()
+ *
+ * Stop the applet.
+ */
+ public void stop()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the applet.
+ */
+ public void destroy()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ //Destroy the canvas
+ canvas.destroy();
+ }
+
+
+
+ private class renderCanvas extends GLAnimCanvas
+ implements KeyListener, MouseListener
+ {
+ /**
+ * renderCanvas(int w, int h)
+ *
+ * Constructor.
+ */
+ public renderCanvas(int w, int h)
+ {
+ super(w, h);
+
+ //Registers this canvas to process keyboard events
+ addKeyListener(this);
+ addMouseListener(this);
+ }
+
+
+ /**
+ * void preInit()
+ *
+ * Called just BEFORE the GL-Context is created.
+ */
+ public void preInit()
+ {
+ //We want double buffering
+ doubleBuffer = true;
+ //But we dont want stereo view
+ stereoView = false;
+ }
+
+
+ /**
+ * void init()
+ *
+ * Called just AFTER the GL-Context is created.
+ */
+ public void init()
+ {
+ //This Will Clear The Background Color To Black
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+
+ //Enables Clearing Of The Depth Buffer
+ gl.glClearDepth(1.0);
+ //The Type Of Depth Test To Do
+ gl.glDepthFunc(GL_LESS);
+ //Enables Depth Testing
+ gl.glEnable(GL_DEPTH_TEST);
+
+ //Enables Smooth Color Shading
+ gl.glShadeModel(GL_SMOOTH);
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the canvas.
+ */
+ public void destroy()
+ {
+ //Destroy the GLContext
+ cvsDispose();
+ }
+
+
+ /**
+ * void reshape(int width, int height)
+ *
+ * Called after the first paint command.
+ */
+ public void reshape(int width, int height)
+ {
+ //Reset The Current Viewport And Perspective Transformation
+ gl.glViewport(0, 0, width, height);
+
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+
+ /**
+ * void display()
+ *
+ * Draw to the canvas.
+ */
+ public void display()
+ {
+ //Ensure GL is initialised correctly
+ if (glj.gljMakeCurrent(true) == false)
+ return;
+
+ //Clear The Screen And The Depth Buffer
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ //Reset The View
+ gl.glLoadIdentity();
+
+ //Move Left 1.5 Units And Into The Screen 8.0
+ gl.glTranslatef(-1.5f, 0.0f, -8.0f);
+
+ //Draw triangle
+ gl.glBegin(GL_POLYGON);
+ gl.glColor3f(1.0f, 0.0f, 0.0f); //Set The Color To Red
+ gl.glVertex3f(0.0f, 1.0f, 0.0f); //Top
+ gl.glColor3f(0.0f, 1.0f, 0.0f); //Set The Color To Green
+ gl.glVertex3f(-1.0f, -1.0f, 0.0f); //Bottom Left
+ gl.glColor3f(0.0f, 0.0f, 1.0f); //Set The Color To Blue
+ gl.glVertex3f(1.0f, -1.0f, 0.0f); //Bottom Right
+ gl.glEnd();
+
+ //Move Right 3 Units
+ gl.glTranslatef(3.0f, 0.0f, 0.0f);
+
+ //Draw rectangle
+ gl.glBegin(GL_QUADS);
+ gl.glColor3f(0.5f, 0.5f, 1.0f); //Set The Color To Blue One Time Only
+ gl.glVertex3f(-1.0f, 1.0f, 0.0f); //Top Left
+ gl.glVertex3f(1.0f, 1.0f, 0.0f); //Top Right
+ gl.glVertex3f(1.0f, -1.0f, 0.0f); //Bottom Right
+ gl.glVertex3f(-1.0f, -1.0f, 0.0f); //Bottom Left
+ gl.glEnd();
+
+ //Swap buffers
+ glj.gljSwap();
+ }
+
+
+ /**
+ * void keyTyped(KeyEvent e)
+ *
+ * Invoked when a key has been typed. This event occurs when a key press is followed by a key release.
+ */
+ public void keyTyped(KeyEvent e)
+ {
+ //We are not handling any keyboard events yet
+ }
+
+
+ /**
+ * void keyPressed(KeyEvent e)
+ *
+ * Invoked when a key has been pressed.
+ */
+ public void keyPressed(KeyEvent e)
+ {
+ //We are not handling any keyboard events yet
+ }
+
+
+ /**
+ * void keyReleased(KeyEvent e)
+ *
+ * Invoked when a key has been released.
+ */
+ public void keyReleased(KeyEvent e)
+ {
+ //We are not handling any keyboard events yet
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ public void mouseExited( MouseEvent evt )
+ { }
+ public void mousePressed( MouseEvent evt )
+ { }
+ public void mouseReleased( MouseEvent evt )
+ { }
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ }
+}
diff --git a/demos/HodglimsNeHe/Lesson3_plugin13.html b/demos/HodglimsNeHe/Lesson3_plugin13.html
new file mode 100644
index 0000000..8c7c414
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson3_plugin13.html
@@ -0,0 +1,66 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson3 Applet: Colors</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Colors</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "400" HEIGHT = "400" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "Lesson3.class" WIDTH = "400" HEIGHT = "400" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "Lesson3.class" WIDTH = "400" HEIGHT = "400"></XMP>
+<PARAM NAME = CODE VALUE = "Lesson3.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "Lesson3.class" WIDTH = "400" HEIGHT = "400">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson4.html b/demos/HodglimsNeHe/Lesson4.html
new file mode 100644
index 0000000..04a1ddc
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson4.html
@@ -0,0 +1,35 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson4 Applet: Rotation</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Rotation</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<APPLET CODE="Lesson4.class" WIDTH="400" HEIGHT="400">
+</APPLET>
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson4.java b/demos/HodglimsNeHe/Lesson4.java
new file mode 100644
index 0000000..ada7dd5
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson4.java
@@ -0,0 +1,304 @@
+/**
+ * Lesson4.java
+ *
+ * Author: Darren Hodges
+ * Date: 16/12/1999
+ *
+ * Port of the NeHe OpenGL Tutorial (Lesson 4: "Rotation")
+ * to Java using the GL4Java interface to OpenGL.
+ *
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+
+//GL4Java classes
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+
+
+public class Lesson4 extends Applet
+{
+ //Our rendering canvas
+ //We are using GLAnimCanvas because we want the canvas
+ //to be constantly redrawn
+ renderCanvas canvas = null;
+
+
+ /**
+ * void init()
+ *
+ * Initialise the applet.
+ */
+ public void init()
+ {
+ //We will use BorderLayout to layout the applet components
+ setLayout(new BorderLayout());
+
+ //Create our canvas and add it to the center of the applet
+ canvas = new renderCanvas(getSize().width, getSize().height);
+ canvas.requestFocus();
+ add("Center", canvas);
+ }
+
+
+ /**
+ * void start()
+ *
+ * Start the applet.
+ */
+ public void start()
+ {
+ //Start animating the canvas
+ canvas.start();
+ }
+
+
+ /**
+ * void stop()
+ *
+ * Stop the applet.
+ */
+ public void stop()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the applet.
+ */
+ public void destroy()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ //Destroy the canvas
+ canvas.destroy();
+ }
+
+
+
+ private class renderCanvas extends GLAnimCanvas
+ implements KeyListener, MouseListener
+ {
+ //Angle For The Triangle
+ float rtri = 0.0f;
+ //Angle For The Quad
+ float rquad = 0.0f;
+
+
+ /**
+ * renderCanvas(int w, int h)
+ *
+ * Constructor.
+ */
+ public renderCanvas(int w, int h)
+ {
+ super(w, h);
+
+ //Registers this canvas to process keyboard events
+ addKeyListener(this);
+ addMouseListener(this);
+ }
+
+
+ /**
+ * void preInit()
+ *
+ * Called just BEFORE the GL-Context is created.
+ */
+ public void preInit()
+ {
+ //We want double buffering
+ doubleBuffer = true;
+ //But we dont want stereo view
+ stereoView = false;
+ }
+
+
+ /**
+ * void init()
+ *
+ * Called just AFTER the GL-Context is created.
+ */
+ public void init()
+ {
+ //This Will Clear The Background Color To Black
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+
+ //Enables Clearing Of The Depth Buffer
+ gl.glClearDepth(1.0);
+ //The Type Of Depth Test To Do
+ gl.glDepthFunc(GL_LESS);
+ //Enables Depth Testing
+ gl.glEnable(GL_DEPTH_TEST);
+
+ //Enables Smooth Color Shading
+ gl.glShadeModel(GL_SMOOTH);
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the canvas.
+ */
+ public void destroy()
+ {
+ //Destroy the GLContext
+ cvsDispose();
+ }
+
+
+ /**
+ * void reshape(int width, int height)
+ *
+ * Called after the first paint command.
+ */
+ public void reshape(int width, int height)
+ {
+ //Reset The Current Viewport And Perspective Transformation
+ gl.glViewport(0, 0, width, height);
+
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+
+ /**
+ * void display()
+ *
+ * Draw to the canvas.
+ */
+ public void display()
+ {
+ //Ensure GL is initialised correctly
+ if (glj.gljMakeCurrent(true) == false)
+ return;
+
+ //Clear The Screen And The Depth Buffer
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ //Reset The View
+ gl.glLoadIdentity();
+
+ //Move Left 1.5 Units And Into The Screen 8.0
+ gl.glTranslatef(-1.5f, 0.0f, -8.0f);
+
+ //Rotate The Triangle On The Y axis
+ gl.glRotatef(rtri, 0.0f, 1.0f, 0.0f);
+
+ //Draw triangle
+ gl.glBegin(GL_POLYGON);
+ gl.glColor3f(1.0f, 0.0f, 0.0f); //Set The Color To Red
+ gl.glVertex3f(0.0f, 1.0f, 0.0f); //Top
+ gl.glColor3f(0.0f, 1.0f, 0.0f); //Set The Color To Green
+ gl.glVertex3f(-1.0f, -1.0f, 0.0f); //Bottom Left
+ gl.glColor3f(0.0f,0.0f,1.0f); //Set The Color To Blue
+ gl.glVertex3f(1.0f, -1.0f, 0.0f); //Bottom Right
+ gl.glEnd();
+
+ //Reset The View
+ gl.glLoadIdentity();
+
+ //Move right and into the screen
+ gl.glTranslatef(1.5f, 0.0f, -8.0f);
+
+ //Rotate The Quad On The X axis
+ gl.glRotatef(rquad, 1.0f, 0.0f, 0.0f);
+
+ //Draw rectangle
+ gl.glBegin(GL_QUADS);
+ gl.glColor3f(0.5f, 0.5f, 1.0f); //Set The Color To Blue One Time Only
+ gl.glVertex3f(-1.0f, 1.0f, 0.0f); //Top Left
+ gl.glVertex3f(1.0f, 1.0f, 0.0f); //Top Right
+ gl.glVertex3f(1.0f, -1.0f, 0.0f); //Bottom Right
+ gl.glVertex3f(-1.0f, -1.0f, 0.0f); //Bottom Left
+ gl.glEnd();
+
+ //Increase The Rotation Variable For The Triangle
+ rtri += 0.2f;
+ //Decrease The Rotation Variable For The Quad
+ rquad -= 0.15f;
+
+ //Swap buffers
+ glj.gljSwap();
+ }
+
+
+ /**
+ * void keyTyped(KeyEvent e)
+ *
+ * Invoked when a key has been typed. This event occurs when a key press is followed by a key release.
+ */
+ public void keyTyped(KeyEvent e)
+ {
+ //We are not handling any keyboard events yet
+ }
+
+
+ /**
+ * void keyPressed(KeyEvent e)
+ *
+ * Invoked when a key has been pressed.
+ */
+ public void keyPressed(KeyEvent e)
+ {
+ //We are not handling any keyboard events yet
+ }
+
+
+ /**
+ * void keyReleased(KeyEvent e)
+ *
+ * Invoked when a key has been released.
+ */
+ public void keyReleased(KeyEvent e)
+ {
+ //We are not handling any keyboard events yet
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ public void mouseExited( MouseEvent evt )
+ { }
+ public void mousePressed( MouseEvent evt )
+ { }
+ public void mouseReleased( MouseEvent evt )
+ { }
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ }
+}
diff --git a/demos/HodglimsNeHe/Lesson4_plugin13.html b/demos/HodglimsNeHe/Lesson4_plugin13.html
new file mode 100644
index 0000000..045a94d
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson4_plugin13.html
@@ -0,0 +1,66 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson4 Applet: Rotation</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Rotation</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "400" HEIGHT = "400" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "Lesson4.class" WIDTH = "400" HEIGHT = "400" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "Lesson4.class" WIDTH = "400" HEIGHT = "400"></XMP>
+<PARAM NAME = CODE VALUE = "Lesson4.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "Lesson4.class" WIDTH = "400" HEIGHT = "400">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson5.html b/demos/HodglimsNeHe/Lesson5.html
new file mode 100644
index 0000000..7ab275b
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson5.html
@@ -0,0 +1,35 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson5 Applet: Solid Objects</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Solid Objects</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<APPLET CODE="Lesson5.class" WIDTH="400" HEIGHT="400">
+</APPLET>
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson5.java b/demos/HodglimsNeHe/Lesson5.java
new file mode 100644
index 0000000..026ecb3
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson5.java
@@ -0,0 +1,355 @@
+/**
+ * Lesson5.java
+ *
+ * Author: Darren Hodges
+ * Date: 16/12/1999
+ *
+ * Port of the NeHe OpenGL Tutorial (Lesson 5: "Solid Objects")
+ * to Java using the GL4Java interface to OpenGL.
+ *
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+
+//GL4Java classes
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+
+
+public class Lesson5 extends Applet
+{
+ //Our rendering canvas
+ //We are using GLAnimCanvas because we want the canvas
+ //to be constantly redrawn
+ renderCanvas canvas = null;
+
+
+ /**
+ * void init()
+ *
+ * Initialise the applet.
+ */
+ public void init()
+ {
+ //We will use BorderLayout to layout the applet components
+ setLayout(new BorderLayout());
+
+ //Create our canvas and add it to the center of the applet
+ canvas = new renderCanvas(getSize().width, getSize().height);
+ canvas.requestFocus();
+ add("Center", canvas);
+ }
+
+
+ /**
+ * void start()
+ *
+ * Start the applet.
+ */
+ public void start()
+ {
+ //Start animating the canvas
+ canvas.start();
+ }
+
+
+ /**
+ * void stop()
+ *
+ * Stop the applet.
+ */
+ public void stop()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the applet.
+ */
+ public void destroy()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ //Destroy the canvas
+ canvas.destroy();
+ }
+
+
+
+ private class renderCanvas extends GLAnimCanvas
+ implements KeyListener, MouseListener
+ {
+ //Angle For The Pyramid
+ float rtri = 0.0f;
+ //Angle For The Cube
+ float rquad = 0.0f;
+
+
+ /**
+ * renderCanvas(int w, int h)
+ *
+ * Constructor.
+ */
+ public renderCanvas(int w, int h)
+ {
+ super(w, h);
+
+ //Registers this canvas to process keyboard events
+ addKeyListener(this);
+ addMouseListener(this);
+ }
+
+
+ /**
+ * void preInit()
+ *
+ * Called just BEFORE the GL-Context is created.
+ */
+ public void preInit()
+ {
+ //We want double buffering
+ doubleBuffer = true;
+ //But we dont want stereo view
+ stereoView = false;
+ }
+
+
+ /**
+ * void init()
+ *
+ * Called just AFTER the GL-Context is created.
+ */
+ public void init()
+ {
+ //This Will Clear The Background Color To Black
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+
+ //Enables Clearing Of The Depth Buffer
+ gl.glClearDepth(1.0);
+ //The Type Of Depth Test To Do
+ gl.glDepthFunc(GL_LESS);
+ //Enables Depth Testing
+ gl.glEnable(GL_DEPTH_TEST);
+
+ //Enables Smooth Color Shading
+ gl.glShadeModel(GL_SMOOTH);
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the canvas.
+ */
+ public void destroy()
+ {
+ //Destroy the GLContext
+ cvsDispose();
+ }
+
+
+ /**
+ * void reshape(int width, int height)
+ *
+ * Called after the first paint command.
+ */
+ public void reshape(int width, int height)
+ {
+ //Reset The Current Viewport And Perspective Transformation
+ gl.glViewport(0, 0, width, height);
+
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+
+ /**
+ * void display()
+ *
+ * Draw to the canvas.
+ */
+ public void display()
+ {
+ //Ensure GL is initialised correctly
+ if (glj.gljMakeCurrent(true) == false)
+ return;
+
+ //Clear The Screen And The Depth Buffer
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ //Reset The View
+ gl.glLoadIdentity();
+
+ //Move Left 1.5 Units And Into The Screen 8.0
+ gl.glTranslatef(-1.5f, 0.0f, -8.0f);
+
+ //Rotate The Pyramid On Its Y axis
+ gl.glRotatef(rtri, 0.0f, 1.0f, 0.0f);
+
+ //Draw pyramid
+ gl.glBegin(GL_POLYGON);
+ gl.glColor3f(1.0f, 0.0f, 0.0f); //Red
+ gl.glVertex3f(0.0f, 1.0f, 0.0f); //Top Of Triangle (Front)
+ gl.glColor3f(0.0f, 1.0f, 0.0f); //Green
+ gl.glVertex3f(-1.0f, -1.0f, 1.0f); //Left Of Triangle (Front)
+ gl.glColor3f(0.0f, 0.0f, 1.0f); //Blue
+ gl.glVertex3f(1.0f, -1.0f, 1.0f); //Right Of Triangle (Front)
+
+ gl.glColor3f(1.0f, 0.0f, 0.0f); //Red
+ gl.glVertex3f(0.0f, 1.0f, 0.0f); //Top Of Triangle (Right)
+ gl.glColor3f(0.0f, 0.0f, 1.0f); //Blue
+ gl.glVertex3f(1.0f, -1.0f, 1.0f); //Left Of Triangle (Right)
+ gl.glColor3f(0.0f, 1.0f, 0.0f); //Green
+ gl.glVertex3f(1.0f, -1.0f, -1.0f); //Right Of Triangle (Right)
+
+ gl.glColor3f(1.0f,0.0f,0.0f); //Red
+ gl.glVertex3f(0.0f, 1.0f, 0.0f); //Top Of Triangle (Back)
+ gl.glColor3f(0.0f, 1.0f, 0.0f); //Green
+ gl.glVertex3f(1.0f, -1.0f, -1.0f); //Left Of Triangle (Back)
+ gl.glColor3f(0.0f, 0.0f, 1.0f); //Blue
+ gl.glVertex3f(-1.0f, -1.0f, -1.0f); //Right Of Triangle (Back)
+
+ gl.glColor3f(1.0f, 0.0f, 0.0f); //Red
+ gl.glVertex3f(0.0f, 1.0f, 0.0f); //Top Of Triangle (Left)
+ gl.glColor3f(0.0f, 0.0f, 1.0f); //Blue
+ gl.glVertex3f(-1.0f, -1.0f, -1.0f); //Left Of Triangle (Left)
+ gl.glColor3f(0.0f, 1.0f, 0.0f); //Green
+ gl.glVertex3f(-1.0f, -1.0f, 1.0f); //Right Of Triangle (Left)
+ gl.glEnd();
+
+ //Reset The View
+ gl.glLoadIdentity();
+
+ //Move right and into the screen
+ gl.glTranslatef(1.5f, 0.0f, -8.0f);
+
+ //Rotate The Cube On X, Y & Z
+ gl.glRotatef(rquad, 1.0f, 1.0f, 1.0f);
+
+ //Draw cube
+ gl.glBegin(GL_QUADS);
+ gl.glColor3f(0.0f, 1.0f, 0.0f); //Set The Color To Blue
+ gl.glVertex3f(1.0f, 1.0f, -1.0f); //Top Right Of The Quad (Top)
+ gl.glVertex3f(-1.0f, 1.0f, -1.0f); //Top Left Of The Quad (Top)
+ gl.glVertex3f(-1.0f, 1.0f, 1.0f); //Bottom Left Of The Quad (Top)
+ gl.glVertex3f(1.0f, 1.0f, 1.0f); //Bottom Right Of The Quad (Top)
+
+ gl.glColor3f(1.0f, 0.5f, 0.0f); //Set The Color To Orange
+ gl.glVertex3f(1.0f, -1.0f, 1.0f); //Top Right Of The Quad (Bottom)
+ gl.glVertex3f(-1.0f, -1.0f, 1.0f); //Top Left Of The Quad (Bottom)
+ gl.glVertex3f(-1.0f, -1.0f, -1.0f); //Bottom Left Of The Quad (Bottom)
+ gl.glVertex3f(1.0f, -1.0f, -1.0f); //Bottom Right Of The Quad (Bottom)
+
+ gl.glColor3f(1.0f, 0.0f, 0.0f); //Set The Color To Red
+ gl.glVertex3f(1.0f, 1.0f, 1.0f); //Top Right Of The Quad (Front)
+ gl.glVertex3f(-1.0f, 1.0f, 1.0f); //Top Left Of The Quad (Front)
+ gl.glVertex3f(-1.0f, -1.0f, 1.0f); //Bottom Left Of The Quad (Front)
+ gl.glVertex3f(1.0f, -1.0f, 1.0f); //Bottom Right Of The Quad (Front)
+
+ gl.glColor3f(1.0f, 1.0f, 0.0f); //Set The Color To Yellow
+ gl.glVertex3f(1.0f, -1.0f, -1.0f); //Top Right Of The Quad (Back)
+ gl.glVertex3f(-1.0f, -1.0f, -1.0f); //Top Left Of The Quad (Back)
+ gl.glVertex3f(-1.0f, 1.0f, -1.0f); //Bottom Left Of The Quad (Back)
+ gl.glVertex3f(1.0f, 1.0f, -1.0f); //Bottom Right Of The Quad (Back)
+
+ gl.glColor3f(0.0f, 0.0f, 1.0f); //Set The Color To Blue
+ gl.glVertex3f(-1.0f, 1.0f, 1.0f); //Top Right Of The Quad (Left)
+ gl.glVertex3f(-1.0f, 1.0f, -1.0f); //Top Left Of The Quad (Left)
+ gl.glVertex3f(-1.0f, -1.0f, -1.0f); //Bottom Left Of The Quad (Left)
+ gl.glVertex3f(-1.0f, -1.0f, 1.0f); //Bottom Right Of The Quad (Left)
+
+ gl.glColor3f(1.0f, 0.0f, 1.0f); //Set The Color To Violet
+ gl.glVertex3f(1.0f, 1.0f, -1.0f); //Top Right Of The Quad (Right)
+ gl.glVertex3f(1.0f, 1.0f, 1.0f); //Top Left Of The Quad (Right)
+ gl.glVertex3f(1.0f, -1.0f, 1.0f); //Bottom Left Of The Quad (Right)
+ gl.glVertex3f(1.0f, -1.0f, -1.0f); //Bottom Right Of The Quad (Right)
+ gl.glEnd();
+
+ //Increase The Rotation Variable For The Pyramid
+ rtri += 0.2f;
+ //Decrease The Rotation Variable For The Cube
+ rquad -= 0.15f;
+
+ //Swap buffers
+ glj.gljSwap();
+ }
+
+
+ /**
+ * void keyTyped(KeyEvent e)
+ *
+ * Invoked when a key has been typed. This event occurs when a key press is followed by a key release.
+ */
+ public void keyTyped(KeyEvent e)
+ {
+ //We are not handling any keyboard events yet
+ }
+
+
+ /**
+ * void keyPressed(KeyEvent e)
+ *
+ * Invoked when a key has been pressed.
+ */
+ public void keyPressed(KeyEvent e)
+ {
+ //We are not handling any keyboard events yet
+ }
+
+
+ /**
+ * void keyReleased(KeyEvent e)
+ *
+ * Invoked when a key has been released.
+ */
+ public void keyReleased(KeyEvent e)
+ {
+ //We are not handling any keyboard events yet
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ public void mouseExited( MouseEvent evt )
+ { }
+ public void mousePressed( MouseEvent evt )
+ { }
+ public void mouseReleased( MouseEvent evt )
+ { }
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ }
+}
diff --git a/demos/HodglimsNeHe/Lesson5_plugin13.html b/demos/HodglimsNeHe/Lesson5_plugin13.html
new file mode 100644
index 0000000..4e79716
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson5_plugin13.html
@@ -0,0 +1,66 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson5 Applet: Solid Objects</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Solid Objects</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "400" HEIGHT = "400" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "Lesson5.class" WIDTH = "400" HEIGHT = "400" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "Lesson5.class" WIDTH = "400" HEIGHT = "400"></XMP>
+<PARAM NAME = CODE VALUE = "Lesson5.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "Lesson5.class" WIDTH = "400" HEIGHT = "400">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson6.html b/demos/HodglimsNeHe/Lesson6.html
new file mode 100644
index 0000000..b3a6032
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson6.html
@@ -0,0 +1,35 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson6 Applet: Texture Mapping</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Texture Mapping</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<APPLET CODE="Lesson6.class" WIDTH="400" HEIGHT="400">
+</APPLET>
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson6.java b/demos/HodglimsNeHe/Lesson6.java
new file mode 100644
index 0000000..ae85d76
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson6.java
@@ -0,0 +1,357 @@
+/**
+ * Lesson6.java
+ *
+ * Author: Darren Hodges
+ * Date: 16/12/1999
+ *
+ * Port of the NeHe OpenGL Tutorial (Lesson 6: "Texture Mapping")
+ * to Java using the GL4Java interface to OpenGL.
+ *
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+
+//GL4Java classes
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.utils.textures.*;
+
+
+public class Lesson6 extends Applet
+{
+ //Our rendering canvas
+ //We are using GLAnimCanvas because we want the canvas
+ //to be constantly redrawn
+ renderCanvas canvas = null;
+
+
+ /**
+ * void init()
+ *
+ * Initialise the applet.
+ */
+ public void init()
+ {
+ //We will use BorderLayout to layout the applet components
+ setLayout(new BorderLayout());
+
+ //Create our canvas and add it to the center of the applet
+ canvas = new renderCanvas(getSize().width, getSize().height);
+ canvas.requestFocus();
+ add("Center", canvas);
+ }
+
+
+ /**
+ * void start()
+ *
+ * Start the applet.
+ */
+ public void start()
+ {
+ //Start animating the canvas
+ canvas.start();
+ }
+
+
+ /**
+ * void stop()
+ *
+ * Stop the applet.
+ */
+ public void stop()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the applet.
+ */
+ public void destroy()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ //Destroy the canvas
+ canvas.destroy();
+ }
+
+
+
+ private class renderCanvas extends GLAnimCanvas
+ implements KeyListener, MouseListener
+ {
+ float xrot = 0.0f; //X Rotation
+ float yrot = 0.0f; //Y Rotation
+ float zrot = 0.0f; //Z Rotation
+
+ int[] texture = new int[1]; //Storage for one texture
+
+
+ /**
+ * renderCanvas(int w, int h)
+ *
+ * Constructor.
+ */
+ public renderCanvas(int w, int h)
+ {
+ super(w, h);
+
+ //Registers this canvas to process keyboard events
+ addKeyListener(this);
+ addMouseListener(this);
+ }
+
+
+ /**
+ * void preInit()
+ *
+ * Called just BEFORE the GL-Context is created.
+ */
+ public void preInit()
+ {
+ //We want double buffering
+ doubleBuffer = true;
+ //But we dont want stereo view
+ stereoView = false;
+ }
+
+
+ /**
+ * void LoadGLTextures()
+ *
+ * Load textures.
+ */
+ public void LoadGLTextures()
+ {
+ PngTextureLoader texLoader = new PngTextureLoader(gl, glu);
+ texLoader.readTexture(getCodeBase(), "data/nehe.png");
+
+ if(texLoader.isOk())
+ {
+ //Create Texture
+ gl.glGenTextures(1, texture);
+ gl.glBindTexture(GL_TEXTURE_2D, texture[0]);
+
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
+
+ gl.glTexImage2D(GL_TEXTURE_2D,
+ 0,
+ 3,
+ texLoader.getImageWidth(),
+ texLoader.getImageHeight(),
+ 0,
+ GL_RGB,
+ GL_UNSIGNED_BYTE,
+ texLoader.getTexture());
+ }
+ }
+
+
+ /**
+ * void init()
+ *
+ * Called just AFTER the GL-Context is created.
+ */
+ public void init()
+ {
+ //Load The Texture(s)
+ LoadGLTextures();
+ //Enable Texture Mapping
+ gl.glEnable(GL_TEXTURE_2D);
+
+ //This Will Clear The Background Color To Black
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+
+ //Enables Clearing Of The Depth Buffer
+ gl.glClearDepth(1.0);
+ //The Type Of Depth Test To Do
+ gl.glDepthFunc(GL_LESS);
+ //Enables Depth Testing
+ gl.glEnable(GL_DEPTH_TEST);
+
+ //Enables Smooth Color Shading
+ gl.glShadeModel(GL_SMOOTH);
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the canvas.
+ */
+ public void destroy()
+ {
+ //Destroy the GLContext
+ cvsDispose();
+ }
+
+
+ /**
+ * void reshape(int width, int height)
+ *
+ * Called after the first paint command.
+ */
+ public void reshape(int width, int height)
+ {
+ //Reset The Current Viewport And Perspective Transformation
+ gl.glViewport(0, 0, width, height);
+
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+
+ /**
+ * void display()
+ *
+ * Draw to the canvas.
+ */
+ public void display()
+ {
+ //Ensure GL is initialised correctly
+ if (glj.gljMakeCurrent(true) == false)
+ return;
+
+ //Clear The Screen And The Depth Buffer
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ //Reset The View
+ gl.glLoadIdentity();
+
+ //Move into the screen
+ gl.glTranslatef(0.0f, 0.0f, -8.0f);
+
+ //Rotate On The X Axis
+ gl.glRotatef(xrot,1.0f, 0.0f, 0.0f);
+ //Rotate On The Y Axis
+ gl.glRotatef(yrot, 0.0f, 1.0f, 0.0f);
+ //Rotate On The Z Axis
+ gl.glRotatef(zrot, 0.0f, 0.0f, 1.0f);
+
+ //Select texture
+ gl.glBindTexture(GL_TEXTURE_2D, texture[0]);
+
+ gl.glBegin(GL_QUADS);
+ //Front Face
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, 1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, 1.0f); //Top Left Of The Texture and Quad
+ //Back Face
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, -1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, -1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, -1.0f); //Bottom Left Of The Texture and Quad
+ //Top Face
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f(-1.0f, 1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f( 1.0f, 1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, -1.0f); //Top Right Of The Texture and Quad
+ //Bottom Face
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f(-1.0f, -1.0f, -1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f( 1.0f, -1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ //Right face
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, -1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, -1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, 1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ //Left Face
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, -1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, 1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glEnd();
+
+ //X Axis Rotation
+ xrot += 0.3f;
+ //Y Axis Rotation
+ yrot += 0.2f;
+ //Z Axis Rotation
+ zrot += 0.4f;
+
+ //Swap buffers
+ glj.gljSwap();
+ }
+
+
+ /**
+ * void keyTyped(KeyEvent e)
+ *
+ * Invoked when a key has been typed. This event occurs when a key press is followed by a key release.
+ */
+ public void keyTyped(KeyEvent e)
+ {
+ //We are not handling any keyboard events yet
+ }
+
+
+ /**
+ * void keyPressed(KeyEvent e)
+ *
+ * Invoked when a key has been pressed.
+ */
+ public void keyPressed(KeyEvent e)
+ {
+ //We are not handling any keyboard events yet
+ }
+
+
+ /**
+ * void keyReleased(KeyEvent e)
+ *
+ * Invoked when a key has been released.
+ */
+ public void keyReleased(KeyEvent e)
+ {
+ //We are not handling any keyboard events yet
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ public void mouseExited( MouseEvent evt )
+ { }
+ public void mousePressed( MouseEvent evt )
+ { }
+ public void mouseReleased( MouseEvent evt )
+ { }
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ }
+}
diff --git a/demos/HodglimsNeHe/Lesson6_plugin13.html b/demos/HodglimsNeHe/Lesson6_plugin13.html
new file mode 100644
index 0000000..46bfd1d
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson6_plugin13.html
@@ -0,0 +1,66 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson6 Applet: Texture Mapping</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Texture Mapping</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "400" HEIGHT = "400" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "Lesson6.class" WIDTH = "400" HEIGHT = "400" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "Lesson6.class" WIDTH = "400" HEIGHT = "400"></XMP>
+<PARAM NAME = CODE VALUE = "Lesson6.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "Lesson6.class" WIDTH = "400" HEIGHT = "400">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson7.html b/demos/HodglimsNeHe/Lesson7.html
new file mode 100644
index 0000000..2a69b88
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson7.html
@@ -0,0 +1,50 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson7 Applet: Texture Filters, Lighting & Keyboard Control</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Texture Filters, Lighting & Keyboard Control</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana"><B><U>Keys</U></B></FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<B>L</B> - Lights ON/OFF<BR>
+<B>F</B> - Change texture filter<BR>
+<B>PG_UP</B> - Zoom out<BR>
+<B>PG_DOWN</B> - Zoom in<BR>
+<B>UP</B> - Rotate cube<BR>
+<B>DOWN</B> - Rotate cube<BR>
+<B>LEFT</B> - Rotate cube<BR>
+<B>RIGHT</B> - Rotate cube
+</FONT>
+</P>
+<P><FONT SIZE="1" FACE="Verdana"><B>Note:</B> You must click inside the applet window before using these keys.</FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<APPLET CODE="Lesson7.class" WIDTH="400" HEIGHT="400">
+</APPLET>
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson7.java b/demos/HodglimsNeHe/Lesson7.java
new file mode 100644
index 0000000..d6f65f4
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson7.java
@@ -0,0 +1,504 @@
+/**
+ * Lesson7.java
+ *
+ * Author: Darren Hodges
+ * Date: 17/12/1999
+ *
+ * Port of the NeHe OpenGL Tutorial (Lesson 7: "Texture Filters, Lighting & Keyboard Control")
+ * to Java using the GL4Java interface to OpenGL.
+ *
+ * Note: The MipMapping code is only available in GL4Java 2.1.2.1 and later!
+ *
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+
+//GL4Java classes
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.utils.textures.*;
+
+
+public class Lesson7 extends Applet
+{
+ //Our rendering canvas
+ //We are using GLAnimCanvas because we want the canvas
+ //to be constantly redrawn
+ renderCanvas canvas = null;
+
+
+ /**
+ * void init()
+ *
+ * Initialise the applet.
+ */
+ public void init()
+ {
+ //We will use BorderLayout to layout the applet components
+ setLayout(new BorderLayout());
+
+ //Create our canvas and add it to the center of the applet
+ canvas = new renderCanvas(getSize().width, getSize().height);
+ canvas.requestFocus();
+ add("Center", canvas);
+ }
+
+
+ /**
+ * void start()
+ *
+ * Start the applet.
+ */
+ public void start()
+ {
+ //Start animating the canvas
+ canvas.start();
+ }
+
+
+ /**
+ * void stop()
+ *
+ * Stop the applet.
+ */
+ public void stop()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the applet.
+ */
+ public void destroy()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ //Destroy the canvas
+ canvas.destroy();
+ }
+
+
+
+ private class renderCanvas extends GLAnimCanvas
+ implements KeyListener, MouseListener
+ {
+ boolean light = true; //Lighting ON/OFF
+ boolean lp = false; //L Pressed?
+ boolean fp = false; //F Pressed?
+
+ float xrot = 0.0f; //X Rotation
+ float yrot = 0.0f; //Y Rotation
+ float xspeed = 0.0f; //X Rotation Speed
+ float yspeed = 0.0f; //Y Rotation Speed
+
+ float z = -8.0f; //Depth Into The Screen
+
+ //Ambient light
+ float[] LightAmbient = { 0.5f, 0.5f, 0.5f, 1.0f };
+
+ //Diffuse light
+ float[] LightDiffuse = { 1.0f, 1.0f, 1.0f, 1.0f };
+
+ //Light position
+ float[] LightPosition = { 0.0f, 0.0f, 2.0f, 1.0f };
+
+ int filter = 0; //Which Filter To Use
+
+ int[] texture = new int[3]; //Storage for 3 textures
+
+
+ /**
+ * renderCanvas(int w, int h)
+ *
+ * Constructor.
+ */
+ public renderCanvas(int w, int h)
+ {
+ super(w, h);
+
+ //Registers this canvas to process keyboard events
+ addKeyListener(this);
+ addMouseListener(this);
+ }
+
+
+ /**
+ * void preInit()
+ *
+ * Called just BEFORE the GL-Context is created.
+ */
+ public void preInit()
+ {
+ //We want double buffering
+ doubleBuffer = true;
+ //But we dont want stereo view
+ stereoView = false;
+ }
+
+
+ /**
+ * void LoadGLTextures()
+ *
+ * Load textures.
+ */
+ public void LoadGLTextures()
+ {
+ PngTextureLoader texLoader = new PngTextureLoader(gl, glu);
+ texLoader.readTexture(getCodeBase(), "data/crate.png");
+
+ if(texLoader.isOk())
+ {
+ //Create Nearest Filtered Texture
+ gl.glGenTextures(3, texture);
+ gl.glBindTexture(GL_TEXTURE_2D, texture[0]);
+
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
+
+ gl.glTexImage2D(GL_TEXTURE_2D,
+ 0,
+ 3,
+ texLoader.getImageWidth(),
+ texLoader.getImageHeight(),
+ 0,
+ GL_RGB,
+ GL_UNSIGNED_BYTE,
+ texLoader.getTexture());
+
+ //Create Linear Filtered Texture
+ gl.glBindTexture(GL_TEXTURE_2D, texture[1]);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
+
+ gl.glTexImage2D(GL_TEXTURE_2D,
+ 0,
+ 3,
+ texLoader.getImageWidth(),
+ texLoader.getImageHeight(),
+ 0,
+ GL_RGB,
+ GL_UNSIGNED_BYTE,
+ texLoader.getTexture());
+
+ //Create MipMapped Texture (Only with GL4Java 2.1.2.1 and later!)
+ gl.glBindTexture(GL_TEXTURE_2D, texture[2]);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_NEAREST);
+
+ glu.gluBuild2DMipmaps(GL_TEXTURE_2D,
+ 3,
+ texLoader.getImageWidth(),
+ texLoader.getImageHeight(), GL_RGB,
+ GL_UNSIGNED_BYTE,
+ texLoader.getTexture());
+ }
+ }
+
+
+ /**
+ * void init()
+ *
+ * Called just AFTER the GL-Context is created.
+ */
+ public void init()
+ {
+ //Load The Texture(s)
+ LoadGLTextures();
+ //Enable Texture Mapping
+ gl.glEnable(GL_TEXTURE_2D);
+
+ //This Will Clear The Background Color To Black
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+
+ //Enables Clearing Of The Depth Buffer
+ gl.glClearDepth(1.0);
+ //The Type Of Depth Test To Do
+ gl.glDepthFunc(GL_LESS);
+ //Enables Depth Testing
+ gl.glEnable(GL_DEPTH_TEST);
+
+ //Enables Smooth Color Shading
+ gl.glShadeModel(GL_SMOOTH);
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+
+ //Lights
+ gl.glLightfv(GL_LIGHT1, GL_AMBIENT, LightAmbient);
+ gl.glLightfv(GL_LIGHT1, GL_DIFFUSE, LightDiffuse);
+ gl.glLightfv(GL_LIGHT1, GL_POSITION, LightPosition);
+
+ //Enable light
+ gl.glEnable(GL_LIGHT1);
+ gl.glEnable(GL_LIGHTING);
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the canvas.
+ */
+ public void destroy()
+ {
+ //Destroy the GLContext
+ cvsDispose();
+ }
+
+
+ /**
+ * void reshape(int width, int height)
+ *
+ * Called after the first paint command.
+ */
+ public void reshape(int width, int height)
+ {
+ //Reset The Current Viewport And Perspective Transformation
+ gl.glViewport(0, 0, width, height);
+
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+
+ /**
+ * void display()
+ *
+ * Draw to the canvas.
+ */
+ public void display()
+ {
+ //Ensure GL is initialised correctly
+ if (glj.gljMakeCurrent(true) == false)
+ return;
+
+ //Clear The Screen And The Depth Buffer
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ //Reset The View
+ gl.glLoadIdentity();
+
+ //Move into the screen
+ gl.glTranslatef(0.0f, 0.0f, z);
+
+ //Rotate On The X Axis
+ gl.glRotatef(xrot,1.0f, 0.0f, 0.0f);
+ //Rotate On The Y Axis
+ gl.glRotatef(yrot, 0.0f, 1.0f, 0.0f);
+
+ //Select texture
+ gl.glBindTexture(GL_TEXTURE_2D, texture[filter]);
+
+ gl.glBegin(GL_QUADS);
+ //Front Face
+ gl.glNormal3f(0.0f, 0.0f, 1.0f);
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, 1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, 1.0f); //Top Left Of The Texture and Quad
+ //Back Face
+ gl.glNormal3f(0.0f, 0.0f, -1.0f);
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, -1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, -1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, -1.0f); //Bottom Left Of The Texture and Quad
+ //Top Face
+ gl.glNormal3f(0.0f, 1.0f, 0.0f);
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f(-1.0f, 1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f( 1.0f, 1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, -1.0f); //Top Right Of The Texture and Quad
+ //Bottom Face
+ gl.glNormal3f(0.0f, -1.0f, 0.0f);
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f(-1.0f, -1.0f, -1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f( 1.0f, -1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ //Right face
+ gl.glNormal3f(1.0f, 0.0f, 0.0f);
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, -1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, -1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, 1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ //Left Face
+ gl.glNormal3f(-1.0f, 0.0f, 0.0f);
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, -1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, 1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glEnd();
+
+ //X Axis Rotation
+ xrot += xspeed;
+ //Y Axis Rotation
+ yrot += yspeed;
+
+ //Swap buffers
+ glj.gljSwap();
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ public void mouseExited( MouseEvent evt )
+ { }
+ public void mousePressed( MouseEvent evt )
+ { }
+ public void mouseReleased( MouseEvent evt )
+ { }
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+
+ /**
+ * void keyTyped(KeyEvent e)
+ *
+ * Invoked when a key has been typed. This event occurs when a key press is followed by a key release.
+ */
+ public void keyTyped(KeyEvent e)
+ {
+ }
+
+
+ /**
+ * void keyPressed(KeyEvent e)
+ *
+ * Invoked when a key has been pressed.
+ */
+ public void keyPressed(KeyEvent e)
+ {
+ switch(e.getKeyCode())
+ {
+ //Switch ON/OFF light when L is pressed
+ case KeyEvent.VK_L:
+ {
+ if(!lp)
+ {
+ lp = true;
+ //Toggle light
+ light = !light;
+
+ if(!light)
+ gl.glDisable(GL_LIGHTING);
+ else
+ gl.glEnable(GL_LIGHTING);
+ }
+
+ break;
+ }
+
+ //Switch filter when F is pressed
+ case KeyEvent.VK_F:
+ {
+ if(!fp)
+ {
+ fp = true;
+ //Change filter
+ filter += 1;
+ if(filter > 2)
+ filter = 0;
+ }
+
+ break;
+ }
+
+ //Move cube back when user presses PG_UP
+ case KeyEvent.VK_PAGE_UP:
+ {
+ z -= 0.2f;
+ break;
+ }
+
+ //Move cube forwards when user presses PG_DOWN
+ case KeyEvent.VK_PAGE_DOWN:
+ {
+ z += 0.2f;
+ break;
+ }
+
+ //Increase X rotation speed when user presses UP
+ case KeyEvent.VK_UP:
+ {
+ xspeed += 0.2f;
+ break;
+ }
+
+ //Decrease X rotation speed when user presses DOWN
+ case KeyEvent.VK_DOWN:
+ {
+ xspeed -= 0.2f;
+ break;
+ }
+
+ //Increase Y rotation speed when user presses RIGHT
+ case KeyEvent.VK_RIGHT:
+ {
+ yspeed += 0.2f;
+ break;
+ }
+
+ //Decrease Y rotation speed when user presses LEFT
+ case KeyEvent.VK_LEFT:
+ {
+ yspeed -= 0.2f;
+ break;
+ }
+ }
+ }
+
+
+ /**
+ * void keyReleased(KeyEvent e)
+ *
+ * Invoked when a key has been released.
+ */
+ public void keyReleased(KeyEvent e)
+ {
+ switch(e.getKeyCode())
+ {
+ //Key has been released
+ case KeyEvent.VK_L:
+ {
+ lp = false;
+ break;
+ }
+
+ //Key has been released
+ case KeyEvent.VK_F:
+ {
+ fp = false;
+ break;
+ }
+ }
+ }
+ }
+}
diff --git a/demos/HodglimsNeHe/Lesson7_plugin13.html b/demos/HodglimsNeHe/Lesson7_plugin13.html
new file mode 100644
index 0000000..81d1e43
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson7_plugin13.html
@@ -0,0 +1,81 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson7 Applet: Texture Filters, Lighting & Keyboard Control</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Texture Filters, Lighting & Keyboard Control</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana"><B><U>Keys</U></B></FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<B>L</B> - Lights ON/OFF<BR>
+<B>F</B> - Change texture filter<BR>
+<B>PG_UP</B> - Zoom out<BR>
+<B>PG_DOWN</B> - Zoom in<BR>
+<B>UP</B> - Rotate cube<BR>
+<B>DOWN</B> - Rotate cube<BR>
+<B>LEFT</B> - Rotate cube<BR>
+<B>RIGHT</B> - Rotate cube
+</FONT>
+</P>
+<P><FONT SIZE="1" FACE="Verdana"><B>Note:</B> You must click inside the applet window before using these keys.</FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "400" HEIGHT = "400" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "Lesson7.class" WIDTH = "400" HEIGHT = "400" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "Lesson7.class" WIDTH = "400" HEIGHT = "400"></XMP>
+<PARAM NAME = CODE VALUE = "Lesson7.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "Lesson7.class" WIDTH = "400" HEIGHT = "400">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson8.html b/demos/HodglimsNeHe/Lesson8.html
new file mode 100644
index 0000000..dd21ea2
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson8.html
@@ -0,0 +1,51 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson8 Applet: Blending</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Blending</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana"><B><U>Keys</U></B></FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<B>L</B> - Lights ON/OFF<BR>
+<B>F</B> - Change texture filter<BR>
+<B>B</B> - Blending ON/OFF<BR>
+<B>PG_UP</B> - Zoom out<BR>
+<B>PG_DOWN</B> - Zoom in<BR>
+<B>UP</B> - Rotate cube<BR>
+<B>DOWN</B> - Rotate cube<BR>
+<B>LEFT</B> - Rotate cube<BR>
+<B>RIGHT</B> - Rotate cube
+</FONT>
+</P>
+<P><FONT SIZE="1" FACE="Verdana"><B>Note:</B> You must click inside the applet window before using these keys.</FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<APPLET CODE="Lesson8.class" WIDTH="400" HEIGHT="400">
+</APPLET>
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson8.java b/demos/HodglimsNeHe/Lesson8.java
new file mode 100644
index 0000000..f8735d5
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson8.java
@@ -0,0 +1,545 @@
+/**
+ * Lesson8.java
+ *
+ * Author: Darren Hodges
+ * Date: 21/12/1999
+ *
+ * Port of the NeHe OpenGL Tutorial (Lesson 8: "Blending")
+ * to Java using the GL4Java interface to OpenGL.
+ *
+ * Note: The MipMapping code is only available in GL4Java 2.1.2.1 and later!
+ *
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+
+//GL4Java classes
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.utils.textures.*;
+
+
+public class Lesson8 extends Applet
+{
+ //Our rendering canvas
+ //We are using GLAnimCanvas because we want the canvas
+ //to be constantly redrawn
+ renderCanvas canvas = null;
+
+
+ /**
+ * void init()
+ *
+ * Initialise the applet.
+ */
+ public void init()
+ {
+ //We will use BorderLayout to layout the applet components
+ setLayout(new BorderLayout());
+
+ //Create our canvas and add it to the center of the applet
+ canvas = new renderCanvas(getSize().width, getSize().height);
+ canvas.requestFocus();
+ add("Center", canvas);
+ }
+
+
+ /**
+ * void start()
+ *
+ * Start the applet.
+ */
+ public void start()
+ {
+ //Start animating the canvas
+ canvas.start();
+ }
+
+
+ /**
+ * void stop()
+ *
+ * Stop the applet.
+ */
+ public void stop()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the applet.
+ */
+ public void destroy()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ //Destroy the canvas
+ canvas.destroy();
+ }
+
+
+
+ private class renderCanvas extends GLAnimCanvas
+ implements KeyListener, MouseListener
+ {
+ boolean light = true; //Lighting ON/OFF
+ boolean lp = false; //L Pressed?
+ boolean fp = false; //F Pressed?
+ boolean blend = true; //Blending ON/OFF
+ boolean bp = false; //B Pressed?
+
+ float xrot = 0.0f; //X Rotation
+ float yrot = 0.0f; //Y Rotation
+ float xspeed = 0.0f; //X Rotation Speed
+ float yspeed = 0.0f; //Y Rotation Speed
+
+ float z = -8.0f; //Depth Into The Screen
+
+ //Ambient light
+ float[] LightAmbient = { 0.5f, 0.5f, 0.5f, 1.0f };
+
+ //Diffuse light
+ float[] LightDiffuse = { 1.0f, 1.0f, 1.0f, 1.0f };
+
+ //Light position
+ float[] LightPosition = { 0.0f, 0.0f, 2.0f, 1.0f };
+
+ int filter = 0; //Which Filter To Use
+
+ int[] texture = new int[3]; //Storage for 3 textures
+
+
+ /**
+ * renderCanvas(int w, int h)
+ *
+ * Constructor.
+ */
+ public renderCanvas(int w, int h)
+ {
+ super(w, h);
+
+ //Registers this canvas to process keyboard events
+ addKeyListener(this);
+ addMouseListener(this);
+ }
+
+
+ /**
+ * void preInit()
+ *
+ * Called just BEFORE the GL-Context is created.
+ */
+ public void preInit()
+ {
+ //We want double buffering
+ doubleBuffer = true;
+ //But we dont want stereo view
+ stereoView = false;
+ }
+
+
+ /**
+ * void LoadGLTextures()
+ *
+ * Load textures.
+ */
+ public void LoadGLTextures()
+ {
+ PngTextureLoader texLoader = new PngTextureLoader(gl, glu);
+ texLoader.readTexture(getCodeBase(), "data/glass.png");
+
+ //Full Brightness, 50% Alpha
+ gl.glColor4f(1.0f, 1.0f, 1.0f, 0.5f);
+ //Blending Function For Translucency Based On Source Alpha Value
+ gl.glBlendFunc(GL_SRC_ALPHA, GL_ONE);
+
+ if(texLoader.isOk())
+ {
+ //Create Nearest Filtered Texture
+ gl.glGenTextures(3, texture);
+ gl.glBindTexture(GL_TEXTURE_2D, texture[0]);
+
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
+
+ gl.glTexImage2D(GL_TEXTURE_2D,
+ 0,
+ 3,
+ texLoader.getImageWidth(),
+ texLoader.getImageHeight(),
+ 0,
+ GL_RGB,
+ GL_UNSIGNED_BYTE,
+ texLoader.getTexture());
+
+ //Create Linear Filtered Texture
+ gl.glBindTexture(GL_TEXTURE_2D, texture[1]);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
+
+ gl.glTexImage2D(GL_TEXTURE_2D,
+ 0,
+ 3,
+ texLoader.getImageWidth(),
+ texLoader.getImageHeight(),
+ 0,
+ GL_RGB,
+ GL_UNSIGNED_BYTE,
+ texLoader.getTexture());
+
+
+ //Create MipMapped Texture (Only with GL4Java 2.1.2.1 and later!)
+ gl.glBindTexture(GL_TEXTURE_2D, texture[2]);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_NEAREST);
+
+ glu.gluBuild2DMipmaps(GL_TEXTURE_2D,
+ 3,
+ texLoader.getImageWidth(),
+ texLoader.getImageHeight(),
+ GL_RGB,
+ GL_UNSIGNED_BYTE,
+ texLoader.getTexture());
+ }
+ }
+
+
+ /**
+ * void init()
+ *
+ * Called just AFTER the GL-Context is created.
+ */
+ public void init()
+ {
+ //Load The Texture(s)
+ LoadGLTextures();
+ //Enable Texture Mapping
+ gl.glEnable(GL_TEXTURE_2D);
+
+ //This Will Clear The Background Color To Black
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+
+ //Enables Clearing Of The Depth Buffer
+ gl.glClearDepth(1.0);
+ //The Type Of Depth Test To Do
+ gl.glDepthFunc(GL_LESS);
+ //Enables Depth Testing
+ gl.glEnable(GL_DEPTH_TEST);
+
+ //Enables Smooth Color Shading
+ gl.glShadeModel(GL_SMOOTH);
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+
+ //Lights
+ gl.glLightfv(GL_LIGHT1, GL_AMBIENT, LightAmbient);
+ gl.glLightfv(GL_LIGHT1, GL_DIFFUSE, LightDiffuse);
+ gl.glLightfv(GL_LIGHT1, GL_POSITION, LightPosition);
+
+ //Enable light
+ gl.glEnable(GL_LIGHT1);
+ gl.glEnable(GL_LIGHTING);
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the canvas.
+ */
+ public void destroy()
+ {
+ //Destroy the GLContext
+ cvsDispose();
+ }
+
+
+ /**
+ * void reshape(int width, int height)
+ *
+ * Called after the first paint command.
+ */
+ public void reshape(int width, int height)
+ {
+ //Reset The Current Viewport And Perspective Transformation
+ gl.glViewport(0, 0, width, height);
+
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+
+ /**
+ * void display()
+ *
+ * Draw to the canvas.
+ */
+ public void display()
+ {
+ //Ensure GL is initialised correctly
+ if (glj.gljMakeCurrent(true) == false)
+ return;
+
+ //Clear The Screen And The Depth Buffer
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ //Reset The View
+ gl.glLoadIdentity();
+
+ //Move into the screen
+ gl.glTranslatef(0.0f, 0.0f, z);
+
+ //Rotate On The X Axis
+ gl.glRotatef(xrot,1.0f, 0.0f, 0.0f);
+ //Rotate On The Y Axis
+ gl.glRotatef(yrot, 0.0f, 1.0f, 0.0f);
+
+ //Select texture
+ gl.glBindTexture(GL_TEXTURE_2D, texture[filter]);
+
+ gl.glBegin(GL_QUADS);
+ //Front Face
+ gl.glNormal3f(0.0f, 0.0f, 1.0f);
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, 1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, 1.0f); //Top Left Of The Texture and Quad
+ //Back Face
+ gl.glNormal3f(0.0f, 0.0f, -1.0f);
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, -1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, -1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, -1.0f); //Bottom Left Of The Texture and Quad
+ //Top Face
+ gl.glNormal3f(0.0f, 1.0f, 0.0f);
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f(-1.0f, 1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f( 1.0f, 1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, -1.0f); //Top Right Of The Texture and Quad
+ //Bottom Face
+ gl.glNormal3f(0.0f, -1.0f, 0.0f);
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f(-1.0f, -1.0f, -1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f( 1.0f, -1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ //Right face
+ gl.glNormal3f(1.0f, 0.0f, 0.0f);
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, -1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, -1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f( 1.0f, 1.0f, 1.0f); //Top Left Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f( 1.0f, -1.0f, 1.0f); //Bottom Left Of The Texture and Quad
+ //Left Face
+ gl.glNormal3f(-1.0f, 0.0f, 0.0f);
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, -1.0f); //Bottom Left Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, 1.0f); //Bottom Right Of The Texture and Quad
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, 1.0f); //Top Right Of The Texture and Quad
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, -1.0f); //Top Left Of The Texture and Quad
+ gl.glEnd();
+
+ //X Axis Rotation
+ xrot += xspeed;
+ //Y Axis Rotation
+ yrot += yspeed;
+
+ //Swap buffers
+ glj.gljSwap();
+ }
+
+
+ /**
+ * void keyTyped(KeyEvent e)
+ *
+ * Invoked when a key has been typed. This event occurs when a key press is followed by a key release.
+ */
+ public void keyTyped(KeyEvent e)
+ {
+ }
+
+
+ /**
+ * void keyPressed(KeyEvent e)
+ *
+ * Invoked when a key has been pressed.
+ */
+ public void keyPressed(KeyEvent e)
+ {
+ switch(e.getKeyCode())
+ {
+ //Switch ON/OFF light when L is pressed
+ case KeyEvent.VK_L:
+ {
+ if(!lp)
+ {
+ lp = true;
+ //Toggle light
+ light = !light;
+
+ if(!light)
+ gl.glDisable(GL_LIGHTING);
+ else
+ gl.glEnable(GL_LIGHTING);
+ }
+
+ break;
+ }
+
+ //Switch filter when F is pressed
+ case KeyEvent.VK_F:
+ {
+ if(!fp)
+ {
+ fp = true;
+ //Change filter
+ filter += 1;
+ if(filter > 2)
+ filter = 0;
+ }
+
+ break;
+ }
+
+ //Switch blending when B is pressed
+ case KeyEvent.VK_B:
+ {
+ if(!bp)
+ {
+ bp = true;
+ //Toggle blending
+ blend = !blend;
+
+ if(blend)
+ {
+ gl.glEnable(GL_BLEND); //Turn Blending On
+ gl.glDisable(GL_DEPTH_TEST); //Turn Depth Testing Off
+ }
+ else
+ {
+ gl.glDisable(GL_BLEND); //Turn Blending Off
+ gl.glEnable(GL_DEPTH_TEST); //Turn Depth Testing On
+ }
+ }
+
+ break;
+ }
+
+ //Move cube back when user presses PG_UP
+ case KeyEvent.VK_PAGE_UP:
+ {
+ z -= 0.2f;
+ break;
+ }
+
+ //Move cube forwards when user presses PG_DOWN
+ case KeyEvent.VK_PAGE_DOWN:
+ {
+ z += 0.2f;
+ break;
+ }
+
+ //Increase X rotation speed when user presses UP
+ case KeyEvent.VK_UP:
+ {
+ xspeed += 0.2f;
+ break;
+ }
+
+ //Decrease X rotation speed when user presses DOWN
+ case KeyEvent.VK_DOWN:
+ {
+ xspeed -= 0.2f;
+ break;
+ }
+
+ //Increase Y rotation speed when user presses RIGHT
+ case KeyEvent.VK_RIGHT:
+ {
+ yspeed += 0.2f;
+ break;
+ }
+
+ //Decrease Y rotation speed when user presses LEFT
+ case KeyEvent.VK_LEFT:
+ {
+ yspeed -= 0.2f;
+ break;
+ }
+ }
+ }
+
+
+ /**
+ * void keyReleased(KeyEvent e)
+ *
+ * Invoked when a key has been released.
+ */
+ public void keyReleased(KeyEvent e)
+ {
+ switch(e.getKeyCode())
+ {
+ //Key has been released
+ case KeyEvent.VK_L:
+ {
+ lp = false;
+ break;
+ }
+
+ //Key has been released
+ case KeyEvent.VK_F:
+ {
+ fp = false;
+ break;
+ }
+
+ //Key has been released
+ case KeyEvent.VK_B:
+ {
+ bp = false;
+ break;
+ }
+ }
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ public void mouseExited( MouseEvent evt )
+ { }
+ public void mousePressed( MouseEvent evt )
+ { }
+ public void mouseReleased( MouseEvent evt )
+ { }
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ }
+}
diff --git a/demos/HodglimsNeHe/Lesson8_plugin13.html b/demos/HodglimsNeHe/Lesson8_plugin13.html
new file mode 100644
index 0000000..e774d49
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson8_plugin13.html
@@ -0,0 +1,82 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson8 Applet: Blending</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Blending</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana"><B><U>Keys</U></B></FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<B>L</B> - Lights ON/OFF<BR>
+<B>F</B> - Change texture filter<BR>
+<B>B</B> - Blending ON/OFF<BR>
+<B>PG_UP</B> - Zoom out<BR>
+<B>PG_DOWN</B> - Zoom in<BR>
+<B>UP</B> - Rotate cube<BR>
+<B>DOWN</B> - Rotate cube<BR>
+<B>LEFT</B> - Rotate cube<BR>
+<B>RIGHT</B> - Rotate cube
+</FONT>
+</P>
+<P><FONT SIZE="1" FACE="Verdana"><B>Note:</B> You must click inside the applet window before using these keys.</FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "400" HEIGHT = "400" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "Lesson8.class" WIDTH = "400" HEIGHT = "400" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "Lesson8.class" WIDTH = "400" HEIGHT = "400"></XMP>
+<PARAM NAME = CODE VALUE = "Lesson8.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "Lesson8.class" WIDTH = "400" HEIGHT = "400">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson9.html b/demos/HodglimsNeHe/Lesson9.html
new file mode 100644
index 0000000..2c7b6bb
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson9.html
@@ -0,0 +1,47 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson9 Applet: Moving Bitmaps In 3D Space</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Moving Bitmaps In 3D Space</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana"><B><U>Keys</U></B></FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<B>T</B> - Twinkle ON/OFF<BR>
+<B>PG_UP</B> - Zoom out<BR>
+<B>PG_DOWN</B> - Zoom in<BR>
+<B>UP</B> - Rotate up<BR>
+<B>DOWN</B> - Rotate down
+</FONT>
+</P>
+<P><FONT SIZE="1" FACE="Verdana"><B>Note:</B> You must click inside the applet window before using these keys.</FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<APPLET CODE="Lesson9.class" WIDTH="400" HEIGHT="400">
+</APPLET>
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/Lesson9.java b/demos/HodglimsNeHe/Lesson9.java
new file mode 100644
index 0000000..4c4a92d
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson9.java
@@ -0,0 +1,451 @@
+/**
+ * Lesson9.java
+ *
+ * Author: Darren Hodges
+ * Date: 21/12/1999
+ *
+ * Port of the NeHe OpenGL Tutorial (Lesson 9: "Moving Bitmaps In 3D Space")
+ * to Java using the GL4Java interface to OpenGL.
+ *
+ */
+
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+
+//GL4Java classes
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.utils.textures.*;
+
+
+public class Lesson9 extends Applet
+{
+ //Our rendering canvas
+ //We are using GLAnimCanvas because we want the canvas
+ //to be constantly redrawn
+ renderCanvas canvas = null;
+
+
+ /**
+ * void init()
+ *
+ * Initialise the applet.
+ */
+ public void init()
+ {
+ //We will use BorderLayout to layout the applet components
+ setLayout(new BorderLayout());
+
+ //Create our canvas and add it to the center of the applet
+ canvas = new renderCanvas(getSize().width, getSize().height);
+ canvas.requestFocus();
+ add("Center", canvas);
+ }
+
+
+ /**
+ * void start()
+ *
+ * Start the applet.
+ */
+ public void start()
+ {
+ //Start animating the canvas
+ canvas.start();
+ }
+
+
+ /**
+ * void stop()
+ *
+ * Stop the applet.
+ */
+ public void stop()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the applet.
+ */
+ public void destroy()
+ {
+ //Stop animating the canvas
+ canvas.stop();
+ //Destroy the canvas
+ canvas.destroy();
+ }
+
+
+
+ private class renderCanvas extends GLAnimCanvas
+ implements KeyListener, MouseListener
+ {
+ boolean twinkle = true; //Twinkling stars
+ boolean tp = false; //T Pressed?
+ final int NUM = 50; //NUMber of stars to draw
+
+ Star[] star = new Star[NUM]; //Array of stars
+
+ float zoom = -15.0f; //Viewing Distance Away From Stars
+ float tilt = 90.0f; //Tilt The View
+ float spin = 0.0f; //Spin Twinkling Stars
+
+ int loop = 0; //General loop Variable
+
+ int[] texture = new int[1]; //Storage For One Texture
+
+
+ /**
+ * renderCanvas(int w, int h)
+ *
+ * Constructor.
+ */
+ public renderCanvas(int w, int h)
+ {
+ super(w, h);
+
+ //Registers this canvas to process keyboard events
+ addKeyListener(this);
+ addMouseListener(this);
+ }
+
+
+ /**
+ * void preInit()
+ *
+ * Called just BEFORE the GL-Context is created.
+ */
+ public void preInit()
+ {
+ //We want double buffering
+ doubleBuffer = true;
+ //But we dont want stereo view
+ stereoView = false;
+ }
+
+
+ /**
+ * void LoadGLTextures()
+ *
+ * Load textures.
+ */
+ public void LoadGLTextures()
+ {
+ PngTextureLoader texLoader = new PngTextureLoader(gl, glu);
+ texLoader.readTexture(getCodeBase(), "data/star.png");
+
+ if(texLoader.isOk())
+ {
+ //Create Texture
+ gl.glGenTextures(1, texture);
+ gl.glBindTexture(GL_TEXTURE_2D, texture[0]);
+
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
+
+ gl.glTexImage2D(GL_TEXTURE_2D,
+ 0,
+ 3,
+ texLoader.getImageWidth(),
+ texLoader.getImageHeight(),
+ 0,
+ GL_RGB,
+ GL_UNSIGNED_BYTE,
+ texLoader.getTexture());
+ }
+ }
+
+
+ /**
+ * void init()
+ *
+ * Called just AFTER the GL-Context is created.
+ */
+ public void init()
+ {
+ //Load The Texture(s)
+ LoadGLTextures();
+ //Enable Texture Mapping
+ gl.glEnable(GL_TEXTURE_2D);
+
+ //This Will Clear The Background Color To Black
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+
+ //Enables Clearing Of The Depth Buffer
+ gl.glClearDepth(1.0);
+
+ //Enables Smooth Color Shading
+ gl.glShadeModel(GL_SMOOTH);
+
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+
+ //Set The Blending Function For Translucency
+ gl.glBlendFunc(GL_SRC_ALPHA, GL_ONE);
+ //Enable Blending
+ gl.glEnable(GL_BLEND);
+
+ //Create A Loop That Goes Through All The Stars
+ for(loop = 0; loop < NUM; loop++)
+ {
+ star[loop] = new Star();
+ star[loop].angle = 0.0f; //Start All The Stars At Angle Zero
+ star[loop].dist = ((float)(loop) / NUM) * 5.0f; //Calculate Distance From The Center
+ star[loop].r = (byte)(256 * Math.random()); //Give star[loop] A Random Red Intensity
+ star[loop].g = (byte)(256 * Math.random()); //Give star[loop] A Random Green Intensity
+ star[loop].b = (byte)(256 * Math.random()); //Give star[loop] A Random Blue Intensity
+ }
+ }
+
+
+ /**
+ * void destroy()
+ *
+ * Destroy the canvas.
+ */
+ public void destroy()
+ {
+ //Destroy the GLContext
+ cvsDispose();
+ }
+
+
+ /**
+ * void reshape(int width, int height)
+ *
+ * Called after the first paint command.
+ */
+ public void reshape(int width, int height)
+ {
+ //Reset The Current Viewport And Perspective Transformation
+ gl.glViewport(0, 0, width, height);
+
+ //Select The Projection Matrix
+ gl.glMatrixMode(GL_PROJECTION);
+ //Reset The Projection Matrix
+ gl.glLoadIdentity();
+ //Calculate The Aspect Ratio Of The Window
+ glu.gluPerspective(45.0f, (float)getSize().width / (float)getSize().height, 0.1f, 100.0f);
+ //Select The Modelview Matrix
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+
+ /**
+ * void display()
+ *
+ * Draw to the canvas.
+ */
+ public void display()
+ {
+ //Ensure GL is initialised correctly
+ if (glj.gljMakeCurrent(true) == false)
+ return;
+
+ //Clear The Screen And The Depth Buffer
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ //Select Our Texture
+ gl.glBindTexture(GL_TEXTURE_2D, texture[0]);
+
+ //Loop Through All The Stars
+ for(loop = 0; loop < NUM; loop++)
+ {
+ gl.glLoadIdentity(); //Reset The View Before We Draw Each Star
+ gl.glTranslatef(0.0f, 0.0f, zoom); //Zoom Into The Screen (Using The Value In 'zoom')
+ gl.glRotatef(tilt, 1.0f, 0.0f, 0.0f); //Tilt The View (Using The Value In 'tilt')
+ gl.glRotatef(star[loop].angle, 0.0f, 1.0f, 0.0f); //Rotate To The Current Stars Angle
+ gl.glTranslatef(star[loop].dist, 0.0f, 0.0f); //Move Forward On The X Plane
+ gl.glRotatef(-star[loop].angle, 0.0f, 1.0f, 0.0f); //Cancel The Current Stars Angle
+ gl.glRotatef(-tilt, 1.0f, 0.0f, 0.0f); //Cancel The Screen Tilt
+
+ //Twinkling Stars Enabled
+ if(twinkle)
+ {
+ //Assign A Color Using Bytes
+ gl.glColor4ub(star[(NUM - loop) - 1].r, star[(NUM - loop) - 1].g, star[(NUM - loop) - 1].b, (byte)255);
+ gl.glBegin(GL_QUADS); //Begin Drawing The Textured Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, 0.0f);
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f(1.0f, -1.0f, 0.0f);
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f(1.0f, 1.0f, 0.0f);
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, 0.0f);
+ gl.glEnd(); //Done Drawing The Textured Quad
+ }
+
+ gl. glRotatef(spin,0.0f,0.0f,1.0f); //Rotate The Star On The Z Axis
+ //Assign A Color Using Bytes
+ gl.glColor4ub(star[loop].r, star[loop].g, star[loop].b, (byte)255);
+ gl.glBegin(GL_QUADS); //Begin Drawing The Textured Quad
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f(-1.0f, -1.0f, 0.0f);
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f(1.0f,-1.0f, 0.0f);
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f(1.0f, 1.0f, 0.0f);
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f(-1.0f, 1.0f, 0.0f);
+ gl.glEnd(); //Done Drawing The Textured Quad
+
+ spin += 0.01f; //Used To Spin The Stars
+ star[loop].angle += (float)(loop / (float)NUM); //Changes The Angle Of A Star
+ star[loop].dist -= 0.01f; //Changes The Distance Of A Star
+
+ //Is The Star In The Middle Yet?
+ if(star[loop].dist < 0.0f)
+ {
+ star[loop].dist += 5.0f; //Move The Star 5 Units From The Center
+ star[loop].r = (byte)(256 * Math.random()); //Give It A New Red Value
+ star[loop].g = (byte)(256 * Math.random()); //Give It A New Green Value
+ star[loop].b = (byte)(256 * Math.random()); //Give It A New Blue Value
+ }
+ }
+
+ //Swap buffers
+ glj.gljSwap();
+ }
+
+
+ /**
+ * void keyTyped(KeyEvent e)
+ *
+ * Invoked when a key has been typed. This event occurs when a key press is followed by a key release.
+ */
+ public void keyTyped(KeyEvent e)
+ {
+ }
+
+
+ /**
+ * void keyPressed(KeyEvent e)
+ *
+ * Invoked when a key has been pressed.
+ */
+ public void keyPressed(KeyEvent e)
+ {
+ switch(e.getKeyCode())
+ {
+ //Switch ON/OFF twinkle when T is pressed
+ case KeyEvent.VK_T:
+ {
+ if(!tp)
+ {
+ tp = true;
+ //Toggle twinkle
+ twinkle = !twinkle;
+ }
+
+ break;
+ }
+
+ //Tilt screen up when user presses UP
+ case KeyEvent.VK_UP:
+ {
+ //Tilt The Screen Up
+ tilt -= 0.5f;
+ break;
+ }
+
+ //Tilt screen down when user presses DOWN
+ case KeyEvent.VK_DOWN:
+ {
+ //Tilt The Screen Down
+ tilt += 0.5f;
+ break;
+ }
+
+ //Zoom out when user presses PG_UP
+ case KeyEvent.VK_PAGE_UP:
+ {
+ //Zoom out
+ zoom -= 0.2f;
+ break;
+ }
+
+ //Zoom in when user presses PG_DOWN
+ case KeyEvent.VK_PAGE_DOWN:
+ {
+ //Zoom in
+ zoom += 0.2f;
+ break;
+ }
+ }
+ }
+
+
+ /**
+ * void keyReleased(KeyEvent e)
+ *
+ * Invoked when a key has been released.
+ */
+ public void keyReleased(KeyEvent e)
+ {
+ switch(e.getKeyCode())
+ {
+ //Key has been released
+ case KeyEvent.VK_T:
+ {
+ tp = false;
+ break;
+ }
+ }
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ public void mouseExited( MouseEvent evt )
+ { }
+ public void mousePressed( MouseEvent evt )
+ { }
+ public void mouseReleased( MouseEvent evt )
+ { }
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ }
+
+
+
+ public class Star
+ {
+ byte r, g, b; //Stars colour
+ float dist; //Stars distance from center
+ float angle; //Stars current angle
+
+
+ /**
+ * Star()
+ *
+ * Constructor.
+ */
+ public Star()
+ {
+ r = g = b = 0;
+ dist = angle = 0.0f;
+ }
+ }
+}
diff --git a/demos/HodglimsNeHe/Lesson9_plugin13.html b/demos/HodglimsNeHe/Lesson9_plugin13.html
new file mode 100644
index 0000000..18b6f52
--- /dev/null
+++ b/demos/HodglimsNeHe/Lesson9_plugin13.html
@@ -0,0 +1,78 @@
+<HTML>
+<HEAD>
+<TITLE>Lesson9 Applet: Moving Bitmaps In 3D Space</TITLE>
+<STYLE TYPE="text/css">
+<!--
+A:link { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:visited { COLOR: #9C9AB1; TEXT-DECORATION: none }
+A:active { color: Yellow; TEXT-DECORATION: none }
+A:hover { color: Yellow; TEXT-DECORATION: none }
+-->
+</STYLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<CENTER>
+<P>
+<FONT SIZE="2" FACE="Verdana"><B>Moving Bitmaps In 3D Space</B></FONT>
+</P>
+<TABLE WIDTH="100%">
+<TR>
+<TD WIDTH="30%" ALIGN="LEFT" VALIGN="TOP">
+<P>
+<FONT SIZE="1" FACE="Verdana"><B><U>Keys</U></B></FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<B>T</B> - Twinkle ON/OFF<BR>
+<B>PG_UP</B> - Zoom out<BR>
+<B>PG_DOWN</B> - Zoom in<BR>
+<B>UP</B> - Rotate up<BR>
+<B>DOWN</B> - Rotate down
+</FONT>
+</P>
+<P><FONT SIZE="1" FACE="Verdana"><B>Note:</B> You must click inside the applet window before using these keys.</FONT></P>
+<P>
+<FONT SIZE="1" FACE="Verdana">
+<A HREF="index.html">Go back</A>
+</FONT>
+</P>
+</TD>
+<TD WIDTH="70%" ALIGN="CENTER" VALIGN="TOP">
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "400" HEIGHT = "400" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "Lesson9.class" WIDTH = "400" HEIGHT = "400" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "Lesson9.class" WIDTH = "400" HEIGHT = "400"></XMP>
+<PARAM NAME = CODE VALUE = "Lesson9.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "Lesson9.class" WIDTH = "400" HEIGHT = "400">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+</TD>
+</TR>
+</TABLE>
+</CENTER>
+</BODY>
+</HTML>
diff --git a/demos/HodglimsNeHe/data/Star.png b/demos/HodglimsNeHe/data/Star.png
new file mode 100644
index 0000000..e933c74
--- /dev/null
+++ b/demos/HodglimsNeHe/data/Star.png
Binary files differ
diff --git a/demos/HodglimsNeHe/data/crate.png b/demos/HodglimsNeHe/data/crate.png
new file mode 100644
index 0000000..41d120f
--- /dev/null
+++ b/demos/HodglimsNeHe/data/crate.png
Binary files differ
diff --git a/demos/HodglimsNeHe/data/cube.png b/demos/HodglimsNeHe/data/cube.png
new file mode 100644
index 0000000..40d08ac
--- /dev/null
+++ b/demos/HodglimsNeHe/data/cube.png
Binary files differ
diff --git a/demos/HodglimsNeHe/data/glass.png b/demos/HodglimsNeHe/data/glass.png
new file mode 100644
index 0000000..8fd87b1
--- /dev/null
+++ b/demos/HodglimsNeHe/data/glass.png
Binary files differ
diff --git a/demos/HodglimsNeHe/data/nehe.png b/demos/HodglimsNeHe/data/nehe.png
new file mode 100644
index 0000000..0cbdc4d
--- /dev/null
+++ b/demos/HodglimsNeHe/data/nehe.png
Binary files differ
diff --git a/demos/HodglimsNeHe/data/tim.png b/demos/HodglimsNeHe/data/tim.png
new file mode 100644
index 0000000..e1922d6
--- /dev/null
+++ b/demos/HodglimsNeHe/data/tim.png
Binary files differ
diff --git a/demos/HodglimsNeHe/index.html b/demos/HodglimsNeHe/index.html
new file mode 100644
index 0000000..88ac1fb
--- /dev/null
+++ b/demos/HodglimsNeHe/index.html
@@ -0,0 +1,38 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="Author" content="Ron Cemer & Sven Goethel">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Misc Demos</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<p>Here are the
+<a href="http://nehe.gamedev.net/opengl.asp">NeHe OpenGL Tutorial Demos</a>
+originally ported by
+<a href="http://dev.knowledgeassociates.com/Hodglim/nehe/nehe.shtml">Hodglim</a>
+for <B> GL4Java >= 2.4.0.0: </B> <br>
+<br>
+This demos have added <I>requestFocus()</I> statements,
+especially for the events: <I>mouseEntered</I> and <I>mouseClicked</I> !<br>
+<br>
+<p><a href="index_plugin13.html">To use the Java2 Plug-In (Java2, JRE, Plug-In 1.3), click here !</a><br>
+<br>
+<br>
+ <p>&nbsp;<a href="Lesson1.html">Lesson 1</a> : Lesson 1 - Setting Up OpenGL In Windows
+ <p>&nbsp;<a href="Lesson2.html">Lesson 2</a> : Lesson 2 - Your First Polygon
+ <p>&nbsp;<a href="Lesson3.html">Lesson 3</a> : Lesson 3 - Colors
+ <p>&nbsp;<a href="Lesson4.html">Lesson 4</a> : Lesson 4 - Rotation
+ <p>&nbsp;<a href="Lesson5.html">Lesson 5</a> : Lesson 5 - Solid Objects
+ <p>&nbsp;<a href="Lesson6.html">Lesson 6</a> : Lesson 6 - Texture Mapping
+ <p>&nbsp;<a href="Lesson7.html">Lesson 7</a> : Lesson 7 - Texture Filters, Lighting & Keyboard Control
+ <p>&nbsp;<a href="Lesson8.html">Lesson 8</a> : Lesson 8 - Blending
+ <p>&nbsp;<a href="Lesson9.html">Lesson 9</a> : Lesson 9 - Moving Bitmaps In 3D Space
+<p>&nbsp;<a href="Lesson11.html">Lesson 11</a> : Lesson 11 - OpenGL Flag Effect
+<p>&nbsp;<a href="Lesson12.html">Lesson 12</a> : Lesson 12 - Display Lists
+<p>&nbsp;<a href="Lesson16.html">Lesson 16</a> : Lesson 16 - Cool Looking Fog
+<p>&nbsp;<a href="Lesson18.html">Lesson 18</a> : Lesson 18 - Quadratics
+<br>
+<br>
+</body>
+</html>
diff --git a/demos/HodglimsNeHe/index_plugin13.html b/demos/HodglimsNeHe/index_plugin13.html
new file mode 100644
index 0000000..754940c
--- /dev/null
+++ b/demos/HodglimsNeHe/index_plugin13.html
@@ -0,0 +1,41 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="Author" content="Ron Cemer & Sven Goethel">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Misc Demos</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<p>Here are the
+<a href="http://nehe.gamedev.net/opengl.asp">NeHe OpenGL Tutorial Demos</a>
+originally ported by
+<a href="http://dev.knowledgeassociates.com/Hodglim/nehe/nehe.shtml">Hodglim</a>
+for <B> GL4Java >= 2.4.0.0: </B> <br>
+<br>
+This demos have added <I>requestFocus()</I> statements,
+especially for the events: <I>mouseEntered</I> and <I>mouseClicked</I> !<br>
+<br>
+<hr>
+<br>&nbsp;
+<a href="../../Installer/java.policy">The Java2 (sdk, jre, plugin 1.3) policy file example to give GL4Java the necessary permissions (Click here) !</a>
+<br>&nbsp;
+<hr>
+<br>
+ <p>&nbsp;<a href="Lesson1_plugin13.html">Lesson 1</a> : Lesson 1 - Setting Up OpenGL In Windows
+ <p>&nbsp;<a href="Lesson2_plugin13.html">Lesson 2</a> : Lesson 2 - Your First Polygon
+ <p>&nbsp;<a href="Lesson3_plugin13.html">Lesson 3</a> : Lesson 3 - Colors
+ <p>&nbsp;<a href="Lesson4_plugin13.html">Lesson 4</a> : Lesson 4 - Rotation
+ <p>&nbsp;<a href="Lesson5_plugin13.html">Lesson 5</a> : Lesson 5 - Solid Objects
+ <p>&nbsp;<a href="Lesson6_plugin13.html">Lesson 6</a> : Lesson 6 - Texture Mapping
+ <p>&nbsp;<a href="Lesson7_plugin13.html">Lesson 7</a> : Lesson 7 - Texture Filters, Lighting & Keyboard Control
+ <p>&nbsp;<a href="Lesson8_plugin13.html">Lesson 8</a> : Lesson 8 - Blending
+ <p>&nbsp;<a href="Lesson9_plugin13.html">Lesson 9</a> : Lesson 9 - Moving Bitmaps In 3D Space
+<p>&nbsp;<a href="Lesson11_plugin13.html">Lesson 11</a> : Lesson 11 - OpenGL Flag Effect
+<p>&nbsp;<a href="Lesson12_plugin13.html">Lesson 12</a> : Lesson 12 - Display Lists
+<p>&nbsp;<a href="Lesson16_plugin13.html">Lesson 16</a> : Lesson 16 - Cool Looking Fog
+<p>&nbsp;<a href="Lesson18_plugin13.html">Lesson 18</a> : Lesson 18 - Quadratics
+<br>
+<br>
+</body>
+</html>
diff --git a/demos/Java2Applet.bat b/demos/Java2Applet.bat
new file mode 100755
index 0000000..d43b97d
--- /dev/null
+++ b/demos/Java2Applet.bat
@@ -0,0 +1 @@
+appletviewer.exe -J-Djava.security.policy=gl4java.policy glLogoCvsApplet.html
diff --git a/demos/Java2AppletB.bat b/demos/Java2AppletB.bat
new file mode 100755
index 0000000..be9d7a4
--- /dev/null
+++ b/demos/Java2AppletB.bat
@@ -0,0 +1 @@
+appletviewer.exe -J-Djava.security.policy=gl4java.policy glOlympicCvsApplet.html
diff --git a/demos/Java2AppletC.bat b/demos/Java2AppletC.bat
new file mode 100755
index 0000000..cd2c22e
--- /dev/null
+++ b/demos/Java2AppletC.bat
@@ -0,0 +1 @@
+appletviewer.exe -J-Djava.security.policy=gl4java.policy testTextPPM1.html
diff --git a/demos/MiscDemos/DrawColoredPrimitives.html b/demos/MiscDemos/DrawColoredPrimitives.html
new file mode 100644
index 0000000..a812c94
--- /dev/null
+++ b/demos/MiscDemos/DrawColoredPrimitives.html
@@ -0,0 +1,14 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<applet code="DrawColoredPrimitives.class" width=500 height=300>
+<param name=frames value="55">
+</applet>
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/MiscDemos/DrawColoredPrimitives.java b/demos/MiscDemos/DrawColoredPrimitives.java
new file mode 100755
index 0000000..0e6725b
--- /dev/null
+++ b/demos/MiscDemos/DrawColoredPrimitives.java
@@ -0,0 +1,142 @@
+/**
+ * @(#) DrawColoredPrimitives.java
+ * @(#) author: Joe Zimmerman (converted to Java by Sven Goethel)
+ */
+
+/* This program is free software under the license of LGPL */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+public class DrawColoredPrimitives extends SimpleGLAnimApplet1
+{
+
+ public void init(int w, int h)
+ {
+ super.init();
+ canvas = new gldemo(w, h);
+ add("Center", canvas);
+ }
+
+ public void init()
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new gldemo(d.width, d.height);
+ add("Center", canvas);
+ }
+
+ public static void main( String args[] ) {
+ DrawColoredPrimitives applet =
+ new DrawColoredPrimitives();
+
+ Frame f = new Frame("DrawColoredPrimitives");
+
+ f.addWindowListener( new WindowAdapter()
+ {
+ public void windowClosed(WindowEvent e)
+ {
+ System.exit(0);
+ }
+ public void windowClosing(WindowEvent e)
+ {
+ windowClosed(e);
+ }
+ }
+ );
+
+ f.setLayout(new BorderLayout());
+ f.add("Center", applet);
+ applet.init(500,300);
+ applet.start();
+ Dimension ps = applet.getPreferredSize();
+ f.setBounds(-100,-100,99,99);
+ f.setVisible(true);
+ f.setVisible(false);
+ Insets i = f.getInsets();
+ f.setBounds(0,0,
+ ps.width+i.left+i.right,
+ ps.height+i.top+i.bottom);
+ f.setVisible(true);
+ }
+
+ private class gldemo extends GLAnimCanvas
+ {
+ float rotate;
+
+ float LightAmbient[] = { 0.75f, 0.75f, 0.75f, 1.5f};
+ float LightDiffuse[] = { 1.0f, 1.0f, 1.0f, 0.9f};
+ float LightSpecular[] = { 0.8f, 0.8f, 0.8f, 1.0f};
+
+ public gldemo(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ setAnimateFps(30.0);
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ reshape(getSize().width, getSize().height);
+
+ gl.glEnable(GL_LIGHT0);
+ gl.glLightfv(GL_LIGHT0, GL_AMBIENT, LightAmbient);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, LightDiffuse);
+ gl.glLightfv(GL_LIGHT0, GL_SPECULAR, LightSpecular);
+
+ glj.gljCheckGL();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ glu.gluPerspective(45, (float)width/(float)height, 1, 700);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ gl.glViewport(0,0,width,height);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+
+ gl.glColor4f(1, 1, 1, 1);
+
+ rotate++;
+
+ gl.glTranslatef(0, 0, -5);
+ gl.glRotatef(rotate, 0, 1, 0);
+ gl.glBegin(GL_POLYGON);
+ gl.glNormal3f( 1, 0, 0);
+ gl.glColor4f(1, 0, 0, 1); gl.glVertex3f( 0, 1, 0);
+ gl.glColor4f(0, 1, 0, 1); gl.glVertex3f(-1, -1, 0);
+ gl.glColor4f(0, 0, 1, 1); gl.glVertex3f( 1, -1, 0);
+ gl.glEnd();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+ }
+}
diff --git a/demos/MiscDemos/DrawColoredPrimitives2.html b/demos/MiscDemos/DrawColoredPrimitives2.html
new file mode 100644
index 0000000..6881a77
--- /dev/null
+++ b/demos/MiscDemos/DrawColoredPrimitives2.html
@@ -0,0 +1,16 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Press the Right-Mouse Button for a Menu !
+<br>
+<hr>
+<applet code="DrawColoredPrimitives2.class" width=500 height=300>
+<param name=frames value="55">
+</applet>
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/MiscDemos/DrawColoredPrimitives2.java b/demos/MiscDemos/DrawColoredPrimitives2.java
new file mode 100644
index 0000000..fad8668
--- /dev/null
+++ b/demos/MiscDemos/DrawColoredPrimitives2.java
@@ -0,0 +1,302 @@
+/**
+ * @(#) DrawColoredPrimitives2.java
+ * @(#) author: Joe Zimmerman (converted to Java by Sven Goethel)
+ */
+
+/* This program is free software under the license of LGPL */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+public class DrawColoredPrimitives2 extends SimpleGLAnimApplet1
+{
+
+ public void init()
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new gldemo(d.width, d.height);
+ add("Center", canvas);
+ }
+
+ public static void main( String args[] ) {
+ DrawColoredPrimitives2 applet =
+ new DrawColoredPrimitives2();
+
+ Frame f = new Frame("DrawColoredPrimitives2");
+
+ f.addWindowListener( new WindowAdapter()
+ {
+ public void windowClosed(WindowEvent e)
+ {
+ System.exit(0);
+ }
+ public void windowClosing(WindowEvent e)
+ {
+ windowClosed(e);
+ }
+ }
+ );
+
+ f.setLayout(new BorderLayout());
+ f.add("Center", applet);
+ applet.setSize(500,300);
+ applet.init();
+ applet.start();
+ Dimension ps = applet.getPreferredSize();
+ f.setBounds(-100,-100,99,99);
+ f.setVisible(true);
+ f.setVisible(false);
+ Insets i = f.getInsets();
+ f.setBounds(0,0,
+ ps.width+i.left+i.right,
+ ps.height+i.top+i.bottom);
+ f.setVisible(true);
+ }
+
+ private class gldemo extends GLAnimCanvas
+ implements MouseListener, ActionListener
+ {
+ private PopupMenu menu = null;
+ private boolean menu_showing = false;
+ private boolean save_suspended = false;
+ private final String VIEW_FRONT = "View Front";
+ private final String VIEW_TOP = "View Top";
+ private final String VIEW_BOTTOM = "View Bottom";
+
+ final float M_PI = 3.14159265f;
+ final float M_PI_2 = 1.57079632f;
+ float rotate;
+ float rotationStep = 1;
+ int view = 0; /* 0 = front, 1 = top, 2 = bottom */
+
+ float LightAmbient[] = { 0.75f, 0.75f, 0.75f, 1.5f};
+ float LightDiffuse[] = { 1.0f, 1.0f, 1.0f, 0.9f};
+ float LightSpecular[] = { 0.8f, 0.8f, 0.8f, 1.0f};
+
+ public gldemo(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ setAnimateFps(30.0);
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ reshape(getSize().width, getSize().height);
+
+ gl.glEnable(GL_LIGHT0);
+ gl.glLightfv(GL_LIGHT0, GL_AMBIENT, LightAmbient);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, LightDiffuse);
+ gl.glLightfv(GL_LIGHT0, GL_SPECULAR, LightSpecular);
+
+ glj.gljCheckGL();
+
+ menu = new PopupMenu("Options");
+ menu.add(VIEW_FRONT);
+ menu.add(VIEW_TOP);
+ menu.add(VIEW_BOTTOM);
+ menu.addActionListener(this);
+ add(menu);
+
+ addMouseListener(this);
+ }
+
+ public void doCleanup()
+ {
+ removeMouseListener(this);
+ menu.removeActionListener(this);
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ glu.gluPerspective(45, (float)width/(float)height, 1, 700);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ gl.glViewport(0,0,width,height);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+
+ gl.glTranslatef(0, 0, -5);
+
+ if(view==1)
+ {
+ gl.glRotatef(90f, 1, 0, 0);
+ } else if(view==2)
+ {
+ gl.glRotatef(-90f, 1, 0, 0);
+ }
+
+ gl.glColor4f(1, 1, 1, 1);
+
+ rotate+=rotationStep;
+ if(rotate>=180.0f || rotate<=0.0f)
+ rotationStep*=-1.0f;
+
+ gl.glRotatef(rotate, 0, 1, 0);
+
+
+ gl.glBegin(GL_POLYGON);
+ gl.glNormal3f( 1, 0, 0);
+
+ // top vertex
+ gl.glColor4f(1, 0, 0, 1); gl.glVertex3f( 0, 1, 0);
+ // bottom left vertex
+ gl.glColor4f(0, 1, 0, 1); gl.glVertex3f(-1, -1, 1);
+ // bottom right vertex
+ gl.glColor4f(0, 0, 1, 1); gl.glVertex3f( 1, -1, 1);
+ gl.glEnd();
+
+ gl.glBegin(GL_POLYGON);
+ gl.glNormal3f( 1, 0, 0);
+
+ // top vertex
+ gl.glColor4f(1, 0, 0, 1); gl.glVertex3f( 0, 1, 0);
+ // bottom left vertex
+ gl.glColor4f(0, 1, 0, 1); gl.glVertex3f( 1, -1, -1);
+ // bottom right vertex
+ gl.glColor4f(0, 0, 1, 1); gl.glVertex3f( 1, -1, 1);
+ gl.glEnd();
+
+ gl.glBegin(GL_POLYGON);
+ gl.glNormal3f( 1, 0, 0);
+
+ // top vertex
+ gl.glColor4f(1, 0, 0, 1); gl.glVertex3f( 0, 1, 0);
+ // bottom left vertex
+ gl.glColor4f(0, 1, 0, 1); gl.glVertex3f( 1, -1, -1);
+ // bottom right vertex
+ gl.glColor4f(0, 0, 1, 1); gl.glVertex3f(-1, -1, -1);
+ gl.glEnd();
+
+ gl.glBegin(GL_POLYGON);
+ gl.glNormal3f( 1, 0, 0);
+
+ // top vertex
+ gl.glColor4f(1, 0, 0, 1); gl.glVertex3f( 0, 1, 0);
+ // bottom left vertex
+ gl.glColor4f(0, 1, 0, 1); gl.glVertex3f(-1, -1, 1);
+ // bottom right vertex
+ gl.glColor4f(0, 0, 1, 1); gl.glVertex3f(-1, -1, -1);
+ gl.glEnd();
+
+
+ // bottom square polygon
+ gl.glBegin(GL_POLYGON);
+ gl.glNormal3f( 1, 0, 0);
+
+ gl.glColor4f(0, 0, 1, 1); gl.glVertex3f( 1, -1, 1);
+ gl.glColor4f(0, 1, 0, 1); gl.glVertex3f(-1, -1, 1);
+ gl.glColor4f(0, 0, 1, 1); gl.glVertex3f(-1, -1, -1);
+ gl.glColor4f(0, 1, 0, 1); gl.glVertex3f( 1, -1, -1);
+ gl.glEnd();
+
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered(MouseEvent evt)
+ {
+ }
+
+ public void mouseExited(MouseEvent evt)
+ {
+ }
+
+ public void mousePressed(MouseEvent evt)
+ {
+ if (!menu_showing)
+ {
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ menu_showing = true;
+ save_suspended = isSuspended();
+ if (!save_suspended)
+ {
+ setSuspended(true);
+ repaint(100);
+ try
+ {
+ Thread.currentThread().sleep(200);
+ }
+ catch (Exception e)
+ { }
+ }
+ menu.show(this,evt.getX(),evt.getY());
+ }
+ else
+ {
+ // Must be left button.
+ if (isSuspended()) repaint();
+ }
+ }
+ else
+ {
+ menu_showing = false;
+ setSuspended(save_suspended);
+ }
+ }
+
+ public void mouseReleased(MouseEvent evt)
+ {
+ }
+
+ public void mouseClicked(MouseEvent evt)
+ {
+ }
+
+ // Method required for the implementation of ActionListener
+ public void actionPerformed(ActionEvent evt)
+ {
+ String c = evt.getActionCommand();
+ if (c.equals(VIEW_FRONT))
+ {
+ view=0;
+ }
+ else if (c.equals(VIEW_TOP))
+ {
+ view=1;
+ }
+ else if (c.equals(VIEW_BOTTOM))
+ {
+ view=2;
+ }
+ if (menu_showing)
+ {
+ menu_showing = false;
+ setSuspended(save_suspended);
+ }
+ }
+
+
+
+ }
+}
diff --git a/demos/MiscDemos/DrawColoredPrimitives2_plugin13.html b/demos/MiscDemos/DrawColoredPrimitives2_plugin13.html
new file mode 100644
index 0000000..ba23c36
--- /dev/null
+++ b/demos/MiscDemos/DrawColoredPrimitives2_plugin13.html
@@ -0,0 +1,48 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Press the Right-Mouse Button for a Menu !
+<br>
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 500 HEIGHT = 300 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "DrawColoredPrimitives2.class" WIDTH = 500 HEIGHT = 300 frames = "55" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "DrawColoredPrimitives2.class" WIDTH = 500 HEIGHT = 300></XMP>
+<PARAM NAME = CODE VALUE = "DrawColoredPrimitives2.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+<PARAM NAME = frames VALUE ="55">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "DrawColoredPrimitives2.class" WIDTH = 500 HEIGHT = 300>
+<PARAM NAME = frames VALUE ="55">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/MiscDemos/DrawColoredPrimitives_plugin13.html b/demos/MiscDemos/DrawColoredPrimitives_plugin13.html
new file mode 100644
index 0000000..101fd55
--- /dev/null
+++ b/demos/MiscDemos/DrawColoredPrimitives_plugin13.html
@@ -0,0 +1,46 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 500 HEIGHT = 300 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "DrawColoredPrimitives.class" WIDTH = 500 HEIGHT = 300 frames = "55" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "DrawColoredPrimitives.class" WIDTH = 500 HEIGHT = 300></XMP>
+<PARAM NAME = CODE VALUE = "DrawColoredPrimitives.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+<PARAM NAME = frames VALUE ="55">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "DrawColoredPrimitives.class" WIDTH = 500 HEIGHT = 300>
+<PARAM NAME = frames VALUE ="55">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/MiscDemos/GLImageViewerCanvas.java b/demos/MiscDemos/GLImageViewerCanvas.java
new file mode 100755
index 0000000..320242c
--- /dev/null
+++ b/demos/MiscDemos/GLImageViewerCanvas.java
@@ -0,0 +1,126 @@
+import gl4java.*;
+import gl4java.awt.*;
+import gl4java.utils.textures.*;
+
+import java.awt.*;
+import java.awt.event.*;
+import java.net.*;
+
+public class GLImageViewerCanvas extends Frame
+ implements ActionListener, ItemListener
+{
+ GLImageCanvas glImageCanvas = null;
+
+ private Choice fileTypeChoice = null;
+ private Button loadButton = null;
+ private Button saveButton = null;
+ private Button normalButton = null;
+ private Checkbox aspectCheck = null;
+
+ public GLImageViewerCanvas(String title)
+ {
+ super(title);
+ setSize(500, 300);
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+
+ addWindowListener( new WindowAdapter()
+ {
+ public void windowClosed(WindowEvent e)
+ {
+ System.exit(0);
+ }
+ public void windowClosing(WindowEvent e)
+ {
+ windowClosed(e);
+ }
+ }
+ );
+
+ Panel filePanel = new Panel();
+ filePanel.setLayout(new FlowLayout(FlowLayout.CENTER));
+
+ fileTypeChoice = new Choice();
+ fileTypeChoice.add("any");
+ fileTypeChoice.add("tga");
+ fileTypeChoice.add("png");
+ fileTypeChoice.add("ppm");
+ filePanel.add(fileTypeChoice);
+
+ loadButton = new Button("load..");
+ loadButton.addActionListener(this);
+ filePanel.add(loadButton);
+
+ saveButton = new Button("save..");
+ saveButton.addActionListener(this);
+ filePanel.add(saveButton);
+
+ normalButton = new Button("normal");
+ normalButton.addActionListener(this);
+ filePanel.add(normalButton);
+
+ aspectCheck = new Checkbox("aspect", true);
+ aspectCheck.addItemListener(this);
+ filePanel.add(aspectCheck);
+ add("North", filePanel);
+
+ glImageCanvas = new GLImageCanvas(d.width, d.height);
+ glImageCanvas.setName("GLImageCanvas");
+ glImageCanvas.setKeepAspectRatio(aspectCheck.getState());
+ add("Center", glImageCanvas);
+
+ pack();
+ setVisible(true);
+ }
+
+ public void actionPerformed(ActionEvent e)
+ {
+ Object src = e.getSource();
+ if(src.equals(loadButton))
+ {
+ FileDialog fd = new FileDialog(this,"Bitmap Load Menu",
+ FileDialog.LOAD);
+ fd.show();
+ String fname = fd.getDirectory() + fd.getFile() ;
+ fname = fname.replace('\\','/');
+ fname = fname.trim();
+
+ setTitle(fname);
+ glImageCanvas.loadTexture(fname,
+ fileTypeChoice.getSelectedItem() );
+ repaint();
+ } else if(src.equals(saveButton))
+ {
+ FileDialog fd = new FileDialog(this,"TGA-Image Save Menu",
+ FileDialog.SAVE);
+ fd.show();
+ String fname = fd.getDirectory() + fd.getFile() ;
+ fname = fname.replace('\\','/');
+ fname = fname.trim();
+
+ setTitle(fname);
+ glImageCanvas.snapshot( new TGATextureGrabber(glImageCanvas.gl),
+ fname);
+ repaint();
+ } else if(src.equals(normalButton))
+ {
+ glImageCanvas.setOriginalSize();
+ }
+ }
+
+ public void itemStateChanged(ItemEvent e)
+ {
+ if(aspectCheck.equals(e.getItemSelectable()))
+ {
+ glImageCanvas.setKeepAspectRatio(aspectCheck.getState());
+ }
+ }
+
+ public static void main( String args[] )
+ {
+ GLContext.gljNativeDebug = true;
+ GLContext.gljClassDebug = true;
+ GLImageViewerCanvas applet =
+ new GLImageViewerCanvas("GLImageViewerCanvas");
+ }
+}
diff --git a/demos/MiscDemos/GLImageViewerWorld.java b/demos/MiscDemos/GLImageViewerWorld.java
new file mode 100755
index 0000000..f00bd06
--- /dev/null
+++ b/demos/MiscDemos/GLImageViewerWorld.java
@@ -0,0 +1,112 @@
+import gl4java.*;
+import gl4java.awt.*;
+import gl4java.utils.textures.*;
+
+import java.awt.*;
+import java.awt.event.*;
+import java.net.*;
+
+public class GLImageViewerWorld extends Frame
+ implements ActionListener
+{
+ GLImageWorld1 glImageCanvas = null;
+
+ private Choice fileTypeChoice = null;
+ private Button loadButton = null;
+ private Button saveButton = null;
+ private Button normalButton = null;
+
+ public GLImageViewerWorld(String title)
+ {
+ super(title);
+ setSize(500, 300);
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+
+ addWindowListener( new WindowAdapter()
+ {
+ public void windowClosed(WindowEvent e)
+ {
+ System.exit(0);
+ }
+ public void windowClosing(WindowEvent e)
+ {
+ windowClosed(e);
+ }
+ }
+ );
+
+ Panel filePanel = new Panel();
+ filePanel.setLayout(new FlowLayout(FlowLayout.CENTER));
+
+ fileTypeChoice = new Choice();
+ fileTypeChoice.add("any");
+ fileTypeChoice.add("tga");
+ fileTypeChoice.add("png");
+ fileTypeChoice.add("ppm");
+ filePanel.add(fileTypeChoice);
+
+ loadButton = new Button("load..");
+ loadButton.addActionListener(this);
+ filePanel.add(loadButton);
+
+ saveButton = new Button("save..");
+ saveButton.addActionListener(this);
+ filePanel.add(saveButton);
+
+ normalButton = new Button("normal");
+ normalButton.addActionListener(this);
+ filePanel.add(normalButton);
+
+ add("North", filePanel);
+
+ glImageCanvas = new GLImageWorld1(d.width, d.height);
+ glImageCanvas.setName("GLImageWorld1");
+ add("Center", glImageCanvas);
+
+ pack();
+ setVisible(true);
+ }
+
+ public void actionPerformed(ActionEvent e)
+ {
+ Object src = e.getSource();
+ if(src.equals(loadButton))
+ {
+ FileDialog fd = new FileDialog(this,"Bitmap Load Menu",
+ FileDialog.LOAD);
+ fd.show();
+ String fname = fd.getDirectory() + fd.getFile() ;
+ fname = fname.replace('\\','/');
+ fname = fname.trim();
+
+ setTitle(fname);
+ glImageCanvas.loadTexture(fname,
+ fileTypeChoice.getSelectedItem() );
+ repaint();
+ } else if(src.equals(saveButton))
+ {
+ FileDialog fd = new FileDialog(this,"TGA-Image Save Menu",
+ FileDialog.SAVE);
+ fd.show();
+ String fname = fd.getDirectory() + fd.getFile() ;
+ fname = fname.replace('\\','/');
+ fname = fname.trim();
+
+ setTitle(fname);
+ glImageCanvas.snapshot( new TGATextureGrabber(glImageCanvas.gl),
+ fname);
+ repaint();
+ } else if(src.equals(normalButton))
+ {
+ glImageCanvas.setOriginalPerspective();
+ }
+ }
+
+ public static void main( String args[] )
+ {
+ GLImageViewerWorld applet =
+ new GLImageViewerWorld("GLImageViewerWorld");
+ }
+}
+
diff --git a/demos/MiscDemos/GLImageWorld1.java b/demos/MiscDemos/GLImageWorld1.java
new file mode 100755
index 0000000..6ac78f5
--- /dev/null
+++ b/demos/MiscDemos/GLImageWorld1.java
@@ -0,0 +1,456 @@
+import gl4java.*;
+import gl4java.awt.*;
+import gl4java.utils.textures.*;
+
+import java.awt.*;
+import java.awt.event.*;
+import java.net.*;
+
+public class GLImageWorld1 extends GLCanvas
+ implements MouseListener,MouseMotionListener
+{
+ float []mPosObjTrans;
+ float []mPosObjRot;
+
+ Point mousePoint;
+ Point oldMousePoint;
+ boolean mouseMoveFlag;
+
+
+ TextureGrabber textGrab4Snapshot = null;
+ String textGrab4SnapshotFName = null;
+
+ TextureLoader txtLoader = null;
+ int texName[] = {0};
+
+ public GLImageWorld1 (int w, int h)
+ {
+ super(w, h);
+ }
+
+ /**
+ * Creates a snapshot (save texture/image) of the current
+ * GL-Context !
+ *
+ * The snapshot itself is created delayed,
+ * so no return value is avaiable.
+ * Because this is a non critical path, I hope its enough !
+ *
+ * @param tg The TextureGrabber
+ * @param fname The filename
+ * @see TextureGrabber
+ */
+ public void snapshot(TextureGrabber tg, String fname)
+ {
+ textGrab4Snapshot=tg;
+ textGrab4SnapshotFName=fname;
+ repaint();
+ }
+
+ public void setOriginalPerspective()
+ {
+ setOriginalPerspective(true);
+ }
+
+ private void setOriginalPerspective(boolean fetchGL)
+ {
+ for(int i=0;i<16;i++)
+ mPosObjTrans[i]=0f;
+ mPosObjTrans[0]=mPosObjTrans[5]=mPosObjTrans[10]=mPosObjTrans[15]=1f;
+ for(int i=0;i<16;i++)
+ mPosObjRot[i]=0f;
+ mPosObjRot[0]=mPosObjRot[5]=mPosObjRot[10]=mPosObjRot[15]=1f;
+
+ if(fetchGL)
+ {
+ if( glj.gljMakeCurrent() == false )
+ System.out.println("problem in use() method");
+ }
+
+ TranlateObj(0f,0f,-10f);
+ SetCamera();
+
+ if(fetchGL)
+ {
+ glj.gljCheckGL();
+ glj.gljFree();
+ repaint();
+ }
+ }
+
+ public void preInit()
+ {
+ // createOwnWindow = true;
+ }
+
+ public void init()
+ {
+ gl.glEnable(GL_TEXTURE_2D);
+
+ gl.glGenTextures(1,texName);
+ gl.glBindTexture(GL_TEXTURE_2D,texName[0]);
+
+ //gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL_CLAMP);
+ //gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,GL_CLAMP);
+ //gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
+ //gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL_CLAMP);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,GL_CLAMP);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_NEAREST);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_NEAREST);
+ gl.glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
+
+ // cameraMatrix init
+ mPosObjTrans=new float[16];
+ mPosObjRot=new float[16];
+
+ setOriginalPerspective(false);
+
+ gl.glShadeModel (GL_SMOOTH);
+ gl.glEnable(GL_DEPTH_TEST);
+
+ gl.glClearColor(0.2f, 0.2f, 0.2f, 1.0f);
+ gl.glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
+ glj.gljCheckGL();
+
+ addMouseListener(this);
+ addMouseMotionListener(this);
+ mouseMoveFlag=false;
+
+ reshape(getSize().width, getSize().height);
+ }
+
+ /**
+ * These variables are very important
+ * to respect the texture-size ratio !
+ */
+ float texMaxPosX = 1f;
+ float texMaxPosY = 1f;
+
+ public boolean loadTexture(String name, String type)
+ {
+ boolean ok = true;
+
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("problem in use() method");
+ return false;
+ }
+
+ // texture laden
+ if(type.equals("png"))
+ txtLoader = new PngTextureLoader(gl, glu);
+ else if(type.equals("ppm"))
+ txtLoader = new PPMAsciiTextureLoader(gl, glu);
+ else if(type.equals("tga"))
+ txtLoader = new TGATextureLoader(gl, glu);
+ else if(type.equals("any"))
+ txtLoader = new AWTTextureLoader(this, gl, glu);
+ else {
+ System.out.println("Imagetype: "+type+" is currently not supported !");
+ ok = false;
+ }
+
+ if(ok)
+ {
+ try {
+ txtLoader.readTexture(name);
+ } catch (Exception ex) {
+ ex.printStackTrace();
+ }
+ }
+
+ if(ok && txtLoader.isOk())
+ {
+ gl.glEnable(GL_TEXTURE_2D);
+
+ txtLoader.texImage2DScaled4BestSize();
+
+ texMaxPosX = 1f;
+ texMaxPosY = 1f;
+ float texAspect = txtLoader.getTextureWidth()/
+ txtLoader.getTextureHeight();
+
+ if(txtLoader.getTextureWidth()>txtLoader.getTextureHeight())
+ texMaxPosY = 1f/texAspect;
+ else
+ texMaxPosX = texAspect;
+ System.out.println("texture succesfully loaded !");
+ System.out.println("texture: "+txtLoader);
+ }
+ glj.gljCheckGL();
+ glj.gljFree();
+ if(ok)
+ repaint();
+ return ok;
+ }
+
+ public void display()
+ {
+ int i;
+
+ /* Standard GL4Java Init */
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ // just render it
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ SetCamera();
+
+ DrawScene();
+
+ if(textGrab4Snapshot!=null)
+ {
+ textGrab4Snapshot.grabPixels(GL_BACK,
+ 0, 0, cvsGetWidth(), cvsGetHeight());
+ if(textGrab4SnapshotFName!=null)
+ textGrab4Snapshot.write2File(textGrab4SnapshotFName);
+
+ textGrab4Snapshot =null;
+ textGrab4SnapshotFName=null;
+ }
+
+ /* For your animation dutys ;-) */
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ public void reshape(int w, int h)
+ {
+ gl.glMatrixMode (GL_MODELVIEW);
+ gl.glViewport (0, 0, w, h);
+ gl.glLoadIdentity();
+ SetCamera();
+ }
+
+
+ public void drawGrid(float x0, float y0,
+ float width, float height, float step)
+ {
+ float i,j;
+
+ /* draw grid */
+ gl.glBegin(GL_LINES);
+ for(i=x0;i<width;i+=step)
+ for(j=y0;j<height;j+=step)
+ {
+ if(i==0f && j==0f)
+ gl.glColor3f (1f,0f,0f);
+ else
+ gl.glColor3f (0.6f,0.5f,0.5f);
+ gl.glVertex2f(0f,j);
+ gl.glVertex2f(width,j);
+ gl.glVertex2f(i,height);
+ gl.glVertex2f(i,0f);
+ }
+ gl.glEnd();
+ }
+
+ void DrawScene()
+ {
+ gl.glMatrixMode (GL_MODELVIEW);
+ gl.glLoadIdentity ();
+
+ // kamera setzen
+ gl.glLoadMatrixf(mPosObjTrans);
+ gl.glMultMatrixf(mPosObjRot);
+
+ gl.glPushMatrix();
+ gl.glDisable(GL_TEXTURE_2D);
+ drawGrid(0f, 0f, 10f, 10f, 0.5f);
+ gl.glPopMatrix();
+
+ // obj zeichnen
+
+ gl.glPushMatrix();
+ gl.glScalef(2f,2f,2f);
+ gl.glColor3f(1f,0f,0f);
+ gl.glDisable(GL_TEXTURE_2D);
+ DrawObj();
+ gl.glPopMatrix();
+
+ if(texName[0]!=0)
+ gl.glEnable(GL_TEXTURE_2D);
+
+ gl.glEnable(GL_BLEND);
+ gl.glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
+
+ gl.glColor3f(1f,1f,1f);
+
+ gl.glPushMatrix();
+ gl.glScalef(3f,3f,3f);
+ gl.glTranslatef(-1f,0f,1f);
+ DrawObj();
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glScalef(3f,3f,3f);
+ gl.glTranslatef(1f,0f,1f);
+ DrawObj();
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glScalef(3f,3f,3f);
+ gl.glTranslatef(-2f,1f,1f);
+ Billboard();
+ DrawObj();
+ gl.glPopMatrix();
+
+ gl.glDisable(GL_BLEND);
+ }
+
+ void DrawObj()
+ {
+ gl.glPushMatrix();
+ gl.glBegin(GL_QUADS);
+ gl.glNormal3f(0f,0f,1f);
+ gl.glTexCoord2f(0f,0f);
+ gl.glVertex3f(0f,0f,0f);
+
+ gl.glNormal3f(0f,0f,1f);
+ gl.glTexCoord2f(0f,1f);
+ gl.glVertex3f(0f,texMaxPosY,0f);
+
+ gl.glNormal3f(0f,0f,1f);
+ gl.glTexCoord2f(1f,1f);
+ gl.glVertex3f(texMaxPosX,texMaxPosY,0f);
+
+ gl.glNormal3f(0f,0f,1f);
+ gl.glTexCoord2f(1f,0f);
+ gl.glVertex3f(texMaxPosX,0f,0f);
+ gl.glEnd();
+ gl.glPopMatrix();
+ }
+
+ float winaspect = 1f;
+ float imgaspect = 1f;
+ float imgwidth = 1f;
+ float imgheight = 1f;
+
+ void SetCamera()
+ {
+ Dimension dim=getSize();
+ float aspect=(float)dim.width/(float)dim.height;
+
+ gl.glMatrixMode (GL_PROJECTION);
+ gl.glLoadIdentity ();
+ glu.gluPerspective(60f,aspect,.01,100);
+ }
+
+ void RotateObj(float degree,
+ float axisX,
+ float axisY,
+ float axisZ)
+ {
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ gl.glMatrixMode (GL_MODELVIEW);
+ gl.glLoadIdentity ();
+
+ // kamera setzen
+ gl.glRotatef(degree,axisX,axisY,axisZ);
+ gl.glMultMatrixf(mPosObjRot);
+ gl.glGetFloatv(GL_MODELVIEW_MATRIX,mPosObjRot);
+
+ repaint();
+ }
+
+ void TranlateObj(float x,float y,float z)
+ {
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ gl.glMatrixMode (GL_MODELVIEW);
+ gl.glLoadIdentity ();
+
+ // kamera setzen
+ gl.glLoadMatrixf(mPosObjTrans);
+ gl.glTranslatef(x,y,z);
+ gl.glGetFloatv(GL_MODELVIEW_MATRIX,mPosObjTrans);
+
+ repaint();
+ }
+
+ // entfernt rotationen aus aktueller matrix
+ double Billboard()
+ {
+ float[] mat=new float[16];
+
+ gl.glGetFloatv(GL_MODELVIEW_MATRIX,mat);
+ mat[0] = mat[5] = mat[10] = 1;
+ mat[1] = mat[2] = mat[4] = mat[6] = mat[8] = mat[9] = 0;
+ gl.glLoadMatrixf(mat);
+
+ return mat[14];
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ if(mouseMoveFlag==false)
+ { // start drag
+ mouseMoveFlag=true;
+ mousePoint=evt.getPoint();
+ }
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ mouseMoveFlag=false;
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ }
+
+ public void mouseDragged(MouseEvent e)
+ {
+ if(mouseMoveFlag==true)
+ {
+ oldMousePoint=new Point(mousePoint);
+ mousePoint=e.getPoint();
+
+ Point dif=new Point(mousePoint.x-oldMousePoint.x,
+ mousePoint.y-oldMousePoint.y);
+
+ if(e.isShiftDown()==true)
+ TranlateObj((float)dif.x/6.0f,(float)dif.y/-6.0f,0f);
+ else if(e.isAltDown()==true)
+ {
+ TranlateObj(0f,0f,(float)dif.y/6.0f);
+ RotateObj(dif.x,0f,0f,1f);
+ }
+ else
+ {
+ RotateObj(dif.x,0f,1f,0f);
+ RotateObj(dif.y,1f,0f,0f);
+ }
+ }
+ }
+ public void mouseMoved(MouseEvent e)
+ {
+ }
+
+
+}
+
diff --git a/demos/MiscDemos/PerformanceCheck.sh b/demos/MiscDemos/PerformanceCheck.sh
new file mode 100755
index 0000000..5934e9d
--- /dev/null
+++ b/demos/MiscDemos/PerformanceCheck.sh
@@ -0,0 +1,56 @@
+#! /bin/sh
+
+#
+# Prerequisites:
+#
+# - Unix Shell Environment, e.g. A Unix :-), cygwin32, ...
+#
+# - The native gears executabel in your PATH environment
+#
+# - The Shell Setup scripts for all your installed java1.1.X-java2 JVM's
+# under ./PerformanceEtc/profile.jdk* !!!
+# Here you have to setup the PATH, CLASSPATH well !
+#
+
+if [ -z "$1" -o -z "$2" ] ; then
+ echo usage: $0 \<nativeprog and java class\> \<logfilename\>
+ echo e.g.: $0 gears gl4j2.4.1-linux-xf68-4.0.1-tdfx-gears.log
+ exit 1
+fi
+
+testdelay=40s
+
+tstprog=$1
+logfile=$2
+rm -f $logfile
+
+echo >> $logfile
+echo =============================================== >> $logfile
+echo >> $logfile
+echo using native $tstprog >> $logfile
+($tstprog -info >> $logfile 2>&1) &
+sleep $testdelay && kill -15 $!
+sleep 5s
+echo >> $logfile
+echo >> $logfile
+
+for i in ./PerformanceEtc/profile.jdk* ; do
+ echo >> $logfile
+ echo =============================================== >> $logfile
+ echo >> $logfile
+ echo using $tstprog on $i >> $logfile
+ echo >> $logfile
+ . $i
+ if [ -z "$(echo $i | grep ibm)" ] ; then
+ java -version >> $logfile 2>&1
+ else
+ java -fullversion >> $logfile 2>&1
+ fi
+ echo JAVA_COMPILER $JAVA_COMPILER >> $logfile
+ echo >> $logfile
+ ( java $tstprog -perftest >> $logfile 2>&1) &
+ sleep $testdelay && kill -15 $!
+ sleep 5s
+ echo >> $logfile
+ echo >> $logfile
+done
diff --git a/demos/MiscDemos/PerformanceEtc/profile.jdk1.2-sun b/demos/MiscDemos/PerformanceEtc/profile.jdk1.2-sun
new file mode 100644
index 0000000..6483b1e
--- /dev/null
+++ b/demos/MiscDemos/PerformanceEtc/profile.jdk1.2-sun
@@ -0,0 +1,48 @@
+
+export NS_JAVA=
+# export DYN_JAVA=true # some motif bugs are there :-(
+export DYN_JAVA=
+
+export JAVA_HOME=/usr/local/lib/jdk1.2-sun
+export JDK_HOME=$JAVA_HOME
+
+export JAVA_COMPILER=javacomp
+
+THREADS_FLAG=native
+export THREADS_FLAG
+
+CLASSPATH=.
+
+#
+# 1st the PATH for classes
+#
+for i in /usr/local/projects/java \
+ $HOME/lib/classes \
+ /usr/local/lib-java \
+ ; do
+ test -e $i && CLASSPATH=$CLASSPATH:$i
+done
+
+#
+# 2nd the JAR/ZIP-Archives for classes
+#
+for i in $HOME/lib/classes/*.jar \
+ /usr/local/lib-java/*.jar \
+ ; do
+ test -e $i && CLASSPATH=$CLASSPATH:$i
+done
+export CLASSPATH
+
+#
+# Be sure to respect, that the latter directory in this
+# for-loop is the first entry in the PATH env-var !!!!!
+#
+for i in /usr/local/lib-java/JavaCC/bin \
+ /usr/local/lib-java/bin \
+ /usr/local/lib-java/JSDK/bin \
+ $JAVA_HOME/bin \
+ ; do
+ test -e $i && PATH=$i:$PATH
+done
+export PATH
+
diff --git a/demos/MiscDemos/PerformanceEtc/profile.jdk1.3-ibm b/demos/MiscDemos/PerformanceEtc/profile.jdk1.3-ibm
new file mode 100644
index 0000000..841718d
--- /dev/null
+++ b/demos/MiscDemos/PerformanceEtc/profile.jdk1.3-ibm
@@ -0,0 +1,52 @@
+
+export NS_JAVA=
+# export DYN_JAVA=true # some motif bugs are there :-(
+export DYN_JAVA=
+
+export JAVA_HOME=/usr/local/lib/jdk1.3-ibm
+export JDK_HOME=$JAVA_HOME
+
+export JAVA_COMPILER=jitc
+#unset JAVA_COMPILER
+
+export HOTJAVA_HOME=/usr/local/lib-java/HotJava
+export SWING_HOME=
+
+THREADS_FLAG=native
+export THREADS_FLAG
+
+CLASSPATH=.
+
+#
+# 1st the PATH for classes
+#
+for i in /usr/local/projects/java \
+ $HOME/lib/classes \
+ /usr/local/lib-java \
+ ; do
+ test -e $i && CLASSPATH=$CLASSPATH:$i
+done
+
+#
+# 2nd the JAR/ZIP-Archives for classes
+#
+for i in $HOME/lib/classes/*.jar \
+ /usr/local/lib-java/*.jar \
+ ; do
+ test -e $i && CLASSPATH=$CLASSPATH:$i
+done
+export CLASSPATH
+
+#
+# Be sure to respect, that the latter directory in this
+# for-loop is the first entry in the PATH env-var !!!!!
+#
+for i in /usr/local/lib-java/JavaCC/bin \
+ /usr/local/lib-java/bin \
+ /usr/local/lib-java/JSDK/bin \
+ $JAVA_HOME/bin \
+ ; do
+ test -e $i && PATH=$i:$PATH
+done
+export PATH
+
diff --git a/demos/MiscDemos/PerformanceEtc/profile.jdk1.3-sun b/demos/MiscDemos/PerformanceEtc/profile.jdk1.3-sun
new file mode 100644
index 0000000..752c6fe
--- /dev/null
+++ b/demos/MiscDemos/PerformanceEtc/profile.jdk1.3-sun
@@ -0,0 +1,52 @@
+
+export NS_JAVA=
+# export DYN_JAVA=true # some motif bugs are there :-(
+export DYN_JAVA=
+
+export JAVA_HOME=/usr/local/lib/jdk1.3-sun
+export JDK_HOME=$JAVA_HOME
+
+unset JAVA_COMPILER
+export TYA_LOGFILE=
+
+export HOTJAVA_HOME=/usr/local/lib-java/HotJava
+export SWING_HOME=
+
+THREADS_FLAG=native
+export THREADS_FLAG
+
+CLASSPATH=.
+
+#
+# 1st the PATH for classes
+#
+for i in /usr/local/projects/java \
+ $HOME/lib/classes \
+ /usr/local/lib-java \
+ ; do
+ test -e $i && CLASSPATH=$CLASSPATH:$i
+done
+
+#
+# 2nd the JAR/ZIP-Archives for classes
+#
+for i in $HOME/lib/classes/*.jar \
+ /usr/local/lib-java/*.jar \
+ ; do
+ test -e $i && CLASSPATH=$CLASSPATH:$i
+done
+export CLASSPATH
+
+#
+# Be sure to respect, that the latter directory in this
+# for-loop is the first entry in the PATH env-var !!!!!
+#
+for i in /usr/local/lib-java/JavaCC/bin \
+ /usr/local/lib-java/bin \
+ /usr/local/lib-java/JSDK/bin \
+ $JAVA_HOME/bin \
+ ; do
+ test -e $i && PATH=$i:$PATH
+done
+export PATH
+
diff --git a/demos/MiscDemos/PerformanceEtc/profile.jdk118-ibm b/demos/MiscDemos/PerformanceEtc/profile.jdk118-ibm
new file mode 100644
index 0000000..925684a
--- /dev/null
+++ b/demos/MiscDemos/PerformanceEtc/profile.jdk118-ibm
@@ -0,0 +1,48 @@
+
+export NS_JAVA=
+# export DYN_JAVA=true # some motif bugs are there :-(
+export DYN_JAVA=
+
+export JAVA_HOME=/usr/local/lib/jdk118-ibm
+export JDK_HOME=$JAVA_HOME
+
+export JAVA_COMPILER=jitc
+
+THREADS_FLAG=native
+export THREADS_FLAG
+
+CLASSPATH=$JAVA_HOME/lib/classes.zip:.
+
+#
+# 1st the PATH for classes
+#
+for i in /usr/local/projects/java \
+ $HOME/lib/classes \
+ /usr/local/lib-java \
+ ; do
+ test -e $i && CLASSPATH=$CLASSPATH:$i
+done
+
+#
+# 2nd the JAR/ZIP-Archives for classes
+#
+for i in $HOME/lib/classes/*.jar \
+ /usr/local/lib-java/*.jar \
+ ; do
+ test -e $i && CLASSPATH=$CLASSPATH:$i
+done
+export CLASSPATH
+
+#
+# Be sure to respect, that the latter directory in this
+# for-loop is the first entry in the PATH env-var !!!!!
+#
+for i in /usr/local/lib-java/JavaCC/bin \
+ /usr/local/lib-java/bin \
+ $JAVA_HOME/bin \
+ ; do
+ test -e $i && PATH=$i:$PATH
+done
+export PATH
+
+
diff --git a/demos/MiscDemos/PerformanceEtc/profile.jdk118_v1 b/demos/MiscDemos/PerformanceEtc/profile.jdk118_v1
new file mode 100644
index 0000000..f36395a
--- /dev/null
+++ b/demos/MiscDemos/PerformanceEtc/profile.jdk118_v1
@@ -0,0 +1,50 @@
+
+export NS_JAVA=
+# export DYN_JAVA=true # some motif bugs are there :-(
+export DYN_JAVA=
+
+export JAVA_HOME=/usr/local/lib/jdk118_v1
+export JDK_HOME=$JAVA_HOME
+
+export JAVA_COMPILER=tya
+export TYA_LOGFILE=/var/log/tya.log
+
+THREADS_FLAG=native
+export THREADS_FLAG
+
+CLASSPATH=$JAVA_HOME/lib/classes.zip:.
+
+#
+# 1st the PATH for classes
+#
+for i in /usr/local/projects/java \
+ $HOME/lib/classes \
+ /usr/local/lib-java \
+ ; do
+ test -e $i && CLASSPATH=$CLASSPATH:$i
+done
+
+#
+# 2nd the JAR/ZIP-Archives for classes
+#
+for i in $HOME/lib/classes/*.jar \
+ /usr/local/lib-java/*.jar \
+ ; do
+ test -e $i && CLASSPATH=$CLASSPATH:$i
+done
+export CLASSPATH
+
+#
+# Be sure to respect, that the latter directory in this
+# for-loop is the first entry in the PATH env-var !!!!!
+#
+for i in /usr/local/lib-java/JavaCC/bin \
+ /usr/local/lib-java/bin \
+ /usr/local/lib-java/JSDK/bin \
+ $JAVA_HOME/bin \
+ ; do
+ test -e $i && PATH=$i:$PATH
+done
+export PATH
+
+
diff --git a/demos/MiscDemos/PerformanceLogs/gl4j2.4.1-linux-ppc-500mhz-xf68-4.0.1-DRI-soft.log b/demos/MiscDemos/PerformanceLogs/gl4j2.4.1-linux-ppc-500mhz-xf68-4.0.1-DRI-soft.log
new file mode 100644
index 0000000..cc0831c
--- /dev/null
+++ b/demos/MiscDemos/PerformanceLogs/gl4j2.4.1-linux-ppc-500mhz-xf68-4.0.1-DRI-soft.log
@@ -0,0 +1,82 @@
+
+===============================================
+
+using native gears
+
+
+
+===============================================
+
+using gears on ./PerformanceEtc/profile.jdk118
+
+dirname: too many arguments
+Try `dirname --help' for more information.
+java version "1.1.8"
+JAVA_COMPILER mwjit
+
+dirname: too many arguments
+Try `dirname --help' for more information.
+libmwjit.so: cannot open shared object file: No such file or directory (libmwjit.so)
+Warning: JIT compiler "mwjit" not found. Will use interpreter.
+loading libs(gl, glu): null, null: true
+useFpsSleep: false
+useRepaint: false
+GL VERSION : 1.2 Mesa 3.3 beta
+GL RENDERER: Mesa GLX Indirect
+GL VENDOR : Precision Insight, Inc.
+453 frames in 5.004 seconds = 90.5275779376499 FPS
+455 frames in 5.001 seconds = 90.98180363927214 FPS
+454 frames in 5.003 seconds = 90.74555266839896 FPS
+456 frames in 5.009 seconds = 91.03613495707725 FPS
+454 frames in 5.003 seconds = 90.74555266839896 FPS
+456 frames in 5.01 seconds = 91.0179640718563 FPS
+453 frames in 5.005 seconds = 90.5094905094905 FPS
+
+
+
+===============================================
+
+using gears on ./PerformanceEtc/profile.jdk122
+
+java version "1.2.2"
+Classic VM (build Linux_JDK_1.2.2_FCS, native threads, nojit)
+JAVA_COMPILER
+
+loading libs(gl, glu): null, null: true
+useFpsSleep: false
+useRepaint: false
+GL VERSION : 1.2 Mesa 3.3 beta
+GL RENDERER: Mesa GLX Indirect
+GL VENDOR : Precision Insight, Inc.
+450 frames in 5.007 seconds = 89.87417615338526 FPS
+450 frames in 5.009 seconds = 89.83829107606309 FPS
+452 frames in 5.007 seconds = 90.2736169362892 FPS
+454 frames in 5.009 seconds = 90.63685366340586 FPS
+452 frames in 5.002 seconds = 90.36385445821672 FPS
+454 frames in 5.005 seconds = 90.70929070929071 FPS
+
+
+
+===============================================
+
+using gears on ./PerformanceEtc/profile.jdk13
+
+java version "1.3.0beta"
+Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.3.0beta-b02)
+Classic VM (build Blackdown-1.3.0beta-b02, native threads, nojit)
+JAVA_COMPILER
+
+loading libs(gl, glu): null, null: true
+useFpsSleep: false
+useRepaint: false
+GL VERSION : 1.2 Mesa 3.3 beta
+GL RENDERER: Mesa GLX Indirect
+GL VENDOR : Precision Insight, Inc.
+447 frames in 5.007 seconds = 89.27501497902936 FPS
+449 frames in 5.01 seconds = 89.62075848303394 FPS
+450 frames in 5.005 seconds = 89.91008991008991 FPS
+451 frames in 5.002 seconds = 90.16393442622952 FPS
+450 frames in 5.005 seconds = 89.91008991008991 FPS
+452 frames in 5.009 seconds = 90.23757236973447 FPS
+
+
diff --git a/demos/MiscDemos/PerformanceLogs/gl4j2.4.1-linux-x86-350mhz-Mesa321-soft-gears.log b/demos/MiscDemos/PerformanceLogs/gl4j2.4.1-linux-x86-350mhz-Mesa321-soft-gears.log
new file mode 100644
index 0000000..91f2e6f
--- /dev/null
+++ b/demos/MiscDemos/PerformanceLogs/gl4j2.4.1-linux-x86-350mhz-Mesa321-soft-gears.log
@@ -0,0 +1,130 @@
+
+===============================================
+
+using native gears
+GL_RENDERER = Mesa X11
+GL_VERSION = 1.2 Mesa 3.2.1
+GL_VENDOR = Brian Paul
+GL_EXTENSIONS = GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_logic_op GL_EXT_blend_subtract GL_EXT_packed_pixels GL_EXT_paletted_texture GL_EXT_point_parameters GL_EXT_polygon_offset GL_EXT_vertex_array GL_EXT_texture_object GL_EXT_texture3D GL_MESA_window_pos GL_MESA_resize_buffers GL_EXT_shared_texture_palette GL_EXT_rescale_normal GL_EXT_abgr GL_SGIS_texture_edge_clamp GL_EXT_stencil_wrap GL_INGR_blend_func_separate GL_ARB_multitexture GL_NV_texgen_reflection GL_PGI_misc_hints GL_EXT_compiled_vertex_array GL_EXT_clip_volume_hint
+492 frames in 5.004 seconds = 98.3213 FPS
+510 frames in 5.007 seconds = 101.857 FPS
+510 frames in 5.007 seconds = 101.857 FPS
+510 frames in 5.007 seconds = 101.857 FPS
+510 frames in 5.006 seconds = 101.878 FPS
+510 frames in 5.006 seconds = 101.878 FPS
+510 frames in 5.007 seconds = 101.857 FPS
+
+
+
+===============================================
+
+using gears on ./PerformanceEtc/profile.jdk118-ibm
+
+java full version "JDK 1.1.8 IBM build l118-19991221 (JIT enabled: jitc)"
+JAVA_COMPILER jitc
+
+loading libs(gl, glu): null, null: true
+useFpsSleep: false
+useRepaint: false
+Xt error: attempt to add non-widget child "dsm" to parent "MToolkit app" which supports only widgets
+SIGABRT received at bfffdc98 in /lib/libpthread.so.0. Processing terminated
+Writing stack trace to javacore4308.txt ... OK
+
+
+
+===============================================
+
+using gears on ./PerformanceEtc/profile.jdk118_v1
+
+java version "1.1.8"
+JAVA_COMPILER tya
+
+ TYA 1.5 (for J117 / Linux). Copyright (c) 1997,98,99 The TYA Team
+ Contact The TYA Team via Albrecht Kleine <[email protected]>
+loading libs(gl, glu): null, null: true
+useFpsSleep: false
+useRepaint: false
+GL VERSION : 1.2 Mesa 3.2.1
+GL RENDERER: Mesa X11
+GL VENDOR : Brian Paul
+500 frames in 5.003 seconds = 99.94003597841295 FPS
+501 frames in 5.004 seconds = 100.11990407673862 FPS
+502 frames in 5.009 seconds = 100.21960471151925 FPS
+502 frames in 5.01 seconds = 100.1996007984032 FPS
+502 frames in 5.008 seconds = 100.23961661341853 FPS
+502 frames in 5.009 seconds = 100.21960471151925 FPS
+502 frames in 5.004 seconds = 100.3197442046363 FPS
+502 frames in 5.007 seconds = 100.25963650888757 FPS
+
+
+
+===============================================
+
+using gears on ./PerformanceEtc/profile.jdk1.2-sun
+
+java version "1.2.2"
+Classic VM (build 1.2.2_006, native threads, javacomp)
+JAVA_COMPILER javacomp
+
+loading libs(gl, glu): null, null: true
+useFpsSleep: false
+useRepaint: false
+GL VERSION : 1.2 Mesa 3.2.1
+GL RENDERER: Mesa X11
+GL VENDOR : Brian Paul
+499 frames in 5.007 seconds = 99.66047533453167 FPS
+501 frames in 5.006 seconds = 100.07990411506192 FPS
+502 frames in 5.003 seconds = 100.3397961223266 FPS
+501 frames in 5.0 seconds = 100.2 FPS
+502 frames in 5.008 seconds = 100.23961661341853 FPS
+502 frames in 5.003 seconds = 100.3397961223266 FPS
+501 frames in 5.009 seconds = 100.01996406468356 FPS
+
+
+
+===============================================
+
+using gears on ./PerformanceEtc/profile.jdk1.3-ibm
+
+java full version "J2RE 1.3.0 IBM build cxdev-20000502"
+JAVA_COMPILER jitc
+
+loading libs(gl, glu): null, null: true
+useFpsSleep: false
+useRepaint: false
+GL VERSION : 1.2 Mesa 3.2.1
+GL RENDERER: Mesa X11
+GL VENDOR : Brian Paul
+498 frames in 5.005 seconds = 99.5004995004995 FPS
+500 frames in 5.0 seconds = 100.0 FPS
+500 frames in 5.0 seconds = 100.0 FPS
+501 frames in 5.009 seconds = 100.01996406468356 FPS
+497 frames in 5.0 seconds = 99.4 FPS
+504 frames in 5.001 seconds = 100.77984403119376 FPS
+
+
+
+===============================================
+
+using gears on ./PerformanceEtc/profile.jdk1.3-sun
+
+java version "1.3.0beta_refresh"
+Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0beta_refresh-b09)
+Java HotSpot(TM) Client VM (build 1.3.0beta-b07, mixed mode)
+JAVA_COMPILER
+
+loading libs(gl, glu): null, null: true
+useFpsSleep: false
+useRepaint: false
+GL VERSION : 1.2 Mesa 3.2.1
+GL RENDERER: Mesa X11
+GL VENDOR : Brian Paul
+498 frames in 5.0 seconds = 99.6 FPS
+499 frames in 5.007 seconds = 99.66047533453167 FPS
+500 frames in 5.0 seconds = 100.0 FPS
+498 frames in 5.007 seconds = 99.46075494307969 FPS
+501 frames in 5.0 seconds = 100.2 FPS
+501 frames in 5.0 seconds = 100.2 FPS
+500 frames in 5.008 seconds = 99.84025559105432 FPS
+
+
diff --git a/demos/MiscDemos/PerformanceLogs/gl4j2.4.1-linux-x86-350mhz-xf68-4.0.1-DRI-soft-gears.log b/demos/MiscDemos/PerformanceLogs/gl4j2.4.1-linux-x86-350mhz-xf68-4.0.1-DRI-soft-gears.log
new file mode 100644
index 0000000..355b563
--- /dev/null
+++ b/demos/MiscDemos/PerformanceLogs/gl4j2.4.1-linux-x86-350mhz-xf68-4.0.1-DRI-soft-gears.log
@@ -0,0 +1,137 @@
+
+===============================================
+
+using native gears
+GL_RENDERER = Mesa GLX Indirect
+GL_VERSION = 1.2 Mesa 3.3 beta
+GL_VENDOR = Precision Insight, Inc.
+GL_EXTENSIONS = GL_EXT_abgr GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract
+455 frames in 5.002 seconds = 90.9636 FPS
+464 frames in 5.003 seconds = 92.7444 FPS
+471 frames in 5.01 seconds = 94.012 FPS
+471 frames in 5.008 seconds = 94.0495 FPS
+471 frames in 5.009 seconds = 94.0307 FPS
+471 frames in 5.008 seconds = 94.0495 FPS
+470 frames in 5.002 seconds = 93.9624 FPS
+
+
+
+===============================================
+
+using gears on ./PerformanceEtc/profile.jdk118-ibm
+
+java full version "JDK 1.1.8 IBM build l118-19991221 (JIT enabled: jitc)"
+JAVA_COMPILER jitc
+
+loading libs(gl, glu): null, null: true
+useFpsSleep: false
+useRepaint: false
+GL VERSION : 1.2 Mesa 3.3 beta
+GL RENDERER: Mesa GLX Indirect
+GL VENDOR : Precision Insight, Inc.
+446 frames in 5.004 seconds = 89.12869704236611 FPS
+445 frames in 5.006 seconds = 88.89332800639232 FPS
+455 frames in 5.004 seconds = 90.92725819344525 FPS
+455 frames in 5.003 seconds = 90.94543274035578 FPS
+455 frames in 5.002 seconds = 90.96361455417833 FPS
+455 frames in 5.002 seconds = 90.96361455417833 FPS
+454 frames in 5.005 seconds = 90.70929070929071 FPS
+
+
+
+===============================================
+
+using gears on ./PerformanceEtc/profile.jdk118_v1
+
+java version "1.1.8"
+JAVA_COMPILER tya
+
+ TYA 1.5 (for J117 / Linux). Copyright (c) 1997,98,99 The TYA Team
+ Contact The TYA Team via Albrecht Kleine <[email protected]>
+loading libs(gl, glu): null, null: true
+useFpsSleep: false
+useRepaint: false
+GL VERSION : 1.2 Mesa 3.3 beta
+GL RENDERER: Mesa GLX Indirect
+GL VENDOR : Precision Insight, Inc.
+461 frames in 5.0 seconds = 92.2 FPS
+462 frames in 5.005 seconds = 92.3076923076923 FPS
+463 frames in 5.008 seconds = 92.4520766773163 FPS
+463 frames in 5.007 seconds = 92.47054124226084 FPS
+463 frames in 5.008 seconds = 92.4520766773163 FPS
+463 frames in 5.007 seconds = 92.47054124226084 FPS
+462 frames in 5.01 seconds = 92.21556886227545 FPS
+462 frames in 5.002 seconds = 92.36305477808877 FPS
+
+
+
+===============================================
+
+using gears on ./PerformanceEtc/profile.jdk1.2-sun
+
+java version "1.2.2"
+Classic VM (build 1.2.2_006, native threads, javacomp)
+JAVA_COMPILER javacomp
+
+loading libs(gl, glu): null, null: true
+useFpsSleep: false
+useRepaint: false
+GL VERSION : 1.2 Mesa 3.3 beta
+GL RENDERER: Mesa GLX Indirect
+GL VENDOR : Precision Insight, Inc.
+461 frames in 5.004 seconds = 92.12629896083135 FPS
+463 frames in 5.008 seconds = 92.4520766773163 FPS
+464 frames in 5.007 seconds = 92.67026163371281 FPS
+464 frames in 5.005 seconds = 92.70729270729271 FPS
+464 frames in 5.006 seconds = 92.6887734718338 FPS
+464 frames in 5.008 seconds = 92.65175718849841 FPS
+462 frames in 5.001 seconds = 92.38152369526094 FPS
+
+
+
+===============================================
+
+using gears on ./PerformanceEtc/profile.jdk1.3-ibm
+
+java full version "J2RE 1.3.0 IBM build cxdev-20000502"
+JAVA_COMPILER jitc
+
+loading libs(gl, glu): null, null: true
+useFpsSleep: false
+useRepaint: false
+GL VERSION : 1.2 Mesa 3.3 beta
+GL RENDERER: Mesa GLX Indirect
+GL VENDOR : Precision Insight, Inc.
+456 frames in 5.006 seconds = 91.09069117059528 FPS
+459 frames in 5.006 seconds = 91.68997203355973 FPS
+459 frames in 5.005 seconds = 91.70829170829171 FPS
+459 frames in 5.003 seconds = 91.74495302818309 FPS
+455 frames in 5.009 seconds = 90.83649431024156 FPS
+462 frames in 5.0 seconds = 92.4 FPS
+
+
+
+===============================================
+
+using gears on ./PerformanceEtc/profile.jdk1.3-sun
+
+java version "1.3.0beta_refresh"
+Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0beta_refresh-b09)
+Java HotSpot(TM) Client VM (build 1.3.0beta-b07, mixed mode)
+JAVA_COMPILER
+
+loading libs(gl, glu): null, null: true
+useFpsSleep: false
+useRepaint: false
+GL VERSION : 1.2 Mesa 3.3 beta
+GL RENDERER: Mesa GLX Indirect
+GL VENDOR : Precision Insight, Inc.
+462 frames in 5.009 seconds = 92.23397883809143 FPS
+461 frames in 5.007 seconds = 92.07110045935691 FPS
+463 frames in 5.005 seconds = 92.50749250749251 FPS
+462 frames in 5.007 seconds = 92.27082085080887 FPS
+466 frames in 5.005 seconds = 93.10689310689311 FPS
+466 frames in 5.004 seconds = 93.12549960031976 FPS
+464 frames in 5.005 seconds = 92.70729270729271 FPS
+
+
diff --git a/demos/MiscDemos/PerformanceLogs/gl4j2.4.1-linux-x86-350mhz-xf68-4.0.1-NVidia-GForce256-gears.log b/demos/MiscDemos/PerformanceLogs/gl4j2.4.1-linux-x86-350mhz-xf68-4.0.1-NVidia-GForce256-gears.log
new file mode 100644
index 0000000..e21c362
--- /dev/null
+++ b/demos/MiscDemos/PerformanceLogs/gl4j2.4.1-linux-x86-350mhz-xf68-4.0.1-NVidia-GForce256-gears.log
@@ -0,0 +1,131 @@
+
+===============================================
+
+using native gears
+GL_RENDERER = GeForce 256/AGP
+GL_VERSION = 1.2.1
+GL_VENDOR = NVIDIA Corporation
+GL_EXTENSIONS = GL_ARB_multitexture GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_fog_coord GL_EXT_packed_pixels GL_EXT_paletted_texture GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shared_texture_palette GL_EXT_stencil_wrap GL_EXT_texture_compression_s3tc GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_cube_map GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_vertex_weighting GL_KTX_buffer_region GL_NV_blend_square GL_NV_fence GL_NV_fog_distance GL_NV_light_max_exponent GL_NV_register_combiners GL_NV_texgen_emboss GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_NV_vertex_array_range GL_S3_s3tc GL_SGIS_multitexture GL_SGIS_texture_lod
+5380 frames in 5 seconds = 1076 FPS
+5452 frames in 5 seconds = 1090.4 FPS
+5496 frames in 5 seconds = 1099.2 FPS
+5495 frames in 5 seconds = 1099 FPS
+5496 frames in 5 seconds = 1099.2 FPS
+5496 frames in 5 seconds = 1099.2 FPS
+5494 frames in 5 seconds = 1098.8 FPS
+
+
+
+===============================================
+
+using gears on ./PerformanceEtc/profile.jdk118-ibm
+
+java full version "JDK 1.1.8 IBM build l118-19991221 (JIT enabled: jitc)"
+JAVA_COMPILER jitc
+
+loading libs(gl, glu): null, null: true
+useFpsSleep: false
+useRepaint: false
+GL VERSION : 1.2.1
+GL RENDERER: GeForce 256/AGP
+GL VENDOR : NVIDIA Corporation
+4969 frames in 5.0 seconds = 993.8 FPS
+4937 frames in 5.0 seconds = 987.4 FPS
+5065 frames in 5.0 seconds = 1013.0 FPS
+5062 frames in 5.0 seconds = 1012.4 FPS
+5066 frames in 5.0 seconds = 1013.2 FPS
+5062 frames in 5.0 seconds = 1012.4 FPS
+5053 frames in 5.0 seconds = 1010.6 FPS
+
+
+
+===============================================
+
+using gears on ./PerformanceEtc/profile.jdk118_v1
+
+java version "1.1.8"
+JAVA_COMPILER tya
+
+ TYA 1.5 (for J117 / Linux). Copyright (c) 1997,98,99 The TYA Team
+ Contact The TYA Team via Albrecht Kleine <[email protected]>
+loading libs(gl, glu): null, null: true
+useFpsSleep: false
+useRepaint: false
+GL VERSION : 1.2.1
+GL RENDERER: GeForce 256/AGP
+GL VENDOR : NVIDIA Corporation
+5132 frames in 5.0 seconds = 1026.4 FPS
+5174 frames in 5.0 seconds = 1034.8 FPS
+5180 frames in 5.0 seconds = 1036.0 FPS
+5180 frames in 5.0 seconds = 1036.0 FPS
+5179 frames in 5.0 seconds = 1035.8 FPS
+5179 frames in 5.0 seconds = 1035.8 FPS
+5166 frames in 5.0 seconds = 1033.2 FPS
+5179 frames in 5.0 seconds = 1035.8 FPS
+
+
+
+===============================================
+
+using gears on ./PerformanceEtc/profile.jdk1.2-sun
+
+java version "1.2.2"
+Classic VM (build 1.2.2_006, native threads, javacomp)
+JAVA_COMPILER javacomp
+
+loading libs(gl, glu): null, null: true
+useFpsSleep: false
+useRepaint: false
+GL VERSION : 1.2.1
+GL RENDERER: GeForce 256/AGP
+GL VENDOR : NVIDIA Corporation
+5112 frames in 5.0 seconds = 1022.4 FPS
+5168 frames in 5.0 seconds = 1033.6 FPS
+5176 frames in 5.0 seconds = 1035.2 FPS
+5178 frames in 5.0 seconds = 1035.6 FPS
+5177 frames in 5.0 seconds = 1035.4 FPS
+5178 frames in 5.0 seconds = 1035.6 FPS
+5168 frames in 5.0 seconds = 1033.6 FPS
+
+
+
+===============================================
+
+using gears on ./PerformanceEtc/profile.jdk1.3-ibm
+
+java full version "J2RE 1.3.0 IBM build cxdev-20000502"
+JAVA_COMPILER jitc
+
+loading libs(gl, glu): null, null: true
+useFpsSleep: false
+useRepaint: false
+GL VERSION : 1.2.1
+GL RENDERER: GeForce 256/AGP
+GL VENDOR : NVIDIA Corporation
+5079 frames in 5.0 seconds = 1015.8 FPS
+5229 frames in 5.0 seconds = 1045.8 FPS
+5230 frames in 5.0 seconds = 1046.0 FPS
+
+===============================================
+
+using gears on ./PerformanceEtc/profile.jdk1.3-sun
+
+java version "1.3.0beta_refresh"
+Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0beta_refresh-b09)
+Java HotSpot(TM) Client VM (build 1.3.0beta-b07, mixed mode)
+JAVA_COMPILER
+
+loading libs(gl, glu): null, null: true
+useFpsSleep: false
+useRepaint: false
+GL VERSION : 1.2.1
+GL RENDERER: GeForce 256/AGP
+GL VENDOR : NVIDIA Corporation
+4894 frames in 5.0 seconds = 978.8 FPS
+5043 frames in 5.0 seconds = 1008.6 FPS
+5063 frames in 5.0 seconds = 1012.6 FPS
+5065 frames in 5.0 seconds = 1013.0 FPS
+5065 frames in 5.0 seconds = 1013.0 FPS
+5064 frames in 5.0 seconds = 1012.8 FPS
+
+
diff --git a/demos/MiscDemos/PerformanceLogs/index.html b/demos/MiscDemos/PerformanceLogs/index.html
new file mode 100644
index 0000000..20ebe96
--- /dev/null
+++ b/demos/MiscDemos/PerformanceLogs/index.html
@@ -0,0 +1,15 @@
+<HEAD>
+<TITLE></TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<H1></H1>
+<HR><PRE>
+<IMG SRC="/icons/back.gif" ALT="[DIR]"> <A HREF="..">Parent Directory</A>
+<IMG SRC="/icons/compressed.gif" ALT="[ ]"> <A HREF="gl4j2.4.1-linux-ppc-500mhz-xf68-4.0.1-DRI-soft.log">gl4j2.4.1-linux-ppc-500mhz-xf68-4.0.1-DRI-soft.log</A> (4 kBytes)
+<IMG SRC="/icons/compressed.gif" ALT="[ ]"> <A HREF="gl4j2.4.1-linux-x86-350mhz-Mesa321-soft-gears.log">gl4j2.4.1-linux-x86-350mhz-Mesa321-soft-gears.log</A> (8 kBytes)
+<IMG SRC="/icons/compressed.gif" ALT="[ ]"> <A HREF="gl4j2.4.1-linux-x86-350mhz-xf68-4.0.1-DRI-soft-gears.log">gl4j2.4.1-linux-x86-350mhz-xf68-4.0.1-DRI-soft-gears.log</A> (8 kBytes)
+<IMG SRC="/icons/compressed.gif" ALT="[ ]"> <A HREF="gl4j2.4.1-linux-x86-350mhz-xf68-4.0.1-NVidia-GForce256-gears.log">gl4j2.4.1-linux-x86-350mhz-xf68-4.0.1-NVidia-GForce256-gears.log</A> (8 kBytes)
+</PRE><HR>
+<PRE>
+<PRE>
+</BODY>
diff --git a/demos/MiscDemos/SharedGLTest.java b/demos/MiscDemos/SharedGLTest.java
new file mode 100644
index 0000000..1377b20
--- /dev/null
+++ b/demos/MiscDemos/SharedGLTest.java
@@ -0,0 +1,73 @@
+import java.awt.*;
+import gl4java.*;
+import gl4java.awt.*;
+
+public class SharedGLTest extends Frame {
+ public static void main(String[] args) {
+ SharedGLTest t1 = new SharedGLTest();
+ t1.setVisible(true);
+
+ do { // Wait until t1 is fully created and displayed.
+ if(t1.getGLContext() != null) break;
+ }
+ while(true);
+
+ SharedGLTest t2 = new SharedGLTest(t1.getGLContext());
+ t2.setVisible(true);
+ }
+
+ public SharedGLTest() { this(null); }
+ public SharedGLTest(GLContext shareWith) {
+ super();
+ setBounds(50, 0, 200, 200);
+ c = new MyCanvas(100, 100, shareWith);
+ add(c);
+ }
+
+ private MyCanvas c;
+ public GLContext getGLContext() { return c.getGLContext(); }
+
+ private class MyCanvas extends GLCanvas {
+
+ public MyCanvas(int w, int h) {
+ super(w, h);
+ }
+
+ public MyCanvas(int w, int h, GLContext shareWith) {
+ super(w, h);
+ sharedGLContext = shareWith;
+ }
+
+ public void display() {
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ GLFunc gl = glj.getGLFunc();
+ buildCallList(gl); // Really build something only once.
+ gl.glCallList(callList);
+
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+ }
+ private static int callList;
+ private static boolean alreadyDone;
+ private static void buildCallList(GLFunc gl) { // Build only one call list for both GLCanvas.
+ if(alreadyDone) return;
+ alreadyDone = true;
+
+ callList = gl.glGenLists(1);
+
+ gl.glNewList(callList, gl.GL_COMPILE);
+ gl.glClearColor(1f, 0f, 0f, 1f);
+ gl.glClear(gl.GL_COLOR_BUFFER_BIT); // Clear the GLCanvas with red.
+ gl.glEndList();
+ }
+}
+
+
+
diff --git a/demos/MiscDemos/SharedGLTest2.html b/demos/MiscDemos/SharedGLTest2.html
new file mode 100644
index 0000000..802e43b
--- /dev/null
+++ b/demos/MiscDemos/SharedGLTest2.html
@@ -0,0 +1,13 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<applet code="SharedGLTest2.class" width=200 height=400>
+<param name=frames value="55">
+</applet>
+<hr>
+</BODY>
+</HTML>
+
diff --git a/demos/MiscDemos/SharedGLTest2.java b/demos/MiscDemos/SharedGLTest2.java
new file mode 100755
index 0000000..e1dcb23
--- /dev/null
+++ b/demos/MiscDemos/SharedGLTest2.java
@@ -0,0 +1,144 @@
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import gl4java.*;
+import gl4java.awt.*;
+
+public class SharedGLTest2 extends Applet
+ implements MouseListener
+{
+
+ MyCanvas canvas = null;
+ Button addButton = null;
+ int canvasNumber = 0;
+ Panel pAllCvs = null;
+ Dimension d = null;
+
+ public void init()
+ {
+ d = getSize();
+ setLayout(new BorderLayout());
+ addButton = new Button ("add gl");
+ addButton.addMouseListener(this);
+ add("South", addButton);
+
+ pAllCvs = new Panel();
+ pAllCvs.setLayout(new GridLayout(4,1));
+ add("Center", pAllCvs);
+
+ canvas = new MyCanvas (d.width/2, d.height/2, null);
+ pAllCvs.add(canvas);
+ canvasNumber=1;
+ }
+
+ public static void main( String args[] )
+ {
+ Frame mainFrame = new Frame("SharedGLTest2");
+
+ SharedGLTest2 applet = new SharedGLTest2();
+
+ applet.setSize(400, 400);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ }
+
+ public void start()
+ {
+ }
+
+
+ public void stop()
+ {
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+
+ if( canvas!=null && comp.equals(addButton) )
+ {
+ if(canvasNumber<4)
+ {
+ MyCanvas _canvas =
+ new MyCanvas (d.width/2,d.height/2,canvas.getGLContext());
+ pAllCvs.add(_canvas);
+ canvasNumber++;
+ pAllCvs.invalidate();
+ pAllCvs.validate();
+ if(canvasNumber==4)
+ addButton.setEnabled(false);
+ }
+ }
+ }
+
+ private static int callList=0;
+
+ protected class MyCanvas extends GLCanvas
+ {
+ public MyCanvas(int w, int h, GLContext shareWith)
+ {
+ super(w, h);
+ sharedGLContext = shareWith;
+ }
+
+ public void init()
+ {
+ if(sharedGLContext==null && callList==0)
+ {
+ buildCallList(); // Really build something only once.
+ }
+ }
+
+ public void display()
+ {
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ if(callList!=0)
+ gl.glCallList(callList);
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ /**
+ * Build only one call list for both GLCanvas.
+ */
+ protected void buildCallList()
+ {
+ callList = gl.glGenLists(1);
+
+ gl.glNewList(callList, gl.GL_COMPILE);
+ gl.glClearColor(1f, 0f, 0f, 1f);
+ gl.glClear(gl.GL_COLOR_BUFFER_BIT); // Clear the GLCanvas with red.
+ gl.glEndList();
+ }
+ }
+
+}
+
diff --git a/demos/MiscDemos/SharedGLTest2_plugin13.html b/demos/MiscDemos/SharedGLTest2_plugin13.html
new file mode 100644
index 0000000..75bb289
--- /dev/null
+++ b/demos/MiscDemos/SharedGLTest2_plugin13.html
@@ -0,0 +1,45 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 200 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "SharedGLTest2.class" WIDTH = 200 HEIGHT = 400 frames = "55" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "SharedGLTest2.class" WIDTH = 200 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "SharedGLTest2.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+<PARAM NAME = frames VALUE ="55">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "SharedGLTest2.class" WIDTH = 200 HEIGHT = 400>
+<PARAM NAME = frames VALUE ="55">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</BODY>
+</HTML>
+
diff --git a/demos/MiscDemos/TriangleRotate.html b/demos/MiscDemos/TriangleRotate.html
new file mode 100644
index 0000000..5dad555
--- /dev/null
+++ b/demos/MiscDemos/TriangleRotate.html
@@ -0,0 +1,14 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<applet code="TriangleRotate.class" width=500 height=300>
+<param name=frames value="55">
+</applet>
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/MiscDemos/TriangleRotate.java b/demos/MiscDemos/TriangleRotate.java
new file mode 100755
index 0000000..c2d93f7
--- /dev/null
+++ b/demos/MiscDemos/TriangleRotate.java
@@ -0,0 +1,139 @@
+/**
+ * @(#) TriangleRotate.java
+ * @(#) author: Joe Zimmerman (converted to Java by Sven Goethel)
+ */
+
+/* This program is free software under the license of LGPL */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+public class TriangleRotate extends SimpleGLAnimApplet1
+{
+
+ public void init()
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new gldemo(d.width, d.height);
+ add("Center", canvas);
+ }
+
+ public static void main( String args[] ) {
+ GLContext.gljNativeDebug = true;
+ GLContext.gljClassDebug = true;
+ TriangleRotate applet =
+ new TriangleRotate();
+
+ Frame f = new Frame("TriangleRotate");
+
+ f.addWindowListener( new WindowAdapter()
+ {
+ public void windowClosed(WindowEvent e)
+ {
+ System.exit(0);
+ }
+ public void windowClosing(WindowEvent e)
+ {
+ windowClosed(e);
+ }
+ }
+ );
+
+ f.setLayout(new BorderLayout());
+ f.add("Center", applet);
+ applet.setSize(500,300);
+ applet.init();
+ applet.start();
+ Dimension ps = applet.getPreferredSize();
+ f.setBounds(-100,-100,99,99);
+ f.setVisible(true);
+ f.setVisible(false);
+ Insets i = f.getInsets();
+ f.setBounds(0,0,
+ ps.width+i.left+i.right,
+ ps.height+i.top+i.bottom);
+ f.setVisible(true);
+ }
+
+ private class gldemo extends GLAnimCanvas
+ {
+ float rotate;
+
+ float LightAmbient[] = { 0.75f, 0.75f, 0.75f, 1.5f};
+ float LightDiffuse[] = { 1.0f, 1.0f, 1.0f, 0.9f};
+ float LightSpecular[] = { 0.8f, 0.8f, 0.8f, 1.0f};
+
+ public gldemo(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ setAnimateFps(30.0);
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ createOwnWindow = true;
+ }
+
+ public void init()
+ {
+ reshape(getSize().width, getSize().height);
+
+ gl.glEnable(GL_LIGHT0);
+ gl.glLightfv(GL_LIGHT0, GL_AMBIENT, LightAmbient);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, LightDiffuse);
+ gl.glLightfv(GL_LIGHT0, GL_SPECULAR, LightSpecular);
+
+ glj.gljCheckGL();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ glu.gluPerspective(45, (float)width/(float)height, 1, 700);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ gl.glViewport(0,0,width,height);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+
+ gl.glColor4f(1, 1, 1, 1);
+
+ rotate++;
+
+ gl.glTranslatef(0, 0, -10);
+ gl.glRotatef(rotate, 0, 1, 0);
+ gl.glBegin(GL_POLYGON);
+ gl.glNormal3f( 1, 0, 0);
+ gl.glVertex3f( 0, 1, 0);
+ gl.glVertex3f(-1, -1, 0);
+ gl.glVertex3f( 1, -1, 0);
+ gl.glEnd();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+ }
+}
diff --git a/demos/MiscDemos/TriangleRotate_plugin13.html b/demos/MiscDemos/TriangleRotate_plugin13.html
new file mode 100644
index 0000000..444fa8b
--- /dev/null
+++ b/demos/MiscDemos/TriangleRotate_plugin13.html
@@ -0,0 +1,46 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 500 HEIGHT = 300 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "TriangleRotate.class" WIDTH = 500 HEIGHT = 300 frames = "55" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "TriangleRotate.class" WIDTH = 500 HEIGHT = 300></XMP>
+<PARAM NAME = CODE VALUE = "TriangleRotate.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+<PARAM NAME = frames VALUE ="55">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "TriangleRotate.class" WIDTH = 500 HEIGHT = 300>
+<PARAM NAME = frames VALUE ="55">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/MiscDemos/accanti.html b/demos/MiscDemos/accanti.html
new file mode 100644
index 0000000..9730abd
--- /dev/null
+++ b/demos/MiscDemos/accanti.html
@@ -0,0 +1,17 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>OpenGL Demo - ported by Sven Goethel</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Teapots applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Sven Goethel
+<br>
+<applet code="accanti.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/MiscDemos/accanti.java b/demos/MiscDemos/accanti.java
new file mode 100644
index 0000000..3191452
--- /dev/null
+++ b/demos/MiscDemos/accanti.java
@@ -0,0 +1,258 @@
+/**
+ * @(#) accanti.java
+ * @(#) author: Silicon Graphics, Inc. (converted to Java by Sven Goethel)
+ */
+
+/*
+ * This program demonstrates lots of material properties.
+ * A single light source illuminates the objects.
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+
+import gl4java.utils.glut.*;
+
+public class accanti extends Applet
+{
+ accantiCanvas canvas = null;
+
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new accantiCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Start the applet */
+
+
+ public void start()
+ {
+ }
+
+
+ /* Stop the applet */
+
+
+ public void stop()
+ {
+ }
+
+ public static void main( String args[] ) {
+ GLContext.gljNativeDebug = true;
+ GLContext.gljClassDebug = true;
+
+ accanti applet =
+ new accanti();
+
+ Frame f = new Frame("accanti");
+
+ f.addWindowListener( new WindowAdapter()
+ {
+ public void windowClosed(WindowEvent e)
+ {
+ System.exit(0);
+ }
+ public void windowClosing(WindowEvent e)
+ {
+ windowClosed(e);
+ }
+ }
+ );
+
+ f.setLayout(new BorderLayout());
+ f.add("Center", applet);
+ applet.setSize(500,300);
+ applet.init();
+ applet.start();
+ Dimension ps = applet.getPreferredSize();
+ f.setBounds(-100,-100,99,99);
+ f.setVisible(true);
+ f.setVisible(false);
+ Insets i = f.getInsets();
+ f.setBounds(0,0,
+ ps.width+i.left+i.right,
+ ps.height+i.top+i.bottom);
+ f.setVisible(true);
+ }
+
+ /* Local GLCanvas extension class */
+
+
+ private class accantiCanvas extends GLCanvas
+ {
+ int teapotList;
+ GLUTFunc glut = null;
+
+ public accantiCanvas(int w, int h)
+ {
+ super(w, h);
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ accumSize = 8;
+ }
+
+
+ boolean hasAccumulatorBits = false;
+
+ public void init()
+ {
+ int aRbits[] = { 0 };
+ int aGbits[] = { 0 };
+ int aBbits[] = { 0 };
+ int aAbits[] = { 0 };
+
+ glut = new GLUTFuncLightImpl(gl, glu);
+
+ reshape(getSize().width, getSize().height);
+
+ float mat_ambient[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ float mat_specular[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ float light_position[] = { 0.0f, 0.0f, 10.0f, 1.0f };
+ float lm_ambient[] = { 0.2f, 0.2f, 0.2f, 1.0f };
+
+ gl.glGetIntegerv(GL_ACCUM_RED_BITS, aRbits);
+ gl.glGetIntegerv(GL_ACCUM_GREEN_BITS, aGbits);
+ gl.glGetIntegerv(GL_ACCUM_BLUE_BITS, aBbits);
+ gl.glGetIntegerv(GL_ACCUM_ALPHA_BITS, aAbits);
+
+ System.out.println("Accumulation Buffer Bits:");
+ System.out.println("\t red: "+aRbits[0]);
+ System.out.println("\t green: "+aGbits[0]);
+ System.out.println("\t blue: "+aBbits[0]);
+ System.out.println("\t alpha: "+aAbits[0]);
+
+ hasAccumulatorBits = aRbits[0] > 0 || aGbits[0] > 0 ||
+ aBbits[0] > 0 || aAbits[0] > 0 ;
+
+ System.out.println("Has Accumulator Bits: "+hasAccumulatorBits);
+
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, mat_ambient);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular);
+ gl.glMaterialf(GL_FRONT, GL_SHININESS, 50.0f);
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, light_position);
+ gl.glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lm_ambient);
+
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glDepthFunc(GL_LESS);
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glShadeModel (GL_FLAT);
+
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+ gl.glClearAccum(0.0f, 0.0f, 0.0f, 0.0f);
+ }
+
+ void displayObjects()
+ {
+ float torus_diffuse[] = { 0.7f, 0.7f, 0.0f, 1.0f };
+ float cube_diffuse[] = { 0.0f, 0.7f, 0.7f, 1.0f };
+ float sphere_diffuse[] = { 0.7f, 0.0f, 0.7f, 1.0f };
+ float octa_diffuse[] = { 0.7f, 0.4f, 0.4f, 1.0f };
+
+ gl.glPushMatrix ();
+ gl.glRotatef (30.0f, 1.0f, 0.0f, 0.0f);
+
+ gl.glPushMatrix ();
+ gl.glTranslatef (-0.80f, 0.35f, 0.0f);
+ gl.glRotatef (100.0f, 1.0f, 0.0f, 0.0f);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, torus_diffuse);
+ glut.glutSolidTorus (0.275f, 0.85f, 16, 16);
+ gl.glPopMatrix ();
+
+ gl.glPushMatrix ();
+ gl.glTranslatef (-0.75f, -0.50f, 0.0f);
+ gl.glRotatef (45.0f, 0.0f, 0.0f, 1.0f);
+ gl.glRotatef (45.0f, 1.0f, 0.0f, 0.0f);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, cube_diffuse);
+ glut.glutSolidCube (1.5f);
+ gl.glPopMatrix ();
+
+ gl.glPushMatrix ();
+ gl.glTranslatef (0.75f, 0.60f, 0.0f);
+ gl.glRotatef (30.0f, 1.0f, 0.0f, 0.0f);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, sphere_diffuse);
+ glut.glutSolidSphere (1.0f, 16, 16);
+ gl.glPopMatrix ();
+
+ gl.glPushMatrix ();
+ gl.glTranslatef (0.70f, -0.90f, 0.25f);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, octa_diffuse);
+ glut.glutSolidOctahedron ();
+ gl.glPopMatrix ();
+
+ gl.glPopMatrix ();
+ }
+
+ public void display()
+ {
+ int viewport[]=new int[4];
+ int jitter;
+ int ACSIZE=8;
+
+ if (glj.gljMakeCurrent() == false) return;
+
+ gl.glGetIntegerv (GL_VIEWPORT, viewport);
+ glj.gljCheckGL();
+
+ if(hasAccumulatorBits)
+ gl.glClear(GL_ACCUM_BUFFER_BIT);
+ glj.gljCheckGL();
+
+ for (jitter = 0; jitter < ACSIZE; jitter++) {
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ gl.glPushMatrix ();
+
+ /* Note that 4.5f is the distance in world space between
+ * left and right and bottom and top.
+ * This formula converts fractional pixel movement to
+ * world coordinates.
+ */
+ gl.glTranslatef (/*j8[jitter].x**/4.5f/viewport[2],
+ /*j8[jitter].y**/4.5f/viewport[3], 0.0f);
+ displayObjects ();
+ gl.glPopMatrix ();
+ if(hasAccumulatorBits)
+ gl.glAccum(GL_ACCUM, 1.0f/(float)ACSIZE);
+ glj.gljCheckGL();
+ }
+ if(hasAccumulatorBits)
+ gl.glAccum (GL_RETURN, 1.0f);
+ glj.gljCheckGL();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ public void reshape(int w, int h)
+ {
+ gl.glViewport(0, 0, w, h);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ if (w <= h)
+ gl.glOrtho (-2.25f, 2.25f, -2.25f*h/w, 2.25f*h/w, -10.0f, 10.0f);
+ else
+ gl.glOrtho (-2.25f*w/h, 2.25f*w/h, -2.25f, 2.25f, -10.0f, 10.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+ }
+}
diff --git a/demos/MiscDemos/accanti_plugin13.html b/demos/MiscDemos/accanti_plugin13.html
new file mode 100644
index 0000000..0a1597d
--- /dev/null
+++ b/demos/MiscDemos/accanti_plugin13.html
@@ -0,0 +1,48 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>OpenGL Demo - ported by Sven Goethel</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Teapots applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Sven Goethel
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "accanti.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "accanti.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "accanti.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "accanti.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/MiscDemos/alpha3D.html b/demos/MiscDemos/alpha3D.html
new file mode 100644
index 0000000..43e5aaf
--- /dev/null
+++ b/demos/MiscDemos/alpha3D.html
@@ -0,0 +1,17 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>OpenGL Demo - ported by Sven Goethel</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Teapots applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Sven Goethel
+<br>
+<applet code="alpha3D.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/MiscDemos/alpha3D.java b/demos/MiscDemos/alpha3D.java
new file mode 100644
index 0000000..a982375
--- /dev/null
+++ b/demos/MiscDemos/alpha3D.java
@@ -0,0 +1,287 @@
+/**
+ * @(#) alpha3D.java
+ * @(#) author: Silicon Graphics, Inc. (converted to Java by Sven Goethel)
+ */
+
+/*
+ * This program demonstrates lots of material properties.
+ * A single light source illuminates the objects.
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+import gl4java.utils.glut.*;
+
+public class alpha3D extends SimpleGLAnimApplet1
+{
+ static final float MAXZ = 8.0f;
+ static final float MINZ = -8.0f;
+ static final float ZINC = 0.4f;
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new alpha3DCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ public static void main( String args[] ) {
+ alpha3D applet =
+ new alpha3D();
+
+ Frame f = new Frame("alpha3D");
+
+ f.addWindowListener( new WindowAdapter()
+ {
+ public void windowClosed(WindowEvent e)
+ {
+ System.exit(0);
+ }
+ public void windowClosing(WindowEvent e)
+ {
+ windowClosed(e);
+ }
+ }
+ );
+
+ f.setLayout(new BorderLayout());
+ f.add("Center", applet);
+ applet.setSize(500,300);
+ applet.init();
+ applet.start();
+ Dimension ps = applet.getPreferredSize();
+ f.setBounds(-100,-100,99,99);
+ f.setVisible(true);
+ f.setVisible(false);
+ Insets i = f.getInsets();
+ f.setBounds(0,0,
+ ps.width+i.left+i.right,
+ ps.height+i.top+i.bottom);
+ f.setVisible(true);
+ }
+ /* Local GLCanvas extension class */
+
+
+ private class alpha3DCanvas extends GLAnimCanvas
+ implements MouseListener, ActionListener
+ {
+ private PopupMenu menu = null;
+ private boolean menu_showing = false;
+ private boolean save_suspended = false;
+ private final String MENUE_0 = "Alpha Mode";
+ private final String MENUE_1 = "Real Mode";
+
+ GLUTFunc glut = null;
+
+ float solidZ = MAXZ;
+ float transparentZ = MINZ;
+ int sphereList, cubeList;
+
+ public alpha3DCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ setAnimateFps(30.0);
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+
+ public void init()
+ {
+ glut = new GLUTFuncLightImpl(gl, glu);
+
+ reshape(getSize().width, getSize().height);
+
+ float mat_specular[] = { 1.0f, 1.0f, 1.0f, 0.15f };
+ float mat_shininess[] = { 100.0f };
+ float position[] = { 0.5f, 0.5f, 1.0f, 0.0f };
+
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, mat_shininess);
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, position);
+
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_DEPTH_TEST);
+
+ sphereList = gl.glGenLists(1);
+ gl.glNewList(sphereList, GL_COMPILE);
+ glut.glutSolidSphere (0.4f, 16, 16);
+ gl.glEndList();
+
+ cubeList = gl.glGenLists(1);
+ gl.glNewList(cubeList, GL_COMPILE);
+ glut.glutSolidCube (0.6f);
+ gl.glEndList();
+
+ menu = new PopupMenu("Options");
+ menu.add(MENUE_0);
+ menu.add(MENUE_1);
+ menu.addActionListener(this);
+ add(menu);
+
+ addMouseListener(this);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ float mat_solid[] = { 0.75f, 0.75f, 0.0f, 1.0f };
+ float mat_zero[] = { 0.0f, 0.0f, 0.0f, 1.0f };
+ float mat_transparent[] = { 0.0f, 0.8f, 0.8f, 0.6f };
+ float mat_emission[] = { 0.0f, 0.3f, 0.3f, 0.6f };
+
+ gl.glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ gl.glPushMatrix ();
+ gl.glTranslatef (-0.15f, -0.15f, solidZ);
+ gl.glMaterialfv(GL_FRONT, GL_EMISSION, mat_zero);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_solid);
+ gl.glCallList (sphereList);
+ gl.glPopMatrix ();
+
+ gl.glPushMatrix ();
+ gl.glTranslatef (0.15f, 0.15f, transparentZ);
+ gl.glRotatef (15.0f, 1.0f, 1.0f, 0.0f);
+ gl.glRotatef (30.0f, 0.0f, 1.0f, 0.0f);
+ gl.glMaterialfv(GL_FRONT, GL_EMISSION, mat_emission);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_transparent);
+ gl.glEnable (GL_BLEND);
+ gl.glDepthMask (GL_FALSE);
+ gl.glBlendFunc (GL_SRC_ALPHA, GL_ONE);
+ gl.glCallList (cubeList);
+ gl.glDepthMask (GL_TRUE);
+ gl.glDisable (GL_BLEND);
+ gl.glPopMatrix ();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+
+ animate();
+ }
+
+ public void reshape(int w, int h)
+ {
+ gl.glViewport(0, 0, (int) w, (int) h);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ if (w <= h)
+ gl.glOrtho (-1.5f, 1.5f, -1.5f*(float)h/(float)w,
+ 1.5f*(float)h/(float)w, -10.0f, 10.0f);
+ else
+ gl.glOrtho (-1.5f*(float)w/(float)h,
+ 1.5f*(float)w/(float)h, -1.5f, 1.5f, -10.0f, 10.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ }
+
+ void animate()
+ {
+ if (solidZ <= MINZ || transparentZ >= MAXZ)
+ setSuspended(true);
+ else {
+ solidZ -= ZINC;
+ transparentZ += ZINC;
+ }
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered(MouseEvent evt)
+ {
+ }
+
+ public void mouseExited(MouseEvent evt)
+ {
+ }
+
+ public void mousePressed(MouseEvent evt)
+ {
+ if (!menu_showing)
+ {
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ menu_showing = true;
+ save_suspended = isSuspended();
+ if (!save_suspended)
+ {
+ setSuspended(true);
+ repaint(100);
+ try
+ {
+ Thread.currentThread().sleep(200);
+ }
+ catch (Exception e)
+ { }
+ }
+ menu.show(this,evt.getX(),evt.getY());
+ }
+ else
+ {
+ // Must be left button.
+ if (isSuspended()) repaint();
+ }
+ }
+ else
+ {
+ menu_showing = false;
+ setSuspended(save_suspended);
+ }
+ }
+
+ public void mouseReleased(MouseEvent evt)
+ {
+ }
+
+ public void mouseClicked(MouseEvent evt)
+ {
+ }
+
+ // Method required for the implementation of ActionListener
+ public void actionPerformed(ActionEvent evt)
+ {
+ String c = evt.getActionCommand();
+ if (c.equals(MENUE_0))
+ {
+ solidZ = MAXZ;
+ transparentZ = MINZ;
+ setSuspended(false);
+ return ;
+ }
+ else if (c.equals(MENUE_1))
+ {
+ solidZ = MAXZ;
+ transparentZ = MINZ;
+ setSuspended(true);
+ repaint();
+ }
+ if (menu_showing)
+ {
+ menu_showing = false;
+ setSuspended(save_suspended);
+ }
+ }
+ }
+}
diff --git a/demos/MiscDemos/alpha3D_plugin13.html b/demos/MiscDemos/alpha3D_plugin13.html
new file mode 100644
index 0000000..5b0e6b7
--- /dev/null
+++ b/demos/MiscDemos/alpha3D_plugin13.html
@@ -0,0 +1,48 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>OpenGL Demo - ported by Sven Goethel</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Teapots applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Sven Goethel
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "alpha3D.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "alpha3D.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "alpha3D.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "alpha3D.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/MiscDemos/anti.html b/demos/MiscDemos/anti.html
new file mode 100644
index 0000000..95146a3
--- /dev/null
+++ b/demos/MiscDemos/anti.html
@@ -0,0 +1,17 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>OpenGL Demo - ported by Sven Goethel</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Teapots applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Sven Goethel
+<br>
+<applet code="anti.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/MiscDemos/anti.java b/demos/MiscDemos/anti.java
new file mode 100644
index 0000000..eafb66a
--- /dev/null
+++ b/demos/MiscDemos/anti.java
@@ -0,0 +1,162 @@
+/**
+ * @(#) anti.java
+ * @(#) author: Silicon Graphics, Inc. (converted to Java by Ron Cemer)
+ */
+
+/*
+ * This program demonstrates lots of material properties.
+ * A single light source illuminates the objects.
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+
+import gl4java.utils.glut.*;
+
+public class anti extends Applet
+{
+ antiCanvas canvas = null;
+
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new antiCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Start the applet */
+
+
+ public void start()
+ {
+ }
+
+
+ /* Stop the applet */
+
+
+ public void stop()
+ {
+ }
+
+ public static void main( String args[] ) {
+ anti applet =
+ new anti();
+
+ Frame f = new Frame("anti");
+
+ f.addWindowListener( new WindowAdapter()
+ {
+ public void windowClosed(WindowEvent e)
+ {
+ System.exit(0);
+ }
+ public void windowClosing(WindowEvent e)
+ {
+ windowClosed(e);
+ }
+ }
+ );
+
+ f.setLayout(new BorderLayout());
+ f.add("Center", applet);
+ applet.setSize(500,300);
+ applet.init();
+ applet.start();
+ Dimension ps = applet.getPreferredSize();
+ f.setBounds(-100,-100,99,99);
+ f.setVisible(true);
+ f.setVisible(false);
+ Insets i = f.getInsets();
+ f.setBounds(0,0,
+ ps.width+i.left+i.right,
+ ps.height+i.top+i.bottom);
+ f.setVisible(true);
+ }
+ /* Local GLCanvas extension class */
+
+
+ private class antiCanvas extends GLCanvas
+ {
+ GLUTFunc glut = null;
+
+ public antiCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+/* Initialize antialia(float)Math.sing for RGBA mode, including alpha
+ * blending, hint, and line width. Print out implementation
+ * specific info on line width granularity and width.
+ */
+ public void init()
+ {
+ glut = new GLUTFuncLightImpl(gl, glu);
+
+ reshape(getSize().width, getSize().height);
+
+ float values[]=new float[2];
+ gl.glGetFloatv (GL_LINE_WIDTH_GRANULARITY, values);
+ System.out.println("GL_LINE_WIDTH_GRANULARITY value is "+values[0]);
+
+ gl.glGetFloatv (GL_LINE_WIDTH_RANGE, values);
+ System.out.println("GL_LINE_WIDTH_RANGE values are "+
+ values[0] + ", " +values[1]);
+
+ gl.glEnable (GL_LINE_SMOOTH);
+ gl.glEnable (GL_BLEND);
+ gl.glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+ gl.glHint (GL_LINE_SMOOTH_HINT, GL_DONT_CARE);
+ gl.glLineWidth (1.5f);
+
+ gl.glShadeModel(GL_FLAT);
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+ gl.glDepthFunc(GL_LESS);
+ gl.glEnable(GL_DEPTH_TEST);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ gl.glColor4f (1.0f, 1.0f, 1.0f, 1.0f);
+ glut.glutWireIcosahedron();
+ glj.gljSwap();
+ glj.gljFree();
+ }
+
+ public void reshape(int w, int h)
+ {
+ gl.glViewport(0, 0, w, h);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ glu.gluPerspective (45.0f, (float) w/(float) h, 3.0f, 5.0f);
+
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity ();
+ gl.glTranslatef (0.0f, 0.0f, -4.0f); /* move object into view */
+ }
+ }
+}
+
diff --git a/demos/MiscDemos/anti_plugin13.html b/demos/MiscDemos/anti_plugin13.html
new file mode 100644
index 0000000..1800131
--- /dev/null
+++ b/demos/MiscDemos/anti_plugin13.html
@@ -0,0 +1,48 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>OpenGL Demo - ported by Sven Goethel</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Teapots applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Sven Goethel
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "anti.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "anti.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "anti.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "anti.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/MiscDemos/coloredCross.java b/demos/MiscDemos/coloredCross.java
new file mode 100644
index 0000000..52cab5b
--- /dev/null
+++ b/demos/MiscDemos/coloredCross.java
@@ -0,0 +1,111 @@
+import gl4java.awt.*;
+import java.applet.*;
+import java.awt.*;
+import java.awt.Dimension;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import gl4java.*;
+
+public class coloredCross extends Applet
+{
+ MyCanvas canvas = null;
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new MyCanvas (d.width, d.height);
+ add("Center", canvas);
+ }
+
+ public static void main( String args[] )
+ {
+ Frame mainFrame = new Frame("coloredCross");
+
+ coloredCross applet = new coloredCross();
+
+ applet.setSize(400, 400);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ }
+
+ public void start()
+ {
+ }
+
+
+ public void stop()
+ {
+ }
+
+ protected class MyCanvas extends GLCanvas
+ {
+ public MyCanvas(int w, int h) {
+ super(w,h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void init() {
+ reshape(getSize().width, getSize().height);
+ }
+
+ public void display()
+ {
+ /* Standard GL4Java Init */
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ System.out.println("display()");
+
+ gl.glPushMatrix();
+ gl.glClear(GL_COLOR_BUFFER_BIT);
+
+ gl.glBegin(GLEnum.GL_LINES);
+ gl.glColor4f(0f, 0f, 1f, 1f);
+ gl.glVertex3i( 0, 0, 0);
+ gl.glVertex3i( 10, 10, 0);
+
+ gl.glColor4f(0f, 1f, 0f, 1f);
+ gl.glVertex3i( 0, 10, 0);
+ gl.glVertex3i( 10, 0, 0);
+
+ gl.glColor4f(1f, 0f, 0f, 1f);
+ gl.glVertex3i( 0, 5, 0);
+ gl.glVertex3i( 10, 5, 0);
+
+ gl.glColor4f(1f, 1f, 1f, 1f);
+ gl.glVertex3i( 5, 0, 0);
+ gl.glVertex3i( 5, 10, 0);
+ gl.glEnd();
+
+ gl.glPopMatrix();
+
+ /* For your animation dutys ;-) */
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+
+ System.out.println("display() done");
+
+ }
+
+ public void reshape( int width, int height )
+ {
+ gl.glViewport(0, 0, width, height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ gl.glOrtho(0, 10, 0, 10, -50.0,50.0);
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+ }
+}
diff --git a/demos/MiscDemos/depthcue.html b/demos/MiscDemos/depthcue.html
new file mode 100644
index 0000000..53cba75
--- /dev/null
+++ b/demos/MiscDemos/depthcue.html
@@ -0,0 +1,17 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>OpenGL Demo - ported by Sven Goethel</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Teapots applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Sven Goethel
+<br>
+<applet code="depthcue.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/MiscDemos/depthcue.java b/demos/MiscDemos/depthcue.java
new file mode 100644
index 0000000..3b6f04b
--- /dev/null
+++ b/demos/MiscDemos/depthcue.java
@@ -0,0 +1,140 @@
+/**
+ * @(#) depthcue.java
+ * @(#) author: Silicon Graphics, Inc. (converted to Java by Ron Cemer)
+ */
+
+/*
+ * This program demonstrates lots of material properties.
+ * A single light source illuminates the objects.
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+
+import gl4java.utils.glut.*;
+
+public class depthcue extends Applet
+{
+ depthcueCanvas canvas = null;
+
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new depthcueCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Start the applet */
+
+
+ public void start()
+ {
+ }
+
+
+ /* Stop the applet */
+
+
+ public void stop()
+ {
+ }
+
+ public static void main( String args[] )
+ {
+ Frame mainFrame = new Frame("teapots");
+
+ depthcue applet = new depthcue();
+
+ applet.setSize(400, 400);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ }
+
+
+ /* Local GLCanvas extension class */
+
+
+ private class depthcueCanvas extends GLCanvas
+ {
+ GLUTFunc glut = null;
+
+ public depthcueCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+/* Initialize depthcuealia(float)Math.sing for RGBA mode, including alpha
+ * blending, hint, and line width. Print out implementation
+ * specific info on line width granularity and width.
+ */
+ public void init()
+ {
+ glut = new GLUTFuncLightImpl(gl, glu);
+
+ reshape(getSize().width, getSize().height);
+
+ float fogColor[] = {0.0f, 0.0f, 0.0f, 1.0f};
+
+ gl.glEnable(GL_FOG);
+ gl.glFogi (GL_FOG_MODE, GL_LINEAR);
+ gl.glHint (GL_FOG_HINT, GL_NICEST); /* per pixel */
+ gl.glFogf (GL_FOG_START, 3.0f);
+ gl.glFogf (GL_FOG_END, 5.0f);
+ gl.glFogfv (GL_FOG_COLOR, fogColor);
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
+
+ gl.glShadeModel(GL_FLAT);
+ gl.glDepthFunc(GL_LESS);
+ gl.glEnable(GL_DEPTH_TEST);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ gl.glColor3f (1.0f, 1.0f, 1.0f);
+ glut.glutWireIcosahedron();
+ glj.gljSwap();
+ glj.gljFree();
+ }
+
+ public void reshape(int w, int h)
+ {
+ gl.glViewport(0, 0, w, h);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ glu.gluPerspective (45.0f, (float) w/(float) h, 3.0f, 5.0f);
+
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity ();
+ gl.glTranslatef (0.0f, 0.0f, -4.0f); /* move object into view */
+ }
+ }
+}
+
diff --git a/demos/MiscDemos/depthcue_plugin13.html b/demos/MiscDemos/depthcue_plugin13.html
new file mode 100644
index 0000000..a4b4a9e
--- /dev/null
+++ b/demos/MiscDemos/depthcue_plugin13.html
@@ -0,0 +1,48 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>OpenGL Demo - ported by Sven Goethel</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Teapots applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Sven Goethel
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "depthcue.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "depthcue.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "depthcue.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "depthcue.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/MiscDemos/gears.html b/demos/MiscDemos/gears.html
new file mode 100644
index 0000000..56ebd8e
--- /dev/null
+++ b/demos/MiscDemos/gears.html
@@ -0,0 +1,13 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<applet code="gears.class" width=550 height=400>
+<param name=frames value="55">
+</applet>
+<hr>
+</BODY>
+</HTML>
+
diff --git a/demos/MiscDemos/gears.java b/demos/MiscDemos/gears.java
new file mode 100644
index 0000000..b61d711
--- /dev/null
+++ b/demos/MiscDemos/gears.java
@@ -0,0 +1,437 @@
+/**
+ * @(#) gears.java
+ * @(#) author: Brian Paul (converted to Java by Ron Cemer and Sven Goethel)
+ *
+ * This version is equal to Brian Paul's version 1.2 1999/10/21
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.GLEnum;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+public class gears extends SimpleGLAnimApplet1
+{
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ init(false);
+ }
+
+ public void init(boolean showGL)
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new gearsCanvas(showGL, d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ public static void main( String args[] )
+ {
+ int i = 0;
+ String glLib = null;
+ String gluLib = null;
+ boolean perftest=false;
+
+ while(args.length>i)
+ {
+ if(args[i].equals("-perftest"))
+ {
+ perftest=true;
+ } else if(args[i].equals("-glLib"))
+ {
+ i++;
+ if(args.length>i)
+ glLib=args[i];
+ } else if(args[i].equals("-gluLib"))
+ {
+ i++;
+ if(args.length>i)
+ gluLib=args[i];
+ } else {
+ System.out.println("illegal arg "+i+": "+args[i]);
+ }
+ i++;
+ }
+
+ if(!perftest)
+ {
+ GLContext.gljNativeDebug = true;
+ GLContext.gljClassDebug = true;
+ }
+
+ System.out.println("loading libs(gl, glu): "+
+ glLib+", "+gluLib+": "+
+ GLContext.loadNativeLibraries(null, glLib, gluLib));
+
+ Frame mainFrame = new Frame("gears");
+
+ gears applet = new gears();
+
+ applet.setSize(300, 300);
+ applet.init(true);
+
+ if(perftest)
+ {
+ applet.canvas.setUseFpsSleep(false);
+ applet.canvas.setUseRepaint(false);
+ System.out.println("useFpsSleep: "+
+ applet.canvas.getUseFpsSleep());
+ System.out.println("useRepaint: "+
+ applet.canvas.getUseRepaint());
+ }
+
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ }
+
+
+ /* Local GLAnimCanvas extension class */
+
+
+ private class gearsCanvas extends GLAnimCanvas implements MouseListener, MouseMotionListener
+ {
+ private static final float M_PI = 3.14159265f;
+
+ private long T0 = 0;
+ private long Frames = 0;
+
+ private float view_rotx = 20.0f, view_roty = 30.0f, view_rotz = 0.0f;
+ private int gear1, gear2, gear3;
+ private float angle = 0.0f;
+
+ private int prevMouseX, prevMouseY;
+ private boolean mouseRButtonDown = false;
+
+ private boolean showGL = false;
+
+ public gearsCanvas(int w, int h)
+ {
+ this(false, w, h);
+ }
+
+ public gearsCanvas(boolean showGL, int w, int h)
+ {
+ super(w, h);
+ setAnimateFps(30.0);
+
+ this.showGL=showGL;
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ reshape(getSize().width, getSize().height);
+
+ float pos[] = { 5.0f, 5.0f, 10.0f, 0.0f };
+ float red[] = { 0.8f, 0.1f, 0.0f, 1.0f };
+ float green[] = { 0.0f, 0.8f, 0.2f, 1.0f };
+ float blue[] = { 0.2f, 0.2f, 1.0f, 1.0f };
+
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, pos);
+ gl.glEnable(GL_CULL_FACE);
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_DEPTH_TEST);
+
+ /* make the gears */
+ gear1 = gl.glGenLists(1);
+ gl.glNewList(gear1, GL_COMPILE);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, red);
+ gear(1.0f, 4.0f, 1.0f, 20, 0.7f);
+ gl.glEndList();
+
+ gear2 = gl.glGenLists(1);
+ gl.glNewList(gear2, GL_COMPILE);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, green);
+ gear(0.5f, 2.0f, 2.0f, 10, 0.7f);
+ gl.glEndList();
+
+ gear3 = gl.glGenLists(1);
+ gl.glNewList(gear3, GL_COMPILE);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, blue);
+ gear(1.3f, 2.0f, 0.5f, 10, 0.7f);
+ gl.glEndList();
+
+ gl.glEnable(GL_NORMALIZE);
+
+ glj.gljCheckGL();
+
+ addMouseListener(this);
+ addMouseMotionListener(this);
+
+ T0=System.currentTimeMillis();
+ }
+
+ public void doCleanup()
+ {
+ System.out.println("destroy(): " + this);
+ removeMouseListener(this);
+ removeMouseMotionListener(this);
+ }
+
+ public void reshape(int width, int height)
+ {
+ float h = (float)height / (float)width;
+
+ gl.glViewport(0,0,width,height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ gl.glFrustum(-1.0f, 1.0f, -h, h, 5.0f, 60.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ gl.glTranslatef(0.0f, 0.0f, -40.0f);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ if(showGL)
+ {
+ showGL=false;
+ System.out.println("GL VERSION : "+gl.glGetString(GL_VERSION));
+ System.out.println("GL RENDERER: "+gl.glGetString(GL_RENDERER));
+ System.out.println("GL VENDOR : "+gl.glGetString(GL_VENDOR));
+ }
+
+ angle += 2.0f;
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ gl.glPushMatrix();
+ gl.glRotatef(view_rotx, 1.0f, 0.0f, 0.0f);
+ gl.glRotatef(view_roty, 0.0f, 1.0f, 0.0f);
+ gl.glRotatef(view_rotz, 0.0f, 0.0f, 1.0f);
+
+ gl.glPushMatrix();
+ gl.glTranslatef(-3.0f, -2.0f, 0.0f);
+ gl.glRotatef(angle, 0.0f, 0.0f, 1.0f);
+ gl.glCallList(gear1);
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glTranslatef(3.1f, -2.0f, 0.0f);
+ gl.glRotatef(-2.0f * angle - 9.0f, 0.0f, 0.0f, 1.0f);
+ gl.glCallList(gear2);
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glTranslatef(-3.1f, 4.2f, 0.0f);
+ gl.glRotatef(-2.0f * angle - 25.0f, 0.0f, 0.0f, 1.0f);
+ gl.glCallList(gear3);
+ gl.glPopMatrix();
+
+ gl.glPopMatrix();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+
+ Frames++;
+
+ long t=System.currentTimeMillis();
+ if(t - T0 >= 5000)
+ {
+ double seconds = (double)(t - T0) / 1000.0;
+ double fps = (double)Frames / seconds;
+ System.out.println(Frames+" frames in "+seconds+" seconds = "+
+ fps+" FPS");
+ T0 = t;
+ Frames = 0;
+ }
+ }
+
+ private void gear
+ (float inner_radius,
+ float outer_radius,
+ float width,
+ int teeth,
+ float tooth_depth)
+ {
+ int i;
+ float r0, r1, r2;
+ float angle, da;
+ float u, v, len;
+
+ r0 = inner_radius;
+ r1 = outer_radius - tooth_depth / 2.0f;
+ r2 = outer_radius + tooth_depth / 2.0f;
+
+ da = 2.0f * M_PI / teeth / 4.0f;
+
+ gl.glShadeModel(GL_FLAT);
+
+ gl.glNormal3f(0.0f, 0.0f, 1.0f);
+
+ /* draw front face */
+ gl.glBegin(GL_QUAD_STRIP);
+ for (i = 0; i <= teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), width * 0.5f);
+ if(i < teeth)
+ {
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3.0f * da), r1 * (float)Math.sin(angle + 3.0f * da), width * 0.5f);
+ }
+ }
+ gl.glEnd();
+
+ /* draw front sides of teeth */
+ gl.glBegin(GL_QUADS);
+ for (i = 0; i < teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + da), r2 * (float)Math.sin(angle + da), width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + 2.0f * da), r2 * (float)Math.sin(angle + 2.0f * da), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3.0f * da), r1 * (float)Math.sin(angle + 3.0f * da), width * 0.5f);
+ }
+ gl.glEnd();
+
+ /* draw back face */
+ gl.glBegin(GL_QUAD_STRIP);
+ for (i = 0; i <= teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), -width * 0.5f);
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), -width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3 * da), r1 * (float)Math.sin(angle + 3 * da), -width * 0.5f);
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), -width * 0.5f);
+ }
+ gl.glEnd();
+
+ /* draw back sides of teeth */
+ gl.glBegin(GL_QUADS);
+ for (i = 0; i < teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3 * da), r1 * (float)Math.sin(angle + 3 * da), -width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + 2 * da), r2 * (float)Math.sin(angle + 2 * da), -width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + da), r2 * (float)Math.sin(angle + da), -width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), -width * 0.5f);
+ }
+ gl.glEnd();
+
+ /* draw outward faces of teeth */
+ gl.glBegin(GL_QUAD_STRIP);
+ for (i = 0; i < teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), -width * 0.5f);
+ u = r2 * (float)Math.cos(angle + da) - r1 * (float)Math.cos(angle);
+ v = r2 * (float)Math.sin(angle + da) - r1 * (float)Math.sin(angle);
+ len = (float)Math.sqrt(u * u + v * v);
+ u /= len;
+ v /= len;
+ gl.glNormal3f(v, -u, 0.0f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + da), r2 * (float)Math.sin(angle + da), width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + da), r2 * (float)Math.sin(angle + da), -width * 0.5f);
+ gl.glNormal3f((float)Math.cos(angle), (float)Math.sin(angle), 0.0f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + 2 * da), r2 * (float)Math.sin(angle + 2 * da), width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + 2 * da), r2 * (float)Math.sin(angle + 2 * da), -width * 0.5f);
+ u = r1 * (float)Math.cos(angle + 3 * da) - r2 * (float)Math.cos(angle + 2 * da);
+ v = r1 * (float)Math.sin(angle + 3 * da) - r2 * (float)Math.sin(angle + 2 * da);
+ gl.glNormal3f(v, -u, 0.0f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3 * da), r1 * (float)Math.sin(angle + 3 * da), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3 * da), r1 * (float)Math.sin(angle + 3 * da), -width * 0.5f);
+ gl.glNormal3f((float)Math.cos(angle), (float)Math.sin(angle), 0.0f);
+ }
+ gl.glVertex3f(r1 * (float)Math.cos(0), r1 * (float)Math.sin(0), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(0), r1 * (float)Math.sin(0), -width * 0.5f);
+ gl.glEnd();
+
+ gl.glShadeModel(GL_SMOOTH);
+
+ /* draw inside radius cylinder */
+ gl.glBegin(GL_QUAD_STRIP);
+ for (i = 0; i <= teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glNormal3f(-(float)Math.cos(angle), -(float)Math.sin(angle), 0.0f);
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), -width * 0.5f);
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), width * 0.5f);
+ }
+ gl.glEnd();
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ prevMouseX = evt.getX();
+ prevMouseY = evt.getY();
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ mouseRButtonDown = true;
+ evt.consume();
+ }
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ mouseRButtonDown = false;
+ evt.consume();
+ }
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ }
+
+ // Methods required for the implementation of MouseMotionListener
+ public void mouseDragged( MouseEvent evt )
+ {
+ int x = evt.getX();
+ int y = evt.getY();
+ Dimension size = getSize();
+
+ float thetaY = 360.0f * ( (float)(x-prevMouseX)/(float)size.width);
+ float thetaX = 360.0f * ( (float)(prevMouseY-y)/(float)size.height);
+
+ prevMouseX = x;
+ prevMouseY = y;
+
+ view_rotx += thetaX;
+ view_roty += thetaY;
+
+ evt.consume();
+ }
+
+ public void mouseMoved( MouseEvent evt )
+ {
+ }
+ }
+}
diff --git a/demos/MiscDemos/gears_plugin13.html b/demos/MiscDemos/gears_plugin13.html
new file mode 100644
index 0000000..acaaea5
--- /dev/null
+++ b/demos/MiscDemos/gears_plugin13.html
@@ -0,0 +1,45 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 550 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "gears.class" WIDTH = 550 HEIGHT = 400 frames = "55" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "gears.class" WIDTH = 550 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "gears.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+<PARAM NAME = frames VALUE ="55">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "gears.class" WIDTH = 550 HEIGHT = 400>
+<PARAM NAME = frames VALUE ="55">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</BODY>
+</HTML>
+
diff --git a/demos/MiscDemos/glJavaFontTest1.java b/demos/MiscDemos/glJavaFontTest1.java
new file mode 100644
index 0000000..78ccd39
--- /dev/null
+++ b/demos/MiscDemos/glJavaFontTest1.java
@@ -0,0 +1,120 @@
+// Font rendering using GL4Java
+// by Pontus Lidman
+// (c) 2000 MathCore AB
+
+import gl4java.awt.*;
+import javax.swing.*;
+import java.awt.Dimension;
+import gl4java.GLContext;
+import gl4java.GLFunc;
+
+import java.awt.Font;
+import java.awt.Shape;
+import java.awt.font.*;
+import java.awt.geom.*;
+
+public class glJavaFontTest1 {
+
+
+ protected class MyCanvas extends GLCanvas {
+
+
+ public void drawString(String s,double x,double y) {
+
+ Font font=new Font("timesroman",Font.PLAIN,12);
+ AffineTransform identity=new AffineTransform();
+ FontRenderContext frc=new FontRenderContext(identity,false,false);
+ GlyphVector g=font.createGlyphVector(frc,s);
+ Shape shp=g.getOutline();
+ FlatteningPathIterator path=new FlatteningPathIterator(shp.getPathIterator(identity),0.05);
+
+ double [] coords=new double[6];
+ int type;
+
+ while (!path.isDone()) {
+ type=path.currentSegment(coords);
+ switch(type) {
+ case PathIterator.SEG_MOVETO:
+ gl.glBegin(GL_LINE_STRIP);
+ gl.glVertex2d(x+coords[0],y+coords[1]);
+ break;
+ case PathIterator.SEG_LINETO:
+ gl.glVertex2d(x+coords[0],y+coords[1]);
+ break;
+ case PathIterator.SEG_CLOSE:
+ gl.glEnd();
+ break;
+ }
+ path.next();
+ }
+ }
+
+ public MyCanvas(int w, int h) {
+ super(w,h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void init() {
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glOrtho(-50,50,50,-50,-50.0,50.0);
+ gl.glMatrixMode(GL_MODELVIEW);
+ glj.gljCheckGL();
+ }
+
+ public void reshape(int w, int h) {
+ Dimension d=new Dimension(w,h);
+ if (!cvsIsInit()) return;
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("problem in use() method");
+ return;
+ }
+ setSize(d);
+ gl.glViewport(0,0,w,h);
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ public void display() {
+ int i;
+
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ gl.glPushMatrix();
+ gl.glClear(GL_COLOR_BUFFER_BIT);
+ glu.gluLookAt(0, 0, 20, 0, 0, 0, 0, 1, 0);
+
+ gl.glColor3d(1,1,1);
+ drawString("Hello world!",-40,0);
+
+
+ gl.glPopMatrix();
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+ }
+
+ protected MyCanvas cvs;
+ protected JFrame frame;
+
+ public glJavaFontTest1() {
+ frame = new JFrame( "OpenGL" );
+ cvs= new MyCanvas(640,480);
+ frame.setSize(640,480);
+ frame.getContentPane().add("Center", cvs);
+ frame.setVisible(true);
+ }
+
+ public static void main(java.lang.String[] args) {
+ try {
+ glJavaFontTest1 g=new glJavaFontTest1();
+ } catch (Throwable exception) {
+ System.err.println("Exception occurred in main()");
+ exception.printStackTrace(System.out);
+ }
+ }
+}
diff --git a/demos/MiscDemos/glutFontBitmapTest.html b/demos/MiscDemos/glutFontBitmapTest.html
new file mode 100644
index 0000000..d70bcd9
--- /dev/null
+++ b/demos/MiscDemos/glutFontBitmapTest.html
@@ -0,0 +1,15 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<br>
+<hr>
+<applet code="glutFontBitmapTest.class" width=600 height=400>
+<param name=frames value="55">
+</applet>
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/MiscDemos/glutFontBitmapTest.java b/demos/MiscDemos/glutFontBitmapTest.java
new file mode 100644
index 0000000..bb2a2a4
--- /dev/null
+++ b/demos/MiscDemos/glutFontBitmapTest.java
@@ -0,0 +1,137 @@
+// Test program for GLUT Bitmap font rendering functions
+// by Pontus Lidman
+// Copyright 2000 MathCore AB
+//
+// This file/package is licensed under the terms of the LPGL
+// with the permission of Pontus Lidman / Mathcore !
+//
+
+import gl4java.utils.glut.*;
+import gl4java.utils.glut.fonts.*;
+
+import gl4java.awt.*;
+import java.applet.*;
+import java.awt.*;
+import java.awt.Dimension;
+import gl4java.GLContext;
+import gl4java.GLFunc;
+
+public class glutFontBitmapTest extends Applet {
+
+ protected GLUTFunc glut = null;
+
+ protected class MyCanvas extends GLCanvas
+ {
+
+ boolean print_tests=false;
+
+ public MyCanvas(int w, int h) {
+ super(w,h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void init() {
+ glut = new GLUTFuncLightImplWithFonts(gl, glu);
+
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glOrtho(-1,1,-1,1,-50.0,50.0);
+ gl.glMatrixMode(GL_MODELVIEW);
+ glj.gljCheckGL();
+ }
+
+ public void reshape(int w, int h) {
+ Dimension d=new Dimension(w,h);
+ if (!cvsIsInit()) return;
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("problem in use() method");
+ return;
+ }
+ setSize(d);
+ gl.glViewport(0,0,w,h);
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ public void display() {
+ int i;
+
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ gl.glPushMatrix();
+ gl.glClear(GL_COLOR_BUFFER_BIT);
+ glu.gluLookAt(0, 0, 20, 0, 0, 0, 0, 1, 0);
+
+ gl.glColor3d(0.3,0,0);
+
+ gl.glBegin(GL_POLYGON);
+ gl.glVertex2d(0,-0.5);
+ gl.glVertex2d(0.5,0.5);
+ gl.glVertex2d(-0.5,0.5);
+ gl.glEnd();
+
+ gl.glColor3d(1,1,1);
+ gl.glRasterPos2d(-0.2,-0.2);
+ glut.glutBitmapString(glut.GLUT_BITMAP_8_BY_13,"8x13 Font");
+ gl.glRasterPos2d(-0.2,-0.1);
+ glut.glutBitmapString(glut.GLUT_BITMAP_9_BY_15,"9x15 Font");
+ gl.glRasterPos2d(-0.2,0.0);
+ glut.glutBitmapString(glut.GLUT_BITMAP_HELVETICA_10,"Helvetica 10 Font");
+ gl.glRasterPos2d(-0.2,0.1);
+ glut.glutBitmapString(glut.GLUT_BITMAP_HELVETICA_12,"Helvetica 12 Font");
+ gl.glRasterPos2d(-0.2,0.2);
+ glut.glutBitmapString(glut.GLUT_BITMAP_HELVETICA_18,"Helvetica 18 Font");
+ gl.glRasterPos2d(-0.2,0.3);
+ glut.glutBitmapString(glut.GLUT_BITMAP_TIMES_ROMAN_10,"Times Roman 10 Font");
+ gl.glRasterPos2d(-0.2,0.4);
+ glut.glutBitmapString(glut.GLUT_BITMAP_TIMES_ROMAN_24,"Times Roman 24 Font");
+
+ gl.glPopMatrix();
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+ }
+
+ protected MyCanvas cvs;
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ cvs= new MyCanvas(d.width,d.height);
+ add("Center", cvs);
+ }
+
+ public void start()
+ {
+ }
+
+
+ public void stop()
+ {
+ }
+
+ public static void main(java.lang.String[] args) {
+ try {
+ Frame mainFrame = new Frame("FontTest");
+
+ glutFontBitmapTest applet=new glutFontBitmapTest();
+
+ applet.setSize(400, 400);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ } catch (Throwable exception) {
+ System.err.println("Exception occurred in main()");
+ exception.printStackTrace(System.out);
+ }
+ }
+}
diff --git a/demos/MiscDemos/glutFontBitmapTest2Applet$glutF b/demos/MiscDemos/glutFontBitmapTest2Applet$glutF
new file mode 100644
index 0000000..a23aee0
--- /dev/null
+++ b/demos/MiscDemos/glutFontBitmapTest2Applet$glutF
Binary files differ
diff --git a/demos/MiscDemos/glutFontBitmapTest2Applet.html b/demos/MiscDemos/glutFontBitmapTest2Applet.html
new file mode 100644
index 0000000..a10559b
--- /dev/null
+++ b/demos/MiscDemos/glutFontBitmapTest2Applet.html
@@ -0,0 +1,16 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<B>Try to drag the mouse (press-button and move) with/without the SHIFT key!</B>
+<br>
+<hr>
+<applet code="glutFontBitmapTest2Applet.class" width=600 height=400>
+<param name=frames value="55">
+</applet>
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/MiscDemos/glutFontBitmapTest2Applet.java b/demos/MiscDemos/glutFontBitmapTest2Applet.java
new file mode 100644
index 0000000..0985385
--- /dev/null
+++ b/demos/MiscDemos/glutFontBitmapTest2Applet.java
@@ -0,0 +1,319 @@
+
+import gl4java.*;
+import gl4java.awt.*;
+import gl4java.utils.textures.*;
+import gl4java.utils.glut.*;
+import gl4java.utils.glut.fonts.*;
+
+import java.awt.*;
+import java.awt.event.*;
+import java.applet.*;
+import java.net.*;
+
+public class glutFontBitmapTest2Applet extends Applet
+{
+ glutFontBitmapTest2 canvas = null;
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new glutFontBitmapTest2 (d.width, d.height);
+ add("Center", canvas);
+ }
+
+ public void start()
+ {
+ }
+
+
+ public void stop()
+ {
+ }
+
+ public static void main( String args[] )
+ {
+ Frame mainFrame = new Frame("font test 2");
+
+ glutFontBitmapTest2Applet applet =
+ new glutFontBitmapTest2Applet();
+
+ applet.setSize(400, 400);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ }
+
+ class glutFontBitmapTest2 extends GLCanvas
+ implements MouseListener,MouseMotionListener
+ {
+ float []mPosObjTrans;
+ float []mPosObjRot;
+
+ Point mousePoint;
+ Point oldMousePoint;
+ boolean mouseMoveFlag;
+
+ protected GLUTFunc glut = null;
+
+ int texName[] = {0};
+
+ public glutFontBitmapTest2 (int w, int h)
+ {
+ super(w, h);
+ }
+
+ public void init()
+ {
+ glut = new GLUTFuncLightImplWithFonts(gl, glu);
+
+ // cameraMatrix init
+ mPosObjTrans=new float[16];
+ for(int i=0;i<16;i++)
+ mPosObjTrans[i]=0f;
+ mPosObjTrans[0]=mPosObjTrans[5]=mPosObjTrans[10]=mPosObjTrans[15]=1f;
+
+ mPosObjRot=new float[16];
+ for(int i=0;i<16;i++)
+ mPosObjRot[i]=0f;
+ mPosObjRot[0]=mPosObjRot[5]=mPosObjRot[10]=mPosObjRot[15]=1f;
+
+ TranlateObj(0f,0f,-10f);
+
+ gl.glShadeModel (GL_SMOOTH);
+ gl.glEnable(GL_DEPTH_TEST);
+
+ gl.glClearColor(0.2f, 0.2f, 0.2f, 1.0f);
+ gl.glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
+ glj.gljCheckGL();
+
+ canvas.addMouseListener(this);
+ canvas.addMouseMotionListener(this);
+ mouseMoveFlag=false;
+
+ reshape(getSize().width, getSize().height);
+ }
+
+ public void display()
+ {
+ int i;
+
+ /* Standard GL4Java Init */
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ // just render it
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ SetCamera();
+
+ DrawScene();
+
+ /* For your animation dutys ;-) */
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ public void reshape(int w, int h)
+ {
+ gl.glMatrixMode (GL_MODELVIEW);
+ gl.glViewport (0, 0, w, h);
+ gl.glLoadIdentity();
+ SetCamera();
+ }
+
+
+ public void drawGrid(float x0, float y0,
+ float width, float height, float step)
+ {
+ float i,j;
+
+ /* draw grid */
+ gl.glBegin(GL_LINES);
+ for(i=x0;i<width;i+=step)
+ for(j=y0;j<height;j+=step)
+ {
+ if(i==0f && j==0f)
+ gl.glColor3f (1f,0f,0f);
+ else
+ gl.glColor3f (0.6f,0.5f,0.5f);
+ gl.glVertex2f(0f,j);
+ gl.glVertex2f(width,j);
+ gl.glVertex2f(i,height);
+ gl.glVertex2f(i,0f);
+ }
+ gl.glEnd();
+ }
+
+ void DrawScene()
+ {
+ gl.glMatrixMode (GL_MODELVIEW);
+ gl.glLoadIdentity ();
+
+ // kamera setzen
+ gl.glLoadMatrixf(mPosObjTrans);
+ gl.glMultMatrixf(mPosObjRot);
+
+ gl.glPushMatrix();
+ drawGrid(0f, 0f, 10f, 10f, 0.5f);
+ gl.glPopMatrix();
+
+ // obj zeichnen
+ gl.glPushMatrix();
+ gl.glColor3d(0.3,0,0);
+
+ gl.glBegin(GL_POLYGON);
+ gl.glVertex2d(0,-0.5);
+ gl.glVertex2d(0.5,0.5);
+ gl.glVertex2d(-0.5,0.5);
+ gl.glEnd();
+
+ gl.glColor3d(1,1,1);
+ gl.glRasterPos2d(-2.2,-1.2);
+ glut.glutBitmapString(glut.GLUT_BITMAP_8_BY_13,"8x13 Font");
+ gl.glRasterPos2d(-2.2,0.2);
+ glut.glutBitmapString(glut.GLUT_BITMAP_9_BY_15,"9x15 Font");
+ gl.glRasterPos2d(-2.2,1.2);
+ glut.glutBitmapString(glut.GLUT_BITMAP_HELVETICA_10,"Helvetica 10 Font");
+ gl.glRasterPos2d(-2.2,2.2);
+ glut.glutBitmapString(glut.GLUT_BITMAP_HELVETICA_12,"Helvetica 12 Font");
+ gl.glRasterPos2d(-2.2,3.2);
+ glut.glutBitmapString(glut.GLUT_BITMAP_HELVETICA_18,"Helvetica 18 Font");
+ gl.glRasterPos2d(-2.2,4.2);
+ glut.glutBitmapString(glut.GLUT_BITMAP_TIMES_ROMAN_10,"Times Roman 10 Font");
+ gl.glRasterPos2d(-2.2,5.2);
+ glut.glutBitmapString(glut.GLUT_BITMAP_TIMES_ROMAN_24,"Times Roman 24 Font");
+ gl.glPopMatrix();
+
+ }
+
+ void SetCamera()
+ {
+ Dimension dim=getSize();
+ float aspect=(float)dim.width/(float)dim.height;
+
+ gl.glMatrixMode (GL_PROJECTION);
+ gl.glLoadIdentity ();
+ glu.gluPerspective(60f,aspect,.01,100);
+ }
+
+ void RotateObj(float degree,
+ float axisX,
+ float axisY,
+ float axisZ)
+ {
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ gl.glMatrixMode (GL_MODELVIEW);
+ gl.glLoadIdentity ();
+
+ // kamera setzen
+ gl.glRotatef(degree,axisX,axisY,axisZ);
+ gl.glMultMatrixf(mPosObjRot);
+ gl.glGetFloatv(GL_MODELVIEW_MATRIX,mPosObjRot);
+
+ repaint();
+ }
+
+ void TranlateObj(float x,float y,float z)
+ {
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ gl.glMatrixMode (GL_MODELVIEW);
+ gl.glLoadIdentity ();
+
+ // kamera setzen
+ gl.glLoadMatrixf(mPosObjTrans);
+ gl.glTranslatef(x,y,z);
+ gl.glGetFloatv(GL_MODELVIEW_MATRIX,mPosObjTrans);
+
+ repaint();
+ }
+
+ // entfernt rotationen aus aktueller matrix
+ double Billboard()
+ {
+ float[] mat=new float[16];
+
+ gl.glGetFloatv(GL_MODELVIEW_MATRIX,mat);
+ mat[0] = mat[5] = mat[10] = 1;
+ mat[1] = mat[2] = mat[4] = mat[6] = mat[8] = mat[9] = 0;
+ gl.glLoadMatrixf(mat);
+
+ return mat[14];
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ if(mouseMoveFlag==false)
+ { // start drag
+ mouseMoveFlag=true;
+ mousePoint=evt.getPoint();
+ }
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ mouseMoveFlag=false;
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ }
+
+ public void mouseDragged(MouseEvent e)
+ {
+ if(mouseMoveFlag==true)
+ {
+ oldMousePoint=new Point(mousePoint);
+ mousePoint=e.getPoint();
+
+ Point dif=new Point(mousePoint.x-oldMousePoint.x,
+ mousePoint.y-oldMousePoint.y);
+
+ if(e.isShiftDown()==true)
+ TranlateObj((float)dif.x/6.0f,(float)dif.y/-6.0f,0f);
+ else if(e.isAltDown()==true)
+ {
+ TranlateObj(0f,0f,(float)dif.y/6.0f);
+ RotateObj(dif.x,0f,0f,1f);
+ }
+ else
+ {
+ RotateObj(dif.x,0f,1f,0f);
+ RotateObj(dif.y,1f,0f,0f);
+ }
+ }
+ }
+ public void mouseMoved(MouseEvent e)
+ {
+ }
+
+
+ }
+}
diff --git a/demos/MiscDemos/glutFontBitmapTest2Applet_plugin13.html b/demos/MiscDemos/glutFontBitmapTest2Applet_plugin13.html
new file mode 100644
index 0000000..2acee05
--- /dev/null
+++ b/demos/MiscDemos/glutFontBitmapTest2Applet_plugin13.html
@@ -0,0 +1,48 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<B>Try to drag the mouse (press-button and move) with/without the SHIFT key!</B>
+<br>
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 600 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "glutFontBitmapTest2Applet.class" WIDTH = 600 HEIGHT = 400 frames = "55" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "glutFontBitmapTest2Applet.class" WIDTH = 600 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "glutFontBitmapTest2Applet.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+<PARAM NAME = frames VALUE ="55">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "glutFontBitmapTest2Applet.class" WIDTH = 600 HEIGHT = 400>
+<PARAM NAME = frames VALUE ="55">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/MiscDemos/glutFontBitmapTest_plugin13.html b/demos/MiscDemos/glutFontBitmapTest_plugin13.html
new file mode 100644
index 0000000..2c747d1
--- /dev/null
+++ b/demos/MiscDemos/glutFontBitmapTest_plugin13.html
@@ -0,0 +1,47 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<br>
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 600 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "glutFontBitmapTest.class" WIDTH = 600 HEIGHT = 400 frames = "55" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "glutFontBitmapTest.class" WIDTH = 600 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "glutFontBitmapTest.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+<PARAM NAME = frames VALUE ="55">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "glutFontBitmapTest.class" WIDTH = 600 HEIGHT = 400>
+<PARAM NAME = frames VALUE ="55">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/MiscDemos/glutFontStrokeTest.html b/demos/MiscDemos/glutFontStrokeTest.html
new file mode 100644
index 0000000..0264ee6
--- /dev/null
+++ b/demos/MiscDemos/glutFontStrokeTest.html
@@ -0,0 +1,15 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<br>
+<hr>
+<applet code="glutFontStrokeTest.class" width=600 height=400>
+<param name=frames value="55">
+</applet>
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/MiscDemos/glutFontStrokeTest.java b/demos/MiscDemos/glutFontStrokeTest.java
new file mode 100644
index 0000000..27d95fc
--- /dev/null
+++ b/demos/MiscDemos/glutFontStrokeTest.java
@@ -0,0 +1,128 @@
+// Test program for GLUT Stroke font rendering functions
+// by Pontus Lidman
+// Copyright 2000 MathCore AB
+//
+// This file/package is licensed under the terms of the LPGL
+// with the permission of Pontus Lidman / Mathcore !
+//
+
+import gl4java.utils.glut.*;
+import gl4java.utils.glut.fonts.*;
+
+import gl4java.awt.*;
+import java.applet.*;
+import java.awt.*;
+import java.awt.Dimension;
+import gl4java.GLContext;
+import gl4java.GLFunc;
+
+public class glutFontStrokeTest extends Applet {
+
+ protected GLUTFunc glut = null;
+
+ protected class MyCanvas extends GLCanvas {
+
+ public MyCanvas(int w, int h) {
+ super(w,h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void init() {
+ glut = new GLUTFuncLightImplWithFonts(gl, glu);
+
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glOrtho(-1000,1000,-1000,1000,-50.0,50.0);
+ gl.glMatrixMode(GL_MODELVIEW);
+ glj.gljCheckGL();
+ }
+
+ public void reshape(int w, int h) {
+ Dimension d=new Dimension(w,h);
+ if (!cvsIsInit()) return;
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("problem in use() method");
+ return;
+ }
+ setSize(d);
+ gl.glViewport(0,0,w,h);
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ public void display() {
+ int i;
+
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ gl.glPushMatrix();
+ gl.glClear(GL_COLOR_BUFFER_BIT);
+ glu.gluLookAt(0, 0, 20, 0, 0, 0, 0, 1, 0);
+
+ gl.glColor3d(0.3,0,0);
+
+ gl.glBegin(GL_POLYGON);
+ gl.glVertex2d(0,-0.5);
+ gl.glVertex2d(0.5,0.5);
+ gl.glVertex2d(-0.5,0.5);
+ gl.glEnd();
+
+ gl.glColor3d(1,1,1);
+ gl.glPushMatrix();
+ gl.glTranslated(-900,-100,0);
+ glut.glutStrokeString(glut.GLUT_STROKE_ROMAN,"Roman Font");
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glTranslated(-900,100,0);
+ glut.glutStrokeString(glut.GLUT_STROKE_MONO_ROMAN,"Mono Roman Font");
+ gl.glPopMatrix();
+
+ gl.glPopMatrix();
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+ }
+
+ protected MyCanvas cvs;
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ cvs= new MyCanvas(d.width,d.height);
+ add("Center", cvs);
+ }
+
+ public void start()
+ {
+ }
+
+
+ public void stop()
+ {
+ }
+
+ public static void main(java.lang.String[] args) {
+ try {
+ Frame mainFrame = new Frame("Stroke Test");
+
+ glutFontStrokeTest applet=new glutFontStrokeTest();
+
+ applet.setSize(400, 400);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ } catch (Throwable exception) {
+ System.err.println("Exception occurred in main()");
+ exception.printStackTrace(System.out);
+ }
+ }
+}
diff --git a/demos/MiscDemos/glutFontStrokeTest_plugin13.html b/demos/MiscDemos/glutFontStrokeTest_plugin13.html
new file mode 100644
index 0000000..6c74a92
--- /dev/null
+++ b/demos/MiscDemos/glutFontStrokeTest_plugin13.html
@@ -0,0 +1,47 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<br>
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 600 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "glutFontStrokeTest.class" WIDTH = 600 HEIGHT = 400 frames = "55" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "glutFontStrokeTest.class" WIDTH = 600 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "glutFontStrokeTest.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+<PARAM NAME = frames VALUE ="55">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "glutFontStrokeTest.class" WIDTH = 600 HEIGHT = 400>
+<PARAM NAME = frames VALUE ="55">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/MiscDemos/index.html b/demos/MiscDemos/index.html
new file mode 100644
index 0000000..0c01565
--- /dev/null
+++ b/demos/MiscDemos/index.html
@@ -0,0 +1,78 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="Author" content="Ron Cemer & Sven Goethel">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Misc Demos</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<p>Here are the demos-II for <B> GL4Java >= 2.4.0.0: </B> <br>
+<br>
+<p><a href="index_plugin13.html">To use the Java2 Plug-In (Java2, JRE, Plug-In 1.3), click here !</a><br>
+<br>
+<B>Try to use the right-mouse-button for a pop-up menu within the demos !</B>
+<br>
+<p>&nbsp;<a href="TriangleRotate.html">TriangleRotate</a>
+: TriangleRotate at 500x300
+<p>&nbsp;<a href="DrawColoredPrimitives.html">DrawColoredPrimitives</a>
+: DrawColoredPrimitives at 500x300
+<p>&nbsp;<a href="DrawColoredPrimitives2.html">DrawColoredPrimitives2</a>
+: DrawColoredPrimitives2 at 500x300
+<p>&nbsp;<a href="nurbs.html">nurbs</a>
+: nurbs at 500x300
+<p>&nbsp;<a href="spectex.html">spectex</a>
+: spectex at 400x400
+<p>&nbsp;<a href="morph3d.html">morph3d</a>
+: morph3d at 400x400
+<p>&nbsp;<a href="gears.html">gears</a>
+: gears at 400x400
+<br>&nbsp;
+<br>
+<p>&nbsp;<a href="accanti.html">accanti</a>
+: accanti at 400x400 (GLUT DEMO)
+<p>&nbsp;<a href="alpha3D.html">alpha3D</a>
+: alpha3D at 400x400 (GLUT DEMO)
+<p>&nbsp;<a href="anti.html">anti</a>
+: anti at 400x400 (GLUT DEMO)
+<p>&nbsp;<a href="depthcue.html">depthcue</a>
+: depthcue at 400x400 (GLUT DEMO)
+<p>&nbsp;<a href="teaambient.html">teaambient</a>
+: teaambient at 400x400 (GLUT DEMO)
+<p>&nbsp;<a href="teapots.html">teapots</a>
+: teapots at 400x400 (GLUT DEMO)
+<br>&nbsp;
+<br>
+<p>&nbsp;<a href="pngTextureTestApplet.html">pngTextureTestApplet</a>
+: png texture test at 600x400 (GLUT DEMO)
+<br>&nbsp;
+<br>
+<br>&nbsp;<a href="stencil.html">Stencil Test</a>
+: test/shows geometry with 0 and 8 stencil-bits
+<p>&nbsp;<a href="glutFontStrokeTest.html">GLUT Font Stroke 1</a>
+: GLUT Font Stroke 1 (GLUT DEMO)
+<p>&nbsp;<a href="glutFontBitmapTest.html">GLUT Font Bitmap 1</a>
+: GLUT Font Bitmap 1 (GLUT DEMO)
+<p>&nbsp;<a href="glutFontBitmapTest2Applet.html">GLUT Font Bitmap 2</a>
+: GLUT Font Bitmap 2 (GLUT DEMO)
+<br>&nbsp;
+<br>
+<br>&nbsp;<a href="tess.html">Tessellator Demo 1</a>
+: test/shows 2 tesselated geometries
+<br>&nbsp;<a href="tesswind.html">Tessellator Demo 2</a>
+: test/shows tesselated geometries with different winding rules
+<br>&nbsp;<a href="tessdemo.html">Tessellator Demo 3</a>
+: test/shows self created tesselated geometries
+<br>&nbsp;
+<br>
+<br>&nbsp;<a href="SharedGLTest2.html">Shared GL-Context</a>
+: test/shows the usage of a shared GLContext for Display-Lists
+<br>&nbsp;
+<br>
+<br>&nbsp;<a href="select.html">Selection Demo 1</a>
+: test/shows selection
+<br>&nbsp;
+<br>
+<br>
+</body>
+</html>
diff --git a/demos/MiscDemos/index_plugin13.html b/demos/MiscDemos/index_plugin13.html
new file mode 100644
index 0000000..082aab8
--- /dev/null
+++ b/demos/MiscDemos/index_plugin13.html
@@ -0,0 +1,80 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="Author" content="Ron Cemer & Sven Goethel">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Misc Demos</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<p>Here are the demos-II for <B> GL4Java >= 2.4.0.0: & Java2 Plug-In 1.3</B>
+<hr>
+<br>&nbsp;
+<a href="../../Installer/java.policy">The Java2 (sdk, jre, plugin 1.3) policy file example to give GL4Java the necessary permissions (Click here) !</a>
+<br>&nbsp;
+<hr>
+<B>Try to use the right-mouse-button for a pop-up menu within the demos !</B>
+<br>
+<p>&nbsp;<a href="TriangleRotate_plugin13.html">TriangleRotate</a>
+: TriangleRotate at 500x300
+<p>&nbsp;<a href="DrawColoredPrimitives_plugin13.html">DrawColoredPrimitives</a>
+: DrawColoredPrimitives at 500x300
+<p>&nbsp;<a href="DrawColoredPrimitives2_plugin13.html">DrawColoredPrimitives2</a>
+: DrawColoredPrimitives2 at 500x300
+<p>&nbsp;<a href="nurbs_plugin13.html">nurbs</a>
+: nurbs at 500x300
+<p>&nbsp;<a href="spectex_plugin13.html">spectex</a>
+: spectex at 400x400
+<p>&nbsp;<a href="morph3d_plugin13.html">morph3d</a>
+: morph3d at 400x400
+<p>&nbsp;<a href="gears_plugin13.html">gears</a>
+: gears at 400x400
+<br>&nbsp;
+<br>
+<p>&nbsp;<a href="accanti_plugin13.html">accanti</a>
+: accanti at 400x400 (GLUT DEMO)
+<p>&nbsp;<a href="alpha3D_plugin13.html">alpha3D</a>
+: alpha3D at 400x400 (GLUT DEMO)
+<p>&nbsp;<a href="anti_plugin13.html">anti</a>
+: anti at 400x400 (GLUT DEMO)
+<p>&nbsp;<a href="depthcue_plugin13.html">depthcue</a>
+: depthcue at 400x400 (GLUT DEMO)
+<p>&nbsp;<a href="teaambient_plugin13.html">teaambient</a>
+: teaambient at 400x400 (GLUT DEMO)
+<p>&nbsp;<a href="teapots_plugin13.html">teapots</a>
+: teapots at 400x400 (GLUT DEMO)
+<br>&nbsp;
+<br>
+<p>&nbsp;<a href="pngTextureTestApplet_plugin13.html">pngTextureTestApplet</a>
+: png texture test at 600x400 (GLUT DEMO)
+<br>&nbsp;
+<br>
+<br>&nbsp;<a href="stencil_plugin13.html">Stencil Test</a>
+: test/shows geometry with 0 and 8 stencil-bits
+<p>&nbsp;<a href="glutFontStrokeTest_plugin13.html">GLUT Font Stroke 1</a>
+: GLUT Font Stroke 1 (GLUT DEMO)
+<p>&nbsp;<a href="glutFontBitmapTest_plugin13.html">GLUT Font Bitmap 1</a>
+: GLUT Font Bitmap 1 (GLUT DEMO)
+<p>&nbsp;<a href="glutFontBitmapTest2Applet_plugin13.html">GLUT Font Bitmap 2</a>
+: GLUT Font Bitmap 2 (GLUT DEMO)
+<br>&nbsp;
+<br>
+<br>&nbsp;<a href="tess_plugin13.html">Tessellator Demo 1</a>
+: test/shows 2 tesselated geometries
+<br>&nbsp;<a href="tesswind_plugin13.html">Tessellator Demo 2</a>
+: test/shows tesselated geometries with different winding rules
+<br>&nbsp;<a href="tessdemo_plugin13.html">Tessellator Demo 3</a>
+: test/shows self created tesselated geometries
+<br>&nbsp;
+<br>
+<br>&nbsp;<a href="SharedGLTest2_plugin13.html">Shared GL-Context</a>
+: test/shows the usage of a shared GLContext for Display-Lists
+<br>&nbsp;
+<br>
+<br>&nbsp;<a href="select_plugin13.html">Selection Demo 1</a>
+: test/shows selection
+<br>&nbsp;
+<br>
+<br>
+</body>
+</html>
diff --git a/demos/MiscDemos/morph3d.html b/demos/MiscDemos/morph3d.html
new file mode 100644
index 0000000..b99094a
--- /dev/null
+++ b/demos/MiscDemos/morph3d.html
@@ -0,0 +1,17 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>OpenGL Demo - ported by Sven Goethel</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Teapots applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Sven Goethel
+<br>
+<applet code="morph3d.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/MiscDemos/morph3d.java b/demos/MiscDemos/morph3d.java
new file mode 100755
index 0000000..7c8a8fe
--- /dev/null
+++ b/demos/MiscDemos/morph3d.java
@@ -0,0 +1,1060 @@
+/*-
+ * morph3d.c - Shows 3D morphing objects
+ *
+ * Converted to GLUT by brianp on 1/1/98
+ *
+ * This program was inspired on a WindowsNT(R)'s screen saver. It was written
+ * from scratch and it was not based on any other source code.
+ *
+ * Porting it to xlock (the final objective of this code (float)Math.since the moment I
+ * decided to create it) was possible by comparing the original Mesa's gear
+ * demo with it's ported version, so thanks for Danny Sung for his indirect
+ * help (look at gear.c in xlock source tree). NOTE: At the moment this code
+ * was sent to Brian Paul for package inclusion, the XLock Version was not
+ * available. In fact, I'll wait it to appear on the next Mesa release (If you
+ * are reading this, it means THIS release) to send it for xlock package
+ * inclusion). It will probably there be a GLUT version too.
+ *
+ * Thanks goes also to Brian Paul for making it possible and inexpensive
+ * to use OpenGL at home.
+ *
+ * Since I'm not a native english speaker, my apologies for any gramatical
+ * mistake.
+ *
+ * My e-mail addresses are
+ *
+ * and
+ *
+ * Marcelo F. Vianna (Feb-13-1997)
+ */
+
+/*
+This document is VERY incomplete, but tries to describe the mathematics used
+in the program. At this moment it just describes how the polyhedra are
+generated. On futhurer versions, this document will be probabbly improved.
+
+Since I'm not a native english speaker, my apologies for any gramatical
+mistake.
+
+Marcelo Fernandes Vianna
+- Undergraduate in Computer Engeneering at Catholic Pontifical University
+- of Rio de Janeiro (PUC-Rio) Brasil.
+- Feb-13-1997
+
+POLYHEDRA GENERATION
+
+For the purpose of this program it's not sufficient to know the polyhedra
+vertexes coordinates. Since the morphing algorithm applies a nonlinear
+transformation over the surfaces (faces) of the polyhedron, each face has
+to be divided into smaller ones. The morphing algorithm needs to transform
+each vertex of these smaller faces individually. It's a very time consoming
+task.
+
+In order to reduce calculation overload, and (float)Math.since all the macro faces of
+the polyhedron are transformed by the same way, the generation is made by
+creating only one face of the polyhedron, morphing it and then rotating it
+around the polyhedron center.
+
+What we need to know is the face radius of the polyhedron (the radius of
+the inscribed sphere) and the angle between the center of two adjacent
+faces u(float)Math.sing the center of the sphere as the angle's vertex.
+
+The face radius of the regular polyhedra are known values which I decided
+to not waste my time calculating. Following is a table of face radius for
+the regular polyhedra with edge length = 1:
+
+ TETRAHEDRON : 1/(2*(float)Math.sqrt(2))/(float)Math.sqrt(3)
+ CUBE : 1/2
+ OCTAHEDRON : 1/(float)Math.sqrt(6)
+ DODECAHEDRON : T^2 * (float)Math.sqrt((T+2)/5) / 2 -> where T=((float)Math.sqrt(5)+1)/2
+ ICOSAHEDRON : (3*(float)Math.sqrt(3)+(float)Math.sqrt(15))/12
+
+I've not found any reference about the mentioned angles, so I needed to
+calculate them, not a trivial task until I figured out how :)
+Curiously these angles are the same for the tetrahedron and octahedron.
+A way to obtain this value is inscribing the tetrahedron inside the cube
+by matching their vertexes. So you'll notice that the remaining unmatched
+vertexes are in the same straight line starting in the cube/tetrahedron
+center and cros(float)Math.sing the center of each tetrahedron's face. At this point
+it's easy to obtain the bigger angle of the isosceles triangle formed by
+the center of the cube and two opposite vertexes on the same cube face.
+The edges of this triangle have the following lenghts: (float)Math.sqrt(2) for the base
+and (float)Math.sqrt(3)/2 for the other two other edges. So the angle we want is:
+ +-----------------------------------------------------------+
+ | 2*ARCSIN((float)Math.sqrt(2)/(float)Math.sqrt(3)) = 109.47122063449069174f degrees |
+ +-----------------------------------------------------------+
+For the cube this angle is obvious, but just for formality it can be
+easily obtained because we also know it's isosceles edge lenghts:
+(float)Math.sqrt(2)/2 for the base and 1/2 for the other two edges. So the angle we
+want is:
+ +-----------------------------------------------------------+
+ | 2*ARCSIN(((float)Math.sqrt(2)/2)/1) = 90.000000000000000000f degrees |
+ +-----------------------------------------------------------+
+For the octahedron we use the same idea used for the tetrahedron, but now
+we inscribe the cube inside the octahedron so that all cubes's vertexes
+matches excatly the center of each octahedron's face. It's now clear that
+this angle is the same of the thetrahedron one:
+ +-----------------------------------------------------------+
+ | 2*ARCSIN((float)Math.sqrt(2)/(float)Math.sqrt(3)) = 109.47122063449069174f degrees |
+ +-----------------------------------------------------------+
+For the dodecahedron it's a little bit harder because it's only relationship
+with the cube is useless to us. So we need to solve the problem by another
+way. The concept of Face radius also exists on 2D polygons with the name
+Edge radius:
+ Edge Radius For Pentagon (ERp)
+ ERp = (1/2)/TAN(36 degrees) * VRp = 0.6881909602355867905f
+ (VRp is the pentagon's vertex radio).
+ Face Radius For Dodecahedron
+ FRd = T^2 * (float)Math.sqrt((T+2)/5) / 2 = 1.1135163644116068404f
+Why we need ERp? Well, ERp and FRd segments forms a 90 degrees angle,
+completing this triangle, the lesser angle is a half of the angle we are
+looking for, so this angle is:
+ +-----------------------------------------------------------+
+ | 2*ARCTAN(ERp/FRd) = 63.434948822922009981f degrees |
+ +-----------------------------------------------------------+
+For the icosahedron we can use the same method used for dodecahedron (well
+the method used for dodecahedron may be used for all regular polyhedra)
+ Edge Radius For Triangle (this one is well known: 1/3 of the triangle height)
+ ERt = (float)Math.sin(60)/3 = (float)Math.sqrt(3)/6 = 0.2886751345948128655f
+ Face Radius For Icosahedron
+ FRi= (3*(float)Math.sqrt(3)+(float)Math.sqrt(15))/12 = 0.7557613140761707538f
+So the angle is:
+ +-----------------------------------------------------------+
+ | 2*ARCTAN(ERt/FRi) = 41.810314895778596167f degrees |
+ +-----------------------------------------------------------+
+
+*/
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+import gl4java.utils.textures.*;
+
+public class morph3d extends SimpleGLAnimApplet1
+{
+ static final float Scale =0.3f;
+ static final float tetraangle = 109.47122063449069174f;
+ static final float cubeangle = 90.000000000000000000f;
+ static final float octaangle = 109.47122063449069174f;
+ static final float dodecaangle = 63.434948822922009981f;
+ static final float icoangle = 41.810314895778596167f;
+
+ static final float Pi = 3.1415926535897932385f;
+ static final float SQRT2 = 1.4142135623730951455f;
+ static final float SQRT3 = 1.7320508075688771932f;
+ static final float SQRT5 = 2.2360679774997898051f;
+ static final float SQRT6 = 2.4494897427831778813f;
+ static final float SQRT15 = 3.8729833462074170214f;
+ static final float cossec36_2 = 0.8506508083520399322f;
+ static final float cos72 = 0.3090169943749474241f;
+ static final float sin72 = 0.9510565162951535721f;
+ static final float cos36 = 0.8090169943749474241f;
+ static final float sin36 = 0.5877852522924731292f;
+
+ static final float TAU = (SQRT5+1f)/2.0f;
+
+
+ /* Initialize the applet */
+
+ boolean isAnApplet = true;
+
+ public void init()
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new morph3dCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+ public static void main( String args[] )
+ {
+ Frame mainFrame = new Frame("morph3d");
+
+ GLContext.gljNativeDebug = true;
+ GLContext.gljClassDebug = true;
+
+ morph3d applet = new morph3d();
+
+ applet.isAnApplet = false;
+ applet.setSize(400, 400);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ }
+
+ /* Local GLCanvas extension class */
+
+
+ private class morph3dCanvas extends GLAnimCanvas
+ implements MouseListener, ActionListener
+ {
+ private PopupMenu menu = null;
+ private boolean menu_showing = false;
+ private boolean save_suspended = false;
+ private final String MENUE_0 = "Tetrahedron";
+ private final String MENUE_1 = "Hexahedron (Cube)";
+ private final String MENUE_2 = "Octahedron";
+ private final String MENUE_3 = "Dodecahedron";
+ private final String MENUE_4 = "Icosahedron";
+ private final String MENUE_5 = "Toggle colored faces";
+ private final String MENUE_6 = "Toggle smooth/flat shading";
+ private final String MENU_SNAPSHOT = "Snapshot";
+
+ TGATextureGrabber textgrab = null;
+
+ boolean doSnapshot=false;
+
+ /* Increasing this values produces better image quality,
+ the price is speed. */
+ /* Very low values produces erroneous/incorrect plotting */
+ int tetradivisions = 23;
+ int cubedivisions = 20;
+ int octadivisions = 21;
+ int dodecadivisions = 10;
+ int icodivisions = 15;
+
+ boolean mono=false;
+ boolean smooth=true;
+ int WindH, WindW;
+ float step=0;
+ float seno;
+ int object;
+ int edgedivisions;
+ float Magnitude;
+ // float *MaterialColor[20];
+ float MaterialColor[][];
+
+ float front_shininess[] = {60.0f};
+ float front_specular[] = { 0.7f, 0.7f, 0.7f, 1.0f };
+ float ambient[] = { 0.0f, 0.0f, 0.0f, 1.0f };
+ float diffuse[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ float position0[] = { 1.0f, 1.0f, 1.0f, 0.0f };
+ float position1[] = {-1.0f,-1.0f, 1.0f, 0.0f };
+ float lmodel_ambient[] = { 0.5f, 0.5f, 0.5f, 1.0f };
+ float lmodel_twoside[] = {1.0f};
+
+ float MaterialRed[] = { 0.7f, 0.0f, 0.0f, 1.0f };
+ float MaterialGreen[] = { 0.1f, 0.5f, 0.2f, 1.0f };
+ float MaterialBlue[] = { 0.0f, 0.0f, 0.7f, 1.0f };
+ float MaterialCyan[] = { 0.2f, 0.5f, 0.7f, 1.0f };
+ float MaterialYellow[] = { 0.7f, 0.7f, 0.0f, 1.0f };
+ float MaterialMagenta[] = { 0.6f, 0.2f, 0.5f, 1.0f };
+ float MaterialWhite[] = { 0.7f, 0.7f, 0.7f, 1.0f };
+ float MaterialGray[] = { 0.2f, 0.2f, 0.2f, 1.0f };
+
+ public morph3dCanvas(int w, int h)
+ {
+ super(w, h);
+ setAnimateFps(30.0);
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ rgba = true;
+ }
+
+
+ final float VectMulX(float Y1,float Z1,float Y2,float Z2)
+ { return (Y1)*(Z2)-(Z1)*(Y2);
+ }
+
+ final float VectMulY(float X1,float Z1,float X2,float Z2)
+ { return (Z1)*(X2)-(X1)*(Z2);
+ }
+
+ final float VectMulZ(float X1,float Y1,float X2,float Y2)
+ { return (X1)*(Y2)-(Y1)*(X2);
+ }
+
+ final float sqr(float A)
+ { return (A)*(A); }
+
+ final void TRIANGLE(float Edge, float Amp, int Divisions, float Z)
+ {
+ float Xf,Yf,Xa,Yb,Xf2,Yf2;
+ float Factor,Factor1,Factor2;
+ float VertX,VertY,VertZ,NeiAX,NeiAY,NeiAZ,NeiBX,NeiBY,NeiBZ;
+ float Ax,Ay,Bx;
+ int Ri,Ti;
+ float Vr=(Edge)*SQRT3/3;
+ float AmpVr2=(Amp)/sqr(Vr);
+ float Zf=(Edge)*(Z);
+
+ Ax=(Edge)*(+0.5f/(Divisions)); Ay=(Edge)*(-SQRT3/(2*Divisions));
+ Bx=(Edge)*(-0.5f/(Divisions));
+ for (Ri=1; Ri<=(Divisions); Ri++) {
+ gl.glBegin(GL_TRIANGLE_STRIP);
+ for (Ti=0; Ti<Ri; Ti++) {
+ Xf=(float)(Ri-Ti)*Ax + (float)Ti*Bx;
+ Yf=Vr+(float)(Ri-Ti)*Ay + (float)Ti*Ay;
+ Xa=Xf+0.001f; Yb=Yf+0.001f;
+ Factor=1-(((Xf2=sqr(Xf))+(Yf2=sqr(Yf)))*AmpVr2);
+ Factor1=1-((sqr(Xa)+Yf2)*AmpVr2);
+ Factor2=1-((Xf2+sqr(Yb))*AmpVr2);
+ VertX=Factor*Xf; VertY=Factor*Yf; VertZ=Factor*Zf;
+ NeiAX=Factor1*Xa-VertX; NeiAY=Factor1*Yf-VertY; NeiAZ=Factor1*Zf-VertZ;
+ NeiBX=Factor2*Xf-VertX; NeiBY=Factor2*Yb-VertY; NeiBZ=Factor2*Zf-VertZ;
+ gl.glNormal3f(VectMulX(NeiAY, NeiAZ, NeiBY, NeiBZ),
+ VectMulY(NeiAX, NeiAZ, NeiBX, NeiBZ),
+ VectMulZ(NeiAX, NeiAY, NeiBX, NeiBY));
+ gl.glVertex3f(VertX, VertY, VertZ);
+
+ Xf=(float)(Ri-Ti-1)*Ax + (float)Ti*Bx;
+ Yf=Vr+(float)(Ri-Ti-1)*Ay + (float)Ti*Ay;
+ Xa=Xf+0.001f; Yb=Yf+0.001f;
+ Factor=1-(((Xf2=sqr(Xf))+(Yf2=sqr(Yf)))*AmpVr2);
+ Factor1=1-((sqr(Xa)+Yf2)*AmpVr2);
+ Factor2=1-((Xf2+sqr(Yb))*AmpVr2);
+ VertX=Factor*Xf; VertY=Factor*Yf; VertZ=Factor*Zf;
+ NeiAX=Factor1*Xa-VertX; NeiAY=Factor1*Yf-VertY; NeiAZ=Factor1*Zf-VertZ;
+ NeiBX=Factor2*Xf-VertX; NeiBY=Factor2*Yb-VertY; NeiBZ=Factor2*Zf-VertZ;
+ gl.glNormal3f(VectMulX(NeiAY, NeiAZ, NeiBY, NeiBZ),
+ VectMulY(NeiAX, NeiAZ, NeiBX, NeiBZ),
+ VectMulZ(NeiAX, NeiAY, NeiBX, NeiBY));
+ gl.glVertex3f(VertX, VertY, VertZ);
+
+ }
+ Xf=(float)Ri*Bx;
+ Yf=Vr+(float)Ri*Ay;
+ Xa=Xf+0.001f; Yb=Yf+0.001f;
+ Factor=1-(((Xf2=sqr(Xf))+(Yf2=sqr(Yf)))*AmpVr2);
+ Factor1=1-((sqr(Xa)+Yf2)*AmpVr2);
+ Factor2=1-((Xf2+sqr(Yb))*AmpVr2);
+ VertX=Factor*Xf; VertY=Factor*Yf; VertZ=Factor*Zf;
+ NeiAX=Factor1*Xa-VertX; NeiAY=Factor1*Yf-VertY; NeiAZ=Factor1*Zf-VertZ;
+ NeiBX=Factor2*Xf-VertX; NeiBY=Factor2*Yb-VertY; NeiBZ=Factor2*Zf-VertZ;
+ gl.glNormal3f(VectMulX(NeiAY, NeiAZ, NeiBY, NeiBZ),
+ VectMulY(NeiAX, NeiAZ, NeiBX, NeiBZ),
+ VectMulZ(NeiAX, NeiAY, NeiBX, NeiBY));
+ gl.glVertex3f(VertX, VertY, VertZ);
+ gl.glEnd();
+ }
+ }
+
+ final void SQUARE(float Edge, float Amp, int Divisions, float Z)
+ {
+ int Xi,Yi;
+ float Xf,Yf,Y,Xf2,Yf2,Y2,Xa,Yb;
+ float Factor,Factor1,Factor2;
+ float VertX,VertY,VertZ,NeiAX,NeiAY,NeiAZ,NeiBX,NeiBY,NeiBZ;
+ float Zf=(Edge)*(Z);
+ float AmpVr2=(Amp)/sqr((Edge)*SQRT2/2);
+
+ for (Yi=0; Yi<(Divisions); Yi++) {
+ Yf=-((Edge)/2.0f) + ((float)Yi)/(Divisions)*(Edge);
+ Yf2=sqr(Yf);
+ Y=Yf+1.0f/(Divisions)*(Edge);
+ Y2=sqr(Y);
+ gl.glBegin(GL_QUAD_STRIP);
+ for (Xi=0; Xi<=(Divisions); Xi++) {
+ Xf=-((Edge)/2.0f) + ((float)Xi)/(Divisions)*(Edge);
+ Xf2=sqr(Xf);
+
+ Xa=Xf+0.001f; Yb=Y+0.001f;
+ Factor=1-((Xf2+Y2)*AmpVr2);
+ Factor1=1-((sqr(Xa)+Y2)*AmpVr2);
+ Factor2=1-((Xf2+sqr(Yb))*AmpVr2);
+ VertX=Factor*Xf; VertY=Factor*Y; VertZ=Factor*Zf;
+ NeiAX=Factor1*Xa-VertX; NeiAY=Factor1*Y-VertY; NeiAZ=Factor1*Zf-VertZ;
+ NeiBX=Factor2*Xf-VertX; NeiBY=Factor2*Yb-VertY; NeiBZ=Factor2*Zf-VertZ;
+ gl.glNormal3f(VectMulX(NeiAY, NeiAZ, NeiBY, NeiBZ),
+ VectMulY(NeiAX, NeiAZ, NeiBX, NeiBZ),
+ VectMulZ(NeiAX, NeiAY, NeiBX, NeiBY));
+ gl.glVertex3f(VertX, VertY, VertZ);
+
+ Xa=Xf+0.001f; Yb=Yf+0.001f;
+ Factor=1-((Xf2+Yf2)*AmpVr2);
+ Factor1=1-((sqr(Xa)+Yf2)*AmpVr2);
+ Factor2=1-((Xf2+sqr(Yb))*AmpVr2);
+ VertX=Factor*Xf; VertY=Factor*Yf; VertZ=Factor*Zf;
+ NeiAX=Factor1*Xa-VertX; NeiAY=Factor1*Yf-VertY; NeiAZ=Factor1*Zf-VertZ;
+ NeiBX=Factor2*Xf-VertX; NeiBY=Factor2*Yb-VertY; NeiBZ=Factor2*Zf-VertZ;
+ gl.glNormal3f(VectMulX(NeiAY, NeiAZ, NeiBY, NeiBZ),
+ VectMulY(NeiAX, NeiAZ, NeiBX, NeiBZ),
+ VectMulZ(NeiAX, NeiAY, NeiBX, NeiBY));
+ gl.glVertex3f(VertX, VertY, VertZ);
+ }
+ gl.glEnd();
+ }
+ }
+
+ final void PENTAGON(float Edge, float Amp, int Divisions, float Z)
+ {
+ int Ri,Ti,Fi;
+ float Xf,Yf,Xa,Yb,Xf2,Yf2;
+ float x[]=new float[6],y[]=new float[6];
+ float Factor,Factor1,Factor2;
+ float VertX,VertY,VertZ,NeiAX,NeiAY,NeiAZ,NeiBX,NeiBY,NeiBZ;
+ float Zf=(Edge)*(Z);
+ float AmpVr2=(Amp)/sqr((Edge)*cossec36_2);
+
+ for(Fi=0;Fi<6;Fi++) {
+ x[Fi]=-(float)Math.cos( Fi*2*Pi/5 + Pi/10 )/(Divisions)*cossec36_2*(Edge);
+ y[Fi]=(float)Math.sin( Fi*2*Pi/5 + Pi/10 )/(Divisions)*cossec36_2*(Edge);
+ }
+
+ for (Ri=1; Ri<=(Divisions); Ri++) {
+ for (Fi=0; Fi<5; Fi++) {
+ gl.glBegin(GL_TRIANGLE_STRIP);
+ for (Ti=0; Ti<Ri; Ti++) {
+ Xf=(float)(Ri-Ti)*x[Fi] + (float)Ti*x[Fi+1];
+ Yf=(float)(Ri-Ti)*y[Fi] + (float)Ti*y[Fi+1];
+ Xa=Xf+0.001f; Yb=Yf+0.001f;
+ Factor=1-(((Xf2=sqr(Xf))+(Yf2=sqr(Yf)))*AmpVr2);
+ Factor1=1-((sqr(Xa)+Yf2)*AmpVr2);
+ Factor2=1-((Xf2+sqr(Yb))*AmpVr2);
+ VertX=Factor*Xf; VertY=Factor*Yf; VertZ=Factor*Zf;
+ NeiAX=Factor1*Xa-VertX; NeiAY=Factor1*Yf-VertY; NeiAZ=Factor1*Zf-VertZ;
+ NeiBX=Factor2*Xf-VertX; NeiBY=Factor2*Yb-VertY; NeiBZ=Factor2*Zf-VertZ;
+ gl.glNormal3f(VectMulX(NeiAY, NeiAZ, NeiBY, NeiBZ),
+ VectMulY(NeiAX, NeiAZ, NeiBX, NeiBZ),
+ VectMulZ(NeiAX, NeiAY, NeiBX, NeiBY));
+ gl.glVertex3f(VertX, VertY, VertZ);
+
+ Xf=(float)(Ri-Ti-1)*x[Fi] + (float)Ti*x[Fi+1];
+ Yf=(float)(Ri-Ti-1)*y[Fi] + (float)Ti*y[Fi+1];
+ Xa=Xf+0.001f; Yb=Yf+0.001f;
+ Factor=1-(((Xf2=sqr(Xf))+(Yf2=sqr(Yf)))*AmpVr2);
+ Factor1=1-((sqr(Xa)+Yf2)*AmpVr2);
+ Factor2=1-((Xf2+sqr(Yb))*AmpVr2);
+ VertX=Factor*Xf; VertY=Factor*Yf; VertZ=Factor*Zf;
+ NeiAX=Factor1*Xa-VertX; NeiAY=Factor1*Yf-VertY; NeiAZ=Factor1*Zf-VertZ;
+ NeiBX=Factor2*Xf-VertX; NeiBY=Factor2*Yb-VertY; NeiBZ=Factor2*Zf-VertZ;
+ gl.glNormal3f(VectMulX(NeiAY, NeiAZ, NeiBY, NeiBZ),
+ VectMulY(NeiAX, NeiAZ, NeiBX, NeiBZ),
+ VectMulZ(NeiAX, NeiAY, NeiBX, NeiBY));
+ gl.glVertex3f(VertX, VertY, VertZ);
+
+ }
+ Xf=(float)Ri*x[Fi+1];
+ Yf=(float)Ri*y[Fi+1];
+ Xa=Xf+0.001f; Yb=Yf+0.001f;
+ Factor=1-(((Xf2=sqr(Xf))+(Yf2=sqr(Yf)))*AmpVr2);
+ Factor1=1-((sqr(Xa)+Yf2)*AmpVr2);
+ Factor2=1-((Xf2+sqr(Yb))*AmpVr2);
+ VertX=Factor*Xf; VertY=Factor*Yf; VertZ=Factor*Zf;
+ NeiAX=Factor1*Xa-VertX; NeiAY=Factor1*Yf-VertY; NeiAZ=Factor1*Zf-VertZ;
+ NeiBX=Factor2*Xf-VertX; NeiBY=Factor2*Yb-VertY; NeiBZ=Factor2*Zf-VertZ;
+ gl.glNormal3f(VectMulX(NeiAY, NeiAZ, NeiBY, NeiBZ),
+ VectMulY(NeiAX, NeiAZ, NeiBX, NeiBZ),
+ VectMulZ(NeiAX, NeiAY, NeiBX, NeiBY));
+ gl.glVertex3f(VertX, VertY, VertZ);
+ gl.glEnd();
+ }
+ }
+ }
+
+ void draw_tetra( )
+ {
+ int list;
+
+ list = gl.glGenLists( 1 );
+ gl.glNewList( list, GL_COMPILE );
+ TRIANGLE(2,seno,edgedivisions,0.5f/SQRT6);
+ gl.glEndList();
+
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[0]);
+ gl.glCallList(list);
+ gl.glPushMatrix();
+ gl.glRotatef(180,0,0,1);
+ gl.glRotatef(-tetraangle,1,0,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[1]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glRotatef(180,0,1,0);
+ gl.glRotatef(-180+tetraangle,0.5f,SQRT3/2,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[2]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glRotatef(180,0,1,0);
+ gl.glRotatef(-180+tetraangle,0.5f,-SQRT3/2,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[3]);
+ gl.glCallList(list);
+
+ gl.glDeleteLists(list,1);
+ }
+
+ void draw_cube()
+ {
+ int list;
+
+ list = gl.glGenLists( 1 );
+ gl.glNewList( list, GL_COMPILE );
+ SQUARE(2.0f, seno, edgedivisions, 0.5f);
+ gl.glEndList();
+
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[0]);
+ gl.glCallList(list);
+ gl.glRotatef(cubeangle,1,0,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[1]);
+ gl.glCallList(list);
+ gl.glRotatef(cubeangle,1,0,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[2]);
+ gl.glCallList(list);
+ gl.glRotatef(cubeangle,1,0,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[3]);
+ gl.glCallList(list);
+ gl.glRotatef(cubeangle,0,1,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[4]);
+ gl.glCallList(list);
+ gl.glRotatef(2*cubeangle,0,1,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[5]);
+ gl.glCallList(list);
+
+ gl.glDeleteLists(list,1);
+ }
+
+ void draw_octa()
+ {
+ int list;
+
+ list = gl.glGenLists( 1 );
+ gl.glNewList( list, GL_COMPILE );
+ TRIANGLE(2,seno,edgedivisions,1/SQRT6);
+ gl.glEndList();
+
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[0]);
+ gl.glCallList(list);
+ gl.glPushMatrix();
+ gl.glRotatef(180,0,0,1);
+ gl.glRotatef(-180+octaangle,1,0,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[1]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glRotatef(180,0,1,0);
+ gl.glRotatef(-octaangle,0.5f,SQRT3/2,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[2]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glRotatef(180,0,1,0);
+ gl.glRotatef(-octaangle,0.5f,-SQRT3/2,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[3]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glRotatef(180,1,0,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[4]);
+ gl.glCallList(list);
+ gl.glPushMatrix();
+ gl.glRotatef(180,0,0,1);
+ gl.glRotatef(-180+octaangle,1,0,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[5]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glRotatef(180,0,1,0);
+ gl.glRotatef(-octaangle,0.5f,SQRT3/2,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[6]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glRotatef(180,0,1,0);
+ gl.glRotatef(-octaangle,0.5f,-SQRT3/2,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[7]);
+ gl.glCallList(list);
+
+ gl.glDeleteLists(list,1);
+ }
+
+ void draw_dodeca()
+ {
+ int list;
+
+
+ list = gl.glGenLists( 1 );
+ gl.glNewList( list, GL_COMPILE );
+ PENTAGON(1,seno,edgedivisions,sqr(TAU) * (float)Math.sqrt((TAU+2)/5) / 2);
+ gl.glEndList();
+
+ gl.glPushMatrix();
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[0]);
+ gl.glCallList(list);
+ gl.glRotatef(180,0,0,1);
+ gl.glPushMatrix();
+ gl.glRotatef(-dodecaangle,1,0,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[1]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glRotatef(-dodecaangle,cos72,sin72,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[2]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glRotatef(-dodecaangle,cos72,-sin72,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[3]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glRotatef(dodecaangle,cos36,-sin36,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[4]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glRotatef(dodecaangle,cos36,sin36,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[5]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glRotatef(180,1,0,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[6]);
+ gl.glCallList(list);
+ gl.glRotatef(180,0,0,1);
+ gl.glPushMatrix();
+ gl.glRotatef(-dodecaangle,1,0,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[7]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glRotatef(-dodecaangle,cos72,sin72,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[8]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glRotatef(-dodecaangle,cos72,-sin72,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[9]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glRotatef(dodecaangle,cos36,-sin36,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[10]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glRotatef(dodecaangle,cos36,sin36,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[11]);
+ gl.glCallList(list);
+
+ gl.glDeleteLists(list,1);
+ }
+
+ void draw_ico()
+ {
+ int list;
+
+ list = gl.glGenLists( 1 );
+ gl.glNewList( list, GL_COMPILE );
+ TRIANGLE(1.5f,seno,edgedivisions,(3*SQRT3+SQRT15)/12);
+ gl.glEndList();
+
+ gl.glPushMatrix();
+
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[0]);
+ gl.glCallList(list);
+ gl.glPushMatrix();
+ gl.glRotatef(180,0,0,1);
+ gl.glRotatef(-icoangle,1,0,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[1]);
+ gl.glCallList(list);
+ gl.glPushMatrix();
+ gl.glRotatef(180,0,1,0);
+ gl.glRotatef(-180+icoangle,0.5f,SQRT3/2,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[2]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glRotatef(180,0,1,0);
+ gl.glRotatef(-180+icoangle,0.5f,-SQRT3/2,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[3]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glRotatef(180,0,1,0);
+ gl.glRotatef(-180+icoangle,0.5f,SQRT3/2,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[4]);
+ gl.glCallList(list);
+ gl.glPushMatrix();
+ gl.glRotatef(180,0,1,0);
+ gl.glRotatef(-180+icoangle,0.5f,SQRT3/2,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[5]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glRotatef(180,0,0,1);
+ gl.glRotatef(-icoangle,1,0,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[6]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glRotatef(180,0,1,0);
+ gl.glRotatef(-180+icoangle,0.5f,-SQRT3/2,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[7]);
+ gl.glCallList(list);
+ gl.glPushMatrix();
+ gl.glRotatef(180,0,1,0);
+ gl.glRotatef(-180+icoangle,0.5f,-SQRT3/2,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[8]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glRotatef(180,0,0,1);
+ gl.glRotatef(-icoangle,1,0,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[9]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glRotatef(180,1,0,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[10]);
+ gl.glCallList(list);
+ gl.glPushMatrix();
+ gl.glRotatef(180,0,0,1);
+ gl.glRotatef(-icoangle,1,0,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[11]);
+ gl.glCallList(list);
+ gl.glPushMatrix();
+ gl.glRotatef(180,0,1,0);
+ gl.glRotatef(-180+icoangle,0.5f,SQRT3/2,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[12]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glRotatef(180,0,1,0);
+ gl.glRotatef(-180+icoangle,0.5f,-SQRT3/2,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[13]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glRotatef(180,0,1,0);
+ gl.glRotatef(-180+icoangle,0.5f,SQRT3/2,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[14]);
+ gl.glCallList(list);
+ gl.glPushMatrix();
+ gl.glRotatef(180,0,1,0);
+ gl.glRotatef(-180+icoangle,0.5f,SQRT3/2,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[15]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glRotatef(180,0,0,1);
+ gl.glRotatef(-icoangle,1,0,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[16]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glRotatef(180,0,1,0);
+ gl.glRotatef(-180+icoangle,0.5f,-SQRT3/2,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[17]);
+ gl.glCallList(list);
+ gl.glPushMatrix();
+ gl.glRotatef(180,0,1,0);
+ gl.glRotatef(-180+icoangle,0.5f,-SQRT3/2,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[18]);
+ gl.glCallList(list);
+ gl.glPopMatrix();
+ gl.glRotatef(180,0,0,1);
+ gl.glRotatef(-icoangle,1,0,0);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, MaterialColor[19]);
+ gl.glCallList(list);
+
+ gl.glDeleteLists(list,1);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ gl.glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
+
+ gl.glPushMatrix();
+
+ gl.glTranslatef( 0.0f, 0.0f, -10.0f );
+ gl.glScalef( Scale*WindH/WindW, Scale, Scale );
+ gl.glTranslatef(2.5f*WindW/WindH*(float)Math.sin(step*1.11f),2.5f*(float)Math.cos(step*1.25f*1.11f),0);
+ gl.glRotatef(step*100,1,0,0);
+ gl.glRotatef(step*95,0,1,0);
+ gl.glRotatef(step*90,0,0,1);
+
+ seno=((float)Math.sin(step)+1.0f/3.0f)*(4.0f/5.0f)*Magnitude;
+
+ switch(object) {
+ case 1:
+ draw_tetra();
+ break;
+ case 2:
+ draw_cube();
+ break;
+ case 3:
+ draw_octa();
+ break;
+ case 4:
+ draw_dodeca();
+ break;
+ case 5:
+ draw_ico();
+ break;
+ }
+
+ gl.glPopMatrix();
+
+
+ if(!isAnApplet && doSnapshot)
+ {
+ doSnapshot=false;
+ textgrab.grabPixels(GL_BACK,
+ 0, 0, cvsGetWidth(), cvsGetHeight());
+ textgrab.write2File("morph3d.tga");
+ }
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+
+ step+=0.05f;
+ }
+
+ public void reshape(int width, int height)
+ {
+ WindW=width; WindH=height;
+ gl.glViewport(0, 0, WindW, WindH);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ gl.glFrustum( -1.0f, 1.0f, -1.0f, 1.0f, 5.0f, 15.0f );
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+ final void pinit()
+ {
+ switch(object) {
+ case 1:
+ MaterialColor[0]=MaterialRed;
+ MaterialColor[1]=MaterialGreen;
+ MaterialColor[2]=MaterialBlue;
+ MaterialColor[3]=MaterialWhite;
+ edgedivisions=tetradivisions;
+ Magnitude=2.5f;
+ break;
+ case 2:
+ MaterialColor[0]=MaterialRed;
+ MaterialColor[1]=MaterialGreen;
+ MaterialColor[2]=MaterialCyan;
+ MaterialColor[3]=MaterialMagenta;
+ MaterialColor[4]=MaterialYellow;
+ MaterialColor[5]=MaterialBlue;
+ edgedivisions=cubedivisions;
+ Magnitude=2.0f;
+ break;
+ case 3:
+ MaterialColor[0]=MaterialRed;
+ MaterialColor[1]=MaterialGreen;
+ MaterialColor[2]=MaterialBlue;
+ MaterialColor[3]=MaterialWhite;
+ MaterialColor[4]=MaterialCyan;
+ MaterialColor[5]=MaterialMagenta;
+ MaterialColor[6]=MaterialGray;
+ MaterialColor[7]=MaterialYellow;
+ edgedivisions=octadivisions;
+ Magnitude=2.5f;
+ break;
+ case 4:
+ MaterialColor[ 0]=MaterialRed;
+ MaterialColor[ 1]=MaterialGreen;
+ MaterialColor[ 2]=MaterialCyan;
+ MaterialColor[ 3]=MaterialBlue;
+ MaterialColor[ 4]=MaterialMagenta;
+ MaterialColor[ 5]=MaterialYellow;
+ MaterialColor[ 6]=MaterialGreen;
+ MaterialColor[ 7]=MaterialCyan;
+ MaterialColor[ 8]=MaterialRed;
+ MaterialColor[ 9]=MaterialMagenta;
+ MaterialColor[10]=MaterialBlue;
+ MaterialColor[11]=MaterialYellow;
+ edgedivisions=dodecadivisions;
+ Magnitude=2.0f;
+ break;
+ case 5:
+ MaterialColor[ 0]=MaterialRed;
+ MaterialColor[ 1]=MaterialGreen;
+ MaterialColor[ 2]=MaterialBlue;
+ MaterialColor[ 3]=MaterialCyan;
+ MaterialColor[ 4]=MaterialYellow;
+ MaterialColor[ 5]=MaterialMagenta;
+ MaterialColor[ 6]=MaterialRed;
+ MaterialColor[ 7]=MaterialGreen;
+ MaterialColor[ 8]=MaterialBlue;
+ MaterialColor[ 9]=MaterialWhite;
+ MaterialColor[10]=MaterialCyan;
+ MaterialColor[11]=MaterialYellow;
+ MaterialColor[12]=MaterialMagenta;
+ MaterialColor[13]=MaterialRed;
+ MaterialColor[14]=MaterialGreen;
+ MaterialColor[15]=MaterialBlue;
+ MaterialColor[16]=MaterialCyan;
+ MaterialColor[17]=MaterialYellow;
+ MaterialColor[18]=MaterialMagenta;
+ MaterialColor[19]=MaterialGray;
+ edgedivisions=icodivisions;
+ Magnitude=2.5f;
+ break;
+ }
+ if (mono) {
+ int loop;
+ for (loop=0; loop<20; loop++) MaterialColor[loop]=MaterialGray;
+ }
+ if (smooth) {
+ gl.glShadeModel( GL_SMOOTH );
+ } else {
+ gl.glShadeModel( GL_FLAT );
+ }
+
+ }
+
+ public void init()
+ {
+ textgrab = new TGATextureGrabber(gl);
+ reshape(getSize().width, getSize().height);
+
+ object=1;
+
+ MaterialColor = new float[20][];
+
+ gl.glClearDepth(1.0f);
+ gl.glClearColor( 0.0f, 0.0f, 0.0f, 1.0f );
+ gl.glColor3f( 1.0f, 1.0f, 1.0f );
+
+ gl.glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
+ glj.gljSwap();
+
+ gl.glLightfv(GL_LIGHT0, GL_AMBIENT, ambient);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse);
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, position0);
+ gl.glLightfv(GL_LIGHT1, GL_AMBIENT, ambient);
+ gl.glLightfv(GL_LIGHT1, GL_DIFFUSE, diffuse);
+ gl.glLightfv(GL_LIGHT1, GL_POSITION, position1);
+ gl.glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);
+ gl.glLightModelfv(GL_LIGHT_MODEL_TWO_SIDE, lmodel_twoside);
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_LIGHT1);
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glEnable(GL_NORMALIZE);
+
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_SHININESS, front_shininess);
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, front_specular);
+
+ gl.glHint(GL_FOG_HINT, GL_FASTEST);
+ gl.glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST);
+ gl.glHint(GL_POLYGON_SMOOTH_HINT, GL_FASTEST);
+
+ pinit();
+
+ menu = new PopupMenu("Options");
+ menu.add(MENUE_0);
+ menu.add(MENUE_1);
+ menu.add(MENUE_2);
+ menu.add(MENUE_3);
+ menu.add(MENUE_4);
+ menu.add(MENUE_5);
+ menu.add(MENUE_6);
+ if(!isAnApplet)
+ menu.add(MENU_SNAPSHOT);
+ menu.addActionListener(this);
+ add(menu);
+
+ addMouseListener(this);
+
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered(MouseEvent evt)
+ {
+ }
+
+ public void mouseExited(MouseEvent evt)
+ {
+ }
+
+ public void mousePressed(MouseEvent evt)
+ {
+ if (!menu_showing)
+ {
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ menu_showing = true;
+ save_suspended = isSuspended();
+ if (!save_suspended)
+ {
+ setSuspended(true);
+ repaint(100);
+ try
+ {
+ Thread.currentThread().sleep(200);
+ }
+ catch (Exception e)
+ { }
+ }
+ menu.show(this,evt.getX(),evt.getY());
+ }
+ else
+ {
+ // Must be left button.
+ if (isSuspended()) repaint();
+ }
+ }
+ else
+ {
+ menu_showing = false;
+ setSuspended(save_suspended);
+ }
+ }
+
+ public void mouseReleased(MouseEvent evt)
+ {
+ }
+
+ public void mouseClicked(MouseEvent evt)
+ {
+ }
+
+ // Method required for the implementation of ActionListener
+ public void actionPerformed(ActionEvent evt)
+ {
+ String c = evt.getActionCommand();
+ if (c.equals(MENUE_0))
+ {
+ object=1;
+ }
+ else if (c.equals(MENUE_1))
+ {
+ object=2;
+ }
+ else if (c.equals(MENUE_2))
+ {
+ object=3;
+ }
+ else if (c.equals(MENUE_3))
+ {
+ object=4;
+ }
+ else if (c.equals(MENUE_4))
+ {
+ object=5;
+ }
+ else if (c.equals(MENUE_5))
+ {
+ mono=!mono;
+ }
+ else if (c.equals(MENUE_6))
+ {
+ smooth=!smooth;
+ }
+ else if (c.equals(MENU_SNAPSHOT))
+ {
+ doSnapshot=true;
+ }
+ if (menu_showing)
+ {
+ menu_showing = false;
+ setSuspended(save_suspended);
+ }
+ pinit();
+ }
+ }
+}
+
diff --git a/demos/MiscDemos/morph3d_plugin13.html b/demos/MiscDemos/morph3d_plugin13.html
new file mode 100644
index 0000000..1472b89
--- /dev/null
+++ b/demos/MiscDemos/morph3d_plugin13.html
@@ -0,0 +1,48 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>OpenGL Demo - ported by Sven Goethel</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Teapots applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Sven Goethel
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "morph3d.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "morph3d.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "morph3d.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "morph3d.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/MiscDemos/nurbs.html b/demos/MiscDemos/nurbs.html
new file mode 100644
index 0000000..6f0f2fe
--- /dev/null
+++ b/demos/MiscDemos/nurbs.html
@@ -0,0 +1,14 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<applet code="nurbs.class" width=500 height=300>
+<param name=frames value="55">
+</applet>
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/MiscDemos/nurbs.java b/demos/MiscDemos/nurbs.java
new file mode 100644
index 0000000..52ecd99
--- /dev/null
+++ b/demos/MiscDemos/nurbs.java
@@ -0,0 +1,314 @@
+/**
+ * @(#) DrawColoredPrimitives2.java
+ * @(#) author: Joe Zimmerman (converted to Java by Sven Goethel)
+ */
+
+/* This program is free software under the license of LGPL */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+public class nurbs extends SimpleGLAnimApplet1
+{
+ public void init()
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new gldemo(d.width, d.height);
+ add("Center", canvas);
+ }
+
+ public static void main( String args[] )
+ {
+ Frame mainFrame = new Frame("nurbs");
+
+ nurbs applet = new nurbs();
+
+ applet.setSize(400, 400);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ }
+
+
+ private class gldemo extends GLAnimCanvas
+ implements MouseListener, ActionListener
+ {
+ private PopupMenu menu = null;
+ private boolean menu_showing = false;
+ private boolean save_suspended = false;
+ private final String VIEW_ROTATION = "Toggle Rotation";
+ private final String VIEW_FRONT = "View Front";
+ private final String VIEW_TOP = "View Top";
+ private final String VIEW_BOTTOM = "View Bottom";
+
+ final float M_PI = 3.14159265f;
+ final float M_PI_2 = 1.57079632f;
+ float rotate=0;
+ float rotationStep = 1;
+ boolean rotationOn = true;
+ int view = 0; /* 0 = front, 1 = top, 2 = bottom */
+
+ static final int S_NUMPOINTS = 13;
+ static final int S_ORDER = 3;
+ static final int S_NUMKNOTS = (S_NUMPOINTS + S_ORDER);
+ static final int T_NUMPOINTS = 3;
+ static final int T_ORDER = 3;
+ static final int T_NUMKNOTS = (T_NUMPOINTS + T_ORDER);
+ static final float SQRT2 = 1.41421356237309504880f;
+
+ /* initialized local data */
+
+ float sknots[/*S_NUMKNOTS*/] =
+ {-1.0f, -1.0f, -1.0f, 0.0f, 1.0f, 2.0f, 3.0f, 4.0f,
+ 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f, 9.0f, 9.0f};
+ float tknots[/*T_NUMKNOTS*/] = {1.0f, 1.0f, 1.0f, 2.0f, 2.0f, 2.0f};
+
+ // float ctlpoints[/*S_NUMPOINTS*/][/*T_NUMPOINTS*/][/*4*/] = {
+ float ctlpoints[] = {
+ 4f,2f,2f,1f, 4f,1.6f,2.5f,1f , 4f,2f,3.0f,1f ,
+ 5f,4f,2f,1f , 5f,4f,2.5f,1f , 5f,4f,3.0f,1f ,
+ 6f,5f,2f,1f , 6f,5f,2.5f,1f , 6f,5f,3.0f,1f ,
+ SQRT2*6f,SQRT2*6f,SQRT2*2f,SQRT2 ,
+ SQRT2*6f,SQRT2*6f,SQRT2*2.5f,SQRT2 ,
+ SQRT2*6f,SQRT2*6f,SQRT2*3.0f,SQRT2 ,
+ 5.2f,6.7f,2f,1f , 5.2f,6.7f,2.5f,1f , 5.2f,6.7f,3.0f,1f ,
+ SQRT2*4f,SQRT2*6f,SQRT2*2f,SQRT2 ,
+ SQRT2*4f,SQRT2*6f,SQRT2*2.5f,SQRT2 ,
+ SQRT2*4f,SQRT2*6f,SQRT2*3.0f,SQRT2 ,
+ 4f,5.2f,2f,1f , 4f,4.6f,2.5f,1f , 4f,5.2f,3.0f,1f ,
+ SQRT2*4f,SQRT2*6f,SQRT2*2f,SQRT2 ,
+ SQRT2*4f,SQRT2*6f,SQRT2*2.5f,SQRT2 ,
+ SQRT2*4f,SQRT2*6f,SQRT2*3.0f,SQRT2 ,
+ 2.8f,6.7f,2f,1f , 2.8f,6.7f,2.5f,1f , 2.8f,6.7f,3.0f,1f ,
+ SQRT2*2f,SQRT2*6f,SQRT2*2f,SQRT2 ,
+ SQRT2*2f,SQRT2*6f,SQRT2*2.5f,SQRT2 ,
+ SQRT2*2f,SQRT2*6f,SQRT2*3.0f,SQRT2 ,
+ 2f,5f,2f,1f , 2f,5f,2.5f,1f , 2f,5f,3.0f,1f ,
+ 3f,4f,2f,1f , 3f,4f,2.5f,1f , 3f,4f,3.0f,1f ,
+ 4f,2f,2f,1f , 4f,1.6f,2.5f,1f , 4f,2f,3.0f,1f
+ };
+
+
+ int theNurb;
+
+ public gldemo(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ setAnimateFps(30.0);
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ reshape(getSize().width, getSize().height);
+
+ float mat_ambient[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ float mat_diffuse[] = { 1.0f, 0.2f, 1.0f, 1.0f };
+ float mat_specular[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ float mat_shininess[] = { 50.0f };
+
+ float light0_position[] = { 1.0f, 0.1f, 1.0f, 0.0f };
+ float light1_position[] = { -1.0f, 0.1f, 1.0f, 0.0f };
+
+ float lmodel_ambient[] = { 0.3f, 0.3f, 0.3f, 1.0f };
+
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, mat_ambient);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, mat_shininess);
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, light0_position);
+ gl.glLightfv(GL_LIGHT1, GL_POSITION, light1_position);
+ gl.glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);
+
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_LIGHT1);
+ gl.glDepthFunc(GL_LESS);
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glEnable(GL_AUTO_NORMAL);
+
+ theNurb = glu.gluNewNurbsRenderer();
+
+ glu.gluNurbsProperty(theNurb, GLU_SAMPLING_TOLERANCE, 25.0f);
+ glu.gluNurbsProperty(theNurb, GLU_DISPLAY_MODE, GLU_FILL);
+ glj.gljCheckGL();
+
+ menu = new PopupMenu("Options");
+ menu.add(VIEW_ROTATION);
+ menu.add(VIEW_FRONT);
+ menu.add(VIEW_TOP);
+ menu.add(VIEW_BOTTOM);
+ menu.addActionListener(this);
+ add(menu);
+
+ addMouseListener(this);
+ }
+
+ public void doCleanup()
+ {
+ removeMouseListener(this);
+ menu.removeActionListener(this);
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ glu.gluPerspective(90, (float)width/(float)height, 1, 700);
+
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ gl.glViewport(0,0,width,height);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+
+ gl.glTranslatef(0, 0, -7.5f);
+
+ gl.glPushMatrix();
+
+ gl.glTranslatef(-5f, -4.5f, -2.5f);
+
+ if(view==1)
+ {
+ gl.glRotatef(90f, 1, 0, 0);
+ } else if(view==2)
+ {
+ gl.glRotatef(-90f, 1, 0, 0);
+ }
+
+ if(rotationOn)
+ {
+ rotate+=rotationStep;
+ if(rotate>=180.0f || rotate<=0.0f)
+ rotationStep*=-1.0f;
+
+ gl.glRotatef(rotate, 0, 1, 0);
+ } else rotate=0;
+
+ glu.gluBeginSurface(theNurb);
+ glu.gluNurbsSurface(theNurb,
+ S_NUMKNOTS, sknots,
+ T_NUMKNOTS, tknots,
+ 4 * T_NUMPOINTS,
+ 4,
+ ctlpoints,
+ S_ORDER, T_ORDER,
+ GL_MAP2_VERTEX_4);
+ glu.gluEndSurface(theNurb);
+
+ gl.glPopMatrix();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered(MouseEvent evt)
+ {
+ }
+
+ public void mouseExited(MouseEvent evt)
+ {
+ }
+
+ public void mousePressed(MouseEvent evt)
+ {
+ if (!menu_showing)
+ {
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ menu_showing = true;
+ save_suspended = isSuspended();
+ if (!save_suspended)
+ {
+ setSuspended(true);
+ repaint(100);
+ try
+ {
+ Thread.currentThread().sleep(200);
+ }
+ catch (Exception e)
+ { }
+ }
+ menu.show(this,evt.getX(),evt.getY());
+ }
+ else
+ {
+ // Must be left button.
+ if (isSuspended()) repaint();
+ }
+ }
+ else
+ {
+ menu_showing = false;
+ setSuspended(save_suspended);
+ }
+ }
+
+ public void mouseReleased(MouseEvent evt)
+ {
+ }
+
+ public void mouseClicked(MouseEvent evt)
+ {
+ }
+
+ // Method required for the implementation of ActionListener
+ public void actionPerformed(ActionEvent evt)
+ {
+ String c = evt.getActionCommand();
+ if (c.equals(VIEW_ROTATION))
+ {
+ rotationOn=!rotationOn;
+ }
+ else if (c.equals(VIEW_FRONT))
+ {
+ view=0;
+ }
+ else if (c.equals(VIEW_TOP))
+ {
+ view=1;
+ }
+ else if (c.equals(VIEW_BOTTOM))
+ {
+ view=2;
+ }
+ if (menu_showing)
+ {
+ menu_showing = false;
+ setSuspended(save_suspended);
+ }
+ }
+
+
+
+ }
+}
diff --git a/demos/MiscDemos/nurbs_plugin13.html b/demos/MiscDemos/nurbs_plugin13.html
new file mode 100644
index 0000000..ac13d9e
--- /dev/null
+++ b/demos/MiscDemos/nurbs_plugin13.html
@@ -0,0 +1,46 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 500 HEIGHT = 300 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "nurbs.class" WIDTH = 500 HEIGHT = 300 frames = "55" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "nurbs.class" WIDTH = 500 HEIGHT = 300></XMP>
+<PARAM NAME = CODE VALUE = "nurbs.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+<PARAM NAME = frames VALUE ="55">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "nurbs.class" WIDTH = 500 HEIGHT = 300>
+<PARAM NAME = frames VALUE ="55">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/MiscDemos/pngTextureTestApplet.html b/demos/MiscDemos/pngTextureTestApplet.html
new file mode 100644
index 0000000..4887df3
--- /dev/null
+++ b/demos/MiscDemos/pngTextureTestApplet.html
@@ -0,0 +1,16 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<B>Try to drag the mouse (press-button and move) with/without the SHIFT key!</B>
+<br>
+<hr>
+<applet code="pngTextureTestApplet.class" width=600 height=400>
+<param name=frames value="55">
+</applet>
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/MiscDemos/pngTextureTestApplet.java b/demos/MiscDemos/pngTextureTestApplet.java
new file mode 100755
index 0000000..99ea0bb
--- /dev/null
+++ b/demos/MiscDemos/pngTextureTestApplet.java
@@ -0,0 +1,420 @@
+///////////////////////////////////////////////////
+// pngTextureTest in opgl
+///////////////////////////////////////////////////
+// progMaxRheiner
+///////////////////////////////////////////////////
+// 5.12.1999
+///////////////////////////////////////////////////
+
+import gl4java.*;
+import gl4java.awt.*;
+import gl4java.utils.textures.*;
+
+import java.awt.*;
+import java.awt.event.*;
+import java.applet.*;
+import java.net.*;
+
+public class pngTextureTestApplet extends Applet
+{
+ pngTextureTest canvas = null;
+ boolean isAnApplet = true;
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ if(isAnApplet)
+ canvas = new pngTextureTest (d.width, d.height, getCodeBase());
+ else
+ canvas = new pngTextureTest (d.width, d.height, null);
+ add("Center", canvas);
+ }
+
+ public static void main( String args[] ) {
+ pngTextureTestApplet applet =
+ new pngTextureTestApplet();
+
+ Frame f = new Frame("pngTextureTestApplet");
+
+ f.addWindowListener( new WindowAdapter()
+ {
+ public void windowClosed(WindowEvent e)
+ {
+ System.exit(0);
+ }
+ public void windowClosing(WindowEvent e)
+ {
+ windowClosed(e);
+ }
+ }
+ );
+
+ f.setLayout(new BorderLayout());
+ f.add("Center", applet);
+ applet.setSize(500,300);
+ applet.isAnApplet = false;
+ applet.init();
+ applet.start();
+ Dimension ps = applet.getPreferredSize();
+ f.setBounds(-100,-100,99,99);
+ f.setVisible(true);
+ f.setVisible(false);
+ Insets i = f.getInsets();
+ f.setBounds(0,0,
+ ps.width+i.left+i.right,
+ ps.height+i.top+i.bottom);
+ f.setVisible(true);
+ }
+ public void start()
+ {
+ }
+
+
+ public void stop()
+ {
+ }
+
+ class pngTextureTest extends GLCanvas
+ implements MouseListener,MouseMotionListener
+ {
+ float []mPosObjTrans;
+ float []mPosObjRot;
+
+ Point mousePoint;
+ Point oldMousePoint;
+ boolean mouseMoveFlag;
+
+
+ int texName[] = {0};
+ URL base;
+
+ public pngTextureTest (int w, int h, URL base)
+ {
+ super(w, h);
+ this.base=base;
+ }
+
+ public void preInit()
+ {
+ createOwnWindow = true;
+ }
+
+ public void init()
+ {
+ // texture laden
+ PngTextureLoader txtLoader1 = new PngTextureLoader(gl, glu);
+ if(base!=null)
+ txtLoader1.readTexture(base, "tex/DAISYX.png");
+ else {
+ try {
+ txtLoader1.readTexture("tex/DAISYX.png");
+ } catch (Exception ex) {
+ ex.printStackTrace();
+ }
+ }
+
+ byte[] pixels1 = txtLoader1.getTexture();
+
+ if(txtLoader1.isOk())
+ {
+ gl.glEnable(GL_TEXTURE_2D);
+
+ // JAU: let's show us the scaled,
+ // and the tricky one using glTexSubImage2D
+ gl.glGenTextures(1,texName);
+ gl.glBindTexture(GL_TEXTURE_2D,texName[0]);
+
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL_CLAMP);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,GL_CLAMP);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
+
+ txtLoader1.texImage2DNonScaled(true);
+ // The Scaled Way
+ // txtLoader1.texImage2DScaled2Pow2();
+
+ gl.glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
+ System.out.println("texture succesfully loaded !");
+ System.out.println("texture: "+txtLoader1);
+ }
+ // cameraMatrix init
+ mPosObjTrans=new float[16];
+ for(int i=0;i<16;i++)
+ mPosObjTrans[i]=0f;
+ mPosObjTrans[0]=mPosObjTrans[5]=mPosObjTrans[10]=mPosObjTrans[15]=1f;
+
+ mPosObjRot=new float[16];
+ for(int i=0;i<16;i++)
+ mPosObjRot[i]=0f;
+ mPosObjRot[0]=mPosObjRot[5]=mPosObjRot[10]=mPosObjRot[15]=1f;
+
+ TranlateObj(0f,0f,-10f);
+
+ gl.glShadeModel (GL_SMOOTH);
+ gl.glEnable(GL_DEPTH_TEST);
+
+ gl.glClearColor(0.2f, 0.2f, 0.2f, 1.0f);
+ gl.glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
+ glj.gljCheckGL();
+
+ canvas.addMouseListener(this);
+ canvas.addMouseMotionListener(this);
+ mouseMoveFlag=false;
+
+ reshape(getSize().width, getSize().height);
+ }
+
+ public void display()
+ {
+ int i;
+
+ /* Standard GL4Java Init */
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ // just render it
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ SetCamera();
+
+ DrawScene();
+
+ /* For your animation dutys ;-) */
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ public void reshape(int w, int h)
+ {
+ gl.glMatrixMode (GL_MODELVIEW);
+ gl.glViewport (0, 0, w, h);
+ gl.glLoadIdentity();
+ SetCamera();
+ }
+
+
+ public void drawGrid(float x0, float y0,
+ float width, float height, float step)
+ {
+ float i,j;
+
+ /* draw grid */
+ gl.glBegin(GL_LINES);
+ for(i=x0;i<width;i+=step)
+ for(j=y0;j<height;j+=step)
+ {
+ if(i==0f && j==0f)
+ gl.glColor3f (1f,0f,0f);
+ else
+ gl.glColor3f (0.6f,0.5f,0.5f);
+ gl.glVertex2f(0f,j);
+ gl.glVertex2f(width,j);
+ gl.glVertex2f(i,height);
+ gl.glVertex2f(i,0f);
+ }
+ gl.glEnd();
+ }
+
+ void DrawScene()
+ {
+ gl.glMatrixMode (GL_MODELVIEW);
+ gl.glLoadIdentity ();
+
+ // kamera setzen
+ gl.glLoadMatrixf(mPosObjTrans);
+ gl.glMultMatrixf(mPosObjRot);
+
+ gl.glPushMatrix();
+ gl.glDisable(GL_TEXTURE_2D);
+ drawGrid(0f, 0f, 10f, 10f, 0.5f);
+ gl.glPopMatrix();
+
+ // obj zeichnen
+
+ gl.glPushMatrix();
+ gl.glScalef(2f,2f,2f);
+ gl.glColor3f(1f,0f,0f);
+ gl.glDisable(GL_TEXTURE_2D);
+ DrawObj();
+ gl.glPopMatrix();
+
+ gl.glEnable(GL_BLEND);
+ gl.glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
+
+ if(texName[0]!=0)
+ gl.glEnable(GL_TEXTURE_2D);
+
+ gl.glColor3f(1f,1f,1f);
+
+ gl.glPushMatrix();
+ gl.glScalef(3f,3f,3f);
+ gl.glTranslatef(-1f,0f,1f);
+ DrawObj();
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glScalef(3f,3f,3f);
+ gl.glTranslatef(1f,0f,1f);
+ DrawObj();
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glScalef(3f,3f,3f);
+ gl.glTranslatef(-2f,1f,1f);
+ Billboard();
+ DrawObj();
+ gl.glPopMatrix();
+
+ gl.glDisable(GL_BLEND);
+ }
+
+ void DrawObj()
+ {
+ gl.glPushMatrix();
+ gl.glBegin(GL_QUADS);
+ gl.glNormal3f(0f,0f,1f);
+ gl.glTexCoord2f(0f,0f);
+ gl.glVertex3f(-.5f,-.5f,0f);
+
+ gl.glNormal3f(0f,0f,1f);
+ gl.glTexCoord2f(0f,1f);
+ gl.glVertex3f(.5f,-.5f,0f);
+
+ gl.glNormal3f(0f,0f,1f);
+ gl.glTexCoord2f(1f,1f);
+ gl.glVertex3f(.5f,.5f,0f);
+
+ gl.glNormal3f(0f,0f,1f);
+ gl.glTexCoord2f(1f,0f);
+ gl.glVertex3f(-.5f,.5f,0f);
+ gl.glEnd();
+ gl.glPopMatrix();
+ }
+
+ void SetCamera()
+ {
+ Dimension dim=getSize();
+ float aspect=(float)dim.width/(float)dim.height;
+
+ gl.glMatrixMode (GL_PROJECTION);
+ gl.glLoadIdentity ();
+ glu.gluPerspective(60f,aspect,.01,100);
+ }
+
+ void RotateObj(float degree,
+ float axisX,
+ float axisY,
+ float axisZ)
+ {
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ gl.glMatrixMode (GL_MODELVIEW);
+ gl.glLoadIdentity ();
+
+ // kamera setzen
+ gl.glRotatef(degree,axisX,axisY,axisZ);
+ gl.glMultMatrixf(mPosObjRot);
+ gl.glGetFloatv(GL_MODELVIEW_MATRIX,mPosObjRot);
+
+ repaint();
+ }
+
+ void TranlateObj(float x,float y,float z)
+ {
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ gl.glMatrixMode (GL_MODELVIEW);
+ gl.glLoadIdentity ();
+
+ // kamera setzen
+ gl.glLoadMatrixf(mPosObjTrans);
+ gl.glTranslatef(x,y,z);
+ gl.glGetFloatv(GL_MODELVIEW_MATRIX,mPosObjTrans);
+
+ repaint();
+ }
+
+ // entfernt rotationen aus aktueller matrix
+ double Billboard()
+ {
+ float[] mat=new float[16];
+
+ gl.glGetFloatv(GL_MODELVIEW_MATRIX,mat);
+ mat[0] = mat[5] = mat[10] = 1;
+ mat[1] = mat[2] = mat[4] = mat[6] = mat[8] = mat[9] = 0;
+ gl.glLoadMatrixf(mat);
+
+ return mat[14];
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ if(mouseMoveFlag==false)
+ { // start drag
+ mouseMoveFlag=true;
+ mousePoint=evt.getPoint();
+ }
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ mouseMoveFlag=false;
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ }
+
+ public void mouseDragged(MouseEvent e)
+ {
+ if(mouseMoveFlag==true)
+ {
+ oldMousePoint=new Point(mousePoint);
+ mousePoint=e.getPoint();
+
+ Point dif=new Point(mousePoint.x-oldMousePoint.x,
+ mousePoint.y-oldMousePoint.y);
+
+ if(e.isShiftDown()==true)
+ TranlateObj((float)dif.x/6.0f,(float)dif.y/-6.0f,0f);
+ else if(e.isAltDown()==true)
+ {
+ TranlateObj(0f,0f,(float)dif.y/6.0f);
+ RotateObj(dif.x,0f,0f,1f);
+ }
+ else
+ {
+ RotateObj(dif.x,0f,1f,0f);
+ RotateObj(dif.y,1f,0f,0f);
+ }
+ }
+ }
+ public void mouseMoved(MouseEvent e)
+ {
+ }
+
+
+ }
+}
diff --git a/demos/MiscDemos/pngTextureTestApplet_plugin13.html b/demos/MiscDemos/pngTextureTestApplet_plugin13.html
new file mode 100644
index 0000000..929700a
--- /dev/null
+++ b/demos/MiscDemos/pngTextureTestApplet_plugin13.html
@@ -0,0 +1,48 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<B>Try to drag the mouse (press-button and move) with/without the SHIFT key!</B>
+<br>
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 600 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "pngTextureTestApplet.class" WIDTH = 600 HEIGHT = 400 frames = "55" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "pngTextureTestApplet.class" WIDTH = 600 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "pngTextureTestApplet.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+<PARAM NAME = frames VALUE ="55">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "pngTextureTestApplet.class" WIDTH = 600 HEIGHT = 400>
+<PARAM NAME = frames VALUE ="55">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/MiscDemos/select.html b/demos/MiscDemos/select.html
new file mode 100644
index 0000000..14b27a6
--- /dev/null
+++ b/demos/MiscDemos/select.html
@@ -0,0 +1,17 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Press the Left-Mouse Button to change the color! <br>
+Press the Middle-Mouse Button to zoom! <br>
+Press the Right-Mouse Button to delete! <br>
+<br>
+<hr>
+<applet code="select.class" width=500 height=300>
+<param name=frames value="55">
+</applet>
+<hr>
+</BODY>
+</HTML>
+
diff --git a/demos/MiscDemos/select.java b/demos/MiscDemos/select.java
new file mode 100644
index 0000000..a1020c3
--- /dev/null
+++ b/demos/MiscDemos/select.java
@@ -0,0 +1,596 @@
+/*
+ * Copyright (c) 1991, 1992, 1993 Silicon Graphics, Inc.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and
+ * its documentation for any purpose is hereby granted without fee, provided
+ * that (i) the above copyright notices and this permission notice appear in
+ * all copies of the software and related documentation, and (ii) the name of
+ * Silicon Graphics may not be used in any adverti(float)Math.sing or
+ * publicity relating to the software without the specific, prior written
+ * permission of Silicon Graphics.
+ *
+ * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF
+ * ANY KIND,
+ * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
+ * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * IN NO EVENT SHALL SILICON GRAPHICS BE LIABLE FOR
+ * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
+ * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
+ * OF THIS SOFTWARE.
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+
+import gl4java.utils.glut.*;
+
+public class select extends Applet
+{
+ selectCanvas canvas = null;
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new selectCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Start the applet */
+
+
+ public void start()
+ {
+ }
+
+
+ /* Stop the applet */
+
+
+ public void stop()
+ {
+ }
+
+ public static void main( String args[] ) {
+ GLContext.gljNativeDebug = true;
+ GLContext.gljClassDebug = true;
+
+ select applet =
+ new select();
+
+ Frame f = new Frame("select");
+
+ f.addWindowListener( new WindowAdapter()
+ {
+ public void windowClosed(WindowEvent e)
+ {
+ System.exit(0);
+ }
+ public void windowClosing(WindowEvent e)
+ {
+ windowClosed(e);
+ }
+ }
+ );
+
+ f.setLayout(new BorderLayout());
+ f.add("Center", applet);
+ applet.setSize(500,300);
+ applet.init();
+ applet.start();
+ Dimension ps = applet.getPreferredSize();
+ f.setBounds(-100,-100,99,99);
+ f.setVisible(true);
+ f.setVisible(false);
+ Insets i = f.getInsets();
+ f.setBounds(0,0,
+ ps.width+i.left+i.right,
+ ps.height+i.top+i.bottom);
+ f.setVisible(true);
+ }
+
+ /* Local GLCanvas extension class */
+
+ static final int MAXOBJS =10000;
+ static final int MAXSELECT =100;
+ static final int MAXFEED =300;
+ static final int SOLID =1;
+ static final int LINE =2;
+ static final int POINT =3;
+
+ protected class object {
+ float v1[];
+ float v2[];
+ float v3[];
+ float color[];
+
+ public object()
+ {
+ v1=new float[2];
+ v2=new float[2];
+ v3=new float[2];
+ color=new float[3];
+ }
+ } /* objects[MAXOBJS] */
+
+
+ private class selectCanvas extends GLCanvas
+ implements MouseListener
+ {
+ int windW, windH;
+
+ object[] objects=null;
+ int selectBuf[/*MAXSELECT*/];
+ float feedBuf[/*MAXFEED*/];
+ int vp[/*4*/];
+ float zRotation = 90.0f;
+ float zoom = 1.0f;
+ int objectCount;
+ int numObjects;
+ boolean linePoly = false;
+
+ public selectCanvas(int w, int h)
+ {
+ super(w, h);
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+
+ public void init()
+ {
+ int i;
+
+ windW = getSize().width;
+ windH = getSize().height;
+
+ objects = new object[MAXOBJS];
+ for(i=0; i<MAXOBJS; i++)
+ objects[i]=new object();
+
+ selectBuf=new int[MAXSELECT];
+ feedBuf=new float[MAXFEED];
+ vp=new int[4];
+
+ numObjects = 10;
+ InitObjects(numObjects);
+ gl.glGetIntegerv(GL_VIEWPORT, vp);
+
+ addMouseListener(this);
+ }
+
+ public void InitObjects(int num)
+ {
+ int i;
+ double x, y;
+
+ if (num > MAXOBJS) {
+ num = MAXOBJS;
+ }
+ if (num < 1) {
+ num = 1;
+ }
+ objectCount = num;
+
+ // srand((unsigned int)time(NULL));
+ for (i = 0; i < num; i++) {
+ /*
+ x = (rand() % 300) - 150;
+ y = (rand() % 300) - 150;
+ */
+ x = (Math.random() * 300.0) - 150.0;
+ y = (Math.random() * 300.0) - 150.0;
+
+ objects[i].v1[0] = (float) (x + (Math.random() * 50.0) - 25.0);
+ objects[i].v2[0] = (float) (x + (Math.random() * 50.0) - 25.0);
+ objects[i].v3[0] = (float) (x + (Math.random() * 50.0) - 25.0);
+ objects[i].v1[1] = (float) (y + (Math.random() * 50.0) - 25.0);
+ objects[i].v2[1] = (float) (y + (Math.random() * 50.0) - 25.0);
+ objects[i].v3[1] = (float) (y + (Math.random() * 50.0) - 25.0);
+ objects[i].color[0] = (float)
+ (((Math.random() * 100.0) + 50.0) / 150.0f);
+ objects[i].color[1] = (float)
+ (((Math.random() * 100.0) + 50.0) / 150.0f);
+ objects[i].color[2] = (float)
+ (((Math.random() * 100.0) + 50.0) / 150.0f);
+ }
+ }
+
+
+ public void reshape(int width, int height)
+ {
+
+ windW = (int)width;
+ windH = (int)height;
+ }
+
+ public void Render(int mode)
+ {
+ int i;
+
+ for (i = 0; i < objectCount; i++) {
+ if (mode == GL_SELECT) {
+ gl.glLoadName(i);
+ }
+ gl.glColor3fv(objects[i].color);
+ gl.glBegin(GL_POLYGON);
+ gl.glVertex2fv(objects[i].v1);
+ gl.glVertex2fv(objects[i].v2);
+ gl.glVertex2fv(objects[i].v3);
+ gl.glEnd();
+ }
+ }
+
+ public int DoSelect(int x, int y)
+ {
+ int hits;
+
+ gl.glSelectBuffer(MAXSELECT, selectBuf);
+ gl.glRenderMode(GL_SELECT);
+ gl.glInitNames();
+ gl.glPushName(~0);
+
+ gl.glPushMatrix();
+
+ gl.glViewport(0, 0, windW, windH);
+ gl.glGetIntegerv(GL_VIEWPORT, vp);
+
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ glu.gluPickMatrix(x, windH-y, 4, 4, vp);
+ glu.gluOrtho2D(-175, 175, -175, 175);
+ gl.glMatrixMode(GL_MODELVIEW);
+
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+ gl.glClear(GL_COLOR_BUFFER_BIT);
+
+ gl.glScalef(zoom, zoom, zoom);
+ gl.glRotatef(zRotation, 0, 0, 1);
+
+ Render(GL_SELECT);
+
+ gl.glPopMatrix();
+
+ hits = gl.glRenderMode(GL_RENDER);
+ if (hits <= 0) {
+ return -1;
+ }
+
+ return selectBuf[(hits-1)*4+3];
+ }
+
+ public void RecolorTri(int h)
+ {
+
+ objects[h].color[0] = (float)
+ (((Math.random() * 100.0) + 50.0) / 150.0);
+ objects[h].color[1] = (float)
+ (((Math.random() * 100.0) + 50.0) / 150.0);
+ objects[h].color[2] = (float)
+ (((Math.random() * 100.0) + 50.0) / 150.0);
+ }
+
+ public void DeleteTri(int h)
+ {
+
+ objects[h] = objects[objectCount-1];
+ objectCount--;
+ }
+
+ public void GrowTri(int h)
+ {
+ float v[/*2*/];
+ int i;
+
+ v = new float[2];
+
+ v[0] = objects[h].v1[0] + objects[h].v2[0] + objects[h].v3[0];
+ v[1] = objects[h].v1[1] + objects[h].v2[1] + objects[h].v3[1];
+ v[0] /= 3f;
+ v[1] /= 3f;
+
+ for (i = 0; i < 3; i++) {
+ switch (i) {
+ case 0:
+ objects[h].v1[0] = 1.5f * (objects[h].v1[0] - v[0]) + v[0];
+ objects[h].v1[1] = 1.5f * (objects[h].v1[1] - v[1]) + v[1];
+ break;
+ case 1:
+ objects[h].v2[0] = 1.5f * (objects[h].v2[0] - v[0]) + v[0];
+ objects[h].v2[1] = 1.5f * (objects[h].v2[1] - v[1]) + v[1];
+ break;
+ case 2:
+ objects[h].v3[0] = 1.5f * (objects[h].v3[0] - v[0]) + v[0];
+ objects[h].v3[1] = 1.5f * (objects[h].v3[1] - v[1]) + v[1];
+ break;
+ }
+ }
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered(MouseEvent evt)
+ {
+ }
+
+ public void mouseExited(MouseEvent evt)
+ {
+ }
+
+ public void mousePressed(MouseEvent evt)
+ {
+ }
+
+ public void mouseReleased(MouseEvent evt)
+ {
+ }
+
+ public void mouseClicked(MouseEvent evt)
+ {
+ int x1 = evt.getX();
+ int y1 = evt.getY();
+
+ /* translate GLUT into GL coordinates */
+ // y1 = getSize().height -y1;
+
+ int hit;
+
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("mouseClicked: problem in GL-use() method");
+ return;
+ }
+
+ hit = DoSelect(x1, y1);
+
+ glj.gljCheckGL();
+ glj.gljFree();
+
+ if (hit != -1) {
+ if ((evt.getModifiers() & evt.BUTTON1_MASK) != 0) {
+ RecolorTri(hit);
+ }
+ if ((evt.getModifiers() & evt.BUTTON2_MASK) != 0) {
+ GrowTri(hit);
+ }
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0) {
+ DeleteTri(hit);
+ }
+ }
+
+ repaint();
+ }
+
+ public void display()
+ {
+
+ /* Standard GL4Java Init */
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ gl.glPushMatrix();
+
+ gl.glViewport(0, 0, windW, windH);
+ gl.glGetIntegerv(GL_VIEWPORT, vp);
+
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ glu.gluOrtho2D(-175, 175, -175, 175);
+ gl.glMatrixMode(GL_MODELVIEW);
+
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+ gl.glClear(GL_COLOR_BUFFER_BIT);
+
+ gl.glScalef(zoom, zoom, zoom);
+ gl.glRotatef(zRotation, 0, 0, 1);
+
+ Render(GL_RENDER);
+
+ gl.glPopMatrix();
+
+ /* For your animation dutys ;-) */
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ public void DrawZoom(int x, int y)
+ {
+
+ gl.glPushMatrix();
+
+ gl.glViewport(0, 0, windW, windH);
+ gl.glGetIntegerv(GL_VIEWPORT, vp);
+
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ glu.gluPickMatrix(x, windH-y, 4, 4, vp);
+ glu.gluOrtho2D(-175, 175, -175, 175);
+ gl.glMatrixMode(GL_MODELVIEW);
+
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+ gl.glClear(GL_COLOR_BUFFER_BIT);
+
+ gl.glScalef(zoom, zoom, zoom);
+ gl.glRotatef(zRotation, 0, 0, 1);
+
+ Render(GL_RENDER);
+
+ gl.glPopMatrix();
+ }
+
+ public int DumpFeedbackVert(int i, int n)
+ {
+ int index;
+
+ index = i;
+ if (index+7 > n) {
+ System.out.println(" ???");
+ return n;
+ }
+ System.out.println(" ("+feedBuf[index]+" "+
+ feedBuf[index+1]+" "+
+ feedBuf[index+2]+"), color = ("+
+ feedBuf[index+3]+" "+
+ feedBuf[index+4]+" "+
+ feedBuf[index+5]+")");
+ return index + 7;
+ }
+
+ public void DrawFeedback(int n)
+ {
+ int i;
+ int verts;
+
+ System.out.println("Feedback results ("+n+" floats):");
+ for (i = 0; i < n; i++) {
+ switch ((int)feedBuf[i]) {
+ case GL_POLYGON_TOKEN:
+ System.out.print("Polygon");
+ i++;
+ if (i < n) {
+ verts = (int)feedBuf[i];
+ i++;
+ System.out.print(": "+verts+" vertices");
+ } else {
+ verts = 0;
+ }
+ System.out.print("\n");
+ while (verts>0) {
+ i=DumpFeedbackVert(i, n);
+ verts--;
+ }
+ i--;
+ break;
+ case GL_LINE_TOKEN:
+ System.out.print("Line:");
+ i++;
+ i=DumpFeedbackVert(i, n);
+ i=DumpFeedbackVert(i, n);
+ i--;
+ break;
+ case GL_LINE_RESET_TOKEN:
+ System.out.print("Line Reset:\n");
+ i++;
+ i=DumpFeedbackVert(i, n);
+ i=DumpFeedbackVert(i, n);
+ i--;
+ break;
+ default:
+ System.out.print(feedBuf[i]+"\n");
+ break;
+ }
+ }
+ if (i == MAXFEED) {
+ System.out.print("...\n");
+ }
+ System.out.print("\n");
+ }
+
+ public void DoFeedback()
+ {
+ int x;
+
+ gl.glFeedbackBuffer(MAXFEED, GL_3D_COLOR, feedBuf);
+ gl.glRenderMode(GL_FEEDBACK);
+
+ gl.glPushMatrix();
+
+ gl.glViewport(0, 0, windW, windH);
+ gl.glGetIntegerv(GL_VIEWPORT, vp);
+
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ glu.gluOrtho2D(-175, 175, -175, 175);
+ gl.glMatrixMode(GL_MODELVIEW);
+
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+ gl.glClear(GL_COLOR_BUFFER_BIT);
+
+ gl.glScalef(zoom, zoom, zoom);
+ gl.glRotatef(zRotation, 0, 0, 1);
+
+ Render(GL_FEEDBACK);
+
+ gl.glPopMatrix();
+
+ x = gl.glRenderMode(GL_RENDER);
+ if (x == -1) {
+ x = MAXFEED;
+ }
+
+ DrawFeedback((int)x);
+ }
+
+ /*
+ static void Key2(int key, int x, int y)
+ {
+ switch (key) {
+ case GLUT_KEY_LEFT:
+ zRotation += 0.5f;
+ break;
+ case GLUT_KEY_RIGHT:
+ zRotation -= 0.5f;
+ break;
+ default:
+ return;
+ }
+
+ glut.glutPostRedisplay();
+ }
+
+ static void Key(unsigned char key, int x, int y)
+ {
+ switch (key) {
+ case 27:
+ exit(1);
+ case 'Z':
+ zoom /= 0.75f;
+ break;
+ case 'z':
+ zoom *= 0.75f;
+ break;
+ case 'f':
+ DoFeedback();
+ break;
+ case 'd':
+ DrawZoom(x, y);
+ break;
+ case 'l':
+ linePoly = !linePoly;
+ if (linePoly) {
+ gl.glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
+ } else {
+ gl.glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
+ }
+ break;
+ default:
+ return;
+ }
+
+ glut.glutPostRedisplay();
+ }
+ */
+
+ }
+}
diff --git a/demos/MiscDemos/select_plugin13.html b/demos/MiscDemos/select_plugin13.html
new file mode 100644
index 0000000..f4e0e54
--- /dev/null
+++ b/demos/MiscDemos/select_plugin13.html
@@ -0,0 +1,49 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Press the Left-Mouse Button to change the color! <br>
+Press the Middle-Mouse Button to zoom! <br>
+Press the Right-Mouse Button to delete! <br>
+<br>
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 500 HEIGHT = 300 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "select.class" WIDTH = 500 HEIGHT = 300 frames = "55" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "select.class" WIDTH = 500 HEIGHT = 300></XMP>
+<PARAM NAME = CODE VALUE = "select.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+<PARAM NAME = frames VALUE ="55">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "select.class" WIDTH = 500 HEIGHT = 300>
+<PARAM NAME = frames VALUE ="55">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</BODY>
+</HTML>
+
diff --git a/demos/MiscDemos/spectex.html b/demos/MiscDemos/spectex.html
new file mode 100644
index 0000000..4ceb658
--- /dev/null
+++ b/demos/MiscDemos/spectex.html
@@ -0,0 +1,14 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<applet code="spectex.class" width=400 height=400>
+<param name=frames value="55">
+</applet>
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/MiscDemos/spectex.java b/demos/MiscDemos/spectex.java
new file mode 100644
index 0000000..55d4aae
--- /dev/null
+++ b/demos/MiscDemos/spectex.java
@@ -0,0 +1,336 @@
+/**
+ * @(#) spectex.java
+ * @(#) author: Joe Zimmerman (converted to Java by Sven Goethel)
+ */
+
+/* This program is free software under the license of LGPL */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+public class spectex extends SimpleGLAnimApplet1
+{
+
+ public void init()
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new gldemo(d.width, d.height);
+ add("Center", canvas);
+ }
+
+ public static void main( String args[] )
+ {
+ Frame mainFrame = new Frame("spectex");
+
+ spectex applet = new spectex();
+
+ applet.setSize(400, 400);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ }
+
+ private class gldemo extends GLAnimCanvas
+ implements MouseListener, ActionListener
+ {
+ private PopupMenu menu = null;
+ private boolean menu_showing = false;
+ private boolean save_suspended = false;
+ private final String MENUE_0 = "1-pass lighting + texturing";
+ private final String MENUE_1 = "specular lighting";
+ private final String MENUE_2 = "diffuse lighting + texturing";
+ private final String MENUE_3 = "2-pass lighting + texturing";
+ private final String MENUE_4 = "OpenGL 1.2f separate specular";
+
+ final float M_PI = 3.14159265f;
+ final float M_PI_2 = 1.57079632f;
+ int view = 0; /* 0 = front, 1 = top, 2 = bottom */
+
+ int Quadric;
+ int Sphere;
+ float LightPos[/*4*/] = {10.0f, 10.0f, 10.0f, 1.0f};
+ float Delta = 1.0f;
+ int Mode = 0;
+
+ /*static float Blue[4] = {0.0f, 0.0f, 1.0f, 1.0f};*/
+ /*static float Gray[4] = {0.5f, 0.5f, 0.5f, 1.0f};*/
+ float Black[/*4*/] = {0.0f, 0.0f, 0.0f, 1.0f};
+ float White[/*4*/] = {1.0f, 1.0f, 1.0f, 1.0f};
+
+ public gldemo(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ setAnimateFps(30.0);
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, 0);
+ gl.glLightModelfv(GL_LIGHT_MODEL_AMBIENT, Black);
+
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, White);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, White);
+ gl.glMaterialf(GL_FRONT, GL_SHININESS, 20.0f);
+
+ /* Actually, these are set again later */
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, White);
+ gl.glLightfv(GL_LIGHT0, GL_SPECULAR, White);
+
+ Quadric = glu.gluNewQuadric();
+ glu.gluQuadricTexture( Quadric, GL_TRUE );
+
+ Sphere= gl.glGenLists(1);
+ gl.glNewList( Sphere, GL_COMPILE );
+ glu.gluSphere( Quadric, 1.0f, 24, 24 );
+ gl.glEndList();
+
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glEnable(GL_CULL_FACE);
+
+ // byte texImage[64][64][3];
+ byte texImage[] = new byte[64 * 64 * 3];
+ int i,j;
+
+ for (i=0;i<64;i++) {
+ for (j=0;j<64;j++) {
+ int k = ((i>>3)&1) ^ ((j>>3)&1);
+ texImage[i*64*3 + j*3 + 0] = (byte)(255*k);
+ texImage[i*64*3 + j*3 + 1] = (byte)(255*(1-k));
+ texImage[i*64*3 + j*3 + 2] = (byte)(0);
+ }
+ }
+
+ gl.glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
+ gl.glTexImage2D( GL_TEXTURE_2D,
+ 0,
+ 3,
+ 64, 64,
+ 0,
+ GL_RGB, GL_UNSIGNED_BYTE,
+ texImage );
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
+ gl.glEnable(GL_TEXTURE_2D);
+
+ gl.glBlendFunc(GL_ONE, GL_ONE);
+
+ glj.gljCheckGL();
+
+ reshape(getSize().width, getSize().height);
+
+ glj.gljCheckGL();
+
+ menu = new PopupMenu("Options");
+ menu.add(MENUE_0);
+ menu.add(MENUE_1);
+ menu.add(MENUE_2);
+ menu.add(MENUE_3);
+ menu.add(MENUE_4);
+ menu.addActionListener(this);
+ add(menu);
+
+ addMouseListener(this);
+ }
+
+ public void doCleanup()
+ {
+ removeMouseListener(this);
+ menu.removeActionListener(this);
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport( 0, 0, width, height );
+ gl.glMatrixMode( GL_PROJECTION );
+ gl.glLoadIdentity();
+ gl.glFrustum( -1.0f, 1.0f, -1.0f, 1.0f, 5.0f, 25.0f );
+ gl.glMatrixMode( GL_MODELVIEW );
+ gl.glLoadIdentity();
+ gl.glTranslatef( 0.0f, 0.0f, -12.0f );
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ gl.glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
+
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, LightPos);
+
+ gl.glPushMatrix();
+ gl.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
+
+ if (Mode==0) {
+ /* Typical method: diffuse + specular + texture */
+ gl.glEnable(GL_TEXTURE_2D);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, White); /* enable diffuse */
+ gl.glLightfv(GL_LIGHT0, GL_SPECULAR, White); /* enable specular */
+ //gl.glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SINGLE_COLOR);
+ // glj.gljCheckGL();
+ gl.glCallList(Sphere);
+ }
+ else if (Mode==1) {
+ /* just specular highlight */
+ gl.glDisable(GL_TEXTURE_2D);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, Black); /* disable diffuse */
+ gl.glLightfv(GL_LIGHT0, GL_SPECULAR, White); /* enable specular */
+ //gl.glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SINGLE_COLOR);
+ gl.glCallList(Sphere);
+ }
+ else if (Mode==2) {
+ /* diffuse textured */
+ gl.glEnable(GL_TEXTURE_2D);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, White); /* enable diffuse */
+ gl.glLightfv(GL_LIGHT0, GL_SPECULAR, Black); /* disable specular */
+ //gl.glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SINGLE_COLOR);
+ gl.glCallList(Sphere);
+ }
+ else if (Mode==3) {
+ /* 2-pass: diffuse textured then add specular highlight*/
+ gl.glEnable(GL_TEXTURE_2D);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, White); /* enable diffuse */
+ gl.glLightfv(GL_LIGHT0, GL_SPECULAR, Black); /* disable specular */
+ //gl.glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SINGLE_COLOR);
+ gl.glCallList(Sphere);
+ /* specular highlight */
+ gl.glDepthFunc(GL_EQUAL); /* redraw same pixels */
+ gl.glDisable(GL_TEXTURE_2D);
+ gl.glEnable(GL_BLEND); /* add */
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, Black); /* disable diffuse */
+ gl.glLightfv(GL_LIGHT0, GL_SPECULAR, White); /* enable specular */
+ gl.glCallList(Sphere);
+ gl.glDepthFunc(GL_LESS);
+ gl.glDisable(GL_BLEND);
+ }
+ else if (Mode==4) {
+ /* OpenGL 1.2f's separate diffuse and specular color */
+ gl.glEnable(GL_TEXTURE_2D);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, White); /* enable diffuse */
+ gl.glLightfv(GL_LIGHT0, GL_SPECULAR, White); /* enable specular */
+ //gl.glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SEPARATE_SPECULAR_COLOR);
+ gl.glCallList(Sphere);
+ }
+
+ gl.glPopMatrix();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+
+ LightPos[0] += Delta;
+ if (LightPos[0]>15.0f)
+ Delta = -1.0f;
+ else if (LightPos[0]<-15.0f)
+ Delta = 1.0f;
+
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered(MouseEvent evt)
+ {
+ }
+
+ public void mouseExited(MouseEvent evt)
+ {
+ }
+
+ public void mousePressed(MouseEvent evt)
+ {
+ if (!menu_showing)
+ {
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ menu_showing = true;
+ save_suspended = isSuspended();
+ if (!save_suspended)
+ {
+ setSuspended(true);
+ repaint(100);
+ try
+ {
+ Thread.currentThread().sleep(200);
+ }
+ catch (Exception e)
+ { }
+ }
+ menu.show(this,evt.getX(),evt.getY());
+ }
+ else
+ {
+ // Must be left button.
+ if (isSuspended()) repaint();
+ }
+ }
+ else
+ {
+ menu_showing = false;
+ setSuspended(save_suspended);
+ }
+ }
+
+ public void mouseReleased(MouseEvent evt)
+ {
+ }
+
+ public void mouseClicked(MouseEvent evt)
+ {
+ }
+
+ // Method required for the implementation of ActionListener
+ public void actionPerformed(ActionEvent evt)
+ {
+ String c = evt.getActionCommand();
+ if (c.equals(MENUE_0))
+ {
+ Mode=0;
+ }
+ else if (c.equals(MENUE_1))
+ {
+ Mode=1;
+ }
+ else if (c.equals(MENUE_2))
+ {
+ Mode=2;
+ }
+ else if (c.equals(MENUE_3))
+ {
+ Mode=3;
+ }
+ else if (c.equals(MENUE_4))
+ {
+ Mode=4;
+ }
+ if (menu_showing)
+ {
+ menu_showing = false;
+ setSuspended(save_suspended);
+ }
+ }
+
+
+
+ }
+}
diff --git a/demos/MiscDemos/spectex_plugin13.html b/demos/MiscDemos/spectex_plugin13.html
new file mode 100644
index 0000000..91da5f0
--- /dev/null
+++ b/demos/MiscDemos/spectex_plugin13.html
@@ -0,0 +1,46 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "spectex.class" WIDTH = 400 HEIGHT = 400 frames = "55" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "spectex.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "spectex.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+<PARAM NAME = frames VALUE ="55">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "spectex.class" WIDTH = 400 HEIGHT = 400>
+<PARAM NAME = frames VALUE ="55">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/MiscDemos/stencil.html b/demos/MiscDemos/stencil.html
new file mode 100644
index 0000000..099ef91
--- /dev/null
+++ b/demos/MiscDemos/stencil.html
@@ -0,0 +1,20 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Stencil by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Stencil applet
+<br>Originially written by Silicon Graphics
+<br>
+<B> The left canvas should have 0 stencil-bits !
+<B> The right canvas should have 8 stencil-bits !
+<br>
+<hr>
+<applet code="stencil.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/MiscDemos/stencil.java b/demos/MiscDemos/stencil.java
new file mode 100644
index 0000000..a2d163f
--- /dev/null
+++ b/demos/MiscDemos/stencil.java
@@ -0,0 +1,342 @@
+/**
+ * @(#) stencil.java
+ * @(#) author: Silicon Graphics (converted to Java by Ron Cemer)
+ */
+
+/*
+ * Copyright (c) 1993-1997, Silicon Graphics, Inc.
+ * ALL RIGHTS RESERVED
+ * Permission to use, copy, modify, and distribute this software for
+ * any purpose and without fee is hereby granted, provided that the above
+ * copyright notice appear in all copies and that both the copyright notice
+ * and this permission notice appear in supporting documentation, and that
+ * the name of Silicon Graphics, Inc. not be used in advertising
+ * or publicity pertaining to distribution of the software without specific,
+ * written prior permission.
+ *
+ * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
+ * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
+ * GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
+ * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
+ * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
+ * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
+ * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN
+ * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
+ * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * US Government Users Restricted Rights
+ * Use, duplication, or disclosure by the Government is subject to
+ * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
+ * (c)(1)(ii) of the Rights in Technical Data and Computer Software
+ * clause at DFARS 252.227-7013 and/or in similar or successor
+ * clauses in the FAR or the DOD or NASA FAR Supplement.
+ * Unpublished-- rights reserved under the copyright laws of the
+ * United States. Contractor/manufacturer is Silicon Graphics,
+ * Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
+ *
+ * OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
+ */
+
+/*
+ * This program demonstrates use of the stencil buffer for
+ * masking nonrectangular regions.
+ * Whenever the window is redrawn, a value of 1 is drawn
+ * into a diamond-shaped region in the stencil buffer.
+ * Elsewhere in the stencil buffer, the value is 0.
+ * Then a blue sphere is drawn where the stencil value is 1,
+ * and yellow torii are drawn where the stencil value is not 1.
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+
+public class stencil extends Applet
+{
+ stencilCanvas canvas1 = null;
+ stencilCanvas canvas2 = null;
+
+ Panel cvs = null;
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+
+ canvas1 = new stencilCanvas(d.width, d.height, 0, false);
+ System.out.println("the left canvas has 0 stencil-bits, self-window");
+ canvas2 = new stencilCanvas(d.width, d.height, 8, true);
+ System.out.println("the right canvas should have 8 stencil-bits, ownWindow");
+
+ cvs = new Panel();
+ cvs.setLayout(new GridLayout(1,2));
+ cvs.add(canvas1);
+ if(canvas2!=null)
+ cvs.add(canvas2);
+ add("Center", cvs);
+ }
+
+
+ public static void main( String args[] )
+ {
+ Frame mainFrame = new Frame("stencil");
+
+ GLContext.gljNativeDebug = true;
+ GLContext.gljClassDebug = true;
+
+ stencil applet = new stencil();
+
+ applet.setSize(400, 400);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ }
+
+ /* Start the applet */
+
+
+ public void start()
+ {
+ }
+
+
+ /* Stop the applet */
+
+
+ public void stop()
+ {
+ }
+
+
+ /* Destroy the applet */
+
+
+
+ /* Local GLCanvas extension class */
+
+
+ private class stencilCanvas extends GLCanvas
+ {
+ private static final float M_PI = 3.14159265359f;
+ private static final int YELLOWMAT = 1, BLUEMAT = 2;
+ private boolean initdone = false;
+
+ public stencilCanvas(int w, int h,
+ int _stencilBits,
+ boolean _createOwnWindow)
+ {
+ super(w, h);
+ stencilBits = _stencilBits;
+ createOwnWindow = _createOwnWindow;
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ // Examine some OpenGL properties
+ int [] res=new int[6];
+
+ gl.glGetIntegerv(GL_STENCIL_BITS,res);
+
+ System.out.println("init(): " + this + "\n\t" +
+ "Stencil bits are "+res[0] +"\n\t" +
+ "IsOwnCreatedWindow: "+createOwnWindow);
+
+ float yellow_diffuse[] = { 0.7f, 0.7f, 0.0f, 1.0f };
+ float yellow_specular[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+
+ float blue_diffuse[] = { 0.1f, 0.1f, 0.7f, 1.0f };
+ float blue_specular[] = { 0.1f, 1.0f, 1.0f, 1.0f };
+
+ float position_one[] = { 1.0f, 1.0f, 1.0f, 0.0f };
+
+ gl.glNewList(YELLOWMAT, GL_COMPILE);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, yellow_diffuse);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, yellow_specular);
+ gl.glMaterialf(GL_FRONT, GL_SHININESS, 64.0f);
+ gl.glEndList();
+
+ gl.glNewList(BLUEMAT, GL_COMPILE);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, blue_diffuse);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, blue_specular);
+ gl.glMaterialf(GL_FRONT, GL_SHININESS, 45.0f);
+ gl.glEndList();
+
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, position_one);
+
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_DEPTH_TEST);
+
+ gl.glClearStencil(0);
+ gl.glEnable(GL_STENCIL_TEST);
+
+ glj.gljCheckGL();
+
+ initdone = true;
+ reshape(getSize().width, getSize().height);
+ }
+
+ public void cvsDispose()
+ {
+ System.out.println("destroy(): " + this);
+ super.cvsDispose();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+
+ if (initdone)
+ {
+ /* create a diamond shaped stencil area */
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ if (width <= height)
+ glu.gluOrtho2D
+ (-3.0f,
+ 3.0f,
+ -3.0f*(float)height/(float)width,
+ 3.0f*(float)height/(float)width);
+ else
+ glu.gluOrtho2D
+ (-3.0f*(float)width/(float)height,
+ 3.0f*(float)width/(float)height,
+ -3.0f,
+ 3.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+
+ gl.glClear(GL_STENCIL_BUFFER_BIT);
+ gl.glStencilFunc(GL_ALWAYS, 1, 1);
+ gl.glStencilOp(GL_REPLACE, GL_REPLACE, GL_REPLACE);
+ gl.glBegin(GL_QUADS);
+ gl.glVertex2f(-1.0f, 0.0f);
+ gl.glVertex2f(0.0f, 1.0f);
+ gl.glVertex2f(1.0f, 0.0f);
+ gl.glVertex2f(0.0f, -1.0f);
+ gl.glEnd();
+ }
+
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ glu.gluPerspective(45.0f, (float)width/(float)height, 3.0f, 7.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ gl.glTranslatef(0.0f, 0.0f, -5.0f);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ /* Draw a sphere in a diamond-shaped section in the
+ * middle of a window with 2 torii.
+ */
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ /* draw blue sphere where the stencil is 1 */
+ gl.glStencilFunc(GL_EQUAL, 1, 1);
+ gl.glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP);
+ gl.glCallList(BLUEMAT);
+
+ int qobj = glu.gluNewQuadric();
+ glu.gluQuadricOrientation(qobj,GLU_OUTSIDE);
+ glu.gluQuadricNormals(qobj,GLU_SMOOTH);
+ glu.gluQuadricTexture(qobj,false);
+ glu.gluSphere(qobj,0.5f,15,15);
+ glu.gluDeleteQuadric(qobj);
+
+ /* draw the tori where the stencil is not 1 */
+ gl.glStencilFunc(GL_NOTEQUAL, 1, 1);
+ gl.glPushMatrix();
+ gl.glRotatef(45.0f, 0.0f, 0.0f, 1.0f);
+ gl.glRotatef(45.0f, 0.0f, 1.0f, 0.0f);
+ gl.glCallList(YELLOWMAT);
+ glutSolidTorus(0.275f, 0.85f, 15, 15);
+ gl.glPushMatrix();
+ gl.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
+ glutSolidTorus(0.275f, 0.85f, 15, 15);
+ gl.glPopMatrix();
+ gl.glPopMatrix();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ // Imported from glut.
+ private void glutSolidTorus
+ (float innerRadius,
+ float outerRadius,
+ int nsides,
+ int rings)
+ {
+ doughnut(innerRadius, outerRadius, nsides, rings);
+ }
+
+ // Imported from glut.
+ private void doughnut(float r, float R, int nsides, int rings)
+ {
+ int i, j;
+ float theta, phi, theta1;
+ float cosTheta, sinTheta;
+ float cosTheta1, sinTheta1;
+ float ringDelta, sideDelta;
+
+ ringDelta = 2.0f * M_PI / rings;
+ sideDelta = 2.0f * M_PI / nsides;
+
+ theta = 0.0f;
+ cosTheta = 1.0f;
+ sinTheta = 0.0f;
+ for (i = rings - 1; i >= 0; i--)
+ {
+ theta1 = theta + ringDelta;
+ cosTheta1 = (float)Math.cos(theta1);
+ sinTheta1 = (float)Math.sin(theta1);
+ gl.glBegin(GL_QUAD_STRIP);
+ phi = 0.0f;
+ for (j = nsides; j >= 0; j--)
+ {
+ float cosPhi, sinPhi, dist;
+
+ phi += sideDelta;
+ cosPhi = (float)Math.cos(phi);
+ sinPhi = (float)Math.sin(phi);
+ dist = R + r * cosPhi;
+
+ gl.glNormal3f(cosTheta1 * cosPhi, -sinTheta1 * cosPhi, sinPhi);
+ gl.glVertex3f(cosTheta1 * dist, -sinTheta1 * dist, r * sinPhi);
+ gl.glNormal3f(cosTheta * cosPhi, -sinTheta * cosPhi, sinPhi);
+ gl.glVertex3f(cosTheta * dist, -sinTheta * dist, r * sinPhi);
+ }
+ gl.glEnd();
+ theta = theta1;
+ cosTheta = cosTheta1;
+ sinTheta = sinTheta1;
+ }
+ }
+ }
+}
diff --git a/demos/MiscDemos/stencil_plugin13.html b/demos/MiscDemos/stencil_plugin13.html
new file mode 100644
index 0000000..3a654f8
--- /dev/null
+++ b/demos/MiscDemos/stencil_plugin13.html
@@ -0,0 +1,51 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Stencil by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Stencil applet
+<br>Originially written by Silicon Graphics
+<br>
+<B> The left canvas should have 0 stencil-bits !
+<B> The right canvas should have 8 stencil-bits !
+<br>
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "stencil.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "stencil.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "stencil.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "stencil.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/MiscDemos/teaambient.html b/demos/MiscDemos/teaambient.html
new file mode 100644
index 0000000..2bdbdcd
--- /dev/null
+++ b/demos/MiscDemos/teaambient.html
@@ -0,0 +1,17 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>OpenGL Demo - ported by Sven Goethel</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Teapots applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Sven Goethel
+<br>
+<applet code="teaambient.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/MiscDemos/teaambient.java b/demos/MiscDemos/teaambient.java
new file mode 100755
index 0000000..aaebf71
--- /dev/null
+++ b/demos/MiscDemos/teaambient.java
@@ -0,0 +1,182 @@
+/**
+ * @(#) teaambient.java
+ * @(#) author: Silicon Graphics, Inc. (converted to Java by Ron Cemer)
+ */
+
+/*
+ * This program demonstrates lots of material properties.
+ * A single light source illuminates the objects.
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+
+import gl4java.utils.glut.*;
+
+public class teaambient extends Applet
+{
+ teaambientCanvas canvas = null;
+
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new teaambientCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Start the applet */
+
+
+ public void start()
+ {
+ }
+
+
+ /* Stop the applet */
+
+
+ public void stop()
+ {
+ }
+
+ public static void main( String args[] )
+ {
+ Frame mainFrame = new Frame("teaambient");
+
+ teaambient applet = new teaambient();
+
+ applet.setSize(400, 600);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ }
+
+
+ /* Local GLCanvas extension class */
+
+
+ private class teaambientCanvas extends GLCanvas
+ {
+ GLUTFunc glut = null;
+
+ public teaambientCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+
+ glut = new GLUTFuncLightImpl(gl, glu);
+
+ reshape(getSize().width, getSize().height);
+
+ float light_ambient[] =
+ {0.0f, 0.0f, 0.0f, 1.0f};
+ float light_diffuse[] =
+ {1.0f, 1.0f, 1.0f, 1.0f};
+ float light_specular[] =
+ {1.0f, 1.0f, 1.0f, 1.0f};
+ /* light_position is NOT default value */
+ float light_position[] =
+ {1.0f, 0.0f, 0.0f, 0.0f};
+ float global_ambient[] =
+ {0.75f, 0.75f, 0.75f, 1.0f};
+
+ gl.glLightfv(GL_LIGHT0, GL_AMBIENT, light_ambient);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, light_diffuse);
+ gl.glLightfv(GL_LIGHT0, GL_SPECULAR, light_specular);
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, light_position);
+
+ gl.glLightModelfv(GL_LIGHT_MODEL_AMBIENT, global_ambient);
+
+ gl.glFrontFace(GL_CW);
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_AUTO_NORMAL);
+ gl.glEnable(GL_NORMALIZE);
+ gl.glDepthFunc(GL_LESS);
+ gl.glEnable(GL_DEPTH_TEST);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ float low_ambient[] =
+ {0.1f, 0.1f, 0.1f, 1.0f};
+ float more_ambient[] =
+ {0.4f, 0.4f, 0.4f, 1.0f};
+ float most_ambient[] =
+ {1.0f, 1.0f, 1.0f, 1.0f};
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ /* material has small ambient reflection */
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, low_ambient);
+ gl.glMaterialf(GL_FRONT, GL_SHININESS, 40.0f);
+ gl.glPushMatrix();
+ gl.glTranslatef(0.0f, 2.0f, 0.0f);
+ glut.glutSolidTeapot(1.0f);
+ gl.glPopMatrix();
+
+ /* material has moderate ambient reflection */
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, more_ambient);
+ gl.glPushMatrix();
+ gl.glTranslatef(0.0f, 0.0f, 0.0f);
+ glut.glutSolidTeapot(1.0f);
+ gl.glPopMatrix();
+
+ /* material has large ambient reflection */
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, most_ambient);
+ gl.glPushMatrix();
+ gl.glTranslatef(0.0f, -2.0f, 0.0f);
+ glut.glutSolidTeapot(1.0f);
+ gl.glPopMatrix();
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ public void reshape(int w, int h)
+ {
+ gl.glViewport(0, 0, w, h);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ if (w <= h)
+ gl.glOrtho(-4.0f, 4.0f, -4.0f * (float) h / (float) w,
+ 4.0f * (float) h / (float) w, -10.0f, 10.0f);
+ else
+ gl.glOrtho(-4.0f * (float) w / (float) h,
+ 4.0f * (float) w / (float) h, -4.0f, 4.0f, -10.0f, 10.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+ }
+}
diff --git a/demos/MiscDemos/teaambient_plugin13.html b/demos/MiscDemos/teaambient_plugin13.html
new file mode 100644
index 0000000..b1ddbb8
--- /dev/null
+++ b/demos/MiscDemos/teaambient_plugin13.html
@@ -0,0 +1,48 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>OpenGL Demo - ported by Sven Goethel</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Teapots applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Sven Goethel
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "teaambient.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "teaambient.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "teaambient.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "teaambient.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/MiscDemos/teapots.html b/demos/MiscDemos/teapots.html
new file mode 100644
index 0000000..834c206
--- /dev/null
+++ b/demos/MiscDemos/teapots.html
@@ -0,0 +1,17 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Teapots by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Teapots applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>
+<applet code="teapots.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/MiscDemos/teapots.java b/demos/MiscDemos/teapots.java
new file mode 100644
index 0000000..63d42aa
--- /dev/null
+++ b/demos/MiscDemos/teapots.java
@@ -0,0 +1,279 @@
+/**
+ * @(#) teapots.java
+ * @(#) author: Silicon Graphics, Inc. (converted to Java by Ron Cemer)
+ */
+
+/*
+ * This program demonstrates lots of material properties.
+ * A single light source illuminates the objects.
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+
+import gl4java.utils.glut.*;
+
+public class teapots extends Applet
+{
+ teapotsCanvas canvas = null;
+
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new teapotsCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Start the applet */
+
+
+ public void start()
+ {
+ }
+
+
+ /* Stop the applet */
+
+
+ public void stop()
+ {
+ }
+
+ public static void main( String args[] )
+ {
+ Frame mainFrame = new Frame("teapots");
+
+ teapots applet = new teapots();
+
+ applet.setSize(400, 400);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ }
+
+
+ /* Local GLCanvas extension class */
+
+
+ private class teapotsCanvas extends GLCanvas
+ {
+ int teapotList;
+ GLUTFunc glut = null;
+
+ public teapotsCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+
+ glut = new GLUTFuncLightImpl(gl, glu);
+
+ reshape(getSize().width, getSize().height);
+
+ float ambient[] = {0.0f, 0.0f, 0.0f, 1.0f};
+ float diffuse[] = {1.0f, 1.0f, 1.0f, 1.0f};
+ float specular[] = {1.0f, 1.0f, 1.0f, 1.0f};
+ float position[] = {0.0f, 3.0f, 3.0f, 0.0f};
+
+ float lmodel_ambient[] = {0.2f, 0.2f, 0.2f, 1.0f};
+ float local_view[] = {0.0f};
+
+ gl.glLightfv(GL_LIGHT0, GL_AMBIENT, ambient);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse);
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, position);
+ gl.glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);
+ gl.glLightModelfv(GL_LIGHT_MODEL_LOCAL_VIEWER, local_view);
+
+ gl.glFrontFace(GL_CW);
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_AUTO_NORMAL);
+ gl.glEnable(GL_NORMALIZE);
+ gl.glEnable(GL_DEPTH_TEST);
+ /* be efficient--make teapot display list */
+ teapotList = gl.glGenLists(1);
+ gl.glNewList(teapotList, GL_COMPILE);
+ glut.glutSolidTeapot(1.0);
+ gl.glEndList();
+
+ glj.gljCheckGL();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ if (width <= height)
+ gl.glOrtho
+ (0.0f,
+ 16.0f,
+ 0.0f,
+ 16.0f*(float)height/(float)width,
+ -10.0f,
+ 10.0f);
+ else
+ gl.glOrtho
+ (0.0f,
+ 16.0f*(float)width/(float)height,
+ 0.0f,
+ 16.0,
+ -10.0f,
+ 10.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ /**
+ * First column: emerald, jade, obsidian, pearl, ruby, turquoise
+ * 2nd column: brass, bronze, chrome, copper, gold, silver
+ * 3rd column: black, cyan, green, red, white, yellow plastic
+ * 4th column: black, cyan, green, red, white, yellow rubber
+ */
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ renderTeapot
+ (2.0f, 17.0f, 0.0215f, 0.1745f, 0.0215f,
+ 0.07568f, 0.61424f, 0.07568f, 0.633f, 0.727811f, 0.633f, 0.6f);
+ renderTeapot
+ (2.0f, 14.0f, 0.135f, 0.2225f, 0.1575f,
+ 0.54f, 0.89f, 0.63f, 0.316228f, 0.316228f, 0.316228f, 0.1f);
+ renderTeapot
+ (2.0f, 11.0f, 0.05375f, 0.05f, 0.06625f,
+ 0.18275f, 0.17f, 0.22525f, 0.332741f, 0.328634f, 0.346435f, 0.3f);
+ renderTeapot
+ (2.0f, 8.0f, 0.25f, 0.20725f, 0.20725f,
+ 1f, 0.829f, 0.829f, 0.296648f, 0.296648f, 0.296648f, 0.088f);
+ renderTeapot
+ (2.0f, 5.0f, 0.1745f, 0.01175f, 0.01175f,
+ 0.61424f, 0.04136f, 0.04136f, 0.727811f, 0.626959f, 0.626959f, 0.6f);
+ renderTeapot
+ (2.0f, 2.0f, 0.1f, 0.18725f, 0.1745f,
+ 0.396f, 0.74151f, 0.69102f, 0.297254f, 0.30829f, 0.306678f, 0.1f);
+ renderTeapot
+ (6.0f, 17.0f, 0.329412f, 0.223529f, 0.027451f,
+ 0.780392f, 0.568627f, 0.113725f, 0.992157f, 0.941176f, 0.807843f,
+ 0.21794872f);
+ renderTeapot
+ (6.0f, 14.0f, 0.2125f, 0.1275f, 0.054f,
+ 0.714f, 0.4284f, 0.18144f, 0.393548f, 0.271906f, 0.166721f, 0.2f);
+ renderTeapot
+ (6.0f, 11.0f, 0.25f, 0.25f, 0.25f,
+ 0.4f, 0.4f, 0.4f, 0.774597f, 0.774597f, 0.774597f, 0.6f);
+ renderTeapot
+ (6.0f, 8.0f, 0.19125f, 0.0735f, 0.0225f,
+ 0.7038f, 0.27048f, 0.0828f, 0.256777f, 0.137622f, 0.086014f, 0.1f);
+ renderTeapot
+ (6.0f, 5.0f, 0.24725f, 0.1995f, 0.0745f,
+ 0.75164f, 0.60648f, 0.22648f, 0.628281f, 0.555802f, 0.366065f, 0.4f);
+ renderTeapot
+ (6.0f, 2.0f, 0.19225f, 0.19225f, 0.19225f,
+ 0.50754f, 0.50754f, 0.50754f, 0.508273f, 0.508273f, 0.508273f, 0.4f);
+ renderTeapot
+ (10.0f, 17.0f, 0.0f, 0.0f, 0.0f, 0.01f, 0.01f, 0.01f,
+ 0.50f, 0.50f, 0.50f, .25f);
+ renderTeapot
+ (10.0f, 14.0f, 0.0f, 0.1f, 0.06f, 0.0f, 0.50980392f, 0.50980392f,
+ 0.50196078f, 0.50196078f, 0.50196078f, .25f);
+ renderTeapot
+ (10.0f, 11.0f, 0.0f, 0.0f, 0.0f,
+ 0.1f, 0.35f, 0.1f, 0.45f, 0.55f, 0.45f, .25f);
+ renderTeapot
+ (10.0f, 8.0f, 0.0f, 0.0f, 0.0f, 0.5f, 0.0f, 0.0f,
+ 0.7f, 0.6f, 0.6f, .25f);
+ renderTeapot
+ (10.0f, 5.0f, 0.0f, 0.0f, 0.0f, 0.55f, 0.55f, 0.55f,
+ 0.70f, 0.70f, 0.70f, .25f);
+ renderTeapot
+ (10.0f, 2.0f, 0.0f, 0.0f, 0.0f, 0.5f, 0.5f, 0.0f,
+ 0.60f, 0.60f, 0.50f, .25f);
+ renderTeapot
+ (14.0f, 17.0f, 0.02f, 0.02f, 0.02f, 0.01f, 0.01f, 0.01f,
+ 0.4f, 0.4f, 0.4f, .078125f);
+ renderTeapot
+ (14.0f, 14.0f, 0.0f, 0.05f, 0.05f, 0.4f, 0.5f, 0.5f,
+ 0.04f, 0.7f, 0.7f, .078125f);
+ renderTeapot
+ (14.0f, 11.0f, 0.0f, 0.05f, 0.0f, 0.4f, 0.5f, 0.4f,
+ 0.04f, 0.7f, 0.04f, .078125f);
+ renderTeapot
+ (14.0f, 8.0f, 0.05f, 0.0f, 0.0f, 0.5f, 0.4f, 0.4f,
+ 0.7f, 0.04f, 0.04f, .078125f);
+ renderTeapot
+ (14.0f, 5.0f, 0.05f, 0.05f, 0.05f, 0.5f, 0.5f, 0.5f,
+ 0.7f, 0.7f, 0.7f, .078125f);
+ renderTeapot
+ (14.0f, 2.0f, 0.05f, 0.05f, 0.0f, 0.5f, 0.5f, 0.4f,
+ 0.7f, 0.7f, 0.04f, .078125f);
+ gl.glFlush();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ /*
+ * Move object into position. Use 3rd through 12th
+ * parameters to specify the material property. Draw a teapot.
+ */
+ private void renderTeapot
+ (float x,
+ float y,
+ float ambr,
+ float ambg,
+ float ambb,
+ float difr,
+ float difg,
+ float difb,
+ float specr,
+ float specg,
+ float specb,
+ float shine)
+ {
+ float mat[] = new float[4];
+
+ gl.glPushMatrix();
+ gl.glTranslatef(x, y, 0.0f);
+ mat[0] = ambr; mat[1] = ambg; mat[2] = ambb; mat[3] = 1.0f;
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, mat);
+ mat[0] = difr; mat[1] = difg; mat[2] = difb;
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat);
+ mat[0] = specr; mat[1] = specg; mat[2] = specb;
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, mat);
+ gl.glMaterialf(GL_FRONT, GL_SHININESS, shine * 128.0f);
+ gl.glCallList(teapotList);
+ gl.glPopMatrix();
+ }
+
+ }
+}
diff --git a/demos/MiscDemos/teapots_plugin13.html b/demos/MiscDemos/teapots_plugin13.html
new file mode 100644
index 0000000..19ee75d
--- /dev/null
+++ b/demos/MiscDemos/teapots_plugin13.html
@@ -0,0 +1,48 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Teapots by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Teapots applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "teapots.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "teapots.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "teapots.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "teapots.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/MiscDemos/tess.h b/demos/MiscDemos/tess.h
new file mode 100644
index 0000000..998c67b
--- /dev/null
+++ b/demos/MiscDemos/tess.h
@@ -0,0 +1,40 @@
+/* DO NOT EDIT THIS FILE - it is machine generated */
+#include <jni.h>
+/* Header for class tess */
+
+#ifndef _Included_tess
+#define _Included_tess
+#ifdef __cplusplus
+extern "C" {
+#endif
+/* Inaccessible static: LOCK */
+#undef tess_assert
+#define tess_assert 0L
+/* Inaccessible static: isInc */
+/* Inaccessible static: incRate */
+#undef tess_TOP_ALIGNMENT
+#define tess_TOP_ALIGNMENT 0.0f
+#undef tess_CENTER_ALIGNMENT
+#define tess_CENTER_ALIGNMENT 0.5f
+#undef tess_BOTTOM_ALIGNMENT
+#define tess_BOTTOM_ALIGNMENT 1.0f
+#undef tess_LEFT_ALIGNMENT
+#define tess_LEFT_ALIGNMENT 0.0f
+#undef tess_RIGHT_ALIGNMENT
+#define tess_RIGHT_ALIGNMENT 1.0f
+#undef tess_serialVersionUID
+#define tess_serialVersionUID -7644114512714619750LL
+#undef tess_serialVersionUID
+#define tess_serialVersionUID 4613797578919906343LL
+/* Inaccessible static: nameCounter */
+#undef tess_serialVersionUID
+#define tess_serialVersionUID -2728009084054400034LL
+#undef tess_serialVersionUID
+#define tess_serialVersionUID -5836846270535785031LL
+/* Inaccessible static: rect */
+/* Inaccessible static: tri */
+/* Inaccessible static: star */
+#ifdef __cplusplus
+}
+#endif
+#endif
diff --git a/demos/MiscDemos/tess.html b/demos/MiscDemos/tess.html
new file mode 100644
index 0000000..e4496f7
--- /dev/null
+++ b/demos/MiscDemos/tess.html
@@ -0,0 +1,15 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Press the Right-Mouse Button for a Menu !
+<br>
+<hr>
+<applet code="tess.class" width=500 height=300>
+<param name=frames value="55">
+</applet>
+<hr>
+</BODY>
+</HTML>
+
diff --git a/demos/MiscDemos/tess.java b/demos/MiscDemos/tess.java
new file mode 100644
index 0000000..2cf3a7a
--- /dev/null
+++ b/demos/MiscDemos/tess.java
@@ -0,0 +1,298 @@
+/*
+ * Copyright (c) 1993-1997, Silicon Graphics, Inc.
+ * ALL RIGHTS RESERVED
+ * Permission to use, copy, modify, and distribute this software for
+ * any purpose and without fee is hereby granted, provided that the above
+ * copyright notice appear in all copies and that both the copyright notice
+ * and this permission notice appear in supporting documentation, and that
+ * the name of Silicon Graphics, Inc. not be used in adverti(float)Math.sing
+ * or publicity pertaining to distribution of the software without specific,
+ * written prior permission.
+ *
+ * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
+ * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
+ * GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
+ * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
+ * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
+ * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
+ * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN
+ * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
+ * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * US Government Users Restricted Rights
+ * Use, duplication, or disclosure by the Government is subject to
+ * restrictions set forth in FAR 52.227f.19(c)(2) or subparagraph
+ * (c)(1)(ii) of the Rights in Technical Data and Computer Software
+ * clause at DFARS 252.227f-7013 and/or in similar or successor
+ * clauses in the FAR or the DOD or NASA FAR Supplement.
+ * Unpublished-- rights reserved under the copyright laws of the
+ * United States. Contractor/manufacturer is Silicon Graphics,
+ * Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
+ *
+ * OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
+ */
+
+/*
+ * tess.c
+ * This program demonstrates polygon tessellation.
+ * Two tesselated objects are drawn. The first is a
+ * rectangle with a triangular hole. The second is a
+ * smooth shaded, self-intersecting star.
+ *
+ * Note the exterior rectangle is drawn with its vertices
+ * in counter-clockwise order, but its interior clockwise.
+ * Note the combineCallback is needed for the self-intersecting
+ * star. Also note that removing the TessProperty for the
+ * star will make the interior unshaded (WINDING_ODD).
+ */
+
+import gl4java.utils.glut.*;
+import gl4java.utils.glut.fonts.*;
+
+import gl4java.awt.*;
+import java.applet.*;
+import java.awt.*;
+import java.awt.Dimension;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import gl4java.*;
+
+public class tess extends Applet {
+
+ MyCanvas canvas = null;
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new MyCanvas (d.width, d.height);
+ add("Center", canvas);
+ }
+
+ public static void main( String args[] )
+ {
+ Frame mainFrame = new Frame("tessdemo");
+
+ tess applet = new tess();
+
+ applet.setSize(400, 400);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ }
+
+ public void start()
+ {
+ }
+
+
+ public void stop()
+ {
+ }
+
+ public static double rect[/*4*/][/*3*/] =
+ {{50.0, 50.0, 0.0},
+ {200.0, 50.0, 0.0},
+ {200.0, 200.0f, 0.0},
+ {50.0, 200.0, 0.0}};
+ public static double tri[/*3*/][/*3*/] =
+ {{75.0, 75.0, 0.0},
+ {125.0, 175.0, 0.0},
+ {175.0, 75.0, 0.0}};
+
+ public static double star[/*5*/][/*6*/] =
+ {{250.0, 50.0, 0.0, 1.0, 0.0, 1.0},
+ {325.0, 200.0, 0.0, 1.0, 1.0, 0.0},
+ {400.0, 50.0, 0.0, 0.0, 1.0, 1.0},
+ {250.0, 150.0, 0.0, 1.0, 0.0, 0.0},
+ {400.0, 150.0, 0.0, 0.0, 1.0, 0.0}};
+
+ protected class MyCanvas extends GLCanvas
+ {
+ protected GLUTFunc glut = null;
+
+ int startList=-1;
+ boolean exit = false;
+
+ public MyCanvas(int w, int h) {
+ super(w,h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void init() {
+ int i;
+ glut = new GLUTFuncLightImplWithFonts(gl, glu);
+
+ int tobj;
+
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+
+ startList = gl.glGenLists(2);
+
+ tobj = glu.gluNewTess();
+ glu.gluTessCallback ( tobj, GLU_TESS_VERTEX, gl,
+ "glVertex3dv", "([D)V",
+ 3, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_BEGIN, this,
+ "beginCallback", "(I)V",
+ 0, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_END, this,
+ "endCallback", "()V",
+ 0, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_ERROR, this,
+ "errorCallback", "(I)V",
+ 0, 0, 0, 0, 0);
+
+ /* rectangle with triangular hole inside */
+ gl.glNewList(startList, GL_COMPILE);
+ gl.glShadeModel(GL_FLAT);
+ glu.gluTessBeginPolygon(tobj, (double[])null);
+ glu.gluTessBeginContour(tobj);
+ glu.gluTessVertex(tobj, rect[0], rect[0]);
+ glu.gluTessVertex(tobj, rect[1], rect[1]);
+ glu.gluTessVertex(tobj, rect[2], rect[2]);
+ glu.gluTessVertex(tobj, rect[3], rect[3]);
+ glu.gluTessEndContour(tobj);
+ glu.gluTessBeginContour(tobj);
+ glu.gluTessVertex(tobj, tri[0], tri[0]);
+ glu.gluTessVertex(tobj, tri[1], tri[1]);
+ glu.gluTessVertex(tobj, tri[2], tri[2]);
+ glu.gluTessEndContour(tobj);
+ glu.gluTessEndPolygon(tobj);
+ gl.glEndList();
+
+ glu.gluTessCallback ( tobj, GLU_TESS_VERTEX, this,
+ "vertexCallback", "([D)V",
+ 6, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_BEGIN, this,
+ "beginCallback", "(I)V",
+ 0, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_END, this,
+ "endCallback", "()V",
+ 0, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_ERROR, this,
+ "errorCallback", "(I)V",
+ 0, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_COMBINE, this,
+ "combineCallback", "([D[D[F[D)V",
+ 3, 4*6, 4, 6, 0);
+
+ /* smooth shaded, self-intersecting star */
+ gl.glNewList(startList + 1, GL_COMPILE);
+ gl.glShadeModel(GL_SMOOTH);
+ glu.gluTessProperty(tobj, GLU_TESS_WINDING_RULE,
+ GLU_TESS_WINDING_POSITIVE);
+ glu.gluTessBeginPolygon(tobj, (double[])null);
+ glu.gluTessBeginContour(tobj);
+ glu.gluTessVertex(tobj, star[0], star[0]);
+ glu.gluTessVertex(tobj, star[1], star[1]);
+ glu.gluTessVertex(tobj, star[2], star[2]);
+ glu.gluTessVertex(tobj, star[3], star[3]);
+ glu.gluTessVertex(tobj, star[4], star[4]);
+ glu.gluTessEndContour(tobj);
+ glu.gluTessEndPolygon(tobj);
+ gl.glEndList();
+
+ glu.gluDeleteTess(tobj);
+
+ reshape(getSize().width, getSize().height);
+
+ glj.gljCheckGL();
+ }
+
+ public void display()
+ {
+
+ if(exit) return;
+
+ /* Standard GL4Java Init */
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ gl.glClear(GL_COLOR_BUFFER_BIT);
+ gl.glColor3f(1.0f, 1.0f, 1.0f);
+ gl.glCallList(startList);
+ gl.glCallList(startList + 1);
+
+ /* For your animation dutys ;-) */
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ public void beginCallback(int which)
+ {
+ gl.glBegin(which);
+ }
+
+ public void errorCallback(int errorCode)
+ {
+ String str;
+
+ gl.glColor3f( 0.9f, 0.9f, 0.9f );
+ gl.glRasterPos2i( 5, 5 );
+
+ str = glu.gluErrorString( errorCode );
+
+ glut.glutBitmapString(glut.GLUT_BITMAP_9_BY_15, str);
+ exit = true;
+ }
+
+ public void endCallback()
+ {
+ gl.glEnd();
+ }
+
+ public void vertexCallback(double[/*6*/] vertex)
+ {
+ double[] col = new double[3];
+ System.arraycopy(vertex, 3, col, 0, 3);
+
+ gl.glColor3dv(col);
+ gl.glVertex3dv(vertex);
+ }
+
+ /* combineCallback is used to create a new vertex when edges
+ * intersect. coordinate location is trivial to calculate,
+ * but weight[4] may be used to average color, normal, or texture
+ * coordinate data. In this program, color is weighted.
+ */
+ public void combineCallback(double coords[/*3*/],
+ double vertex_data[/*4x6*/],
+ float weight[/*4*/], double[/*6*/] dataOut )
+ {
+ int i;
+
+ dataOut[0] = coords[0];
+ dataOut[1] = coords[1];
+ dataOut[2] = coords[2];
+ for (i = 3; i < 6; i++)
+ dataOut[i] = weight[0] * vertex_data[0*6+i]
+ + weight[1] * vertex_data[1*6+i]
+ + weight[2] * vertex_data[2*6+i]
+ + weight[3] * vertex_data[3*6+i];
+ }
+
+ public void reshape(int w, int h)
+ {
+ gl.glViewport( 0, 0, w, h );
+
+ gl.glMatrixMode( GL_PROJECTION );
+ gl.glLoadIdentity();
+ glu.gluOrtho2D(0.0f, (double) w, 0.0f, (double) h);
+ }
+
+ }
+}
diff --git a/demos/MiscDemos/tess_plugin13.html b/demos/MiscDemos/tess_plugin13.html
new file mode 100644
index 0000000..d9b4bc1
--- /dev/null
+++ b/demos/MiscDemos/tess_plugin13.html
@@ -0,0 +1,47 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Press the Right-Mouse Button for a Menu !
+<br>
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 500 HEIGHT = 300 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "tess.class" WIDTH = 500 HEIGHT = 300 frames = "55" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "tess.class" WIDTH = 500 HEIGHT = 300></XMP>
+<PARAM NAME = CODE VALUE = "tess.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+<PARAM NAME = frames VALUE ="55">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "tess.class" WIDTH = 500 HEIGHT = 300>
+<PARAM NAME = frames VALUE ="55">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</BODY>
+</HTML>
+
diff --git a/demos/MiscDemos/tessdemo.html b/demos/MiscDemos/tessdemo.html
new file mode 100644
index 0000000..7e07e0b
--- /dev/null
+++ b/demos/MiscDemos/tessdemo.html
@@ -0,0 +1,15 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Press the Right-Mouse Button for a Menu !
+<br>
+<hr>
+<applet code="tessdemo.class" width=500 height=300>
+<param name=frames value="55">
+</applet>
+<hr>
+</BODY>
+</HTML>
+
diff --git a/demos/MiscDemos/tessdemo.java b/demos/MiscDemos/tessdemo.java
new file mode 100755
index 0000000..899b27a
--- /dev/null
+++ b/demos/MiscDemos/tessdemo.java
@@ -0,0 +1,667 @@
+/* $Id$ */
+
+/*
+ * A demo of the GLU polygon tesselation functions written by Bogdan Sikorski.
+ * This demo isn't built by the Makefile because it needs GLUT. After you've
+ * installed GLUT you can try this demo.
+ * Here's the command for IRIX, for example:
+ cc -g -ansi -prototypes -fullwarn -float -I../include -DSHM tess_demo.c -L../lib -lglut -lMesaGLU -lMesaGL -lm -lX11 -lXext -lXmu -lfpe -lXext -o tess_demo
+ */
+
+/*
+ * Updated for GLU 1.3f tessellation by Gareth Hughes <[email protected]>
+ */
+
+/*
+ * $Log$
+ * Revision 1.1 2000/11/18 06:53:19 sven
+ * Initial revision
+ *
+ * Revision 1.3f.2.1f 1999/11/16 11:09:09 gareth
+ * Added combine callback. Converted vertices from ints to floats.
+ *
+ * Revision 1.3f 1999/11/04 04:00:42 gareth
+ * Updated demo for new GLU 1.3f tessellation. Added optimized rendering
+ * by saving the output of the tessellation into display lists.
+ *
+ * Revision 1.2f 1999/09/19 20:09:00 tanner
+ *
+ * lots of autoconf updates
+ *
+ * Revision 1.1f.1.1f 1999/08/19 00:55:40 jtg
+ * Imported sources
+ *
+ * Revision 3.5f 1999/03/28 18:24:37 brianp
+ * minor clean-up
+ *
+ * Revision 3.4f 1999/02/14 03:37:07 brianp
+ * fixed callback problem
+ *
+ * Revision 3.3f 1998/07/26 01:25:26 brianp
+ * removed include of gl.h and glu.h
+ *
+ * Revision 3.2f 1998/06/29 02:37:30 brianp
+ * minor changes for Windows (Ted Jump)
+ *
+ * Revision 3.1f 1998/06/09 01:53:49 brianp
+ * main() should return an int
+ *
+ * Revision 3.0f 1998/02/14 18:42:29 brianp
+ * initial rev
+ *
+ */
+
+
+import gl4java.utils.glut.*;
+import gl4java.utils.glut.fonts.*;
+import gl4java.utils.textures.*;
+
+import gl4java.awt.*;
+import java.applet.*;
+import java.awt.*;
+import java.awt.Dimension;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import gl4java.*;
+
+public class tessdemo extends Applet {
+
+ MyCanvas canvas = null;
+ boolean isAnApplet = true;
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new MyCanvas (d.width, d.height);
+ add("Center", canvas);
+ }
+
+ public static void main( String args[] )
+ {
+ Frame mainFrame = new Frame("tessdemo");
+
+ tessdemo applet = new tessdemo();
+ applet.isAnApplet = false;
+
+ applet.setSize(400, 400);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+
+ System.out.println(applet.canvas.usage());
+ }
+
+ public void start()
+ {
+ }
+
+
+ public void stop()
+ {
+ }
+
+ static final int MAX_POINTS = 256;
+ static final int MAX_CONTOURS = 32;
+ static final int MAX_TRIANGLES = 256;
+ static final String MENU_DONE = "Done";
+ static final String MENU_TESS = "Tesselate";
+ static final String MENU_CLR = "Clear";
+ static final String MENU_SNAPSHOT = "Snapshot";
+ static final int MODE_DONE =0;
+ static final int MODE_CLR =1;
+ static final int MODE_DEFINE =2;
+ static final int MODE_TESSELATE =3;
+ static final int MODE_TESSELATED =4;
+
+ protected class Contour
+ {
+ float p[][];
+ int point_cnt;
+
+ public Contour()
+ {
+ p = new float[MAX_POINTS][2];
+ point_cnt = 0;
+ }
+ }
+
+ protected class Triangle
+ {
+ int no;
+ float p[][];
+ float color[][];
+
+ public Triangle()
+ {
+ no = 0;
+ p = new float[3][2];
+ color = new float[3][3];
+ }
+ }
+
+ protected class MyCanvas extends GLCanvas
+ implements MouseListener, ActionListener
+ {
+ protected GLUTFunc glut = null;
+
+
+ private PopupMenu menu = null;
+ private boolean menu_showing = false;
+
+ int contour_cnt;
+ int triangle_cnt;
+
+ int mode;
+
+ int list_start;
+
+ float edge_color[];
+
+ Contour contours[/*MAX_CONTOURS*/];
+
+ Triangle triangles[/*MAX_TRIANGLES*/];
+
+ TGATextureGrabber textgrab = null;
+
+ boolean doSnapshot=false;
+
+ public MyCanvas(int w, int h) {
+ super(w,h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void init() {
+ int i;
+ glut = new GLUTFuncLightImplWithFonts(gl, glu);
+ textgrab = new TGATextureGrabber(gl);
+ contours = new Contour[MAX_CONTOURS];
+ for(i=0; i<MAX_CONTOURS; i++)
+ contours[i] = new Contour();
+ triangles = new Triangle[MAX_TRIANGLES];
+ for(i=0; i<MAX_TRIANGLES; i++)
+ triangles[i] = new Triangle();
+ edge_color = new float[3];
+
+ /* clear background to gray */
+ gl.glClearColor( 0.4f, 0.4f, 0.4f, 0.0f );
+ gl.glShadeModel( GL_FLAT );
+ gl.glPolygonMode( GL_FRONT, GL_FILL );
+
+ contour_cnt = 0;
+ mode = MODE_DEFINE;
+
+ reshape(getSize().width, getSize().height);
+
+ glj.gljCheckGL();
+
+ menu = new PopupMenu("Options");
+ menu.add(MENU_DONE);
+ menu.add(MENU_TESS);
+ menu.add(MENU_CLR);
+ if(!isAnApplet)
+ menu.add(MENU_SNAPSHOT);
+ menu.addActionListener(this);
+ add(menu);
+
+ addMouseListener(this);
+ }
+
+
+ public void error_callback( int err )
+ {
+ String str;
+
+ gl.glColor3f( 0.9f, 0.9f, 0.9f );
+ gl.glRasterPos2i( 5, 5 );
+
+ str = glu.gluErrorString( err );
+
+ glut.glutBitmapString(glut.GLUT_BITMAP_9_BY_15, str);
+ }
+
+ public void begin_callback( int mode )
+ {
+ /* Allow multiple triangles to be output inside the begin/end pair. */
+ triangle_cnt = 0;
+ triangles[triangle_cnt].no = 0;
+ }
+
+ public void edge_callback( boolean flag )
+ {
+ /* Persist the edge flag across triangles. */
+ if ( flag == GL_TRUE )
+ {
+ edge_color[0] = 1.0f;
+ edge_color[1] = 1.0f;
+ edge_color[2] = 0.5f;
+ }
+ else
+ {
+ edge_color[0] = 1.0f;
+ edge_color[1] = 0.0f;
+ edge_color[2] = 0.0f;
+ }
+ }
+
+ public void end_callback()
+ {
+ int i;
+
+ gl.glBegin( GL_LINES );
+
+ /* Output the three edges of each triangle as lines colored
+ according to their edge flag. */
+ for ( i = 0 ; i < triangle_cnt ; i++ )
+ {
+ gl.glColor3f( triangles[i].color[0][0],
+ triangles[i].color[0][1],
+ triangles[i].color[0][2] );
+
+ gl.glVertex2f( triangles[i].p[0][0], triangles[i].p[0][1] );
+ gl.glVertex2f( triangles[i].p[1][0], triangles[i].p[1][1] );
+
+ gl.glColor3f( triangles[i].color[1][0],
+ triangles[i].color[1][1],
+ triangles[i].color[1][2] );
+
+ gl.glVertex2f( triangles[i].p[1][0], triangles[i].p[1][1] );
+ gl.glVertex2f( triangles[i].p[2][0], triangles[i].p[2][1] );
+
+ gl.glColor3f( triangles[i].color[2][0],
+ triangles[i].color[2][1],
+ triangles[i].color[2][2] );
+
+ gl.glVertex2f( triangles[i].p[2][0], triangles[i].p[2][1] );
+ gl.glVertex2f( triangles[i].p[0][0], triangles[i].p[0][1] );
+ }
+
+ gl.glEnd();
+ }
+
+ public void vertex_callback( float[/*2*/] data )
+ {
+ int no;
+
+ no = triangles[triangle_cnt].no;
+
+ triangles[triangle_cnt].p[no][0] = data[0];
+ triangles[triangle_cnt].p[no][1] = data[1];
+
+ triangles[triangle_cnt].color[no][0] = edge_color[0];
+ triangles[triangle_cnt].color[no][1] = edge_color[1];
+ triangles[triangle_cnt].color[no][2] = edge_color[2];
+
+ /* After every three vertices, initialize the next triangle. */
+ if ( ++(triangles[triangle_cnt].no) == 3 )
+ {
+ triangle_cnt++;
+ triangles[triangle_cnt].no = 0;
+ }
+ }
+
+ public void combine_callback( double coords[/*3*/],
+ double vertex_data[/*4xn(=0)*/],
+ float weight[/*4*/], float[/*m(=2)*/] data )
+ {
+ data[0] = (float) coords[0];
+ data[1] = (float) coords[1];
+ }
+
+ public void tesse( )
+ {
+ int tobj;
+ double data[] = new double[3];
+ int i, j, point_cnt;
+
+ list_start = gl.glGenLists( 2 );
+
+ tobj = glu.gluNewTess();
+
+ if ( tobj != 0 )
+ {
+ glu.gluTessCallback ( tobj, GLU_TESS_BEGIN, gl,
+ "glBegin", "(I)V",
+ 0, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_VERTEX, gl,
+ "glVertex2fv", "([F)V",
+ 2, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_END, gl,
+ "glEnd", "()V",
+ 0, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_ERROR, this,
+ "error_callback", "(I)V",
+ 0, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_COMBINE, this,
+ "combine_callback", "([D[D[F[F)V",
+ 2, 0, 0, 2, 0);
+
+ gl.glNewList( list_start, GL_COMPILE );
+ glu.gluBeginPolygon( tobj );
+
+ for ( j = 0 ; j <= contour_cnt ; j++ )
+ {
+ point_cnt = contours[j].point_cnt;
+ glu.gluNextContour( tobj, GLU_UNKNOWN );
+
+ for ( i = 0 ; i < point_cnt ; i++ )
+ {
+ data[0] = (double)( contours[j].p[i][0] );
+ data[1] = (double)( contours[j].p[i][1] );
+ data[2] = 0.0;
+ glu.gluTessVertex( tobj, data, contours[j].p[i] );
+ }
+ }
+
+ glu.gluEndPolygon( tobj );
+ gl.glEndList();
+
+ glu.gluTessCallback ( tobj, GLU_TESS_BEGIN, this,
+ "begin_callback", "(I)V",
+ 0, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_VERTEX, this,
+ "vertex_callback", "([F)V",
+ 2, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_END, this,
+ "end_callback", "()V",
+ 0, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_EDGE_FLAG, this,
+ "edge_callback", "(Z)V",
+ 0, 0, 0, 0, 0);
+
+ gl.glNewList( list_start + 1, GL_COMPILE );
+ glu.gluBeginPolygon( tobj );
+
+ for ( j = 0 ; j <= contour_cnt ; j++ )
+ {
+ point_cnt = contours[j].point_cnt;
+ glu.gluNextContour( tobj, GLU_UNKNOWN );
+
+ for ( i = 0 ; i < point_cnt ; i++ )
+ {
+ data[0] = (double)( contours[j].p[i][0] );
+ data[1] = (double)( contours[j].p[i][1] );
+ data[2] = 0.0f;
+ glu.gluTessVertex( tobj, data, contours[j].p[i] );
+ }
+ }
+
+ glu.gluEndPolygon( tobj );
+ gl.glEndList();
+
+ glu.gluDeleteTess( tobj );
+ }
+ }
+
+ public void mouseClicked(MouseEvent evt)
+ {
+ if(mode != MODE_DEFINE)
+ return;
+
+ int x1 = evt.getX();
+ int y1 = evt.getY();
+ x1 -= x1%10;
+ y1 -= y1%10;
+
+ float[] P = new float[2];
+ int point_cnt;
+
+ /* translate GLUT into GL coordinates */
+
+ P[0] = x1;
+ P[1] = getSize().height -y1;
+
+ point_cnt = contours[contour_cnt].point_cnt;
+
+ contours[contour_cnt].p[point_cnt][0] = P[0];
+ contours[contour_cnt].p[point_cnt][1] = P[1];
+
+ contours[contour_cnt].point_cnt++;
+ repaint();
+ }
+
+ public void donePlaceing()
+ {
+ int point_cnt;
+
+ point_cnt = contours[contour_cnt].point_cnt;
+
+ if ( point_cnt > 2 )
+ {
+ /*
+ gl.glBegin( GL_LINES );
+
+ gl.glVertex2fv( contours[contour_cnt].p[0] );
+ gl.glVertex2fv( contours[contour_cnt].p[point_cnt-1] );
+
+ gl.glEnd();
+ */
+ contours[contour_cnt].p[point_cnt][0] = -1;
+
+ contour_cnt++;
+ contours[contour_cnt].point_cnt = 0;
+ }
+ }
+
+ public void display()
+ {
+
+ /* Standard GL4Java Init */
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ int i,j;
+ int point_cnt;
+
+ gl.glClear( GL_COLOR_BUFFER_BIT );
+
+ switch ( mode )
+ {
+ case MODE_DONE:
+ mode=MODE_DEFINE;
+ donePlaceing();
+ repaint();
+ break;
+
+ case MODE_CLR:
+ mode=MODE_DEFINE;
+ clear();
+ repaint();
+ break;
+
+ case MODE_DEFINE:
+ /* draw grid */
+ gl.glColor3f( 0.6f, 0.5f, 0.5f );
+
+ gl.glBegin( GL_LINES );
+
+ int width = getSize().width;
+ int height = getSize().height;
+ for ( i = 0 ; i < width ; i += 10 )
+ {
+ for ( j = 0 ; j < height ; j += 10 )
+ {
+ gl.glVertex2i( 0, j );
+ gl.glVertex2i( width, j );
+ gl.glVertex2i( i, height );
+ gl.glVertex2i( i, 0 );
+ }
+ }
+
+ gl.glEnd( );
+
+ gl.glColor3f( 1.0f, 1.0f, 0.0f );
+
+ for ( i = 0 ; i <= contour_cnt ; i++ )
+ {
+ point_cnt = contours[i].point_cnt;
+
+ gl.glBegin( GL_LINES );
+
+ switch ( point_cnt )
+ {
+ case 0:
+ break;
+ case 1:
+ gl.glVertex2fv( contours[i].p[0] );
+ gl.glVertex2fv( contours[i].p[0] );
+ break;
+ case 2:
+ gl.glVertex2fv( contours[i].p[0] );
+ gl.glVertex2fv( contours[i].p[1] );
+ break;
+ default:
+ --point_cnt;
+ for ( j = 0 ; j < point_cnt ; j++ )
+ {
+ gl.glVertex2fv( contours[i].p[j] );
+ gl.glVertex2fv( contours[i].p[j+1] );
+ }
+ if ( contours[i].p[j+1][0] == -1 )
+ {
+ gl.glVertex2fv( contours[i].p[0] );
+ gl.glVertex2fv( contours[i].p[j] );
+ }
+ break;
+ }
+
+ gl.glEnd();
+ }
+
+ // gl.glFinish();
+ break;
+
+ case MODE_TESSELATE:
+ mode=MODE_TESSELATED;
+ tesse();
+ glj.gljCheckGL();
+ repaint();
+ break;
+
+ case MODE_TESSELATED:
+ /* draw triangles */
+ gl.glColor3f( 0.7f, 0.7f, 0.0f );
+ gl.glCallList( list_start );
+
+ gl.glLineWidth( 2.0f );
+ gl.glCallList( list_start + 1 );
+ gl.glLineWidth( 1.0f );
+
+ // gl.glFlush();
+ glj.gljCheckGL();
+ break;
+ }
+
+ gl.glColor3f( 1.0f, 1.0f, 0.0f );
+
+ if(!isAnApplet && doSnapshot)
+ {
+ doSnapshot=false;
+ textgrab.grabPixels(GL_BACK,
+ 0, 0, cvsGetWidth(), cvsGetHeight());
+ textgrab.write2File("tessdemo.tga");
+ }
+ /* For your animation dutys ;-) */
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ public void clear( )
+ {
+ contour_cnt = 0;
+ contours[0].point_cnt = 0;
+ triangle_cnt = 0;
+
+ gl.glDeleteLists( list_start, 2 );
+ list_start = 0;
+ }
+
+ public void reshape(int w, int h)
+ {
+ gl.glViewport( 0, 0, w, h );
+
+ gl.glMatrixMode( GL_PROJECTION );
+ gl.glLoadIdentity();
+ gl.glOrtho( 0.0, (double)w, 0.0, (double)h, -1.0, 1.0 );
+
+ gl.glMatrixMode( GL_MODELVIEW );
+ gl.glLoadIdentity();
+ }
+
+
+ public String usage( )
+ {
+ return "Use left mouse button to place vertices.\n" +
+ "Select done from the pop-up menu,\n"+
+ "if you are done with placing vertices.\n"+
+ "Select tesselate from the pop-up menu.\n";
+ }
+
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered(MouseEvent evt)
+ {
+ }
+
+ public void mouseExited(MouseEvent evt)
+ {
+ }
+
+ public void mousePressed(MouseEvent evt)
+ {
+ if (!menu_showing)
+ {
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ menu_showing = true;
+ menu.show(this,evt.getX(),evt.getY());
+ }
+ }
+ else
+ {
+ menu_showing = false;
+ }
+ }
+
+ public void mouseReleased(MouseEvent evt)
+ {
+ }
+
+ // Method required for the implementation of ActionListener
+ public void actionPerformed(ActionEvent evt)
+ {
+ String c = evt.getActionCommand();
+ if (c.equals(MENU_TESS))
+ {
+ mode=MODE_TESSELATE;
+ }
+ else if (c.equals(MENU_CLR))
+ {
+ mode=MODE_CLR;
+ }
+ else if (c.equals(MENU_DONE))
+ {
+ mode=MODE_DONE;
+ }
+ else if (c.equals(MENU_SNAPSHOT))
+ {
+ doSnapshot=true;
+ }
+ if (menu_showing)
+ {
+ menu_showing = false;
+ }
+ repaint();
+ }
+ }
+}
diff --git a/demos/MiscDemos/tessdemo_plugin13.html b/demos/MiscDemos/tessdemo_plugin13.html
new file mode 100644
index 0000000..27e69b2
--- /dev/null
+++ b/demos/MiscDemos/tessdemo_plugin13.html
@@ -0,0 +1,47 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Press the Right-Mouse Button for a Menu !
+<br>
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 500 HEIGHT = 300 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "tessdemo.class" WIDTH = 500 HEIGHT = 300 frames = "55" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "tessdemo.class" WIDTH = 500 HEIGHT = 300></XMP>
+<PARAM NAME = CODE VALUE = "tessdemo.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+<PARAM NAME = frames VALUE ="55">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "tessdemo.class" WIDTH = 500 HEIGHT = 300>
+<PARAM NAME = frames VALUE ="55">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</BODY>
+</HTML>
+
diff --git a/demos/MiscDemos/tesswind.html b/demos/MiscDemos/tesswind.html
new file mode 100644
index 0000000..cafaf27
--- /dev/null
+++ b/demos/MiscDemos/tesswind.html
@@ -0,0 +1,15 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Press the Right-Mouse Button for a Menu !
+<br>
+<hr>
+<applet code="tesswind.class" width=500 height=500>
+<param name=frames value="55">
+</applet>
+<hr>
+</BODY>
+</HTML>
+
diff --git a/demos/MiscDemos/tesswind.java b/demos/MiscDemos/tesswind.java
new file mode 100755
index 0000000..b25ca42
--- /dev/null
+++ b/demos/MiscDemos/tesswind.java
@@ -0,0 +1,464 @@
+/*
+ * Copyright (c) 1993-1997, Silicon Graphics, Inc.
+ * ALL RIGHTS RESERVED
+ * Permission to use, copy, modify, and distribute this software for
+ * any purpose and without fee is hereby granted, provided that the above
+ * copyright notice appear in all copies and that both the copyright notice
+ * and this permission notice appear in supporting documentation, and that
+ * the name of Silicon Graphics, Inc. not be used in adverti(float)Math.sing
+ * or publicity pertaining to distribution of the software without specific,
+ * written prior permission.
+ *
+ * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
+ * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
+ * GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
+ * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
+ * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
+ * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
+ * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN
+ * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
+ * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * US Government Users Restricted Rights
+ * Use, duplication, or disclosure by the Government is subject to
+ * restrictions set forth in FAR 52.227f.19(c)(2) or subparagraph
+ * (c)(1)(ii) of the Rights in Technical Data and Computer Software
+ * clause at DFARS 252.227f-7013 and/or in similar or successor
+ * clauses in the FAR or the DOD or NASA FAR Supplement.
+ * Unpublished-- rights reserved under the copyright laws of the
+ * United States. Contractor/manufacturer is Silicon Graphics,
+ * Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
+ *
+ * OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
+ */
+
+/*
+ * tesswind.c
+ * This program demonstrates the winding rule polygon
+ * tessellation property. Four tessellated objects are drawn,
+ * each with very different contours. When the w key is pressed,
+ * the objects are drawn with a different winding rule.
+ */
+import gl4java.utils.glut.*;
+import gl4java.utils.glut.fonts.*;
+import gl4java.utils.textures.*;
+
+import gl4java.awt.*;
+import java.applet.*;
+import java.awt.*;
+import java.awt.Dimension;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import gl4java.*;
+
+public class tesswind extends Applet {
+
+ MyCanvas canvas = null;
+ boolean isAnApplet = true;
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new MyCanvas (d.width, d.height);
+ add("Center", canvas);
+ }
+
+ public static void main( String args[] )
+ {
+ Frame mainFrame = new Frame("tessdemo");
+
+ tesswind applet = new tesswind();
+ applet.isAnApplet = false;
+
+ applet.setSize(400, 400);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ }
+
+ public void start()
+ {
+ }
+
+
+ public void stop()
+ {
+ }
+
+ static final String MENU_1 = "Odd Winding";
+ static final String MENU_2 = "Nonzero Winding";
+ static final String MENU_3 = "Positive Winding";
+ static final String MENU_4 = "Negative Winding";
+ static final String MENU_5 = "ABS >= 2 Winding";
+ static final String MENU_SNAPSHOT = "Snapshot";
+
+ public static double rects[/*12*/][/*3*/] =
+ { { 50.0, 50.0, 0.0},
+ { 300.0, 50.0, 0.0},
+ { 300.0, 300.0, 0.0},
+ { 50.0, 300.0, 0.0},
+ { 100.0, 100.0, 0.0},
+ { 250.0, 100.0, 0.0},
+ { 250.0, 250.0, 0.0},
+ { 100.0, 250.0, 0.0},
+ { 150.0, 150.0, 0.0},
+ { 200.0, 150.0, 0.0},
+ { 200.0, 200.0, 0.0},
+ { 150.0, 200.0, 0.0} };
+
+ public static double spiral[/*16*/][/*3*/] =
+ { { 400.0, 250.0, 0.0},
+ { 400.0, 50.0, 0.0},
+ { 50.0, 50.0, 0.0},
+ { 50.0, 400.0, 0.0},
+ { 350.0, 400.0, 0.0},
+ { 350.0, 100.0, 0.0},
+ { 100.0, 100.0, 0.0},
+ { 100.0, 350.0, 0.0},
+ { 300.0, 350.0, 0.0},
+ { 300.0, 150.0, 0.0},
+ { 150.0, 150.0, 0.0},
+ { 150.0, 300.0, 0.0},
+ { 250.0, 300.0, 0.0},
+ { 250.0, 200.0, 0.0},
+ { 200.0, 200.0, 0.0},
+ { 200.0, 250.0, 0.0} };
+
+ public static double quad1[/*4*/][/*3*/] =
+ { {50.0, 150.0, 0.0},
+ {350.0, 150.0, 0.0},
+ {350.0, 200.0, 0.0},
+ {50.0, 200.0, 0.0} };
+
+ public static double quad2[/*4*/][/*3*/] =
+ { {100.0, 100.0, 0.0},
+ {300.0, 100.0, 0.0},
+ {300.0, 350.0, 0.0},
+ {100.0, 350.0, 0.0} };
+
+ public static double tri[/*3*/][/*3*/] =
+ { {200.0, 50.0, 0.0},
+ {250.0, 300.0, 0.0},
+ {150.0, 300.0, 0.0} };
+
+ protected class MyCanvas extends GLCanvas
+ implements MouseListener, ActionListener
+ {
+ protected GLUTFunc glut = null;
+
+ boolean exit = false;
+ boolean mkNewLists = false;
+
+ int startList=-1;
+
+ private PopupMenu menu = null;
+ private boolean menu_showing = false;
+
+ TGATextureGrabber textgrab = null;
+
+ boolean doSnapshot=false;
+
+ public MyCanvas(int w, int h) {
+ super(w,h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ double currentWinding = GLU_TESS_WINDING_ODD;
+ int currentShape = 0;
+ int tobj;
+ int list;
+
+ public void init() {
+ int i;
+ glut = new GLUTFuncLightImplWithFonts(gl, glu);
+
+ textgrab = new TGATextureGrabber(gl);
+
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+ gl.glShadeModel(GL_FLAT);
+
+ tobj = glu.gluNewTess();
+
+ glu.gluTessCallback ( tobj, GLU_TESS_VERTEX, gl,
+ "glVertex3dv", "([D)V",
+ 3, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_BEGIN, this,
+ "beginCallback", "(I)V",
+ 0, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_END, this,
+ "endCallback", "()V",
+ 0, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_ERROR, this,
+ "errorCallback", "(I)V",
+ 0, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_COMBINE, this,
+ "combineCallback", "([D[D[F[D)V",
+ 3, 0, 0, 3, 0);
+
+
+ list = gl.glGenLists(4);
+ makeNewLists();
+
+ reshape(getSize().width, getSize().height);
+
+ glj.gljCheckGL();
+
+ menu = new PopupMenu("Options");
+ menu.add(MENU_1);
+ menu.add(MENU_2);
+ menu.add(MENU_3);
+ menu.add(MENU_4);
+ menu.add(MENU_5);
+ if(!isAnApplet)
+ menu.add(MENU_SNAPSHOT);
+ menu.addActionListener(this);
+ add(menu);
+ addMouseListener(this);
+ }
+
+
+ /* Make four display lists,
+ * each with a different tessellated object.
+ */
+ void makeNewLists ()
+ {
+ int i;
+ glu.gluTessProperty(tobj, GLU_TESS_WINDING_RULE,
+ currentWinding);
+
+ gl.glNewList(list, GL_COMPILE);
+ glu.gluTessBeginPolygon(tobj, (double[])null);
+ glu.gluTessBeginContour(tobj);
+ for (i = 0; i < 4; i++)
+ glu.gluTessVertex(tobj, rects[i], rects[i]);
+ glu.gluTessEndContour(tobj);
+ glu.gluTessBeginContour(tobj);
+ for (i = 4; i < 8; i++)
+ glu.gluTessVertex(tobj, rects[i], rects[i]);
+ glu.gluTessEndContour(tobj);
+ glu.gluTessBeginContour(tobj);
+ for (i = 8; i < 12; i++)
+ glu.gluTessVertex(tobj, rects[i], rects[i]);
+ glu.gluTessEndContour(tobj);
+ glu.gluTessEndPolygon(tobj);
+ gl.glEndList();
+
+ gl.glNewList(list+1, GL_COMPILE);
+ glu.gluTessBeginPolygon(tobj, (double[])null);
+ glu.gluTessBeginContour(tobj);
+ for (i = 0; i < 4; i++)
+ glu.gluTessVertex(tobj, rects[i], rects[i]);
+ glu.gluTessEndContour(tobj);
+ glu.gluTessBeginContour(tobj);
+ for (i = 7; i >= 4; i--)
+ glu.gluTessVertex(tobj, rects[i], rects[i]);
+ glu.gluTessEndContour(tobj);
+ glu.gluTessBeginContour(tobj);
+ for (i = 11; i >= 8; i--)
+ glu.gluTessVertex(tobj, rects[i], rects[i]);
+ glu.gluTessEndContour(tobj);
+ glu.gluTessEndPolygon(tobj);
+ gl.glEndList();
+
+ gl.glNewList(list+2, GL_COMPILE);
+ glu.gluTessBeginPolygon(tobj, (double[])null);
+ glu.gluTessBeginContour(tobj);
+ for (i = 0; i < 16; i++)
+ glu.gluTessVertex(tobj, spiral[i], spiral[i]);
+ glu.gluTessEndContour(tobj);
+ glu.gluTessEndPolygon(tobj);
+ gl.glEndList();
+
+ gl.glNewList(list+3, GL_COMPILE);
+ glu.gluTessBeginPolygon(tobj, (double[])null);
+ glu.gluTessBeginContour(tobj);
+ for (i = 0; i < 4; i++)
+ glu.gluTessVertex(tobj, quad1[i], quad1[i]);
+ glu.gluTessEndContour(tobj);
+ glu.gluTessBeginContour(tobj);
+ for (i = 0; i < 4; i++)
+ glu.gluTessVertex(tobj, quad2[i], quad2[i]);
+ glu.gluTessEndContour(tobj);
+ glu.gluTessBeginContour(tobj);
+ for (i = 0; i < 3; i++)
+ glu.gluTessVertex(tobj, tri[i], tri[i]);
+ glu.gluTessEndContour(tobj);
+ glu.gluTessEndPolygon(tobj);
+ gl.glEndList();
+ }
+
+ public void display()
+ {
+
+ if(exit) return;
+
+ /* Standard GL4Java Init */
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ if(mkNewLists)
+ {
+ makeNewLists();
+ mkNewLists = false;
+ }
+
+ gl.glClear(GL_COLOR_BUFFER_BIT);
+ gl.glColor3f(1.0f, 1.0f, 1.0f);
+ gl.glPushMatrix();
+ gl.glCallList(list);
+ gl.glTranslatef(0.0f, 500.0f, 0.0f);
+ gl.glCallList(list+1);
+ gl.glTranslatef(500.0f, -500.0f, 0.0f);
+ gl.glCallList(list+2);
+ gl.glTranslatef(0.0f, 500.0f, 0.0f);
+ gl.glCallList(list+3);
+ gl.glPopMatrix();
+
+ if(!isAnApplet && doSnapshot)
+ {
+ doSnapshot=false;
+ textgrab.grabPixels(GL_BACK,
+ 0, 0, cvsGetWidth(), cvsGetHeight());
+ textgrab.write2File("tesswind.tga");
+ }
+
+ /* For your animation dutys ;-) */
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ public void beginCallback(int which)
+ {
+ gl.glBegin(which);
+ }
+
+ public void errorCallback(int errorCode)
+ {
+ String str;
+
+ gl.glColor3f( 0.9f, 0.9f, 0.9f );
+ gl.glRasterPos2i( 5, 5 );
+
+ str = glu.gluErrorString( errorCode );
+
+ glut.glutBitmapString(glut.GLUT_BITMAP_9_BY_15, str);
+ exit = true;
+ }
+
+ public void endCallback()
+ {
+ gl.glEnd();
+ }
+
+ /* combineCallback is used to create a new vertex when edges
+ * intersect. coordinate location is trivial to calculate,
+ * but weight[4] may be used to average color, normal, or texture
+ * coordinate data.
+ */
+ /* ARGSUSED */
+ public void combineCallback(double coords[/*3*/], double data[/*4xn*/],
+ float weight[/*4*/], double[/*3*/] dataOut )
+ {
+ dataOut[0] = coords[0];
+ dataOut[1] = coords[1];
+ dataOut[2] = coords[2];
+ }
+
+ public void reshape(int w, int h)
+ {
+ gl.glViewport( 0, 0, w, h );
+
+ gl.glMatrixMode( GL_PROJECTION );
+ gl.glLoadIdentity();
+ if (w <= h)
+ glu.gluOrtho2D(0.0f, 1000.0f, 0.0f, 1000.0f * (double)h/(double)w);
+ else
+ glu.gluOrtho2D(0.0f, 1000.0f * (double)w/(double)h, 0.0f, 1000.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered(MouseEvent evt)
+ {
+ }
+
+ public void mouseExited(MouseEvent evt)
+ {
+ }
+
+ public void mousePressed(MouseEvent evt)
+ {
+ if (!menu_showing)
+ {
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ menu_showing = true;
+ menu.show(this,evt.getX(),evt.getY());
+ }
+ }
+ else
+ {
+ menu_showing = false;
+ }
+ }
+
+ public void mouseClicked(MouseEvent evt)
+ {
+ }
+
+ public void mouseReleased(MouseEvent evt)
+ {
+ }
+
+ // Method required for the implementation of ActionListener
+ public void actionPerformed(ActionEvent evt)
+ {
+ String c = evt.getActionCommand();
+ if (c.equals(MENU_1))
+ {
+ currentWinding = GLU_TESS_WINDING_ODD;
+ }
+ else if (c.equals(MENU_2))
+ {
+ currentWinding = GLU_TESS_WINDING_NONZERO;
+ }
+ else if (c.equals(MENU_3))
+ {
+ currentWinding = GLU_TESS_WINDING_POSITIVE;
+ }
+ else if (c.equals(MENU_4))
+ {
+ currentWinding = GLU_TESS_WINDING_NEGATIVE;
+ }
+ else if (c.equals(MENU_5))
+ {
+ currentWinding = GLU_TESS_WINDING_ABS_GEQ_TWO;
+ }
+ else if (c.equals(MENU_SNAPSHOT))
+ {
+ doSnapshot=true;
+ }
+ if (menu_showing)
+ {
+ menu_showing = false;
+ }
+ mkNewLists = true;
+ repaint();
+ }
+ }
+}
diff --git a/demos/MiscDemos/tesswind_plugin13.html b/demos/MiscDemos/tesswind_plugin13.html
new file mode 100644
index 0000000..0786232
--- /dev/null
+++ b/demos/MiscDemos/tesswind_plugin13.html
@@ -0,0 +1,47 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Press the Right-Mouse Button for a Menu !
+<br>
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 500 HEIGHT = 500 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "tesswind.class" WIDTH = 500 HEIGHT = 500 frames = "55" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "tesswind.class" WIDTH = 500 HEIGHT = 500></XMP>
+<PARAM NAME = CODE VALUE = "tesswind.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+<PARAM NAME = frames VALUE ="55">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "tesswind.class" WIDTH = 500 HEIGHT = 500>
+<PARAM NAME = frames VALUE ="55">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</BODY>
+</HTML>
+
diff --git a/demos/MiscDemos/tex/DAISYX.png b/demos/MiscDemos/tex/DAISYX.png
new file mode 100644
index 0000000..4892a0b
--- /dev/null
+++ b/demos/MiscDemos/tex/DAISYX.png
Binary files differ
diff --git a/demos/MiscDemos/tex/a.tga b/demos/MiscDemos/tex/a.tga
new file mode 100644
index 0000000..2bbd4d5
--- /dev/null
+++ b/demos/MiscDemos/tex/a.tga
Binary files differ
diff --git a/demos/MiscDemos/tex/gleeson_head.jpg b/demos/MiscDemos/tex/gleeson_head.jpg
new file mode 100644
index 0000000..354cd2f
--- /dev/null
+++ b/demos/MiscDemos/tex/gleeson_head.jpg
Binary files differ
diff --git a/demos/MiscDemos/tex/gnu-head-sm.png b/demos/MiscDemos/tex/gnu-head-sm.png
new file mode 100755
index 0000000..fc91ff9
--- /dev/null
+++ b/demos/MiscDemos/tex/gnu-head-sm.png
Binary files differ
diff --git a/demos/MiscDemos/tex/jaulogo-300x80.png b/demos/MiscDemos/tex/jaulogo-300x80.png
new file mode 100755
index 0000000..4ed48f3
--- /dev/null
+++ b/demos/MiscDemos/tex/jaulogo-300x80.png
Binary files differ
diff --git a/demos/RectRenderSpeed/GL4JCanvas.java b/demos/RectRenderSpeed/GL4JCanvas.java
new file mode 100644
index 0000000..7366ee0
--- /dev/null
+++ b/demos/RectRenderSpeed/GL4JCanvas.java
@@ -0,0 +1,674 @@
+
+import java.io.*;
+
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+
+//----------------------------------------------
+// class definition.
+//----------------------------------------------
+public class GL4JCanvas extends gl4java.awt.GLCanvas
+{
+ private int _canvas_wid_pix;
+ private int _canvas_hei_pix;
+ private int _num_colors = 50;
+ private boolean refresh_gl = false;
+
+//----------------------------------------------
+// method constructor.
+//----------------------------------------------
+public GL4JCanvas (int wid_pix, int hei_pix)
+{
+ super (wid_pix, hei_pix);
+
+ _canvas_wid_pix = wid_pix;
+ _canvas_hei_pix = hei_pix;
+
+}
+//----------------------------------------------
+// method preInit
+//----------------------------------------------
+public void preInit ()
+{
+ stereoView = false;
+}
+
+public void preSetDblBuffer(boolean dblBuffer)
+{
+ doubleBuffer = dblBuffer;
+}
+
+//----------------------------------------------
+// method init
+//----------------------------------------------
+public void init ()
+{
+}
+//----------------------------------------------
+// method display
+//----------------------------------------------
+public void display ()
+{
+ boolean loc_err;
+
+ loc_err = false;
+
+ if(scripting_modes_number>0)
+ {
+ int i;
+ for (i=0; i<scripting_modes_number; i++)
+ {
+ System.out.println("trying mode: "+scripting_modes[i]);
+ if(setRenderMode(scripting_modes[i])==false)
+ {
+ System.out.println("render mode: "+scripting_modes[i]+" not supported !");
+ continue;
+ }
+ gl_display();
+ }
+ cvsDispose();
+ System.exit(0);
+ }
+
+ if(refresh_gl)
+ {
+ refresh_gl = false;
+ gl_display ();
+ }
+}
+
+public void setRefreshGL(boolean b)
+{
+ refresh_gl = b;
+}
+
+
+public void printTimeDelta(long startTime, int count)
+{
+ long t1 = System.currentTimeMillis ();
+ System.out.println ("... elapsed time: "
+ +((double)(t1-startTime)/1000.0)+" Sec");
+ if(count>0)
+ System.out.println ("... rate: "
+ +(((double)(t1-startTime))*(1000.0/(double)count))
+ +" SPMR (Sec Per Million Rectangles)");
+}
+
+public double getTimeDeltaSecs(long startTime)
+{
+ long t1 = System.currentTimeMillis ();
+ return (double)(t1-startTime)/1000.0;
+}
+
+public static final String modes = new String (
+ " 0 - Immediate + FLAT + ColorIndex + glRect\n"+
+ " 1 - Immediate + FLAT + ColorIndex + glRectiv\n"+
+ " 2 - Immediate + FLAT + ColorIndex + POLYGON + glVertex2i(x2,y2);\n"+
+ " 3 - Immediate + FLAT + ColorIndex + QUADS + glVertex2i(x2,y2);\n"+
+ " 10 - Immediate + FLAT + RGB + glRect\n"+
+ " 11 - Immediate + FLAT + RGB + glRectiv\n"+
+ " 12 - Immediate + FLAT + RGB + POLYGON + glVertex2i(x2,y2);\n"+
+ " 13 - Immediate + FLAT + RGB + QUADS + glVertex2i(x2,y2);\n"+
+ " 20 - Immediate + SMOOTH + ColorIndex + glRect\n"+
+ " 21 - Immediate + SMOOTH + ColorIndex + glRectiv\n"+
+ " 22 - Immediate + SMOOTH + ColorIndex + POLYGON + glVertex2i(x2,y2);\n"+
+ " 23 - Immediate + SMOOTH + ColorIndex + QUADS + glVertex2i(x2,y2);\n"+
+ " 30 - Immediate + SMOOTH + RGB + glRect\n"+
+ " 31 - Immediate + SMOOTH + RGB + glRectiv\n"+
+ " 32 - Immediate + SMOOTH + RGB + POLYGON + glVertex2i(x2,y2);\n"+
+ " 33 - Immediate + SMOOTH + RGB + QUADS + glVertex2i(x2,y2);\n"+
+ "100 - COMPILED + FLAT + ColorIndex + glRect\n"+
+ "101 - COMPILED + FLAT + ColorIndex + glRectiv\n"+
+ "102 - COMPILED + FLAT + ColorIndex + POLYGON + glVertex2i(x2,y2);\n"+
+ "103 - COMPILED + FLAT + ColorIndex + QUADS + glVertex2i(x2,y2);\n"+
+ "110 - COMPILED + FLAT + RGB + glRect\n"+
+ "111 - COMPILED + FLAT + RGB + glRectiv\n"+
+ "112 - COMPILED + FLAT + RGB + POLYGON + glVertex2i(x2,y2);\n"+
+ "113 - COMPILED + FLAT + RGB + QUADS + glVertex2i(x2,y2);\n"+
+ "120 - COMPILED + SMOOTH + ColorIndex + glRect\n"+
+ "121 - COMPILED + SMOOTH + ColorIndex + glRectiv\n"+
+ "122 - COMPILED + SMOOTH + ColorIndex + POLYGON + glVertex2i(x2,y2);\n"+
+ "123 - COMPILED + SMOOTH + ColorIndex + QUADS + glVertex2i(x2,y2);\n"+
+ "130 - COMPILED + SMOOTH + RGB + glRect\n"+
+ "131 - COMPILED + SMOOTH + RGB + glRectiv\n"+
+ "132 - COMPILED + SMOOTH + RGB + POLYGON + glVertex2i(x2,y2);\n"+
+ "133 - COMPILED + SMOOTH + RGB + GL_QUADS+ glVertex2i(x2,y2);\n"+
+ "\n" );
+
+public boolean useDisplayList = false;
+public boolean useSmoothShading = false;
+public boolean useRGB = false;
+
+public int[] scripting_modes = null;
+public int scripting_modes_number = 0;
+
+public void setScriptModes(int[] modes, int len)
+{
+ scripting_modes=modes;
+ scripting_modes_number=len;
+}
+
+/**
+ * renderMode
+ * 0 - glRect
+ * 1 - glRectiv
+ * 2 - POLYGON + glVertex2i
+ * 3 - QUADS + glVertex2i
+ */
+public int renderMode = 0;
+
+public int dez_mode = 0;
+
+public boolean setRenderMode(int mode)
+{
+ useDisplayList = false;
+ useSmoothShading = false;
+ useRGB = false;
+ renderMode = 0;
+
+ if(mode>133 || mode<0)
+ return false;
+
+ dez_mode=mode;
+
+ if(mode>=100)
+ {
+ useDisplayList=true;
+ mode -= 100;
+ }
+
+ if(mode>=20)
+ {
+ useSmoothShading=true;
+ mode -= 20;
+ }
+ if(mode>=10)
+ {
+ useRGB=true;
+ mode -= 10;
+ }
+
+ if(renderMode>3)
+ return false;
+
+ renderMode=mode;
+
+ return true;
+}
+
+public String getGlobalModeDescription()
+{
+ String str = dez_mode + ": ";
+
+ if(doubleBuffer)
+ str = str + "DoubleBuffer";
+ else
+ str = str + "FrontBuffer ";
+
+ if(useDisplayList)
+ str = str + " + COMPILED ";
+ else
+ str = str + " + IMMEDIATE";
+
+ if(useSmoothShading)
+ str = str + " + Smooth";
+ else
+ str = str + " + Flat ";
+
+ if(useRGB)
+ str = str + " + RGB ";
+ else
+ str = str + " + ColorIndex";
+
+ switch (renderMode)
+ {
+ case 0: str = str + " + glRect"; break;
+ case 1: str = str + " + glRectiv"; break;
+ case 2: str = str + " + POLYGON + glVertex2i"; break;
+ case 3: str = str + " + QUADS + glVertex2i"; break;
+ }
+
+ return str;
+}
+
+public void gl_display ()
+{
+ boolean debug;
+ boolean loc_err;
+ int [] ramp;
+ float [][] seis_amps = null;
+ MapAmpToIndex amp_mapper;
+ long t0, t1;
+
+ debug = false;
+
+ System.out.println(">MODE "+getGlobalModeDescription());
+
+ t0 = System.currentTimeMillis();
+ t1 = System.currentTimeMillis();
+
+ loc_err = false;
+
+ ramp = MakeRampJ (_num_colors);
+ if ( ! loc_err)
+ {
+ if (debug)
+ {
+ for (int loopi = 0; loopi < _num_colors; loopi++)
+ {
+ System.out.println ("GL4JCanvas`gl_display- ramp ["+loopi+"] "
+ +ramp [loopi]);
+ }
+ }
+ }
+
+ // plz_note- prepare seismic data for drawing
+ if ( ! loc_err)
+ {
+ // JAU: seis_amps = GetSeisData (1250, 800);
+ // seis_amps = GetSeisData (600, 400);
+ seis_amps = GetSeisData (1250, 800);
+ if (seis_amps == null)
+ {
+ // look_here- error_handling
+ loc_err = true;
+ System.out.println
+ ("GL4JCanvas`gl_display- ERROR- call to "
+ +" _seis_data.GetSeisData returned "+seis_amps);
+ }
+ else
+ {
+ if (debug) System.out.println
+ ("GL4JCanvas`gl_display- call to GetSeisData succeeded");
+ }
+ if (debug)
+ {
+ for (int loopi = 0; loopi < seis_amps.length; loopi++)
+ {
+ for (int loopj = 0; loopj < seis_amps[0].length; loopj++)
+ {
+ if (loopi == 0 || loopi == seis_amps.length - 1)
+ {
+ if (loopj >= 80 && loopj < 120)
+ {
+ System.out.println
+ ("GL4JCanvas`gl_display- seis_amps ["+loopi
+ +"]["+loopj+"] "+seis_amps [loopi][loopj]);
+ }
+ }
+ }
+ }
+ }
+ }
+
+ System.out.println(">Time for fetching Seis-Data: "+
+ getTimeDeltaSecs(t1));
+
+ t1 = System.currentTimeMillis();
+
+ // plz_note- setup mapper (maps from seismic amplitude to
+ // plz_note- color table index)
+ amp_mapper = new MapAmpToIndex (ramp, seis_amps);
+
+ System.out.println(">Time for map color-table: "+
+ getTimeDeltaSecs(t1));
+
+ t1 = System.currentTimeMillis();
+
+ // plz_note-prepare openGL
+ if ( ! loc_err)
+ {
+ if (glj.gljMakeCurrent () == false)
+ {
+ System.out.println ("GL4JCanvas`gl_display- gljMakeCurrent"
+ +" is false");
+ loc_err = true;
+ }
+ }
+
+ if ( ! loc_err)
+ {
+ if (cvsIsInit () != true)
+ {
+ System.out.println ("GL4JCanvas`gl_display- cvsIsInit not true");
+ loc_err = true;
+ }
+ }
+
+ if ( ! loc_err)
+ {
+ if(!doubleBuffer)
+ gl.glDrawBuffer (GL_FRONT);
+
+ if(!useRGB)
+ gl.glClearIndex (0.0f); // 1.0 is black
+
+ gl.glClear (GL_COLOR_BUFFER_BIT);
+
+ // set current color index
+ if(!useRGB)
+ gl.glIndexi (1);
+
+ gl.glMatrixMode (GL_PROJECTION);
+ gl.glLoadIdentity ();
+
+ // left, right top, bottom clip planes.
+ glu.gluOrtho2D (0.0f, (float) (this._canvas_wid_pix),
+ 0.0f, (float) (this._canvas_hei_pix));
+ // look_here- see OpenGL Programming Guide, page 182
+ //gl.glMatrixMode (GL_MODELVIEW);
+ //gl.glLoadIdentity ();
+
+ // plz_note-
+ int num_trc = seis_amps.length;
+ int num_sam = seis_amps [0].length;
+ if (debug)
+ {
+ System.out.println ("GL4JCanvas`gl_display- num_trc "+num_trc);
+ System.out.println ("GL4JCanvas`gl_display- num_sam "+num_sam);
+ }
+
+ int rect_wid = (int) Math.ceil
+ ((double)((double) (this._canvas_wid_pix) / (double) (num_trc)));
+ rect_wid++;
+ int rect_hei = (int) Math.ceil
+ ((double)((double) (this._canvas_hei_pix)/ (double) (num_sam)));
+ rect_hei++;
+ if (debug)
+ {
+ System.out.println ("GL4JCanvas`gl_display- rect_wid "+rect_wid);
+ System.out.println ("GL4JCanvas`gl_display- rect_hei "+rect_hei);
+ }
+
+ int x1, y1, x2, y2;
+ int[] v1 = new int[3];
+ int[] v2 = new int[3];
+ int ramp_index;
+ int color_index;
+
+ double ratio;
+ int count = 0;
+ int rectList = -1;
+
+ {
+ // JAU
+ if(useDisplayList)
+ {
+ rectList = gl.glGenLists(1);
+ gl.glNewList(rectList, GL_COMPILE);
+ }
+
+ if(useSmoothShading)
+ gl.glShadeModel(GL_SMOOTH);
+ else
+ gl.glShadeModel(GL_FLAT);
+
+ if(renderMode==3)
+ gl.glBegin(GL_QUADS);
+
+
+ // plz_note- for each column or trace
+ for (int loop_i = 0; loop_i < num_trc; loop_i++)
+ {
+ // plz_note- for each row or seismic amplitude
+ for (int loop_j = 0; loop_j < num_sam; loop_j++)
+ {
+ // plz_note- compute vertices.
+ ratio = (double)(loop_i) / (double)(num_trc);
+ x1 = (int)(ratio * (double)(this._canvas_wid_pix));
+ x2 = x1 + rect_wid;
+
+ ratio = (double)(loop_j) / (double)(num_sam);
+ y1 = this._canvas_hei_pix -
+ (int)(ratio * (double)(this._canvas_hei_pix));
+ y2 = y1 + rect_hei;
+
+ // plz_note- set current color index
+ ramp_index = amp_mapper.GetColorIndex
+ (seis_amps [loop_i][loop_j]);
+ color_index = ramp [ramp_index];
+ if (debug && ((loop_i == 0 || loop_i == num_trc - 1)
+ && loop_j >= 80 && loop_j< 180))
+ {
+ System.out.print (" `gl_display-"
+ +" trc "+loop_i+", sam "+loop_j
+ +", amp "+seis_amps [loop_i][loop_j]);
+ System.out.print (", ramp_index "+ramp_index);
+ System.out.println (", color_index "+color_index);
+ }
+
+ if(!useRGB)
+ gl.glIndexi (color_index);
+
+ if(renderMode==0)
+ {
+ gl.glRecti (x1, y1, x2, y2);
+ } else if(renderMode==1)
+ {
+ v1[0]=x1; v1[1]=y1;
+ v2[0]=x2; v2[1]=y2;
+ gl.glRectiv (v1, v2);
+ } else {
+ if(renderMode==2)
+ gl.glBegin(GL_POLYGON);
+ if(renderMode>=2)
+ {
+ gl.glVertex2i(x1,y1);
+ gl.glVertex2i(x2,y1);
+ gl.glVertex2i(x2,y2);
+ gl.glVertex2i(x1,y2);
+ }
+ if(renderMode==2)
+ gl.glEnd();
+ }
+
+ count++;
+ }
+ }
+ if(renderMode==3)
+ gl.glEnd( /* GL_QUADS */ );
+
+ // JAU
+ if(useDisplayList)
+ {
+ gl.glEndList();
+ }
+ else if(doubleBuffer)
+ glj.gljSwap ();
+
+ }
+
+ if(useDisplayList)
+ {
+ System.out.println (">`gl_display(displayList)- rectangles put in displayList: " +count);
+ System.out.println (">relative time: (display-list only)");
+ printTimeDelta(t1, count);
+ System.out.println (">absolute time: (display-list and calculations)");
+ printTimeDelta(t0, count);
+ } else {
+ System.out.println (">`gl_display(immediate)- rectangles rendered: " +count);
+ System.out.println (">relative time: (immediate only)");
+ printTimeDelta(t1, count);
+ System.out.println (">absolute time: (immediate and calculations)");
+ printTimeDelta(t0, count);
+ }
+
+ t1 = System.currentTimeMillis();
+
+ if(useDisplayList)
+ {
+ gl.glCallList(rectList);
+
+ if(doubleBuffer)
+ glj.gljSwap ();
+
+ printTimeDelta(t0, count);
+
+ System.out.println (">relative time: (display-list called)");
+ printTimeDelta(t1, count);
+ System.out.println (">absolute time: (display-list compiled+called+calculations)");
+ printTimeDelta(t0, count);
+
+ gl.glDeleteLists(rectList, 1);
+ }
+
+ gl.glFlush ();
+ gl.glFinish ();
+
+ glj.gljFree ();
+ }
+
+}
+//----------------------------------------------
+// method reshape.
+//----------------------------------------------
+public void reshape (int wid, int hei)
+{
+}
+//----------------------------------------------
+// method
+// what the color is does not matter now.
+//----------------------------------------------
+public int [] MakeRampJ (int num_colors)
+{
+ boolean debug = false;
+
+ if (debug) System.out.println ("GL4JCanvas`MakeRampJ- begin");
+
+ int [] rtn_array = new int [num_colors];
+
+ for (int loopi = 0; loopi < num_colors; loopi++)
+ {
+ rtn_array [loopi] = loopi;
+ }
+
+ if (debug) System.out.println ("GL4JCanvas`MakeRampJ- end");
+ return rtn_array;
+}
+//----------------------------------------------
+// method
+// what the data is does not matter now.
+//----------------------------------------------
+public float [][] GetSeisData (int wid, int hei)
+{
+ boolean debug;
+
+ debug = false;
+ if (debug) System.out.println ("GL4JCanvas`GetSeisData- begin");
+
+ float [][] rtn_array = new float [wid][];
+
+ for (int loopi = 0; loopi < wid; loopi++)
+ {
+ rtn_array [loopi] = new float [hei];
+ }
+
+ for (int loopi = 0; loopi < wid; loopi++)
+ for (int loopj = 0; loopj < hei; loopj++)
+ rtn_array [loopi][loopj] = (float) (Math.random ()) * 100.0f;
+
+ if (debug) System.out.println ("GL4JCanvas`GetSeisData- end");
+ return rtn_array;
+}
+
+//----------------------------------------------
+// end of class GL4JCanvas
+//----------------------------------------------
+}
+
+//----------------------------------------------
+// begin class definition
+//----------------------------------------------
+class MapAmpToIndex extends Object
+{
+
+ private boolean InitDone = false;
+ private int [] _color_ramp;
+ private float _max_amp = (float) 0.0;
+ private float _min_amp = (float) 0.0;
+
+//----------------------------------------------
+// method MapAmpToIndex
+//----------------------------------------------
+MapAmpToIndex (int [] ramp, float [][] data)
+{
+ boolean debug;
+
+ debug = false;
+ InitDone = true;
+
+ if (debug) System.out.println ("MapAmpToIndex`MapAmpToIndex- begin");
+
+ // plz_note- set the color index data store
+ _color_ramp = new int [ramp.length];
+ System.arraycopy (ramp, 0, _color_ramp, 0, ramp.length);
+ if (debug)
+ {
+ System.out.println ("MapAmpToIndex`MapAmpToIndex- _color_ramp:");
+ for (int loopi = 0; loopi < _color_ramp.length; loopi++)
+ {
+ System.out.println ("MapAmpToIndex`MapAmpToIndex- _color_ramp ["
+ +loopi+"] "+_color_ramp [loopi]);
+ }
+ }
+
+ // plz_note- set the max, min amplitudes for scaling
+ for (int loopi = 0; loopi < data.length; loopi++)
+ {
+ for (int loopj = 0; loopj < data [0].length; loopj++)
+ {
+ if (data [loopi][loopj] > _max_amp)
+ _max_amp = data [loopi][loopj];
+ if (data [loopi][loopj] < _min_amp)
+ _min_amp = data [loopi][loopj];
+ }
+ }
+ if (debug)
+ {
+ System.out.println ("MapAmpToIndex`MapAmpToIndex- _max_amp "
+ +_max_amp);
+ System.out.println ("MapAmpToIndex`MapAmpToIndex- _min_amp "
+ +_min_amp);
+ }
+
+ if (debug) System.out.println ("MapAmpToIndex`MapAmpToIndex- end");
+}
+
+//----------------------------------------------
+// method GetColorIndex
+//----------------------------------------------
+int GetColorIndex (float this_amp)
+{
+ boolean debug;
+ int index;
+ int max_index;
+ float amp_range;
+
+ debug = false;
+ if (debug) System.out.println ("MapAmpToIndex`GetColorIndex- begin");
+ index = 0;
+
+ //if ( ! init)
+ {
+ max_index = _color_ramp.length - 1;
+ amp_range = _max_amp - _min_amp;
+ }
+
+ index = (int)
+ (((float)(max_index)) *
+ ((this_amp - _min_amp) / (_max_amp - _min_amp)));
+
+ if (debug) System.out.println ("MapAmpToIndex`GetColorIndex- end");
+ return index;
+}
+
+//----------------------------------------------
+// end of class MapAmpToIndex
+//----------------------------------------------
+
+}
+
+
+//----------------------------------------------
+// end of file
+//----------------------------------------------
diff --git a/demos/RectRenderSpeed/GL4JTests2.java b/demos/RectRenderSpeed/GL4JTests2.java
new file mode 100644
index 0000000..8352c96
--- /dev/null
+++ b/demos/RectRenderSpeed/GL4JTests2.java
@@ -0,0 +1,149 @@
+
+import GL4JCanvas;
+
+import java.awt.*;
+import java.awt.event.*;
+
+//----------------------------------------------
+// class definition.
+//----------------------------------------------
+public class GL4JTests2 implements ActionListener
+{
+ private GL4JCanvas _glcanvas;
+ TextField tf_renderMode;
+
+//----------------------------------------------
+// method constructor.
+//----------------------------------------------
+public GL4JTests2 (String [] args)
+{
+ boolean debug = true;
+ Frame outer_frame;
+ Frame inner_frame;
+ Panel inner_panel;
+ Container outer_container;
+ Container inner_container;
+ Button button;
+ int modes[]=new int[args.length];
+ int mode_number=0;
+ boolean dblBuffer=false;
+
+ if(args.length>0)
+ {
+ int i;
+ for (i=0; i<args.length; i++)
+ {
+ if(args[i].equals("help"))
+ {
+ System.out.println(
+ "Arguments:\n"+
+ "\thelp - print this help\n"+
+ "\tdbl - use doublebuffer\n"+
+ "\t<mode> - render mode, where mode is one of the following integer values :\n"+ GL4JCanvas.modes);
+ } else if(args[i].equals("dbl"))
+ {
+ dblBuffer=true;
+ } else {
+ try {
+ modes[mode_number] =
+ Integer.valueOf(args[i]).intValue();
+ mode_number++;
+ } catch (Exception ex) {
+ System.out.println("wrong mode: "+args[i]);
+ return;
+ }
+ }
+ }
+ } else {
+ System.out.println ("GL4JTests`constructor- begin\n modes:\n"+
+ _glcanvas.modes);
+ }
+
+ // build outer most frame and container.
+ outer_frame = new Frame ("The GL4Java Canvas Window");
+
+ // create a new canvas from GL4Java...
+ // _glcanvas = new GL4JCanvas (1250, 800);
+ // JAU: I have just a little screen at my place now :-) !
+ _glcanvas = new GL4JCanvas (640, 480);
+ outer_frame.add ("Center",_glcanvas);
+
+ _glcanvas.preSetDblBuffer(dblBuffer);
+
+ Panel renderPanel = new Panel();
+
+ if(mode_number==0)
+ {
+ // interactive mode
+ //
+ button = new Button ("Paint");
+ button.setActionCommand ("Button Pressed");
+ button.addActionListener (this);
+ renderPanel.add(button);
+ tf_renderMode = new TextField("0");
+ renderPanel.add(tf_renderMode);
+ outer_frame.add ("South", renderPanel);
+
+ }
+
+ outer_frame.pack ();
+ outer_frame.setVisible (true);
+
+ if(mode_number>0)
+ {
+ // scripting mode
+ //
+ _glcanvas.setScriptModes(modes, mode_number);
+ _glcanvas.setRefreshGL(true);
+ _glcanvas.repaint();
+
+ }
+
+}
+
+
+//----------------------------------------------
+// method actionPerformed.
+//----------------------------------------------
+public void actionPerformed (ActionEvent event)
+{
+
+ String action_command;
+
+ /*
+ * Let's do the repaint thread save ...
+ */
+ int mode=0;
+ try {
+ mode = Integer.valueOf(tf_renderMode.getText()).intValue();
+ } catch (Exception ex) {
+ System.out.println("wrong mode: "+tf_renderMode.getText());
+ return;
+ }
+ if(_glcanvas.setRenderMode(mode)==false)
+ {
+ System.out.println("render mode not supported !");
+ System.out.println("use one of the following:\n"+
+ _glcanvas.modes);
+ return;
+ }
+ _glcanvas.setRefreshGL(true);
+ _glcanvas.repaint();
+
+}
+//----------------------------------------------
+// method main.
+//----------------------------------------------
+public static void main (String[] args)
+{
+ boolean debug = true;
+
+ GL4JTests2 gl4JTests1 = new GL4JTests2 (args);
+ //GL4JTests2 gl4JTests2 = new GL4JTests2 (args);
+
+}
+
+//----------------------------------------------
+// end of class GL4JTests.
+//----------------------------------------------
+}
diff --git a/demos/RectRenderSpeed/GL4JTests2.sh b/demos/RectRenderSpeed/GL4JTests2.sh
new file mode 100755
index 0000000..405f1f4
--- /dev/null
+++ b/demos/RectRenderSpeed/GL4JTests2.sh
@@ -0,0 +1,12 @@
+#! /bin/sh
+
+#
+# run
+#
+echo args: $*
+
+#
+# run java with increased memory, classpath arg
+#
+java -ms64m -mx64m GL4JTests2 $*
+
diff --git a/demos/RectRenderSpeed/perfomance-Linux-300MHzPII-Mesa b/demos/RectRenderSpeed/perfomance-Linux-300MHzPII-Mesa
new file mode 100644
index 0000000..a17bfbb
--- /dev/null
+++ b/demos/RectRenderSpeed/perfomance-Linux-300MHzPII-Mesa
@@ -0,0 +1 @@
+I used platform: RivaTNT2 with MesaNVidia driver und Linux glibc2 ! 120 MB RAM ! 300 MhZ PII ! Running under Java117NativeThreads+TYA & ShellScript GL4JTests2.sh ! args: help 0 1 2 3 100 101 102 103 Arguments: help - print this help dbl - use doublebuffer <mode> - render mode, where mode is one of the following integer values : 0 - Immediate + FLAT + ColorIndex + glRect 1 - Immediate + FLAT + ColorIndex + glRectiv 2 - Immediate + FLAT + ColorIndex + POLYGON + glVertex2i(x2,y2); 3 - Immediate + FLAT + ColorIndex + QUADS + glVertex2i(x2,y2); 10 - Immediate + FLAT + RGB + glRect 11 - Immediate + FLAT + RGB + glRectiv 12 - Immediate + FLAT + RGB + POLYGON + glVertex2i(x2,y2); 13 - Immediate + FLAT + RGB + QUADS + glVertex2i(x2,y2); 20 - Immediate + SMOOTH + ColorIndex + glRect 21 - Immediate + SMOOTH + ColorIndex + glRectiv 22 - Immediate + SMOOTH + ColorIndex + POLYGON + glVertex2i(x2,y2); 23 - Immediate + SMOOTH + ColorIndex + QUADS + glVertex2i(x2,y2); 30 - Immediate + SMOOTH + RGB + glRect 31 - Immediate + SMOOTH + RGB + glRectiv 32 - Immediate + SMOOTH + RGB + POLYGON + glVertex2i(x2,y2); 33 - Immediate + SMOOTH + RGB + QUADS + glVertex2i(x2,y2); 100 - COMPILED + FLAT + ColorIndex + glRect 101 - COMPILED + FLAT + ColorIndex + glRectiv 102 - COMPILED + FLAT + ColorIndex + POLYGON + glVertex2i(x2,y2); 103 - COMPILED + FLAT + ColorIndex + QUADS + glVertex2i(x2,y2); 110 - COMPILED + FLAT + RGB + glRect 111 - COMPILED + FLAT + RGB + glRectiv 112 - COMPILED + FLAT + RGB + POLYGON + glVertex2i(x2,y2); 113 - COMPILED + FLAT + RGB + QUADS + glVertex2i(x2,y2); 120 - COMPILED + SMOOTH + ColorIndex + glRect 121 - COMPILED + SMOOTH + ColorIndex + glRectiv 122 - COMPILED + SMOOTH + ColorIndex + POLYGON + glVertex2i(x2,y2); 123 - COMPILED + SMOOTH + ColorIndex + QUADS + glVertex2i(x2,y2); 130 - COMPILED + SMOOTH + RGB + glRect 131 - COMPILED + SMOOTH + RGB + glRectiv 132 - COMPILED + SMOOTH + RGB + POLYGON + glVertex2i(x2,y2); 133 - COMPILED + SMOOTH + RGB + GL_QUADS+ glVertex2i(x2,y2); trying mode: 0 >MODE 0: FrontBuffer + IMMEDIATE + Flat + ColorIndex + glRect >Time for fetching Seis-Data: 8.238 >Time for map color-table: 0.632 >`gl_display(immediate)- rectangles rendered: 1000000 >relative time: (immediate only) ... elapsed time: 24.793 Sec ... rate: 24.793 SPMR (Sec Per Million Rectangles) >absolute time: (immediate and calculations) ... elapsed time: 33.695 Sec ... rate: 33.695 SPMR (Sec Per Million Rectangles) trying mode: 1 >MODE 1: FrontBuffer + IMMEDIATE + Flat + ColorIndex + glRectiv >Time for fetching Seis-Data: 8.69 >Time for map color-table: 1.095 >`gl_display(immediate)- rectangles rendered: 1000000 >relative time: (immediate only) ... elapsed time: 35.262 Sec ... rate: 35.262 SPMR (Sec Per Million Rectangles) >absolute time: (immediate and calculations) ... elapsed time: 45.095 Sec ... rate: 45.095 SPMR (Sec Per Million Rectangles) trying mode: 2 >MODE 2: FrontBuffer + IMMEDIATE + Flat + ColorIndex + POLYGON + glVertex2i >Time for fetching Seis-Data: 7.502 >Time for map color-table: 1.272 >`gl_display(immediate)- rectangles rendered: 1000000 >relative time: (immediate only) ... elapsed time: 44.177 Sec ... rate: 44.177 SPMR (Sec Per Million Rectangles) >absolute time: (immediate and calculations) ... elapsed time: 53.002 Sec ... rate: 53.002 SPMR (Sec Per Million Rectangles) trying mode: 3 >MODE 3: FrontBuffer + IMMEDIATE + Flat + ColorIndex + QUADS + glVertex2i >Time for fetching Seis-Data: 7.626 >Time for map color-table: 1.227 >`gl_display(immediate)- rectangles rendered: 1000000 >relative time: (immediate only) ... elapsed time: 31.222 Sec ... rate: 31.222 SPMR (Sec Per Million Rectangles) >absolute time: (immediate and calculations) ... elapsed time: 40.135 Sec ... rate: 40.135 SPMR (Sec Per Million Rectangles) trying mode: 100 >MODE 100: FrontBuffer + COMPILED + Flat + ColorIndex + glRect >Time for fetching Seis-Data: 8.431 >Time for map color-table: 0.435 >`gl_display(displayList)- rectangles put in displayList: 1000000 >relative time: (display-list only) ... elapsed time: 15.316 Sec ... rate: 15.316 SPMR (Sec Per Million Rectangles) >absolute time: (display-list and calculations) ... elapsed time: 24.43 Sec ... rate: 24.43 SPMR (Sec Per Million Rectangles) ... elapsed time: 24.477 Sec ... rate: 24.477 SPMR (Sec Per Million Rectangles) >relative time: (display-list called) ... elapsed time: 0.065 Sec ... rate: 0.065 SPMR (Sec Per Million Rectangles) >absolute time: (display-list compiled+called+calculations) ... elapsed time: 24.555 Sec ... rate: 24.555 SPMR (Sec Per Million Rectangles) trying mode: 101 >MODE 101: FrontBuffer + COMPILED + Flat + ColorIndex + glRectiv >Time for fetching Seis-Data: 8.556 >Time for map color-table: 0.405 >`gl_display(displayList)- rectangles put in displayList: 1000000 >relative time: (display-list only) ... elapsed time: 23.98 Sec ... rate: 23.98 SPMR (Sec Per Million Rectangles) >absolute time: (display-list and calculations) ... elapsed time: 32.969 Sec ... rate: 32.969 SPMR (Sec Per Million Rectangles) ... elapsed time: 32.97 Sec ... rate: 32.97 SPMR (Sec Per Million Rectangles) >relative time: (display-list called) ... elapsed time: 0.0 Sec ... rate: 0.0 SPMR (Sec Per Million Rectangles) >absolute time: (display-list compiled+called+calculations) ... elapsed time: 32.971 Sec ... rate: 32.971 SPMR (Sec Per Million Rectangles) trying mode: 102 >MODE 102: FrontBuffer + COMPILED + Flat + ColorIndex + POLYGON + glVertex2i >Time for fetching Seis-Data: 8.849 >Time for map color-table: 0.433 >`gl_display(displayList)- rectangles put in displayList: 1000000 >relative time: (display-list only) ... elapsed time: 36.812 Sec ... rate: 36.812 SPMR (Sec Per Million Rectangles) >absolute time: (display-list and calculations) ... elapsed time: 46.114 Sec ... rate: 46.114 SPMR (Sec Per Million Rectangles) ... elapsed time: 46.115 Sec ... rate: 46.115 SPMR (Sec Per Million Rectangles) >relative time: (display-list called) ... elapsed time: 0.0 Sec ... rate: 0.0 SPMR (Sec Per Million Rectangles) >absolute time: (display-list compiled+called+calculations) ... elapsed time: 46.116 Sec ... rate: 46.116 SPMR (Sec Per Million Rectangles) trying mode: 103 >MODE 103: FrontBuffer + COMPILED + Flat + ColorIndex + QUADS + glVertex2i >Time for fetching Seis-Data: 8.511 >Time for map color-table: 0.426 >`gl_display(displayList)- rectangles put in displayList: 1000000 >relative time: (display-list only) ... elapsed time: 23.532 Sec ... rate: 23.532 SPMR (Sec Per Million Rectangles) >absolute time: (display-list and calculations) ... elapsed time: 32.524 Sec ... rate: 32.524 SPMR (Sec Per Million Rectangles) ... elapsed time: 32.55 Sec ... rate: 32.55 SPMR (Sec Per Million Rectangles) >relative time: (display-list called) ... elapsed time: 0.038 Sec ... rate: 0.038 SPMR (Sec Per Million Rectangles) >absolute time: (display-list compiled+called+calculations) ... elapsed time: 32.626 Sec ... rate: 32.626 SPMR (Sec Per Million Rectangles) \ No newline at end of file
diff --git a/demos/RectRenderSpeed/perfomance-Linux-300MHzPII-MesaRivaTNT2.txt b/demos/RectRenderSpeed/perfomance-Linux-300MHzPII-MesaRivaTNT2.txt
new file mode 100644
index 0000000..af0e9e7
--- /dev/null
+++ b/demos/RectRenderSpeed/perfomance-Linux-300MHzPII-MesaRivaTNT2.txt
@@ -0,0 +1,167 @@
+I used platform:
+
+RivaTNT2 with MesaNVidia driver und Linux glibc2 !
+120 MB RAM !
+300 MhZ PII !
+
+Running under Java117NativeThreads+TYA & ShellScript GL4JTests2.sh !
+
+args: help 0 1 2 3 100 101 102 103
+Arguments:
+ help - print this help
+ dbl - use doublebuffer
+ <mode> - render mode, where mode is one of the following integer values :
+ 0 - Immediate + FLAT + ColorIndex + glRect
+ 1 - Immediate + FLAT + ColorIndex + glRectiv
+ 2 - Immediate + FLAT + ColorIndex + POLYGON + glVertex2i(x2,y2);
+ 3 - Immediate + FLAT + ColorIndex + QUADS + glVertex2i(x2,y2);
+ 10 - Immediate + FLAT + RGB + glRect
+ 11 - Immediate + FLAT + RGB + glRectiv
+ 12 - Immediate + FLAT + RGB + POLYGON + glVertex2i(x2,y2);
+ 13 - Immediate + FLAT + RGB + QUADS + glVertex2i(x2,y2);
+ 20 - Immediate + SMOOTH + ColorIndex + glRect
+ 21 - Immediate + SMOOTH + ColorIndex + glRectiv
+ 22 - Immediate + SMOOTH + ColorIndex + POLYGON + glVertex2i(x2,y2);
+ 23 - Immediate + SMOOTH + ColorIndex + QUADS + glVertex2i(x2,y2);
+ 30 - Immediate + SMOOTH + RGB + glRect
+ 31 - Immediate + SMOOTH + RGB + glRectiv
+ 32 - Immediate + SMOOTH + RGB + POLYGON + glVertex2i(x2,y2);
+ 33 - Immediate + SMOOTH + RGB + QUADS + glVertex2i(x2,y2);
+100 - COMPILED + FLAT + ColorIndex + glRect
+101 - COMPILED + FLAT + ColorIndex + glRectiv
+102 - COMPILED + FLAT + ColorIndex + POLYGON + glVertex2i(x2,y2);
+103 - COMPILED + FLAT + ColorIndex + QUADS + glVertex2i(x2,y2);
+110 - COMPILED + FLAT + RGB + glRect
+111 - COMPILED + FLAT + RGB + glRectiv
+112 - COMPILED + FLAT + RGB + POLYGON + glVertex2i(x2,y2);
+113 - COMPILED + FLAT + RGB + QUADS + glVertex2i(x2,y2);
+120 - COMPILED + SMOOTH + ColorIndex + glRect
+121 - COMPILED + SMOOTH + ColorIndex + glRectiv
+122 - COMPILED + SMOOTH + ColorIndex + POLYGON + glVertex2i(x2,y2);
+123 - COMPILED + SMOOTH + ColorIndex + QUADS + glVertex2i(x2,y2);
+130 - COMPILED + SMOOTH + RGB + glRect
+131 - COMPILED + SMOOTH + RGB + glRectiv
+132 - COMPILED + SMOOTH + RGB + POLYGON + glVertex2i(x2,y2);
+133 - COMPILED + SMOOTH + RGB + GL_QUADS+ glVertex2i(x2,y2);
+
+
+trying mode: 0
+>MODE 0: FrontBuffer + IMMEDIATE + Flat + ColorIndex + glRect
+>Time for fetching Seis-Data: 8.238
+>Time for map color-table: 0.632
+>`gl_display(immediate)- rectangles rendered: 1000000
+>relative time: (immediate only)
+... elapsed time: 24.793 Sec
+... rate: 24.793 SPMR (Sec Per Million Rectangles)
+>absolute time: (immediate and calculations)
+... elapsed time: 33.695 Sec
+... rate: 33.695 SPMR (Sec Per Million Rectangles)
+trying mode: 1
+>MODE 1: FrontBuffer + IMMEDIATE + Flat + ColorIndex + glRectiv
+>Time for fetching Seis-Data: 8.69
+>Time for map color-table: 1.095
+>`gl_display(immediate)- rectangles rendered: 1000000
+>relative time: (immediate only)
+... elapsed time: 35.262 Sec
+... rate: 35.262 SPMR (Sec Per Million Rectangles)
+>absolute time: (immediate and calculations)
+... elapsed time: 45.095 Sec
+... rate: 45.095 SPMR (Sec Per Million Rectangles)
+trying mode: 2
+>MODE 2: FrontBuffer + IMMEDIATE + Flat + ColorIndex + POLYGON + glVertex2i
+>Time for fetching Seis-Data: 7.502
+>Time for map color-table: 1.272
+>`gl_display(immediate)- rectangles rendered: 1000000
+>relative time: (immediate only)
+... elapsed time: 44.177 Sec
+... rate: 44.177 SPMR (Sec Per Million Rectangles)
+>absolute time: (immediate and calculations)
+... elapsed time: 53.002 Sec
+... rate: 53.002 SPMR (Sec Per Million Rectangles)
+trying mode: 3
+>MODE 3: FrontBuffer + IMMEDIATE + Flat + ColorIndex + QUADS + glVertex2i
+>Time for fetching Seis-Data: 7.626
+>Time for map color-table: 1.227
+>`gl_display(immediate)- rectangles rendered: 1000000
+>relative time: (immediate only)
+... elapsed time: 31.222 Sec
+... rate: 31.222 SPMR (Sec Per Million Rectangles)
+>absolute time: (immediate and calculations)
+... elapsed time: 40.135 Sec
+... rate: 40.135 SPMR (Sec Per Million Rectangles)
+trying mode: 100
+>MODE 100: FrontBuffer + COMPILED + Flat + ColorIndex + glRect
+>Time for fetching Seis-Data: 8.431
+>Time for map color-table: 0.435
+>`gl_display(displayList)- rectangles put in displayList: 1000000
+>relative time: (display-list only)
+... elapsed time: 15.316 Sec
+... rate: 15.316 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list and calculations)
+... elapsed time: 24.43 Sec
+... rate: 24.43 SPMR (Sec Per Million Rectangles)
+... elapsed time: 24.477 Sec
+... rate: 24.477 SPMR (Sec Per Million Rectangles)
+>relative time: (display-list called)
+... elapsed time: 0.065 Sec
+... rate: 0.065 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list compiled+called+calculations)
+... elapsed time: 24.555 Sec
+... rate: 24.555 SPMR (Sec Per Million Rectangles)
+trying mode: 101
+>MODE 101: FrontBuffer + COMPILED + Flat + ColorIndex + glRectiv
+>Time for fetching Seis-Data: 8.556
+>Time for map color-table: 0.405
+>`gl_display(displayList)- rectangles put in displayList: 1000000
+>relative time: (display-list only)
+... elapsed time: 23.98 Sec
+... rate: 23.98 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list and calculations)
+... elapsed time: 32.969 Sec
+... rate: 32.969 SPMR (Sec Per Million Rectangles)
+... elapsed time: 32.97 Sec
+... rate: 32.97 SPMR (Sec Per Million Rectangles)
+>relative time: (display-list called)
+... elapsed time: 0.0 Sec
+... rate: 0.0 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list compiled+called+calculations)
+... elapsed time: 32.971 Sec
+... rate: 32.971 SPMR (Sec Per Million Rectangles)
+trying mode: 102
+>MODE 102: FrontBuffer + COMPILED + Flat + ColorIndex + POLYGON + glVertex2i
+>Time for fetching Seis-Data: 8.849
+>Time for map color-table: 0.433
+>`gl_display(displayList)- rectangles put in displayList: 1000000
+>relative time: (display-list only)
+... elapsed time: 36.812 Sec
+... rate: 36.812 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list and calculations)
+... elapsed time: 46.114 Sec
+... rate: 46.114 SPMR (Sec Per Million Rectangles)
+... elapsed time: 46.115 Sec
+... rate: 46.115 SPMR (Sec Per Million Rectangles)
+>relative time: (display-list called)
+... elapsed time: 0.0 Sec
+... rate: 0.0 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list compiled+called+calculations)
+... elapsed time: 46.116 Sec
+... rate: 46.116 SPMR (Sec Per Million Rectangles)
+trying mode: 103
+>MODE 103: FrontBuffer + COMPILED + Flat + ColorIndex + QUADS + glVertex2i
+>Time for fetching Seis-Data: 8.511
+>Time for map color-table: 0.426
+>`gl_display(displayList)- rectangles put in displayList: 1000000
+>relative time: (display-list only)
+... elapsed time: 23.532 Sec
+... rate: 23.532 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list and calculations)
+... elapsed time: 32.524 Sec
+... rate: 32.524 SPMR (Sec Per Million Rectangles)
+... elapsed time: 32.55 Sec
+... rate: 32.55 SPMR (Sec Per Million Rectangles)
+>relative time: (display-list called)
+... elapsed time: 0.038 Sec
+... rate: 0.038 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list compiled+called+calculations)
+... elapsed time: 32.626 Sec
+... rate: 32.626 SPMR (Sec Per Million Rectangles)
diff --git a/demos/RectRenderSpeed/perfomance-Linux-350MHzPII-Mesa b/demos/RectRenderSpeed/perfomance-Linux-350MHzPII-Mesa
new file mode 100644
index 0000000..042252f
--- /dev/null
+++ b/demos/RectRenderSpeed/perfomance-Linux-350MHzPII-Mesa
@@ -0,0 +1 @@
+I used platform: RivaTNT2 with MesaNVidia driver und Linux glibc2 ! 120 MB RAM ! 350 MhZ PII ! Running under Java117NativeThreads+TYA & ShellScript GL4JTests2.sh ! args: help 0 1 2 3 100 101 102 103 args: help 0 1 2 3 100 101 102 103 Arguments: help - print this help dbl - use doublebuffer <mode> - render mode, where mode is one of the following integer values : 0 - Immediate + FLAT + ColorIndex + glRect 1 - Immediate + FLAT + ColorIndex + glRectiv 2 - Immediate + FLAT + ColorIndex + POLYGON + glVertex2i(x2,y2); 3 - Immediate + FLAT + ColorIndex + QUADS + glVertex2i(x2,y2); 10 - Immediate + FLAT + RGB + glRect 11 - Immediate + FLAT + RGB + glRectiv 12 - Immediate + FLAT + RGB + POLYGON + glVertex2i(x2,y2); 13 - Immediate + FLAT + RGB + QUADS + glVertex2i(x2,y2); 20 - Immediate + SMOOTH + ColorIndex + glRect 21 - Immediate + SMOOTH + ColorIndex + glRectiv 22 - Immediate + SMOOTH + ColorIndex + POLYGON + glVertex2i(x2,y2); 23 - Immediate + SMOOTH + ColorIndex + QUADS + glVertex2i(x2,y2); 30 - Immediate + SMOOTH + RGB + glRect 31 - Immediate + SMOOTH + RGB + glRectiv 32 - Immediate + SMOOTH + RGB + POLYGON + glVertex2i(x2,y2); 33 - Immediate + SMOOTH + RGB + QUADS + glVertex2i(x2,y2); 100 - COMPILED + FLAT + ColorIndex + glRect 101 - COMPILED + FLAT + ColorIndex + glRectiv 102 - COMPILED + FLAT + ColorIndex + POLYGON + glVertex2i(x2,y2); 103 - COMPILED + FLAT + ColorIndex + QUADS + glVertex2i(x2,y2); 110 - COMPILED + FLAT + RGB + glRect 111 - COMPILED + FLAT + RGB + glRectiv 112 - COMPILED + FLAT + RGB + POLYGON + glVertex2i(x2,y2); 113 - COMPILED + FLAT + RGB + QUADS + glVertex2i(x2,y2); 120 - COMPILED + SMOOTH + ColorIndex + glRect 121 - COMPILED + SMOOTH + ColorIndex + glRectiv 122 - COMPILED + SMOOTH + ColorIndex + POLYGON + glVertex2i(x2,y2); 123 - COMPILED + SMOOTH + ColorIndex + QUADS + glVertex2i(x2,y2); 130 - COMPILED + SMOOTH + RGB + glRect 131 - COMPILED + SMOOTH + RGB + glRectiv 132 - COMPILED + SMOOTH + RGB + POLYGON + glVertex2i(x2,y2); 133 - COMPILED + SMOOTH + RGB + GL_QUADS+ glVertex2i(x2,y2); trying mode: 0 >MODE 0: FrontBuffer + IMMEDIATE + Flat + ColorIndex + glRect >Time for fetching Seis-Data: 6.723 >Time for map color-table: 0.417 >`gl_display(immediate)- rectangles rendered: 1000000 >relative time: (immediate only) ... elapsed time: 34.165 Sec ... rate: 34.165 SPMR (Sec Per Million Rectangles) >absolute time: (immediate and calculations) ... elapsed time: 41.367 Sec ... rate: 41.367 SPMR (Sec Per Million Rectangles) trying mode: 1 >MODE 1: FrontBuffer + IMMEDIATE + Flat + ColorIndex + glRectiv >Time for fetching Seis-Data: 6.323 >Time for map color-table: 0.39 >`gl_display(immediate)- rectangles rendered: 1000000 >relative time: (immediate only) ... elapsed time: 45.265 Sec ... rate: 45.265 SPMR (Sec Per Million Rectangles) >absolute time: (immediate and calculations) ... elapsed time: 52.034 Sec ... rate: 52.034 SPMR (Sec Per Million Rectangles) trying mode: 2 >MODE 2: FrontBuffer + IMMEDIATE + Flat + ColorIndex + POLYGON + glVertex2i >Time for fetching Seis-Data: 6.878 >Time for map color-table: 0.4 >`gl_display(immediate)- rectangles rendered: 1000000 >relative time: (immediate only) ... elapsed time: 46.561 Sec ... rate: 46.561 SPMR (Sec Per Million Rectangles) >absolute time: (immediate and calculations) ... elapsed time: 53.894 Sec ... rate: 53.894 SPMR (Sec Per Million Rectangles) trying mode: 3 >MODE 3: FrontBuffer + IMMEDIATE + Flat + ColorIndex + QUADS + glVertex2i >Time for fetching Seis-Data: 6.831 >Time for map color-table: 0.404 >`gl_display(immediate)- rectangles rendered: 1000000 >relative time: (immediate only) ... elapsed time: 32.039 Sec ... rate: 32.039 SPMR (Sec Per Million Rectangles) >absolute time: (immediate and calculations) ... elapsed time: 39.329 Sec ... rate: 39.329 SPMR (Sec Per Million Rectangles) trying mode: 100 >MODE 100: FrontBuffer + COMPILED + Flat + ColorIndex + glRect >Time for fetching Seis-Data: 6.777 >Time for map color-table: 0.4 >`gl_display(displayList)- rectangles put in displayList: 1000000 >relative time: (display-list only) ... elapsed time: 10.559 Sec ... rate: 10.559 SPMR (Sec Per Million Rectangles) >absolute time: (display-list and calculations) ... elapsed time: 17.897 Sec ... rate: 17.897 SPMR (Sec Per Million Rectangles) ... elapsed time: 43.379 Sec ... rate: 43.379 SPMR (Sec Per Million Rectangles) >relative time: (display-list called) ... elapsed time: 25.516 Sec ... rate: 25.516 SPMR (Sec Per Million Rectangles) >absolute time: (display-list compiled+called+calculations) ... elapsed time: 43.455 Sec ... rate: 43.455 SPMR (Sec Per Million Rectangles) trying mode: 101 >MODE 101: FrontBuffer + COMPILED + Flat + ColorIndex + glRectiv >Time for fetching Seis-Data: 6.37 >Time for map color-table: 0.4 >`gl_display(displayList)- rectangles put in displayList: 1000000 >relative time: (display-list only) ... elapsed time: 15.623 Sec ... rate: 15.623 SPMR (Sec Per Million Rectangles) >absolute time: (display-list and calculations) ... elapsed time: 22.467 Sec ... rate: 22.467 SPMR (Sec Per Million Rectangles) ... elapsed time: 42.516 Sec ... rate: 42.516 SPMR (Sec Per Million Rectangles) >relative time: (display-list called) ... elapsed time: 20.062 Sec ... rate: 20.062 SPMR (Sec Per Million Rectangles) >absolute time: (display-list compiled+called+calculations) ... elapsed time: 42.594 Sec ... rate: 42.594 SPMR (Sec Per Million Rectangles) trying mode: 102 >MODE 102: FrontBuffer + COMPILED + Flat + ColorIndex + POLYGON + glVertex2i >Time for fetching Seis-Data: 6.319 >Time for map color-table: 0.401 >`gl_display(displayList)- rectangles put in displayList: 1000000 >relative time: (display-list only) ... elapsed time: 26.708 Sec ... rate: 26.708 SPMR (Sec Per Million Rectangles) >absolute time: (display-list and calculations) ... elapsed time: 33.641 Sec ... rate: 33.641 SPMR (Sec Per Million Rectangles) ... elapsed time: 67.779 Sec ... rate: 67.779 SPMR (Sec Per Million Rectangles) >relative time: (display-list called) ... elapsed time: 34.544 Sec ... rate: 34.544 SPMR (Sec Per Million Rectangles) >absolute time: (display-list compiled+called+calculations) ... elapsed time: 68.186 Sec ... rate: 68.186 SPMR (Sec Per Million Rectangles) trying mode: 103 >MODE 103: FrontBuffer + COMPILED + Flat + ColorIndex + QUADS + glVertex2i >Time for fetching Seis-Data: 6.671 >Time for map color-table: 0.409 >`gl_display(displayList)- rectangles put in displayList: 1000000 >relative time: (display-list only) ... elapsed time: 17.646 Sec ... rate: 17.646 SPMR (Sec Per Million Rectangles) >absolute time: (display-list and calculations) ... elapsed time: 25.173 Sec ... rate: 25.173 SPMR (Sec Per Million Rectangles) ... elapsed time: 58.663 Sec ... rate: 58.663 SPMR (Sec Per Million Rectangles) >relative time: (display-list called) ... elapsed time: 33.524 Sec ... rate: 33.524 SPMR (Sec Per Million Rectangles) >absolute time: (display-list compiled+called+calculations) ... elapsed time: 58.752 Sec ... rate: 58.752 SPMR (Sec Per Million Rectangles) \ No newline at end of file
diff --git a/demos/RectRenderSpeed/perfomance-Linux-350MHzPII-MesaRivaTNT2.txt b/demos/RectRenderSpeed/perfomance-Linux-350MHzPII-MesaRivaTNT2.txt
new file mode 100644
index 0000000..370ee97
--- /dev/null
+++ b/demos/RectRenderSpeed/perfomance-Linux-350MHzPII-MesaRivaTNT2.txt
@@ -0,0 +1,168 @@
+I used platform:
+
+RivaTNT2 with MesaNVidia driver und Linux glibc2 !
+120 MB RAM !
+350 MhZ PII !
+
+Running under Java117NativeThreads+TYA & ShellScript GL4JTests2.sh !
+
+args: help 0 1 2 3 100 101 102 103
+args: help 0 1 2 3 100 101 102 103
+Arguments:
+ help - print this help
+ dbl - use doublebuffer
+ <mode> - render mode, where mode is one of the following integer values :
+ 0 - Immediate + FLAT + ColorIndex + glRect
+ 1 - Immediate + FLAT + ColorIndex + glRectiv
+ 2 - Immediate + FLAT + ColorIndex + POLYGON + glVertex2i(x2,y2);
+ 3 - Immediate + FLAT + ColorIndex + QUADS + glVertex2i(x2,y2);
+ 10 - Immediate + FLAT + RGB + glRect
+ 11 - Immediate + FLAT + RGB + glRectiv
+ 12 - Immediate + FLAT + RGB + POLYGON + glVertex2i(x2,y2);
+ 13 - Immediate + FLAT + RGB + QUADS + glVertex2i(x2,y2);
+ 20 - Immediate + SMOOTH + ColorIndex + glRect
+ 21 - Immediate + SMOOTH + ColorIndex + glRectiv
+ 22 - Immediate + SMOOTH + ColorIndex + POLYGON + glVertex2i(x2,y2);
+ 23 - Immediate + SMOOTH + ColorIndex + QUADS + glVertex2i(x2,y2);
+ 30 - Immediate + SMOOTH + RGB + glRect
+ 31 - Immediate + SMOOTH + RGB + glRectiv
+ 32 - Immediate + SMOOTH + RGB + POLYGON + glVertex2i(x2,y2);
+ 33 - Immediate + SMOOTH + RGB + QUADS + glVertex2i(x2,y2);
+100 - COMPILED + FLAT + ColorIndex + glRect
+101 - COMPILED + FLAT + ColorIndex + glRectiv
+102 - COMPILED + FLAT + ColorIndex + POLYGON + glVertex2i(x2,y2);
+103 - COMPILED + FLAT + ColorIndex + QUADS + glVertex2i(x2,y2);
+110 - COMPILED + FLAT + RGB + glRect
+111 - COMPILED + FLAT + RGB + glRectiv
+112 - COMPILED + FLAT + RGB + POLYGON + glVertex2i(x2,y2);
+113 - COMPILED + FLAT + RGB + QUADS + glVertex2i(x2,y2);
+120 - COMPILED + SMOOTH + ColorIndex + glRect
+121 - COMPILED + SMOOTH + ColorIndex + glRectiv
+122 - COMPILED + SMOOTH + ColorIndex + POLYGON + glVertex2i(x2,y2);
+123 - COMPILED + SMOOTH + ColorIndex + QUADS + glVertex2i(x2,y2);
+130 - COMPILED + SMOOTH + RGB + glRect
+131 - COMPILED + SMOOTH + RGB + glRectiv
+132 - COMPILED + SMOOTH + RGB + POLYGON + glVertex2i(x2,y2);
+133 - COMPILED + SMOOTH + RGB + GL_QUADS+ glVertex2i(x2,y2);
+
+
+trying mode: 0
+>MODE 0: FrontBuffer + IMMEDIATE + Flat + ColorIndex + glRect
+>Time for fetching Seis-Data: 6.723
+>Time for map color-table: 0.417
+>`gl_display(immediate)- rectangles rendered: 1000000
+>relative time: (immediate only)
+... elapsed time: 34.165 Sec
+... rate: 34.165 SPMR (Sec Per Million Rectangles)
+>absolute time: (immediate and calculations)
+... elapsed time: 41.367 Sec
+... rate: 41.367 SPMR (Sec Per Million Rectangles)
+trying mode: 1
+>MODE 1: FrontBuffer + IMMEDIATE + Flat + ColorIndex + glRectiv
+>Time for fetching Seis-Data: 6.323
+>Time for map color-table: 0.39
+>`gl_display(immediate)- rectangles rendered: 1000000
+>relative time: (immediate only)
+... elapsed time: 45.265 Sec
+... rate: 45.265 SPMR (Sec Per Million Rectangles)
+>absolute time: (immediate and calculations)
+... elapsed time: 52.034 Sec
+... rate: 52.034 SPMR (Sec Per Million Rectangles)
+trying mode: 2
+>MODE 2: FrontBuffer + IMMEDIATE + Flat + ColorIndex + POLYGON + glVertex2i
+>Time for fetching Seis-Data: 6.878
+>Time for map color-table: 0.4
+>`gl_display(immediate)- rectangles rendered: 1000000
+>relative time: (immediate only)
+... elapsed time: 46.561 Sec
+... rate: 46.561 SPMR (Sec Per Million Rectangles)
+>absolute time: (immediate and calculations)
+... elapsed time: 53.894 Sec
+... rate: 53.894 SPMR (Sec Per Million Rectangles)
+trying mode: 3
+>MODE 3: FrontBuffer + IMMEDIATE + Flat + ColorIndex + QUADS + glVertex2i
+>Time for fetching Seis-Data: 6.831
+>Time for map color-table: 0.404
+>`gl_display(immediate)- rectangles rendered: 1000000
+>relative time: (immediate only)
+... elapsed time: 32.039 Sec
+... rate: 32.039 SPMR (Sec Per Million Rectangles)
+>absolute time: (immediate and calculations)
+... elapsed time: 39.329 Sec
+... rate: 39.329 SPMR (Sec Per Million Rectangles)
+trying mode: 100
+>MODE 100: FrontBuffer + COMPILED + Flat + ColorIndex + glRect
+>Time for fetching Seis-Data: 6.777
+>Time for map color-table: 0.4
+>`gl_display(displayList)- rectangles put in displayList: 1000000
+>relative time: (display-list only)
+... elapsed time: 10.559 Sec
+... rate: 10.559 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list and calculations)
+... elapsed time: 17.897 Sec
+... rate: 17.897 SPMR (Sec Per Million Rectangles)
+... elapsed time: 43.379 Sec
+... rate: 43.379 SPMR (Sec Per Million Rectangles)
+>relative time: (display-list called)
+... elapsed time: 25.516 Sec
+... rate: 25.516 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list compiled+called+calculations)
+... elapsed time: 43.455 Sec
+... rate: 43.455 SPMR (Sec Per Million Rectangles)
+trying mode: 101
+>MODE 101: FrontBuffer + COMPILED + Flat + ColorIndex + glRectiv
+>Time for fetching Seis-Data: 6.37
+>Time for map color-table: 0.4
+>`gl_display(displayList)- rectangles put in displayList: 1000000
+>relative time: (display-list only)
+... elapsed time: 15.623 Sec
+... rate: 15.623 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list and calculations)
+... elapsed time: 22.467 Sec
+... rate: 22.467 SPMR (Sec Per Million Rectangles)
+... elapsed time: 42.516 Sec
+... rate: 42.516 SPMR (Sec Per Million Rectangles)
+>relative time: (display-list called)
+... elapsed time: 20.062 Sec
+... rate: 20.062 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list compiled+called+calculations)
+... elapsed time: 42.594 Sec
+... rate: 42.594 SPMR (Sec Per Million Rectangles)
+trying mode: 102
+>MODE 102: FrontBuffer + COMPILED + Flat + ColorIndex + POLYGON + glVertex2i
+>Time for fetching Seis-Data: 6.319
+>Time for map color-table: 0.401
+>`gl_display(displayList)- rectangles put in displayList: 1000000
+>relative time: (display-list only)
+... elapsed time: 26.708 Sec
+... rate: 26.708 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list and calculations)
+... elapsed time: 33.641 Sec
+... rate: 33.641 SPMR (Sec Per Million Rectangles)
+... elapsed time: 67.779 Sec
+... rate: 67.779 SPMR (Sec Per Million Rectangles)
+>relative time: (display-list called)
+... elapsed time: 34.544 Sec
+... rate: 34.544 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list compiled+called+calculations)
+... elapsed time: 68.186 Sec
+... rate: 68.186 SPMR (Sec Per Million Rectangles)
+trying mode: 103
+>MODE 103: FrontBuffer + COMPILED + Flat + ColorIndex + QUADS + glVertex2i
+>Time for fetching Seis-Data: 6.671
+>Time for map color-table: 0.409
+>`gl_display(displayList)- rectangles put in displayList: 1000000
+>relative time: (display-list only)
+... elapsed time: 17.646 Sec
+... rate: 17.646 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list and calculations)
+... elapsed time: 25.173 Sec
+... rate: 25.173 SPMR (Sec Per Million Rectangles)
+... elapsed time: 58.663 Sec
+... rate: 58.663 SPMR (Sec Per Million Rectangles)
+>relative time: (display-list called)
+... elapsed time: 33.524 Sec
+... rate: 33.524 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list compiled+called+calculations)
+... elapsed time: 58.752 Sec
+... rate: 58.752 SPMR (Sec Per Million Rectangles)
diff --git a/demos/RectRenderSpeed/perfomance-Win32-400MHzPII-Matr b/demos/RectRenderSpeed/perfomance-Win32-400MHzPII-Matr
new file mode 100644
index 0000000..71ae1bc
--- /dev/null
+++ b/demos/RectRenderSpeed/perfomance-Win32-400MHzPII-Matr
@@ -0,0 +1 @@
+I used platform: Matrox G200 with new driver ! Windows NT 4.0 SP5 ! 329 MB RAM ! 400 MhZ PII ! Running under Java2 & Cygwin32-Bash & ShellScript GL4JTests2.sh ! args: help 0 1 2 3 100 101 102 103 Arguments: help - print this help dbl - use doublebuffer <mode> - render mode, where mode is one of the following integer values : 0 - Immediate + FLAT + ColorIndex + glRect 1 - Immediate + FLAT + ColorIndex + glRectiv 2 - Immediate + FLAT + ColorIndex + POLYGON + glVertex2i(x2,y2); 3 - Immediate + FLAT + ColorIndex + QUADS + glVertex2i(x2,y2); 10 - Immediate + FLAT + RGB + glRect 11 - Immediate + FLAT + RGB + glRectiv 12 - Immediate + FLAT + RGB + POLYGON + glVertex2i(x2,y2); 13 - Immediate + FLAT + RGB + QUADS + glVertex2i(x2,y2); 20 - Immediate + SMOOTH + ColorIndex + glRect 21 - Immediate + SMOOTH + ColorIndex + glRectiv 22 - Immediate + SMOOTH + ColorIndex + POLYGON + glVertex2i(x2,y2); 23 - Immediate + SMOOTH + ColorIndex + QUADS + glVertex2i(x2,y2); 30 - Immediate + SMOOTH + RGB + glRect 31 - Immediate + SMOOTH + RGB + glRectiv 32 - Immediate + SMOOTH + RGB + POLYGON + glVertex2i(x2,y2); 33 - Immediate + SMOOTH + RGB + QUADS + glVertex2i(x2,y2); 100 - COMPILED + FLAT + ColorIndex + glRect 101 - COMPILED + FLAT + ColorIndex + glRectiv 102 - COMPILED + FLAT + ColorIndex + POLYGON + glVertex2i(x2,y2); 103 - COMPILED + FLAT + ColorIndex + QUADS + glVertex2i(x2,y2); 110 - COMPILED + FLAT + RGB + glRect 111 - COMPILED + FLAT + RGB + glRectiv 112 - COMPILED + FLAT + RGB + POLYGON + glVertex2i(x2,y2); 113 - COMPILED + FLAT + RGB + QUADS + glVertex2i(x2,y2); 120 - COMPILED + SMOOTH + ColorIndex + glRect 121 - COMPILED + SMOOTH + ColorIndex + glRectiv 122 - COMPILED + SMOOTH + ColorIndex + POLYGON + glVertex2i(x2,y2); 123 - COMPILED + SMOOTH + ColorIndex + QUADS + glVertex2i(x2,y2); 130 - COMPILED + SMOOTH + RGB + glRect 131 - COMPILED + SMOOTH + RGB + glRectiv 132 - COMPILED + SMOOTH + RGB + POLYGON + glVertex2i(x2,y2); 133 - COMPILED + SMOOTH + RGB + GL_QUADS+ glVertex2i(x2,y2); trying mode: 0 >MODE 0: FrontBuffer + IMMEDIATE + Flat + ColorIndex + glRect >Time for fetching Seis-Data: 0.631 >Time for map color-table: 0.05 >`gl_display(immediate)- rectangles rendered: 1000000 >relative time: (immediate only) ... elapsed time: 60.858 Sec ... rate: 60.858000000000004 SPMR (Sec Per Million Rectangles) >absolute time: (immediate and calculations) ... elapsed time: 61.549 Sec ... rate: 61.549 SPMR (Sec Per Million Rectangles) trying mode: 1 >MODE 1: FrontBuffer + IMMEDIATE + Flat + ColorIndex + glRectiv >Time for fetching Seis-Data: 0.631 >Time for map color-table: 0.04 >`gl_display(immediate)- rectangles rendered: 1000000 >relative time: (immediate only) ... elapsed time: 67.547 Sec ... rate: 67.547 SPMR (Sec Per Million Rectangles) >absolute time: (immediate and calculations) ... elapsed time: 68.218 Sec ... rate: 68.218 SPMR (Sec Per Million Rectangles) trying mode: 2 >MODE 2: FrontBuffer + IMMEDIATE + Flat + ColorIndex + POLYGON + glVertex2i >Time for fetching Seis-Data: 0.631 >Time for map color-table: 0.05 >`gl_display(immediate)- rectangles rendered: 1000000 >relative time: (immediate only) ... elapsed time: 8.782 Sec ... rate: 8.782 SPMR (Sec Per Million Rectangles) >absolute time: (immediate and calculations) ... elapsed time: 9.473 Sec ... rate: 9.473 SPMR (Sec Per Million Rectangles) trying mode: 3 >MODE 3: FrontBuffer + IMMEDIATE + Flat + ColorIndex + QUADS + glVertex2i >Time for fetching Seis-Data: 0.631 >Time for map color-table: 0.04 >`gl_display(immediate)- rectangles rendered: 1000000 >relative time: (immediate only) ... elapsed time: 7.051 Sec ... rate: 7.051 SPMR (Sec Per Million Rectangles) >absolute time: (immediate and calculations) ... elapsed time: 7.722 Sec ... rate: 7.722 SPMR (Sec Per Million Rectangles) trying mode: 100 >MODE 100: FrontBuffer + COMPILED + Flat + ColorIndex + glRect >Time for fetching Seis-Data: 0.63 >Time for map color-table: 0.051 >`gl_display(displayList)- rectangles put in displayList: 1000000 >relative time: (display-list only) ... elapsed time: 2.894 Sec ... rate: 2.894 SPMR (Sec Per Million Rectangles) >absolute time: (display-list and calculations) ... elapsed time: 3.575 Sec ... rate: 3.575 SPMR (Sec Per Million Rectangles) ... elapsed time: 56.571 Sec ... rate: 56.571 SPMR (Sec Per Million Rectangles) >relative time: (display-list called) ... elapsed time: 52.996 Sec ... rate: 52.996 SPMR (Sec Per Million Rectangles) >absolute time: (display-list compiled+called+calculations) ... elapsed time: 56.571 Sec ... rate: 56.571 SPMR (Sec Per Million Rectangles) trying mode: 101 >MODE 101: FrontBuffer + COMPILED + Flat + ColorIndex + glRectiv >Time for fetching Seis-Data: 0.631 >Time for map color-table: 0.04 >`gl_display(displayList)- rectangles put in displayList: 1000000 >relative time: (display-list only) ... elapsed time: 4.867 Sec ... rate: 4.867 SPMR (Sec Per Million Rectangles) >absolute time: (display-list and calculations) ... elapsed time: 5.548 Sec ... rate: 5.548 SPMR (Sec Per Million Rectangles) ... elapsed time: 59.245 Sec ... rate: 59.245000000000005 SPMR (Sec Per Million Rectangles) >relative time: (display-list called) ... elapsed time: 53.707 Sec ... rate: 53.707 SPMR (Sec Per Million Rectangles) >absolute time: (display-list compiled+called+calculations) ... elapsed time: 59.255 Sec ... rate: 59.255 SPMR (Sec Per Million Rectangles) trying mode: 102 >MODE 102: FrontBuffer + COMPILED + Flat + ColorIndex + POLYGON + glVertex2i >Time for fetching Seis-Data: 0.641 >Time for map color-table: 0.05 >`gl_display(displayList)- rectangles put in displayList: 1000000 >relative time: (display-list only) ... elapsed time: 25.947 Sec ... rate: 25.947 SPMR (Sec Per Million Rectangles) >absolute time: (display-list and calculations) ... elapsed time: 26.899 Sec ... rate: 26.899 SPMR (Sec Per Million Rectangles) ... elapsed time: 34.35 Sec ... rate: 34.35 SPMR (Sec Per Million Rectangles) >relative time: (display-list called) ... elapsed time: 7.391 Sec ... rate: 7.391 SPMR (Sec Per Million Rectangles) >absolute time: (display-list compiled+called+calculations) ... elapsed time: 34.35 Sec ... rate: 34.35 SPMR (Sec Per Million Rectangles) trying mode: 103 >MODE 103: FrontBuffer + COMPILED + Flat + ColorIndex + QUADS + glVertex2i >Time for fetching Seis-Data: 0.791 >Time for map color-table: 0.05 >`gl_display(displayList)- rectangles put in displayList: 1000000 >relative time: (display-list only) ... elapsed time: 7.671 Sec ... rate: 7.671 SPMR (Sec Per Million Rectangles) >absolute time: (display-list and calculations) ... elapsed time: 10.796 Sec ... rate: 10.796 SPMR (Sec Per Million Rectangles) ... elapsed time: 16.314 Sec ... rate: 16.314 SPMR (Sec Per Million Rectangles) >relative time: (display-list called) ... elapsed time: 5.498 Sec ... rate: 5.498 SPMR (Sec Per Million Rectangles) >absolute time: (display-list compiled+called+calculations) ... elapsed time: 16.334 Sec ... rate: 16.334 SPMR (Sec Per Million Rectangles) args: help 112 113 Arguments: help - print this help dbl - use doublebuffer <mode> - render mode, where mode is one of the following integer values : 0 - Immediate + FLAT + ColorIndex + glRect 1 - Immediate + FLAT + ColorIndex + glRectiv 2 - Immediate + FLAT + ColorIndex + POLYGON + glVertex2i(x2,y2); 3 - Immediate + FLAT + ColorIndex + QUADS + glVertex2i(x2,y2); 10 - Immediate + FLAT + RGB + glRect 11 - Immediate + FLAT + RGB + glRectiv 12 - Immediate + FLAT + RGB + POLYGON + glVertex2i(x2,y2); 13 - Immediate + FLAT + RGB + QUADS + glVertex2i(x2,y2); 20 - Immediate + SMOOTH + ColorIndex + glRect 21 - Immediate + SMOOTH + ColorIndex + glRectiv 22 - Immediate + SMOOTH + ColorIndex + POLYGON + glVertex2i(x2,y2); 23 - Immediate + SMOOTH + ColorIndex + QUADS + glVertex2i(x2,y2); 30 - Immediate + SMOOTH + RGB + glRect 31 - Immediate + SMOOTH + RGB + glRectiv 32 - Immediate + SMOOTH + RGB + POLYGON + glVertex2i(x2,y2); 33 - Immediate + SMOOTH + RGB + QUADS + glVertex2i(x2,y2); 100 - COMPILED + FLAT + ColorIndex + glRect 101 - COMPILED + FLAT + ColorIndex + glRectiv 102 - COMPILED + FLAT + ColorIndex + POLYGON + glVertex2i(x2,y2); 103 - COMPILED + FLAT + ColorIndex + QUADS + glVertex2i(x2,y2); 110 - COMPILED + FLAT + RGB + glRect 111 - COMPILED + FLAT + RGB + glRectiv 112 - COMPILED + FLAT + RGB + POLYGON + glVertex2i(x2,y2); 113 - COMPILED + FLAT + RGB + QUADS + glVertex2i(x2,y2); 120 - COMPILED + SMOOTH + ColorIndex + glRect 121 - COMPILED + SMOOTH + ColorIndex + glRectiv 122 - COMPILED + SMOOTH + ColorIndex + POLYGON + glVertex2i(x2,y2); 123 - COMPILED + SMOOTH + ColorIndex + QUADS + glVertex2i(x2,y2); 130 - COMPILED + SMOOTH + RGB + glRect 131 - COMPILED + SMOOTH + RGB + glRectiv 132 - COMPILED + SMOOTH + RGB + POLYGON + glVertex2i(x2,y2); 133 - COMPILED + SMOOTH + RGB + GL_QUADS+ glVertex2i(x2,y2); trying mode: 112 >MODE 112: FrontBuffer + COMPILED + Flat + RGB + POLYGON + glVertex2i >Time for fetching Seis-Data: 0.641 >Time for map color-table: 0.05 >`gl_display(displayList)- rectangles put in displayList: 1000000 >relative time: (display-list only) ... elapsed time: 8.372 Sec ... rate: 8.372 SPMR (Sec Per Million Rectangles) >absolute time: (display-list and calculations) ... elapsed time: 9.073 Sec ... rate: 9.073 SPMR (Sec Per Million Rectangles) ... elapsed time: 15.563 Sec ... rate: 15.563 SPMR (Sec Per Million Rectangles) >relative time: (display-list called) ... elapsed time: 6.49 Sec ... rate: 6.49 SPMR (Sec Per Million Rectangles) >absolute time: (display-list compiled+called+calculations) ... elapsed time: 15.563 Sec ... rate: 15.563 SPMR (Sec Per Million Rectangles) trying mode: 113 >MODE 113: FrontBuffer + COMPILED + Flat + RGB + QUADS + glVertex2i >Time for fetching Seis-Data: 0.631 >Time for map color-table: 0.05 >`gl_display(displayList)- rectangles put in displayList: 1000000 >relative time: (display-list only) ... elapsed time: 6.159 Sec ... rate: 6.159 SPMR (Sec Per Million Rectangles) >absolute time: (display-list and calculations) ... elapsed time: 6.84 Sec ... rate: 6.84 SPMR (Sec Per Million Rectangles) ... elapsed time: 12.147 Sec ... rate: 12.147 SPMR (Sec Per Million Rectangles) >relative time: (display-list called) ... elapsed time: 5.317 Sec ... rate: 5.317 SPMR (Sec Per Million Rectangles) >absolute time: (display-list compiled+called+calculations) ... elapsed time: 12.157 Sec ... rate: 12.157 SPMR (Sec Per Million Rectangles) \ No newline at end of file
diff --git a/demos/RectRenderSpeed/perfomance-Win32-400MHzPII-MatroxG200.txt b/demos/RectRenderSpeed/perfomance-Win32-400MHzPII-MatroxG200.txt
new file mode 100644
index 0000000..4cba0c7
--- /dev/null
+++ b/demos/RectRenderSpeed/perfomance-Win32-400MHzPII-MatroxG200.txt
@@ -0,0 +1,247 @@
+I used platform:
+
+Matrox G200 with new driver !
+Windows NT 4.0 SP5 !
+329 MB RAM !
+400 MhZ PII !
+
+Running under Java2 & Cygwin32-Bash & ShellScript GL4JTests2.sh !
+
+
+args: help 0 1 2 3 100 101 102 103
+Arguments:
+ help - print this help
+ dbl - use doublebuffer
+ <mode> - render mode, where mode is one of the following integer values :
+ 0 - Immediate + FLAT + ColorIndex + glRect
+ 1 - Immediate + FLAT + ColorIndex + glRectiv
+ 2 - Immediate + FLAT + ColorIndex + POLYGON + glVertex2i(x2,y2);
+ 3 - Immediate + FLAT + ColorIndex + QUADS + glVertex2i(x2,y2);
+ 10 - Immediate + FLAT + RGB + glRect
+ 11 - Immediate + FLAT + RGB + glRectiv
+ 12 - Immediate + FLAT + RGB + POLYGON + glVertex2i(x2,y2);
+ 13 - Immediate + FLAT + RGB + QUADS + glVertex2i(x2,y2);
+ 20 - Immediate + SMOOTH + ColorIndex + glRect
+ 21 - Immediate + SMOOTH + ColorIndex + glRectiv
+ 22 - Immediate + SMOOTH + ColorIndex + POLYGON + glVertex2i(x2,y2);
+ 23 - Immediate + SMOOTH + ColorIndex + QUADS + glVertex2i(x2,y2);
+ 30 - Immediate + SMOOTH + RGB + glRect
+ 31 - Immediate + SMOOTH + RGB + glRectiv
+ 32 - Immediate + SMOOTH + RGB + POLYGON + glVertex2i(x2,y2);
+ 33 - Immediate + SMOOTH + RGB + QUADS + glVertex2i(x2,y2);
+100 - COMPILED + FLAT + ColorIndex + glRect
+101 - COMPILED + FLAT + ColorIndex + glRectiv
+102 - COMPILED + FLAT + ColorIndex + POLYGON + glVertex2i(x2,y2);
+103 - COMPILED + FLAT + ColorIndex + QUADS + glVertex2i(x2,y2);
+110 - COMPILED + FLAT + RGB + glRect
+111 - COMPILED + FLAT + RGB + glRectiv
+112 - COMPILED + FLAT + RGB + POLYGON + glVertex2i(x2,y2);
+113 - COMPILED + FLAT + RGB + QUADS + glVertex2i(x2,y2);
+120 - COMPILED + SMOOTH + ColorIndex + glRect
+121 - COMPILED + SMOOTH + ColorIndex + glRectiv
+122 - COMPILED + SMOOTH + ColorIndex + POLYGON + glVertex2i(x2,y2);
+123 - COMPILED + SMOOTH + ColorIndex + QUADS + glVertex2i(x2,y2);
+130 - COMPILED + SMOOTH + RGB + glRect
+131 - COMPILED + SMOOTH + RGB + glRectiv
+132 - COMPILED + SMOOTH + RGB + POLYGON + glVertex2i(x2,y2);
+133 - COMPILED + SMOOTH + RGB + GL_QUADS+ glVertex2i(x2,y2);
+
+
+trying mode: 0
+>MODE 0: FrontBuffer + IMMEDIATE + Flat + ColorIndex + glRect
+>Time for fetching Seis-Data: 0.631
+>Time for map color-table: 0.05
+>`gl_display(immediate)- rectangles rendered: 1000000
+>relative time: (immediate only)
+... elapsed time: 60.858 Sec
+... rate: 60.858000000000004 SPMR (Sec Per Million Rectangles)
+>absolute time: (immediate and calculations)
+... elapsed time: 61.549 Sec
+... rate: 61.549 SPMR (Sec Per Million Rectangles)
+trying mode: 1
+>MODE 1: FrontBuffer + IMMEDIATE + Flat + ColorIndex + glRectiv
+>Time for fetching Seis-Data: 0.631
+>Time for map color-table: 0.04
+>`gl_display(immediate)- rectangles rendered: 1000000
+>relative time: (immediate only)
+... elapsed time: 67.547 Sec
+... rate: 67.547 SPMR (Sec Per Million Rectangles)
+>absolute time: (immediate and calculations)
+... elapsed time: 68.218 Sec
+... rate: 68.218 SPMR (Sec Per Million Rectangles)
+trying mode: 2
+>MODE 2: FrontBuffer + IMMEDIATE + Flat + ColorIndex + POLYGON + glVertex2i
+>Time for fetching Seis-Data: 0.631
+>Time for map color-table: 0.05
+>`gl_display(immediate)- rectangles rendered: 1000000
+>relative time: (immediate only)
+... elapsed time: 8.782 Sec
+... rate: 8.782 SPMR (Sec Per Million Rectangles)
+>absolute time: (immediate and calculations)
+... elapsed time: 9.473 Sec
+... rate: 9.473 SPMR (Sec Per Million Rectangles)
+trying mode: 3
+>MODE 3: FrontBuffer + IMMEDIATE + Flat + ColorIndex + QUADS + glVertex2i
+>Time for fetching Seis-Data: 0.631
+>Time for map color-table: 0.04
+>`gl_display(immediate)- rectangles rendered: 1000000
+>relative time: (immediate only)
+... elapsed time: 7.051 Sec
+... rate: 7.051 SPMR (Sec Per Million Rectangles)
+>absolute time: (immediate and calculations)
+... elapsed time: 7.722 Sec
+... rate: 7.722 SPMR (Sec Per Million Rectangles)
+trying mode: 100
+>MODE 100: FrontBuffer + COMPILED + Flat + ColorIndex + glRect
+>Time for fetching Seis-Data: 0.63
+>Time for map color-table: 0.051
+>`gl_display(displayList)- rectangles put in displayList: 1000000
+>relative time: (display-list only)
+... elapsed time: 2.894 Sec
+... rate: 2.894 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list and calculations)
+... elapsed time: 3.575 Sec
+... rate: 3.575 SPMR (Sec Per Million Rectangles)
+... elapsed time: 56.571 Sec
+... rate: 56.571 SPMR (Sec Per Million Rectangles)
+>relative time: (display-list called)
+... elapsed time: 52.996 Sec
+... rate: 52.996 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list compiled+called+calculations)
+... elapsed time: 56.571 Sec
+... rate: 56.571 SPMR (Sec Per Million Rectangles)
+trying mode: 101
+>MODE 101: FrontBuffer + COMPILED + Flat + ColorIndex + glRectiv
+>Time for fetching Seis-Data: 0.631
+>Time for map color-table: 0.04
+>`gl_display(displayList)- rectangles put in displayList: 1000000
+>relative time: (display-list only)
+... elapsed time: 4.867 Sec
+... rate: 4.867 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list and calculations)
+... elapsed time: 5.548 Sec
+... rate: 5.548 SPMR (Sec Per Million Rectangles)
+... elapsed time: 59.245 Sec
+... rate: 59.245000000000005 SPMR (Sec Per Million Rectangles)
+>relative time: (display-list called)
+... elapsed time: 53.707 Sec
+... rate: 53.707 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list compiled+called+calculations)
+... elapsed time: 59.255 Sec
+... rate: 59.255 SPMR (Sec Per Million Rectangles)
+trying mode: 102
+>MODE 102: FrontBuffer + COMPILED + Flat + ColorIndex + POLYGON + glVertex2i
+>Time for fetching Seis-Data: 0.641
+>Time for map color-table: 0.05
+>`gl_display(displayList)- rectangles put in displayList: 1000000
+>relative time: (display-list only)
+... elapsed time: 25.947 Sec
+... rate: 25.947 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list and calculations)
+... elapsed time: 26.899 Sec
+... rate: 26.899 SPMR (Sec Per Million Rectangles)
+... elapsed time: 34.35 Sec
+... rate: 34.35 SPMR (Sec Per Million Rectangles)
+>relative time: (display-list called)
+... elapsed time: 7.391 Sec
+... rate: 7.391 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list compiled+called+calculations)
+... elapsed time: 34.35 Sec
+... rate: 34.35 SPMR (Sec Per Million Rectangles)
+trying mode: 103
+>MODE 103: FrontBuffer + COMPILED + Flat + ColorIndex + QUADS + glVertex2i
+>Time for fetching Seis-Data: 0.791
+>Time for map color-table: 0.05
+>`gl_display(displayList)- rectangles put in displayList: 1000000
+>relative time: (display-list only)
+... elapsed time: 7.671 Sec
+... rate: 7.671 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list and calculations)
+... elapsed time: 10.796 Sec
+... rate: 10.796 SPMR (Sec Per Million Rectangles)
+... elapsed time: 16.314 Sec
+... rate: 16.314 SPMR (Sec Per Million Rectangles)
+>relative time: (display-list called)
+... elapsed time: 5.498 Sec
+... rate: 5.498 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list compiled+called+calculations)
+... elapsed time: 16.334 Sec
+... rate: 16.334 SPMR (Sec Per Million Rectangles)
+
+args: help 112 113
+Arguments:
+ help - print this help
+ dbl - use doublebuffer
+ <mode> - render mode, where mode is one of the following integer values :
+ 0 - Immediate + FLAT + ColorIndex + glRect
+ 1 - Immediate + FLAT + ColorIndex + glRectiv
+ 2 - Immediate + FLAT + ColorIndex + POLYGON + glVertex2i(x2,y2);
+ 3 - Immediate + FLAT + ColorIndex + QUADS + glVertex2i(x2,y2);
+ 10 - Immediate + FLAT + RGB + glRect
+ 11 - Immediate + FLAT + RGB + glRectiv
+ 12 - Immediate + FLAT + RGB + POLYGON + glVertex2i(x2,y2);
+ 13 - Immediate + FLAT + RGB + QUADS + glVertex2i(x2,y2);
+ 20 - Immediate + SMOOTH + ColorIndex + glRect
+ 21 - Immediate + SMOOTH + ColorIndex + glRectiv
+ 22 - Immediate + SMOOTH + ColorIndex + POLYGON + glVertex2i(x2,y2);
+ 23 - Immediate + SMOOTH + ColorIndex + QUADS + glVertex2i(x2,y2);
+ 30 - Immediate + SMOOTH + RGB + glRect
+ 31 - Immediate + SMOOTH + RGB + glRectiv
+ 32 - Immediate + SMOOTH + RGB + POLYGON + glVertex2i(x2,y2);
+ 33 - Immediate + SMOOTH + RGB + QUADS + glVertex2i(x2,y2);
+100 - COMPILED + FLAT + ColorIndex + glRect
+101 - COMPILED + FLAT + ColorIndex + glRectiv
+102 - COMPILED + FLAT + ColorIndex + POLYGON + glVertex2i(x2,y2);
+103 - COMPILED + FLAT + ColorIndex + QUADS + glVertex2i(x2,y2);
+110 - COMPILED + FLAT + RGB + glRect
+111 - COMPILED + FLAT + RGB + glRectiv
+112 - COMPILED + FLAT + RGB + POLYGON + glVertex2i(x2,y2);
+113 - COMPILED + FLAT + RGB + QUADS + glVertex2i(x2,y2);
+120 - COMPILED + SMOOTH + ColorIndex + glRect
+121 - COMPILED + SMOOTH + ColorIndex + glRectiv
+122 - COMPILED + SMOOTH + ColorIndex + POLYGON + glVertex2i(x2,y2);
+123 - COMPILED + SMOOTH + ColorIndex + QUADS + glVertex2i(x2,y2);
+130 - COMPILED + SMOOTH + RGB + glRect
+131 - COMPILED + SMOOTH + RGB + glRectiv
+132 - COMPILED + SMOOTH + RGB + POLYGON + glVertex2i(x2,y2);
+133 - COMPILED + SMOOTH + RGB + GL_QUADS+ glVertex2i(x2,y2);
+
+
+trying mode: 112
+>MODE 112: FrontBuffer + COMPILED + Flat + RGB + POLYGON + glVertex2i
+>Time for fetching Seis-Data: 0.641
+>Time for map color-table: 0.05
+>`gl_display(displayList)- rectangles put in displayList: 1000000
+>relative time: (display-list only)
+... elapsed time: 8.372 Sec
+... rate: 8.372 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list and calculations)
+... elapsed time: 9.073 Sec
+... rate: 9.073 SPMR (Sec Per Million Rectangles)
+... elapsed time: 15.563 Sec
+... rate: 15.563 SPMR (Sec Per Million Rectangles)
+>relative time: (display-list called)
+... elapsed time: 6.49 Sec
+... rate: 6.49 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list compiled+called+calculations)
+... elapsed time: 15.563 Sec
+... rate: 15.563 SPMR (Sec Per Million Rectangles)
+trying mode: 113
+>MODE 113: FrontBuffer + COMPILED + Flat + RGB + QUADS + glVertex2i
+>Time for fetching Seis-Data: 0.631
+>Time for map color-table: 0.05
+>`gl_display(displayList)- rectangles put in displayList: 1000000
+>relative time: (display-list only)
+... elapsed time: 6.159 Sec
+... rate: 6.159 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list and calculations)
+... elapsed time: 6.84 Sec
+... rate: 6.84 SPMR (Sec Per Million Rectangles)
+... elapsed time: 12.147 Sec
+... rate: 12.147 SPMR (Sec Per Million Rectangles)
+>relative time: (display-list called)
+... elapsed time: 5.317 Sec
+... rate: 5.317 SPMR (Sec Per Million Rectangles)
+>absolute time: (display-list compiled+called+calculations)
+... elapsed time: 12.157 Sec
+... rate: 12.157 SPMR (Sec Per Million Rectangles)
diff --git a/demos/RonsDemos/DemoTex1.java b/demos/RonsDemos/DemoTex1.java
new file mode 100644
index 0000000..60477f9
--- /dev/null
+++ b/demos/RonsDemos/DemoTex1.java
@@ -0,0 +1,4158 @@
+/**
+ * @(#) DemoTex1.java
+ * @(#) author: Ronald B. Cemer
+ * @(#) version: 1.0
+ */
+
+import java.io.*;
+import gl4java.GLEnum;
+
+public class DemoTex1 implements HardCodedTexture, GLEnum
+{
+ private static final int width = 64;
+ private static final int height = 64;
+ private static final byte bits[] =
+ {
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x18,(byte)0x10,(byte)0x10,
+ (byte)0x20,(byte)0x18,(byte)0x18,
+ (byte)0x29,(byte)0x20,(byte)0x20,
+ (byte)0x18,(byte)0x18,(byte)0x18,
+ (byte)0x10,(byte)0x10,(byte)0x10,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x08,(byte)0x08,
+ (byte)0x20,(byte)0x10,(byte)0x10,
+ (byte)0x29,(byte)0x18,(byte)0x18,
+ (byte)0x20,(byte)0x18,(byte)0x18,
+ (byte)0x31,(byte)0x18,(byte)0x18,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x18,(byte)0x08,(byte)0x10,
+ (byte)0x4a,(byte)0x39,(byte)0x41,
+ (byte)0x5a,(byte)0x4a,(byte)0x52,
+ (byte)0x7b,(byte)0x62,(byte)0x62,
+ (byte)0x7b,(byte)0x62,(byte)0x62,
+ (byte)0x83,(byte)0x73,(byte)0x6a,
+ (byte)0x6a,(byte)0x62,(byte)0x52,
+ (byte)0x6a,(byte)0x62,(byte)0x5a,
+ (byte)0x5a,(byte)0x52,(byte)0x4a,
+ (byte)0x39,(byte)0x31,(byte)0x31,
+ (byte)0x10,(byte)0x10,(byte)0x10,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x08,(byte)0x00,
+ (byte)0x18,(byte)0x08,(byte)0x08,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x20,(byte)0x20,(byte)0x20,
+ (byte)0x10,(byte)0x10,(byte)0x10,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x5a,(byte)0x39,(byte)0x4a,
+ (byte)0x62,(byte)0x39,(byte)0x4a,
+ (byte)0x73,(byte)0x41,(byte)0x5a,
+ (byte)0x7b,(byte)0x41,(byte)0x52,
+ (byte)0x8b,(byte)0x41,(byte)0x5a,
+ (byte)0x83,(byte)0x39,(byte)0x4a,
+ (byte)0x73,(byte)0x41,(byte)0x41,
+ (byte)0x6a,(byte)0x52,(byte)0x41,
+ (byte)0x6a,(byte)0x5a,(byte)0x4a,
+ (byte)0x6a,(byte)0x62,(byte)0x4a,
+ (byte)0x39,(byte)0x39,(byte)0x29,
+ (byte)0x20,(byte)0x18,(byte)0x18,
+ (byte)0x10,(byte)0x10,(byte)0x10,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x18,(byte)0x10,(byte)0x10,
+ (byte)0x20,(byte)0x18,(byte)0x18,
+ (byte)0x18,(byte)0x18,(byte)0x20,
+ (byte)0x31,(byte)0x31,(byte)0x39,
+ (byte)0x41,(byte)0x41,(byte)0x4a,
+ (byte)0x4a,(byte)0x41,(byte)0x4a,
+ (byte)0x31,(byte)0x31,(byte)0x39,
+ (byte)0x39,(byte)0x39,(byte)0x39,
+ (byte)0x4a,(byte)0x39,(byte)0x31,
+ (byte)0x5a,(byte)0x31,(byte)0x31,
+ (byte)0x5a,(byte)0x31,(byte)0x41,
+ (byte)0x62,(byte)0x20,(byte)0x39,
+ (byte)0x6a,(byte)0x18,(byte)0x39,
+ (byte)0x6a,(byte)0x31,(byte)0x41,
+ (byte)0x5a,(byte)0x29,(byte)0x39,
+ (byte)0x41,(byte)0x10,(byte)0x18,
+ (byte)0x4a,(byte)0x20,(byte)0x31,
+ (byte)0x4a,(byte)0x31,(byte)0x41,
+ (byte)0x52,(byte)0x31,(byte)0x41,
+ (byte)0x62,(byte)0x41,(byte)0x4a,
+ (byte)0x5a,(byte)0x29,(byte)0x31,
+ (byte)0x39,(byte)0x20,(byte)0x18,
+ (byte)0x39,(byte)0x39,(byte)0x29,
+ (byte)0x52,(byte)0x52,(byte)0x41,
+ (byte)0x41,(byte)0x39,(byte)0x39,
+ (byte)0x20,(byte)0x18,(byte)0x10,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x10,(byte)0x10,
+ (byte)0x31,(byte)0x29,(byte)0x39,
+ (byte)0x29,(byte)0x29,(byte)0x39,
+ (byte)0x18,(byte)0x18,(byte)0x20,
+ (byte)0x20,(byte)0x20,(byte)0x29,
+ (byte)0x4a,(byte)0x4a,(byte)0x52,
+ (byte)0x73,(byte)0x7b,(byte)0x8b,
+ (byte)0x4a,(byte)0x4a,(byte)0x52,
+ (byte)0x41,(byte)0x39,(byte)0x39,
+ (byte)0x29,(byte)0x20,(byte)0x18,
+ (byte)0x62,(byte)0x41,(byte)0x52,
+ (byte)0x94,(byte)0x62,(byte)0x83,
+ (byte)0x9c,(byte)0x62,(byte)0x83,
+ (byte)0x8b,(byte)0x5a,(byte)0x83,
+ (byte)0x8b,(byte)0x62,(byte)0x94,
+ (byte)0x9c,(byte)0x83,(byte)0xb4,
+ (byte)0x9c,(byte)0x8b,(byte)0xbd,
+ (byte)0x83,(byte)0x6a,(byte)0x94,
+ (byte)0x83,(byte)0x6a,(byte)0x83,
+ (byte)0x8b,(byte)0x62,(byte)0x8b,
+ (byte)0x7b,(byte)0x6a,(byte)0x94,
+ (byte)0x83,(byte)0x6a,(byte)0x94,
+ (byte)0x94,(byte)0x94,(byte)0xb4,
+ (byte)0xa4,(byte)0x7b,(byte)0xac,
+ (byte)0x83,(byte)0x41,(byte)0x73,
+ (byte)0x41,(byte)0x18,(byte)0x29,
+ (byte)0x31,(byte)0x29,(byte)0x20,
+ (byte)0x5a,(byte)0x52,(byte)0x4a,
+ (byte)0x39,(byte)0x31,(byte)0x29,
+ (byte)0x20,(byte)0x18,(byte)0x10,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x20,(byte)0x18,(byte)0x29,
+ (byte)0x31,(byte)0x31,(byte)0x39,
+ (byte)0x29,(byte)0x29,(byte)0x31,
+ (byte)0x10,(byte)0x10,(byte)0x18,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x52,(byte)0x41,(byte)0x52,
+ (byte)0x7b,(byte)0x6a,(byte)0x8b,
+ (byte)0x6a,(byte)0x6a,(byte)0x73,
+ (byte)0x41,(byte)0x41,(byte)0x4a,
+ (byte)0x41,(byte)0x29,(byte)0x41,
+ (byte)0x41,(byte)0x31,(byte)0x4a,
+ (byte)0x73,(byte)0x62,(byte)0x8b,
+ (byte)0x9c,(byte)0x9c,(byte)0xde,
+ (byte)0x7b,(byte)0xa4,(byte)0xde,
+ (byte)0x6a,(byte)0xac,(byte)0xde,
+ (byte)0x6a,(byte)0xa4,(byte)0xde,
+ (byte)0x62,(byte)0xa4,(byte)0xde,
+ (byte)0x6a,(byte)0xa4,(byte)0xde,
+ (byte)0x73,(byte)0xac,(byte)0xe6,
+ (byte)0x73,(byte)0xa4,(byte)0xde,
+ (byte)0x73,(byte)0xa4,(byte)0xd5,
+ (byte)0x73,(byte)0x9c,(byte)0xcd,
+ (byte)0x7b,(byte)0xac,(byte)0xde,
+ (byte)0x83,(byte)0xb4,(byte)0xe6,
+ (byte)0x9c,(byte)0xac,(byte)0xde,
+ (byte)0x94,(byte)0x62,(byte)0x8b,
+ (byte)0x39,(byte)0x18,(byte)0x18,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x20,(byte)0x20,(byte)0x20,
+ (byte)0x20,(byte)0x18,(byte)0x10,
+ (byte)0x18,(byte)0x18,(byte)0x10,
+ (byte)0x29,(byte)0x20,(byte)0x18,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x31,(byte)0x20,(byte)0x29,
+ (byte)0x29,(byte)0x20,(byte)0x29,
+ (byte)0x20,(byte)0x18,(byte)0x18,
+ (byte)0x18,(byte)0x10,(byte)0x08,
+ (byte)0x20,(byte)0x18,(byte)0x08,
+ (byte)0x31,(byte)0x20,(byte)0x18,
+ (byte)0x6a,(byte)0x41,(byte)0x52,
+ (byte)0xac,(byte)0x94,(byte)0xbd,
+ (byte)0xbd,(byte)0xbd,(byte)0xee,
+ (byte)0xa4,(byte)0x8b,(byte)0xb4,
+ (byte)0x8b,(byte)0x73,(byte)0x94,
+ (byte)0xa4,(byte)0x8b,(byte)0xbd,
+ (byte)0x94,(byte)0x94,(byte)0xc5,
+ (byte)0x8b,(byte)0xa4,(byte)0xd5,
+ (byte)0x83,(byte)0xac,(byte)0xde,
+ (byte)0x73,(byte)0xa4,(byte)0xde,
+ (byte)0x6a,(byte)0x9c,(byte)0xd5,
+ (byte)0x62,(byte)0x94,(byte)0xd5,
+ (byte)0x52,(byte)0x8b,(byte)0xc5,
+ (byte)0x4a,(byte)0x83,(byte)0xc5,
+ (byte)0x4a,(byte)0x83,(byte)0xc5,
+ (byte)0x52,(byte)0x8b,(byte)0xc5,
+ (byte)0x52,(byte)0x8b,(byte)0xcd,
+ (byte)0x52,(byte)0x94,(byte)0xcd,
+ (byte)0x5a,(byte)0x94,(byte)0xcd,
+ (byte)0x62,(byte)0x9c,(byte)0xd5,
+ (byte)0x73,(byte)0xac,(byte)0xe6,
+ (byte)0x9c,(byte)0x94,(byte)0xcd,
+ (byte)0x7b,(byte)0x41,(byte)0x62,
+ (byte)0x5a,(byte)0x39,(byte)0x39,
+ (byte)0x39,(byte)0x39,(byte)0x29,
+ (byte)0x29,(byte)0x20,(byte)0x20,
+ (byte)0x10,(byte)0x10,(byte)0x10,
+ (byte)0x18,(byte)0x18,(byte)0x10,
+ (byte)0x29,(byte)0x29,(byte)0x20,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x29,(byte)0x18,(byte)0x10,
+ (byte)0x39,(byte)0x29,(byte)0x29,
+ (byte)0x31,(byte)0x20,(byte)0x18,
+ (byte)0x18,(byte)0x18,(byte)0x08,
+ (byte)0x41,(byte)0x39,(byte)0x29,
+ (byte)0x94,(byte)0x73,(byte)0x8b,
+ (byte)0xbd,(byte)0xa4,(byte)0xcd,
+ (byte)0xcd,(byte)0xcd,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xff,
+ (byte)0xc5,(byte)0xcd,(byte)0xf6,
+ (byte)0xcd,(byte)0xc5,(byte)0xee,
+ (byte)0xc5,(byte)0xd5,(byte)0xff,
+ (byte)0xb4,(byte)0xcd,(byte)0xf6,
+ (byte)0xa4,(byte)0xc5,(byte)0xee,
+ (byte)0x94,(byte)0xbd,(byte)0xe6,
+ (byte)0x83,(byte)0xac,(byte)0xde,
+ (byte)0x7b,(byte)0xa4,(byte)0xde,
+ (byte)0x7b,(byte)0xa4,(byte)0xde,
+ (byte)0x62,(byte)0x94,(byte)0xcd,
+ (byte)0x5a,(byte)0x8b,(byte)0xc5,
+ (byte)0x52,(byte)0x83,(byte)0xc5,
+ (byte)0x4a,(byte)0x83,(byte)0xc5,
+ (byte)0x41,(byte)0x7b,(byte)0xbd,
+ (byte)0x41,(byte)0x7b,(byte)0xbd,
+ (byte)0x41,(byte)0x7b,(byte)0xbd,
+ (byte)0x4a,(byte)0x83,(byte)0xc5,
+ (byte)0x4a,(byte)0x83,(byte)0xc5,
+ (byte)0x52,(byte)0x8b,(byte)0xcd,
+ (byte)0x62,(byte)0x9c,(byte)0xd5,
+ (byte)0x7b,(byte)0x9c,(byte)0xd5,
+ (byte)0x94,(byte)0x5a,(byte)0x8b,
+ (byte)0x6a,(byte)0x31,(byte)0x31,
+ (byte)0x41,(byte)0x39,(byte)0x29,
+ (byte)0x39,(byte)0x31,(byte)0x31,
+ (byte)0x41,(byte)0x41,(byte)0x41,
+ (byte)0x18,(byte)0x18,(byte)0x10,
+ (byte)0x20,(byte)0x18,(byte)0x10,
+ (byte)0x20,(byte)0x18,(byte)0x10,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x00,
+ (byte)0x39,(byte)0x20,(byte)0x20,
+ (byte)0x41,(byte)0x31,(byte)0x31,
+ (byte)0x18,(byte)0x18,(byte)0x08,
+ (byte)0x29,(byte)0x20,(byte)0x10,
+ (byte)0x5a,(byte)0x41,(byte)0x41,
+ (byte)0x9c,(byte)0x73,(byte)0x9c,
+ (byte)0xac,(byte)0xa4,(byte)0xc5,
+ (byte)0xac,(byte)0xb4,(byte)0xd5,
+ (byte)0xbd,(byte)0xc5,(byte)0xee,
+ (byte)0xcd,(byte)0xd5,(byte)0xff,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xc5,(byte)0xd5,(byte)0xf6,
+ (byte)0xb4,(byte)0xcd,(byte)0xf6,
+ (byte)0xac,(byte)0xc5,(byte)0xee,
+ (byte)0xac,(byte)0xc5,(byte)0xee,
+ (byte)0x9c,(byte)0xb4,(byte)0xe6,
+ (byte)0x8b,(byte)0xb4,(byte)0xde,
+ (byte)0x94,(byte)0xb4,(byte)0xe6,
+ (byte)0x83,(byte)0xa4,(byte)0xde,
+ (byte)0x6a,(byte)0x94,(byte)0xd5,
+ (byte)0x5a,(byte)0x8b,(byte)0xcd,
+ (byte)0x5a,(byte)0x8b,(byte)0xc5,
+ (byte)0x5a,(byte)0x83,(byte)0xc5,
+ (byte)0x41,(byte)0x73,(byte)0xbd,
+ (byte)0x39,(byte)0x6a,(byte)0xb4,
+ (byte)0x41,(byte)0x73,(byte)0xb4,
+ (byte)0x41,(byte)0x73,(byte)0xbd,
+ (byte)0x39,(byte)0x73,(byte)0xb4,
+ (byte)0x41,(byte)0x7b,(byte)0xbd,
+ (byte)0x4a,(byte)0x83,(byte)0xc5,
+ (byte)0x52,(byte)0x94,(byte)0xcd,
+ (byte)0x73,(byte)0xa4,(byte)0xde,
+ (byte)0x9c,(byte)0x62,(byte)0x9c,
+ (byte)0x7b,(byte)0x31,(byte)0x52,
+ (byte)0x5a,(byte)0x4a,(byte)0x52,
+ (byte)0x4a,(byte)0x4a,(byte)0x41,
+ (byte)0x41,(byte)0x39,(byte)0x39,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x18,(byte)0x10,(byte)0x08,
+ (byte)0x18,(byte)0x10,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x29,(byte)0x18,(byte)0x18,
+ (byte)0x39,(byte)0x20,(byte)0x20,
+ (byte)0x41,(byte)0x31,(byte)0x41,
+ (byte)0x31,(byte)0x31,(byte)0x20,
+ (byte)0x41,(byte)0x41,(byte)0x20,
+ (byte)0x5a,(byte)0x39,(byte)0x41,
+ (byte)0x9c,(byte)0x83,(byte)0xa4,
+ (byte)0xc5,(byte)0xcd,(byte)0xee,
+ (byte)0xac,(byte)0xac,(byte)0xcd,
+ (byte)0xbd,(byte)0xbd,(byte)0xde,
+ (byte)0xd5,(byte)0xd5,(byte)0xff,
+ (byte)0xcd,(byte)0xd5,(byte)0xff,
+ (byte)0xc5,(byte)0xcd,(byte)0xf6,
+ (byte)0xb4,(byte)0xcd,(byte)0xf6,
+ (byte)0xac,(byte)0xc5,(byte)0xee,
+ (byte)0xa4,(byte)0xc5,(byte)0xee,
+ (byte)0x94,(byte)0xb4,(byte)0xe6,
+ (byte)0x8b,(byte)0xac,(byte)0xde,
+ (byte)0x8b,(byte)0xac,(byte)0xde,
+ (byte)0x8b,(byte)0xac,(byte)0xde,
+ (byte)0x83,(byte)0xa4,(byte)0xde,
+ (byte)0x73,(byte)0x9c,(byte)0xd5,
+ (byte)0x6a,(byte)0x94,(byte)0xcd,
+ (byte)0x5a,(byte)0x83,(byte)0xc5,
+ (byte)0x5a,(byte)0x83,(byte)0xc5,
+ (byte)0x5a,(byte)0x8b,(byte)0xc5,
+ (byte)0x4a,(byte)0x7b,(byte)0xbd,
+ (byte)0x41,(byte)0x6a,(byte)0xb4,
+ (byte)0x39,(byte)0x73,(byte)0xb4,
+ (byte)0x39,(byte)0x6a,(byte)0xb4,
+ (byte)0x39,(byte)0x73,(byte)0xb4,
+ (byte)0x39,(byte)0x73,(byte)0xb4,
+ (byte)0x41,(byte)0x7b,(byte)0xbd,
+ (byte)0x52,(byte)0x8b,(byte)0xcd,
+ (byte)0x6a,(byte)0x94,(byte)0xd5,
+ (byte)0x8b,(byte)0x6a,(byte)0xa4,
+ (byte)0x7b,(byte)0x4a,(byte)0x73,
+ (byte)0x52,(byte)0x41,(byte)0x4a,
+ (byte)0x41,(byte)0x39,(byte)0x39,
+ (byte)0x29,(byte)0x29,(byte)0x20,
+ (byte)0x18,(byte)0x18,(byte)0x10,
+ (byte)0x39,(byte)0x29,(byte)0x20,
+ (byte)0x29,(byte)0x20,(byte)0x10,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x08,
+ (byte)0x29,(byte)0x10,(byte)0x10,
+ (byte)0x31,(byte)0x29,(byte)0x29,
+ (byte)0x4a,(byte)0x4a,(byte)0x41,
+ (byte)0x41,(byte)0x4a,(byte)0x4a,
+ (byte)0x4a,(byte)0x4a,(byte)0x5a,
+ (byte)0x41,(byte)0x41,(byte)0x62,
+ (byte)0xb4,(byte)0xbd,(byte)0xe6,
+ (byte)0xd5,(byte)0xde,(byte)0xff,
+ (byte)0xd5,(byte)0xde,(byte)0xff,
+ (byte)0xd5,(byte)0xde,(byte)0xff,
+ (byte)0xcd,(byte)0xd5,(byte)0xff,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xc5,(byte)0xd5,(byte)0xf6,
+ (byte)0xc5,(byte)0xcd,(byte)0xf6,
+ (byte)0xb4,(byte)0xcd,(byte)0xf6,
+ (byte)0xac,(byte)0xc5,(byte)0xee,
+ (byte)0x9c,(byte)0xbd,(byte)0xe6,
+ (byte)0x9c,(byte)0xb4,(byte)0xe6,
+ (byte)0x94,(byte)0xb4,(byte)0xe6,
+ (byte)0x94,(byte)0xb4,(byte)0xe6,
+ (byte)0x83,(byte)0xac,(byte)0xde,
+ (byte)0x6a,(byte)0x94,(byte)0xd5,
+ (byte)0x5a,(byte)0x8b,(byte)0xcd,
+ (byte)0x5a,(byte)0x8b,(byte)0xc5,
+ (byte)0x5a,(byte)0x83,(byte)0xc5,
+ (byte)0x52,(byte)0x7b,(byte)0xbd,
+ (byte)0x4a,(byte)0x7b,(byte)0xbd,
+ (byte)0x41,(byte)0x6a,(byte)0xb4,
+ (byte)0x31,(byte)0x62,(byte)0xa4,
+ (byte)0x31,(byte)0x62,(byte)0xa4,
+ (byte)0x39,(byte)0x6a,(byte)0xb4,
+ (byte)0x39,(byte)0x6a,(byte)0xac,
+ (byte)0x31,(byte)0x6a,(byte)0xb4,
+ (byte)0x41,(byte)0x7b,(byte)0xbd,
+ (byte)0x4a,(byte)0x8b,(byte)0xcd,
+ (byte)0x62,(byte)0x9c,(byte)0xd5,
+ (byte)0x7b,(byte)0x83,(byte)0xb4,
+ (byte)0x7b,(byte)0x5a,(byte)0x7b,
+ (byte)0x29,(byte)0x18,(byte)0x20,
+ (byte)0x20,(byte)0x10,(byte)0x10,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x41,(byte)0x41,(byte)0x39,
+ (byte)0x39,(byte)0x31,(byte)0x31,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x20,(byte)0x18,(byte)0x10,
+ (byte)0x39,(byte)0x31,(byte)0x29,
+ (byte)0x5a,(byte)0x52,(byte)0x5a,
+ (byte)0x4a,(byte)0x52,(byte)0x6a,
+ (byte)0x31,(byte)0x39,(byte)0x62,
+ (byte)0x29,(byte)0x29,(byte)0x41,
+ (byte)0x6a,(byte)0x73,(byte)0x8b,
+ (byte)0xcd,(byte)0xd5,(byte)0xff,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xff,
+ (byte)0xcd,(byte)0xd5,(byte)0xff,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xc5,(byte)0xcd,(byte)0xf6,
+ (byte)0xac,(byte)0xc5,(byte)0xee,
+ (byte)0xac,(byte)0xc5,(byte)0xee,
+ (byte)0xb4,(byte)0xc5,(byte)0xee,
+ (byte)0xa4,(byte)0xc5,(byte)0xee,
+ (byte)0x8b,(byte)0xb4,(byte)0xde,
+ (byte)0x7b,(byte)0xa4,(byte)0xde,
+ (byte)0x73,(byte)0x9c,(byte)0xd5,
+ (byte)0x62,(byte)0x94,(byte)0xcd,
+ (byte)0x5a,(byte)0x8b,(byte)0xc5,
+ (byte)0x52,(byte)0x83,(byte)0xc5,
+ (byte)0x41,(byte)0x7b,(byte)0xbd,
+ (byte)0x39,(byte)0x6a,(byte)0xb4,
+ (byte)0x39,(byte)0x6a,(byte)0xb4,
+ (byte)0x41,(byte)0x73,(byte)0xb4,
+ (byte)0x39,(byte)0x6a,(byte)0xac,
+ (byte)0x31,(byte)0x62,(byte)0xa4,
+ (byte)0x39,(byte)0x6a,(byte)0xac,
+ (byte)0x39,(byte)0x6a,(byte)0xac,
+ (byte)0x31,(byte)0x62,(byte)0xac,
+ (byte)0x31,(byte)0x6a,(byte)0xb4,
+ (byte)0x41,(byte)0x7b,(byte)0xbd,
+ (byte)0x52,(byte)0x8b,(byte)0xcd,
+ (byte)0x6a,(byte)0xa4,(byte)0xde,
+ (byte)0x9c,(byte)0xb4,(byte)0xe6,
+ (byte)0x6a,(byte)0x5a,(byte)0x73,
+ (byte)0x20,(byte)0x20,(byte)0x29,
+ (byte)0x20,(byte)0x18,(byte)0x20,
+ (byte)0x18,(byte)0x10,(byte)0x10,
+ (byte)0x18,(byte)0x10,(byte)0x10,
+ (byte)0x18,(byte)0x10,(byte)0x08,
+ (byte)0x20,(byte)0x18,(byte)0x10,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x20,(byte)0x10,(byte)0x18,
+ (byte)0x29,(byte)0x20,(byte)0x20,
+ (byte)0x39,(byte)0x31,(byte)0x29,
+ (byte)0x52,(byte)0x41,(byte)0x39,
+ (byte)0x39,(byte)0x39,(byte)0x5a,
+ (byte)0x39,(byte)0x41,(byte)0x73,
+ (byte)0x31,(byte)0x39,(byte)0x5a,
+ (byte)0x29,(byte)0x29,(byte)0x41,
+ (byte)0x94,(byte)0xa4,(byte)0xc5,
+ (byte)0xd5,(byte)0xde,(byte)0xff,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xff,
+ (byte)0xd5,(byte)0xde,(byte)0xff,
+ (byte)0xcd,(byte)0xd5,(byte)0xff,
+ (byte)0xcd,(byte)0xd5,(byte)0xff,
+ (byte)0xc5,(byte)0xcd,(byte)0xf6,
+ (byte)0xbd,(byte)0xcd,(byte)0xf6,
+ (byte)0xbd,(byte)0xcd,(byte)0xf6,
+ (byte)0xb4,(byte)0xcd,(byte)0xf6,
+ (byte)0x9c,(byte)0xbd,(byte)0xee,
+ (byte)0x8b,(byte)0xb4,(byte)0xe6,
+ (byte)0x7b,(byte)0xac,(byte)0xde,
+ (byte)0x73,(byte)0x9c,(byte)0xd5,
+ (byte)0x62,(byte)0x94,(byte)0xcd,
+ (byte)0x52,(byte)0x83,(byte)0xc5,
+ (byte)0x4a,(byte)0x83,(byte)0xc5,
+ (byte)0x41,(byte)0x7b,(byte)0xbd,
+ (byte)0x41,(byte)0x7b,(byte)0xbd,
+ (byte)0x41,(byte)0x7b,(byte)0xbd,
+ (byte)0x39,(byte)0x73,(byte)0xb4,
+ (byte)0x39,(byte)0x73,(byte)0xb4,
+ (byte)0x39,(byte)0x73,(byte)0xb4,
+ (byte)0x39,(byte)0x6a,(byte)0xb4,
+ (byte)0x31,(byte)0x6a,(byte)0xac,
+ (byte)0x31,(byte)0x62,(byte)0xac,
+ (byte)0x31,(byte)0x62,(byte)0xac,
+ (byte)0x31,(byte)0x6a,(byte)0xb4,
+ (byte)0x41,(byte)0x7b,(byte)0xbd,
+ (byte)0x5a,(byte)0x94,(byte)0xcd,
+ (byte)0x7b,(byte)0xac,(byte)0xde,
+ (byte)0x94,(byte)0xac,(byte)0xde,
+ (byte)0xa4,(byte)0xb4,(byte)0xde,
+ (byte)0x73,(byte)0x73,(byte)0x8b,
+ (byte)0x10,(byte)0x08,(byte)0x10,
+ (byte)0x18,(byte)0x10,(byte)0x10,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x08,
+ (byte)0x20,(byte)0x10,(byte)0x10,
+ (byte)0x39,(byte)0x39,(byte)0x29,
+ (byte)0x4a,(byte)0x4a,(byte)0x39,
+ (byte)0x18,(byte)0x18,(byte)0x20,
+ (byte)0x20,(byte)0x20,(byte)0x39,
+ (byte)0x41,(byte)0x4a,(byte)0x73,
+ (byte)0x31,(byte)0x31,(byte)0x5a,
+ (byte)0x31,(byte)0x39,(byte)0x52,
+ (byte)0xb4,(byte)0xbd,(byte)0xe6,
+ (byte)0xcd,(byte)0xd5,(byte)0xff,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xff,
+ (byte)0xcd,(byte)0xd5,(byte)0xff,
+ (byte)0xcd,(byte)0xd5,(byte)0xff,
+ (byte)0xcd,(byte)0xd5,(byte)0xff,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xc5,(byte)0xd5,(byte)0xf6,
+ (byte)0xbd,(byte)0xcd,(byte)0xf6,
+ (byte)0xac,(byte)0xb4,(byte)0xe6,
+ (byte)0x94,(byte)0x9c,(byte)0xcd,
+ (byte)0x83,(byte)0x9c,(byte)0xd5,
+ (byte)0x62,(byte)0x9c,(byte)0xd5,
+ (byte)0x5a,(byte)0x94,(byte)0xcd,
+ (byte)0x52,(byte)0x8b,(byte)0xcd,
+ (byte)0x52,(byte)0x8b,(byte)0xcd,
+ (byte)0x52,(byte)0x8b,(byte)0xc5,
+ (byte)0x4a,(byte)0x83,(byte)0xc5,
+ (byte)0x41,(byte)0x83,(byte)0xc5,
+ (byte)0x41,(byte)0x7b,(byte)0xbd,
+ (byte)0x41,(byte)0x7b,(byte)0xbd,
+ (byte)0x39,(byte)0x73,(byte)0xb4,
+ (byte)0x31,(byte)0x6a,(byte)0xb4,
+ (byte)0x31,(byte)0x6a,(byte)0xac,
+ (byte)0x31,(byte)0x62,(byte)0xac,
+ (byte)0x31,(byte)0x62,(byte)0xac,
+ (byte)0x29,(byte)0x62,(byte)0xac,
+ (byte)0x39,(byte)0x73,(byte)0xb4,
+ (byte)0x4a,(byte)0x83,(byte)0xc5,
+ (byte)0x6a,(byte)0x9c,(byte)0xd5,
+ (byte)0x83,(byte)0xb4,(byte)0xe6,
+ (byte)0x9c,(byte)0xc5,(byte)0xee,
+ (byte)0xbd,(byte)0xc5,(byte)0xf6,
+ (byte)0x73,(byte)0x62,(byte)0x83,
+ (byte)0x20,(byte)0x10,(byte)0x18,
+ (byte)0x18,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x08,(byte)0x08,
+ (byte)0x18,(byte)0x18,(byte)0x10,
+ (byte)0x4a,(byte)0x4a,(byte)0x41,
+ (byte)0x31,(byte)0x31,(byte)0x4a,
+ (byte)0x18,(byte)0x20,(byte)0x31,
+ (byte)0x18,(byte)0x18,(byte)0x29,
+ (byte)0x39,(byte)0x41,(byte)0x6a,
+ (byte)0x29,(byte)0x31,(byte)0x52,
+ (byte)0x4a,(byte)0x52,(byte)0x6a,
+ (byte)0xc5,(byte)0xcd,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xc5,(byte)0xd5,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xd5,(byte)0xd5,(byte)0xff,
+ (byte)0xd5,(byte)0xd5,(byte)0xff,
+ (byte)0xc5,(byte)0xcd,(byte)0xee,
+ (byte)0xcd,(byte)0xd5,(byte)0xff,
+ (byte)0xc5,(byte)0xac,(byte)0xde,
+ (byte)0x94,(byte)0x62,(byte)0x94,
+ (byte)0x6a,(byte)0x41,(byte)0x6a,
+ (byte)0x5a,(byte)0x39,(byte)0x5a,
+ (byte)0x83,(byte)0x94,(byte)0xcd,
+ (byte)0x7b,(byte)0xac,(byte)0xe6,
+ (byte)0x7b,(byte)0xac,(byte)0xde,
+ (byte)0x73,(byte)0xa4,(byte)0xde,
+ (byte)0x6a,(byte)0xa4,(byte)0xd5,
+ (byte)0x62,(byte)0x9c,(byte)0xd5,
+ (byte)0x52,(byte)0x94,(byte)0xcd,
+ (byte)0x52,(byte)0x8b,(byte)0xcd,
+ (byte)0x4a,(byte)0x8b,(byte)0xc5,
+ (byte)0x4a,(byte)0x83,(byte)0xc5,
+ (byte)0x41,(byte)0x83,(byte)0xbd,
+ (byte)0x41,(byte)0x7b,(byte)0xbd,
+ (byte)0x39,(byte)0x7b,(byte)0xbd,
+ (byte)0x39,(byte)0x73,(byte)0xb4,
+ (byte)0x31,(byte)0x6a,(byte)0xb4,
+ (byte)0x31,(byte)0x6a,(byte)0xac,
+ (byte)0x31,(byte)0x6a,(byte)0xb4,
+ (byte)0x41,(byte)0x83,(byte)0xbd,
+ (byte)0x5a,(byte)0x94,(byte)0xcd,
+ (byte)0x83,(byte)0xac,(byte)0xe6,
+ (byte)0x94,(byte)0xb4,(byte)0xe6,
+ (byte)0xb4,(byte)0xcd,(byte)0xf6,
+ (byte)0xbd,(byte)0xb4,(byte)0xe6,
+ (byte)0x52,(byte)0x41,(byte)0x4a,
+ (byte)0x29,(byte)0x10,(byte)0x10,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x08,(byte)0x08,
+ (byte)0x29,(byte)0x20,(byte)0x10,
+ (byte)0x4a,(byte)0x41,(byte)0x39,
+ (byte)0x31,(byte)0x31,(byte)0x4a,
+ (byte)0x20,(byte)0x29,(byte)0x4a,
+ (byte)0x20,(byte)0x29,(byte)0x41,
+ (byte)0x18,(byte)0x20,(byte)0x31,
+ (byte)0x29,(byte)0x31,(byte)0x52,
+ (byte)0x29,(byte)0x39,(byte)0x5a,
+ (byte)0x62,(byte)0x6a,(byte)0x83,
+ (byte)0xd5,(byte)0xde,(byte)0xff,
+ (byte)0xd5,(byte)0xde,(byte)0xff,
+ (byte)0xcd,(byte)0xd5,(byte)0xff,
+ (byte)0xd5,(byte)0xd5,(byte)0xff,
+ (byte)0xcd,(byte)0xd5,(byte)0xff,
+ (byte)0xcd,(byte)0xd5,(byte)0xff,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xa4,(byte)0xa4,(byte)0xc5,
+ (byte)0xac,(byte)0xb4,(byte)0xd5,
+ (byte)0xcd,(byte)0xde,(byte)0xff,
+ (byte)0xbd,(byte)0xcd,(byte)0xf6,
+ (byte)0x7b,(byte)0x8b,(byte)0xa4,
+ (byte)0x29,(byte)0x29,(byte)0x29,
+ (byte)0x4a,(byte)0x4a,(byte)0x62,
+ (byte)0x94,(byte)0x83,(byte)0xb4,
+ (byte)0x8b,(byte)0x62,(byte)0x94,
+ (byte)0x9c,(byte)0x9c,(byte)0xcd,
+ (byte)0x94,(byte)0xa4,(byte)0xde,
+ (byte)0x83,(byte)0xa4,(byte)0xde,
+ (byte)0x73,(byte)0xac,(byte)0xde,
+ (byte)0x62,(byte)0x9c,(byte)0xd5,
+ (byte)0x62,(byte)0x9c,(byte)0xd5,
+ (byte)0x5a,(byte)0x94,(byte)0xd5,
+ (byte)0x5a,(byte)0x94,(byte)0xcd,
+ (byte)0x52,(byte)0x94,(byte)0xcd,
+ (byte)0x52,(byte)0x8b,(byte)0xcd,
+ (byte)0x4a,(byte)0x8b,(byte)0xc5,
+ (byte)0x4a,(byte)0x83,(byte)0xc5,
+ (byte)0x41,(byte)0x7b,(byte)0xbd,
+ (byte)0x41,(byte)0x7b,(byte)0xbd,
+ (byte)0x39,(byte)0x73,(byte)0xbd,
+ (byte)0x41,(byte)0x7b,(byte)0xbd,
+ (byte)0x52,(byte)0x8b,(byte)0xcd,
+ (byte)0x83,(byte)0xac,(byte)0xde,
+ (byte)0x8b,(byte)0xb4,(byte)0xe6,
+ (byte)0xa4,(byte)0xc5,(byte)0xee,
+ (byte)0xc5,(byte)0xd5,(byte)0xff,
+ (byte)0xb4,(byte)0x94,(byte)0xbd,
+ (byte)0x5a,(byte)0x41,(byte)0x4a,
+ (byte)0x18,(byte)0x08,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x18,(byte)0x10,(byte)0x10,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x08,
+ (byte)0x18,(byte)0x10,(byte)0x08,
+ (byte)0x4a,(byte)0x4a,(byte)0x31,
+ (byte)0x62,(byte)0x4a,(byte)0x4a,
+ (byte)0x29,(byte)0x29,(byte)0x41,
+ (byte)0x29,(byte)0x29,(byte)0x41,
+ (byte)0x31,(byte)0x29,(byte)0x4a,
+ (byte)0x20,(byte)0x20,(byte)0x41,
+ (byte)0x18,(byte)0x20,(byte)0x31,
+ (byte)0x20,(byte)0x29,(byte)0x4a,
+ (byte)0x6a,(byte)0x6a,(byte)0x8b,
+ (byte)0xac,(byte)0xb4,(byte)0xd5,
+ (byte)0xa4,(byte)0xa4,(byte)0xc5,
+ (byte)0x9c,(byte)0xa4,(byte)0xcd,
+ (byte)0xa4,(byte)0xac,(byte)0xcd,
+ (byte)0xbd,(byte)0xc5,(byte)0xe6,
+ (byte)0xc5,(byte)0xcd,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xff,
+ (byte)0xa4,(byte)0xa4,(byte)0xc5,
+ (byte)0xc5,(byte)0xc5,(byte)0xee,
+ (byte)0xc5,(byte)0xb4,(byte)0xe6,
+ (byte)0xbd,(byte)0x9c,(byte)0xc5,
+ (byte)0x8b,(byte)0x7b,(byte)0x9c,
+ (byte)0x31,(byte)0x39,(byte)0x31,
+ (byte)0x5a,(byte)0x29,(byte)0x41,
+ (byte)0x8b,(byte)0x31,(byte)0x4a,
+ (byte)0x83,(byte)0x29,(byte)0x4a,
+ (byte)0x94,(byte)0x39,(byte)0x6a,
+ (byte)0x94,(byte)0x39,(byte)0x4a,
+ (byte)0x94,(byte)0x4a,(byte)0x6a,
+ (byte)0x8b,(byte)0x7b,(byte)0xac,
+ (byte)0x7b,(byte)0xac,(byte)0xde,
+ (byte)0x7b,(byte)0xa4,(byte)0xde,
+ (byte)0x7b,(byte)0xa4,(byte)0xde,
+ (byte)0x73,(byte)0x9c,(byte)0xde,
+ (byte)0x73,(byte)0x94,(byte)0xd5,
+ (byte)0x6a,(byte)0x9c,(byte)0xd5,
+ (byte)0x62,(byte)0x9c,(byte)0xd5,
+ (byte)0x62,(byte)0x94,(byte)0xd5,
+ (byte)0x5a,(byte)0x94,(byte)0xcd,
+ (byte)0x52,(byte)0x94,(byte)0xcd,
+ (byte)0x52,(byte)0x8b,(byte)0xcd,
+ (byte)0x4a,(byte)0x83,(byte)0xc5,
+ (byte)0x4a,(byte)0x8b,(byte)0xc5,
+ (byte)0x7b,(byte)0xac,(byte)0xde,
+ (byte)0x94,(byte)0xb4,(byte)0xe6,
+ (byte)0xa4,(byte)0xc5,(byte)0xee,
+ (byte)0xbd,(byte)0xcd,(byte)0xf6,
+ (byte)0xcd,(byte)0xcd,(byte)0xf6,
+ (byte)0xbd,(byte)0xac,(byte)0xcd,
+ (byte)0x52,(byte)0x39,(byte)0x41,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x20,(byte)0x18,(byte)0x18,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x20,(byte)0x08,(byte)0x10,
+ (byte)0x31,(byte)0x29,(byte)0x18,
+ (byte)0x6a,(byte)0x62,(byte)0x4a,
+ (byte)0x31,(byte)0x29,(byte)0x39,
+ (byte)0x08,(byte)0x08,(byte)0x10,
+ (byte)0x18,(byte)0x08,(byte)0x18,
+ (byte)0x29,(byte)0x29,(byte)0x4a,
+ (byte)0x20,(byte)0x29,(byte)0x41,
+ (byte)0x10,(byte)0x10,(byte)0x18,
+ (byte)0x18,(byte)0x18,(byte)0x29,
+ (byte)0x41,(byte)0x41,(byte)0x5a,
+ (byte)0x31,(byte)0x39,(byte)0x5a,
+ (byte)0x31,(byte)0x39,(byte)0x52,
+ (byte)0x29,(byte)0x31,(byte)0x4a,
+ (byte)0x31,(byte)0x39,(byte)0x52,
+ (byte)0x39,(byte)0x39,(byte)0x5a,
+ (byte)0x4a,(byte)0x52,(byte)0x6a,
+ (byte)0x73,(byte)0x73,(byte)0x8b,
+ (byte)0xac,(byte)0x83,(byte)0xac,
+ (byte)0xbd,(byte)0x8b,(byte)0xbd,
+ (byte)0x7b,(byte)0x41,(byte)0x5a,
+ (byte)0x4a,(byte)0x20,(byte)0x29,
+ (byte)0x5a,(byte)0x4a,(byte)0x62,
+ (byte)0x29,(byte)0x29,(byte)0x20,
+ (byte)0x41,(byte)0x31,(byte)0x29,
+ (byte)0x6a,(byte)0x4a,(byte)0x4a,
+ (byte)0x94,(byte)0x5a,(byte)0x7b,
+ (byte)0x73,(byte)0x29,(byte)0x41,
+ (byte)0x4a,(byte)0x20,(byte)0x29,
+ (byte)0x62,(byte)0x41,(byte)0x5a,
+ (byte)0x94,(byte)0x73,(byte)0xa4,
+ (byte)0x9c,(byte)0xbd,(byte)0xee,
+ (byte)0xa4,(byte)0xa4,(byte)0xcd,
+ (byte)0x9c,(byte)0x52,(byte)0x83,
+ (byte)0x9c,(byte)0x52,(byte)0x8b,
+ (byte)0x9c,(byte)0x4a,(byte)0x8b,
+ (byte)0x73,(byte)0x5a,(byte)0x8b,
+ (byte)0x7b,(byte)0xa4,(byte)0xde,
+ (byte)0x7b,(byte)0xac,(byte)0xde,
+ (byte)0x7b,(byte)0xac,(byte)0xde,
+ (byte)0x7b,(byte)0xac,(byte)0xde,
+ (byte)0x7b,(byte)0xa4,(byte)0xde,
+ (byte)0x73,(byte)0xa4,(byte)0xde,
+ (byte)0x62,(byte)0x94,(byte)0xcd,
+ (byte)0x73,(byte)0xa4,(byte)0xde,
+ (byte)0xa4,(byte)0xbd,(byte)0xee,
+ (byte)0xa4,(byte)0xc5,(byte)0xee,
+ (byte)0xbd,(byte)0xcd,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xde,(byte)0xde,(byte)0xff,
+ (byte)0x8b,(byte)0x7b,(byte)0x8b,
+ (byte)0x20,(byte)0x18,(byte)0x10,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x10,(byte)0x10,
+ (byte)0x20,(byte)0x18,(byte)0x10,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x20,(byte)0x10,(byte)0x10,
+ (byte)0x31,(byte)0x10,(byte)0x10,
+ (byte)0x41,(byte)0x39,(byte)0x20,
+ (byte)0x41,(byte)0x41,(byte)0x29,
+ (byte)0x08,(byte)0x08,(byte)0x10,
+ (byte)0x08,(byte)0x00,(byte)0x08,
+ (byte)0x29,(byte)0x20,(byte)0x39,
+ (byte)0x29,(byte)0x31,(byte)0x52,
+ (byte)0x20,(byte)0x20,(byte)0x39,
+ (byte)0x18,(byte)0x18,(byte)0x18,
+ (byte)0x10,(byte)0x08,(byte)0x10,
+ (byte)0x18,(byte)0x10,(byte)0x20,
+ (byte)0x20,(byte)0x29,(byte)0x41,
+ (byte)0x31,(byte)0x39,(byte)0x62,
+ (byte)0x31,(byte)0x41,(byte)0x62,
+ (byte)0x31,(byte)0x39,(byte)0x62,
+ (byte)0x29,(byte)0x31,(byte)0x52,
+ (byte)0x29,(byte)0x29,(byte)0x41,
+ (byte)0x4a,(byte)0x39,(byte)0x5a,
+ (byte)0x73,(byte)0x41,(byte)0x52,
+ (byte)0x52,(byte)0x41,(byte)0x39,
+ (byte)0x41,(byte)0x39,(byte)0x20,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x39,(byte)0x41,(byte)0x4a,
+ (byte)0x62,(byte)0x5a,(byte)0x73,
+ (byte)0x39,(byte)0x31,(byte)0x31,
+ (byte)0x39,(byte)0x31,(byte)0x29,
+ (byte)0x31,(byte)0x18,(byte)0x18,
+ (byte)0x4a,(byte)0x41,(byte)0x41,
+ (byte)0x52,(byte)0x4a,(byte)0x5a,
+ (byte)0x41,(byte)0x41,(byte)0x4a,
+ (byte)0x7b,(byte)0x6a,(byte)0x83,
+ (byte)0x94,(byte)0x6a,(byte)0x9c,
+ (byte)0x8b,(byte)0x52,(byte)0x73,
+ (byte)0x73,(byte)0x4a,(byte)0x4a,
+ (byte)0x5a,(byte)0x29,(byte)0x31,
+ (byte)0x8b,(byte)0x41,(byte)0x6a,
+ (byte)0x7b,(byte)0x52,(byte)0x73,
+ (byte)0x9c,(byte)0x83,(byte)0xb4,
+ (byte)0x94,(byte)0xac,(byte)0xd5,
+ (byte)0x8b,(byte)0xb4,(byte)0xe6,
+ (byte)0x8b,(byte)0xb4,(byte)0xe6,
+ (byte)0x8b,(byte)0xb4,(byte)0xe6,
+ (byte)0x94,(byte)0xb4,(byte)0xe6,
+ (byte)0x9c,(byte)0xbd,(byte)0xe6,
+ (byte)0x94,(byte)0xb4,(byte)0xe6,
+ (byte)0xac,(byte)0xbd,(byte)0xee,
+ (byte)0xac,(byte)0xc5,(byte)0xee,
+ (byte)0xc5,(byte)0xcd,(byte)0xf6,
+ (byte)0xc5,(byte)0xcd,(byte)0xf6,
+ (byte)0xde,(byte)0xde,(byte)0xff,
+ (byte)0xb4,(byte)0xac,(byte)0xc5,
+ (byte)0x4a,(byte)0x41,(byte)0x41,
+ (byte)0x18,(byte)0x10,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x39,(byte)0x20,(byte)0x29,
+ (byte)0x4a,(byte)0x29,(byte)0x29,
+ (byte)0x4a,(byte)0x41,(byte)0x31,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x29,(byte)0x10,(byte)0x29,
+ (byte)0x31,(byte)0x31,(byte)0x52,
+ (byte)0x20,(byte)0x29,(byte)0x41,
+ (byte)0x31,(byte)0x31,(byte)0x41,
+ (byte)0x41,(byte)0x39,(byte)0x41,
+ (byte)0x20,(byte)0x20,(byte)0x29,
+ (byte)0x08,(byte)0x10,(byte)0x18,
+ (byte)0x18,(byte)0x18,(byte)0x31,
+ (byte)0x18,(byte)0x20,(byte)0x31,
+ (byte)0x29,(byte)0x31,(byte)0x4a,
+ (byte)0x39,(byte)0x41,(byte)0x6a,
+ (byte)0x39,(byte)0x4a,(byte)0x6a,
+ (byte)0x39,(byte)0x41,(byte)0x6a,
+ (byte)0x52,(byte)0x52,(byte)0x5a,
+ (byte)0x39,(byte)0x41,(byte)0x20,
+ (byte)0x20,(byte)0x20,(byte)0x10,
+ (byte)0x20,(byte)0x20,(byte)0x10,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x18,(byte)0x18,(byte)0x18,
+ (byte)0x73,(byte)0x73,(byte)0x83,
+ (byte)0x4a,(byte)0x41,(byte)0x52,
+ (byte)0x20,(byte)0x20,(byte)0x29,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x62,(byte)0x41,(byte)0x52,
+ (byte)0x94,(byte)0x52,(byte)0x73,
+ (byte)0x62,(byte)0x39,(byte)0x4a,
+ (byte)0x94,(byte)0x62,(byte)0x8b,
+ (byte)0x83,(byte)0x41,(byte)0x6a,
+ (byte)0x39,(byte)0x10,(byte)0x10,
+ (byte)0x4a,(byte)0x39,(byte)0x31,
+ (byte)0x4a,(byte)0x41,(byte)0x39,
+ (byte)0x62,(byte)0x5a,(byte)0x62,
+ (byte)0x31,(byte)0x29,(byte)0x31,
+ (byte)0x4a,(byte)0x39,(byte)0x4a,
+ (byte)0x9c,(byte)0xac,(byte)0xd5,
+ (byte)0xa4,(byte)0xc5,(byte)0xee,
+ (byte)0x9c,(byte)0xbd,(byte)0xee,
+ (byte)0x9c,(byte)0xbd,(byte)0xee,
+ (byte)0x9c,(byte)0xbd,(byte)0xe6,
+ (byte)0x9c,(byte)0xbd,(byte)0xee,
+ (byte)0xac,(byte)0xc5,(byte)0xee,
+ (byte)0xb4,(byte)0xc5,(byte)0xee,
+ (byte)0xb4,(byte)0xc5,(byte)0xee,
+ (byte)0xc5,(byte)0xcd,(byte)0xf6,
+ (byte)0xc5,(byte)0xd5,(byte)0xf6,
+ (byte)0xde,(byte)0xd5,(byte)0xf6,
+ (byte)0xcd,(byte)0xc5,(byte)0xde,
+ (byte)0x8b,(byte)0x8b,(byte)0x9c,
+ (byte)0x41,(byte)0x41,(byte)0x39,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x10,
+ (byte)0x62,(byte)0x29,(byte)0x41,
+ (byte)0x73,(byte)0x4a,(byte)0x52,
+ (byte)0x20,(byte)0x18,(byte)0x10,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x10,(byte)0x18,
+ (byte)0x31,(byte)0x29,(byte)0x4a,
+ (byte)0x20,(byte)0x29,(byte)0x4a,
+ (byte)0x29,(byte)0x31,(byte)0x4a,
+ (byte)0x20,(byte)0x29,(byte)0x41,
+ (byte)0x20,(byte)0x29,(byte)0x31,
+ (byte)0x29,(byte)0x31,(byte)0x41,
+ (byte)0x18,(byte)0x20,(byte)0x39,
+ (byte)0x20,(byte)0x29,(byte)0x41,
+ (byte)0x29,(byte)0x29,(byte)0x4a,
+ (byte)0x20,(byte)0x29,(byte)0x41,
+ (byte)0x18,(byte)0x20,(byte)0x31,
+ (byte)0x29,(byte)0x29,(byte)0x41,
+ (byte)0x39,(byte)0x41,(byte)0x6a,
+ (byte)0x4a,(byte)0x52,(byte)0x5a,
+ (byte)0x29,(byte)0x31,(byte)0x20,
+ (byte)0x31,(byte)0x29,(byte)0x10,
+ (byte)0x29,(byte)0x20,(byte)0x10,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x29,(byte)0x18,(byte)0x20,
+ (byte)0x4a,(byte)0x4a,(byte)0x52,
+ (byte)0x18,(byte)0x10,(byte)0x10,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x41,(byte)0x20,(byte)0x31,
+ (byte)0x94,(byte)0x31,(byte)0x5a,
+ (byte)0x7b,(byte)0x08,(byte)0x20,
+ (byte)0x6a,(byte)0x29,(byte)0x39,
+ (byte)0x62,(byte)0x29,(byte)0x41,
+ (byte)0x31,(byte)0x18,(byte)0x20,
+ (byte)0x18,(byte)0x18,(byte)0x18,
+ (byte)0x20,(byte)0x20,(byte)0x18,
+ (byte)0x39,(byte)0x31,(byte)0x29,
+ (byte)0x41,(byte)0x31,(byte)0x31,
+ (byte)0x18,(byte)0x18,(byte)0x20,
+ (byte)0x41,(byte)0x41,(byte)0x4a,
+ (byte)0xbd,(byte)0xc5,(byte)0xee,
+ (byte)0xbd,(byte)0xcd,(byte)0xf6,
+ (byte)0xb4,(byte)0xcd,(byte)0xf6,
+ (byte)0xbd,(byte)0xcd,(byte)0xf6,
+ (byte)0xbd,(byte)0xcd,(byte)0xf6,
+ (byte)0xbd,(byte)0xcd,(byte)0xf6,
+ (byte)0xb4,(byte)0xcd,(byte)0xee,
+ (byte)0xbd,(byte)0xcd,(byte)0xee,
+ (byte)0xbd,(byte)0xcd,(byte)0xee,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xde,(byte)0xd5,(byte)0xf6,
+ (byte)0xd5,(byte)0xcd,(byte)0xee,
+ (byte)0x9c,(byte)0x9c,(byte)0xac,
+ (byte)0x5a,(byte)0x5a,(byte)0x5a,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x4a,(byte)0x20,(byte)0x39,
+ (byte)0x9c,(byte)0x4a,(byte)0x73,
+ (byte)0x4a,(byte)0x39,(byte)0x29,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x10,
+ (byte)0x29,(byte)0x20,(byte)0x39,
+ (byte)0x29,(byte)0x29,(byte)0x4a,
+ (byte)0x29,(byte)0x29,(byte)0x41,
+ (byte)0x29,(byte)0x31,(byte)0x4a,
+ (byte)0x08,(byte)0x18,(byte)0x29,
+ (byte)0x18,(byte)0x20,(byte)0x39,
+ (byte)0x29,(byte)0x31,(byte)0x41,
+ (byte)0x29,(byte)0x29,(byte)0x4a,
+ (byte)0x31,(byte)0x31,(byte)0x5a,
+ (byte)0x31,(byte)0x20,(byte)0x39,
+ (byte)0x31,(byte)0x29,(byte)0x4a,
+ (byte)0x20,(byte)0x29,(byte)0x41,
+ (byte)0x18,(byte)0x18,(byte)0x31,
+ (byte)0x18,(byte)0x18,(byte)0x29,
+ (byte)0x52,(byte)0x4a,(byte)0x62,
+ (byte)0x52,(byte)0x4a,(byte)0x39,
+ (byte)0x31,(byte)0x29,(byte)0x29,
+ (byte)0x29,(byte)0x18,(byte)0x18,
+ (byte)0x20,(byte)0x10,(byte)0x18,
+ (byte)0x10,(byte)0x10,(byte)0x18,
+ (byte)0x18,(byte)0x18,(byte)0x29,
+ (byte)0x10,(byte)0x10,(byte)0x18,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x20,(byte)0x18,(byte)0x10,
+ (byte)0x73,(byte)0x41,(byte)0x4a,
+ (byte)0x83,(byte)0x4a,(byte)0x4a,
+ (byte)0x39,(byte)0x29,(byte)0x18,
+ (byte)0x10,(byte)0x08,(byte)0x00,
+ (byte)0x20,(byte)0x18,(byte)0x18,
+ (byte)0x31,(byte)0x31,(byte)0x29,
+ (byte)0x62,(byte)0x62,(byte)0x5a,
+ (byte)0x41,(byte)0x41,(byte)0x39,
+ (byte)0x29,(byte)0x20,(byte)0x20,
+ (byte)0x10,(byte)0x10,(byte)0x10,
+ (byte)0x31,(byte)0x29,(byte)0x31,
+ (byte)0x8b,(byte)0x62,(byte)0x8b,
+ (byte)0xbd,(byte)0xac,(byte)0xde,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xc5,(byte)0xcd,(byte)0xf6,
+ (byte)0xbd,(byte)0xcd,(byte)0xf6,
+ (byte)0xc5,(byte)0xcd,(byte)0xf6,
+ (byte)0xc5,(byte)0xd5,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xcd,(byte)0xcd,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xde,(byte)0xd5,(byte)0xf6,
+ (byte)0xd5,(byte)0xd5,(byte)0xf6,
+ (byte)0xac,(byte)0xac,(byte)0xbd,
+ (byte)0x73,(byte)0x73,(byte)0x62,
+ (byte)0x20,(byte)0x20,(byte)0x18,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x6a,(byte)0x29,(byte)0x52,
+ (byte)0xac,(byte)0x62,(byte)0x8b,
+ (byte)0x29,(byte)0x20,(byte)0x10,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x10,(byte)0x20,
+ (byte)0x29,(byte)0x29,(byte)0x41,
+ (byte)0x31,(byte)0x39,(byte)0x52,
+ (byte)0x18,(byte)0x20,(byte)0x31,
+ (byte)0x08,(byte)0x18,(byte)0x31,
+ (byte)0x29,(byte)0x31,(byte)0x4a,
+ (byte)0x29,(byte)0x29,(byte)0x41,
+ (byte)0x29,(byte)0x31,(byte)0x52,
+ (byte)0x39,(byte)0x29,(byte)0x4a,
+ (byte)0x18,(byte)0x08,(byte)0x10,
+ (byte)0x10,(byte)0x10,(byte)0x18,
+ (byte)0x20,(byte)0x29,(byte)0x41,
+ (byte)0x29,(byte)0x29,(byte)0x4a,
+ (byte)0x29,(byte)0x29,(byte)0x39,
+ (byte)0x62,(byte)0x52,(byte)0x41,
+ (byte)0x52,(byte)0x4a,(byte)0x41,
+ (byte)0x31,(byte)0x29,(byte)0x39,
+ (byte)0x4a,(byte)0x39,(byte)0x41,
+ (byte)0x31,(byte)0x20,(byte)0x20,
+ (byte)0x31,(byte)0x31,(byte)0x39,
+ (byte)0x18,(byte)0x18,(byte)0x29,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x20,(byte)0x18,(byte)0x20,
+ (byte)0x73,(byte)0x6a,(byte)0x6a,
+ (byte)0x83,(byte)0x7b,(byte)0x73,
+ (byte)0x6a,(byte)0x5a,(byte)0x4a,
+ (byte)0x52,(byte)0x4a,(byte)0x39,
+ (byte)0x31,(byte)0x29,(byte)0x20,
+ (byte)0x18,(byte)0x18,(byte)0x10,
+ (byte)0x41,(byte)0x41,(byte)0x39,
+ (byte)0x18,(byte)0x18,(byte)0x10,
+ (byte)0x20,(byte)0x18,(byte)0x18,
+ (byte)0x18,(byte)0x08,(byte)0x10,
+ (byte)0x10,(byte)0x08,(byte)0x10,
+ (byte)0x52,(byte)0x41,(byte)0x41,
+ (byte)0xb4,(byte)0x8b,(byte)0xb4,
+ (byte)0xd5,(byte)0xd5,(byte)0xf6,
+ (byte)0xd5,(byte)0xd5,(byte)0xf6,
+ (byte)0xd5,(byte)0xd5,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xc5,(byte)0xcd,(byte)0xf6,
+ (byte)0xc5,(byte)0xd5,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xd5,(byte)0xd5,(byte)0xf6,
+ (byte)0xde,(byte)0xd5,(byte)0xee,
+ (byte)0xd5,(byte)0xd5,(byte)0xf6,
+ (byte)0xac,(byte)0xac,(byte)0xbd,
+ (byte)0xa4,(byte)0x9c,(byte)0x94,
+ (byte)0x39,(byte)0x29,(byte)0x20,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x08,
+ (byte)0x8b,(byte)0x39,(byte)0x6a,
+ (byte)0x9c,(byte)0x5a,(byte)0x8b,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x08,
+ (byte)0x20,(byte)0x10,(byte)0x18,
+ (byte)0x31,(byte)0x31,(byte)0x4a,
+ (byte)0x31,(byte)0x31,(byte)0x41,
+ (byte)0x18,(byte)0x20,(byte)0x31,
+ (byte)0x18,(byte)0x18,(byte)0x31,
+ (byte)0x31,(byte)0x31,(byte)0x4a,
+ (byte)0x20,(byte)0x29,(byte)0x41,
+ (byte)0x29,(byte)0x31,(byte)0x52,
+ (byte)0x31,(byte)0x20,(byte)0x39,
+ (byte)0x10,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x20,(byte)0x29,
+ (byte)0x39,(byte)0x31,(byte)0x5a,
+ (byte)0x41,(byte)0x39,(byte)0x4a,
+ (byte)0x5a,(byte)0x5a,(byte)0x41,
+ (byte)0x41,(byte)0x39,(byte)0x31,
+ (byte)0x18,(byte)0x18,(byte)0x10,
+ (byte)0x31,(byte)0x20,(byte)0x20,
+ (byte)0x41,(byte)0x29,(byte)0x20,
+ (byte)0x39,(byte)0x29,(byte)0x31,
+ (byte)0x29,(byte)0x20,(byte)0x29,
+ (byte)0x10,(byte)0x08,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x10,
+ (byte)0x18,(byte)0x10,(byte)0x10,
+ (byte)0x52,(byte)0x41,(byte)0x39,
+ (byte)0x73,(byte)0x6a,(byte)0x62,
+ (byte)0x7b,(byte)0x73,(byte)0x62,
+ (byte)0x4a,(byte)0x41,(byte)0x31,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x00,
+ (byte)0x18,(byte)0x10,(byte)0x08,
+ (byte)0x20,(byte)0x18,(byte)0x10,
+ (byte)0x20,(byte)0x18,(byte)0x18,
+ (byte)0x29,(byte)0x10,(byte)0x18,
+ (byte)0x31,(byte)0x08,(byte)0x10,
+ (byte)0x4a,(byte)0x39,(byte)0x39,
+ (byte)0xa4,(byte)0x94,(byte)0xa4,
+ (byte)0xc5,(byte)0xc5,(byte)0xe6,
+ (byte)0xde,(byte)0xd5,(byte)0xf6,
+ (byte)0xde,(byte)0xd5,(byte)0xf6,
+ (byte)0xde,(byte)0xd5,(byte)0xf6,
+ (byte)0xd5,(byte)0xd5,(byte)0xf6,
+ (byte)0xd5,(byte)0xd5,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xcd,(byte)0xd5,(byte)0xf6,
+ (byte)0xd5,(byte)0xd5,(byte)0xee,
+ (byte)0xde,(byte)0xd5,(byte)0xf6,
+ (byte)0xde,(byte)0xd5,(byte)0xf6,
+ (byte)0xac,(byte)0xac,(byte)0xbd,
+ (byte)0xb4,(byte)0xac,(byte)0xb4,
+ (byte)0x6a,(byte)0x52,(byte)0x4a,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x20,(byte)0x08,(byte)0x18,
+ (byte)0x9c,(byte)0x39,(byte)0x73,
+ (byte)0x6a,(byte)0x39,(byte)0x5a,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x10,
+ (byte)0x18,(byte)0x08,(byte)0x18,
+ (byte)0x31,(byte)0x29,(byte)0x39,
+ (byte)0x29,(byte)0x29,(byte)0x29,
+ (byte)0x18,(byte)0x18,(byte)0x29,
+ (byte)0x29,(byte)0x29,(byte)0x31,
+ (byte)0x31,(byte)0x39,(byte)0x4a,
+ (byte)0x29,(byte)0x29,(byte)0x41,
+ (byte)0x31,(byte)0x29,(byte)0x41,
+ (byte)0x20,(byte)0x20,(byte)0x31,
+ (byte)0x10,(byte)0x08,(byte)0x18,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x18,
+ (byte)0x39,(byte)0x29,(byte)0x31,
+ (byte)0x62,(byte)0x52,(byte)0x39,
+ (byte)0x62,(byte)0x62,(byte)0x4a,
+ (byte)0x20,(byte)0x20,(byte)0x20,
+ (byte)0x10,(byte)0x10,(byte)0x10,
+ (byte)0x31,(byte)0x18,(byte)0x10,
+ (byte)0x31,(byte)0x18,(byte)0x10,
+ (byte)0x31,(byte)0x29,(byte)0x29,
+ (byte)0x39,(byte)0x39,(byte)0x52,
+ (byte)0x20,(byte)0x18,(byte)0x18,
+ (byte)0x10,(byte)0x10,(byte)0x10,
+ (byte)0x29,(byte)0x20,(byte)0x20,
+ (byte)0x83,(byte)0x7b,(byte)0x73,
+ (byte)0x8b,(byte)0x83,(byte)0x7b,
+ (byte)0x41,(byte)0x39,(byte)0x31,
+ (byte)0x41,(byte)0x41,(byte)0x31,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x20,(byte)0x10,(byte)0x10,
+ (byte)0x29,(byte)0x20,(byte)0x18,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x31,(byte)0x10,(byte)0x10,
+ (byte)0x39,(byte)0x20,(byte)0x20,
+ (byte)0x62,(byte)0x52,(byte)0x62,
+ (byte)0x94,(byte)0x94,(byte)0xac,
+ (byte)0xb4,(byte)0xb4,(byte)0xcd,
+ (byte)0xd5,(byte)0xcd,(byte)0xee,
+ (byte)0xde,(byte)0xde,(byte)0xf6,
+ (byte)0xde,(byte)0xd5,(byte)0xf6,
+ (byte)0xde,(byte)0xd5,(byte)0xee,
+ (byte)0xde,(byte)0xd5,(byte)0xee,
+ (byte)0xd5,(byte)0xcd,(byte)0xee,
+ (byte)0xde,(byte)0xd5,(byte)0xee,
+ (byte)0xde,(byte)0xde,(byte)0xf6,
+ (byte)0xd5,(byte)0xd5,(byte)0xee,
+ (byte)0xb4,(byte)0xac,(byte)0xbd,
+ (byte)0xbd,(byte)0xb4,(byte)0xc5,
+ (byte)0xac,(byte)0x9c,(byte)0xac,
+ (byte)0x29,(byte)0x20,(byte)0x18,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x31,(byte)0x08,(byte)0x18,
+ (byte)0x94,(byte)0x29,(byte)0x5a,
+ (byte)0x4a,(byte)0x29,(byte)0x41,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x10,(byte)0x29,
+ (byte)0x08,(byte)0x10,(byte)0x18,
+ (byte)0x18,(byte)0x08,(byte)0x18,
+ (byte)0x39,(byte)0x20,(byte)0x29,
+ (byte)0x31,(byte)0x31,(byte)0x29,
+ (byte)0x20,(byte)0x18,(byte)0x18,
+ (byte)0x31,(byte)0x29,(byte)0x29,
+ (byte)0x31,(byte)0x29,(byte)0x4a,
+ (byte)0x31,(byte)0x18,(byte)0x31,
+ (byte)0x18,(byte)0x08,(byte)0x18,
+ (byte)0x00,(byte)0x00,(byte)0x08,
+ (byte)0x10,(byte)0x10,(byte)0x18,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x41,(byte)0x41,(byte)0x31,
+ (byte)0x62,(byte)0x5a,(byte)0x39,
+ (byte)0x52,(byte)0x52,(byte)0x39,
+ (byte)0x29,(byte)0x29,(byte)0x18,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x39,(byte)0x20,(byte)0x20,
+ (byte)0x52,(byte)0x39,(byte)0x39,
+ (byte)0x18,(byte)0x10,(byte)0x10,
+ (byte)0x10,(byte)0x10,(byte)0x18,
+ (byte)0x29,(byte)0x18,(byte)0x20,
+ (byte)0x31,(byte)0x18,(byte)0x18,
+ (byte)0x4a,(byte)0x29,(byte)0x20,
+ (byte)0x7b,(byte)0x62,(byte)0x5a,
+ (byte)0x73,(byte)0x6a,(byte)0x52,
+ (byte)0x4a,(byte)0x4a,(byte)0x39,
+ (byte)0x4a,(byte)0x41,(byte)0x39,
+ (byte)0x29,(byte)0x20,(byte)0x18,
+ (byte)0x39,(byte)0x29,(byte)0x20,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x20,(byte)0x20,(byte)0x18,
+ (byte)0x41,(byte)0x41,(byte)0x31,
+ (byte)0x62,(byte)0x6a,(byte)0x6a,
+ (byte)0x94,(byte)0x94,(byte)0x9c,
+ (byte)0xa4,(byte)0xa4,(byte)0xa4,
+ (byte)0xac,(byte)0xa4,(byte)0xb4,
+ (byte)0xcd,(byte)0xc5,(byte)0xde,
+ (byte)0xde,(byte)0xd5,(byte)0xf6,
+ (byte)0xde,(byte)0xde,(byte)0xf6,
+ (byte)0xde,(byte)0xde,(byte)0xf6,
+ (byte)0xde,(byte)0xd5,(byte)0xf6,
+ (byte)0xde,(byte)0xd5,(byte)0xf6,
+ (byte)0xde,(byte)0xde,(byte)0xf6,
+ (byte)0xd5,(byte)0xcd,(byte)0xee,
+ (byte)0xb4,(byte)0xac,(byte)0xbd,
+ (byte)0xb4,(byte)0xa4,(byte)0xb4,
+ (byte)0xcd,(byte)0xbd,(byte)0xde,
+ (byte)0x52,(byte)0x31,(byte)0x39,
+ (byte)0x20,(byte)0x20,(byte)0x20,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x39,(byte)0x08,(byte)0x18,
+ (byte)0x8b,(byte)0x20,(byte)0x41,
+ (byte)0x39,(byte)0x18,(byte)0x29,
+ (byte)0x00,(byte)0x00,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x18,
+ (byte)0x00,(byte)0x08,(byte)0x08,
+ (byte)0x20,(byte)0x08,(byte)0x10,
+ (byte)0x41,(byte)0x20,(byte)0x29,
+ (byte)0x52,(byte)0x4a,(byte)0x4a,
+ (byte)0x41,(byte)0x39,(byte)0x39,
+ (byte)0x41,(byte)0x31,(byte)0x31,
+ (byte)0x31,(byte)0x18,(byte)0x29,
+ (byte)0x18,(byte)0x08,(byte)0x18,
+ (byte)0x08,(byte)0x08,(byte)0x10,
+ (byte)0x08,(byte)0x08,(byte)0x10,
+ (byte)0x00,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x31,(byte)0x29,(byte)0x18,
+ (byte)0x5a,(byte)0x52,(byte)0x31,
+ (byte)0x4a,(byte)0x39,(byte)0x31,
+ (byte)0x20,(byte)0x10,(byte)0x08,
+ (byte)0x20,(byte)0x18,(byte)0x08,
+ (byte)0x29,(byte)0x18,(byte)0x10,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x08,(byte)0x08,
+ (byte)0x29,(byte)0x10,(byte)0x08,
+ (byte)0x39,(byte)0x18,(byte)0x10,
+ (byte)0x31,(byte)0x20,(byte)0x20,
+ (byte)0x41,(byte)0x41,(byte)0x31,
+ (byte)0x10,(byte)0x10,(byte)0x10,
+ (byte)0x18,(byte)0x18,(byte)0x10,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x10,(byte)0x10,
+ (byte)0x31,(byte)0x31,(byte)0x29,
+ (byte)0x31,(byte)0x29,(byte)0x20,
+ (byte)0x9c,(byte)0x8b,(byte)0x7b,
+ (byte)0xb4,(byte)0xac,(byte)0xac,
+ (byte)0xa4,(byte)0x9c,(byte)0xac,
+ (byte)0xac,(byte)0xac,(byte)0xbd,
+ (byte)0xc5,(byte)0xc5,(byte)0xd5,
+ (byte)0xd5,(byte)0xd5,(byte)0xee,
+ (byte)0xde,(byte)0xde,(byte)0xf6,
+ (byte)0xde,(byte)0xd5,(byte)0xf6,
+ (byte)0xde,(byte)0xd5,(byte)0xf6,
+ (byte)0xde,(byte)0xd5,(byte)0xee,
+ (byte)0xd5,(byte)0xcd,(byte)0xde,
+ (byte)0xbd,(byte)0xac,(byte)0xc5,
+ (byte)0xa4,(byte)0x7b,(byte)0x8b,
+ (byte)0xcd,(byte)0xbd,(byte)0xd5,
+ (byte)0x5a,(byte)0x29,(byte)0x31,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x4a,(byte)0x08,(byte)0x10,
+ (byte)0x8b,(byte)0x20,(byte)0x41,
+ (byte)0x41,(byte)0x20,(byte)0x31,
+ (byte)0x00,(byte)0x08,(byte)0x10,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x08,(byte)0x08,
+ (byte)0x18,(byte)0x08,(byte)0x10,
+ (byte)0x29,(byte)0x10,(byte)0x20,
+ (byte)0x29,(byte)0x20,(byte)0x20,
+ (byte)0x39,(byte)0x31,(byte)0x31,
+ (byte)0x29,(byte)0x10,(byte)0x18,
+ (byte)0x29,(byte)0x08,(byte)0x10,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x10,
+ (byte)0x18,(byte)0x18,(byte)0x31,
+ (byte)0x08,(byte)0x08,(byte)0x10,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x08,
+ (byte)0x29,(byte)0x18,(byte)0x10,
+ (byte)0x73,(byte)0x4a,(byte)0x41,
+ (byte)0x94,(byte)0x52,(byte)0x73,
+ (byte)0x6a,(byte)0x39,(byte)0x5a,
+ (byte)0x31,(byte)0x18,(byte)0x20,
+ (byte)0x18,(byte)0x08,(byte)0x00,
+ (byte)0x18,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x10,(byte)0x18,
+ (byte)0x10,(byte)0x08,(byte)0x10,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x20,(byte)0x08,(byte)0x00,
+ (byte)0x20,(byte)0x08,(byte)0x08,
+ (byte)0x20,(byte)0x18,(byte)0x29,
+ (byte)0x52,(byte)0x41,(byte)0x39,
+ (byte)0x39,(byte)0x29,(byte)0x18,
+ (byte)0x20,(byte)0x18,(byte)0x10,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x10,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x18,(byte)0x10,
+ (byte)0x20,(byte)0x29,(byte)0x18,
+ (byte)0x31,(byte)0x20,(byte)0x18,
+ (byte)0xb4,(byte)0x9c,(byte)0xac,
+ (byte)0xd5,(byte)0xd5,(byte)0xee,
+ (byte)0xb4,(byte)0xa4,(byte)0xb4,
+ (byte)0xa4,(byte)0x8b,(byte)0x9c,
+ (byte)0xbd,(byte)0xb4,(byte)0xc5,
+ (byte)0xcd,(byte)0xc5,(byte)0xde,
+ (byte)0xd5,(byte)0xcd,(byte)0xcd,
+ (byte)0xde,(byte)0xd5,(byte)0xee,
+ (byte)0xde,(byte)0xd5,(byte)0xf6,
+ (byte)0xd5,(byte)0xcd,(byte)0xd5,
+ (byte)0xcd,(byte)0xc5,(byte)0xc5,
+ (byte)0xc5,(byte)0xac,(byte)0xbd,
+ (byte)0xa4,(byte)0x7b,(byte)0x83,
+ (byte)0xbd,(byte)0xac,(byte)0xbd,
+ (byte)0x52,(byte)0x31,(byte)0x31,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x4a,(byte)0x00,(byte)0x08,
+ (byte)0x94,(byte)0x31,(byte)0x4a,
+ (byte)0x52,(byte)0x39,(byte)0x52,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x18,(byte)0x08,(byte)0x10,
+ (byte)0x08,(byte)0x08,(byte)0x10,
+ (byte)0x18,(byte)0x10,(byte)0x18,
+ (byte)0x29,(byte)0x00,(byte)0x18,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x18,
+ (byte)0x08,(byte)0x08,(byte)0x10,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x00,(byte)0x08,
+ (byte)0x9c,(byte)0x5a,(byte)0x8b,
+ (byte)0xb4,(byte)0x62,(byte)0xa4,
+ (byte)0xa4,(byte)0x5a,(byte)0x8b,
+ (byte)0x8b,(byte)0x39,(byte)0x6a,
+ (byte)0x6a,(byte)0x29,(byte)0x41,
+ (byte)0x6a,(byte)0x31,(byte)0x41,
+ (byte)0x41,(byte)0x20,(byte)0x31,
+ (byte)0x10,(byte)0x08,(byte)0x10,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x08,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x08,
+ (byte)0x52,(byte)0x39,(byte)0x29,
+ (byte)0x52,(byte)0x41,(byte)0x10,
+ (byte)0x41,(byte)0x31,(byte)0x29,
+ (byte)0x18,(byte)0x10,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x39,(byte)0x39,(byte)0x31,
+ (byte)0x18,(byte)0x18,(byte)0x18,
+ (byte)0x41,(byte)0x18,(byte)0x18,
+ (byte)0xac,(byte)0x7b,(byte)0x8b,
+ (byte)0xde,(byte)0xde,(byte)0xff,
+ (byte)0xac,(byte)0x9c,(byte)0xa4,
+ (byte)0xa4,(byte)0x62,(byte)0x73,
+ (byte)0xbd,(byte)0xa4,(byte)0xbd,
+ (byte)0xc5,(byte)0xbd,(byte)0xbd,
+ (byte)0xcd,(byte)0xbd,(byte)0x9c,
+ (byte)0xd5,(byte)0xc5,(byte)0xac,
+ (byte)0xcd,(byte)0xc5,(byte)0xb4,
+ (byte)0xd5,(byte)0xc5,(byte)0xa4,
+ (byte)0xd5,(byte)0xc5,(byte)0xa4,
+ (byte)0xbd,(byte)0xa4,(byte)0xa4,
+ (byte)0x9c,(byte)0x8b,(byte)0x8b,
+ (byte)0x9c,(byte)0x8b,(byte)0x94,
+ (byte)0x5a,(byte)0x39,(byte)0x41,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x10,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x4a,(byte)0x00,(byte)0x08,
+ (byte)0x9c,(byte)0x4a,(byte)0x5a,
+ (byte)0x5a,(byte)0x39,(byte)0x5a,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x08,
+ (byte)0x18,(byte)0x18,(byte)0x29,
+ (byte)0x18,(byte)0x10,(byte)0x18,
+ (byte)0x10,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x08,
+ (byte)0x20,(byte)0x10,(byte)0x18,
+ (byte)0x8b,(byte)0x62,(byte)0x83,
+ (byte)0x9c,(byte)0x41,(byte)0x6a,
+ (byte)0x83,(byte)0x18,(byte)0x41,
+ (byte)0x73,(byte)0x08,(byte)0x18,
+ (byte)0x7b,(byte)0x18,(byte)0x39,
+ (byte)0x8b,(byte)0x29,(byte)0x52,
+ (byte)0x8b,(byte)0x39,(byte)0x62,
+ (byte)0x29,(byte)0x10,(byte)0x18,
+ (byte)0x08,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x39,(byte)0x20,(byte)0x08,
+ (byte)0x4a,(byte)0x39,(byte)0x10,
+ (byte)0x29,(byte)0x20,(byte)0x18,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x18,(byte)0x10,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x18,(byte)0x18,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x18,(byte)0x10,(byte)0x08,
+ (byte)0x62,(byte)0x29,(byte)0x31,
+ (byte)0xc5,(byte)0xa4,(byte)0xcd,
+ (byte)0x94,(byte)0x83,(byte)0x8b,
+ (byte)0x83,(byte)0x73,(byte)0x6a,
+ (byte)0xbd,(byte)0xa4,(byte)0xb4,
+ (byte)0xc5,(byte)0xb4,(byte)0xac,
+ (byte)0xcd,(byte)0xb4,(byte)0x83,
+ (byte)0xcd,(byte)0xbd,(byte)0x8b,
+ (byte)0xc5,(byte)0xb4,(byte)0x8b,
+ (byte)0xcd,(byte)0xbd,(byte)0x9c,
+ (byte)0xc5,(byte)0xb4,(byte)0x7b,
+ (byte)0xcd,(byte)0xc5,(byte)0xc5,
+ (byte)0x8b,(byte)0x7b,(byte)0x73,
+ (byte)0x8b,(byte)0x62,(byte)0x73,
+ (byte)0x5a,(byte)0x31,(byte)0x41,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x20,(byte)0x18,(byte)0x10,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x4a,(byte)0x08,(byte)0x10,
+ (byte)0xa4,(byte)0x52,(byte)0x6a,
+ (byte)0x4a,(byte)0x29,(byte)0x41,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x08,
+ (byte)0x10,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x18,(byte)0x31,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x52,(byte)0x29,(byte)0x4a,
+ (byte)0xcd,(byte)0x94,(byte)0xd5,
+ (byte)0x9c,(byte)0x41,(byte)0x6a,
+ (byte)0x7b,(byte)0x10,(byte)0x08,
+ (byte)0x6a,(byte)0x10,(byte)0x00,
+ (byte)0x6a,(byte)0x08,(byte)0x18,
+ (byte)0x73,(byte)0x10,(byte)0x31,
+ (byte)0x4a,(byte)0x10,(byte)0x20,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x08,(byte)0x08,
+ (byte)0x39,(byte)0x29,(byte)0x10,
+ (byte)0x18,(byte)0x10,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x10,(byte)0x08,
+ (byte)0x39,(byte)0x29,(byte)0x20,
+ (byte)0x18,(byte)0x10,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x10,(byte)0x10,(byte)0x10,
+ (byte)0x4a,(byte)0x18,(byte)0x20,
+ (byte)0x9c,(byte)0x5a,(byte)0x7b,
+ (byte)0x83,(byte)0x52,(byte)0x62,
+ (byte)0x6a,(byte)0x52,(byte)0x41,
+ (byte)0xbd,(byte)0xb4,(byte)0xa4,
+ (byte)0xde,(byte)0xd5,(byte)0xd5,
+ (byte)0xc5,(byte)0xac,(byte)0x8b,
+ (byte)0xc5,(byte)0xac,(byte)0x8b,
+ (byte)0xd5,(byte)0xc5,(byte)0xbd,
+ (byte)0xc5,(byte)0xac,(byte)0x8b,
+ (byte)0xc5,(byte)0xac,(byte)0x94,
+ (byte)0xde,(byte)0xd5,(byte)0xcd,
+ (byte)0x94,(byte)0x83,(byte)0x73,
+ (byte)0x83,(byte)0x4a,(byte)0x52,
+ (byte)0x52,(byte)0x31,(byte)0x31,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x52,(byte)0x10,(byte)0x18,
+ (byte)0xa4,(byte)0x4a,(byte)0x5a,
+ (byte)0x52,(byte)0x31,(byte)0x4a,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x10,
+ (byte)0x4a,(byte)0x20,(byte)0x39,
+ (byte)0x18,(byte)0x10,(byte)0x18,
+ (byte)0x10,(byte)0x18,(byte)0x29,
+ (byte)0x08,(byte)0x08,(byte)0x10,
+ (byte)0x4a,(byte)0x18,(byte)0x31,
+ (byte)0x20,(byte)0x18,(byte)0x20,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x08,
+ (byte)0x20,(byte)0x08,(byte)0x10,
+ (byte)0x31,(byte)0x18,(byte)0x20,
+ (byte)0x20,(byte)0x00,(byte)0x08,
+ (byte)0x73,(byte)0x4a,(byte)0x6a,
+ (byte)0xac,(byte)0x52,(byte)0x94,
+ (byte)0x8b,(byte)0x20,(byte)0x4a,
+ (byte)0x83,(byte)0x20,(byte)0x08,
+ (byte)0x62,(byte)0x18,(byte)0x00,
+ (byte)0x6a,(byte)0x10,(byte)0x31,
+ (byte)0x73,(byte)0x18,(byte)0x41,
+ (byte)0x5a,(byte)0x20,(byte)0x31,
+ (byte)0x08,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x08,
+ (byte)0x39,(byte)0x10,(byte)0x18,
+ (byte)0x31,(byte)0x10,(byte)0x08,
+ (byte)0x31,(byte)0x10,(byte)0x18,
+ (byte)0x83,(byte)0x41,(byte)0x73,
+ (byte)0x8b,(byte)0x52,(byte)0x73,
+ (byte)0x73,(byte)0x41,(byte)0x41,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x18,(byte)0x10,(byte)0x10,
+ (byte)0x20,(byte)0x10,(byte)0x10,
+ (byte)0x20,(byte)0x10,(byte)0x10,
+ (byte)0x8b,(byte)0x6a,(byte)0x52,
+ (byte)0xbd,(byte)0xac,(byte)0x83,
+ (byte)0xc5,(byte)0xac,(byte)0x73,
+ (byte)0xc5,(byte)0xac,(byte)0x8b,
+ (byte)0xcd,(byte)0xc5,(byte)0xc5,
+ (byte)0xc5,(byte)0xbd,(byte)0x9c,
+ (byte)0xcd,(byte)0xc5,(byte)0xbd,
+ (byte)0xc5,(byte)0xb4,(byte)0xa4,
+ (byte)0xcd,(byte)0xb4,(byte)0x83,
+ (byte)0xac,(byte)0x94,(byte)0x73,
+ (byte)0x39,(byte)0x20,(byte)0x20,
+ (byte)0x39,(byte)0x20,(byte)0x20,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x10,(byte)0x08,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x52,(byte)0x10,(byte)0x18,
+ (byte)0x94,(byte)0x31,(byte)0x41,
+ (byte)0x73,(byte)0x39,(byte)0x62,
+ (byte)0x31,(byte)0x10,(byte)0x18,
+ (byte)0x4a,(byte)0x20,(byte)0x31,
+ (byte)0x10,(byte)0x10,(byte)0x10,
+ (byte)0x4a,(byte)0x39,(byte)0x4a,
+ (byte)0x6a,(byte)0x62,(byte)0x8b,
+ (byte)0x29,(byte)0x29,(byte)0x41,
+ (byte)0x62,(byte)0x62,(byte)0x83,
+ (byte)0x73,(byte)0x62,(byte)0x8b,
+ (byte)0x31,(byte)0x31,(byte)0x39,
+ (byte)0x31,(byte)0x18,(byte)0x20,
+ (byte)0x83,(byte)0x39,(byte)0x6a,
+ (byte)0x83,(byte)0x31,(byte)0x62,
+ (byte)0x9c,(byte)0x5a,(byte)0x8b,
+ (byte)0x94,(byte)0x4a,(byte)0x7b,
+ (byte)0x83,(byte)0x4a,(byte)0x6a,
+ (byte)0xa4,(byte)0x52,(byte)0x83,
+ (byte)0x8b,(byte)0x20,(byte)0x52,
+ (byte)0x7b,(byte)0x10,(byte)0x31,
+ (byte)0x6a,(byte)0x08,(byte)0x20,
+ (byte)0x73,(byte)0x10,(byte)0x31,
+ (byte)0x5a,(byte)0x20,(byte)0x31,
+ (byte)0x39,(byte)0x31,(byte)0x18,
+ (byte)0x20,(byte)0x18,(byte)0x10,
+ (byte)0x08,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x08,
+ (byte)0x10,(byte)0x10,(byte)0x20,
+ (byte)0x5a,(byte)0x18,(byte)0x29,
+ (byte)0x94,(byte)0x29,(byte)0x4a,
+ (byte)0x7b,(byte)0x31,(byte)0x4a,
+ (byte)0x73,(byte)0x29,(byte)0x41,
+ (byte)0xac,(byte)0x5a,(byte)0x7b,
+ (byte)0xc5,(byte)0x94,(byte)0x8b,
+ (byte)0xac,(byte)0x83,(byte)0x9c,
+ (byte)0x39,(byte)0x20,(byte)0x20,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x5a,(byte)0x41,(byte)0x31,
+ (byte)0xa4,(byte)0x94,(byte)0x5a,
+ (byte)0xac,(byte)0x8b,(byte)0x31,
+ (byte)0xa4,(byte)0x8b,(byte)0x52,
+ (byte)0xc5,(byte)0xbd,(byte)0xb4,
+ (byte)0x8b,(byte)0x7b,(byte)0x41,
+ (byte)0xc5,(byte)0xb4,(byte)0xac,
+ (byte)0xb4,(byte)0x9c,(byte)0x73,
+ (byte)0xbd,(byte)0xa4,(byte)0x5a,
+ (byte)0xbd,(byte)0x9c,(byte)0x83,
+ (byte)0x20,(byte)0x10,(byte)0x10,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x20,(byte)0x10,(byte)0x10,
+ (byte)0x18,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x52,(byte)0x10,(byte)0x20,
+ (byte)0x8b,(byte)0x29,(byte)0x39,
+ (byte)0x8b,(byte)0x39,(byte)0x6a,
+ (byte)0x83,(byte)0x41,(byte)0x62,
+ (byte)0x94,(byte)0x41,(byte)0x73,
+ (byte)0x4a,(byte)0x31,(byte)0x41,
+ (byte)0x6a,(byte)0x6a,(byte)0x83,
+ (byte)0x9c,(byte)0x9c,(byte)0xcd,
+ (byte)0x8b,(byte)0x9c,(byte)0xc5,
+ (byte)0x9c,(byte)0xa4,(byte)0xcd,
+ (byte)0xa4,(byte)0xac,(byte)0xd5,
+ (byte)0x8b,(byte)0x8b,(byte)0xa4,
+ (byte)0x8b,(byte)0x41,(byte)0x73,
+ (byte)0xac,(byte)0x52,(byte)0x94,
+ (byte)0xb4,(byte)0x5a,(byte)0xa4,
+ (byte)0xa4,(byte)0x41,(byte)0x83,
+ (byte)0xb4,(byte)0x6a,(byte)0xa4,
+ (byte)0xac,(byte)0x7b,(byte)0xa4,
+ (byte)0xb4,(byte)0x73,(byte)0xa4,
+ (byte)0xa4,(byte)0x4a,(byte)0x8b,
+ (byte)0x94,(byte)0x31,(byte)0x73,
+ (byte)0x94,(byte)0x39,(byte)0x73,
+ (byte)0x73,(byte)0x18,(byte)0x39,
+ (byte)0x4a,(byte)0x08,(byte)0x18,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x08,
+ (byte)0x18,(byte)0x10,(byte)0x18,
+ (byte)0x83,(byte)0x31,(byte)0x39,
+ (byte)0xb4,(byte)0x73,(byte)0x39,
+ (byte)0xbd,(byte)0x6a,(byte)0x73,
+ (byte)0x94,(byte)0x62,(byte)0x7b,
+ (byte)0xa4,(byte)0x62,(byte)0x5a,
+ (byte)0xbd,(byte)0x7b,(byte)0x5a,
+ (byte)0xc5,(byte)0x8b,(byte)0xb4,
+ (byte)0x62,(byte)0x41,(byte)0x4a,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x18,(byte)0x10,
+ (byte)0x18,(byte)0x18,(byte)0x10,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x10,(byte)0x10,(byte)0x00,
+ (byte)0x4a,(byte)0x41,(byte)0x10,
+ (byte)0x73,(byte)0x62,(byte)0x20,
+ (byte)0x7b,(byte)0x6a,(byte)0x41,
+ (byte)0x9c,(byte)0x94,(byte)0x83,
+ (byte)0xa4,(byte)0x94,(byte)0x73,
+ (byte)0xb4,(byte)0xa4,(byte)0x9c,
+ (byte)0x83,(byte)0x6a,(byte)0x29,
+ (byte)0xac,(byte)0x8b,(byte)0x41,
+ (byte)0x4a,(byte)0x41,(byte)0x20,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x29,(byte)0x10,(byte)0x18,
+ (byte)0x20,(byte)0x10,(byte)0x10,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x4a,(byte)0x08,(byte)0x20,
+ (byte)0x7b,(byte)0x18,(byte)0x29,
+ (byte)0x83,(byte)0x31,(byte)0x5a,
+ (byte)0xa4,(byte)0x5a,(byte)0x94,
+ (byte)0xac,(byte)0x52,(byte)0x94,
+ (byte)0x9c,(byte)0x52,(byte)0x8b,
+ (byte)0x9c,(byte)0x9c,(byte)0xbd,
+ (byte)0xa4,(byte)0xac,(byte)0xd5,
+ (byte)0x9c,(byte)0xa4,(byte)0xcd,
+ (byte)0xa4,(byte)0xac,(byte)0xd5,
+ (byte)0xac,(byte)0xb4,(byte)0xd5,
+ (byte)0xb4,(byte)0x9c,(byte)0xcd,
+ (byte)0xa4,(byte)0x41,(byte)0x83,
+ (byte)0xa4,(byte)0x39,(byte)0x6a,
+ (byte)0xb4,(byte)0x62,(byte)0x39,
+ (byte)0xa4,(byte)0x41,(byte)0x5a,
+ (byte)0xb4,(byte)0x73,(byte)0xb4,
+ (byte)0xc5,(byte)0x8b,(byte)0xc5,
+ (byte)0xb4,(byte)0x6a,(byte)0x9c,
+ (byte)0x83,(byte)0x20,(byte)0x4a,
+ (byte)0x94,(byte)0x31,(byte)0x62,
+ (byte)0xc5,(byte)0x94,(byte)0xb4,
+ (byte)0x83,(byte)0x41,(byte)0x5a,
+ (byte)0x29,(byte)0x08,(byte)0x08,
+ (byte)0x10,(byte)0x08,(byte)0x00,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x08,(byte)0x10,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x41,(byte)0x31,(byte)0x20,
+ (byte)0x7b,(byte)0x5a,(byte)0x29,
+ (byte)0x6a,(byte)0x41,(byte)0x29,
+ (byte)0x4a,(byte)0x31,(byte)0x29,
+ (byte)0x5a,(byte)0x39,(byte)0x39,
+ (byte)0x94,(byte)0x6a,(byte)0x83,
+ (byte)0x6a,(byte)0x4a,(byte)0x52,
+ (byte)0x29,(byte)0x10,(byte)0x10,
+ (byte)0x20,(byte)0x18,(byte)0x10,
+ (byte)0x39,(byte)0x31,(byte)0x29,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x10,
+ (byte)0x62,(byte)0x29,(byte)0x41,
+ (byte)0x5a,(byte)0x20,(byte)0x29,
+ (byte)0x39,(byte)0x31,(byte)0x10,
+ (byte)0x62,(byte)0x5a,(byte)0x39,
+ (byte)0xa4,(byte)0x94,(byte)0x6a,
+ (byte)0x83,(byte)0x73,(byte)0x39,
+ (byte)0xac,(byte)0xa4,(byte)0x7b,
+ (byte)0x73,(byte)0x62,(byte)0x39,
+ (byte)0x83,(byte)0x73,(byte)0x4a,
+ (byte)0x52,(byte)0x4a,(byte)0x10,
+ (byte)0x18,(byte)0x18,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x31,(byte)0x18,(byte)0x20,
+ (byte)0x29,(byte)0x18,(byte)0x20,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x29,(byte)0x08,(byte)0x10,
+ (byte)0x7b,(byte)0x18,(byte)0x39,
+ (byte)0xa4,(byte)0x62,(byte)0x8b,
+ (byte)0xac,(byte)0x5a,(byte)0x9c,
+ (byte)0xa4,(byte)0x4a,(byte)0x8b,
+ (byte)0xa4,(byte)0x41,(byte)0x8b,
+ (byte)0xb4,(byte)0x83,(byte)0xb4,
+ (byte)0xac,(byte)0xb4,(byte)0xd5,
+ (byte)0xa4,(byte)0xac,(byte)0xd5,
+ (byte)0xa4,(byte)0xac,(byte)0xd5,
+ (byte)0xac,(byte)0xb4,(byte)0xde,
+ (byte)0xbd,(byte)0xa4,(byte)0xd5,
+ (byte)0xb4,(byte)0x5a,(byte)0x9c,
+ (byte)0xac,(byte)0x4a,(byte)0x4a,
+ (byte)0xbd,(byte)0x73,(byte)0x20,
+ (byte)0xa4,(byte)0x52,(byte)0x52,
+ (byte)0xbd,(byte)0x7b,(byte)0xbd,
+ (byte)0xac,(byte)0x52,(byte)0x9c,
+ (byte)0x9c,(byte)0x41,(byte)0x73,
+ (byte)0x73,(byte)0x08,(byte)0x20,
+ (byte)0x8b,(byte)0x29,(byte)0x4a,
+ (byte)0xb4,(byte)0x6a,(byte)0x94,
+ (byte)0x9c,(byte)0x6a,(byte)0x83,
+ (byte)0x7b,(byte)0x6a,(byte)0x6a,
+ (byte)0x52,(byte)0x4a,(byte)0x41,
+ (byte)0x6a,(byte)0x62,(byte)0x5a,
+ (byte)0x39,(byte)0x39,(byte)0x31,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x31,(byte)0x29,(byte)0x20,
+ (byte)0x20,(byte)0x20,(byte)0x10,
+ (byte)0x20,(byte)0x18,(byte)0x10,
+ (byte)0x10,(byte)0x08,(byte)0x00,
+ (byte)0x4a,(byte)0x41,(byte)0x31,
+ (byte)0x29,(byte)0x20,(byte)0x18,
+ (byte)0x18,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x31,(byte)0x20,(byte)0x18,
+ (byte)0x39,(byte)0x29,(byte)0x29,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x41,(byte)0x18,(byte)0x18,
+ (byte)0x62,(byte)0x31,(byte)0x31,
+ (byte)0x18,(byte)0x10,(byte)0x00,
+ (byte)0x4a,(byte)0x4a,(byte)0x20,
+ (byte)0xac,(byte)0x9c,(byte)0x62,
+ (byte)0xa4,(byte)0x94,(byte)0x73,
+ (byte)0x9c,(byte)0x8b,(byte)0x6a,
+ (byte)0x94,(byte)0x83,(byte)0x5a,
+ (byte)0x8b,(byte)0x7b,(byte)0x5a,
+ (byte)0x52,(byte)0x41,(byte)0x18,
+ (byte)0x20,(byte)0x18,(byte)0x10,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x5a,(byte)0x31,(byte)0x4a,
+ (byte)0x18,(byte)0x10,(byte)0x10,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x08,(byte)0x08,
+ (byte)0x7b,(byte)0x18,(byte)0x39,
+ (byte)0xb4,(byte)0x6a,(byte)0xa4,
+ (byte)0xac,(byte)0x62,(byte)0x9c,
+ (byte)0xac,(byte)0x52,(byte)0x62,
+ (byte)0xa4,(byte)0x4a,(byte)0x5a,
+ (byte)0xac,(byte)0x5a,(byte)0x94,
+ (byte)0xbd,(byte)0xb4,(byte)0xde,
+ (byte)0xac,(byte)0xb4,(byte)0xd5,
+ (byte)0xac,(byte)0xb4,(byte)0xde,
+ (byte)0xb4,(byte)0xb4,(byte)0xd5,
+ (byte)0xc5,(byte)0xc5,(byte)0xe6,
+ (byte)0xb4,(byte)0x73,(byte)0xac,
+ (byte)0x94,(byte)0x29,(byte)0x5a,
+ (byte)0xb4,(byte)0x6a,(byte)0x7b,
+ (byte)0xc5,(byte)0x9c,(byte)0xcd,
+ (byte)0xc5,(byte)0x94,(byte)0xac,
+ (byte)0xc5,(byte)0x94,(byte)0xb4,
+ (byte)0x9c,(byte)0x41,(byte)0x7b,
+ (byte)0x94,(byte)0x31,(byte)0x52,
+ (byte)0x94,(byte)0x31,(byte)0x41,
+ (byte)0x94,(byte)0x39,(byte)0x62,
+ (byte)0x94,(byte)0x73,(byte)0x7b,
+ (byte)0x73,(byte)0x6a,(byte)0x62,
+ (byte)0x5a,(byte)0x5a,(byte)0x52,
+ (byte)0x94,(byte)0x8b,(byte)0x94,
+ (byte)0x41,(byte)0x39,(byte)0x39,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x39,(byte)0x31,(byte)0x29,
+ (byte)0x4a,(byte)0x41,(byte)0x39,
+ (byte)0x4a,(byte)0x41,(byte)0x39,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x10,(byte)0x10,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x18,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x10,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x29,(byte)0x20,(byte)0x10,
+ (byte)0xac,(byte)0x9c,(byte)0x62,
+ (byte)0xac,(byte)0x9c,(byte)0x52,
+ (byte)0xc5,(byte)0xb4,(byte)0x9c,
+ (byte)0xb4,(byte)0xa4,(byte)0x83,
+ (byte)0xac,(byte)0x9c,(byte)0x6a,
+ (byte)0x29,(byte)0x29,(byte)0x10,
+ (byte)0x41,(byte)0x20,(byte)0x20,
+ (byte)0x52,(byte)0x20,(byte)0x39,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x62,(byte)0x39,(byte)0x52,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x73,(byte)0x20,(byte)0x39,
+ (byte)0x9c,(byte)0x41,(byte)0x7b,
+ (byte)0xbd,(byte)0x83,(byte)0xc5,
+ (byte)0xb4,(byte)0x6a,(byte)0x5a,
+ (byte)0xb4,(byte)0x6a,(byte)0x29,
+ (byte)0xb4,(byte)0x6a,(byte)0x9c,
+ (byte)0xcd,(byte)0xbd,(byte)0xe6,
+ (byte)0xb4,(byte)0xb4,(byte)0xde,
+ (byte)0xac,(byte)0xb4,(byte)0xde,
+ (byte)0xb4,(byte)0xb4,(byte)0xde,
+ (byte)0xbd,(byte)0xbd,(byte)0xde,
+ (byte)0xb4,(byte)0x6a,(byte)0xac,
+ (byte)0x94,(byte)0x29,(byte)0x62,
+ (byte)0x9c,(byte)0x31,(byte)0x83,
+ (byte)0xb4,(byte)0x6a,(byte)0xac,
+ (byte)0xd5,(byte)0xb4,(byte)0x7b,
+ (byte)0xcd,(byte)0xa4,(byte)0x4a,
+ (byte)0xb4,(byte)0x73,(byte)0x9c,
+ (byte)0x9c,(byte)0x41,(byte)0x52,
+ (byte)0x73,(byte)0x10,(byte)0x00,
+ (byte)0x7b,(byte)0x29,(byte)0x39,
+ (byte)0xc5,(byte)0xbd,(byte)0xc5,
+ (byte)0x7b,(byte)0x73,(byte)0x6a,
+ (byte)0x6a,(byte)0x62,(byte)0x62,
+ (byte)0xa4,(byte)0x9c,(byte)0x9c,
+ (byte)0x5a,(byte)0x5a,(byte)0x5a,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x08,
+ (byte)0x4a,(byte)0x41,(byte)0x39,
+ (byte)0x41,(byte)0x41,(byte)0x31,
+ (byte)0x31,(byte)0x31,(byte)0x20,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x08,(byte)0x00,
+ (byte)0x18,(byte)0x00,(byte)0x08,
+ (byte)0x39,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x08,
+ (byte)0x29,(byte)0x41,(byte)0x41,
+ (byte)0x62,(byte)0x4a,(byte)0x31,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x08,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x4a,(byte)0x41,(byte)0x31,
+ (byte)0xac,(byte)0x9c,(byte)0x62,
+ (byte)0xac,(byte)0x9c,(byte)0x62,
+ (byte)0xcd,(byte)0xc5,(byte)0x94,
+ (byte)0xbd,(byte)0xac,(byte)0x7b,
+ (byte)0xac,(byte)0x9c,(byte)0x62,
+ (byte)0x41,(byte)0x41,(byte)0x20,
+ (byte)0x52,(byte)0x29,(byte)0x29,
+ (byte)0x52,(byte)0x18,(byte)0x29,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x31,(byte)0x29,(byte)0x29,
+ (byte)0x6a,(byte)0x41,(byte)0x5a,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x5a,(byte)0x18,(byte)0x29,
+ (byte)0xa4,(byte)0x4a,(byte)0x7b,
+ (byte)0xbd,(byte)0x83,(byte)0xbd,
+ (byte)0xa4,(byte)0x5a,(byte)0x7b,
+ (byte)0xa4,(byte)0x52,(byte)0x18,
+ (byte)0x9c,(byte)0x39,(byte)0x5a,
+ (byte)0xb4,(byte)0x8b,(byte)0xbd,
+ (byte)0xb4,(byte)0xbd,(byte)0xe6,
+ (byte)0xb4,(byte)0xbd,(byte)0xde,
+ (byte)0xb4,(byte)0xbd,(byte)0xde,
+ (byte)0xb4,(byte)0xb4,(byte)0xd5,
+ (byte)0xb4,(byte)0x8b,(byte)0xb4,
+ (byte)0x9c,(byte)0x4a,(byte)0x7b,
+ (byte)0x9c,(byte)0x41,(byte)0x7b,
+ (byte)0xc5,(byte)0x9c,(byte)0xcd,
+ (byte)0xcd,(byte)0xac,(byte)0x6a,
+ (byte)0xc5,(byte)0x7b,(byte)0x08,
+ (byte)0xc5,(byte)0x8b,(byte)0x83,
+ (byte)0xa4,(byte)0x4a,(byte)0x7b,
+ (byte)0x7b,(byte)0x20,(byte)0x41,
+ (byte)0x5a,(byte)0x31,(byte)0x29,
+ (byte)0xa4,(byte)0x94,(byte)0x8b,
+ (byte)0x83,(byte)0x7b,(byte)0x6a,
+ (byte)0x7b,(byte)0x6a,(byte)0x6a,
+ (byte)0x29,(byte)0x29,(byte)0x20,
+ (byte)0x29,(byte)0x29,(byte)0x20,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x18,(byte)0x00,(byte)0x08,
+ (byte)0x20,(byte)0x18,(byte)0x18,
+ (byte)0x83,(byte)0x7b,(byte)0x6a,
+ (byte)0x4a,(byte)0x4a,(byte)0x39,
+ (byte)0x18,(byte)0x20,(byte)0x10,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x20,(byte)0x08,(byte)0x00,
+ (byte)0x10,(byte)0x10,(byte)0x10,
+ (byte)0x7b,(byte)0x6a,(byte)0x52,
+ (byte)0x73,(byte)0x4a,(byte)0x39,
+ (byte)0x20,(byte)0x18,(byte)0x08,
+ (byte)0x4a,(byte)0x4a,(byte)0x10,
+ (byte)0x41,(byte)0x41,(byte)0x10,
+ (byte)0x29,(byte)0x29,(byte)0x08,
+ (byte)0x31,(byte)0x31,(byte)0x18,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x18,(byte)0x18,(byte)0x08,
+ (byte)0x8b,(byte)0x7b,(byte)0x41,
+ (byte)0xa4,(byte)0x94,(byte)0x4a,
+ (byte)0xac,(byte)0x9c,(byte)0x5a,
+ (byte)0xc5,(byte)0xbd,(byte)0x83,
+ (byte)0xac,(byte)0xa4,(byte)0x6a,
+ (byte)0x9c,(byte)0x8b,(byte)0x52,
+ (byte)0x20,(byte)0x18,(byte)0x10,
+ (byte)0x29,(byte)0x10,(byte)0x10,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x52,(byte)0x39,(byte)0x4a,
+ (byte)0x5a,(byte)0x39,(byte)0x52,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x39,(byte)0x10,(byte)0x20,
+ (byte)0x8b,(byte)0x31,(byte)0x5a,
+ (byte)0xa4,(byte)0x52,(byte)0x83,
+ (byte)0xbd,(byte)0x7b,(byte)0xb4,
+ (byte)0xb4,(byte)0x7b,(byte)0x94,
+ (byte)0xa4,(byte)0x4a,(byte)0x6a,
+ (byte)0x9c,(byte)0x41,(byte)0x83,
+ (byte)0xbd,(byte)0xac,(byte)0xd5,
+ (byte)0xb4,(byte)0xbd,(byte)0xde,
+ (byte)0xb4,(byte)0xbd,(byte)0xde,
+ (byte)0x8b,(byte)0x83,(byte)0xa4,
+ (byte)0x7b,(byte)0x5a,(byte)0x6a,
+ (byte)0xa4,(byte)0x5a,(byte)0x83,
+ (byte)0x94,(byte)0x41,(byte)0x73,
+ (byte)0xb4,(byte)0x73,(byte)0xa4,
+ (byte)0xcd,(byte)0xa4,(byte)0x52,
+ (byte)0xb4,(byte)0x62,(byte)0x00,
+ (byte)0xa4,(byte)0x5a,(byte)0x62,
+ (byte)0x94,(byte)0x31,(byte)0x6a,
+ (byte)0x6a,(byte)0x10,(byte)0x29,
+ (byte)0x41,(byte)0x20,(byte)0x10,
+ (byte)0x83,(byte)0x73,(byte)0x6a,
+ (byte)0x62,(byte)0x52,(byte)0x52,
+ (byte)0x41,(byte)0x39,(byte)0x31,
+ (byte)0x4a,(byte)0x4a,(byte)0x41,
+ (byte)0x29,(byte)0x29,(byte)0x20,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x08,(byte)0x10,(byte)0x08,
+ (byte)0x10,(byte)0x08,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x29,(byte)0x20,(byte)0x10,
+ (byte)0x29,(byte)0x29,(byte)0x18,
+ (byte)0x20,(byte)0x20,(byte)0x18,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x29,(byte)0x18,(byte)0x10,
+ (byte)0x18,(byte)0x08,(byte)0x08,
+ (byte)0x39,(byte)0x31,(byte)0x18,
+ (byte)0x7b,(byte)0x73,(byte)0x31,
+ (byte)0x5a,(byte)0x5a,(byte)0x20,
+ (byte)0x4a,(byte)0x41,(byte)0x10,
+ (byte)0x29,(byte)0x29,(byte)0x08,
+ (byte)0x18,(byte)0x18,(byte)0x08,
+ (byte)0x73,(byte)0x6a,(byte)0x39,
+ (byte)0x9c,(byte)0x83,(byte)0x41,
+ (byte)0x8b,(byte)0x6a,(byte)0x31,
+ (byte)0xbd,(byte)0xac,(byte)0x6a,
+ (byte)0xac,(byte)0x9c,(byte)0x5a,
+ (byte)0xac,(byte)0x94,(byte)0x52,
+ (byte)0x6a,(byte)0x62,(byte)0x4a,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x10,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x7b,(byte)0x52,(byte)0x62,
+ (byte)0x31,(byte)0x18,(byte)0x20,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x10,(byte)0x10,
+ (byte)0x8b,(byte)0x39,(byte)0x5a,
+ (byte)0x8b,(byte)0x29,(byte)0x5a,
+ (byte)0xac,(byte)0x5a,(byte)0x94,
+ (byte)0xc5,(byte)0x8b,(byte)0xc5,
+ (byte)0xa4,(byte)0x52,(byte)0x94,
+ (byte)0x9c,(byte)0x39,(byte)0x73,
+ (byte)0xac,(byte)0x83,(byte)0xac,
+ (byte)0x83,(byte)0x73,(byte)0x8b,
+ (byte)0x83,(byte)0x7b,(byte)0x94,
+ (byte)0x62,(byte)0x4a,(byte)0x5a,
+ (byte)0x5a,(byte)0x41,(byte)0x4a,
+ (byte)0x5a,(byte)0x31,(byte)0x41,
+ (byte)0x94,(byte)0x62,(byte)0x8b,
+ (byte)0xc5,(byte)0x8b,(byte)0xc5,
+ (byte)0xcd,(byte)0x9c,(byte)0x8b,
+ (byte)0xa4,(byte)0x52,(byte)0x18,
+ (byte)0x8b,(byte)0x31,(byte)0x4a,
+ (byte)0xac,(byte)0x73,(byte)0x94,
+ (byte)0x6a,(byte)0x20,(byte)0x31,
+ (byte)0x18,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x39,(byte)0x39,(byte)0x31,
+ (byte)0x7b,(byte)0x73,(byte)0x7b,
+ (byte)0x41,(byte)0x39,(byte)0x39,
+ (byte)0x08,(byte)0x10,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x29,(byte)0x20,(byte)0x18,
+ (byte)0x20,(byte)0x20,(byte)0x18,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x39,(byte)0x31,(byte)0x18,
+ (byte)0x5a,(byte)0x4a,(byte)0x29,
+ (byte)0x31,(byte)0x29,(byte)0x10,
+ (byte)0x39,(byte)0x31,(byte)0x10,
+ (byte)0x20,(byte)0x18,(byte)0x08,
+ (byte)0x83,(byte)0x6a,(byte)0x39,
+ (byte)0xbd,(byte)0xac,(byte)0x73,
+ (byte)0xa4,(byte)0x94,(byte)0x52,
+ (byte)0xa4,(byte)0x94,(byte)0x5a,
+ (byte)0xb4,(byte)0xa4,(byte)0x73,
+ (byte)0x94,(byte)0x7b,(byte)0x41,
+ (byte)0xa4,(byte)0x8b,(byte)0x41,
+ (byte)0x31,(byte)0x29,(byte)0x18,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x29,(byte)0x20,(byte)0x20,
+ (byte)0x83,(byte)0x52,(byte)0x52,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x5a,(byte)0x31,(byte)0x41,
+ (byte)0x94,(byte)0x39,(byte)0x62,
+ (byte)0x94,(byte)0x31,(byte)0x62,
+ (byte)0xc5,(byte)0x9c,(byte)0xb4,
+ (byte)0xb4,(byte)0x6a,(byte)0xac,
+ (byte)0x94,(byte)0x31,(byte)0x73,
+ (byte)0x9c,(byte)0x52,(byte)0x7b,
+ (byte)0x62,(byte)0x41,(byte)0x52,
+ (byte)0x52,(byte)0x39,(byte)0x4a,
+ (byte)0x5a,(byte)0x41,(byte)0x52,
+ (byte)0x4a,(byte)0x39,(byte)0x4a,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x5a,(byte)0x39,(byte)0x52,
+ (byte)0xcd,(byte)0x9c,(byte)0xd5,
+ (byte)0xcd,(byte)0xb4,(byte)0xe6,
+ (byte)0xbd,(byte)0x94,(byte)0xb4,
+ (byte)0xb4,(byte)0x83,(byte)0xa4,
+ (byte)0xa4,(byte)0x73,(byte)0x94,
+ (byte)0xbd,(byte)0x9c,(byte)0xbd,
+ (byte)0x4a,(byte)0x20,(byte)0x20,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x18,(byte)0x10,
+ (byte)0x18,(byte)0x18,(byte)0x10,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x08,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x20,(byte)0x20,(byte)0x08,
+ (byte)0x18,(byte)0x18,(byte)0x00,
+ (byte)0x39,(byte)0x29,(byte)0x18,
+ (byte)0x73,(byte)0x62,(byte)0x41,
+ (byte)0x94,(byte)0x83,(byte)0x6a,
+ (byte)0x7b,(byte)0x73,(byte)0x41,
+ (byte)0xa4,(byte)0x94,(byte)0x62,
+ (byte)0x94,(byte)0x8b,(byte)0x52,
+ (byte)0xac,(byte)0x9c,(byte)0x5a,
+ (byte)0x94,(byte)0x7b,(byte)0x39,
+ (byte)0x83,(byte)0x7b,(byte)0x39,
+ (byte)0x10,(byte)0x18,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x6a,(byte)0x4a,(byte)0x4a,
+ (byte)0x62,(byte)0x39,(byte)0x39,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x20,(byte)0x10,(byte)0x10,
+ (byte)0x94,(byte)0x4a,(byte)0x6a,
+ (byte)0x8b,(byte)0x20,(byte)0x4a,
+ (byte)0xc5,(byte)0x94,(byte)0x94,
+ (byte)0xcd,(byte)0xac,(byte)0x83,
+ (byte)0xbd,(byte)0x7b,(byte)0xbd,
+ (byte)0x9c,(byte)0x4a,(byte)0x7b,
+ (byte)0x73,(byte)0x4a,(byte)0x62,
+ (byte)0x52,(byte)0x39,(byte)0x4a,
+ (byte)0x41,(byte)0x31,(byte)0x41,
+ (byte)0x10,(byte)0x10,(byte)0x10,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x52,(byte)0x29,(byte)0x41,
+ (byte)0xcd,(byte)0xa4,(byte)0xde,
+ (byte)0xcd,(byte)0xb4,(byte)0xe6,
+ (byte)0xc5,(byte)0xac,(byte)0xd5,
+ (byte)0xcd,(byte)0xc5,(byte)0xee,
+ (byte)0x94,(byte)0x4a,(byte)0x62,
+ (byte)0x83,(byte)0x41,(byte)0x62,
+ (byte)0x8b,(byte)0x6a,(byte)0x7b,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x00,
+ (byte)0x29,(byte)0x20,(byte)0x08,
+ (byte)0x6a,(byte)0x5a,(byte)0x31,
+ (byte)0xd5,(byte)0xc5,(byte)0x94,
+ (byte)0x9c,(byte)0x8b,(byte)0x5a,
+ (byte)0x9c,(byte)0x8b,(byte)0x5a,
+ (byte)0x73,(byte)0x6a,(byte)0x31,
+ (byte)0x4a,(byte)0x4a,(byte)0x10,
+ (byte)0xa4,(byte)0x94,(byte)0x5a,
+ (byte)0xc5,(byte)0xb4,(byte)0x73,
+ (byte)0x62,(byte)0x5a,(byte)0x31,
+ (byte)0x18,(byte)0x18,(byte)0x08,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x39,(byte)0x31,(byte)0x31,
+ (byte)0x94,(byte)0x5a,(byte)0x5a,
+ (byte)0x20,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x52,(byte)0x31,(byte)0x39,
+ (byte)0x9c,(byte)0x4a,(byte)0x6a,
+ (byte)0x9c,(byte)0x39,(byte)0x62,
+ (byte)0xcd,(byte)0x94,(byte)0x41,
+ (byte)0xcd,(byte)0xb4,(byte)0xa4,
+ (byte)0xac,(byte)0x62,(byte)0xa4,
+ (byte)0x7b,(byte)0x4a,(byte)0x6a,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x20,(byte)0x08,(byte)0x10,
+ (byte)0xac,(byte)0x73,(byte)0xac,
+ (byte)0xcd,(byte)0xbd,(byte)0xee,
+ (byte)0xa4,(byte)0x83,(byte)0x9c,
+ (byte)0xac,(byte)0x83,(byte)0xac,
+ (byte)0xb4,(byte)0x8b,(byte)0xac,
+ (byte)0x31,(byte)0x00,(byte)0x08,
+ (byte)0x52,(byte)0x39,(byte)0x41,
+ (byte)0x39,(byte)0x29,(byte)0x29,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x41,(byte)0x10,(byte)0x31,
+ (byte)0x31,(byte)0x18,(byte)0x31,
+ (byte)0x10,(byte)0x10,(byte)0x20,
+ (byte)0x10,(byte)0x10,(byte)0x18,
+ (byte)0x08,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x31,(byte)0x20,(byte)0x08,
+ (byte)0x29,(byte)0x18,(byte)0x08,
+ (byte)0x20,(byte)0x10,(byte)0x08,
+ (byte)0x52,(byte)0x41,(byte)0x10,
+ (byte)0x7b,(byte)0x6a,(byte)0x41,
+ (byte)0x8b,(byte)0x7b,(byte)0x52,
+ (byte)0x8b,(byte)0x7b,(byte)0x62,
+ (byte)0x29,(byte)0x20,(byte)0x00,
+ (byte)0x8b,(byte)0x7b,(byte)0x41,
+ (byte)0x6a,(byte)0x62,(byte)0x31,
+ (byte)0xa4,(byte)0x94,(byte)0x5a,
+ (byte)0x4a,(byte)0x41,(byte)0x20,
+ (byte)0x29,(byte)0x29,(byte)0x10,
+ (byte)0x10,(byte)0x18,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x20,(byte)0x18,(byte)0x10,
+ (byte)0x7b,(byte)0x5a,(byte)0x52,
+ (byte)0x7b,(byte)0x41,(byte)0x39,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x00,
+ (byte)0x8b,(byte)0x4a,(byte)0x62,
+ (byte)0x9c,(byte)0x39,(byte)0x62,
+ (byte)0xbd,(byte)0x73,(byte)0x73,
+ (byte)0xcd,(byte)0x94,(byte)0x29,
+ (byte)0xc5,(byte)0x8b,(byte)0x7b,
+ (byte)0xc5,(byte)0x94,(byte)0xcd,
+ (byte)0x62,(byte)0x39,(byte)0x52,
+ (byte)0x10,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x6a,(byte)0x39,(byte)0x5a,
+ (byte)0xd5,(byte)0xbd,(byte)0xee,
+ (byte)0x83,(byte)0x5a,(byte)0x73,
+ (byte)0x7b,(byte)0x41,(byte)0x62,
+ (byte)0x62,(byte)0x39,(byte)0x52,
+ (byte)0x18,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x18,(byte)0x10,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x10,
+ (byte)0x18,(byte)0x10,(byte)0x20,
+ (byte)0x10,(byte)0x18,(byte)0x29,
+ (byte)0x18,(byte)0x18,(byte)0x29,
+ (byte)0x08,(byte)0x00,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x18,(byte)0x18,(byte)0x08,
+ (byte)0x29,(byte)0x18,(byte)0x08,
+ (byte)0x39,(byte)0x29,(byte)0x10,
+ (byte)0x29,(byte)0x20,(byte)0x00,
+ (byte)0x39,(byte)0x31,(byte)0x18,
+ (byte)0xa4,(byte)0x94,(byte)0x6a,
+ (byte)0x39,(byte)0x39,(byte)0x18,
+ (byte)0x52,(byte)0x52,(byte)0x31,
+ (byte)0xa4,(byte)0x94,(byte)0x62,
+ (byte)0x8b,(byte)0x7b,(byte)0x5a,
+ (byte)0x62,(byte)0x52,(byte)0x41,
+ (byte)0x31,(byte)0x31,(byte)0x10,
+ (byte)0x52,(byte)0x4a,(byte)0x10,
+ (byte)0x10,(byte)0x10,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x20,(byte)0x18,(byte)0x18,
+ (byte)0x83,(byte)0x52,(byte)0x4a,
+ (byte)0x29,(byte)0x10,(byte)0x10,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x5a,(byte)0x39,(byte)0x4a,
+ (byte)0xa4,(byte)0x4a,(byte)0x6a,
+ (byte)0xa4,(byte)0x5a,(byte)0x62,
+ (byte)0xbd,(byte)0x73,(byte)0x4a,
+ (byte)0xc5,(byte)0x7b,(byte)0x10,
+ (byte)0xc5,(byte)0x94,(byte)0xa4,
+ (byte)0xc5,(byte)0x94,(byte)0xd5,
+ (byte)0xa4,(byte)0x7b,(byte)0xac,
+ (byte)0x29,(byte)0x10,(byte)0x20,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x29,(byte)0x10,(byte)0x20,
+ (byte)0x62,(byte)0x41,(byte)0x5a,
+ (byte)0x31,(byte)0x08,(byte)0x18,
+ (byte)0x62,(byte)0x41,(byte)0x5a,
+ (byte)0x18,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x00,
+ (byte)0x10,(byte)0x18,(byte)0x00,
+ (byte)0x31,(byte)0x20,(byte)0x08,
+ (byte)0x29,(byte)0x20,(byte)0x08,
+ (byte)0x39,(byte)0x31,(byte)0x10,
+ (byte)0x41,(byte)0x41,(byte)0x20,
+ (byte)0x62,(byte)0x5a,(byte)0x39,
+ (byte)0x9c,(byte)0x8b,(byte)0x62,
+ (byte)0x9c,(byte)0x83,(byte)0x52,
+ (byte)0xac,(byte)0x9c,(byte)0x73,
+ (byte)0x39,(byte)0x29,(byte)0x10,
+ (byte)0x4a,(byte)0x41,(byte)0x10,
+ (byte)0x52,(byte)0x52,(byte)0x18,
+ (byte)0x10,(byte)0x10,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x39,(byte)0x20,(byte)0x20,
+ (byte)0x6a,(byte)0x31,(byte)0x39,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x73,(byte)0x39,(byte)0x52,
+ (byte)0x83,(byte)0x10,(byte)0x20,
+ (byte)0x9c,(byte)0x41,(byte)0x52,
+ (byte)0xac,(byte)0x62,(byte)0x4a,
+ (byte)0xb4,(byte)0x73,(byte)0x41,
+ (byte)0xcd,(byte)0xbd,(byte)0xde,
+ (byte)0xcd,(byte)0xb4,(byte)0xe6,
+ (byte)0xac,(byte)0x83,(byte)0xb4,
+ (byte)0x4a,(byte)0x20,(byte)0x39,
+ (byte)0x10,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x31,(byte)0x18,(byte)0x29,
+ (byte)0x10,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x10,(byte)0x00,
+ (byte)0x08,(byte)0x10,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x52,(byte)0x41,(byte)0x29,
+ (byte)0x6a,(byte)0x52,(byte)0x31,
+ (byte)0x41,(byte)0x39,(byte)0x20,
+ (byte)0x62,(byte)0x52,(byte)0x31,
+ (byte)0x62,(byte)0x52,(byte)0x31,
+ (byte)0xac,(byte)0x9c,(byte)0x6a,
+ (byte)0x6a,(byte)0x62,(byte)0x41,
+ (byte)0x20,(byte)0x18,(byte)0x00,
+ (byte)0x5a,(byte)0x5a,(byte)0x20,
+ (byte)0x41,(byte)0x41,(byte)0x10,
+ (byte)0x18,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x7b,(byte)0x41,(byte)0x52,
+ (byte)0x18,(byte)0x08,(byte)0x10,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x20,(byte)0x18,(byte)0x18,
+ (byte)0x7b,(byte)0x41,(byte)0x4a,
+ (byte)0x83,(byte)0x20,(byte)0x39,
+ (byte)0xa4,(byte)0x52,(byte)0x8b,
+ (byte)0x8b,(byte)0x29,(byte)0x29,
+ (byte)0xb4,(byte)0x7b,(byte)0x94,
+ (byte)0xcd,(byte)0xbd,(byte)0xe6,
+ (byte)0xcd,(byte)0xb4,(byte)0xe6,
+ (byte)0xcd,(byte)0xbd,(byte)0xee,
+ (byte)0x52,(byte)0x31,(byte)0x4a,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x08,
+ (byte)0x18,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x29,(byte)0x18,(byte)0x18,
+ (byte)0xb4,(byte)0x9c,(byte)0x7b,
+ (byte)0x94,(byte)0x7b,(byte)0x52,
+ (byte)0x29,(byte)0x20,(byte)0x08,
+ (byte)0x20,(byte)0x20,(byte)0x08,
+ (byte)0x31,(byte)0x29,(byte)0x08,
+ (byte)0x5a,(byte)0x4a,(byte)0x20,
+ (byte)0x10,(byte)0x10,(byte)0x00,
+ (byte)0x31,(byte)0x31,(byte)0x10,
+ (byte)0x52,(byte)0x4a,(byte)0x20,
+ (byte)0x4a,(byte)0x39,(byte)0x20,
+ (byte)0x18,(byte)0x18,(byte)0x10,
+ (byte)0x52,(byte)0x39,(byte)0x41,
+ (byte)0x62,(byte)0x39,(byte)0x4a,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x62,(byte)0x62,(byte)0x62,
+ (byte)0x94,(byte)0x62,(byte)0x6a,
+ (byte)0x7b,(byte)0x18,(byte)0x39,
+ (byte)0x8b,(byte)0x29,(byte)0x52,
+ (byte)0xbd,(byte)0x8b,(byte)0xac,
+ (byte)0xc5,(byte)0xac,(byte)0xd5,
+ (byte)0xa4,(byte)0x7b,(byte)0x9c,
+ (byte)0x94,(byte)0x62,(byte)0x83,
+ (byte)0x39,(byte)0x10,(byte)0x20,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x31,(byte)0x20,(byte)0x18,
+ (byte)0x52,(byte)0x41,(byte)0x31,
+ (byte)0x29,(byte)0x18,(byte)0x10,
+ (byte)0x20,(byte)0x18,(byte)0x08,
+ (byte)0x31,(byte)0x20,(byte)0x08,
+ (byte)0x20,(byte)0x18,(byte)0x08,
+ (byte)0x20,(byte)0x18,(byte)0x08,
+ (byte)0x39,(byte)0x39,(byte)0x10,
+ (byte)0x5a,(byte)0x52,(byte)0x31,
+ (byte)0x62,(byte)0x52,(byte)0x41,
+ (byte)0x39,(byte)0x39,(byte)0x31,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x73,(byte)0x41,(byte)0x52,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x8b,(byte)0x83,(byte)0x83,
+ (byte)0x94,(byte)0x6a,(byte)0x7b,
+ (byte)0x62,(byte)0x20,(byte)0x20,
+ (byte)0x8b,(byte)0x4a,(byte)0x6a,
+ (byte)0xb4,(byte)0x83,(byte)0xa4,
+ (byte)0xbd,(byte)0x94,(byte)0xbd,
+ (byte)0xa4,(byte)0x7b,(byte)0xa4,
+ (byte)0x6a,(byte)0x41,(byte)0x5a,
+ (byte)0x52,(byte)0x29,(byte)0x41,
+ (byte)0x18,(byte)0x08,(byte)0x18,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x31,(byte)0x29,(byte)0x10,
+ (byte)0x29,(byte)0x18,(byte)0x08,
+ (byte)0x18,(byte)0x08,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x00,
+ (byte)0x29,(byte)0x18,(byte)0x10,
+ (byte)0x52,(byte)0x4a,(byte)0x41,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x5a,(byte)0x31,(byte)0x31,
+ (byte)0x20,(byte)0x10,(byte)0x18,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x29,(byte)0x31,(byte)0x29,
+ (byte)0x94,(byte)0x94,(byte)0x94,
+ (byte)0x9c,(byte)0x8b,(byte)0x8b,
+ (byte)0x4a,(byte)0x18,(byte)0x10,
+ (byte)0x83,(byte)0x52,(byte)0x6a,
+ (byte)0xa4,(byte)0x5a,(byte)0x83,
+ (byte)0xa4,(byte)0x73,(byte)0x94,
+ (byte)0x83,(byte)0x5a,(byte)0x73,
+ (byte)0x31,(byte)0x08,(byte)0x18,
+ (byte)0x10,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x00,(byte)0x08,
+ (byte)0x29,(byte)0x08,(byte)0x10,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x08,
+ (byte)0x39,(byte)0x10,(byte)0x10,
+ (byte)0x20,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x20,(byte)0x18,(byte)0x08,
+ (byte)0x10,(byte)0x10,(byte)0x00,
+ (byte)0x20,(byte)0x20,(byte)0x08,
+ (byte)0x41,(byte)0x29,(byte)0x10,
+ (byte)0x10,(byte)0x08,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x39,(byte)0x31,(byte)0x20,
+ (byte)0x10,(byte)0x08,(byte)0x10,
+ (byte)0x31,(byte)0x20,(byte)0x18,
+ (byte)0x39,(byte)0x20,(byte)0x29,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x20,(byte)0x20,(byte)0x20,
+ (byte)0x62,(byte)0x62,(byte)0x52,
+ (byte)0x6a,(byte)0x62,(byte)0x41,
+ (byte)0x41,(byte)0x29,(byte)0x18,
+ (byte)0x62,(byte)0x39,(byte)0x52,
+ (byte)0x83,(byte)0x4a,(byte)0x62,
+ (byte)0x39,(byte)0x10,(byte)0x20,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x00,(byte)0x08,
+ (byte)0x5a,(byte)0x18,(byte)0x29,
+ (byte)0x31,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x08,
+ (byte)0x18,(byte)0x00,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x10,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x10,(byte)0x10,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x20,(byte)0x08,(byte)0x08,
+ (byte)0x39,(byte)0x20,(byte)0x20,
+ (byte)0x41,(byte)0x20,(byte)0x29,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x31,(byte)0x31,(byte)0x31,
+ (byte)0x62,(byte)0x62,(byte)0x52,
+ (byte)0x8b,(byte)0x83,(byte)0x83,
+ (byte)0x29,(byte)0x18,(byte)0x18,
+ (byte)0x41,(byte)0x29,(byte)0x31,
+ (byte)0x62,(byte)0x39,(byte)0x52,
+ (byte)0x39,(byte)0x20,(byte)0x29,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x20,(byte)0x00,(byte)0x08,
+ (byte)0x41,(byte)0x08,(byte)0x18,
+ (byte)0x29,(byte)0x00,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x20,(byte)0x08,(byte)0x08,
+ (byte)0x41,(byte)0x29,(byte)0x29,
+ (byte)0x41,(byte)0x20,(byte)0x31,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x4a,(byte)0x41,(byte)0x4a,
+ (byte)0xac,(byte)0xa4,(byte)0xac,
+ (byte)0x73,(byte)0x6a,(byte)0x62,
+ (byte)0x10,(byte)0x08,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x39,(byte)0x29,(byte)0x29,
+ (byte)0x29,(byte)0x18,(byte)0x18,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x31,(byte)0x08,(byte)0x18,
+ (byte)0x4a,(byte)0x10,(byte)0x10,
+ (byte)0x18,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x31,(byte)0x08,(byte)0x10,
+ (byte)0x29,(byte)0x08,(byte)0x10,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x08,(byte)0x08,
+ (byte)0x41,(byte)0x31,(byte)0x29,
+ (byte)0x41,(byte)0x29,(byte)0x29,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x41,(byte)0x41,(byte)0x41,
+ (byte)0x7b,(byte)0x6a,(byte)0x6a,
+ (byte)0x62,(byte)0x5a,(byte)0x52,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x18,(byte)0x10,(byte)0x10,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x39,(byte)0x29,(byte)0x20,
+ (byte)0x39,(byte)0x20,(byte)0x20,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x4a,(byte)0x4a,(byte)0x4a,
+ (byte)0x5a,(byte)0x5a,(byte)0x52,
+ (byte)0x41,(byte)0x39,(byte)0x31,
+ (byte)0x20,(byte)0x20,(byte)0x20,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x10,(byte)0x08,
+ (byte)0x41,(byte)0x29,(byte)0x18,
+ (byte)0x20,(byte)0x18,(byte)0x18,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x20,(byte)0x20,(byte)0x20,
+ (byte)0x39,(byte)0x39,(byte)0x31,
+ (byte)0x41,(byte)0x41,(byte)0x39,
+ (byte)0x52,(byte)0x52,(byte)0x4a,
+ (byte)0x20,(byte)0x20,(byte)0x20,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x08,
+ (byte)0x18,(byte)0x00,(byte)0x10,
+ (byte)0x10,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x08,(byte)0x08,
+ (byte)0x10,(byte)0x18,(byte)0x10,
+ (byte)0x29,(byte)0x18,(byte)0x10,
+ (byte)0x39,(byte)0x20,(byte)0x10,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x10,(byte)0x10,
+ (byte)0x29,(byte)0x29,(byte)0x20,
+ (byte)0x41,(byte)0x41,(byte)0x41,
+ (byte)0x29,(byte)0x29,(byte)0x20,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x18,(byte)0x08,(byte)0x10,
+ (byte)0x29,(byte)0x08,(byte)0x20,
+ (byte)0x29,(byte)0x10,(byte)0x29,
+ (byte)0x18,(byte)0x10,(byte)0x20,
+ (byte)0x10,(byte)0x10,(byte)0x18,
+ (byte)0x08,(byte)0x08,(byte)0x10,
+ (byte)0x08,(byte)0x00,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x10,
+ (byte)0x00,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x18,(byte)0x18,(byte)0x10,
+ (byte)0x18,(byte)0x18,(byte)0x10,
+ (byte)0x29,(byte)0x20,(byte)0x10,
+ (byte)0x31,(byte)0x18,(byte)0x08,
+ (byte)0x18,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x10,(byte)0x10,(byte)0x10,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x18,(byte)0x10,(byte)0x10,
+ (byte)0x18,(byte)0x10,(byte)0x10,
+ (byte)0x10,(byte)0x08,(byte)0x10,
+ (byte)0x10,(byte)0x10,(byte)0x18,
+ (byte)0x10,(byte)0x10,(byte)0x20,
+ (byte)0x10,(byte)0x10,(byte)0x18,
+ (byte)0x10,(byte)0x10,(byte)0x18,
+ (byte)0x08,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x20,(byte)0x20,(byte)0x18,
+ (byte)0x29,(byte)0x29,(byte)0x20,
+ (byte)0x31,(byte)0x31,(byte)0x20,
+ (byte)0x39,(byte)0x31,(byte)0x20,
+ (byte)0x41,(byte)0x31,(byte)0x29,
+ (byte)0x41,(byte)0x31,(byte)0x18,
+ (byte)0x20,(byte)0x10,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x10,(byte)0x08,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x20,(byte)0x20,(byte)0x18,
+ (byte)0x4a,(byte)0x41,(byte)0x31,
+ (byte)0x4a,(byte)0x4a,(byte)0x39,
+ (byte)0x4a,(byte)0x41,(byte)0x39,
+ (byte)0x4a,(byte)0x41,(byte)0x31,
+ (byte)0x39,(byte)0x29,(byte)0x20,
+ (byte)0x29,(byte)0x18,(byte)0x10,
+ (byte)0x18,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x08,(byte)0x00,(byte)0x08,
+ (byte)0x10,(byte)0x00,(byte)0x08,
+ (byte)0x18,(byte)0x08,(byte)0x08,
+ (byte)0x29,(byte)0x18,(byte)0x18,
+ (byte)0x20,(byte)0x18,(byte)0x18,
+ (byte)0x10,(byte)0x10,(byte)0x08,
+ (byte)0x18,(byte)0x10,(byte)0x10,
+ (byte)0x20,(byte)0x18,(byte)0x18,
+ (byte)0x41,(byte)0x41,(byte)0x31,
+ (byte)0x52,(byte)0x4a,(byte)0x39,
+ (byte)0x39,(byte)0x29,(byte)0x20,
+ (byte)0x29,(byte)0x18,(byte)0x10,
+ (byte)0x20,(byte)0x10,(byte)0x10,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x18,(byte)0x08,(byte)0x10,
+ (byte)0x10,(byte)0x10,(byte)0x10,
+ (byte)0x08,(byte)0x08,(byte)0x08,
+ (byte)0x08,(byte)0x08,(byte)0x00,
+ (byte)0x10,(byte)0x10,(byte)0x10,
+ (byte)0x20,(byte)0x18,(byte)0x18,
+ (byte)0x10,(byte)0x08,(byte)0x08,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ (byte)0x00,(byte)0x00,(byte)0x00,
+ };
+
+ public DemoTex1()
+ {
+ }
+
+ public void dispose()
+ {
+ }
+
+ /* GL_RGBA, etc. arg #3 in glTexImage2D() */
+ public int getComponents()
+ {
+ return(GL_RGB);
+ }
+
+ /* arg #4 in glTexImage2D() */
+ public int getWidth()
+ {
+ return(width);
+ }
+
+ /* arg #5 in glTexImage2D() */
+ public int getHeight()
+ {
+ return(height);
+ }
+
+ /* GL_RGBA, etc. arg #7 in glTexImage2D() */
+ public int getFormat()
+ {
+ return(GL_RGB);
+ }
+
+ /* GL_UNSIGNED_BYTE, etc. arg #8 in glTexImage2D() */
+ public int getType()
+ {
+ return(GL_UNSIGNED_BYTE);
+ }
+
+ /* arg #9 in glTexImage2D() */
+ public byte[] getBits()
+ {
+ return(bits);
+ }
+}
+
diff --git a/demos/RonsDemos/FullScreenGears.java b/demos/RonsDemos/FullScreenGears.java
new file mode 100644
index 0000000..e0d6151
--- /dev/null
+++ b/demos/RonsDemos/FullScreenGears.java
@@ -0,0 +1,18 @@
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+
+public class FullScreenGears {
+ public static void main(String[] args) {
+ final Applet a = new gears(); /*from ronsdemos*/
+ final Window w = new Window(new Frame());
+ w.setLayout(new BorderLayout());
+ w.add("Center",a);
+ a.init();
+ a.start();
+ Toolkit tk = Toolkit.getDefaultToolkit();
+ Dimension screensize = tk.getScreenSize();
+ w.setBounds(0,0,screensize.width,screensize.height);
+ w.setVisible(true);
+ }
+}
diff --git a/demos/RonsDemos/GL4JDemos.pvk b/demos/RonsDemos/GL4JDemos.pvk
new file mode 100644
index 0000000..46cc77a
--- /dev/null
+++ b/demos/RonsDemos/GL4JDemos.pvk
Binary files differ
diff --git a/demos/RonsDemos/GL4JDemos.spc b/demos/RonsDemos/GL4JDemos.spc
new file mode 100644
index 0000000..643bed1
--- /dev/null
+++ b/demos/RonsDemos/GL4JDemos.spc
Binary files differ
diff --git a/demos/RonsDemos/HardCodedTexture.java b/demos/RonsDemos/HardCodedTexture.java
new file mode 100644
index 0000000..6395c8a
--- /dev/null
+++ b/demos/RonsDemos/HardCodedTexture.java
@@ -0,0 +1,31 @@
+/**
+ * @(#) HardCodedTexture.java
+ * @(#) author: Ronald B. Cemer
+ * @(#) version: 1.0
+ */
+
+import java.io.*;
+
+public interface HardCodedTexture
+{
+ public void dispose();
+
+ /* GL_RGBA, etc. arg #3 in glTexImage2D() */
+ public int getComponents();
+
+ /* arg #4 in glTexImage2D() */
+ public int getWidth();
+
+ /* arg #5 in glTexImage2D() */
+ public int getHeight();
+
+ /* GL_RGBA, etc. arg #7 in glTexImage2D() */
+ public int getFormat();
+
+ /* GL_UNSIGNED_BYTE, etc. arg #8 in glTexImage2D() */
+ public int getType();
+
+ /* arg #9 in glTexImage2D() */
+ public byte[] getBits();
+}
+
diff --git a/demos/RonsDemos/MatrixFuncs.java b/demos/RonsDemos/MatrixFuncs.java
new file mode 100644
index 0000000..75493a2
--- /dev/null
+++ b/demos/RonsDemos/MatrixFuncs.java
@@ -0,0 +1,200 @@
+/**
+ * @(#) MatrixFuncs.java
+ * @(#) author: Ronald B. Cemer
+ * @(#) version: 1.0
+ */
+
+import java.io.*;
+
+public class MatrixFuncs
+{
+ public static final float M_PI = 3.14159265359f;
+
+ // Given the angle in degs, create a 4x4 matrix
+ // in mtx which rotates around the X axis.
+ public void rotateAroundX(float degs, float mtx[])
+ {
+ float rads, rsin, rcos;
+
+ rads = degs*(M_PI/180.0f);
+ rsin = (float)Math.sin(rads);
+ rcos = (float)Math.cos(rads);
+ mtx[0] = 1.0f;
+ mtx[1] = 0.0f;
+ mtx[2] = 0.0f;
+ mtx[3] = 0.0f;
+ mtx[4] = 0.0f;
+ mtx[5] = rcos;
+ mtx[6] = rsin;
+ mtx[7] = 0.0f;
+ mtx[8] = 0.0f;
+ mtx[9] = -rsin;
+ mtx[10] = rcos;
+ mtx[11] = 0.0f;
+ mtx[12] = 0.0f;
+ mtx[13] = 0.0f;
+ mtx[14] = 0.0f;
+ mtx[15] = 1.0f;
+ }
+
+ // Given the angle in degs, create a 4x4 matrix
+ // in mtx which rotates around the Y axis.
+ public void rotateAroundY(float degs, float mtx[])
+ {
+ float rads, rsin, rcos;
+
+ rads = degs*(M_PI/180.0f);
+ rsin = (float)Math.sin(rads);
+ rcos = (float)Math.cos(rads);
+ mtx[0] = rcos;
+ mtx[1] = 0.0f;
+ mtx[2] = -rsin;
+ mtx[3] = 0.0f;
+ mtx[4] = 0.0f;
+ mtx[5] = 1.0f;
+ mtx[6] = 0.0f;
+ mtx[7] = 0.0f;
+ mtx[8] = rsin;
+ mtx[9] = 0.0f;
+ mtx[10] = rcos;
+ mtx[11] = 0.0f;
+ mtx[12] = 0.0f;
+ mtx[13] = 0.0f;
+ mtx[14] = 0.0f;
+ mtx[15] = 1.0f;
+ }
+
+ // Given the angle in degs, create a 4x4 matrix
+ // in mtx which rotates around the Z axis.
+ public void rotateAroundZ(float degs, float mtx[])
+ {
+ float rads, rsin, rcos;
+
+ rads = degs*(M_PI/180.0f);
+ rsin = (float)Math.sin(rads);
+ rcos = (float)Math.cos(rads);
+ mtx[0] = rcos;
+ mtx[1] = rsin;
+ mtx[2] = 0.0f;
+ mtx[3] = 0.0f;
+ mtx[4] = -rsin;
+ mtx[5] = rcos;
+ mtx[6] = 0.0f;
+ mtx[7] = 0.0f;
+ mtx[8] = 0.0f;
+ mtx[9] = 0.0f;
+ mtx[10] = 1.0f;
+ mtx[11] = 0.0f;
+ mtx[12] = 0.0f;
+ mtx[13] = 0.0f;
+ mtx[14] = 0.0f;
+ mtx[15] = 1.0f;
+ }
+
+ // Given two 4x4 matrices in mtx1 and mtx2, multiply
+ // them and put the result in dest.
+ // This routine uses a temporary buffer for the result,
+ // so if dest is the same as mtx1 or mtx2, it will still
+ // work properly.
+ public void multiplyMatrices(float mtx1[], float mtx2[], float dest[])
+ {
+ float nmtx[] = new float[16];
+
+ nmtx[0] =
+ (mtx1[0]*mtx2[0]) +
+ (mtx1[1]*mtx2[4]) +
+ (mtx1[2]*mtx2[8]) +
+ (mtx1[3]*mtx2[12]);
+ nmtx[1] =
+ (mtx1[0]*mtx2[1]) +
+ (mtx1[1]*mtx2[5]) +
+ (mtx1[2]*mtx2[9]) +
+ (mtx1[3]*mtx2[13]);
+ nmtx[2] =
+ (mtx1[0]*mtx2[2]) +
+ (mtx1[1]*mtx2[6]) +
+ (mtx1[2]*mtx2[10]) +
+ (mtx1[3]*mtx2[14]);
+ nmtx[3] =
+ (mtx1[0]*mtx2[3]) +
+ (mtx1[1]*mtx2[7]) +
+ (mtx1[2]*mtx2[11]) +
+ (mtx1[3]*mtx2[15]);
+ nmtx[4] =
+ (mtx1[4]*mtx2[0]) +
+ (mtx1[5]*mtx2[4]) +
+ (mtx1[6]*mtx2[8]) +
+ (mtx1[7]*mtx2[12]);
+ nmtx[5] =
+ (mtx1[4]*mtx2[1]) +
+ (mtx1[5]*mtx2[5]) +
+ (mtx1[6]*mtx2[9]) +
+ (mtx1[7]*mtx2[13]);
+ nmtx[6] =
+ (mtx1[4]*mtx2[2]) +
+ (mtx1[5]*mtx2[6]) +
+ (mtx1[6]*mtx2[10]) +
+ (mtx1[7]*mtx2[14]);
+ nmtx[7] =
+ (mtx1[4]*mtx2[3]) +
+ (mtx1[5]*mtx2[7]) +
+ (mtx1[6]*mtx2[11]) +
+ (mtx1[7]*mtx2[15]);
+ nmtx[8] =
+ (mtx1[8]*mtx2[0]) +
+ (mtx1[9]*mtx2[4]) +
+ (mtx1[10]*mtx2[8]) +
+ (mtx1[11]*mtx2[12]);
+ nmtx[9] =
+ (mtx1[8]*mtx2[1]) +
+ (mtx1[9]*mtx2[5]) +
+ (mtx1[10]*mtx2[9]) +
+ (mtx1[11]*mtx2[13]);
+ nmtx[10] =
+ (mtx1[8]*mtx2[2]) +
+ (mtx1[9]*mtx2[6]) +
+ (mtx1[10]*mtx2[10]) +
+ (mtx1[11]*mtx2[14]);
+ nmtx[11] =
+ (mtx1[8]*mtx2[3]) +
+ (mtx1[9]*mtx2[7]) +
+ (mtx1[10]*mtx2[11]) +
+ (mtx1[11]*mtx2[15]);
+ nmtx[12] =
+ (mtx1[12]*mtx2[0]) +
+ (mtx1[13]*mtx2[4]) +
+ (mtx1[14]*mtx2[8]) +
+ (mtx1[15]*mtx2[12]);
+ nmtx[13] =
+ (mtx1[12]*mtx2[1]) +
+ (mtx1[13]*mtx2[5]) +
+ (mtx1[14]*mtx2[9]) +
+ (mtx1[15]*mtx2[13]);
+ nmtx[14] =
+ (mtx1[12]*mtx2[2]) +
+ (mtx1[13]*mtx2[6]) +
+ (mtx1[14]*mtx2[10]) +
+ (mtx1[15]*mtx2[14]);
+ nmtx[15] =
+ (mtx1[12]*mtx2[3]) +
+ (mtx1[13]*mtx2[7]) +
+ (mtx1[14]*mtx2[11]) +
+ (mtx1[15]*mtx2[15]);
+ dest[0] = nmtx[0];
+ dest[1] = nmtx[1];
+ dest[2] = nmtx[2];
+ dest[3] = nmtx[3];
+ dest[4] = nmtx[4];
+ dest[5] = nmtx[5];
+ dest[6] = nmtx[6];
+ dest[7] = nmtx[7];
+ dest[8] = nmtx[8];
+ dest[9] = nmtx[9];
+ dest[10] = nmtx[10];
+ dest[11] = nmtx[11];
+ dest[12] = nmtx[12];
+ dest[13] = nmtx[13];
+ dest[14] = nmtx[14];
+ dest[15] = nmtx[15];
+ }
+}
diff --git a/demos/RonsDemos/animApplet.skel b/demos/RonsDemos/animApplet.skel
new file mode 100644
index 0000000..ebbd52e
--- /dev/null
+++ b/demos/RonsDemos/animApplet.skel
@@ -0,0 +1,125 @@
+/**
+ * Skeleton for animated applets (applets which automatically and
+ * continually redraw without intervention).
+ */
+
+/**
+ * @(#) [place applet name here].java
+ * @(#) author: [place author here] (converted to Java by Ron Cemer)
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+
+public class myapplet extends Applet
+{
+ myappletCanvas canvas = null;
+
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new myappletCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Start the applet */
+
+
+ public void start()
+ {
+ canvas.start();
+ }
+
+
+ /* Stop the applet */
+
+
+ public void stop()
+ {
+ canvas.stop();
+ }
+
+
+ /* Destroy the applet */
+
+
+ public void destroy()
+ {
+ canvas.stop();
+ canvas.destroy();
+ }
+
+
+ /* Local GLAnimCanvas extension class */
+
+
+ private class myappletCanvas extends GLAnimCanvas
+ {
+ public myappletCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ setAnimateFps(60.0);
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+// Put OpenGL initialization code here.
+
+ glj.gljCheckGL();
+ }
+
+ public void destroy()
+ {
+ System.out.println("destroy(): " + this);
+
+// Put any special takedown code here.
+
+ cvsDispose();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+
+// Put any custom reshape code here.
+
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent(true) == false) return;
+
+// Put drawing code here.
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+
+ if (!isSuspended()) repaint(); // Animate at full speed.
+ }
+ }
+}
diff --git a/demos/RonsDemos/dinoshade.html b/demos/RonsDemos/dinoshade.html
new file mode 100644
index 0000000..1b4fe08
--- /dev/null
+++ b/demos/RonsDemos/dinoshade.html
@@ -0,0 +1,21 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Dinoshade by Mark J. Kilgard; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Dinoshade applet
+<br>Originially written by Mark J. Kilgard
+<br>Ported to Java by Ron Cemer
+<br>Press and hold left mouse button, then drag to rotate view.
+<br>Press and hold left mouse button, then press and hold right mouse button, then drag to rotate light.
+<br>Click right mouse button for a menu of options.
+<br>NOTE: If your system does not support hardware-accelerated stenciling, this demo will run slowly unless you disable stenciling for shadows and reflections.
+<br>
+<applet code="dinoshade.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/dinoshade.java b/demos/RonsDemos/dinoshade.java
new file mode 100755
index 0000000..344fd00
--- /dev/null
+++ b/demos/RonsDemos/dinoshade.java
@@ -0,0 +1,1104 @@
+/**
+ * @(#) dinoshade.java
+ * @(#) author: Mark J. Kilgard (converted to Java by Ron Cemer)
+ */
+
+/* Copyright (c) Mark J. Kilgard, 1994, 1997. */
+
+/* This program is freely distributable without licensing fees
+ and is provided without guarantee or warrantee expressed or
+ implied. This program is -not- in the public domain. */
+
+/* Example for PC game developers to show how to *combine* texturing,
+ reflections, and projected shadows all in real-time with OpenGL.
+ Robust reflections use stenciling. Robust projected shadows
+ use both stenciling and polygon offset. PC game programmers
+ should realize that neither stenciling nor polygon offset are
+ supported by Direct3D, so these real-time rendering algorithms
+ are only really viable with OpenGL.
+
+ The program has modes for disabling the stenciling and polygon
+ offset uses. It is worth running this example with these features
+ toggled off so you can see the sort of artifacts that result.
+
+ Notice that the floor texturing, reflections, and shadowing
+ all co-exist properly. */
+
+/* When you run this program: Left mouse button controls the
+ view. Middle mouse button controls light position (left &
+ right rotates light around dino; up & down moves light
+ position up and down). Right mouse button pops up menu. */
+
+/* Check out the comments in the "redraw" routine to see how the
+ reflection blending and surface stenciling is done. You can
+ also see in "redraw" how the projected shadows are rendered,
+ including the use of stenciling and polygon offset. */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+public class dinoshade extends SimpleGLAnimApplet1
+{
+ static final float[][] bodyVerts =
+ {
+ { 0.0f, 3.0f, 0.0f},
+ { 1.0f, 1.0f, 0.0f},
+ { 5.0f, 1.0f, 0.0f},
+ { 8.0f, 4.0f, 0.0f},
+ { 10.0f, 4.0f, 0.0f},
+ { 11.0f, 5.0f, 0.0f},
+ { 11.0f, 11.5f, 0.0f},
+ { 13.0f, 12.0f, 0.0f},
+ { 13.0f, 13.0f, 0.0f},
+ { 10.0f, 13.5f, 0.0f},
+ { 13.0f, 14.0f, 0.0f},
+ { 13.0f, 15.0f, 0.0f},
+ { 11.0f, 16.0f, 0.0f},
+ { 8.0f, 16.0f, 0.0f},
+ { 7.0f, 15.0f, 0.0f},
+ { 7.0f, 13.0f, 0.0f},
+ { 8.0f, 12.0f, 0.0f},
+ { 7.0f, 11.0f, 0.0f},
+ { 6.0f, 6.0f, 0.0f},
+ { 4.0f, 3.0f, 0.0f},
+ { 3.0f, 2.0f, 0.0f},
+ { 1.0f, 2.0f, 0.0f},
+ };
+
+ static final int[][] bodyTris =
+ {
+ { 1, 0, 21 },
+ { 1, 21, 2 },
+ { 21, 20, 2 },
+ { 20, 19, 2 },
+ { 19, 3, 2 },
+ { 19, 18, 3 },
+ { 18, 4, 3 },
+ { 18, 5, 4 },
+ { 18, 6, 5 },
+ { 18, 17, 6 },
+ { 17, 16, 6 },
+ { 16, 7, 6 },
+ { 16, 8, 7 },
+ { 16, 15, 8 },
+ { 15, 9, 8 },
+ { 15, 14, 9 },
+ { 14, 13, 9 },
+ { 9, 13, 12 },
+ { 9, 12, 11 },
+ { 11, 10, 9 },
+ };
+
+ static final float[][] armVerts =
+ {
+ { 8.0f, 10.0f, 0.0f},
+ { 9.0f, 9.0f, 0.0f},
+ { 10.0f, 9.0f, 0.0f},
+ { 13.0f, 8.0f, 0.0f},
+ { 14.0f, 9.0f, 0.0f},
+ { 16.0f, 9.0f, 0.0f},
+ { 15.0f, 9.5f, 0.0f},
+ { 16.0f, 10.0f, 0.0f},
+ { 15.0f, 10.0f, 0.0f},
+ { 15.5f, 11.0f, 0.0f},
+ { 14.5f, 10.0f, 0.0f},
+ { 14.0f, 11.0f, 0.0f},
+ { 14.0f, 10.0f, 0.0f},
+ { 13.0f, 9.0f, 0.0f},
+ { 11.0f, 11.0f, 0.0f},
+ { 9.0f, 11.0f, 0.0f},
+ };
+
+ static final int[][] armTris =
+ {
+ { 0, 15, 1 },
+ { 15, 2, 1 },
+ { 15, 14, 2 },
+ { 14, 13, 2 },
+ { 13, 3, 2 },
+ { 13, 4, 3 },
+ { 13, 12, 4 },
+ { 12, 11, 10 },
+ { 12, 10, 4 },
+ { 10, 6, 4 },
+ { 6, 5, 4 },
+ { 8, 7, 6 },
+ { 10, 8, 6 },
+ { 10, 9, 8 },
+ };
+
+ static final float[][] legVerts =
+ {
+ { 8.0f, 6.0f, 0.0f},
+ { 8.0f, 4.0f, 0.0f},
+ { 9.0f, 3.0f, 0.0f},
+ { 9.0f, 2.0f, 0.0f},
+ { 8.0f, 1.0f, 0.0f},
+ { 8.0f, 0.5f, 0.0f},
+ { 9.0f, 0.0f, 0.0f},
+ { 12.0f, 0.0f, 0.0f},
+ { 10.0f, 1.0f, 0.0f},
+ { 10.0f, 2.0f, 0.0f},
+ { 12.0f, 4.0f, 0.0f},
+ { 11.0f, 6.0f, 0.0f},
+ { 10.0f, 7.0f, 0.0f},
+ { 9.0f, 7.0f, 0.0f},
+ };
+
+ static final int[][] legTris =
+ {
+ { 6, 5, 7 },
+ { 5, 8, 7 },
+ { 5, 4, 8 },
+ { 4, 3, 8 },
+ { 3, 9, 8 },
+ { 3, 2, 9 },
+ { 2, 10, 9 },
+ { 2, 1, 10 },
+ { 1, 0, 10 },
+ { 0, 11, 10 },
+ { 0, 12, 11 },
+ { 0, 13, 12 },
+ };
+
+ static final float[][] eyeVerts =
+ {
+ { 8.75f, 15.0f, 0.0f},
+ { 9.0f, 14.7f, 0.0f},
+ { 9.6f, 14.7f, 0.0f},
+ { 10.1f, 15.0f, 0.0f},
+ { 9.6f, 15.25f, 0.0f},
+ { 9.0f, 15.25f, 0.0f},
+ };
+
+ static final int[][] eyeTris =
+ {
+ { 1, 0, 2 },
+ { 0, 5, 2 },
+ { 5, 4, 2 },
+ { 4, 3, 2 },
+ };
+
+ static final float floorVertices[][] =
+ {
+ { -20.0f, 0.0f, 20.0f },
+ { 20.0f, 0.0f, 20.0f },
+ { 20.0f, 0.0f, -20.0f },
+ { -20.0f, 0.0f, -20.0f },
+ };
+
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new dinoshadeCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ public static void main( String args[] ) {
+ dinoshade applet =
+ new dinoshade();
+
+ Frame f = new Frame("dinoshade");
+
+ f.addWindowListener( new WindowAdapter()
+ {
+ public void windowClosed(WindowEvent e)
+ {
+ System.exit(0);
+ }
+ public void windowClosing(WindowEvent e)
+ {
+ windowClosed(e);
+ }
+ }
+ );
+
+ f.setLayout(new BorderLayout());
+ f.add("Center", applet);
+ applet.setSize(500,300);
+ applet.init();
+ applet.start();
+ Dimension ps = applet.getPreferredSize();
+ f.setBounds(-100,-100,99,99);
+ f.setVisible(true);
+ f.setVisible(false);
+ Insets i = f.getInsets();
+ f.setBounds(0,0,
+ ps.width+i.left+i.right,
+ ps.height+i.top+i.bottom);
+ f.setVisible(true);
+ }
+
+ /* Local GLAnimCanvas extension class */
+
+
+ private class dinoshadeCanvas extends GLAnimCanvas
+ implements MouseListener, MouseMotionListener, ActionListener
+ {
+ private static final double M_PI = 3.14159265;
+
+ // Menu options:
+ private static final String M_NONE = "-----------------------";
+ private static final String M_MOTION = "Toggle motion";
+ private static final String M_LIGHT = "Toggle light";
+ private static final String M_TEXTURE = "Toggle texture";
+ private static final String M_SHADOWS = "Toggle shadows";
+ private static final String M_REFLECTION = "Toggle reflection";
+ private static final String M_DINOSAUR = "Toggle dinosaur";
+ private static final String M_STENCIL_REFLECTION = "Toggle reflection stenciling";
+ private static final String M_STENCIL_SHADOW = "Toggle shadow stenciling";
+ private static final String M_OFFSET_SHADOW = "Toggle shadow offset";
+ private static final String M_POSITIONAL = "Positional light";
+ private static final String M_DIRECTIONAL = "Directional light";
+
+ private PopupMenu menu = null;
+ private boolean menu_showing = false;
+ private boolean save_suspended = false;
+
+ /* Variables controlling various rendering modes. */
+ private boolean stencilReflection = true, stencilShadow = true, offsetShadow = true;
+ private boolean renderShadow = true, renderDinosaur = true, renderReflection = true;
+ private boolean linearFiltering = false, useTexture = true;
+// private boolean useMipmaps = false;
+ private boolean lightSwitch = true;
+ private boolean directionalLight = true;
+
+ /* Time varying or user-controled variables. */
+ private float jump = 0.0f;
+ private float lightAngle = 0.0f, lightHeight = 20.0f;
+ private float angle = -150.0f; /* in degrees */
+ private float angle2 = 30.0f; /* in degrees */
+
+ private boolean moving = false;
+ private int startx, starty;
+ private boolean lightMoving = false;
+ private int lightStartX, lightStartY;
+
+ private final float bodyWidth = 3.0f;
+
+ private final float[] lightPosition = new float[4];
+ private final float lightColor[] = {0.8f, 1.0f, 0.8f, 1.0f}; /* green-tinted */
+ private final float skinColor[] = {0.1f, 1.0f, 0.1f, 1.0f};
+ private final float eyeColor[] = {1.0f, 0.2f, 0.2f, 1.0f};
+ private final int X = 0, Y = 1, Z = 2, W = 3;
+ private final int A = 0, B = 1, C = 2, D = 3;
+
+ /* Enumerants for refering to display lists. */
+ private static final int
+ BODY_SIDE = 1, BODY_EDGE = 2, BODY_WHOLE = 3,
+ ARM_SIDE = 4, ARM_EDGE = 5, ARM_WHOLE = 6,
+ LEG_SIDE = 7, LEG_EDGE = 8, LEG_WHOLE = 9,
+ EYE_SIDE = 10, EYE_EDGE = 11, EYE_WHOLE = 12;
+ private float floorPlane[] = new float[4];
+ private float floorShadow[] = new float[16];
+
+ public dinoshadeCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ setAnimateFps(30.0);
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ stencilBits = 3;
+ }
+
+ public void init()
+ {
+ int [] res=new int[6];
+
+ gl.glGetIntegerv(GL_STENCIL_BITS,res);
+
+ System.out.println("init(): " + this + "\n\t" +
+ "Stencil bits are "+res[0] +"\n\t" +
+ "IsOwnCreatedWindow: "+createOwnWindow);
+
+ reshape(getSize().width, getSize().height);
+
+ makeDinosaur();
+
+ gl.glPolygonOffset(-2.0f, -1.0f);
+
+ gl.glEnable(GL_CULL_FACE);
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glEnable(GL_TEXTURE_2D);
+ gl.glLineWidth(3.0f);
+
+ gl.glMatrixMode(GL_PROJECTION);
+ glu.gluPerspective
+ ( /* field of view in degree */ 40.0f,
+ /* aspect ratio */ 1.0f,
+ /* Z near */ 20.0f,
+ /* Z far */ 100.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ glu.gluLookAt
+ (0.0f, 8.0f, 60.0f, /* eye is at (0,8,60) */
+ 0.0f, 8.0f, 0.0f, /* center is at (0,8,0) */
+ 0.0f, 1.0f, 0.0f); /* up is in postivie Y direction */
+
+ gl.glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, 1);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, lightColor);
+ gl.glLightf(GL_LIGHT0, GL_CONSTANT_ATTENUATION, 0.1f);
+ gl.glLightf(GL_LIGHT0, GL_LINEAR_ATTENUATION, 0.05f);
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_LIGHTING);
+
+ makeFloorTexture();
+
+ /* Setup floor plane for projected shadow calculations. */
+ findPlane
+ (floorPlane,
+ floorVertices[1],
+ floorVertices[2],
+ floorVertices[3]);
+
+ glj.gljCheckGL();
+
+ menu = new PopupMenu("Options");
+ menu.add(M_MOTION);
+ menu.add(M_NONE);
+ menu.add(M_LIGHT);
+ menu.add(M_TEXTURE);
+ menu.add(M_SHADOWS);
+ menu.add(M_REFLECTION);
+ menu.add(M_DINOSAUR);
+ menu.add(M_NONE);
+ menu.add(M_STENCIL_REFLECTION);
+ menu.add(M_STENCIL_SHADOW);
+ menu.add(M_OFFSET_SHADOW);
+ menu.add(M_NONE);
+ menu.add(M_POSITIONAL);
+ menu.add(M_DIRECTIONAL);
+ menu.addActionListener(this);
+ add(menu);
+
+ addMouseListener(this);
+ addMouseMotionListener(this);
+ }
+
+ public void doCleanup()
+ {
+ removeMouseListener(this);
+ removeMouseMotionListener(this);
+ menu.removeActionListener(this);
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ if (!isSuspended())
+ {
+ long ltime =
+ System.currentTimeMillis() % 3142L; //approximate 2*PI*500
+ float time = (float)(((double)ltime)/500.0);
+ jump = 4.0f * (float)Math.abs(Math.sin(time)*0.5);
+ if (!lightMoving) lightAngle += 0.0f;
+ }
+
+ /* Clear; default stencil clears to zero. */
+ if ((stencilReflection && renderReflection) || (stencilShadow && renderShadow))
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
+ else
+ /* Avoid clearing stencil when not using it. */
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ /* Reposition the light source. */
+ lightPosition[0] = 12*(float)Math.cos(lightAngle);
+ lightPosition[1] = lightHeight;
+ lightPosition[2] = 12*(float)Math.sin(lightAngle);
+ if (directionalLight)
+ lightPosition[3] = 0.0f;
+ else
+ lightPosition[3] = 1.0f;
+
+ shadowMatrix(floorShadow, floorPlane, lightPosition);
+
+ gl.glPushMatrix();
+
+ /* Perform scene rotations based on user mouse input. */
+ gl.glRotatef(angle2, 1.0f, 0.0f, 0.0f);
+ gl.glRotatef(angle, 0.0f, 1.0f, 0.0f);
+
+ /* Tell GL new light source position. */
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, lightPosition);
+
+ if (renderReflection)
+ {
+ if (stencilReflection)
+ {
+ /* We can eliminate the visual "artifact" of seeing the "flipped"
+ dinosaur underneath the floor by using stencil. The idea is
+ draw the floor without color or depth update but so that
+ a stencil value of one is where the floor will be. Later when
+ rendering the dinosaur reflection, we will only update pixels
+ with a stencil value of 1 to make sure the reflection only
+ lives on the floor, not below the floor. */
+
+ /* Don't update color or depth. */
+ gl.glDisable(GL_DEPTH_TEST);
+ gl.glColorMask(false, false, false, false);
+
+ /* Draw 1 into the stencil buffer. */
+ gl.glEnable(GL_STENCIL_TEST);
+ gl.glStencilOp(GL_REPLACE, GL_REPLACE, GL_REPLACE);
+ gl.glStencilFunc(GL_ALWAYS, 1, 0xffffffff);
+
+ /* Now render floor; floor pixels just get their stencil set to 1. */
+ drawFloor();
+
+ /* Re-enable update of color and depth. */
+ gl.glColorMask(true, true, true, true);
+ gl.glEnable(GL_DEPTH_TEST);
+
+ /* Now, only render where stencil is set to 1. */
+ gl.glStencilFunc(GL_EQUAL, 1, 0xffffffff); /* draw if ==1 */
+ gl.glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP);
+ }
+
+ gl.glPushMatrix();
+
+ /* The critical reflection step: Reflect dinosaur through the floor
+ (the Y=0 plane) to make a relection. */
+
+ gl.glScalef(1.0f, -1.0f, 1.0f);
+
+ /* Reflect the light position. */
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, lightPosition);
+
+ /* To avoid our normals getting reversed and hence botched lighting
+ on the reflection, turn on normalize. */
+ gl.glEnable(GL_NORMALIZE);
+ gl.glCullFace(GL_FRONT);
+
+ /* Draw the reflected dinosaur. */
+ drawDinosaur();
+
+ /* Disable noramlize again and re-enable back face culling. */
+ gl.glDisable(GL_NORMALIZE);
+ gl.glCullFace(GL_BACK);
+
+ gl.glPopMatrix();
+
+ /* Switch back to the unreflected light position. */
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, lightPosition);
+
+ if (stencilReflection) gl.glDisable(GL_STENCIL_TEST);
+ }
+
+ /* Back face culling will get used to only draw either the top or the
+ bottom floor. This let's us get a floor with two distinct
+ appearances. The top floor surface is reflective and kind of red.
+ The bottom floor surface is not reflective and blue. */
+
+ /* Draw "bottom" of floor in blue. */
+ gl.glFrontFace(GL_CW); /* Switch face orientation. */
+ gl.glColor4f(0.1f, 0.1f, 0.7f, 1.0f);
+ drawFloor();
+ gl.glFrontFace(GL_CCW);
+
+ if (renderShadow)
+ {
+ if (stencilShadow)
+ {
+ /* Draw the floor with stencil value 3. This helps us only
+ draw the shadow once per floor pixel (and only on the
+ floor pixels). */
+ gl.glEnable(GL_STENCIL_TEST);
+ gl.glStencilFunc(GL_ALWAYS, 3, 0xffffffff);
+ gl.glStencilOp(GL_KEEP, GL_KEEP, GL_REPLACE);
+ }
+ }
+
+ /* Draw "top" of floor. Use blending to blend in reflection. */
+ gl.glEnable(GL_BLEND);
+ gl.glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+ gl.glColor4f(0.7f, 0.0f, 0.0f, 0.3f);
+ gl.glColor4f(1.0f, 1.0f, 1.0f, 0.3f);
+ drawFloor();
+ gl.glDisable(GL_BLEND);
+
+ /* Draw "actual" dinosaur, not its reflection. */
+ if (renderDinosaur) drawDinosaur();
+
+ if (renderShadow)
+ {
+ /* Render the projected shadow. */
+ if (stencilShadow)
+ {
+ /* Now, only render where stencil is set above 2 (ie, 3 where
+ the top floor is). Update stencil with 2 where the shadow
+ gets drawn so we don't redraw (and accidently reblend) the
+ shadow). */
+ gl.glStencilFunc(GL_LESS, 2, 0xffffffff); /* draw if ==1 */
+ gl.glStencilOp(GL_REPLACE, GL_REPLACE, GL_REPLACE);
+ }
+ /* To eliminate depth buffer artifacts, we use polygon offset
+ to raise the depth of the projected shadow slightly so
+ that it does not depth buffer alias with the floor. */
+ if (offsetShadow) gl.glEnable(GL_POLYGON_OFFSET_FILL);
+
+ /* Render 50% black shadow color on top of whatever the
+ floor appareance is. */
+ gl.glEnable(GL_BLEND);
+ gl.glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+ gl.glDisable(GL_LIGHTING); /* Force the 50% black. */
+ gl.glColor4f(0.0f, 0.0f, 0.0f, 0.5f);
+
+ gl.glPushMatrix();
+ /* Project the shadow. */
+ gl.glMultMatrixf(floorShadow);
+ drawDinosaur();
+ gl.glPopMatrix();
+
+ gl.glDisable(GL_BLEND);
+ gl.glEnable(GL_LIGHTING);
+
+ if (offsetShadow) gl.glDisable(GL_POLYGON_OFFSET_FILL);
+ if (stencilShadow) gl.glDisable(GL_STENCIL_TEST);
+ }
+
+ gl.glPushMatrix();
+ gl.glDisable(GL_LIGHTING);
+ gl.glColor3f(1.0f, 1.0f, 0.0f);
+ if (directionalLight)
+ {
+ /* Draw an arrowhead. */
+ gl.glDisable(GL_CULL_FACE);
+ gl.glTranslatef(lightPosition[0], lightPosition[1], lightPosition[2]);
+ gl.glRotatef(lightAngle * (float)(-180.0 / M_PI), 0, 1, 0);
+ gl.glRotatef((float)Math.atan(lightHeight/12) * (float)(180.0 / M_PI), 0, 0, 1);
+ gl.glBegin(GL_TRIANGLE_FAN);
+ gl.glVertex3f(0, 0, 0);
+ gl.glVertex3f(2, 1, 1);
+ gl.glVertex3f(2, -1, 1);
+ gl.glVertex3f(2, -1, -1);
+ gl.glVertex3f(2, 1, -1);
+ gl.glVertex3f(2, 1, 1);
+ gl.glEnd();
+ /* Draw a white line from light direction. */
+ gl.glColor3f(1.0f, 1.0f, 1.0f);
+ gl.glBegin(GL_LINES);
+ gl.glVertex3f(0, 0, 0);
+ gl.glVertex3f(5, 0, 0);
+ gl.glEnd();
+ gl.glEnable(GL_CULL_FACE);
+ }
+ else
+ {
+ /* Draw a yellow ball at the light source. */
+ gl.glTranslatef(lightPosition[0], lightPosition[1], lightPosition[2]);
+ int qobj = glu.gluNewQuadric();
+ glu.gluQuadricOrientation(qobj,GLU_OUTSIDE);
+ glu.gluQuadricNormals(qobj,GLU_SMOOTH);
+ glu.gluQuadricTexture(qobj,false);
+ glu.gluSphere(qobj,1.0f,5,5);
+ glu.gluDeleteQuadric(qobj);
+ }
+ gl.glEnable(GL_LIGHTING);
+ gl.glPopMatrix();
+
+ gl.glPopMatrix();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+
+ // if (!isSuspended()) repaint(); // Animate at full speed.
+ }
+
+ private void makeDinosaur()
+ {
+ extrudeSolidFromPolygon
+ (bodyVerts,
+ bodyTris,
+ bodyWidth,
+ BODY_SIDE,
+ BODY_EDGE,
+ BODY_WHOLE);
+ extrudeSolidFromPolygon
+ (armVerts,
+ armTris,
+ bodyWidth/4,
+ ARM_SIDE,
+ ARM_EDGE,
+ ARM_WHOLE);
+ extrudeSolidFromPolygon
+ (legVerts,
+ legTris,
+ bodyWidth/2,
+ LEG_SIDE,
+ LEG_EDGE,
+ LEG_WHOLE);
+ extrudeSolidFromPolygon
+ (eyeVerts,
+ eyeTris,
+ bodyWidth+0.2f,
+ EYE_SIDE,
+ EYE_EDGE,
+ EYE_WHOLE);
+ }
+
+ private void drawDinosaur()
+ {
+ gl.glPushMatrix();
+ /* Translate the dinosaur to be at (0,8,0). */
+ gl.glTranslatef(-8, 0, -bodyWidth / 2);
+ gl.glTranslatef(0.0f, jump, 0.0f);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, skinColor);
+ gl.glCallList(BODY_WHOLE);
+ gl.glTranslatef(0.0f, 0.0f, bodyWidth);
+ gl.glCallList(ARM_WHOLE);
+ gl.glCallList(LEG_WHOLE);
+ gl.glTranslatef(0.0f, 0.0f, -bodyWidth - bodyWidth / 4);
+ gl.glCallList(ARM_WHOLE);
+ gl.glTranslatef(0.0f, 0.0f, -bodyWidth / 4);
+ gl.glCallList(LEG_WHOLE);
+ gl.glTranslatef(0.0f, 0.0f, bodyWidth / 2 - 0.1f);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, eyeColor);
+ gl.glCallList(EYE_WHOLE);
+ gl.glPopMatrix();
+ }
+
+ private void makeFloorTexture()
+ {
+ /* Nice floor texture tiling pattern. */
+ String circles[] =
+ {
+ "....xxxx........",
+ "..xxxxxxxx......",
+ ".xxxxxxxxxx.....",
+ ".xxx....xxx.....",
+ "xxx......xxx....",
+ "xxx......xxx....",
+ "xxx......xxx....",
+ "xxx......xxx....",
+ ".xxx....xxx.....",
+ ".xxxxxxxxxx.....",
+ "..xxxxxxxx......",
+ "....xxxx........",
+ "................",
+ "................",
+ "................",
+ "................"
+ };
+ byte floorTexture[] = new byte[16*16*3];
+
+ /* Setup RGB image for the texture. */
+ int idx = 0;
+ for (int t = 0; t < 16; t++)
+ {
+ for (int s = 0; s < 16; s++)
+ {
+ if (circles[t].charAt(s) == 'x')
+ {
+ /* Nice blue. */
+ floorTexture[idx++] = (byte)0x1f;
+ floorTexture[idx++] = (byte)0x1f;
+ floorTexture[idx++] = (byte)0x8f;
+ }
+ else
+ {
+ /* Light gray. */
+ floorTexture[idx++] = (byte)0xca;
+ floorTexture[idx++] = (byte)0xca;
+ floorTexture[idx++] = (byte)0xca;
+ }
+ }
+ }
+
+ gl.glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
+
+// if (useMipmaps)
+// {
+// gl.glTexParameteri
+// (GL_TEXTURE_2D,
+// GL_TEXTURE_MIN_FILTER,
+// GL_LINEAR_MIPMAP_LINEAR);
+// glu.gluBuild2DMipmaps
+// (GL_TEXTURE_2D,3,16,16,GL_RGB,GL_UNSIGNED_BYTE,floorTexture);
+// }
+// else
+ {
+ if (linearFiltering)
+ {
+ gl.glTexParameteri
+ (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
+ gl.glTexParameteri
+ (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ }
+ else
+ {
+ gl.glTexParameteri
+ (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
+ gl.glTexParameteri
+ (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
+ }
+ gl.glTexImage2D
+ (GL_TEXTURE_2D,0,3,16,16,0,GL_RGB,GL_UNSIGNED_BYTE,floorTexture);
+ }
+ }
+
+ /* Draw a floor (possibly textured). */
+ private void drawFloor()
+ {
+ gl.glDisable(GL_LIGHTING);
+ if (useTexture) gl.glEnable(GL_TEXTURE_2D);
+ gl.glBegin(GL_QUADS);
+ gl.glTexCoord2f(0.0f, 0.0f);
+ gl.glVertex3fv(floorVertices[0]);
+ gl.glTexCoord2f(0.0f, 16.0f);
+ gl.glVertex3fv(floorVertices[1]);
+ gl.glTexCoord2f(16.0f, 16.0f);
+ gl.glVertex3fv(floorVertices[2]);
+ gl.glTexCoord2f(16.0f, 0.0f);
+ gl.glVertex3fv(floorVertices[3]);
+ gl.glEnd();
+ if (useTexture) gl.glDisable(GL_TEXTURE_2D);
+ gl.glEnable(GL_LIGHTING);
+ }
+
+ /* create a matrix that will project the desired shadow */
+ void shadowMatrix(float shadowMat[], float groundplane[], float lightpos[])
+ {
+ float dot;
+
+ /* find dot product between light position vector
+ and ground plane normal */
+ dot =
+ groundplane[0] * lightpos[0] +
+ groundplane[1] * lightpos[1] +
+ groundplane[2] * lightpos[2] +
+ groundplane[3] * lightpos[3];
+
+ shadowMat[0] = dot - lightpos[0] * groundplane[0];
+ shadowMat[4] = -lightpos[0] * groundplane[1];
+ shadowMat[8] = -lightpos[0] * groundplane[2];
+ shadowMat[12] = -lightpos[0] * groundplane[3];
+
+ shadowMat[1] = -lightpos[1] * groundplane[0];
+ shadowMat[5] = dot - lightpos[1] * groundplane[1];
+ shadowMat[9] = -lightpos[1] * groundplane[2];
+ shadowMat[13] = -lightpos[1] * groundplane[3];
+
+ shadowMat[2] = -lightpos[2] * groundplane[0];
+ shadowMat[6] = -lightpos[2] * groundplane[1];
+ shadowMat[10] = dot - lightpos[2] * groundplane[2];
+ shadowMat[14] = -lightpos[2] * groundplane[3];
+
+ shadowMat[3] = -lightpos[3] * groundplane[0];
+ shadowMat[7] = -lightpos[3] * groundplane[1];
+ shadowMat[11] = -lightpos[3] * groundplane[2];
+ shadowMat[15] = dot - lightpos[3] * groundplane[3];
+ }
+
+ /* find the plane equation given 3 points */
+ void findPlane(float plane[], float v0[], float v1[], float v2[])
+ {
+ float vec0[] = new float[3], vec1[] = new float[3];
+
+ /* need 2 vectors to find cross product */
+ vec0[X] = v1[X] - v0[X];
+ vec0[Y] = v1[Y] - v0[Y];
+ vec0[Z] = v1[Z] - v0[Z];
+
+ vec1[X] = v2[X] - v0[X];
+ vec1[Y] = v2[Y] - v0[Y];
+ vec1[Z] = v2[Z] - v0[Z];
+
+ /* find cross product to get A, B, and C of plane equation */
+ plane[A] = vec0[Y] * vec1[Z] - vec0[Z] * vec1[Y];
+ plane[B] = -(vec0[X] * vec1[Z] - vec0[Z] * vec1[X]);
+ plane[C] = vec0[X] * vec1[Y] - vec0[Y] * vec1[X];
+ plane[D] = -(plane[A]*v0[X] + plane[B]*v0[Y] + plane[C]*v0[Z]);
+ }
+
+ /* Mark Kilgard's tessellation code from the "dino" demos.
+ Bug fixes and re-write without GLU tesselator
+ by Ronald B. Cemer */
+ private void extrudeSolidFromPolygon
+ (float data[][],
+ int outlineTriIndices[][],
+ float thickness,
+ int side,
+ int edge,
+ int whole)
+ {
+ double dx, dy, len;
+ int i, j0, j1, j2;
+ int min, max, range;
+ float x0, y0, x1, y1;
+ int count = data.length;
+ int tricount = outlineTriIndices.length;
+
+ gl.glNewList(side, GL_COMPILE);
+ gl.glShadeModel(GL_SMOOTH);
+ gl.glBegin(GL_TRIANGLES);
+ for (i = 0; i < tricount; i++)
+ {
+/* *+*+* Note that we use the triangle indices in reverse order here
+ because they are specified in reverse order in the arrays. */
+ j0 = outlineTriIndices[i][2];
+ j1 = outlineTriIndices[i][1];
+ j2 = outlineTriIndices[i][0];
+ gl.glVertex3f(data[j0][0],data[j0][1],0.0f);
+ gl.glVertex3f(data[j1][0],data[j1][1],0.0f);
+ gl.glVertex3f(data[j2][0],data[j2][1],0.0f);
+ }
+ gl.glEnd();
+ gl.glEndList();
+
+ gl.glNewList(edge, GL_COMPILE);
+ gl.glShadeModel(GL_FLAT); /* flat shade keeps angular hands
+ from being "smoothed" */
+ for (min = max = 0; min < count; min = max)
+ {
+ for (max = min+1; max < count; max++)
+ if (data[max][2] != 0.0f) break;
+ range = max-min;
+ gl.glBegin(GL_QUAD_STRIP);
+ for (i = min; i <= max; i++)
+ {
+ j0 = i;
+ j1 = i+1;
+ if (j0 >= max) j0 -= range;
+ if (j1 >= max) j1 -= range;
+ x0 = data[j0][0];
+ y0 = data[j0][1];
+ x1 = data[j1][0];
+ y1 = data[j1][1];
+ gl.glVertex3f(x0, y0, 0.0f);
+ gl.glVertex3f(x0, y0, thickness);
+ // Normals
+ dx = y1 - y0;
+ dy = x0 - x1;
+ len = Math.sqrt(dx * dx + dy * dy);
+ gl.glNormal3f((float)(dx / len), (float)(dy / len), 0.0f);
+ }
+ gl.glEnd();
+ }
+ gl.glEndList();
+
+ gl.glNewList(whole, GL_COMPILE);
+ gl.glFrontFace(GL_CW);
+
+ gl.glCallList(edge);
+
+ gl.glNormal3f(0.0f, 0.0f, -1.0f);
+ gl.glCallList(side);
+ gl.glPushMatrix();
+ gl.glTranslatef(0.0f, 0.0f, thickness);
+ gl.glFrontFace(GL_CCW);
+ gl.glNormal3f(0.0f, 0.0f, 1.0f);
+ gl.glCallList(side);
+ gl.glPopMatrix();
+
+ gl.glEndList();
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered(MouseEvent evt)
+ {
+ }
+
+ public void mouseExited(MouseEvent evt)
+ {
+ }
+
+ public void mousePressed(MouseEvent evt)
+ {
+ // Left button moves view.
+ // Both buttons moves light.
+ // Right button pops up menu.
+ if (!menu_showing)
+ {
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) == 0)
+ {
+ moving = true;
+ startx = evt.getX();
+ starty = evt.getY();
+ }
+ else if (moving)
+ {
+ moving = false;
+ lightMoving = true;
+ lightStartX = evt.getX();
+ lightStartY = evt.getY();
+ }
+ else
+ {
+ // Must be right mouse button.
+ menu_showing = true;
+ save_suspended = isSuspended();
+ if (!save_suspended)
+ {
+ setSuspended(true);
+ repaint(100);
+ try
+ {
+ Thread.currentThread().sleep(200);
+ }
+ catch (Exception e)
+ { }
+ }
+ menu.show(this,evt.getX(),evt.getY());
+ }
+ }
+ else
+ {
+ menu_showing = false;
+ setSuspended(save_suspended);
+ }
+ }
+
+ public void mouseReleased(MouseEvent evt)
+ {
+ lightMoving = false;
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) == 0)
+ {
+ // Must be left button.
+ moving = false;
+ }
+ }
+
+ public void mouseClicked(MouseEvent evt)
+ {
+ }
+
+ // Methods required for the implementation of MouseMotionListener
+ public void mouseDragged(MouseEvent evt)
+ {
+ int x = evt.getX(), y = evt.getY();
+ if (moving)
+ {
+ angle += (x - startx);
+ while (angle < 0.0f) angle += 360.0f;
+ while (angle >= 360.0f) angle -= 360.0f;
+ angle2 += (y - starty);
+ if (angle2 < -180.0f)
+ angle2 = -180.0f;
+ else if (angle2 > 180.0f)
+ angle2 = 180.0f;
+ startx = x;
+ starty = y;
+ if (isSuspended()) repaint();
+ }
+ else if (lightMoving)
+ {
+ lightAngle += (lightStartX - x)/40.0f;
+ while (lightAngle < 0.0f) lightAngle += 360.0f;
+ while (lightAngle >= 360.0f) lightAngle -= 360.0f;
+ lightHeight += (lightStartY - y)/20.0f;
+ lightStartX = x;
+ lightStartY = y;
+ if (isSuspended()) repaint();
+ }
+ }
+
+ public void mouseMoved(MouseEvent evt)
+ {
+ }
+
+ // Method required for the implementation of ActionListener
+ public void actionPerformed(ActionEvent evt)
+ {
+ if (glj.gljMakeCurrent() == false) return;
+ boolean dorepaint = false;
+ String c = evt.getActionCommand();
+
+ if (c.equals(M_MOTION))
+ {
+ if (menu_showing)
+ save_suspended = !save_suspended;
+ else
+ setSuspended(!isSuspended());
+ dorepaint = true;
+ }
+ else if (c.equals(M_LIGHT))
+ {
+ lightSwitch = !lightSwitch;
+ if (lightSwitch)
+ gl.glEnable(GL_LIGHT0);
+ else
+ gl.glDisable(GL_LIGHT0);
+ dorepaint = true;
+ }
+ else if (c.equals(M_TEXTURE))
+ {
+ useTexture = !useTexture;
+ dorepaint = true;
+ }
+ else if (c.equals(M_SHADOWS))
+ {
+ renderShadow = !renderShadow;
+ dorepaint = true;
+ }
+ else if (c.equals(M_REFLECTION))
+ {
+ renderReflection = !renderReflection;
+ dorepaint = true;
+ }
+ else if (c.equals(M_DINOSAUR))
+ {
+ renderDinosaur = !renderDinosaur;
+ dorepaint = true;
+ }
+ else if (c.equals(M_STENCIL_REFLECTION))
+ {
+ stencilReflection = !stencilReflection;
+ dorepaint = true;
+ }
+ else if (c.equals(M_STENCIL_SHADOW))
+ {
+ stencilShadow = !stencilShadow;
+ dorepaint = true;
+ }
+ else if (c.equals(M_OFFSET_SHADOW))
+ {
+ offsetShadow = !offsetShadow;
+ dorepaint = true;
+ }
+ else if (c.equals(M_POSITIONAL))
+ {
+ directionalLight = false;
+ dorepaint = true;
+ }
+ else if (c.equals(M_DIRECTIONAL))
+ {
+ directionalLight = true;
+ dorepaint = true;
+ }
+
+ glj.gljFree();
+ if (menu_showing)
+ {
+ menu_showing = false;
+ setSuspended(save_suspended);
+ }
+ if ( (isSuspended()) && (dorepaint) ) repaint();
+ }
+ }
+}
diff --git a/demos/RonsDemos/dinoshade_plugin13.html b/demos/RonsDemos/dinoshade_plugin13.html
new file mode 100644
index 0000000..da6f965
--- /dev/null
+++ b/demos/RonsDemos/dinoshade_plugin13.html
@@ -0,0 +1,52 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Dinoshade by Mark J. Kilgard; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Dinoshade applet
+<br>Originially written by Mark J. Kilgard
+<br>Ported to Java by Ron Cemer
+<br>Press and hold left mouse button, then drag to rotate view.
+<br>Press and hold left mouse button, then press and hold right mouse button, then drag to rotate light.
+<br>Click right mouse button for a menu of options.
+<br>NOTE: If your system does not support hardware-accelerated stenciling, this demo will run slowly unless you disable stenciling for shadows and reflections.
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "dinoshade.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "dinoshade.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "dinoshade.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "dinoshade.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/dof.html b/demos/RonsDemos/dof.html
new file mode 100644
index 0000000..b614546
--- /dev/null
+++ b/demos/RonsDemos/dof.html
@@ -0,0 +1,17 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>DOF by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+DOF applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>
+<applet code="dof.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/dof.java b/demos/RonsDemos/dof.java
new file mode 100644
index 0000000..58d4e1a
--- /dev/null
+++ b/demos/RonsDemos/dof.java
@@ -0,0 +1,513 @@
+/**
+ * @(#) dof.java
+ * @(#) author: Silicon Graphics (converted to Java by Ron Cemer)
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+
+/*
+ * Copyright (c) 1993-1997, Silicon Graphics, Inc.
+ * ALL RIGHTS RESERVED
+ * Permission to use, copy, modify, and distribute this software for
+ * any purpose and without fee is hereby granted, provided that the above
+ * copyright notice appear in all copies and that both the copyright notice
+ * and this permission notice appear in supporting documentation, and that
+ * the name of Silicon Graphics, Inc. not be used in advertising
+ * or publicity pertaining to distribution of the software without specific,
+ * written prior permission.
+ *
+ * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
+ * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
+ * GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
+ * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
+ * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
+ * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
+ * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN
+ * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
+ * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * US Government Users Restricted Rights
+ * Use, duplication, or disclosure by the Government is subject to
+ * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
+ * (c)(1)(ii) of the Rights in Technical Data and Computer Software
+ * clause at DFARS 252.227-7013 and/or in similar or successor
+ * clauses in the FAR or the DOD or NASA FAR Supplement.
+ * Unpublished-- rights reserved under the copyright laws of the
+ * United States. Contractor/manufacturer is Silicon Graphics,
+ * Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
+ *
+ * OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
+ */
+
+/*
+ * This program demonstrates use of the accumulation buffer to
+ * create an out-of-focus depth-of-field effect. The teapots
+ * are drawn several times into the accumulation buffer. The
+ * viewing volume is jittered, except at the focal point, where
+ * the viewing volume is at the same position, each time. In
+ * this case, the gold teapot remains in focus.
+ */
+
+public class dof extends Applet
+{
+ // Data for drawing teapots:
+ /* Rim, body, lid, and bottom data must be reflected in x and
+ y; handle and spout data across the y axis only. */
+ private static final int patchdata[][] =
+ {
+ /* rim */
+ {102, 103, 104, 105, 4, 5, 6, 7, 8, 9, 10, 11,
+ 12, 13, 14, 15},
+ /* body */
+ {12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27},
+ {24, 25, 26, 27, 29, 30, 31, 32, 33, 34, 35, 36,
+ 37, 38, 39, 40},
+ /* lid */
+ {96, 96, 96, 96, 97, 98, 99, 100, 101, 101, 101,
+ 101, 0, 1, 2, 3,},
+ {0, 1, 2, 3, 106, 107, 108, 109, 110, 111, 112,
+ 113, 114, 115, 116, 117},
+ /* bottom */
+ {118, 118, 118, 118, 124, 122, 119, 121, 123, 126,
+ 125, 120, 40, 39, 38, 37},
+ /* handle */
+ {41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
+ 53, 54, 55, 56},
+ {53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
+ 28, 65, 66, 67},
+ /* spout */
+ {68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
+ 80, 81, 82, 83},
+ {80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91,
+ 92, 93, 94, 95}
+ };
+ private static final float cpdata[][] =
+ {
+ {0.2f, 0.0f, 2.7f}, {0.2f, -0.112f, 2.7f}, {0.112f, -0.2f, 2.7f}, {0.0f,
+ -0.2f, 2.7f}, {1.3375f, 0.0f, 2.53125f}, {1.3375f, -0.749f, 2.53125f},
+ {0.749f, -1.3375f, 2.53125f}, {0.0f, -1.3375f, 2.53125f}, {1.4375f,
+ 0.0f, 2.53125f}, {1.4375f, -0.805f, 2.53125f}, {0.805f, -1.4375f,
+ 2.53125f}, {0.0f, -1.4375f, 2.53125f}, {1.5f, 0.0f, 2.4f}, {1.5f, -0.84f,
+ 2.4f}, {0.84f, -1.5f, 2.4f}, {0.0f, -1.5f, 2.4f}, {1.75f, 0.0f, 1.875f},
+ {1.75f, -0.98f, 1.875f}, {0.98f, -1.75f, 1.875f}, {0.0f, -1.75f,
+ 1.875f}, {2f, 0.0f, 1.35f}, {2f, -1.12f, 1.35f}, {1.12f, -2f, 1.35f},
+ {0.0f, -2f, 1.35f}, {2f, 0.0f, 0.9f}, {2f, -1.12f, 0.9f}, {1.12f, -2f,
+ 0.9f}, {0.0f, -2f, 0.9f}, {-2f, 0.0f, 0.9f}, {2f, 0.0f, 0.45f}, {2f, -1.12f,
+ 0.45f}, {1.12f, -2f, 0.45f}, {0.0f, -2f, 0.45f}, {1.5f, 0.0f, 0.225f},
+ {1.5f, -0.84f, 0.225f}, {0.84f, -1.5f, 0.225f}, {0.0f, -1.5f, 0.225f},
+ {1.5f, 0.0f, 0.15f}, {1.5f, -0.84f, 0.15f}, {0.84f, -1.5f, 0.15f}, {0.0f,
+ -1.5f, 0.15f}, {-1.6f, 0.0f, 2.025f}, {-1.6f, -0.3f, 2.025f}, {-1.5f,
+ -0.3f, 2.25f}, {-1.5f, 0.0f, 2.25f}, {-2.3f, 0.0f, 2.025f}, {-2.3f, -0.3f,
+ 2.025f}, {-2.5f, -0.3f, 2.25f}, {-2.5f, 0.0f, 2.25f}, {-2.7f, 0.0f,
+ 2.025f}, {-2.7f, -0.3f, 2.025f}, {-3f, -0.3f, 2.25f}, {-3f, 0.0f,
+ 2.25f}, {-2.7f, 0.0f, 1.8f}, {-2.7f, -0.3f, 1.8f}, {-3f, -0.3f, 1.8f},
+ {-3f, 0.0f, 1.8f}, {-2.7f, 0.0f, 1.575f}, {-2.7f, -0.3f, 1.575f}, {-3f,
+ -0.3f, 1.35f}, {-3f, 0.0f, 1.35f}, {-2.5f, 0.0f, 1.125f}, {-2.5f, -0.3f,
+ 1.125f}, {-2.65f, -0.3f, 0.9375f}, {-2.65f, 0.0f, 0.9375f}, {-2f,
+ -0.3f, 0.9f}, {-1.9f, -0.3f, 0.6f}, {-1.9f, 0.0f, 0.6f}, {1.7f, 0.0f,
+ 1.425f}, {1.7f, -0.66f, 1.425f}, {1.7f, -0.66f, 0.6f}, {1.7f, 0.0f,
+ 0.6f}, {2.6f, 0.0f, 1.425f}, {2.6f, -0.66f, 1.425f}, {3.1f, -0.66f,
+ 0.825f}, {3.1f, 0.0f, 0.825f}, {2.3f, 0.0f, 2.1f}, {2.3f, -0.25f, 2.1f},
+ {2.4f, -0.25f, 2.025f}, {2.4f, 0.0f, 2.025f}, {2.7f, 0.0f, 2.4f}, {2.7f,
+ -0.25f, 2.4f}, {3.3f, -0.25f, 2.4f}, {3.3f, 0.0f, 2.4f}, {2.8f, 0.0f,
+ 2.475f}, {2.8f, -0.25f, 2.475f}, {3.525f, -0.25f, 2.49375f},
+ {3.525f, 0.0f, 2.49375f}, {2.9f, 0.0f, 2.475f}, {2.9f, -0.15f, 2.475f},
+ {3.45f, -0.15f, 2.5125f}, {3.45f, 0.0f, 2.5125f}, {2.8f, 0.0f, 2.4f},
+ {2.8f, -0.15f, 2.4f}, {3.2f, -0.15f, 2.4f}, {3.2f, 0.0f, 2.4f}, {0.0f, 0.0f,
+ 3.15f}, {0.8f, 0.0f, 3.15f}, {0.8f, -0.45f, 3.15f}, {0.45f, -0.8f,
+ 3.15f}, {0.0f, -0.8f, 3.15f}, {0.0f, 0.0f, 2.85f}, {1.4f, 0.0f, 2.4f}, {1.4f,
+ -0.784f, 2.4f}, {0.784f, -1.4f, 2.4f}, {0.0f, -1.4f, 2.4f}, {0.4f, 0.0f,
+ 2.55f}, {0.4f, -0.224f, 2.55f}, {0.224f, -0.4f, 2.55f}, {0.0f, -0.4f,
+ 2.55f}, {1.3f, 0.0f, 2.55f}, {1.3f, -0.728f, 2.55f}, {0.728f, -1.3f,
+ 2.55f}, {0.0f, -1.3f, 2.55f}, {1.3f, 0.0f, 2.4f}, {1.3f, -0.728f, 2.4f},
+ {0.728f, -1.3f, 2.4f}, {0.0f, -1.3f, 2.4f}, {0.0f, 0.0f, 0.0f}, {1.425f,
+ -0.798f, 0.0f}, {1.5f, 0.0f, 0.075f}, {1.425f, 0.0f, 0.0f}, {0.798f, -1.425f,
+ 0.0f}, {0.0f, -1.5f, 0.075f}, {0.0f, -1.425f, 0.0f}, {1.5f, -0.84f, 0.075f},
+ {0.84f, -1.5f, 0.075f}
+ };
+ private static final float tex[] =
+ {
+ 0.0f, 0.0f,
+ 1.0f, 0.0f,
+ 0.0f, 1.0f,
+ 1.0f, 1.0f
+ };
+ /* 8 jitter points */
+ double j8[][] =
+ {
+ {-0.334818, 0.435331},
+ { 0.286438, -0.393495},
+ { 0.459462, 0.141540},
+ {-0.414498, -0.192829},
+ {-0.183790, 0.082102},
+ {-0.079263, -0.317383},
+ { 0.102254, 0.299133},
+ { 0.164216, -0.054399}
+ };
+
+ dofCanvas canvas = null;
+
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new dofCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Start the applet */
+
+
+ public void start()
+ {
+ }
+
+
+ /* Stop the applet */
+
+
+ public void stop()
+ {
+ }
+
+
+ /* Destroy the applet */
+
+
+ public void destroy()
+ {
+ canvas.cvsDispose();
+ }
+
+
+ /* Local GLCanvas extension class */
+
+
+ private class dofCanvas extends GLCanvas
+ {
+ private final double PI_ = 3.14159265358979323846;
+ int teapotList;
+
+ public dofCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ accumSize = 8;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ float ambient[] = { 0.0f, 0.0f, 0.0f, 1.0f };
+ float diffuse[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ float specular[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ float position[] = { 0.0f, 3.0f, 3.0f, 0.0f };
+
+ float lmodel_ambient[] = { 0.2f, 0.2f, 0.2f, 1.0f };
+ float local_view[] = { 0.0f };
+
+ gl.glLightfv(GL_LIGHT0, GL_AMBIENT, ambient);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse);
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, position);
+
+ gl.glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);
+ gl.glLightModelfv(GL_LIGHT_MODEL_LOCAL_VIEWER, local_view);
+
+ gl.glFrontFace(GL_CW);
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_AUTO_NORMAL);
+ gl.glEnable(GL_NORMALIZE);
+ gl.glEnable(GL_DEPTH_TEST);
+
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+ gl.glClearAccum(0.0f, 0.0f, 0.0f, 0.0f);
+
+ /* make teapot display list */
+ teapotList = gl.glGenLists(1);
+ gl.glNewList(teapotList, GL_COMPILE);
+ glutSolidTeapot(0.5);
+ gl.glEndList();
+
+ glj.gljCheckGL();
+ }
+
+ public void cvsDispose()
+ {
+ System.out.println("destroy(): " + this);
+ super.cvsDispose();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ int viewport[] = new int[4];
+
+ gl.glGetIntegerv(GL_VIEWPORT, viewport);
+ gl.glClear(GL_ACCUM_BUFFER_BIT);
+
+ for (int jitter = 0; jitter < 8; jitter++)
+ {
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ accPerspective
+ (45.0,
+ (double)viewport[2]/(double)viewport[3],
+ 1.0, 15.0, 0.0, 0.0,
+ 0.33*j8[jitter][0], 0.33*j8[jitter][1], 5.0);
+ /* ruby, gold, silver, emerald, and cyan teapots */
+ renderTeapot
+ (-1.1f, -0.5f, -4.5f, 0.1745f, 0.01175f,
+ 0.01175f, 0.61424f, 0.04136f, 0.04136f,
+ 0.727811f, 0.626959f, 0.626959f, 0.6f);
+ renderTeapot
+ (-0.5f, -0.5f, -5.0f, 0.24725f, 0.1995f,
+ 0.0745f, 0.75164f, 0.60648f, 0.22648f,
+ 0.628281f, 0.555802f, 0.366065f, 0.4f);
+ renderTeapot
+ (0.2f, -0.5f, -5.5f, 0.19225f, 0.19225f,
+ 0.19225f, 0.50754f, 0.50754f, 0.50754f,
+ 0.508273f, 0.508273f, 0.508273f, 0.4f);
+ renderTeapot
+ (1.0f, -0.5f, -6.0f, 0.0215f, 0.1745f, 0.0215f,
+ 0.07568f, 0.61424f, 0.07568f, 0.633f,
+ 0.727811f, 0.633f, 0.6f);
+ renderTeapot
+ (1.8f, -0.5f, -6.5f, 0.0f, 0.1f, 0.06f, 0.0f,
+ 0.50980392f, 0.50980392f, 0.50196078f,
+ 0.50196078f, 0.50196078f, 0.25f);
+ gl.glAccum(GL_ACCUM, 0.125f);
+ }
+ gl.glAccum (GL_RETURN, 1.0f);
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ // Imported from glut.
+ private void glutSolidTeapot(double scale)
+ {
+ teapot(14, scale, GL_FILL);
+ }
+
+ // Imported from glut.
+ private void teapot(int grid, double scale, int type)
+ {
+ float p[] = new float[4*4*3];
+ float q[] = new float[4*4*3];
+ float r[] = new float[4*4*3];
+ float s[] = new float[4*4*3];
+ float sc = (float)(0.5*scale);
+
+ gl.glPushAttrib(GL_ENABLE_BIT | GL_EVAL_BIT);
+ gl.glEnable(GL_AUTO_NORMAL);
+ gl.glEnable(GL_NORMALIZE);
+ gl.glEnable(GL_MAP2_VERTEX_3);
+ gl.glEnable(GL_MAP2_TEXTURE_COORD_2);
+ gl.glPushMatrix();
+ gl.glRotatef(270.0f, 1.0f, 0.0f, 0.0f);
+ gl.glScalef(sc, sc, sc);
+ gl.glTranslatef(0.0f, 0.0f, -1.5f);
+ for (int i = 0; i < 10; i++)
+ {
+ for (int j = 0; j < 4; j++)
+ {
+ for (int k = 0; k < 4; k++)
+ {
+ for (int l = 0; l < 3; l++)
+ {
+ p[(j*12)+(k*3)+l] = cpdata[patchdata[i][j * 4 + k]][l];
+ q[(j*12)+(k*3)+l] = cpdata[patchdata[i][j * 4 + (3 - k)]][l];
+ if (l == 1)
+ q[(j*12)+(k*3)+l] *= -1.0f;
+ if (i < 6)
+ {
+ r[(j*12)+(k*3)+l] =
+ cpdata[patchdata[i][j * 4 + (3 - k)]][l];
+ if (l == 0)
+ r[(j*12)+(k*3)+l] *= -1.0f;
+ s[(j*12)+(k*3)+l] =
+ cpdata[patchdata[i][j * 4 + k]][l];
+ if (l == 0)
+ s[(j*12)+(k*3)+l] *= -1.0f;
+ if (l == 1)
+ s[(j*12)+(k*3)+l] *= -1.0f;
+ }
+ }
+ }
+ }
+ gl.glMap2f
+ (GL_MAP2_TEXTURE_COORD_2, 0, 1, 2, 2, 0, 1, 4, 2, tex);
+ gl.glMap2f
+ (GL_MAP2_VERTEX_3, 0, 1, 3, 4, 0, 1, 12, 4, p);
+ gl.glMapGrid2f(grid, 0.0f, 1.0f, grid, 0.0f, 1.0f);
+ gl.glEvalMesh2(type, 0, grid, 0, grid);
+ gl.glMap2f(GL_MAP2_VERTEX_3, 0, 1, 3, 4, 0, 1, 12, 4, q);
+ gl.glEvalMesh2(type, 0, grid, 0, grid);
+ if (i < 6)
+ {
+ gl.glMap2f(GL_MAP2_VERTEX_3, 0, 1, 3, 4, 0, 1, 12, 4, r);
+ gl.glEvalMesh2(type, 0, grid, 0, grid);
+ gl.glMap2f(GL_MAP2_VERTEX_3, 0, 1, 3, 4, 0, 1, 12, 4, s);
+ gl.glEvalMesh2(type, 0, grid, 0, grid);
+ }
+ }
+ gl.glPopMatrix();
+ gl.glPopAttrib();
+ }
+
+ /* accFrustum()
+ * The first 6 arguments are identical to the glFrustum() call.
+ *
+ * pixdx and pixdy are anti-alias jitter in pixels.
+ * Set both equal to 0.0 for no anti-alias jitter.
+ * eyedx and eyedy are depth-of field jitter in pixels.
+ * Set both equal to 0.0 for no depth of field effects.
+ *
+ * focus is distance from eye to plane in focus.
+ * focus must be greater than, but not equal to 0.0.
+ *
+ * Note that accFrustum() calls glTranslatef(). You will
+ * probably want to insure that your ModelView matrix has been
+ * initialized to identity before calling accFrustum().
+ */
+ private void accFrustum
+ (double left,
+ double right,
+ double bottom,
+ double top,
+ double near,
+ double far,
+ double pixdx,
+ double pixdy,
+ double eyedx,
+ double eyedy,
+ double focus)
+ {
+ double xwsize, ywsize;
+ double dx, dy;
+ int viewport[] = new int[4];
+
+ gl.glGetIntegerv(GL_VIEWPORT, viewport);
+
+ xwsize = right - left;
+ ywsize = top - bottom;
+
+ dx = -(pixdx*xwsize/(double) viewport[2] + eyedx*near/focus);
+ dy = -(pixdy*ywsize/(double) viewport[3] + eyedy*near/focus);
+
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ gl.glFrustum
+ ((float)(left + dx),
+ (float)(right + dx),
+ (float)(bottom + dy),
+ (float)(top + dy),
+ (float)near,
+ (float)far);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ gl.glTranslatef((float)-eyedx, (float)-eyedy, 0.0f);
+ }
+
+ /* accPerspective()
+ *
+ * The first 4 arguments are identical to the gluPerspective() call.
+ * pixdx and pixdy are anti-alias jitter in pixels.
+ * Set both equal to 0.0 for no anti-alias jitter.
+ * eyedx and eyedy are depth-of field jitter in pixels.
+ * Set both equal to 0.0 for no depth of field effects.
+ *
+ * focus is distance from eye to plane in focus.
+ * focus must be greater than, but not equal to 0.0.
+ *
+ * Note that accPerspective() calls accFrustum().
+ */
+ private void accPerspective
+ (double fovy,
+ double aspect,
+ double near,
+ double far,
+ double pixdx,
+ double pixdy,
+ double eyedx,
+ double eyedy,
+ double focus)
+ {
+ double fov2,left,right,bottom,top;
+
+ fov2 = ((fovy*PI_) / 180.0) / 2.0;
+
+ top = near / (Math.cos(fov2) / Math.sin(fov2));
+ bottom = -top;
+
+ right = top * aspect;
+ left = -right;
+
+ accFrustum
+ (left,right,bottom,top,near,far,pixdx,pixdy,eyedx,eyedy,focus);
+ }
+
+ private void renderTeapot
+ (float x,
+ float y,
+ float z,
+ float ambr,
+ float ambg,
+ float ambb,
+ float difr,
+ float difg,
+ float difb,
+ float specr,
+ float specg,
+ float specb,
+ float shine)
+ {
+ float mat[] = new float[4];
+
+ gl.glPushMatrix();
+ gl.glTranslatef(x, y, z);
+ mat[0] = ambr; mat[1] = ambg; mat[2] = ambb; mat[3] = 1.0f;
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, mat);
+ mat[0] = difr; mat[1] = difg; mat[2] = difb;
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat);
+ mat[0] = specr; mat[1] = specg; mat[2] = specb;
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, mat);
+ gl.glMaterialf(GL_FRONT, GL_SHININESS, shine*128.0f);
+ gl.glCallList(teapotList);
+ gl.glPopMatrix();
+ }
+ }
+}
diff --git a/demos/RonsDemos/dof_plugin13.html b/demos/RonsDemos/dof_plugin13.html
new file mode 100644
index 0000000..1f1e874
--- /dev/null
+++ b/demos/RonsDemos/dof_plugin13.html
@@ -0,0 +1,48 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>DOF by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+DOF applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "dof.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "dof.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "dof.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "dof.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/fog.html b/demos/RonsDemos/fog.html
new file mode 100644
index 0000000..b7684ab
--- /dev/null
+++ b/demos/RonsDemos/fog.html
@@ -0,0 +1,18 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Fog by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Fog applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>Click inside the window to cycle the fog mode.
+<br>
+<applet code="fog.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/fog.java b/demos/RonsDemos/fog.java
new file mode 100644
index 0000000..7f99c94
--- /dev/null
+++ b/demos/RonsDemos/fog.java
@@ -0,0 +1,266 @@
+/**
+ * @(#) fog.java
+ * @(#) author: Silicon Graphics (converted to Java by Ron Cemer)
+ */
+
+/*
+ * Copyright (c) 1993-1997, Silicon Graphics, Inc.
+ * ALL RIGHTS RESERVED
+ * Permission to use, copy, modify, and distribute this software for
+ * any purpose and without fee is hereby granted, provided that the above
+ * copyright notice appear in all copies and that both the copyright notice
+ * and this permission notice appear in supporting documentation, and that
+ * the name of Silicon Graphics, Inc. not be used in advertising
+ * or publicity pertaining to distribution of the software without specific,
+ * written prior permission.
+ *
+ * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
+ * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
+ * GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
+ * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
+ * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
+ * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
+ * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN
+ * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
+ * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * US Government Users Restricted Rights
+ * Use, duplication, or disclosure by the Government is subject to
+ * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
+ * (c)(1)(ii) of the Rights in Technical Data and Computer Software
+ * clause at DFARS 252.227-7013 and/or in similar or successor
+ * clauses in the FAR or the DOD or NASA FAR Supplement.
+ * Unpublished-- rights reserved under the copyright laws of the
+ * United States. Contractor/manufacturer is Silicon Graphics,
+ * Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
+ *
+ * OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
+ */
+
+/*
+ * This program draws 5 red spheres, each at a different
+ * z distance from the eye, in different types of fog.
+ * Pressing the f key chooses between 3 types of
+ * fog: exponential, exponential squared, and linear.
+ * In this program, there is a fixed density value, as well
+ * as fixed start and end values for the linear fog.
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+
+public class fog extends Applet
+{
+ fogCanvas canvas = null;
+
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new fogCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Start the applet */
+
+
+ public void start()
+ {
+ }
+
+
+ /* Stop the applet */
+
+
+ public void stop()
+ {
+ }
+
+
+ /* Destroy the applet */
+
+
+ public void destroy()
+ {
+ canvas.cvsDispose();
+ }
+
+
+ /* Local GLCanvas extension class */
+
+
+ private class fogCanvas extends GLCanvas implements MouseListener
+ {
+ int fogMode;
+
+ public fogCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ float position[] = { 0.5f, 0.5f, 3.0f, 0.0f };
+
+ gl.glEnable(GL_DEPTH_TEST);
+
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, position);
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+
+ float mat[] = {0.1745f, 0.01175f, 0.01175f};
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, mat);
+ mat[0] = 0.61424f; mat[1] = 0.04136f; mat[2] = 0.04136f;
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat);
+ mat[0] = 0.727811f; mat[1] = 0.626959f; mat[2] = 0.626959f;
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, mat);
+ gl.glMaterialf(GL_FRONT, GL_SHININESS, 0.6f*128.0f);
+
+ gl.glEnable(GL_FOG);
+
+ float fogColor[] = {0.5f, 0.5f, 0.5f, 1.0f};
+ fogMode = GL_EXP;
+ gl.glFogi(GL_FOG_MODE, fogMode);
+ gl.glFogfv(GL_FOG_COLOR, fogColor);
+ gl.glFogf(GL_FOG_DENSITY, 0.35f);
+ gl.glHint(GL_FOG_HINT, GL_DONT_CARE);
+ gl.glFogf(GL_FOG_START, 1.0f);
+ gl.glFogf(GL_FOG_END, 5.0f);
+
+ gl.glClearColor(0.5f, 0.5f, 0.5f, 1.0f); /* fog color */
+
+ glj.gljCheckGL();
+
+ addMouseListener(this);
+ }
+
+ public void cvsDispose()
+ {
+ System.out.println("destroy(): " + this);
+ removeMouseListener(this);
+ super.cvsDispose();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ gl.glMatrixMode(GL_PROJECTION);
+
+ gl.glLoadIdentity();
+ if (width <= height)
+ gl.glOrtho
+ (-2.5f,
+ 2.5f,
+ -2.5f*(float)height/(float)width,
+ 2.5f*(float)height/(float)width,
+ -10.0f,
+ 10.0f);
+ else
+ gl.glOrtho
+ (-2.5f*(float)width/(float)height,
+ 2.5f*(float)width/(float)height,
+ -2.5f,
+ 2.5f,
+ -10.0f,
+ 10.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity ();
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ renderSphere(-2.0f, -0.5f, -1.0f);
+ renderSphere(-1.0f, -0.5f, -2.0f);
+ renderSphere(0.0f, -0.5f, -3.0f);
+ renderSphere(1.0f, -0.5f, -4.0f);
+ renderSphere(2.0f, -0.5f, -5.0f);
+ gl.glFlush();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ private void renderSphere(float x, float y, float z)
+ {
+ gl.glPushMatrix();
+ gl.glTranslatef(x, y, z);
+
+ int qobj = glu.gluNewQuadric();
+ glu.gluQuadricOrientation(qobj,GLU_OUTSIDE);
+ glu.gluQuadricNormals(qobj,GLU_SMOOTH);
+ glu.gluQuadricTexture(qobj,false);
+ glu.gluSphere(qobj,0.4f,16,16);
+ glu.gluDeleteQuadric(qobj);
+
+ gl.glPopMatrix();
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ if (fogMode == GL_EXP)
+ {
+ fogMode = GL_EXP2;
+ System.out.println("Fog mode is GL_EXP2");
+ }
+ else if (fogMode == GL_EXP2)
+ {
+ fogMode = GL_LINEAR;
+ System.out.println("Fog mode is GL_LINEAR");
+ }
+ else
+ {
+ fogMode = GL_EXP;
+ System.out.println("Fog mode is GL_EXP");
+ }
+ gl.glFogi(GL_FOG_MODE,fogMode);
+ repaint();
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ }
+ }
+}
diff --git a/demos/RonsDemos/fog_plugin13.html b/demos/RonsDemos/fog_plugin13.html
new file mode 100644
index 0000000..94f367d
--- /dev/null
+++ b/demos/RonsDemos/fog_plugin13.html
@@ -0,0 +1,49 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Fog by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Fog applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>Click inside the window to cycle the fog mode.
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "fog.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "fog.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "fog.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "fog.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/gears.html b/demos/RonsDemos/gears.html
new file mode 100644
index 0000000..fb44ddb
--- /dev/null
+++ b/demos/RonsDemos/gears.html
@@ -0,0 +1,23 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Gears by Brian Paul; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Gears applet
+<br>Originially written by Brian Paul
+<br>Ported to Java by Ron Cemer
+<br>
+<hr>
+<br>You can rotate the view by holding the left mouse button down and
+<br>dragging the mouse within the applet's window.
+<br>If you hold the right button down instead, the view will rotate
+<br>around the Z axis.
+<br>
+<applet code="gears.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/gears.java b/demos/RonsDemos/gears.java
new file mode 100644
index 0000000..cdc1634
--- /dev/null
+++ b/demos/RonsDemos/gears.java
@@ -0,0 +1,432 @@
+/**
+ * @(#) gears.java
+ * @(#) author: Brian Paul (converted to Java by Ron Cemer)
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+public class gears extends SimpleGLAnimApplet1
+{
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new gearsCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ public static void main( String args[] )
+ {
+ Frame mainFrame = new Frame("gears");
+
+ gears applet = new gears();
+
+ applet.setSize(400, 400);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ }
+
+
+ /* Local GLAnimCanvas extension class */
+
+
+ private class gearsCanvas extends GLAnimCanvas implements MouseListener, MouseMotionListener
+ {
+ private static final float M_PI = 3.14159265359f;
+ private int gear1, gear2, gear3;
+ private float angle = 0.0f;
+
+ private MatrixFuncs mtxfuncs = null;
+ private int prevMouseX, prevMouseY;
+ private boolean mouseRButtonDown = false;
+ private float rot_matrix[] =
+ {
+ 1.0f, 0.0f, 0.0f, 0.0f,
+ 0.0f, 1.0f, 0.0f, 0.0f,
+ 0.0f, 0.0f, 1.0f, 0.0f,
+ 0.0f, 0.0f, 0.0f, 1.0f
+ };
+
+ public gearsCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ setAnimateFps(30.0);
+
+ mtxfuncs = new MatrixFuncs();
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ setInitialRotation();
+
+ float pos[] = { 5.0f, 5.0f, 10.0f, 0.0f };
+ float red[] = { 0.8f, 0.1f, 0.0f, 1.0f };
+ float green[] = { 0.0f, 0.8f, 0.2f, 1.0f };
+ float blue[] = { 0.2f, 0.2f, 1.0f, 1.0f };
+
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, pos);
+ gl.glEnable(GL_CULL_FACE);
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_DEPTH_TEST);
+
+ /* make the gears */
+ gear1 = gl.glGenLists(1);
+ gl.glNewList(gear1, GL_COMPILE);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, red);
+ gear(1.0f, 4.0f, 1.0f, 20, 0.7f);
+ gl.glEndList();
+
+ gear2 = gl.glGenLists(1);
+ gl.glNewList(gear2, GL_COMPILE);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, green);
+ gear(0.5f, 2.0f, 2.0f, 10, 0.7f);
+ gl.glEndList();
+
+ gear3 = gl.glGenLists(1);
+ gl.glNewList(gear3, GL_COMPILE);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, blue);
+ gear(1.3f, 2.0f, 0.5f, 10, 0.7f);
+ gl.glEndList();
+
+ gl.glEnable(GL_NORMALIZE);
+
+ glj.gljCheckGL();
+
+ addMouseListener(this);
+ addMouseMotionListener(this);
+ }
+
+ public void doCleanup()
+ {
+ System.out.println("destroy(): " + this);
+ removeMouseListener(this);
+ removeMouseMotionListener(this);
+ }
+
+ public void reshape(int width, int height)
+ {
+ float h = (float)height / (float)width;
+
+ gl.glViewport(0,0,width,height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ gl.glFrustum(-1.0f, 1.0f, -h, h, 5.0f, 60.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ gl.glTranslatef(0.0f, 0.0f, -40.0f);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ angle += 0.5f;
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ gl.glPushMatrix();
+ gl.glMultMatrixf(rot_matrix);
+
+ gl.glPushMatrix();
+ gl.glTranslatef(-3.0f, -2.0f, 0.0f);
+ gl.glRotatef(angle, 0.0f, 0.0f, 1.0f);
+ gl.glCallList(gear1);
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glTranslatef(3.1f, -2.0f, 0.0f);
+ gl.glRotatef(-2.0f * angle - 9.0f, 0.0f, 0.0f, 1.0f);
+ gl.glCallList(gear2);
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glTranslatef(-3.1f, 4.2f, 0.0f);
+ gl.glRotatef(-2.0f * angle - 25.0f, 0.0f, 0.0f, 1.0f);
+ gl.glCallList(gear3);
+ gl.glPopMatrix();
+
+ gl.glPopMatrix();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+
+ //if (!isSuspended()) repaint(); // Animate at full speed.
+ }
+
+ private void gear
+ (float inner_radius,
+ float outer_radius,
+ float width,
+ int teeth,
+ float tooth_depth)
+ {
+ int i;
+ float r0, r1, r2;
+ float angle, da;
+ float u, v, len;
+
+ r0 = inner_radius;
+ r1 = outer_radius - tooth_depth / 2.0f;
+ r2 = outer_radius + tooth_depth / 2.0f;
+
+ da = 2.0f * M_PI / teeth / 4.0f;
+
+ gl.glShadeModel(GL_FLAT);
+
+ gl.glNormal3f(0.0f, 0.0f, 1.0f);
+
+ /* draw front face */
+ gl.glBegin(GL_QUAD_STRIP);
+ for (i = 0; i <= teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), width * 0.5f);
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3.0f * da), r1 * (float)Math.sin(angle + 3.0f * da), width * 0.5f);
+ }
+ gl.glEnd();
+
+ /* draw front sides of teeth */
+ gl.glBegin(GL_QUADS);
+ da = 2.0f * M_PI / teeth / 4.0f;
+ for (i = 0; i < teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + da), r2 * (float)Math.sin(angle + da), width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + 2.0f * da), r2 * (float)Math.sin(angle + 2.0f * da), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3.0f * da), r1 * (float)Math.sin(angle + 3.0f * da), width * 0.5f);
+ }
+ gl.glEnd();
+
+ gl.glNormal3f(0.0f, 0.0f, -1.0f);
+
+ /* draw back face */
+ gl.glBegin(GL_QUAD_STRIP);
+ for (i = 0; i <= teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), -width * 0.5f);
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), -width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3 * da), r1 * (float)Math.sin(angle + 3 * da), -width * 0.5f);
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), -width * 0.5f);
+ }
+ gl.glEnd();
+
+ /* draw back sides of teeth */
+ gl.glBegin(GL_QUADS);
+ da = 2.0f * M_PI / teeth / 4.0f;
+ for (i = 0; i < teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3 * da), r1 * (float)Math.sin(angle + 3 * da), -width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + 2 * da), r2 * (float)Math.sin(angle + 2 * da), -width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + da), r2 * (float)Math.sin(angle + da), -width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), -width * 0.5f);
+ }
+ gl.glEnd();
+
+ /* draw outward faces of teeth */
+ gl.glBegin(GL_QUAD_STRIP);
+ for (i = 0; i < teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), -width * 0.5f);
+ u = r2 * (float)Math.cos(angle + da) - r1 * (float)Math.cos(angle);
+ v = r2 * (float)Math.sin(angle + da) - r1 * (float)Math.sin(angle);
+ len = (float)Math.sqrt(u * u + v * v);
+ u /= len;
+ v /= len;
+ gl.glNormal3f(v, -u, 0.0f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + da), r2 * (float)Math.sin(angle + da), width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + da), r2 * (float)Math.sin(angle + da), -width * 0.5f);
+ gl.glNormal3f((float)Math.cos(angle), (float)Math.sin(angle), 0.0f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + 2 * da), r2 * (float)Math.sin(angle + 2 * da), width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + 2 * da), r2 * (float)Math.sin(angle + 2 * da), -width * 0.5f);
+ u = r1 * (float)Math.cos(angle + 3 * da) - r2 * (float)Math.cos(angle + 2 * da);
+ v = r1 * (float)Math.sin(angle + 3 * da) - r2 * (float)Math.sin(angle + 2 * da);
+ gl.glNormal3f(v, -u, 0.0f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3 * da), r1 * (float)Math.sin(angle + 3 * da), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3 * da), r1 * (float)Math.sin(angle + 3 * da), -width * 0.5f);
+ gl.glNormal3f((float)Math.cos(angle), (float)Math.sin(angle), 0.0f);
+ }
+ gl.glVertex3f(r1 * (float)Math.cos(0), r1 * (float)Math.sin(0), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(0), r1 * (float)Math.sin(0), -width * 0.5f);
+ gl.glEnd();
+
+ gl.glShadeModel(GL_SMOOTH);
+
+ /* draw inside radius cylinder */
+ gl.glBegin(GL_QUAD_STRIP);
+ for (i = 0; i <= teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glNormal3f(-(float)Math.cos(angle), -(float)Math.sin(angle), 0.0f);
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), -width * 0.5f);
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), width * 0.5f);
+ }
+ gl.glEnd();
+ }
+
+ // Reset the rotation matrix to the default view.
+ private void setInitialRotation()
+ {
+ float mtxbuf[] = new float[16];
+ float mtxbuf2[] = new float[16];
+
+ mtxfuncs.rotateAroundY(30.0f,mtxbuf);
+ mtxfuncs.rotateAroundX(20.0f,mtxbuf2);
+ mtxfuncs.multiplyMatrices(mtxbuf2,mtxbuf,rot_matrix);
+ fixRotationMatrix();
+ }
+
+ private void fixRotationMatrix()
+ {
+ // Fix any problems with the rotation matrix.
+ rot_matrix[3] =
+ rot_matrix[7] =
+ rot_matrix[11] =
+ rot_matrix[12] =
+ rot_matrix[13] =
+ rot_matrix[14] = 0.0f;
+ rot_matrix[15] = 1.0f;
+ float fac;
+ if ((fac = (float)Math.sqrt
+ ((rot_matrix[0]*rot_matrix[0]) +
+ (rot_matrix[4]*rot_matrix[4]) +
+ (rot_matrix[8]*rot_matrix[8]))) != 1.0f)
+ {
+ if (fac != 0.0f)
+ {
+ fac = 1.0f/fac;
+ rot_matrix[0] *= fac;
+ rot_matrix[4] *= fac;
+ rot_matrix[8] *= fac;
+ }
+ }
+ if ((fac = (float)Math.sqrt
+ ((rot_matrix[1]*rot_matrix[1]) +
+ (rot_matrix[5]*rot_matrix[5]) +
+ (rot_matrix[9]*rot_matrix[9]))) != 1.0f)
+ {
+ if (fac != 0.0f)
+ {
+ fac = 1.0f/fac;
+ rot_matrix[1] *= fac;
+ rot_matrix[5] *= fac;
+ rot_matrix[9] *= fac;
+ }
+ }
+ if ((fac = (float)Math.sqrt
+ ((rot_matrix[2]*rot_matrix[2]) +
+ (rot_matrix[6]*rot_matrix[6]) +
+ (rot_matrix[10]*rot_matrix[10]))) != 1.0f)
+ {
+ if (fac != 0.0f)
+ {
+ fac = 1.0f/fac;
+ rot_matrix[2] *= fac;
+ rot_matrix[6] *= fac;
+ rot_matrix[10] *= fac;
+ }
+ }
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ prevMouseX = evt.getX();
+ prevMouseY = evt.getY();
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ mouseRButtonDown = true;
+ evt.consume();
+ }
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ mouseRButtonDown = false;
+ evt.consume();
+ }
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ }
+
+ // Methods required for the implementation of MouseMotionListener
+ public void mouseDragged( MouseEvent evt )
+ {
+ int x = evt.getX();
+ int y = evt.getY();
+ float thetaX = (float)(x-prevMouseX)*(360.0f/(float)getSize().width);
+ float thetaY = (float)(prevMouseY-y)*(360.0f/(float)getSize().height);
+ float mtxbuf[] = new float[16];
+ float mtxbuf2[] = new float[16];
+
+ prevMouseX = x;
+ prevMouseY = y;
+ if ( (thetaX != 0.0f) || (thetaY != 0.0f) )
+ {
+ mtxfuncs.rotateAroundY(((float)thetaX),mtxbuf);
+ if (mouseRButtonDown)
+ mtxfuncs.rotateAroundZ(thetaY,mtxbuf2);
+ else
+ mtxfuncs.rotateAroundX(-thetaY,mtxbuf2);
+ mtxfuncs.multiplyMatrices(mtxbuf2,mtxbuf,mtxbuf);
+ mtxfuncs.multiplyMatrices(rot_matrix,mtxbuf,rot_matrix);
+ fixRotationMatrix();
+ }
+ evt.consume();
+ }
+
+ public void mouseMoved( MouseEvent evt )
+ {
+ }
+ }
+}
diff --git a/demos/RonsDemos/gears_plugin13.html b/demos/RonsDemos/gears_plugin13.html
new file mode 100644
index 0000000..2069b32
--- /dev/null
+++ b/demos/RonsDemos/gears_plugin13.html
@@ -0,0 +1,54 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Gears by Brian Paul; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Gears applet
+<br>Originially written by Brian Paul
+<br>Ported to Java by Ron Cemer
+<br>
+<hr>
+<br>You can rotate the view by holding the left mouse button down and
+<br>dragging the mouse within the applet's window.
+<br>If you hold the right button down instead, the view will rotate
+<br>around the Z axis.
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "gears.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "gears.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "gears.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "gears.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/gl4java.policy b/demos/RonsDemos/gl4java.policy
new file mode 100644
index 0000000..6ea44cc
--- /dev/null
+++ b/demos/RonsDemos/gl4java.policy
@@ -0,0 +1,27 @@
+
+grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/-"
+{
+ permission java.security.RuntimePermission;
+};
+
+grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/RonsDemos/-"
+{
+ permission java.security.RuntimePermission;
+};
+
+grant codeBase "http://jausoft.goethel.de/Files/Java/1.1.X/GL4Java/demos/RonsDemos/-" {
+ permission java.security.RuntimePermission;
+};
+
+grant codeBase "http://jausoft.goethel.de/Files/Java/1.1.X/GL4Java/demos/-" {
+ permission java.security.RuntimePermission;
+};
+
+grant codeBase "file://f/java-1.1.X/GL4Java/demos/-" {
+ permission java.security.AllPermission;
+};
+
+grant codeBase "file://f/java-1.1.X/GL4Java/demos/RonsDemos/-" {
+ permission java.security.AllPermission;
+};
+
diff --git a/demos/RonsDemos/glutplane.html b/demos/RonsDemos/glutplane.html
new file mode 100644
index 0000000..3e7760d
--- /dev/null
+++ b/demos/RonsDemos/glutplane.html
@@ -0,0 +1,19 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Glutplane by Mark J. Kilgard; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Glutplane applet
+<br>Originially written by Mark J. Kilgard
+<br>Ported to Java by Ron Cemer
+<br>Right-click within the window for a menu of commands.
+<br>While suspended, left-click within the window to render the next frame.
+<br>
+<applet code="glutplane.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/glutplane.java b/demos/RonsDemos/glutplane.java
new file mode 100644
index 0000000..c1e0e52
--- /dev/null
+++ b/demos/RonsDemos/glutplane.java
@@ -0,0 +1,334 @@
+/**
+ * @(#) glutplane.java
+ * @(#) author: Mark J. Kilgard (converted to Java by Ron Cemer)
+ */
+
+/* This program is freely distributable without licensing fees
+ and is provided without guarantee or warrantee expressed or
+ implied. This program is -not- in the public domain. */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+public class glutplane extends SimpleGLAnimApplet1
+{
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new glutplaneCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ private class planeobj
+ {
+ float speed = 0.0f; /* zero speed means not flying */
+ float red = 0.0f, green = 0.0f, blue = 0.0f;
+ float theta = 0.0f;
+ float x = 0.0f, y = 0.0f, z = 0.0f, angle = 0.0f;
+
+ public void setColor(float r, float g, float b)
+ {
+ red = r;
+ green = g;
+ blue = b;
+ }
+ };
+
+
+ /* Local GLAnimCanvas extension class */
+
+
+ private class glutplaneCanvas extends GLAnimCanvas
+ implements MouseListener, ActionListener
+ {
+ private final double M_PI = 3.14159265;
+ private final double M_PI_2 = 1.57079632;
+ private final int MAX_PLANES = 15;
+ private final String ADD_PLANE = "Add plane";
+ private final String REMOVE_PLANE = "Remove plane";
+ private final String SUSPEND_RESUME = "Suspend/resume animation";
+
+ private planeobj planes[] = null;
+ private Random random = null;
+ private PopupMenu menu = null;
+ private boolean menu_showing = false;
+ private boolean save_suspended = false;
+
+ public glutplaneCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ setAnimateFps(30.0);
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ gl.glClearDepth(1.0f);
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glFrustum(-1.0f, 1.0f, -1.0f, 1.0f, 1.0f, 20.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ /* add three initial random planes */
+ planes = new planeobj[MAX_PLANES];
+ for (int i = 0; i < MAX_PLANES; i++)
+ planes[i] = new planeobj();
+ random = new Random(System.currentTimeMillis());
+ add_plane();
+ add_plane();
+ add_plane();
+
+ glj.gljCheckGL();
+
+ menu = new PopupMenu("Options");
+ menu.add(ADD_PLANE);
+ menu.add(REMOVE_PLANE);
+ menu.add(SUSPEND_RESUME);
+ menu.addActionListener(this);
+ add(menu);
+
+ addMouseListener(this);
+ }
+
+ public void doCleanup()
+ {
+ System.out.println("destroy(): " + this);
+ removeMouseListener(this);
+ menu.removeActionListener(this);
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ tick();
+
+ float red, green, blue;
+
+ gl.glClear(GL_DEPTH_BUFFER_BIT);
+ /* paint black to blue smooth shaded polygon for background */
+ gl.glDisable(GL_DEPTH_TEST);
+ gl.glShadeModel(GL_SMOOTH);
+ gl.glBegin(GL_POLYGON);
+ gl.glColor3f(0.0f, 0.0f, 0.0f);
+ gl.glVertex3f(-20f, 20f, -19f);
+ gl.glVertex3f(20f, 20f, -19f);
+ gl.glColor3f(0.0f, 0.0f, 1.0f);
+ gl.glVertex3f(20f, -20f, -19f);
+ gl.glVertex3f(-20f, -20f, -19f);
+ gl.glEnd();
+ /* paint planes */
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glShadeModel(GL_FLAT);
+ for (int i = 0; i < MAX_PLANES; i++)
+ {
+ if (planes[i].speed != 0.0f)
+ {
+ gl.glPushMatrix();
+ gl.glTranslatef(planes[i].x, planes[i].y, planes[i].z);
+ gl.glRotatef(290.0f, 1.0f, 0.0f, 0.0f);
+ gl.glRotatef(planes[i].angle, 0.0f, 0.0f, 1.0f);
+ gl.glScalef(1.0f / 3.0f, 1.0f / 4.0f, 1.0f / 4.0f);
+ gl.glTranslatef(0.0f, -4.0f, -1.5f);
+ gl.glBegin(GL_TRIANGLE_STRIP);
+ /* left wing */
+ gl.glVertex3f(-7.0f, 0.0f, 2.0f);
+ gl.glVertex3f(-1.0f, 0.0f, 3.0f);
+ red = planes[i].red;
+ green = planes[i].green;
+ blue = planes[i].blue;
+ gl.glColor3f(red,green,blue);
+ gl.glVertex3f(-1.0f, 7.0f, 3.0f);
+ /* left side */
+ gl.glColor3f(0.6f * red, 0.6f * green, 0.6f * blue);
+ gl.glVertex3f(0.0f, 0.0f, 0.0f);
+ gl.glVertex3f(0.0f, 8.0f, 0.0f);
+ /* right side */
+ gl.glVertex3f(1.0f, 0.0f, 3.0f);
+ gl.glVertex3f(1.0f, 7.0f, 3.0f);
+ /* final tip of right wing */
+ gl.glColor3f(red, green, blue);
+ gl.glVertex3f(7.0f, 0.0f, 2.0f);
+ gl.glEnd();
+ gl.glPopMatrix();
+ }
+ }
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+
+ // if (!isSuspended()) repaint(); // Animate at full speed.
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered(MouseEvent evt)
+ {
+ }
+
+ public void mouseExited(MouseEvent evt)
+ {
+ }
+
+ public void mousePressed(MouseEvent evt)
+ {
+ // If user presses right mouse button within canvas area,
+ // suspend animation and pop up menu.
+ // If menu was already popped up and user presses either
+ // mouse button within canvas area, resume animation
+ // because the menu will have been removed automatically.
+ if (!menu_showing)
+ {
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ menu_showing = true;
+ save_suspended = isSuspended();
+ if (!save_suspended)
+ {
+ setSuspended(true);
+ repaint(100);
+ try
+ {
+ Thread.currentThread().sleep(200);
+ }
+ catch (Exception e)
+ { }
+ }
+ menu.show(this,evt.getX(),evt.getY());
+ }
+ else
+ {
+ // Must be left button.
+ if (isSuspended()) repaint();
+ }
+ }
+ else
+ {
+ menu_showing = false;
+ setSuspended(save_suspended);
+ }
+ }
+
+ public void mouseReleased(MouseEvent evt)
+ {
+ }
+
+ public void mouseClicked(MouseEvent evt)
+ {
+ }
+
+ // Method required for the implementation of ActionListener
+ public void actionPerformed(ActionEvent evt)
+ {
+ String c = evt.getActionCommand();
+ if (c.equals(ADD_PLANE))
+ {
+ add_plane();
+ }
+ else if (c.equals(REMOVE_PLANE))
+ {
+ remove_plane();
+ }
+ else if (c.equals(SUSPEND_RESUME))
+ {
+ if (menu_showing)
+ save_suspended = !save_suspended;
+ else
+ setSuspended(!isSuspended()); // not likely to happen
+ }
+ if (menu_showing)
+ {
+ menu_showing = false;
+ setSuspended(save_suspended);
+ }
+ }
+
+ private void tick_per_plane(int i)
+ {
+ float theta = planes[i].theta += planes[i].speed;
+ planes[i].z = -9.0f + 4.0f * (float)Math.cos(theta);
+ planes[i].x = 4 * (float)Math.sin(2.0f * theta);
+ planes[i].y = (float)Math.sin(theta / 3.4f) * 3.0f;
+ planes[i].angle = (float)
+ (((Math.atan(2.0) + M_PI_2) * Math.sin(theta) - M_PI_2) *
+ 180.0 / M_PI);
+ if (planes[i].speed < 0.0f) planes[i].angle += 180.0f;
+ }
+
+ private void add_plane()
+ {
+ for (int i = 0; i < MAX_PLANES; i++)
+ {
+ if (planes[i].speed == 0.0f)
+ {
+ int c = random.nextInt() & 0x07;
+ while (c == 0) c = random.nextInt() & 0x07;
+ float r = (float)((c >> 2) & 0x01);
+ float g = (float)((c >> 1) & 0x01);
+ float b = (float)(c & 0x01);
+ // Blue fades into the background; lighten it up.
+ if (c == 0x01) r = g = 0.4f;
+ planes[i].setColor(r,g,b);
+ planes[i].speed =
+ ((float)(random.nextInt() % 20)) * 0.001f + 0.02f;
+ if ((random.nextInt() & 0x01) != 0)
+ planes[i].speed *= -1.0f;
+ planes[i].theta =
+ ((float)(random.nextInt() % 257))*0.1111f;
+ tick_per_plane(i);
+ if (isSuspended()) repaint();
+ return;
+ }
+ }
+ }
+
+ private void remove_plane()
+ {
+ for (int i = MAX_PLANES - 1; i >= 0; i--)
+ {
+ if (planes[i].speed != 0.0f)
+ {
+ planes[i].speed = 0.0f;
+ if (isSuspended()) repaint();
+ return;
+ }
+ }
+ }
+
+ private void tick()
+ {
+ for (int i = 0; i < MAX_PLANES; i++)
+ {
+ if (planes[i].speed != 0.0f)
+ tick_per_plane(i);
+ }
+ }
+ }
+}
diff --git a/demos/RonsDemos/glutplane_plugin13.html b/demos/RonsDemos/glutplane_plugin13.html
new file mode 100644
index 0000000..c0d6353
--- /dev/null
+++ b/demos/RonsDemos/glutplane_plugin13.html
@@ -0,0 +1,50 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Glutplane by Mark J. Kilgard; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Glutplane applet
+<br>Originially written by Mark J. Kilgard
+<br>Ported to Java by Ron Cemer
+<br>Right-click within the window for a menu of commands.
+<br>While suspended, left-click within the window to render the next frame.
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "glutplane.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "glutplane.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "glutplane.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "glutplane.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/index.html b/demos/RonsDemos/index.html
new file mode 100644
index 0000000..c3005c5
--- /dev/null
+++ b/demos/RonsDemos/index.html
@@ -0,0 +1,123 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="Author" content="Ron Cemer & Sven Goethel">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>OpenGL Demos Ported to GL4Java</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<br>
+<p><a href="index_plugin13.html">To use the Java2 Plug-In (Java2, JRE, Plug-In 1.3), click here !</a><br>
+<br>
+!!! The original demos are ported by Ron Cemer !!! <br>
+<br>
+I have made some changes, which i described below !<br>
+<br>
+Many THANXS to Ron Cemer !!!!!!!!! <br>
+<br>
+Sven Goethel
+<hr>
+
+This page contains OpenGL demos, originally
+written in C, which have been ported to Java and
+<br>modified to use the GL4Java library.
+<p>Since the source code is readily available for these demos, they could
+serve as a great starting point
+<br>for aspiring Java applet programmers who may or may not have experience
+with OpenGL.&nbsp; You DO
+<br>need to know Java in order to understand what is going on.&nbsp; Additionally,
+I STRONGLY recommend
+<br>that you buy the "OpenGL Programmer's Guide" (often called the "Red
+Book") if you plan to do
+<br>OpenGL programming, whether for C, Java or any other language.
+<p>*** YOU MUST INSTALL THE GL4JAVA LIBRARIES BEFORE RUNNING THE DEMOS
+***
+<br>If you haven't installed the GL4Java libraries yet, go do that first,
+then come back here and enjoy!
+<p>Here are the demos:
+<p>&nbsp;<a href="renormal.html">Renormal, originally by Brian Paul</a>
+: a sphere that grows and shrinks; demonstrates how to use auto-normalization.
+<br>&nbsp;<a href="gears.html">Gears, originally by Brian Paul</a> : three
+animated gears; user can rotate the scene using the mouse.
+<br>&nbsp;<a href="texobj.html">Texobj, originally by Brian Paul</a> :
+two animated, texture-mapped squares.
+<br>&nbsp;<a href="reflect.html">Reflect, originally by Brian Paul</a>
+: rotating, textured, reflective platform with hovering objects.
+<br>&nbsp;<a href="star.html">Star, originally by Silicon Graphics</a>
+: particle animation of stars flying toward the viewer.
+<br>&nbsp;<a href="movelight.html">Movelight, originally by Silicon Graphics</a>
+: interactive directional lighting demonstration.
+<br>&nbsp;<a href="molehill.html">Molehill, author unknown</a>
+: shiny nurbs/evaluators example.
+<br>&nbsp;<a href="fog.html">Fog, originally by Silicon Graphics</a>
+: red spheres fading into a fog background.
+<br>&nbsp;<a href="surface.html">Surface, originally by Silicon Graphics</a>
+: NURBS surface demo.
+<br>&nbsp;<a href="moth.html">Moth, originally by Robert Doyle</a>
+: simulation of a moth flying around a light.
+<br>&nbsp;<a href="shadowvol.html">Shadowvol, originally by Tom McReynolds, SGI</a>
+: demonstrates the use of shadow volumes.
+<br>&nbsp;<a href="softshadow.html">Softshadow, originally by Tom McReynolds, SGI</a>
+: demonstrates use of the accumulation buffer for soft shadows.
+<br>&nbsp;<a href="material.html">Material, originally by Silicon Graphics</a>
+: demonstrates the use of the OpenGL lighting model and materials.
+<br>&nbsp;<a href="logo.html">Logo, author unknown</a>
+: 3D SGI logo with textures and user-adjustable rendering parameters.
+<br>&nbsp;<a href="glutplane.html">Glutplane, originally by Mark J. Kilgard</a>
+: Paper airplanes demo. Originally written for Mark J Kilgard's GL Utility Toolkit (GLUT).
+<br>&nbsp;<a href="spots.html">Spots, originally by Mark J. Kilgard</a>
+: Spot light demo.
+<br>&nbsp;<a href="rings.html">Rings, originally by Philip Winston</a>
+: Do a slow zoom on a bunch of rings (ala Superman III?).
+<br>&nbsp;<a href="steam.html">Steam, originally by Troy Robinette</a>
+: Miniature steam engine simulation.
+<br>&nbsp;<a href="dof.html">DOF, originally by Silicon Graphics</a>
+: Uses accumulation buffer to create an out-of-focus depth-of-field effect.
+<br>&nbsp;<a href="pointblast.html">Pointblast, originally by Mark J. Kilgard</a>
+: Particle animation demo.
+<br>&nbsp;<a href="quadric.html">Quadric, originally by Silicon Graphics</a>
+: Demonstrates the use of some of the gluQuadric* routines.
+<br>&nbsp;<a href="mipmap.html">Mipmap, originally by Silicon Graphics</a>
+: Demonstrates the use of mipmaps for texture maps.
+<br>&nbsp;<a href="teapots.html">Teapots, originally by Silicon Graphics</a>
+: Demonstrates lots of material properties.
+<br>&nbsp;<a href="texgen.html">Texgen, originally by Silicon Graphics</a>
+: Demonstrates the use of automatically generated texture coordinates.
+<br>&nbsp;<a href="polyoff.html">Polyoff, originally by Silicon Graphics</a>
+: Uses polygon offset to draw wireframe over shaded polygons without ugly "stitching" artifacts.
+<br>&nbsp;<a href="scube.html">Scube, originally by David G Yu/Mark J. Kilgard/Silicon Graphics</a>
+: Displays a spinning cube and its shadow.
+<br>&nbsp;<a href="particle.html">Particle, originally by Nate Robins</a>
+: An example of a simple particle system.
+<br>&nbsp;<a href="text3d.html">Text3d, originally by Robert J. Doyle, Jr.</a>
+: 3D animated text.
+<br>&nbsp;<a href="dinoshade.html">Dinoshade, originally by Mark J. Kilgard</a>
+: Combines texturing, reflections, and projected shadows.
+<br>&nbsp;
+<br>
+<br>
+<hr>
+I have only added a new Class, to support a simple <br>
+customizing feature to these Applets ! <br>
+<br>
+The new Class is called "gl4java.applet.SimpleGLAnimApplet1", <br>
+and it supports to customize the frame/secounds (fps) value <br>
+and the refresh technique - both for animations ! <br>
+This new Class is now part of the GL4Java distribution,
+but is added here for portability !<br>
+<br>
+I removed the endless refresh technique from Ron, <br>
+so that the more portable "repaint" technique is used as default. <br>
+You can switch this off, like the "fps-sleep" delay ... <br>
+But you should know, what you are doing, e.g. be sure to have a <br>
+native thread JVM (MS-IE, and unix JVM's runs well with it) ! <br>
+<br>
+I removed the cab-files, and the jar-files also, <br>
+because it looks too confusing and too overdriven for me. <br>
+If you use MS-IE 4.0, be sure to have the new <br>
+MS-JVM machine (build 3186) installed ! <br>
+<br>
+Sven Goethel
+</body>
+</html>
diff --git a/demos/RonsDemos/index_plugin13.html b/demos/RonsDemos/index_plugin13.html
new file mode 100644
index 0000000..e2f5095
--- /dev/null
+++ b/demos/RonsDemos/index_plugin13.html
@@ -0,0 +1,124 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="Author" content="Ron Cemer & Sven Goethel">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>OpenGL Demos Ported to GL4Java</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<br>&nbsp;
+<a href="../../Installer/java.policy">The Java2 (sdk, jre, plugin 1.3) policy file example to give GL4Java the necessary permissions (Click here) !</a>
+<br>&nbsp;
+<hr>
+!!! The original demos are ported by Ron Cemer !!! <br>
+<br>
+I have made some changes, which i described below !<br>
+<br>
+Many THANXS to Ron Cemer !!!!!!!!! <br>
+<br>
+Sven Goethel
+<hr>
+
+This page contains OpenGL demos, originally
+written in C, which have been ported to Java and
+<br>modified to use the GL4Java library.
+<p>Since the source code is readily available for these demos, they could
+serve as a great starting point
+<br>for aspiring Java applet programmers who may or may not have experience
+with OpenGL.&nbsp; You DO
+<br>need to know Java in order to understand what is going on.&nbsp; Additionally,
+I STRONGLY recommend
+<br>that you buy the "OpenGL Programmer's Guide" (often called the "Red
+Book") if you plan to do
+<br>OpenGL programming, whether for C, Java or any other language.
+<p>*** YOU MUST INSTALL THE GL4JAVA LIBRARIES BEFORE RUNNING THE DEMOS
+***
+<br>If you haven't installed the GL4Java libraries yet, go do that first,
+then come back here and enjoy!
+<p>Here are the demos:
+<p>&nbsp;<a href="renormal_plugin13.html">Renormal, originally by Brian Paul</a>
+: a sphere that grows and shrinks; demonstrates how to use auto-normalization.
+<br>&nbsp;<a href="gears_plugin13.html">Gears, originally by Brian Paul</a> : three
+animated gears; user can rotate the scene using the mouse.
+<br>&nbsp;<a href="texobj_plugin13.html">Texobj, originally by Brian Paul</a> :
+two animated, texture-mapped squares.
+<br>&nbsp;<a href="reflect_plugin13.html">Reflect, originally by Brian Paul</a>
+: rotating, textured, reflective platform with hovering objects.
+<br>&nbsp;<a href="star_plugin13.html">Star, originally by Silicon Graphics</a>
+: particle animation of stars flying toward the viewer.
+<br>&nbsp;<a href="movelight_plugin13.html">Movelight, originally by Silicon Graphics</a>
+: interactive directional lighting demonstration.
+<br>&nbsp;<a href="molehill_plugin13.html">Molehill, author unknown</a>
+: shiny nurbs/evaluators example.
+<br>&nbsp;<a href="fog_plugin13.html">Fog, originally by Silicon Graphics</a>
+: red spheres fading into a fog background.
+<br>&nbsp;<a href="surface_plugin13.html">Surface, originally by Silicon Graphics</a>
+: NURBS surface demo.
+<br>&nbsp;<a href="moth_plugin13.html">Moth, originally by Robert Doyle</a>
+: simulation of a moth flying around a light.
+<br>&nbsp;<a href="shadowvol_plugin13.html">Shadowvol, originally by Tom McReynolds, SGI</a>
+: demonstrates the use of shadow volumes.
+<br>&nbsp;<a href="softshadow_plugin13.html">Softshadow, originally by Tom McReynolds, SGI</a>
+: demonstrates use of the accumulation buffer for soft shadows.
+<br>&nbsp;<a href="material_plugin13.html">Material, originally by Silicon Graphics</a>
+: demonstrates the use of the OpenGL lighting model and materials.
+<br>&nbsp;<a href="logo_plugin13.html">Logo, author unknown</a>
+: 3D SGI logo with textures and user-adjustable rendering parameters.
+<br>&nbsp;<a href="glutplane_plugin13.html">Glutplane, originally by Mark J. Kilgard</a>
+: Paper airplanes demo. Originally written for Mark J Kilgard's GL Utility Toolkit (GLUT).
+<br>&nbsp;<a href="spots_plugin13.html">Spots, originally by Mark J. Kilgard</a>
+: Spot light demo.
+<br>&nbsp;<a href="rings_plugin13.html">Rings, originally by Philip Winston</a>
+: Do a slow zoom on a bunch of rings (ala Superman III?).
+<br>&nbsp;<a href="steam_plugin13.html">Steam, originally by Troy Robinette</a>
+: Miniature steam engine simulation.
+<br>&nbsp;<a href="dof_plugin13.html">DOF, originally by Silicon Graphics</a>
+: Uses accumulation buffer to create an out-of-focus depth-of-field effect.
+<br>&nbsp;<a href="pointblast_plugin13.html">Pointblast, originally by Mark J. Kilgard</a>
+: Particle animation demo.
+<br>&nbsp;<a href="quadric_plugin13.html">Quadric, originally by Silicon Graphics</a>
+: Demonstrates the use of some of the gluQuadric* routines.
+<br>&nbsp;<a href="mipmap_plugin13.html">Mipmap, originally by Silicon Graphics</a>
+: Demonstrates the use of mipmaps for texture maps.
+<br>&nbsp;<a href="teapots_plugin13.html">Teapots, originally by Silicon Graphics</a>
+: Demonstrates lots of material properties.
+<br>&nbsp;<a href="texgen_plugin13.html">Texgen, originally by Silicon Graphics</a>
+: Demonstrates the use of automatically generated texture coordinates.
+<br>&nbsp;<a href="polyoff_plugin13.html">Polyoff, originally by Silicon Graphics</a>
+: Uses polygon offset to draw wireframe over shaded polygons without ugly "stitching" artifacts.
+<br>&nbsp;<a href="scube_plugin13.html">Scube, originally by David G Yu/Mark J. Kilgard/Silicon Graphics</a>
+: Displays a spinning cube and its shadow.
+<br>&nbsp;<a href="particle_plugin13.html">Particle, originally by Nate Robins</a>
+: An example of a simple particle system.
+<br>&nbsp;<a href="text3d_plugin13.html">Text3d, originally by Robert J. Doyle, Jr.</a>
+: 3D animated text.
+<br>&nbsp;<a href="dinoshade_plugin13.html">Dinoshade, originally by Mark J. Kilgard</a>
+: Combines texturing, reflections, and projected shadows.
+<br>&nbsp;
+<br>
+<br>
+<hr>
+I have only added a new Class, to support a simple <br>
+customizing feature to these Applets ! <br>
+<br>
+The new Class is called "gl4java.applet.SimpleGLAnimApplet1", <br>
+and it supports to customize the frame/secounds (fps) value <br>
+and the refresh technique - both for animations ! <br>
+This new Class is now part of the GL4Java distribution,
+but is added here for portability !<br>
+<br>
+I removed the endless refresh technique from Ron, <br>
+so that the more portable "repaint" technique is used as default. <br>
+You can switch this off, like the "fps-sleep" delay ... <br>
+But you should know, what you are doing, e.g. be sure to have a <br>
+native thread JVM (MS-IE, and unix JVM's runs well with it) ! <br>
+<br>
+I removed the cab-files, and the jar-files also, <br>
+because it looks too confusing and too overdriven for me. <br>
+If you use MS-IE 4.0, be sure to have the new <br>
+MS-JVM machine (build 3186) installed ! <br>
+<br>
+Sven Goethel
+</body>
+</html>
diff --git a/demos/RonsDemos/logo.html b/demos/RonsDemos/logo.html
new file mode 100644
index 0000000..98055c7
--- /dev/null
+++ b/demos/RonsDemos/logo.html
@@ -0,0 +1,45 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Logo (author unknown); ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Logo applet
+<br>Originial author unknown
+<br>Ported to Java by Ron Cemer
+<br>SEE BELOW FOR INSTRUCTIONS.
+<br>
+<applet code="logo.class" width=400 height=400>
+</applet>
+<br>Click inside the window, then press any of the following keys:
+<br>Up/down arrows: move the clipping plane in or out
+<br>Left/right arrows: rotate the model
+<br>z/Z: translate (move) the model in or out
+<br>1: render points only
+<br>2: render line drawing
+<br>3: render polygons
+<br>4: enable polygon smoothing
+<br>5: disable polygon smoothing
+<br>6: enable dithering
+<br>7: disable dithering
+<br>8: enable polygon stippling
+<br>9: disable polygon stippling
+<br>-: smooth shading
+<br>=: flat shading
+<br>q: disable culling
+<br>w: cull backfaces
+<br>e: cull frontfaces
+<br>r: frontfaces are counterclockwise (CCW)
+<br>t: frontfaces are clockwise (CW)
+<br>y/u: change stippling pattern
+<br>a: enable texturing; use brick texture
+<br>s: enable texturing; use checkered texture
+<br>d: disable texturing
+<br>f: texure modulate mode
+<br>g: texure decal mode
+<br>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/logo.java b/demos/RonsDemos/logo.java
new file mode 100644
index 0000000..0360ef8
--- /dev/null
+++ b/demos/RonsDemos/logo.java
@@ -0,0 +1,1091 @@
+/**
+ * @(#) logo.java
+ * @(#) author unknown (converted to Java by Ron Cemer)
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+
+public class logo extends Applet
+{
+ // [3*CHECKIMAGEWIDTH*CHECKIMAGEHEIGHT]
+ private static final byte checkImage[] =
+ {
+ (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff,
+ (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff,
+ (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00,
+ (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff,
+ (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff,
+ (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00,
+ (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff,
+ (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff,
+ (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00,
+ (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff,
+ (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff,
+ (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0x00, (byte)0x00, (byte)0x00,
+ };
+ // [4*BRICKIMAGEWIDTH*BRICKIMAGEHEIGHT]
+ private static final byte brickImage[] =
+ {
+ (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff,
+ (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff,
+ (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff,
+ (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff,
+ (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff,
+ (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff,
+ (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff,
+ (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff,
+ (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff,
+ (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff,
+ (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff,
+ (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff,
+ (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff,
+ (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff,
+ (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff,
+ (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff, (byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff, (byte)0xa4,(byte)0x00,(byte)0x00,(byte)0xff
+ };
+ // [4*32]
+ private static final byte stipple[] =
+ {
+ (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
+ (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
+ (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
+ (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
+ (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
+ (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
+ (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
+ (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
+
+ (byte)0x00, (byte)0x0F, (byte)0xF0, (byte)0x00,
+ (byte)0x00, (byte)0x0F, (byte)0xF0, (byte)0x00,
+ (byte)0x00, (byte)0x0F, (byte)0xF0, (byte)0x00,
+ (byte)0x00, (byte)0x0F, (byte)0xF0, (byte)0x00,
+ (byte)0x00, (byte)0x0F, (byte)0xF0, (byte)0x00,
+ (byte)0x00, (byte)0x0F, (byte)0xF0, (byte)0x00,
+ (byte)0x00, (byte)0x0F, (byte)0xF0, (byte)0x00,
+ (byte)0x00, (byte)0x0F, (byte)0xF0, (byte)0x00,
+
+ (byte)0x00, (byte)0x0F, (byte)0xF0, (byte)0x00,
+ (byte)0x00, (byte)0x0F, (byte)0xF0, (byte)0x00,
+ (byte)0x00, (byte)0x0F, (byte)0xF0, (byte)0x00,
+ (byte)0x00, (byte)0x0F, (byte)0xF0, (byte)0x00,
+ (byte)0x00, (byte)0x0F, (byte)0xF0, (byte)0x00,
+ (byte)0x00, (byte)0x0F, (byte)0xF0, (byte)0x00,
+ (byte)0x00, (byte)0x0F, (byte)0xF0, (byte)0x00,
+ (byte)0x00, (byte)0x0F, (byte)0xF0, (byte)0x00,
+
+ (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
+ (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
+ (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
+ (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
+ (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
+ (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
+ (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
+ (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
+ };
+ // [18][2]
+ private static final float tscp[][] =
+ {
+ { 0.0f, 0.0f },
+ { 1.0f, 0.0f },
+ { 0.0f, 0.125f },
+ { 1.0f, 0.125f },
+ { 0.0f, 0.250f },
+ { 1.0f, 0.25f },
+ { 0.0f, 0.375f },
+ { 1.0f, 0.375f },
+ { 0.0f, 0.50f },
+ { 1.0f, 0.50f },
+ { 0.0f, 0.625f },
+ { 1.0f, 0.625f },
+ { 0.0f, 0.75f },
+ { 1.0f, 0.75f },
+ { 0.0f, 0.875f },
+ { 1.0f, 0.875f },
+ { 0.0f, 1.0f },
+ { 1.0f, 1.0f }
+ };
+ // [18][3]
+ private static final float scp[][] =
+ {
+ { 1.000000f, 0.000000f, 0.000000f },
+ { 1.000000f, 0.000000f, 5.000000f },
+ { 0.707107f, 0.707107f, 0.000000f },
+ { 0.707107f, 0.707107f, 5.000000f },
+ { 0.000000f, 1.000000f, 0.000000f },
+ { 0.000000f, 1.000000f, 5.000000f },
+ { -0.707107f, 0.707107f, 0.000000f },
+ { -0.707107f, 0.707107f, 5.000000f },
+ { -1.000000f, 0.000000f, 0.000000f },
+ { -1.000000f, 0.000000f, 5.000000f },
+ { -0.707107f, -0.707107f, 0.000000f },
+ { -0.707107f, -0.707107f, 5.000000f },
+ { 0.000000f, -1.000000f, 0.000000f },
+ { 0.000000f, -1.000000f, 5.000000f },
+ { 0.707107f, -0.707107f, 0.000000f },
+ { 0.707107f, -0.707107f, 5.000000f },
+ { 1.000000f, 0.000000f, 0.000000f },
+ { 1.000000f, 0.000000f, 5.000000f }
+ };
+ // [18][3]
+ private static final float dcp[][] =
+ {
+ { 1.000000f, 0.000000f, 0.000000f },
+ { 1.000000f, 0.000000f, 7.000000f },
+ { 0.707107f, 0.707107f, 0.000000f },
+ { 0.707107f, 0.707107f, 7.000000f },
+ { 0.000000f, 1.000000f, 0.000000f },
+ { 0.000000f, 1.000000f, 7.000000f },
+ { -0.707107f, 0.707107f, 0.000000f },
+ { -0.707107f, 0.707107f, 7.000000f },
+ { -1.000000f, 0.000000f, 0.000000f },
+ { -1.000000f, 0.000000f, 7.000000f },
+ { -0.707107f, -0.707107f, 0.000000f },
+ { -0.707107f, -0.707107f, 7.000000f },
+ { 0.000000f, -1.000000f, 0.000000f },
+ { 0.000000f, -1.000000f, 7.000000f },
+ { 0.707107f, -0.707107f, 0.000000f },
+ { 0.707107f, -0.707107f, 7.000000f },
+ { 1.000000f, 0.000000f, 0.000000f },
+ { 1.000000f, 0.000000f, 7.000000f }
+ };
+ // [7][9][3]
+ private static final float ep[][][] =
+ {
+ {
+ { 1.000000f, 0.000000f, 0.000000f },
+ { 0.707107f, 0.707107f, 0.000000f },
+ { 0.000000f, 1.000000f, 0.000000f },
+ { -0.707107f, 0.707107f, 0.000000f },
+ { -1.000000f, 0.000000f, 0.000000f },
+ { -0.707107f, -0.707107f, 0.000000f },
+ { 0.000000f, -1.000000f, 0.000000f },
+ { 0.707107f, -0.707107f, 0.000000f },
+ { 1.000000f, 0.000000f, 0.000000f }
+ },
+ {
+ { 1.000000f, 0.034074f, 0.258819f },
+ { 0.707107f, 0.717087f, 0.075806f },
+ { 0.000000f, 1.000000f, 0.000000f },
+ { -0.707107f, 0.717087f, 0.075806f },
+ { -1.000000f, 0.034074f, 0.258819f },
+ { -0.707107f, -0.648939f, 0.441832f },
+ { 0.000000f, -0.931852f, 0.517638f },
+ { 0.707107f, -0.648939f, 0.441832f },
+ { 1.000000f, 0.034074f, 0.258819f }
+ },
+ {
+ { 1.000000f, 0.133975f, 0.500000f },
+ { 0.707107f, 0.746347f, 0.146447f },
+ { 0.000000f, 1.000000f, 0.000000f },
+ { -0.707107f, 0.746347f, 0.146447f },
+ { -1.000000f, 0.133975f, 0.500000f },
+ { -0.707107f, -0.478398f, 0.853553f },
+ { 0.000000f, -0.732051f, 1.000000f },
+ { 0.707107f, -0.478398f, 0.853553f },
+ { 1.000000f, 0.133975f, 0.500000f }
+ },
+ {
+ { 1.000000f, 0.292893f, 0.707107f },
+ { 0.707107f, 0.792893f, 0.207107f },
+ { 0.000000f, 1.000000f, 0.000000f },
+ { -0.707107f, 0.792893f, 0.207107f },
+ { -1.000000f, 0.292893f, 0.707107f },
+ { -0.707107f, -0.207107f, 1.207107f },
+ { 0.000000f, -0.414214f, 1.414214f },
+ { 0.707107f, -0.207107f, 1.207107f },
+ { 1.000000f, 0.292893f, 0.707107f }
+ },
+ {
+ { 1.000000f, 0.500000f, 0.866025f },
+ { 0.707107f, 0.853553f, 0.253653f },
+ { 0.000000f, 1.000000f, 0.000000f },
+ { -0.707107f, 0.853553f, 0.253653f },
+ { -1.000000f, 0.500000f, 0.866025f },
+ { -0.707107f, 0.146447f, 1.478398f },
+ { 0.000000f, 0.000000f, 1.732051f },
+ { 0.707107f, 0.146447f, 1.478398f },
+ { 1.000000f, 0.500000f, 0.866025f }
+ },
+ {
+ { 1.000000f, 0.741181f, 0.965926f },
+ { 0.707107f, 0.924194f, 0.282913f },
+ { 0.000000f, 1.000000f, 0.000000f },
+ { -0.707107f, 0.924194f, 0.282913f },
+ { -1.000000f, 0.741181f, 0.965926f },
+ { -0.707107f, 0.558168f, 1.648939f },
+ { 0.000000f, 0.482362f, 1.931852f },
+ { 0.707107f, 0.558168f, 1.648939f },
+ { 1.000000f, 0.741181f, 0.965926f }
+ },
+ {
+ { 1.000000f, 1.000000f, 1.000000f },
+ { 0.707107f, 1.000000f, 0.292893f },
+ { 0.000000f, 1.000000f, 0.000000f },
+ { -0.707107f, 1.000000f, 0.292893f },
+ { -1.000000f, 1.000000f, 1.000000f },
+ { -0.707107f, 1.000000f, 1.707107f },
+ { 0.000000f, 1.000000f, 2.000000f },
+ { 0.707107f, 1.000000f, 1.707107f },
+ { 1.000000f, 1.000000f, 1.000000f }
+ }
+ };
+ // [7][9][3]
+ private static final float en[][][] =
+ {
+ {
+ { 1.000000f, 0.000000f, 0.000000f },
+ { 0.707107f, 0.707107f, 0.000000f },
+ { 0.000000f, 1.000000f, 0.000000f },
+ { -0.707107f, 0.707107f, 0.000000f },
+ { -1.000000f, 0.000000f, 0.000000f },
+ { -0.707107f, -0.707107f, 0.000000f },
+ { 0.000000f, -1.000000f, 0.000000f },
+ { 0.707107f, -0.707107f, 0.000000f },
+ { 1.000000f, 0.000000f, 0.000000f }
+ },
+ {
+ { 1.000000f, 0.000000f, 0.000000f },
+ { 0.707107f, 0.683013f, -0.183013f },
+ { 0.000000f, 0.965926f, -0.258819f },
+ { -0.707107f, 0.683013f, -0.183013f },
+ { -1.000000f, 0.000000f, 0.000000f },
+ { -0.707107f, -0.683013f, 0.183013f },
+ { 0.000000f, -0.965926f, 0.258819f },
+ { 0.707107f, -0.683013f, 0.183013f },
+ { 1.000000f, 0.000000f, 0.000000f }
+ },
+ {
+ { 1.000000f, 0.000000f, 0.000000f },
+ { 0.707107f, 0.612372f, -0.353553f },
+ { 0.000000f, 0.866025f, -0.500000f },
+ { -0.707107f, 0.612372f, -0.353553f },
+ { -1.000000f, 0.000000f, 0.000000f },
+ { -0.707107f, -0.612372f, 0.353553f },
+ { 0.000000f, -0.866025f, 0.500000f },
+ { 0.707107f, -0.612372f, 0.353553f },
+ { 1.000000f, 0.000000f, 0.000000f }
+ },
+ {
+ { 1.000000f, 0.000000f, 0.000000f },
+ { 0.000000f, 0.707107f, -0.707107f },
+ { -0.707107f, 0.500000f, -0.500000f },
+ { -1.000000f, 0.000000f, 0.000000f },
+ { -0.707107f, -0.500000f, 0.500000f },
+ { 0.000000f, -0.707107f, 0.707107f },
+ { 0.707107f, -0.500000f, 0.500000f },
+ { 1.000000f, 0.000000f, 0.000000f },
+ { 0.000000f, 0.000000f, 0.000000f } /// ???
+ },
+ {
+ { 1.000000f, 0.000000f, 0.000000f },
+ { 0.707107f, 0.353553f, -0.612372f },
+ { 0.000000f, 0.500000f, -0.866025f },
+ { -0.707107f, 0.353553f, -0.612372f },
+ { -1.000000f, 0.000000f, 0.000000f },
+ { -0.707107f, -0.353553f, 0.612372f },
+ { 0.000000f, -0.500000f, 0.866025f },
+ { 0.707107f, -0.353553f, 0.612372f },
+ { 1.000000f, 0.000000f, 0.000000f }
+ },
+ {
+ { 1.000000f, 0.000000f, 0.000000f },
+ { 0.707107f, 0.183013f, -0.683013f },
+ { 0.000000f, 0.258819f, -0.965926f },
+ { -0.707107f, 0.183013f, -0.683013f },
+ { -1.000000f, 0.000000f, 0.000000f },
+ { -0.707107f, -0.183013f, 0.683013f },
+ { 0.000000f, -0.258819f, 0.965926f },
+ { 0.707107f, -0.183013f, 0.683013f },
+ { 1.000000f, 0.000000f, 0.000000f }
+ },
+ {
+ { 1.000000f, 0.000000f, 0.000000f },
+ { 0.707107f, 0.000000f, -0.707107f },
+ { 0.000000f, 0.000000f, -1.000000f },
+ { -0.707107f, 0.000000f, -0.707107f },
+ { -1.000000f, 0.000000f, 0.000000f },
+ { -0.707107f, 0.000000f, 0.707107f },
+ { 0.000000f, 0.000000f, 1.000000f },
+ { 0.707107f, 0.000000f, 0.707107f },
+ { 1.000000f, 0.000000f, 0.000000f }
+ }
+ };
+ // [7][9][2]
+ private static final float tep[][][] =
+ {
+ {
+ { 0.0f, 0.0f },
+ { 0.125f, 0.0f },
+ { 0.25f, 0.0f },
+ { 0.375f, 0.0f },
+ { 0.5f, 0.0f },
+ { 0.625f, 0.0f },
+ { 0.75f, 0.0f },
+ { 0.875f, 0.0f },
+ { 1.0f, 0.0f }
+ },
+ {
+ { 0.0f, 0.16667f },
+ { 0.125f, 0.16667f },
+ { 0.25f, 0.16667f },
+ { 0.375f, 0.16667f },
+ { 0.5f, 0.16667f },
+ { 0.625f, 0.16667f },
+ { 0.75f, 0.16667f },
+ { 0.875f, 0.16667f },
+ { 1.0f, 0.16667f }
+ },
+ {
+ { 0.0f, 0.33333f },
+ { 0.125f, 0.33333f },
+ { 0.25f, 0.33333f },
+ { 0.375f, 0.33333f },
+ { 0.5f, 0.33333f },
+ { 0.625f, 0.33333f },
+ { 0.75f, 0.33333f },
+ { 0.875f, 0.33333f },
+ { 1.0f, 0.33333f }
+ },
+ {
+ { 0.0f, 0.5f },
+ { 0.125f, 0.5f },
+ { 0.25f, 0.5f },
+ { 0.375f, 0.5f },
+ { 0.5f, 0.5f },
+ { 0.625f, 0.5f },
+ { 0.75f, 0.5f },
+ { 0.875f, 0.5f },
+ { 1.0f, 0.5f }
+ },
+ {
+ { 0.0f, 0.6667f },
+ { 0.125f, 0.6667f },
+ { 0.25f, 0.6667f },
+ { 0.375f, 0.6667f },
+ { 0.5f, 0.6667f },
+ { 0.625f, 0.6667f },
+ { 0.75f, 0.6667f },
+ { 0.875f, 0.6667f },
+ { 1.0f, 0.6667f }
+ },
+ {
+ { 0.0f, 0.83333f },
+ { 0.125f, 0.83333f },
+ { 0.25f, 0.83333f },
+ { 0.375f, 0.83333f },
+ { 0.5f, 0.83333f },
+ { 0.625f, 0.83333f },
+ { 0.75f, 0.83333f },
+ { 0.875f, 0.83333f },
+ { 1.0f, 0.83333f }
+ },
+ {
+ { 0.0f, 1.0f },
+ { 0.125f, 1.0f },
+ { 0.25f, 1.0f },
+ { 0.375f, 1.0f },
+ { 0.5f, 1.0f },
+ { 0.625f, 1.0f },
+ { 0.75f, 1.0f },
+ { 0.875f, 1.0f },
+ { 1.0f, 1.0f }
+ }
+ };
+
+ logoCanvas canvas = null;
+
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new logoCanvas(d.width, d.height);
+ canvas.requestFocus();
+ add("Center", canvas);
+ }
+
+
+ /* Start the applet */
+
+
+ public void start()
+ {
+ }
+
+
+ /* Stop the applet */
+
+
+ public void stop()
+ {
+ }
+
+
+ /* Destroy the applet */
+
+
+ public void destroy()
+ {
+ canvas.cvsDispose();
+ }
+
+
+ /* Local GLCanvas extension class */
+
+
+ private class logoCanvas extends GLCanvas
+ implements KeyListener, MouseListener
+ {
+ byte BLACK = (byte)0;
+ byte GRAY = (byte)128;
+ byte WHITE = (byte)255;
+ int CHECKIMAGEWIDTH = 8;
+ int CHECKIMAGEHEIGHT = 8;
+ int BRICKIMAGEWIDTH = 16;
+ int BRICKIMAGEHEIGHT = 16;
+ float black[] = {0.0f, 0.0f, 0.0f};
+ float white[] = {1.0f, 1.0f, 1.0f};
+ float gray[] = {0.5f, 0.5f, 0.5f};
+ float blue[] = {0.0f, 0.0f, 1.0f};
+ int colorIndexes[] = {0, 200, 255};
+ double plane[] = {1.0f, 0.0f, -1.0f, 12.0f};
+ float yRotation = 30.0f;
+ float zTranslation = -15.0f;
+ int singleCylinder;
+ int doubleCylinder;
+ int elbow, logo;
+ byte[] image = checkImage;
+ int imageHeight = CHECKIMAGEHEIGHT;
+ int imageWidth = CHECKIMAGEWIDTH;
+ float decal[] = { (float)GL_DECAL };
+ float modulate[] = { (float)GL_MODULATE };
+ float repeat[] = { (float)GL_REPEAT };
+ float nearest[] = { (float)GL_NEAREST };
+
+ public logoCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ float ambient[] = {0.1f, 0.1f, 0.1f, 1.0f};
+ float diffuse[] = {0.5f, 1.0f, 1.0f, 1.0f};
+ float position[] = {90.0f, 90.0f, 150.0f, 0.0f};
+ float front_mat_shininess[] = {30.0f};
+ float front_mat_specular[] = {0.2f, 0.2f, 0.2f, 1.0f};
+ float front_mat_diffuse[] = {0.5f, 0.28f, 0.38f, 1.0f};
+ float back_mat_shininess[] = {50.0f};
+ float back_mat_specular[] = {0.5f, 0.5f, 0.2f, 1.0f};
+ float back_mat_diffuse[] = {1.0f, 1.0f, 0.2f, 1.0f};
+ float lmodel_ambient[] = {1.0f, 1.0f, 1.0f, 1.0f};
+ float lmodel_twoside[] = {(float)1.0};
+
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+
+ gl.glFrontFace(GL_CW);
+
+ gl.glEnable(GL_DEPTH_TEST);
+
+ gl.glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);
+ gl.glLightModelfv(GL_LIGHT_MODEL_TWO_SIDE, lmodel_twoside);
+ gl.glLightfv(GL_LIGHT0, GL_AMBIENT, ambient);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse);
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, position);
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, front_mat_shininess);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, front_mat_specular);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, front_mat_diffuse);
+ gl.glMaterialfv(GL_BACK, GL_SHININESS, back_mat_shininess);
+ gl.glMaterialfv(GL_BACK, GL_SPECULAR, back_mat_specular);
+ gl.glMaterialfv(GL_BACK, GL_DIFFUSE, back_mat_diffuse);
+
+ gl.glEnable(GL_CLIP_PLANE0);
+
+ gl.glTexEnvfv(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, modulate);
+ gl.glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, repeat);
+ gl.glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, repeat);
+ gl.glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, nearest);
+ gl.glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, nearest);
+ gl.glTexImage2D
+ (GL_TEXTURE_2D,
+ 0,
+ 4,
+ BRICKIMAGEWIDTH,
+ BRICKIMAGEHEIGHT,
+ 0,
+ GL_RGBA,
+ GL_UNSIGNED_BYTE,
+ brickImage);
+ gl.glEnable(GL_TEXTURE_2D);
+
+ gl.glCullFace(GL_BACK);
+ gl.glEnable(GL_CULL_FACE);
+
+ BuildLists();
+
+ glj.gljCheckGL();
+
+ addKeyListener(this);
+ addMouseListener(this);
+ }
+
+ public void cvsDispose()
+ {
+ System.out.println("destroy(): " + this);
+ removeKeyListener(this);
+ super.cvsDispose();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ glu.gluPerspective(90.0f, 1.0f, 1.0f, 200.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ gl.glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
+
+ gl.glPushMatrix();
+
+ gl.glTranslatef(0.0f, 0.0f, zTranslation);
+ gl.glRotatef(30.0f, 1.0f, 0.0f, 0.0f);
+ gl.glRotatef(yRotation, 0.0f, 1.0f, 0.0f);
+ gl.glClipPlane(GL_CLIP_PLANE0, plane);
+ gl.glCallList(logo);
+
+ gl.glPopMatrix();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ // Methods required for the implementation of KeyListener
+ public void keyPressed(KeyEvent e)
+ {
+ switch (e.getKeyCode())
+ {
+ case KeyEvent.VK_LEFT:
+ yRotation -= 0.5f;
+ repaint();
+ break;
+ case KeyEvent.VK_RIGHT:
+ yRotation += 0.5f;
+ repaint();
+ break;
+ case KeyEvent.VK_UP:
+ plane[3] -= 2.0;
+ repaint();
+ break;
+ case KeyEvent.VK_DOWN:
+ plane[3] += 2.0;
+ repaint();
+ break;
+ }
+ }
+
+ public void keyReleased(KeyEvent e)
+ {
+ }
+
+ public void keyTyped(KeyEvent e)
+ {
+ if (glj.gljMakeCurrent() == false) return;
+ boolean dorepaint = false;
+ switch ((char)e.getKeyChar())
+ {
+ case 'z':
+ zTranslation -= 1.0f;
+ dorepaint = true;
+ break;
+ case 'Z':
+ zTranslation += 1.0f;
+ dorepaint = true;
+ break;
+ case '1':
+ gl.glPolygonMode(GL_FRONT_AND_BACK, GL_POINT);
+ dorepaint = true;
+ break;
+ case '2':
+ gl.glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
+ dorepaint = true;
+ break;
+ case '3':
+ gl.glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
+ dorepaint = true;
+ break;
+ case '4':
+ gl.glEnable(GL_POLYGON_SMOOTH);
+ gl.glBlendFunc(GL_SRC_ALPHA, GL_ONE);
+ gl.glEnable(GL_BLEND);
+ gl.glDisable(GL_DEPTH_TEST);
+ dorepaint = true;
+ break;
+ case '5':
+ gl.glDisable(GL_POLYGON_SMOOTH);
+ gl.glBlendFunc(GL_ONE, GL_ZERO);
+ gl.glDisable(GL_BLEND);
+ gl.glEnable(GL_DEPTH_TEST);
+ dorepaint = true;
+ break;
+ case '6':
+ gl.glEnable(GL_DITHER);
+ dorepaint = true;
+ break;
+ case '7':
+ gl.glDisable(GL_DITHER);
+ dorepaint = true;
+ break;
+ case '8':
+ gl.glPolygonStipple(stipple);
+ gl.glEnable(GL_POLYGON_STIPPLE);
+ dorepaint = true;
+ break;
+ case '9':
+ gl.glDisable(GL_POLYGON_STIPPLE);
+ dorepaint = true;
+ break;
+ case '-':
+ gl.glShadeModel(GL_SMOOTH);
+ dorepaint = true;
+ break;
+ case '=':
+ gl.glShadeModel(GL_FLAT);
+ dorepaint = true;
+ break;
+ case 'q':
+ gl.glDisable(GL_CULL_FACE);
+ dorepaint = true;
+ break;
+ case 'w':
+ gl.glEnable(GL_CULL_FACE);
+ gl.glCullFace(GL_BACK);
+ dorepaint = true;
+ break;
+ case 'e':
+ gl.glEnable(GL_CULL_FACE);
+ gl.glCullFace(GL_FRONT);
+ dorepaint = true;
+ break;
+ case 'r':
+ gl.glFrontFace(GL_CCW);
+ dorepaint = true;
+ break;
+ case 't':
+ gl.glFrontFace(GL_CW);
+ dorepaint = true;
+ break;
+ case 'y':
+ gl.glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
+ gl.glPixelStorei(GL_UNPACK_LSB_FIRST, 0);
+ gl.glPolygonStipple(stipple);
+ dorepaint = true;
+ break;
+ case 'u':
+ gl.glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
+ gl.glPixelStorei(GL_UNPACK_LSB_FIRST, 1);
+ gl.glPolygonStipple(stipple);
+ dorepaint = true;
+ break;
+ case 'a':
+ gl.glEnable(GL_TEXTURE_2D);
+ gl.glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, repeat);
+ gl.glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, repeat);
+ gl.glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, nearest);
+ gl.glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, nearest);
+ gl.glTexImage2D
+ (GL_TEXTURE_2D,
+ 0,
+ 4,
+ BRICKIMAGEWIDTH,
+ BRICKIMAGEHEIGHT,
+ 0,
+ GL_RGBA,
+ GL_UNSIGNED_BYTE,
+ brickImage);
+ dorepaint = true;
+ break;
+ case 's':
+ gl.glEnable(GL_TEXTURE_2D);
+ gl.glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, repeat);
+ gl.glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, repeat);
+ gl.glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, nearest);
+ gl.glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, nearest);
+ gl.glTexImage2D
+ (GL_TEXTURE_2D,
+ 0,
+ 3,
+ CHECKIMAGEWIDTH,
+ CHECKIMAGEHEIGHT,
+ 0,
+ GL_RGB,
+ GL_UNSIGNED_BYTE,
+ checkImage);
+ dorepaint = true;
+ break;
+ case 'd':
+ gl.glDisable(GL_TEXTURE_2D);
+ dorepaint = true;
+ break;
+ case 'f':
+ gl.glTexEnvfv(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, modulate);
+ dorepaint = true;
+ break;
+ case 'g':
+ gl.glTexEnvfv(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, decal);
+ dorepaint = true;
+ break;
+ }
+ glj.gljFree();
+ if (dorepaint) repaint();
+ }
+
+ private void BendForward()
+ {
+ gl.glTranslatef(0.0f, 1.0f, 0.0f);
+ gl.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
+ gl.glTranslatef(0.0f, -1.0f, 0.0f);
+ }
+
+ private void BendLeft()
+ {
+ gl.glRotatef(-90.0f, 0.0f, 0.0f, 1.0f);
+ gl.glTranslatef(0.0f, 1.0f, 0.0f);
+ gl.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
+ gl.glTranslatef(0.0f, -1.0f, 0.0f);
+ }
+
+ private void BendRight()
+ {
+ gl.glRotatef(90.0f, 0.0f, 0.0f, 1.0f);
+ gl.glTranslatef(0.0f, 1.0f, 0.0f);
+ gl.glRotatef(90.0f, 1.0f, 0f, 0.0f);
+ gl.glTranslatef(0.0f, -1.0f, 0.0f);
+ }
+
+ private void BuildSingleCylinder()
+ {
+ gl.glNewList(singleCylinder, GL_COMPILE);
+ gl.glBegin(GL_TRIANGLE_STRIP);
+ gl.glNormal3fv(scp[0]); gl.glTexCoord2fv(tscp[0]); gl.glVertex3fv(scp[0]);
+ gl.glNormal3fv(scp[0]); gl.glTexCoord2fv(tscp[1]); gl.glVertex3fv(scp[1]);
+ gl.glNormal3fv(scp[2]); gl.glTexCoord2fv(tscp[2]); gl.glVertex3fv(scp[2]);
+ gl.glNormal3fv(scp[2]); gl.glTexCoord2fv(tscp[3]); gl.glVertex3fv(scp[3]);
+ gl.glNormal3fv(scp[4]); gl.glTexCoord2fv(tscp[4]); gl.glVertex3fv(scp[4]);
+ gl.glNormal3fv(scp[4]); gl.glTexCoord2fv(tscp[5]); gl.glVertex3fv(scp[5]);
+ gl.glNormal3fv(scp[6]); gl.glTexCoord2fv(tscp[6]); gl.glVertex3fv(scp[6]);
+ gl.glNormal3fv(scp[6]); gl.glTexCoord2fv(tscp[7]); gl.glVertex3fv(scp[7]);
+ gl.glNormal3fv(scp[8]); gl.glTexCoord2fv(tscp[8]); gl.glVertex3fv(scp[8]);
+ gl.glNormal3fv(scp[8]); gl.glTexCoord2fv(tscp[9]); gl.glVertex3fv(scp[9]);
+ gl.glNormal3fv(scp[10]); gl.glTexCoord2fv(tscp[10]); gl.glVertex3fv(scp[10]);
+ gl.glNormal3fv(scp[10]); gl.glTexCoord2fv(tscp[11]); gl.glVertex3fv(scp[11]);
+ gl.glNormal3fv(scp[12]); gl.glTexCoord2fv(tscp[12]); gl.glVertex3fv(scp[12]);
+ gl.glNormal3fv(scp[12]); gl.glTexCoord2fv(tscp[13]); gl.glVertex3fv(scp[13]);
+ gl.glNormal3fv(scp[14]); gl.glTexCoord2fv(tscp[14]); gl.glVertex3fv(scp[14]);
+ gl.glNormal3fv(scp[14]); gl.glTexCoord2fv(tscp[15]); gl.glVertex3fv(scp[15]);
+ gl.glNormal3fv(scp[16]); gl.glTexCoord2fv(tscp[16]); gl.glVertex3fv(scp[16]);
+ gl.glNormal3fv(scp[16]); gl.glTexCoord2fv(tscp[17]); gl.glVertex3fv(scp[17]);
+ gl.glEnd();
+ gl.glEndList();
+ }
+
+ private void BuildDoubleCylinder()
+ {
+ gl.glNewList(doubleCylinder, GL_COMPILE);
+ gl.glBegin(GL_TRIANGLE_STRIP);
+ gl.glNormal3fv(dcp[0]); gl.glTexCoord2fv(tscp[0]); gl.glVertex3fv(dcp[0]);
+ gl.glNormal3fv(dcp[0]); gl.glTexCoord2fv(tscp[1]); gl.glVertex3fv(dcp[1]);
+ gl.glNormal3fv(dcp[2]); gl.glTexCoord2fv(tscp[2]); gl.glVertex3fv(dcp[2]);
+ gl.glNormal3fv(dcp[2]); gl.glTexCoord2fv(tscp[3]); gl.glVertex3fv(dcp[3]);
+ gl.glNormal3fv(dcp[4]); gl.glTexCoord2fv(tscp[4]); gl.glVertex3fv(dcp[4]);
+ gl.glNormal3fv(dcp[4]); gl.glTexCoord2fv(tscp[5]); gl.glVertex3fv(dcp[5]);
+ gl.glNormal3fv(dcp[6]); gl.glTexCoord2fv(tscp[6]); gl.glVertex3fv(dcp[6]);
+ gl.glNormal3fv(dcp[6]); gl.glTexCoord2fv(tscp[7]); gl.glVertex3fv(dcp[7]);
+ gl.glNormal3fv(dcp[8]); gl.glTexCoord2fv(tscp[8]); gl.glVertex3fv(dcp[8]);
+ gl.glNormal3fv(dcp[8]); gl.glTexCoord2fv(tscp[9]); gl.glVertex3fv(dcp[9]);
+ gl.glNormal3fv(dcp[10]); gl.glTexCoord2fv(tscp[10]); gl.glVertex3fv(dcp[10]);
+ gl.glNormal3fv(dcp[10]); gl.glTexCoord2fv(tscp[11]); gl.glVertex3fv(dcp[11]);
+ gl.glNormal3fv(dcp[12]); gl.glTexCoord2fv(tscp[12]); gl.glVertex3fv(dcp[12]);
+ gl.glNormal3fv(dcp[12]); gl.glTexCoord2fv(tscp[13]); gl.glVertex3fv(dcp[13]);
+ gl.glNormal3fv(dcp[14]); gl.glTexCoord2fv(tscp[14]); gl.glVertex3fv(dcp[14]);
+ gl.glNormal3fv(dcp[14]); gl.glTexCoord2fv(tscp[15]); gl.glVertex3fv(dcp[15]);
+ gl.glNormal3fv(dcp[16]); gl.glTexCoord2fv(tscp[16]); gl.glVertex3fv(dcp[16]);
+ gl.glNormal3fv(dcp[16]); gl.glTexCoord2fv(tscp[17]); gl.glVertex3fv(dcp[17]);
+ gl.glEnd();
+ gl.glEndList();
+ }
+
+ private void BuildElbow()
+ {
+ gl.glNewList(elbow, GL_COMPILE);
+ gl.glBegin(GL_TRIANGLE_STRIP);
+ gl.glNormal3fv(en[0][0]); gl.glTexCoord2fv(tep[0][0]); gl.glVertex3fv(ep[0][0]);
+ gl.glNormal3fv(en[1][0]); gl.glTexCoord2fv(tep[1][0]); gl.glVertex3fv(ep[1][0]);
+ gl.glNormal3fv(en[0][1]); gl.glTexCoord2fv(tep[0][1]); gl.glVertex3fv(ep[0][1]);
+ gl.glNormal3fv(en[1][1]); gl.glTexCoord2fv(tep[1][1]); gl.glVertex3fv(ep[1][1]);
+ gl.glNormal3fv(en[0][2]); gl.glTexCoord2fv(tep[0][2]); gl.glVertex3fv(ep[0][2]);
+ gl.glNormal3fv(en[1][2]); gl.glTexCoord2fv(tep[1][2]); gl.glVertex3fv(ep[1][2]);
+ gl.glNormal3fv(en[0][3]); gl.glTexCoord2fv(tep[0][3]); gl.glVertex3fv(ep[0][3]);
+ gl.glNormal3fv(en[1][3]); gl.glTexCoord2fv(tep[1][3]); gl.glVertex3fv(ep[1][3]);
+ gl.glNormal3fv(en[0][4]); gl.glTexCoord2fv(tep[0][4]); gl.glVertex3fv(ep[0][4]);
+ gl.glNormal3fv(en[1][4]); gl.glTexCoord2fv(tep[1][4]); gl.glVertex3fv(ep[1][4]);
+ gl.glNormal3fv(en[0][5]); gl.glTexCoord2fv(tep[0][5]); gl.glVertex3fv(ep[0][5]);
+ gl.glNormal3fv(en[1][5]); gl.glTexCoord2fv(tep[1][5]); gl.glVertex3fv(ep[1][5]);
+ gl.glNormal3fv(en[0][6]); gl.glTexCoord2fv(tep[0][6]); gl.glVertex3fv(ep[0][6]);
+ gl.glNormal3fv(en[1][6]); gl.glTexCoord2fv(tep[1][6]); gl.glVertex3fv(ep[1][6]);
+ gl.glNormal3fv(en[0][7]); gl.glTexCoord2fv(tep[0][7]); gl.glVertex3fv(ep[0][7]);
+ gl.glNormal3fv(en[1][7]); gl.glTexCoord2fv(tep[1][7]); gl.glVertex3fv(ep[1][7]);
+ gl.glNormal3fv(en[0][8]); gl.glTexCoord2fv(tep[0][8]); gl.glVertex3fv(ep[0][8]);
+ gl.glNormal3fv(en[1][8]); gl.glTexCoord2fv(tep[1][8]); gl.glVertex3fv(ep[1][8]);
+ gl.glEnd();
+ gl.glBegin(GL_TRIANGLE_STRIP);
+ gl.glNormal3fv(en[1][0]); gl.glTexCoord2fv(tep[1][0]); gl.glVertex3fv(ep[1][0]);
+ gl.glNormal3fv(en[2][0]); gl.glTexCoord2fv(tep[2][0]); gl.glVertex3fv(ep[2][0]);
+ gl.glNormal3fv(en[1][1]); gl.glTexCoord2fv(tep[1][1]); gl.glVertex3fv(ep[1][1]);
+ gl.glNormal3fv(en[2][1]); gl.glTexCoord2fv(tep[2][1]); gl.glVertex3fv(ep[2][1]);
+ gl.glNormal3fv(en[1][2]); gl.glTexCoord2fv(tep[1][2]); gl.glVertex3fv(ep[1][2]);
+ gl.glNormal3fv(en[2][2]); gl.glTexCoord2fv(tep[2][2]); gl.glVertex3fv(ep[2][2]);
+ gl.glNormal3fv(en[1][3]); gl.glTexCoord2fv(tep[1][3]); gl.glVertex3fv(ep[1][3]);
+ gl.glNormal3fv(en[2][3]); gl.glTexCoord2fv(tep[2][3]); gl.glVertex3fv(ep[2][3]);
+ gl.glNormal3fv(en[1][4]); gl.glTexCoord2fv(tep[1][4]); gl.glVertex3fv(ep[1][4]);
+ gl.glNormal3fv(en[2][4]); gl.glTexCoord2fv(tep[2][4]); gl.glVertex3fv(ep[2][4]);
+ gl.glNormal3fv(en[1][5]); gl.glTexCoord2fv(tep[1][5]); gl.glVertex3fv(ep[1][5]);
+ gl.glNormal3fv(en[2][5]); gl.glTexCoord2fv(tep[2][5]); gl.glVertex3fv(ep[2][5]);
+ gl.glNormal3fv(en[1][6]); gl.glTexCoord2fv(tep[1][6]); gl.glVertex3fv(ep[1][6]);
+ gl.glNormal3fv(en[2][6]); gl.glTexCoord2fv(tep[2][6]); gl.glVertex3fv(ep[2][6]);
+ gl.glNormal3fv(en[1][7]); gl.glTexCoord2fv(tep[1][7]); gl.glVertex3fv(ep[1][7]);
+ gl.glNormal3fv(en[2][7]); gl.glTexCoord2fv(tep[2][7]); gl.glVertex3fv(ep[2][7]);
+ gl.glNormal3fv(en[1][8]); gl.glTexCoord2fv(tep[1][8]); gl.glVertex3fv(ep[1][8]);
+ gl.glNormal3fv(en[2][8]); gl.glTexCoord2fv(tep[2][8]); gl.glVertex3fv(ep[2][8]);
+ gl.glEnd();
+ gl.glBegin(GL_TRIANGLE_STRIP);
+ gl.glNormal3fv(en[2][0]); gl.glTexCoord2fv(tep[2][0]); gl.glVertex3fv(ep[2][0]);
+ gl.glNormal3fv(en[3][0]); gl.glTexCoord2fv(tep[3][0]); gl.glVertex3fv(ep[3][0]);
+ gl.glNormal3fv(en[2][1]); gl.glTexCoord2fv(tep[2][1]); gl.glVertex3fv(ep[2][1]);
+ gl.glNormal3fv(en[3][1]); gl.glTexCoord2fv(tep[3][1]); gl.glVertex3fv(ep[3][1]);
+ gl.glNormal3fv(en[2][2]); gl.glTexCoord2fv(tep[2][2]); gl.glVertex3fv(ep[2][2]);
+ gl.glNormal3fv(en[3][2]); gl.glTexCoord2fv(tep[3][2]); gl.glVertex3fv(ep[3][2]);
+ gl.glNormal3fv(en[2][3]); gl.glTexCoord2fv(tep[2][3]); gl.glVertex3fv(ep[2][3]);
+ gl.glNormal3fv(en[3][3]); gl.glTexCoord2fv(tep[3][3]); gl.glVertex3fv(ep[3][3]);
+ gl.glNormal3fv(en[2][4]); gl.glTexCoord2fv(tep[2][4]); gl.glVertex3fv(ep[2][4]);
+ gl.glNormal3fv(en[3][4]); gl.glTexCoord2fv(tep[3][4]); gl.glVertex3fv(ep[3][4]);
+ gl.glNormal3fv(en[2][5]); gl.glTexCoord2fv(tep[2][5]); gl.glVertex3fv(ep[2][5]);
+ gl.glNormal3fv(en[3][5]); gl.glTexCoord2fv(tep[3][5]); gl.glVertex3fv(ep[3][5]);
+ gl.glNormal3fv(en[2][6]); gl.glTexCoord2fv(tep[2][6]); gl.glVertex3fv(ep[2][6]);
+ gl.glNormal3fv(en[3][6]); gl.glTexCoord2fv(tep[3][6]); gl.glVertex3fv(ep[3][6]);
+ gl.glNormal3fv(en[2][7]); gl.glTexCoord2fv(tep[2][7]); gl.glVertex3fv(ep[2][7]);
+ gl.glNormal3fv(en[3][7]); gl.glTexCoord2fv(tep[3][7]); gl.glVertex3fv(ep[3][7]);
+ gl.glNormal3fv(en[2][8]); gl.glTexCoord2fv(tep[2][8]); gl.glVertex3fv(ep[2][8]);
+ gl.glNormal3fv(en[3][8]); gl.glTexCoord2fv(tep[3][8]); gl.glVertex3fv(ep[3][8]);
+ gl.glEnd();
+ gl.glBegin(GL_TRIANGLE_STRIP);
+ gl.glNormal3fv(en[3][0]); gl.glTexCoord2fv(tep[3][0]); gl.glVertex3fv(ep[3][0]);
+ gl.glNormal3fv(en[4][0]); gl.glTexCoord2fv(tep[4][0]); gl.glVertex3fv(ep[4][0]);
+ gl.glNormal3fv(en[3][1]); gl.glTexCoord2fv(tep[3][1]); gl.glVertex3fv(ep[3][1]);
+ gl.glNormal3fv(en[4][1]); gl.glTexCoord2fv(tep[4][1]); gl.glVertex3fv(ep[4][1]);
+ gl.glNormal3fv(en[3][2]); gl.glTexCoord2fv(tep[3][2]); gl.glVertex3fv(ep[3][2]);
+ gl.glNormal3fv(en[4][2]); gl.glTexCoord2fv(tep[4][2]); gl.glVertex3fv(ep[4][2]);
+ gl.glNormal3fv(en[3][3]); gl.glTexCoord2fv(tep[3][3]); gl.glVertex3fv(ep[3][3]);
+ gl.glNormal3fv(en[4][3]); gl.glTexCoord2fv(tep[4][3]); gl.glVertex3fv(ep[4][3]);
+ gl.glNormal3fv(en[3][4]); gl.glTexCoord2fv(tep[3][4]); gl.glVertex3fv(ep[3][4]);
+ gl.glNormal3fv(en[4][4]); gl.glTexCoord2fv(tep[4][4]); gl.glVertex3fv(ep[4][4]);
+ gl.glNormal3fv(en[3][5]); gl.glTexCoord2fv(tep[3][5]); gl.glVertex3fv(ep[3][5]);
+ gl.glNormal3fv(en[4][5]); gl.glTexCoord2fv(tep[4][5]); gl.glVertex3fv(ep[4][5]);
+ gl.glNormal3fv(en[3][6]); gl.glTexCoord2fv(tep[3][6]); gl.glVertex3fv(ep[3][6]);
+ gl.glNormal3fv(en[4][6]); gl.glTexCoord2fv(tep[4][6]); gl.glVertex3fv(ep[4][6]);
+ gl.glNormal3fv(en[3][7]); gl.glTexCoord2fv(tep[3][7]); gl.glVertex3fv(ep[3][7]);
+ gl.glNormal3fv(en[4][7]); gl.glTexCoord2fv(tep[4][7]); gl.glVertex3fv(ep[4][7]);
+ gl.glNormal3fv(en[3][8]); gl.glTexCoord2fv(tep[3][8]); gl.glVertex3fv(ep[3][8]);
+ gl.glNormal3fv(en[4][8]); gl.glTexCoord2fv(tep[4][8]); gl.glVertex3fv(ep[4][8]);
+ gl.glEnd();
+ gl.glBegin(GL_TRIANGLE_STRIP);
+ gl.glNormal3fv(en[4][0]); gl.glTexCoord2fv(tep[4][0]); gl.glVertex3fv(ep[4][0]);
+ gl.glNormal3fv(en[5][0]); gl.glTexCoord2fv(tep[5][0]); gl.glVertex3fv(ep[5][0]);
+ gl.glNormal3fv(en[4][1]); gl.glTexCoord2fv(tep[4][1]); gl.glVertex3fv(ep[4][1]);
+ gl.glNormal3fv(en[5][1]); gl.glTexCoord2fv(tep[5][1]); gl.glVertex3fv(ep[5][1]);
+ gl.glNormal3fv(en[4][2]); gl.glTexCoord2fv(tep[4][2]); gl.glVertex3fv(ep[4][2]);
+ gl.glNormal3fv(en[5][2]); gl.glTexCoord2fv(tep[5][2]); gl.glVertex3fv(ep[5][2]);
+ gl.glNormal3fv(en[4][3]); gl.glTexCoord2fv(tep[4][3]); gl.glVertex3fv(ep[4][3]);
+ gl.glNormal3fv(en[5][3]); gl.glTexCoord2fv(tep[5][3]); gl.glVertex3fv(ep[5][3]);
+ gl.glNormal3fv(en[4][4]); gl.glTexCoord2fv(tep[4][4]); gl.glVertex3fv(ep[4][4]);
+ gl.glNormal3fv(en[5][4]); gl.glTexCoord2fv(tep[5][4]); gl.glVertex3fv(ep[5][4]);
+ gl.glNormal3fv(en[4][5]); gl.glTexCoord2fv(tep[4][5]); gl.glVertex3fv(ep[4][5]);
+ gl.glNormal3fv(en[5][5]); gl.glTexCoord2fv(tep[5][5]); gl.glVertex3fv(ep[5][5]);
+ gl.glNormal3fv(en[4][6]); gl.glTexCoord2fv(tep[4][6]); gl.glVertex3fv(ep[4][6]);
+ gl.glNormal3fv(en[5][6]); gl.glTexCoord2fv(tep[5][6]); gl.glVertex3fv(ep[5][6]);
+ gl.glNormal3fv(en[4][7]); gl.glTexCoord2fv(tep[4][7]); gl.glVertex3fv(ep[4][7]);
+ gl.glNormal3fv(en[5][7]); gl.glTexCoord2fv(tep[5][7]); gl.glVertex3fv(ep[5][7]);
+ gl.glNormal3fv(en[4][8]); gl.glTexCoord2fv(tep[4][8]); gl.glVertex3fv(ep[4][8]);
+ gl.glNormal3fv(en[5][8]); gl.glTexCoord2fv(tep[5][8]); gl.glVertex3fv(ep[5][8]);
+ gl.glEnd();
+ gl.glBegin(GL_TRIANGLE_STRIP);
+ gl.glNormal3fv(en[5][0]); gl.glTexCoord2fv(tep[5][0]); gl.glVertex3fv(ep[5][0]);
+ gl.glNormal3fv(en[6][0]); gl.glTexCoord2fv(tep[6][0]); gl.glVertex3fv(ep[6][0]);
+ gl.glNormal3fv(en[5][1]); gl.glTexCoord2fv(tep[5][1]); gl.glVertex3fv(ep[5][1]);
+ gl.glNormal3fv(en[6][1]); gl.glTexCoord2fv(tep[6][1]); gl.glVertex3fv(ep[6][1]);
+ gl.glNormal3fv(en[5][2]); gl.glTexCoord2fv(tep[5][2]); gl.glVertex3fv(ep[5][2]);
+ gl.glNormal3fv(en[6][2]); gl.glTexCoord2fv(tep[6][2]); gl.glVertex3fv(ep[6][2]);
+ gl.glNormal3fv(en[5][3]); gl.glTexCoord2fv(tep[5][3]); gl.glVertex3fv(ep[5][3]);
+ gl.glNormal3fv(en[6][3]); gl.glTexCoord2fv(tep[6][3]); gl.glVertex3fv(ep[6][3]);
+ gl.glNormal3fv(en[5][4]); gl.glTexCoord2fv(tep[5][4]); gl.glVertex3fv(ep[5][4]);
+ gl.glNormal3fv(en[6][4]); gl.glTexCoord2fv(tep[6][4]); gl.glVertex3fv(ep[6][4]);
+ gl.glNormal3fv(en[5][5]); gl.glTexCoord2fv(tep[5][5]); gl.glVertex3fv(ep[5][5]);
+ gl.glNormal3fv(en[6][5]); gl.glTexCoord2fv(tep[6][5]); gl.glVertex3fv(ep[6][5]);
+ gl.glNormal3fv(en[5][6]); gl.glTexCoord2fv(tep[5][6]); gl.glVertex3fv(ep[5][6]);
+ gl.glNormal3fv(en[6][6]); gl.glTexCoord2fv(tep[6][6]); gl.glVertex3fv(ep[6][6]);
+ gl.glNormal3fv(en[5][7]); gl.glTexCoord2fv(tep[5][7]); gl.glVertex3fv(ep[5][7]);
+ gl.glNormal3fv(en[6][7]); gl.glTexCoord2fv(tep[6][7]); gl.glVertex3fv(ep[6][7]);
+ gl.glNormal3fv(en[5][8]); gl.glTexCoord2fv(tep[5][8]); gl.glVertex3fv(ep[5][8]);
+ gl.glNormal3fv(en[6][8]); gl.glTexCoord2fv(tep[6][8]); gl.glVertex3fv(ep[6][8]);
+ gl.glEnd();
+ gl.glEndList();
+ }
+
+ private void BuildLogo()
+ {
+ gl.glNewList(logo, GL_COMPILE);
+ gl.glTranslatef(5.5f, -3.5f, 4.5f);
+ gl.glTranslatef(0.0f, 0.0f, -7.0f);
+ gl.glCallList(doubleCylinder);
+ BendForward();
+ gl.glCallList(elbow);
+ gl.glTranslatef(0.0f, 0.0f, -7.0f);
+ gl.glCallList(doubleCylinder);
+ BendForward();
+ gl.glCallList(elbow);
+ gl.glTranslatef(0.0f, 0.0f, -5.0f);
+ gl.glCallList(singleCylinder);
+ BendRight();
+ gl.glCallList(elbow);
+ gl.glTranslatef(0.0f, 0.0f, -7.0f);
+ gl.glCallList(doubleCylinder);
+ BendForward();
+ gl.glCallList(elbow);
+ gl.glTranslatef(0.0f, 0.0f, -7.0f);
+ gl.glCallList(doubleCylinder);
+ BendForward();
+ gl.glCallList(elbow);
+ gl.glTranslatef(0.0f, 0.0f, -5.0f);
+ gl.glCallList(singleCylinder);
+ BendLeft();
+ gl.glCallList(elbow);
+ gl.glTranslatef(0.0f, 0.0f, -7.0f);
+ gl.glCallList(doubleCylinder);
+ BendForward();
+ gl.glCallList(elbow);
+ gl.glTranslatef(0.0f, 0.0f, -7.0f);
+ gl.glCallList(doubleCylinder);
+ BendForward();
+ gl.glCallList(elbow);
+ gl.glTranslatef(0.0f, 0.0f, -5.0f);
+ gl.glCallList(singleCylinder);
+ BendRight();
+ gl.glCallList(elbow);
+ gl.glTranslatef(0.0f, 0.0f, -7.0f);
+ gl.glCallList(doubleCylinder);
+ BendForward();
+ gl.glCallList(elbow);
+ gl.glTranslatef(0.0f, 0.0f, -7.0f);
+ gl.glCallList(doubleCylinder);
+ BendForward();
+ gl.glCallList(elbow);
+ gl.glTranslatef(0.0f, 0.0f, -5.0f);
+ gl.glCallList(singleCylinder);
+ BendLeft();
+ gl.glCallList(elbow);
+ gl.glTranslatef(0.0f, 0.0f, -7.0f);
+ gl.glCallList(doubleCylinder);
+ BendForward();
+ gl.glCallList(elbow);
+ gl.glTranslatef(0.0f, 0.0f, -7.0f);
+ gl.glCallList(doubleCylinder);
+ BendForward();
+ gl.glCallList(elbow);
+ gl.glTranslatef(0.0f, 0.0f, -5.0f);
+ gl.glCallList(singleCylinder);
+ BendRight();
+ gl.glCallList(elbow);
+ gl.glTranslatef(0.0f, 0.0f, -7.0f);
+ gl.glCallList(doubleCylinder);
+ BendForward();
+ gl.glCallList(elbow);
+ gl.glTranslatef(0.0f, 0.0f, -7.0f);
+ gl.glCallList(doubleCylinder);
+ BendForward();
+ gl.glCallList(elbow);
+ gl.glTranslatef(0.0f, 0.0f, -5.0f);
+ gl.glCallList(singleCylinder);
+ BendLeft();
+ gl.glCallList(elbow);
+ gl.glEndList();
+ }
+
+ private void BuildLists()
+ {
+ singleCylinder = gl.glGenLists(1);
+ doubleCylinder = gl.glGenLists(1);
+ elbow = gl.glGenLists(1);
+ logo = gl.glGenLists(1);
+ BuildSingleCylinder();
+ BuildDoubleCylinder();
+ BuildElbow();
+ BuildLogo();
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ public void mouseExited( MouseEvent evt )
+ { }
+ public void mousePressed( MouseEvent evt )
+ { }
+ public void mouseReleased( MouseEvent evt )
+ { }
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+ }
+}
diff --git a/demos/RonsDemos/logo_plugin13.html b/demos/RonsDemos/logo_plugin13.html
new file mode 100644
index 0000000..45fcee6
--- /dev/null
+++ b/demos/RonsDemos/logo_plugin13.html
@@ -0,0 +1,76 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Logo (author unknown); ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Logo applet
+<br>Originial author unknown
+<br>Ported to Java by Ron Cemer
+<br>SEE BELOW FOR INSTRUCTIONS.
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "logo.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "logo.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "logo.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "logo.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<br>Click inside the window, then press any of the following keys:
+<br>Up/down arrows: move the clipping plane in or out
+<br>Left/right arrows: rotate the model
+<br>z/Z: translate (move) the model in or out
+<br>1: render points only
+<br>2: render line drawing
+<br>3: render polygons
+<br>4: enable polygon smoothing
+<br>5: disable polygon smoothing
+<br>6: enable dithering
+<br>7: disable dithering
+<br>8: enable polygon stippling
+<br>9: disable polygon stippling
+<br>-: smooth shading
+<br>=: flat shading
+<br>q: disable culling
+<br>w: cull backfaces
+<br>e: cull frontfaces
+<br>r: frontfaces are counterclockwise (CCW)
+<br>t: frontfaces are clockwise (CW)
+<br>y/u: change stippling pattern
+<br>a: enable texturing; use brick texture
+<br>s: enable texturing; use checkered texture
+<br>d: disable texturing
+<br>f: texure modulate mode
+<br>g: texure decal mode
+<br>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/material.html b/demos/RonsDemos/material.html
new file mode 100644
index 0000000..b740970
--- /dev/null
+++ b/demos/RonsDemos/material.html
@@ -0,0 +1,17 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Material by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Material applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>
+<applet code="material.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/material.java b/demos/RonsDemos/material.java
new file mode 100644
index 0000000..2558c84
--- /dev/null
+++ b/demos/RonsDemos/material.java
@@ -0,0 +1,416 @@
+/**
+ * @(#) material.java
+ * @(#) author: Silicon Graphics (converted to Java by Ron Cemer)
+ */
+
+/*
+ * Copyright (c) 1993-1997, Silicon Graphics, Inc.
+ * ALL RIGHTS RESERVED
+ * Permission to use, copy, modify, and distribute this software for
+ * any purpose and without fee is hereby granted, provided that the above
+ * copyright notice appear in all copies and that both the copyright notice
+ * and this permission notice appear in supporting documentation, and that
+ * the name of Silicon Graphics, Inc. not be used in advertising
+ * or publicity pertaining to distribution of the software without specific,
+ * written prior permission.
+ *
+ * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
+ * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
+ * GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
+ * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
+ * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
+ * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
+ * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN
+ * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
+ * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * US Government Users Restricted Rights
+ * Use, duplication, or disclosure by the Government is subject to
+ * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
+ * (c)(1)(ii) of the Rights in Technical Data and Computer Software
+ * clause at DFARS 252.227-7013 and/or in similar or successor
+ * clauses in the FAR or the DOD or NASA FAR Supplement.
+ * Unpublished-- rights reserved under the copyright laws of the
+ * United States. Contractor/manufacturer is Silicon Graphics,
+ * Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
+ *
+ * OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
+ */
+
+/*
+ * This program demonstrates the use of the GL lighting model.
+ * Several objects are drawn using different material characteristics.
+ * A single light source illuminates the objects.
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+
+public class material extends Applet
+{
+ materialCanvas canvas = null;
+
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new materialCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Start the applet */
+
+
+ public void start()
+ {
+ }
+
+
+ /* Stop the applet */
+
+
+ public void stop()
+ {
+ }
+
+
+ /* Destroy the applet */
+
+
+ public void destroy()
+ {
+ canvas.cvsDispose();
+ }
+
+
+ /* Local GLCanvas extension class */
+
+
+ private class materialCanvas extends GLCanvas
+ {
+ public materialCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ float ambient[] = { 0.0f, 0.0f, 0.0f, 1.0f };
+ float diffuse[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ float specular[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ float position[] = { 0.0f, 3.0f, 2.0f, 0.0f };
+ float lmodel_ambient[] = { 0.4f, 0.4f, 0.4f, 1.0f };
+ float local_view[] = { 0.0f };
+
+ gl.glClearColor(0.0f, 0.1f, 0.1f, 0.0f);
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glShadeModel(GL_SMOOTH);
+
+ gl.glLightfv(GL_LIGHT0, GL_AMBIENT, ambient);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse);
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, position);
+ gl.glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);
+ gl.glLightModelfv(GL_LIGHT_MODEL_LOCAL_VIEWER, local_view);
+
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+
+ glj.gljCheckGL();
+ }
+
+ public void cvsDispose()
+ {
+ System.out.println("destroy(): " + this);
+ super.cvsDispose();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ if (width <= (height * 2))
+ gl.glOrtho
+ (-6.0f,
+ 6.0f,
+ -3.0f*((float)(height*2))/(float)width,
+ 3.0f*((float)(height*2))/(float)width,
+ -10.0f,
+ 10.0f);
+ else
+ gl.glOrtho
+ (-6.0f*(float)width/((float)(height*2)),
+ 6.0f*(float)width/((float)(height*2)),
+ -3.0f,
+ 3.0f,
+ -10.0f,
+ 10.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ float no_mat[] = { 0.0f, 0.0f, 0.0f, 1.0f };
+ float mat_ambient[] = { 0.7f, 0.7f, 0.7f, 1.0f };
+ float mat_ambient_color[] = { 0.8f, 0.8f, 0.2f, 1.0f };
+ float mat_diffuse[] = { 0.1f, 0.5f, 0.8f, 1.0f };
+ float mat_specular[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ float no_shininess[] = { 0.0f };
+ float low_shininess[] = { 5.0f };
+ float high_shininess[] = { 100.0f };
+ float mat_emission[] = {0.3f, 0.2f, 0.2f, 0.0f};
+ int qobj;
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ /* draw sphere in first row, first column
+ * diffuse reflection only; no ambient or specular
+ */
+ gl.glPushMatrix();
+ gl.glTranslatef (-3.75f, 3.0f, 0.0f);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, no_mat);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, no_mat);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, no_shininess);
+ gl.glMaterialfv(GL_FRONT, GL_EMISSION, no_mat);
+ qobj = glu.gluNewQuadric();
+ glu.gluQuadricOrientation(qobj,GLU_OUTSIDE);
+ glu.gluQuadricNormals(qobj,GLU_SMOOTH);
+ glu.gluQuadricTexture(qobj,false);
+ glu.gluSphere(qobj,1.0f,16,16);
+ glu.gluDeleteQuadric(qobj);
+ gl.glPopMatrix();
+
+ /* draw sphere in first row, second column
+ * diffuse and specular reflection; low shininess; no ambient
+ */
+ gl.glPushMatrix();
+ gl.glTranslatef(-1.25f, 3.0f, 0.0f);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, no_mat);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, low_shininess);
+ gl.glMaterialfv(GL_FRONT, GL_EMISSION, no_mat);
+ qobj = glu.gluNewQuadric();
+ glu.gluQuadricOrientation(qobj,GLU_OUTSIDE);
+ glu.gluQuadricNormals(qobj,GLU_SMOOTH);
+ glu.gluQuadricTexture(qobj,false);
+ glu.gluSphere(qobj,1.0f,16,16);
+ glu.gluDeleteQuadric(qobj);
+ gl.glPopMatrix();
+
+ /* draw sphere in first row, third column
+ * diffuse and specular reflection; high shininess; no ambient
+ */
+ gl.glPushMatrix();
+ gl.glTranslatef(1.25f, 3.0f, 0.0f);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, no_mat);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, high_shininess);
+ gl.glMaterialfv(GL_FRONT, GL_EMISSION, no_mat);
+ qobj = glu.gluNewQuadric();
+ glu.gluQuadricOrientation(qobj,GLU_OUTSIDE);
+ glu.gluQuadricNormals(qobj,GLU_SMOOTH);
+ glu.gluQuadricTexture(qobj,false);
+ glu.gluSphere(qobj,1.0f,16,16);
+ glu.gluDeleteQuadric(qobj);
+ gl.glPopMatrix();
+
+ /* draw sphere in first row, fourth column
+ * diffuse reflection; emission; no ambient or specular reflection
+ */
+ gl.glPushMatrix();
+ gl.glTranslatef(3.75f, 3.0f, 0.0f);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, no_mat);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, no_mat);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, no_shininess);
+ gl.glMaterialfv(GL_FRONT, GL_EMISSION, mat_emission);
+ qobj = glu.gluNewQuadric();
+ glu.gluQuadricOrientation(qobj,GLU_OUTSIDE);
+ glu.gluQuadricNormals(qobj,GLU_SMOOTH);
+ glu.gluQuadricTexture(qobj,false);
+ glu.gluSphere(qobj,1.0f,16,16);
+ glu.gluDeleteQuadric(qobj);
+ gl.glPopMatrix();
+
+ /* draw sphere in second row, first column
+ * ambient and diffuse reflection; no specular
+ */
+ gl.glPushMatrix();
+ gl.glTranslatef(-3.75f, 0.0f, 0.0f);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, mat_ambient);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, no_mat);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, no_shininess);
+ gl.glMaterialfv(GL_FRONT, GL_EMISSION, no_mat);
+ qobj = glu.gluNewQuadric();
+ glu.gluQuadricOrientation(qobj,GLU_OUTSIDE);
+ glu.gluQuadricNormals(qobj,GLU_SMOOTH);
+ glu.gluQuadricTexture(qobj,false);
+ glu.gluSphere(qobj,1.0f,16,16);
+ glu.gluDeleteQuadric(qobj);
+ gl.glPopMatrix();
+
+ /* draw sphere in second row, second column
+ * ambient, diffuse and specular reflection; low shininess
+ */
+ gl.glPushMatrix();
+ gl.glTranslatef(-1.25f, 0.0f, 0.0f);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, mat_ambient);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, low_shininess);
+ gl.glMaterialfv(GL_FRONT, GL_EMISSION, no_mat);
+ qobj = glu.gluNewQuadric();
+ glu.gluQuadricOrientation(qobj,GLU_OUTSIDE);
+ glu.gluQuadricNormals(qobj,GLU_SMOOTH);
+ glu.gluQuadricTexture(qobj,false);
+ glu.gluSphere(qobj,1.0f,16,16);
+ glu.gluDeleteQuadric(qobj);
+ gl.glPopMatrix();
+
+ /* draw sphere in second row, third column
+ * ambient, diffuse and specular reflection; high shininess
+ */
+ gl.glPushMatrix();
+ gl.glTranslatef(1.25f, 0.0f, 0.0f);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, mat_ambient);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, high_shininess);
+ gl.glMaterialfv(GL_FRONT, GL_EMISSION, no_mat);
+ qobj = glu.gluNewQuadric();
+ glu.gluQuadricOrientation(qobj,GLU_OUTSIDE);
+ glu.gluQuadricNormals(qobj,GLU_SMOOTH);
+ glu.gluQuadricTexture(qobj,false);
+ glu.gluSphere(qobj,1.0f,16,16);
+ glu.gluDeleteQuadric(qobj);
+ gl.glPopMatrix();
+
+ /* draw sphere in second row, fourth column
+ * ambient and diffuse reflection; emission; no specular
+ */
+ gl.glPushMatrix();
+ gl.glTranslatef(3.75f, 0.0f, 0.0f);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, mat_ambient);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, no_mat);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, no_shininess);
+ gl.glMaterialfv(GL_FRONT, GL_EMISSION, mat_emission);
+ qobj = glu.gluNewQuadric();
+ glu.gluQuadricOrientation(qobj,GLU_OUTSIDE);
+ glu.gluQuadricNormals(qobj,GLU_SMOOTH);
+ glu.gluQuadricTexture(qobj,false);
+ glu.gluSphere(qobj,1.0f,16,16);
+ glu.gluDeleteQuadric(qobj);
+ gl.glPopMatrix();
+
+ /* draw sphere in third row, first column
+ * colored ambient and diffuse reflection; no specular
+ */
+ gl.glPushMatrix();
+ gl.glTranslatef(-3.75f, -3.0f, 0.0f);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, mat_ambient_color);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, no_mat);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, no_shininess);
+ gl.glMaterialfv(GL_FRONT, GL_EMISSION, no_mat);
+ qobj = glu.gluNewQuadric();
+ glu.gluQuadricOrientation(qobj,GLU_OUTSIDE);
+ glu.gluQuadricNormals(qobj,GLU_SMOOTH);
+ glu.gluQuadricTexture(qobj,false);
+ glu.gluSphere(qobj,1.0f,16,16);
+ glu.gluDeleteQuadric(qobj);
+ gl.glPopMatrix();
+
+ /* draw sphere in third row, second column
+ * colored ambient, diffuse and specular reflection; low shininess
+ */
+ gl.glPushMatrix();
+ gl.glTranslatef(-1.25f, -3.0f, 0.0f);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, mat_ambient_color);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, low_shininess);
+ gl.glMaterialfv(GL_FRONT, GL_EMISSION, no_mat);
+ qobj = glu.gluNewQuadric();
+ glu.gluQuadricOrientation(qobj,GLU_OUTSIDE);
+ glu.gluQuadricNormals(qobj,GLU_SMOOTH);
+ glu.gluQuadricTexture(qobj,false);
+ glu.gluSphere(qobj,1.0f,16,16);
+ glu.gluDeleteQuadric(qobj);
+ gl.glPopMatrix();
+
+ /* draw sphere in third row, third column
+ * colored ambient, diffuse and specular reflection; high shininess
+ */
+ gl.glPushMatrix();
+ gl.glTranslatef(1.25f, -3.0f, 0.0f);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, mat_ambient_color);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, high_shininess);
+ gl.glMaterialfv(GL_FRONT, GL_EMISSION, no_mat);
+ qobj = glu.gluNewQuadric();
+ glu.gluQuadricOrientation(qobj,GLU_OUTSIDE);
+ glu.gluQuadricNormals(qobj,GLU_SMOOTH);
+ glu.gluQuadricTexture(qobj,false);
+ glu.gluSphere(qobj,1.0f,16,16);
+ glu.gluDeleteQuadric(qobj);
+ gl.glPopMatrix();
+
+ /* draw sphere in third row, fourth column
+ * colored ambient and diffuse reflection; emission; no specular
+ */
+ gl.glPushMatrix();
+ gl.glTranslatef(3.75f, -3.0f, 0.0f);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, mat_ambient_color);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, no_mat);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, no_shininess);
+ gl.glMaterialfv(GL_FRONT, GL_EMISSION, mat_emission);
+ qobj = glu.gluNewQuadric();
+ glu.gluQuadricOrientation(qobj,GLU_OUTSIDE);
+ glu.gluQuadricNormals(qobj,GLU_SMOOTH);
+ glu.gluQuadricTexture(qobj,false);
+ glu.gluSphere(qobj,1.0f,16,16);
+ glu.gluDeleteQuadric(qobj);
+ gl.glPopMatrix();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+ }
+}
diff --git a/demos/RonsDemos/material_plugin13.html b/demos/RonsDemos/material_plugin13.html
new file mode 100644
index 0000000..07b01bb
--- /dev/null
+++ b/demos/RonsDemos/material_plugin13.html
@@ -0,0 +1,48 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Material by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Material applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "material.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "material.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "material.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "material.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/mipmap.html b/demos/RonsDemos/mipmap.html
new file mode 100644
index 0000000..e61d18e
--- /dev/null
+++ b/demos/RonsDemos/mipmap.html
@@ -0,0 +1,17 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Mipmap by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Mipmap applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>
+<applet code="mipmap.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/mipmap.java b/demos/RonsDemos/mipmap.java
new file mode 100644
index 0000000..7d5f233
--- /dev/null
+++ b/demos/RonsDemos/mipmap.java
@@ -0,0 +1,317 @@
+/**
+ * @(#) mipmap.java
+ * @(#) author: Silicon Graphics, Inc. (converted to Java by Ron Cemer)
+ */
+
+/*
+ * Copyright (c) 1993-1997, Silicon Graphics, Inc.
+ * ALL RIGHTS RESERVED
+ * Permission to use, copy, modify, and distribute this software for
+ * any purpose and without fee is hereby granted, provided that the above
+ * copyright notice appear in all copies and that both the copyright notice
+ * and this permission notice appear in supporting documentation, and that
+ * the name of Silicon Graphics, Inc. not be used in advertising
+ * or publicity pertaining to distribution of the software without specific,
+ * written prior permission.
+ *
+ * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
+ * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
+ * GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
+ * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
+ * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
+ * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
+ * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN
+ * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
+ * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * US Government Users Restricted Rights
+ * Use, duplication, or disclosure by the Government is subject to
+ * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
+ * (c)(1)(ii) of the Rights in Technical Data and Computer Software
+ * clause at DFARS 252.227-7013 and/or in similar or successor
+ * clauses in the FAR or the DOD or NASA FAR Supplement.
+ * Unpublished-- rights reserved under the copyright laws of the
+ * United States. Contractor/manufacturer is Silicon Graphics,
+ * Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
+ *
+ * OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
+ */
+
+/* mipmap.c
+ * This program demonstrates using mipmaps for texture maps.
+ * To overtly show the effect of mipmaps, each mipmap reduction
+ * level has a solidly colored, contrasting texture image.
+ * Thus, the quadrilateral which is drawn is drawn with several
+ * different colors.
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+
+public class mipmap extends Applet
+{
+ mipmapCanvas canvas = null;
+
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new mipmapCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Start the applet */
+
+
+ public void start()
+ {
+ }
+
+
+ /* Stop the applet */
+
+
+ public void stop()
+ {
+ }
+
+
+ /* Destroy the applet */
+
+
+ public void destroy()
+ {
+ canvas.cvsDispose();
+ }
+
+
+ /* Local GLCanvas extension class */
+
+
+ private class mipmapCanvas extends GLCanvas
+ {
+ byte mipmapImage32[] = new byte[32*32*4];
+ byte mipmapImage16[] = new byte[16*16*4];
+ byte mipmapImage8[] = new byte[8*8*4];
+ byte mipmapImage4[] = new byte[4*4*4];
+ byte mipmapImage2[] = new byte[2*2*4];
+ byte mipmapImage1[] = new byte[1*1*4];
+ int texName;
+
+ public mipmapCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glShadeModel(GL_FLAT);
+
+ gl.glTranslatef(0.0f, 0.0f, -3.6f);
+ makeImages();
+ gl.glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
+
+ int tnbuf[] = new int[1];
+ gl.glGenTextures(1, tnbuf);
+ texName = tnbuf[0];
+ gl.glBindTexture(GL_TEXTURE_2D, texName);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
+ gl.glTexParameteri
+ (GL_TEXTURE_2D,
+ GL_TEXTURE_MAG_FILTER,
+ GL_NEAREST);
+ gl.glTexParameteri
+ (GL_TEXTURE_2D,
+ GL_TEXTURE_MIN_FILTER,
+ GL_NEAREST_MIPMAP_NEAREST);
+ gl.glTexImage2D
+ (GL_TEXTURE_2D,
+ 0,
+ GL_RGBA,
+ 32,
+ 32,
+ 0,
+ GL_RGBA,
+ GL_UNSIGNED_BYTE,
+ mipmapImage32);
+ gl.glTexImage2D
+ (GL_TEXTURE_2D,
+ 1,
+ GL_RGBA,
+ 16,
+ 16,
+ 0,
+ GL_RGBA,
+ GL_UNSIGNED_BYTE,
+ mipmapImage16);
+ gl.glTexImage2D
+ (GL_TEXTURE_2D,
+ 2,
+ GL_RGBA,
+ 8,
+ 8,
+ 0,
+ GL_RGBA,
+ GL_UNSIGNED_BYTE,
+ mipmapImage8);
+ gl.glTexImage2D
+ (GL_TEXTURE_2D,
+ 3,
+ GL_RGBA,
+ 4,
+ 4,
+ 0,
+ GL_RGBA,
+ GL_UNSIGNED_BYTE,
+ mipmapImage4);
+ gl.glTexImage2D
+ (GL_TEXTURE_2D,
+ 4,
+ GL_RGBA,
+ 2,
+ 2,
+ 0,
+ GL_RGBA,
+ GL_UNSIGNED_BYTE,
+ mipmapImage2);
+ gl.glTexImage2D
+ (GL_TEXTURE_2D,
+ 5,
+ GL_RGBA,
+ 1,
+ 1,
+ 0,
+ GL_RGBA,
+ GL_UNSIGNED_BYTE,
+ mipmapImage1);
+
+ gl.glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL);
+ gl.glEnable(GL_TEXTURE_2D);
+
+ glj.gljCheckGL();
+ }
+
+ public void cvsDispose()
+ {
+ System.out.println("destroy(): " + this);
+ super.cvsDispose();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ glu.gluPerspective(60.0f,(float)width/(float)height,1.0f,30000.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ gl.glBindTexture(GL_TEXTURE_2D, texName);
+ gl.glBegin(GL_QUADS);
+ gl.glTexCoord2f(0.0f,0.0f); gl.glVertex3f(-2.0f,-1.0f,0.0f);
+ gl.glTexCoord2f(0.0f,8.0f); gl.glVertex3f(-2.0f,1.0f,0.0f);
+ gl.glTexCoord2f(8.0f,8.0f); gl.glVertex3f(2000.0f,1.0f,-6000.0f);
+ gl.glTexCoord2f(8.0f,0.0f); gl.glVertex3f(2000.0f,-1.0f,-6000.0f);
+ gl.glEnd();
+ gl.glFlush();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ private void makeImages()
+ {
+ int i, j, idx;
+
+ for (idx = i = 0; i < 32; i++)
+ {
+ for (j = 0; j < 32; j++)
+ {
+ mipmapImage32[idx++] = (byte)255;
+ mipmapImage32[idx++] = (byte)255;
+ mipmapImage32[idx++] = (byte)0;
+ mipmapImage32[idx++] = (byte)255;
+ }
+ }
+ for (idx = i = 0; i < 16; i++)
+ {
+ for (j = 0; j < 16; j++)
+ {
+ mipmapImage16[idx++] = (byte)255;
+ mipmapImage16[idx++] = (byte)0;
+ mipmapImage16[idx++] = (byte)255;
+ mipmapImage16[idx++] = (byte)255;
+ }
+ }
+ for (idx = i = 0; i < 8; i++)
+ {
+ for (j = 0; j < 8; j++)
+ {
+ mipmapImage8[idx++] = (byte)255;
+ mipmapImage8[idx++] = (byte)0;
+ mipmapImage8[idx++] = (byte)0;
+ mipmapImage8[idx++] = (byte)255;
+ }
+ }
+ for (idx = i = 0; i < 4; i++)
+ {
+ for (j = 0; j < 4; j++)
+ {
+ mipmapImage4[idx++] = (byte)0;
+ mipmapImage4[idx++] = (byte)255;
+ mipmapImage4[idx++] = (byte)0;
+ mipmapImage4[idx++] = (byte)255;
+ }
+ }
+ for (idx = i = 0; i < 2; i++)
+ {
+ for (j = 0; j < 2; j++)
+ {
+ mipmapImage2[idx++] = (byte)0;
+ mipmapImage2[idx++] = (byte)0;
+ mipmapImage2[idx++] = (byte)255;
+ mipmapImage2[idx++] = (byte)255;
+ }
+ }
+ mipmapImage1[0] = (byte)255;
+ mipmapImage1[1] = (byte)255;
+ mipmapImage1[2] = (byte)255;
+ mipmapImage1[3] = (byte)255;
+ }
+ }
+}
diff --git a/demos/RonsDemos/mipmap_plugin13.html b/demos/RonsDemos/mipmap_plugin13.html
new file mode 100644
index 0000000..f197e77
--- /dev/null
+++ b/demos/RonsDemos/mipmap_plugin13.html
@@ -0,0 +1,48 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Mipmap by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Mipmap applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "mipmap.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "mipmap.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "mipmap.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "mipmap.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/molehill.html b/demos/RonsDemos/molehill.html
new file mode 100644
index 0000000..361f5b1
--- /dev/null
+++ b/demos/RonsDemos/molehill.html
@@ -0,0 +1,17 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Molehill by unknown author; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Molehill applet
+<br>Originial author unknown
+<br>Ported to Java by Ron Cemer
+<br>
+<applet code="molehill.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/molehill.java b/demos/RonsDemos/molehill.java
new file mode 100644
index 0000000..8dbe12e
--- /dev/null
+++ b/demos/RonsDemos/molehill.java
@@ -0,0 +1,286 @@
+/**
+ * @(#) molehill.java
+ * @(#) author: unknown (converted to Java by Ron Cemer)
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+
+public class molehill extends Applet
+{
+ molehillCanvas canvas = null;
+
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new molehillCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Start the applet */
+
+
+ public void start()
+ {
+ }
+
+
+ /* Stop the applet */
+
+
+ public void stop()
+ {
+ }
+
+
+ /* Destroy the applet */
+
+
+ public void destroy()
+ {
+ canvas.cvsDispose();
+ }
+
+
+ public static void main( String args[] )
+ {
+ Frame mainFrame = new Frame("molehill");
+
+ molehill applet = new molehill();
+
+ applet.setSize(400, 400);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ }
+
+ /* Local GLCanvas extension class */
+
+
+ private class molehillCanvas extends GLCanvas
+ {
+ float mat_red_diffuse[] = { 0.7f, 0.0f, 0.1f, 1.0f };
+ float mat_green_diffuse[] = { 0.0f, 0.7f, 0.1f, 1.0f };
+ float mat_blue_diffuse[] = { 0.0f, 0.1f, 0.7f, 1.0f };
+ float mat_yellow_diffuse[] = { 0.7f, 0.8f, 0.1f, 1.0f };
+ float mat_specular[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ float mat_shininess[] = { 100.0f };
+ float knots[] = { 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f };
+ float pts1[] = new float[4*4*3];
+ float pts2[] = new float[4*4*3];
+ float pts3[] = new float[4*4*3];
+ float pts4[] = new float[4*4*3];
+ int nurb;
+ int u, v;
+
+ public molehillCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, mat_shininess);
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glEnable(GL_AUTO_NORMAL);
+ gl.glEnable(GL_NORMALIZE);
+ nurb = glu.gluNewNurbsRenderer();
+ glu.gluNurbsProperty(nurb, GLU_SAMPLING_TOLERANCE, 25.0f);
+ glu.gluNurbsProperty(nurb, GLU_DISPLAY_MODE, GLU_FILL);
+
+ /* Build control points for NURBS mole hills. */
+ for(u=0; u<4; u++)
+ {
+ for(v=0; v<4; v++)
+ {
+ /* Red. */
+ pts1[(u*12)+(v*3)+0] = 2.0f*((float)u);
+ pts1[(u*12)+(v*3)+1] = 2.0f*((float)v);
+ if((u==1 || u == 2) && (v == 1 || v == 2))
+ pts1[(u*12)+(v*3)+2] = 6.0f; /* Stretch up middle. */
+ else
+ pts1[(u*12)+(v*3)+2] = 0.0f;
+
+ /* Green. */
+ pts2[(u*12)+(v*3)+0] = 2.0f*((float)u - 3.0f);
+ pts2[(u*12)+(v*3)+1] = 2.0f*((float)v - 3.0f);
+ if((u==1 || u == 2) && (v == 1 || v == 2))
+ if(u == 1 && v == 1)
+ pts2[(u*12)+(v*3)+2] = 15.0f; /* Pull hard on single middle square. */
+ else
+ pts2[(u*12)+(v*3)+2] = -2.0f; /* Push down on other middle squares. */
+ else
+ pts2[(u*12)+(v*3)+2] = 0.0f;
+
+ /* Blue. */
+ pts3[(u*12)+(v*3)+0] = 2.0f*((float)u - 3.0f);
+ pts3[(u*12)+(v*3)+1] = 2.0f*((float)v);
+ if((u==1 || u == 2) && (v == 1 || v == 2))
+ if(u == 1 && v == 2)
+ pts3[(u*12)+(v*3)+2] = 11.0f; /* Pull up on single middple square. */
+ else
+ pts3[(u*12)+(v*3)+2] = 2.0f; /* Pull up slightly on other middle squares. */
+ else
+ pts3[(u*12)+(v*3)+2] = 0.0f;
+
+ /* Yellow. */
+ pts4[(u*12)+(v*3)+0] = 2.0f*((float)u);
+ pts4[(u*12)+(v*3)+1] = 2.0f*((float)v - 3.0f);
+ if((u==1 || u == 2 || u == 3) && (v == 1 || v == 2))
+ if(v == 1)
+ pts4[(u*12)+(v*3)+2] = -2.0f; /* Push down front middle and right squares. */
+ else
+ pts4[(u*12)+(v*3)+2] = 5.0f; /* Pull up back middle and right squares. */
+ else
+ pts4[(u*12)+(v*3)+2] = 0.0f;
+ }
+ }
+
+ /* Stretch up red's far right corner. */
+ pts1[(3*12)+(3*3)+2] = 6;
+ /* Pull down green's near left corner a little. */
+ pts2[(0*12)+(0*3)+2] = -2;
+ /* Turn up meeting of four corners. */
+ pts1[(0*12)+(0*3)+2] = 1;
+ pts2[(3*12)+(3*3)+2] = 1;
+ pts3[(3*12)+(0*3)+2] = 1;
+ pts4[(0*12)+(3*3)+2] = 1;
+
+ gl.glMatrixMode(GL_PROJECTION);
+ glu.gluPerspective(55.0f, 1.0f, 2.0f, 24.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glTranslatef(0.0f, 0.0f, -15.0f);
+ gl.glRotatef(330.0f, 1.0f, 0.0f, 0.0f);
+
+ gl.glNewList(1, GL_COMPILE);
+
+ /* Render red hill. */
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_red_diffuse);
+ glu.gluBeginSurface(nurb);
+ glu.gluNurbsSurface
+ (nurb,
+ 8,
+ knots,
+ 8,
+ knots,
+ (4 * 3),
+ 3,
+ pts1,
+ 4,
+ 4,
+ GL_MAP2_VERTEX_3);
+ glu.gluEndSurface(nurb);
+
+ /* Render green hill. */
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_green_diffuse);
+ glu.gluBeginSurface(nurb);
+ glu.gluNurbsSurface
+ (nurb,
+ 8,
+ knots,
+ 8,
+ knots,
+ (4 * 3),
+ 3,
+ pts2,
+ 4,
+ 4,
+ GL_MAP2_VERTEX_3);
+ glu.gluEndSurface(nurb);
+
+ /* Render blue hill. */
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_blue_diffuse);
+ glu.gluBeginSurface(nurb);
+ glu.gluNurbsSurface
+ (nurb,
+ 8,
+ knots,
+ 8,
+ knots,
+ (4 * 3),
+ 3,
+ pts3,
+ 4,
+ 4,
+ GL_MAP2_VERTEX_3);
+ glu.gluEndSurface(nurb);
+
+ /* Render yellow hill. */
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_yellow_diffuse);
+ glu.gluBeginSurface(nurb);
+ glu.gluNurbsSurface
+ (nurb,
+ 8,
+ knots,
+ 8,
+ knots,
+ (4 * 3),
+ 3,
+ pts4,
+ 4,
+ 4,
+ GL_MAP2_VERTEX_3);
+ glu.gluEndSurface(nurb);
+
+ gl.glEndList();
+
+ glj.gljCheckGL();
+ }
+
+ public void cvsDispose()
+ {
+ System.out.println("destroy(): " + this);
+ super.cvsDispose();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ gl.glMatrixMode(GL_PROJECTION);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ gl.glCallList(1);
+ gl.glFlush();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+ }
+}
diff --git a/demos/RonsDemos/molehill_plugin13.html b/demos/RonsDemos/molehill_plugin13.html
new file mode 100644
index 0000000..5ce9215
--- /dev/null
+++ b/demos/RonsDemos/molehill_plugin13.html
@@ -0,0 +1,48 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Molehill by unknown author; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Molehill applet
+<br>Originial author unknown
+<br>Ported to Java by Ron Cemer
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "molehill.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "molehill.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "molehill.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "molehill.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/moth.html b/demos/RonsDemos/moth.html
new file mode 100644
index 0000000..020ab04
--- /dev/null
+++ b/demos/RonsDemos/moth.html
@@ -0,0 +1,19 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Moth by Robert Doyle; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Moth applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>Click the left mouse button within the window to pause/resume simulation.
+<br>Click the right mouse button within the window to restart simulation.
+<br>
+<applet code="moth.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/moth.java b/demos/RonsDemos/moth.java
new file mode 100644
index 0000000..c12a4a9
--- /dev/null
+++ b/demos/RonsDemos/moth.java
@@ -0,0 +1,1149 @@
+/**
+ * @(#) moth.java
+ * @(#) author: Robert Doyle (converted to Java by Ron Cemer)
+ */
+
+/*
+ "moth" by Robert Doyle, Naval Research Laboratory, Washington, DC.
+ Scene objects are built into display lists in the 'init()' method.
+ Objects are assembled and motion described in the 'display()' method.
+*/
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+public class moth extends SimpleGLAnimApplet1
+{
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new mothCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Local GLAnimCanvas extension class */
+
+
+ private class mothCanvas extends GLAnimCanvas implements MouseListener
+ {
+ float wall_color[] = {1.0f, 1.0f, 1.0f, 1.0f};
+ float wall_ambient[] = {0.5f, 0.5f, 0.5f, 1.0f};
+ float floor_color[] = {0.5f, 1.0f, 0.5f, 0.5f};
+ float column_color[] = {1.0f, 0.0f, 0.0f, 1.0f};
+ float column_ambient[] = {0.25f, 0.0f, 0.0f, 1.0f};
+
+ float panel_color[] = {0.1f, 0.1f, 1.0f, 1.0f};
+ float panel_ambient[] = {0.01f, 0.01f, 0.3f, 1.0f};
+
+ float lamp_ambient[] = {1.0f, 1.0f, 1.0f, 1.0f};
+ float lamp_diffuse[] = {1.0f, 1.0f, 1.0f, 1.0f};
+ float lamp_specular[] = {1.0f, 1.0f, 1.0f, 1.0f};
+ float lamp_post_diffuse[] = {0.8f, 0.0f, 0.0f, 1.0f};
+ float lamp_post_specular[] = {0.8f, 0.0f, 0.0f, 1.0f};
+ float lamp_post_ambient[] = {0.25f, 0.0f, 0.0f, 1.0f};
+
+ float satellite_diffuse[] = {1.0f, 0.69f, 0.0f, 1.0f};
+ float satellite_shiny[] = {128.0f};
+ float satellite_specular[] = {1.0f, 1.0f, 1.0f, 1.0f};
+ float satellite_ambient[] = {0.37f, 0.25f, 0.0f, 1.0f};
+
+ float cube_color[] = {1.0f, 1.0f, 0.0f, 1.0f};
+ float cube_shiny[] = {99.0f};
+ float cube_specular[] = {0.9f, 0.9f, 0.9f, 1.0f};
+ float cube_ambient[] = {0.1f, 0.1f, 0.1f, 1.0f};
+
+ float shadow_ambient[] = {0.0f, 0.0f, 0.0f, 1.0f};
+ float shadow_diffuse[] = {0.0f, 0.0f, 0.0f, 0.3f};
+ float shadow_shiny[] = {0.0f};
+ float shadow_specular[] = {0.0f, 0.0f, 0.0f, 1.0f};
+
+ int column = 3;
+ int ground_shadow_matrix = 16;
+ int left_wall_shadow_matrix = 17;
+ int ground = 30;
+ int left_wall = 40;
+ int right_wall = 50;
+ int four_columns = 7;
+ int two_columns = 32;
+ int satellite1 = 301;
+ int satellite2 = 302;
+ int panel1 = 303;
+ int panel2 = 304;
+
+ float default_Tx = -0.01f;
+ float default_Ty = -0.01f;
+ float default_Tz = -0.02f;
+
+ float default_mvt_x = -15.0f;
+ float default_mvt_y = -15.0f;
+ float default_mvt_z = -30.7f;
+
+ float default_mvr_d = 150.0f;
+
+ float Tx = default_Tx;
+ float Ty = default_Ty;
+ float Tz = default_Tz;
+
+ float mvt_x = default_mvt_x;
+ float mvt_y = default_mvt_y;
+ float mvt_z = default_mvt_z;
+
+ float mvr_d = default_mvr_d;
+
+ float mvr_x = 1.0f;
+ float mvr_y = -1.0f;
+ float mvr_z = -1.0f;
+
+ float Rx = 0.1f;
+
+ float cubeXform[] = new float[16];
+ float column1Xform[] = new float[16];
+ float column2Xform[] = new float[16];
+ float column3Xform[] = new float[16];
+ float four_columnsXform[] = new float[16];
+
+ float shadowMat_ground[] = new float[16];
+ float shadowMat_left[] = new float[16];
+ float shadowMat_back[] = new float[16];
+ float shadowMat_column[] = new float[16];
+ float shadowMat_right[] = new float[16];
+
+ float shadowMat1_ground[] = new float[16];
+ float shadowMat1_left[] = new float[16];
+ float shadowMat1_back[] = new float[16];
+ float shadowMat1_right[] = new float[16];
+
+ int tick = -1;
+
+ boolean moving = true;
+
+ float lightPos[] = {1.0f, 2.5f, 3.0f, 1.0f};
+
+ float light1Pos[] = {0.0f, 1.6f, -5.0f, 1.0f};
+ float light1Amb[] = {1.0f, 1.0f, 1.0f, 1.0f};
+ float light1Diff[] = {1.0f, 1.0f, 1.0f, 1.0f};
+ float light1Spec[] = {1.0f, 1.0f, 1.0f, 1.0f};
+
+ float leftPlane[] = {1.0f, 0.0f, 0.0f, 4.88f}; /* X = -4.88 */
+ float rightPlane[] = {-1.0f, 0.0f, 0.0f, 4.88f}; /* X = 4.98 */
+ float groundPlane[] = {0.0f, 1.0f, 0.0f, 1.450f}; /* Y = -1.480 */
+ float columnPlane[] = {0.0f, 0.0f, 1.0f, 0.899f}; /* Z = -0.899 */
+ float backPlane[] = {0.0f, 0.0f, 1.0f, 8.98f}; /* Z = -8.98 */
+
+ final float S = 0.7071f;
+ final float NS = 0.382683f;
+ final float NC = 0.923880f;
+
+ /* satellite body. */
+ float oct_vertices[][][] =
+ {
+ {
+ {0.0f, 0.0f, 0.0f, 1.0f},
+ {0.0f, 1.0f, 0.0f, 1.0f},
+ {-S, S, 0.0f, 1.0f}},
+
+ {
+ {0.0f, 0.0f, 0.0f, 1.0f},
+ {-S, S, 0.0f, 1.0f},
+ {-1.0f, 0.0f, 0.0f, 1.0f}},
+
+ {
+ {0.0f, 0.0f, 0.0f, 1.0f},
+ {-1.0f, 0.0f, 0.0f, 1.0f},
+ {-S, -S, 0.0f, 1.0f}},
+
+ {
+ {0.0f, 0.0f, 0.0f, 1.0f},
+ {-S, -S, 0.0f, 1.0f},
+ {0.0f, -1.0f, 0.0f, 1.0f}},
+
+ {
+ {0.0f, 0.0f, 0.0f, 1.0f},
+ {0.0f, -1.0f, 0.0f, 1.0f},
+ {S, -S, 0.0f, 1.0f}},
+
+ {
+
+ {0.0f, 0.0f, 0.0f, 1.0f},
+ {S, -S, 0.0f, 1.0f},
+ {1.0f, 0.0f, 0.0f, 1.0f}},
+
+ {
+ {0.0f, 0.0f, 0.0f, 1.0f},
+ {1.0f, 0.0f, 0.0f, 1.0f},
+ {S, S, 0.0f, 1.0f}},
+
+ {
+ {0.0f, 0.0f, 0.0f, 1.0f},
+ {S, S, 0.0f, 1.0f},
+ {0.0f, 1.0f, 0.0f, 1.0f}}
+
+ };
+
+ float oct_side_vertices[][][] =
+ {
+ {
+ {-S, S, 0.0f, 1.0f},
+ {0.0f, 1.0f, 0.0f, 1.0f},
+ {0.0f, 1.0f, -1.0f, 1.0f},
+ {-S, S, -1.0f, 1.0f}},
+
+ {
+ {-1.0f, 0.0f, 0.0f, 1.0f},
+ {-S, S, 0.0f, 1.0f},
+ {-S, S, -1.0f, 1.0f},
+ {-1.0f, 0.0f, -1.0f, 1.0f}},
+
+ {
+ {-S, -S, 0.0f, 1.0f},
+ {-1.0f, 0.0f, 0.0f, 1.0f},
+ {-1.0f, 0.0f, -1.0f, 1.0f},
+ {-S, -S, -1.0f, 1.0f}},
+
+ {
+ {0.0f, -1.0f, 0.0f, 1.0f},
+ {-S, -S, 0.0f, 1.0f},
+ {-S, -S, -1.0f, 1.0f},
+ {0.0f, -1.0f, -1.0f, 1.0f}},
+
+ {
+ {S, -S, 0.0f, 1.0f},
+ {0.0f, -1.0f, 0.0f, 1.0f},
+ {0.0f, -1.0f, -1.0f, 1.0f},
+ {S, -S, -1.0f, 1.0f}},
+
+ {
+ {1.0f, 0.0f, 0.0f, 1.0f},
+ {S, -S, 0.0f, 1.0f},
+ {S, -S, -1.0f, 1.0f},
+ {1.0f, 0.0f, -1.0f, 1.0f}},
+
+ {
+ {S, S, 0.0f, 1.0f},
+ {1.0f, 0.0f, 0.0f, 1.0f},
+ {1.0f, 0.0f, -1.0f, 1.0f},
+ {S, S, -1.0f, 1.0f}},
+
+ {
+ {0.0f, 1.0f, 0.0f, 1.0f},
+ {S, S, 0.0f, 1.0f},
+ {S, S, -1.0f, 1.0f},
+ {0.0f, 1.0f, -1.0f, 1.0f}}
+
+ };
+
+ float oct_side_normals[][] =
+ {
+ {-NS, NC, 0.0f},
+ {-NC, NS, 0.0f},
+ {-NC, -NS, 0.0f},
+ {-NS, -NC, 0.0f},
+ {NS, -NC, 0.0f},
+ {NC, -NS, 0.0f},
+ {NC, NS, 0.0f},
+ {NS, NC, 0.0f}
+ };
+
+ float cube_vertexes[][][] =
+ {
+ {
+ {-1.0f, -1.0f, -1.0f, 1.0f},
+ {-1.0f, -1.0f, 1.0f, 1.0f},
+ {-1.0f, 1.0f, 1.0f, 1.0f},
+ {-1.0f, 1.0f, -1.0f, 1.0f}},
+
+ {
+ {1.0f, 1.0f, 1.0f, 1.0f},
+ {1.0f, -1.0f, 1.0f, 1.0f},
+ {1.0f, -1.0f, -1.0f, 1.0f},
+ {1.0f, 1.0f, -1.0f, 1.0f}},
+
+ {
+ {-1.0f, -1.0f, -1.0f, 1.0f},
+ {1.0f, -1.0f, -1.0f, 1.0f},
+ {1.0f, -1.0f, 1.0f, 1.0f},
+ {-1.0f, -1.0f, 1.0f, 1.0f}},
+
+ {
+ {1.0f, 1.0f, 1.0f, 1.0f},
+ {1.0f, 1.0f, -1.0f, 1.0f},
+ {-1.0f, 1.0f, -1.0f, 1.0f},
+ {-1.0f, 1.0f, 1.0f, 1.0f}},
+
+ {
+ {-1.0f, -1.0f, -1.0f, 1.0f},
+ {-1.0f, 1.0f, -1.0f, 1.0f},
+ {1.0f, 1.0f, -1.0f, 1.0f},
+ {1.0f, -1.0f, -1.0f, 1.0f}},
+
+ {
+ {1.0f, 1.0f, 1.0f, 1.0f},
+ {-1.0f, 1.0f, 1.0f, 1.0f},
+ {-1.0f, -1.0f, 1.0f, 1.0f},
+ {1.0f, -1.0f, 1.0f, 1.0f}}
+ };
+
+ float cube_normals[][] =
+ {
+ {-1.0f, 0.0f, 0.0f, 0.0f},
+ {1.0f, 0.0f, 0.0f, 0.0f},
+ {0.0f, -1.0f, 0.0f, 0.0f},
+ {0.0f, 1.0f, 0.0f, 0.0f},
+ {0.0f, 0.0f, -1.0f, 0.0f},
+ {0.0f, 0.0f, 1.0f, 0.0f}
+ };
+
+ public mothCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ setAnimateFps(30.0);
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ /*** Initial light position is declared in the display function ***/
+
+ gl.glLightfv(GL_LIGHT1, GL_AMBIENT, light1Amb);
+ gl.glLightfv(GL_LIGHT1, GL_DIFFUSE, light1Diff);
+ gl.glLightfv(GL_LIGHT1, GL_SPECULAR, light1Spec);
+ gl.glEnable(GL_LIGHT1);
+
+ gl.glEnable(GL_LIGHTING);
+
+ gl.glLightf(GL_LIGHT1, GL_QUADRATIC_ATTENUATION, 0.07f); /* try 0.07 w/ 24 bit color */
+
+ /*....Shadow Matrices For Floor, Left Wall, Back Wall, and Right Wall......*/
+
+ /* For light0 */
+
+ myShadowMatrix(groundPlane, lightPos, shadowMat_ground);
+ myShadowMatrix(leftPlane, lightPos, shadowMat_left);
+ myShadowMatrix(columnPlane, lightPos, shadowMat_column);
+ myShadowMatrix(backPlane, lightPos, shadowMat_back);
+ myShadowMatrix(rightPlane, lightPos, shadowMat_right);
+
+ /* For light1 */
+
+ myShadowMatrix(groundPlane, light1Pos, shadowMat1_ground);
+ myShadowMatrix(leftPlane, light1Pos, shadowMat1_left);
+ myShadowMatrix(backPlane, light1Pos, shadowMat1_back);
+ myShadowMatrix(rightPlane, light1Pos, shadowMat1_right);
+
+ /*sssssssssssssssss Make Satellite Body and Shadow ssssssssssssssssssssssss*/
+
+ gl.glNewList(satellite1, GL_COMPILE);
+ gl.glPushMatrix();
+ drawSatellite(satellite_diffuse, satellite_ambient, satellite_specular, satellite_shiny);
+ gl.glPopMatrix();
+ gl.glEndList();
+ gl.glNewList(satellite2, GL_COMPILE);
+ gl.glPushMatrix();
+ drawSatellite(shadow_diffuse, shadow_ambient, shadow_specular, shadow_shiny);
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ /*ppppppppppppppppppppppppppp Make Solar Panels and Shadows pppppppppppppppppp*/
+
+ gl.glNewList(panel1, GL_COMPILE);
+ gl.glPushMatrix();
+ drawPanels(panel_color, panel_ambient);
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ gl.glNewList(panel2, GL_COMPILE);
+ gl.glPushMatrix();
+ drawPanels(shadow_diffuse, shadow_ambient);
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ /*========= Make Floor ==============*/
+
+ gl.glNewList(ground, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glPushAttrib(GL_LIGHTING_BIT);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, floor_color);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, shadow_ambient);
+ gl.glTranslatef(0.0f, -1.5f, -5.0f);
+ gl.glRotatef(-90.0f, 1.0f, 0.0f, 0.0f);
+ gl.glScalef(5.0f, 5.0f, 1.0f);
+ drawGround(); /* draw ground */
+ gl.glPopAttrib();
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ /*@@@@@@@@@@ Make Lamp Post and Lamp @@@@@@@@@@@@*/
+
+ gl.glNewList(21, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glPushAttrib(GL_LIGHTING_BIT);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, lamp_post_specular);
+ gl.glTranslatef(0.0f, -0.1f, -5.0f);
+ gl.glScalef(0.07f, 1.45f, 0.07f);
+ drawCube(lamp_post_diffuse, lamp_post_ambient); /* draw lamp post */
+ gl.glPopAttrib();
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glTranslatef(0.0f, -1.45f, -5.0f);
+ gl.glScalef(0.3f, 0.05f, 0.3f);
+ drawCube(wall_color, cube_ambient); /* draw lamp post base */
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ gl.glNewList(22, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glPushAttrib(GL_LIGHTING_BIT);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, lamp_ambient);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, lamp_diffuse);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, lamp_specular);
+ gl.glTranslatef(0.0f, 1.6f, -5.0f);
+
+ /* draw lamp */
+ int qobj = glu.gluNewQuadric();
+ glu.gluQuadricOrientation(qobj,GLU_OUTSIDE);
+ glu.gluQuadricNormals(qobj,GLU_SMOOTH);
+ glu.gluQuadricTexture(qobj,false);
+ glu.gluSphere(qobj,0.3f,20,20);
+ glu.gluDeleteQuadric(qobj);
+
+ gl.glPopAttrib();
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ /*** Lamp post base shadow ***/
+
+ gl.glNewList(501, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glPushAttrib(GL_LIGHTING_BIT);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, shadow_ambient);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, shadow_diffuse);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, shadow_specular);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, shadow_shiny);
+ gl.glTranslatef(0.0f, -1.49f, -5.0f);
+ gl.glRotatef(-90.0f, 1.0f, 0.0f, 0.0f);
+ gl.glScalef(0.7f, 0.7f, 1.0f);
+ drawOct();
+ gl.glPopAttrib();
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ /*||||||||||| Make Left Wall |||||||||||||*/
+
+ gl.glNewList(left_wall, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glPushAttrib(GL_LIGHTING_BIT);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, wall_color);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, wall_ambient);
+ gl.glTranslatef(0.0f, -1.5f, 0.0f);
+ gl.glTranslatef(0.0f, 1.2f, 0.0f);
+ gl.glTranslatef(0.0f, 0.0f, -5.0f);
+ gl.glTranslatef(-5.0f, 0.0f, 0.0f);
+ gl.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
+ gl.glScalef(4.5f, 1.2f, 1.0f);
+ gl.glNormal3f(0.0f, 0.0f, 1.0f);
+ drawGround(); /* draw left wall */
+ gl.glPopAttrib();
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ /*\\\\\\\\\\\\\ Make Right Wall \\\\\\\\\\\\\\\\\\\*/
+
+ gl.glNewList(right_wall, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glPushAttrib(GL_LIGHTING_BIT);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, wall_color);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, wall_ambient);
+ gl.glTranslatef(0.0f, -1.5f, 0.0f);
+ gl.glTranslatef(0.0f, 1.2f, 0.0f);
+
+ gl.glTranslatef(0.0f, 0.0f, -5.0f);
+ gl.glTranslatef(5.0f, 0.0f, 0.0f);
+ gl.glRotatef(270.0f, 0.0f, 1.0f, 0.0f);
+
+ gl.glScalef(4.5f, 1.2f, 1.0f);
+ gl.glNormal3f(0.0f, 0.0f, 1.0f);
+ drawGround(); /* draw right wall */
+ gl.glPopAttrib();
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ /*[[[[[[[[[[[ Build Columns ]]]]]]]]]]]*/
+
+ gl.glPushMatrix();
+ gl.glNewList(1, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glScalef(0.4f, 1.4f, 0.4f);
+ drawCube(column_color, column_ambient); /* draw column1 */
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ gl.glNewList(2, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glTranslatef(0.0f, -1.45f, 0.0f);
+ gl.glScalef(0.5f, 0.1f, 0.5f);
+ drawCube(wall_color, cube_ambient); /* draw base */
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glTranslatef(0.0f, 1.45f, 0.0f);
+ gl.glScalef(0.5f, 0.1f, 0.5f);
+ drawCube(wall_color, cube_ambient); /* draw top */
+ gl.glPopMatrix();
+ gl.glEndList();
+ gl.glPopMatrix();
+
+ gl.glNewList(column, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glCallList(1);
+ gl.glCallList(2);
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ /***** Place columns at front of scene. *****/
+
+ gl.glNewList(4, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glTranslatef(-5.0f, 0.0f, -0.5f);
+ gl.glCallList(column);
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ gl.glNewList(5, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glTranslatef(-1.75f, 0.0f, -0.5f);
+ gl.glCallList(column);
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ gl.glNewList(6, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glTranslatef(1.75f, 0.0f, -0.5f);
+ gl.glCallList(column);
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ gl.glNewList(17, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glTranslatef(5.0f, 0.0f, -0.5f);
+ gl.glCallList(column);
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ /*** Get the modelview matrix once ***/
+ gl.glPushMatrix();
+ gl.glRotatef(-mvr_d, mvr_x, mvr_y, mvr_z);
+ gl.glTranslatef(-mvt_x, -mvt_y, -mvt_z);
+ gl.glGetFloatv(GL_MODELVIEW_MATRIX, four_columnsXform);
+ gl.glPopMatrix();
+
+ gl.glNewList(four_columns, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glCallList(4);
+ gl.glCallList(5);
+ gl.glCallList(6);
+ gl.glCallList(17);
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ /***** Make two columns for sides of scene *****/
+
+ gl.glNewList(two_columns, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
+ gl.glTranslatef(5.0f, 0.0f, -5.0f);
+ gl.glPushMatrix();
+ gl.glTranslatef(0.0f, 0.0f, -0.3f);
+ gl.glCallList(column);
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glTranslatef(0.0f, 0.0f, 10.3f);
+ gl.glCallList(column);
+ gl.glPopMatrix();
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ /* .......................Make shadows .........................*/
+
+ gl.glPushMatrix();
+ gl.glNewList(8, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glScalef(0.4f, 1.4f, 0.4f);
+ drawCube(shadow_diffuse, shadow_ambient); /* draw column1 */
+ gl.glPopMatrix();
+ gl.glEndList();
+
+
+ gl.glNewList(9, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glTranslatef(0.0f, -1.45f, 0.0f);
+ gl.glScalef(0.5f, 0.1f, 0.5f);
+ drawCube(shadow_diffuse, shadow_ambient); /* draw base. */
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glTranslatef(0.0f, 1.45f, 0.0f);
+ gl.glScalef(0.5f, 0.1f, 0.5f);
+ drawCube(shadow_diffuse, shadow_ambient); /* draw top. */
+ gl.glPopMatrix();
+ gl.glEndList();
+ gl.glPopMatrix();
+
+ gl.glNewList(10, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glCallList(8);
+ gl.glCallList(9);
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ gl.glNewList(11, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glTranslatef(-5.0f, 0.0f, -0.5f);
+ gl.glCallList(10);
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ gl.glNewList(12, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glTranslatef(-1.75f, 0.0f, -0.5f);
+ gl.glCallList(10);
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ gl.glNewList(13, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glTranslatef(1.75f, 0.0f, -0.5f);
+ gl.glCallList(10);
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ gl.glNewList(14, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glTranslatef(5.0f, 0.0f, -0.5f);
+ gl.glCallList(10);
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ gl.glNewList(15, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glCallList(11);
+ gl.glCallList(12);
+ gl.glCallList(13);
+ gl.glCallList(14);
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ gl.glNewList(100, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glMultMatrixf(shadowMat_ground);
+ gl.glTranslatef(-mvt_x, -mvt_y, -mvt_z); /* correct for modelview matrix */
+ gl.glRotatef(-mvr_d, mvr_x, mvr_y, mvr_z);
+ gl.glMultMatrixf(four_columnsXform);
+ gl.glCallList(15);
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ gl.glNewList(101, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glMultMatrixf(shadowMat_left);
+ gl.glTranslatef(-mvt_x, -mvt_y, -mvt_z); /* correct for modelview matrix */
+ gl.glRotatef(-mvr_d, mvr_x, mvr_y, mvr_z);
+ gl.glMultMatrixf(four_columnsXform);
+ gl.glCallList(15);
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ gl.glNewList(102, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glMultMatrixf(shadowMat_back);
+ gl.glRotatef(-mvr_d, mvr_x, mvr_y, mvr_z);
+ gl.glTranslatef(-mvt_x, -mvt_y, -mvt_z); /* correct for modelview matrix */
+ gl.glMultMatrixf(four_columnsXform);
+ gl.glCallList(15);
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ gl.glNewList(103, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glMultMatrixf(shadowMat_right);
+ gl.glRotatef(-mvr_d, mvr_x, mvr_y, mvr_z);
+ gl.glTranslatef(-mvt_x, -mvt_y, -mvt_z); /* correct for modelview matrix */
+ gl.glMultMatrixf(four_columnsXform);
+ gl.glCallList(15);
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ glj.gljCheckGL();
+
+ addMouseListener(this);
+ }
+
+ public void doCleanup()
+ {
+ System.out.println("destroy(): " + this);
+ removeMouseListener(this);
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ gl.glMatrixMode(GL_PROJECTION);
+
+
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+
+ gl.glFrustum(-0.9f, 0.9f, -0.9f, 0.9f, 1.0f, 35.0f);
+
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+
+ gl.glEnable(GL_NORMALIZE);
+ gl.glEnable(GL_CULL_FACE);
+ gl.glCullFace(GL_BACK); /* double your fun */
+ gl.glShadeModel(GL_SMOOTH);
+ gl.glDepthFunc(GL_LESS);
+ gl.glDepthMask(true);
+ gl.glEnable(GL_DEPTH_TEST);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ tick++;
+ if (tick >= 60) tick = 0;
+
+ gl.glPushMatrix();
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ gl.glLoadIdentity();
+
+ /*@@@@@@ Rotation and Translation of Entire Scene @@@@@*/
+
+ if (mvt_x < 0.0f && mvt_y < 0.0f)
+ {
+ gl.glTranslatef(mvt_x ,mvt_y ,mvt_z );
+ mvt_x = mvt_x - Tx;
+ mvt_y = mvt_y - Ty;
+ mvt_z = mvt_z - Tz;
+
+ gl.glRotatef(mvr_d, mvr_x, mvr_y, mvr_z);
+ mvr_d = mvr_d - Rx;
+ }
+ else
+ gl.glTranslatef(0.0f, 0.0f ,mvt_z);
+
+ /*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
+
+ gl.glPushMatrix();
+ gl.glLightfv(GL_LIGHT1, GL_POSITION, light1Pos);
+ gl.glPopMatrix();
+
+ /*______________________ Draw Floor _______________________*/
+
+ gl.glPushMatrix();
+ gl.glCallList(ground);
+ gl.glPopMatrix();
+
+ /*@@@@@@@@@ Draw Lamp Post amd Lamp @@@@@@@@@@*/
+
+ gl.glPushMatrix();
+ gl.glCallList(21);
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glCallList(22);
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glEnable(GL_BLEND);
+ gl.glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+ gl.glCallList(501);
+ gl.glDisable(GL_BLEND);
+ gl.glPopMatrix();
+
+ /*||||||||||||||||||| Draw Left Wall ||||||||||||||||||*/
+
+ gl.glCallList(left_wall);
+
+ /*\\\\\\\\\\\\\\\\ Draw Right Wall \\\\\\\\\\\\\\*/
+
+ gl.glCallList(right_wall);
+
+ /*[[[[[[[[[[[[[[[[[[[ Draw Columns ]]]]]]]]]]]]]]]]]]]*/
+
+ /***** Place columns at front of scene. *****/
+
+ gl.glCallList(four_columns);
+
+ /***** Place columns at back of scene. *****/
+
+ gl.glPushMatrix();
+ gl.glTranslatef(0.0f, 0.0f, -9.0f);
+ gl.glCallList(four_columns);
+ gl.glPopMatrix();
+
+ /***** Place columns at centers of left and right walls. *****/
+
+ gl.glCallList(two_columns);
+
+ /************************* CUBE ***********************/
+
+ gl.glMaterialf(GL_FRONT, GL_SHININESS, 99.0f);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, cube_specular);
+
+ gl.glPushMatrix();
+ gl.glTranslatef(0.0f, 0.0f, -5.0f);
+ gl.glRotatef((360.0f / (30 * 2)) * tick, 0, 1, 0);
+ gl.glPushMatrix();
+ gl.glTranslatef(0.0f, 0.2f, 2.0f);
+ gl.glRotatef((360.0f / (30 * 1)) * tick, 1, 0, 0);
+ gl.glRotatef((360.0f / (30 * 2)) * tick, 0, 1, 0);
+ gl.glRotatef((360.0f / (30 * 4)) * tick, 0, 0, 1);
+
+ gl.glGetFloatv(GL_MODELVIEW_MATRIX, cubeXform);
+
+ gl.glCallList(satellite1);
+ gl.glCallList(panel1);
+
+ gl.glPopMatrix();
+ gl.glPopMatrix();
+
+ gl.glMaterialf(GL_FRONT, GL_SHININESS, 0.0f);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, shadow_specular);
+
+ /*................... CUBE SHADOWS .............................*/
+
+ gl.glEnable(GL_BLEND);
+ gl.glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+
+ gl.glPushMatrix();
+ gl.glMultMatrixf(shadowMat1_ground);
+ gl.glRotatef(-mvr_d, mvr_x, mvr_y, mvr_z);
+ gl.glTranslatef(-mvt_x, -mvt_y, -mvt_z); /* correct for modelview matrix */
+ gl.glMultMatrixf(cubeXform);
+
+
+ gl.glCallList(satellite2);
+ gl.glTranslatef(0.0f, -.040f, 0.0f);
+ gl.glCallList(panel2);
+ gl.glPopMatrix();
+
+ /* Shadow left wall only if cube is in front of left wall. */
+ if((tick*6) >= 220 && (tick*6) <= 320)
+ {
+ gl.glPushMatrix();
+ gl.glMultMatrixf(shadowMat1_left);
+ gl.glRotatef(-mvr_d, mvr_x, mvr_y, mvr_z);
+ gl.glTranslatef(-mvt_x, -mvt_y, -mvt_z); /* correct for modelview matrix */
+ gl.glMultMatrixf(cubeXform);
+ drawSatellite(shadow_diffuse, shadow_ambient, shadow_specular, shadow_shiny); /* draw left shadow */
+ drawPanels(shadow_diffuse, shadow_ambient);
+ gl.glPopMatrix();
+ }
+
+ /* Shadow back wall only if cube is in front of back wall. */
+ if((tick*6) >= 125 && (tick*6) <= 330)
+ {
+ gl.glPushMatrix();
+ gl.glMultMatrixf(shadowMat1_back);
+ gl.glRotatef(-mvr_d, mvr_x, mvr_y, mvr_z);
+ gl.glTranslatef(-mvt_x, -mvt_y, -mvt_z); /* correct for modelview matrix */
+ gl.glMultMatrixf(cubeXform);
+ drawSatellite(shadow_diffuse, shadow_ambient, shadow_specular, shadow_shiny); /* draw back wall shadow */
+ drawPanels(shadow_diffuse, shadow_ambient);
+ gl.glPopMatrix();
+ }
+
+ /* Shadow right wall only if cube is in front of right wall. */
+ if((tick*6) >= 40 && (tick*6) <= 145)
+ {
+ gl.glPushMatrix();
+ gl.glMultMatrixf(shadowMat1_right);
+ gl.glRotatef(-mvr_d, mvr_x, mvr_y, mvr_z);
+ gl.glTranslatef(-mvt_x, -mvt_y, -mvt_z); /* correct for modelview matrix */
+ gl.glMultMatrixf(cubeXform);
+ drawSatellite(shadow_diffuse, shadow_ambient, shadow_specular, shadow_shiny); /* draw right wall shadow */
+ drawPanels(shadow_diffuse, shadow_ambient);
+ gl.glPopMatrix();
+ }
+
+ gl.glDisable(GL_BLEND);
+
+ gl.glPopMatrix(); /* Clear the matrix stack */
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+
+ //if (!isSuspended()) repaint(); // Animate at full speed.
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ Tx = default_Tx;
+ Ty = default_Ty;
+ Tz = default_Tz;
+
+ mvt_x = default_mvt_x;
+ mvt_y = default_mvt_y;
+ mvt_z = default_mvt_z;
+
+ mvr_d = default_mvr_d;
+
+ tick = -1;
+
+ setSuspended(false);
+ moving = true;
+ }
+ else
+ {
+ setSuspended(moving);
+ moving = !moving;
+ }
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ }
+ /*%%%%%%%%%%%%%%%%%%%% DRAW CUBE %%%%%%%%%%%%%%%%%%*/
+
+ private void drawCube(float color[], float ambient[])
+ {
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, color);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, ambient);
+
+ for (int i = 0; i < 6; ++i)
+ {
+ gl.glNormal3fv(cube_normals[i]);
+ gl.glBegin(GL_POLYGON);
+ gl.glVertex4fv(cube_vertexes[i][0]);
+ gl.glVertex4fv(cube_vertexes[i][1]);
+ gl.glVertex4fv(cube_vertexes[i][2]);
+ gl.glVertex4fv(cube_vertexes[i][3]);
+ gl.glEnd();
+ }
+ }
+
+ /*OOOOOOOOOOO DRAW OCTOGON TOP OOOOOOOOOOOOO*/
+
+ private void drawOct()
+ {
+ for (int i = 0; i < 8; ++i)
+ {
+ gl.glNormal3f(0.0f, 0.0f, 1.0f);
+ gl.glBegin(GL_TRIANGLE_FAN);
+ gl.glVertex4fv(oct_vertices[i][0]);
+ gl.glVertex4fv(oct_vertices[i][1]);
+ gl.glVertex4fv(oct_vertices[i][2]);
+ gl.glEnd();
+ }
+ }
+
+ /*oooooooooooDRAW OCTOGON SIDES ooooooooo*/
+
+ private void drawOctSides()
+ {
+ for (int i = 0; i < 8; ++i)
+ {
+ gl.glNormal3fv(oct_side_normals[i]);
+ gl.glBegin(GL_POLYGON);
+ gl.glVertex4fv(oct_side_vertices[i][0]);
+ gl.glVertex4fv(oct_side_vertices[i][1]);
+ gl.glVertex4fv(oct_side_vertices[i][2]);
+ gl.glVertex4fv(oct_side_vertices[i][3]);
+ gl.glEnd();
+ }
+ }
+
+ /*SSSSSSSSSSSSSSSS DRAW SATELLITE BODY SSSSSSSSSSSSSSSSSSS*/
+
+ private void drawSatellite(float diffuse[], float ambient[], float specular[], float shiny[])
+ {
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, diffuse);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, ambient);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, specular);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, shiny);
+
+ gl.glPushMatrix();
+ gl.glScalef(0.3f, 0.3f, 0.9f);
+ gl.glPushMatrix();
+ drawOctSides();
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glTranslatef(0.0f, 0.0f, 0.0f);
+ drawOct();
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glRotatef(180f, 1.0f, 0.0f, 0.0f);
+ gl.glTranslatef(0.0f, 0.0f, 1.0f);
+ drawOct();
+ gl.glPopMatrix();
+ gl.glPopMatrix();
+ }
+
+ /*PPPPPPPPPPPPPPPP DRAW SOLAR PANELS PPPPPPPPPPPP*/
+
+ private void drawPanels(float color[], float ambient[])
+ {
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, color);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, ambient);
+
+ gl.glPushMatrix();
+ gl.glTranslatef(0.95f, 0.0f, -0.45f);
+ gl.glRotatef(45.0f, 1.0f, 0.0f, 0.0f);
+ gl.glScalef(0.65f, 0.20f, 0.02f);
+ drawCube(color, ambient);
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glTranslatef(-0.95f, 0.0f, -0.45f);
+ gl.glRotatef(45.0f, 1.0f, 0.0f, 0.0f);
+ gl.glScalef(0.65f, 0.20f, 0.02f);
+ drawCube(color, ambient);
+ gl.glPopMatrix();
+ }
+
+ /*################ DRAW FLOOR ################*/
+
+ private void drawFloor(float f_color[], float ambient[])
+ {
+
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, f_color);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, ambient);
+
+ gl.glBegin(GL_QUADS);
+ gl.glVertex3f(-1.0f, -1.0f, 0.0f);
+ gl.glVertex3f(1.0f, -1.0f, 0.0f);
+ gl.glVertex3f(1.0f, 1.0f, 0.0f);
+ gl.glVertex3f(-1.0f, 1.0f, 0.0f);
+ gl.glEnd();
+ }
+
+ /*||||||||||||||| DRAW GROUND |||||||||||||||||*/
+
+ /* Ground coordinates are in drawGround() below. Subdivision */
+ /* of triangles id done by subDivide(). */
+
+ private void subDivide(float u1[], float u2[], float u3[], int depth)
+ {
+ float u12[] = new float[3];
+ float u23[] = new float[3];
+ float u31[] = new float[3];
+
+ if (depth == 0)
+ {
+ gl.glBegin(GL_POLYGON);
+ gl.glNormal3f(0.0f, 0.0f, 1.0f); gl.glVertex3fv(u1);
+ gl.glNormal3f(0.0f, 0.0f, 1.0f); gl.glVertex3fv(u2);
+ gl.glNormal3f(0.0f, 0.0f, 1.0f); gl.glVertex3fv(u3);
+ gl.glEnd();
+ return;
+ }
+
+ for (int i = 0; i < 3; i++)
+ {
+ u12[i] = (u1[i] + u2[i]) / 2.0f;
+ u23[i] = (u2[i] + u3[i]) / 2.0f;
+ u31[i] = (u3[i] + u1[i]) / 2.0f;
+ }
+ subDivide(u1, u12, u31, depth - 1);
+ subDivide(u2, u23, u12, depth - 1);
+ subDivide(u3, u31, u23, depth - 1);
+ subDivide(u12, u23, u31, depth - 1);
+ }
+
+ private void drawGround()
+ {
+ /* Use two subdivided triangles for the unscaled 1X1 square. */
+ /* Subdivide to this depth: */
+
+ int maxdepth = 2;
+
+ /* Coordinates of first triangle: */
+
+ float u1[] = {-1.0f, -1.0f, 0.0f};
+ float u2[] = {1.0f, -1.0f, 0.0f};
+ float u3[] = {1.0f, 1.0f, 0.0f};
+
+ /* Coordinates of second triangle: */
+
+ float v1[] = {-1.0f, -1.0f, 0.0f};
+ float v2[] = {1.0f, 1.0f, 0.0f};
+ float v3[] = {-1.0f, 1.0f, 0.0f};
+
+ subDivide(u1, u2, u3, maxdepth);
+ subDivide(v1, v2, v3, maxdepth);
+ }
+
+ /* Matrix for shadow. From Mark Kilgard's "scube". */
+
+ private void myShadowMatrix(float ground[], float light[], float shadowMat[])
+ {
+ float dot;
+
+ dot =
+ ground[0] * light[0] +
+ ground[1] * light[1] +
+ ground[2] * light[2] +
+ ground[3] * light[3];
+
+ shadowMat[0] = dot - light[0] * ground[0];
+ shadowMat[4] = -light[0] * ground[1];
+ shadowMat[8] = -light[0] * ground[2];
+ shadowMat[12] = -light[0] * ground[3];
+
+ shadowMat[1] = -light[1] * ground[0];
+ shadowMat[5] = dot - light[1] * ground[1];
+ shadowMat[9] = -light[1] * ground[2];
+ shadowMat[13] = -light[1] * ground[3];
+
+ shadowMat[2] = -light[2] * ground[0];
+ shadowMat[6] = -light[2] * ground[1];
+ shadowMat[10] = dot - light[2] * ground[2];
+ shadowMat[14] = -light[2] * ground[3];
+
+ shadowMat[3] = -light[3] * ground[0];
+ shadowMat[7] = -light[3] * ground[1];
+ shadowMat[11] = -light[3] * ground[2];
+ shadowMat[15] = dot - light[3] * ground[3];
+ }
+ }
+}
diff --git a/demos/RonsDemos/moth_plugin13.html b/demos/RonsDemos/moth_plugin13.html
new file mode 100644
index 0000000..b10d99e
--- /dev/null
+++ b/demos/RonsDemos/moth_plugin13.html
@@ -0,0 +1,50 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Moth by Robert Doyle; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Moth applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>Click the left mouse button within the window to pause/resume simulation.
+<br>Click the right mouse button within the window to restart simulation.
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "moth.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "moth.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "moth.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "moth.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/movelight.html b/demos/RonsDemos/movelight.html
new file mode 100644
index 0000000..a323355
--- /dev/null
+++ b/demos/RonsDemos/movelight.html
@@ -0,0 +1,20 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Movelight by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Movelight applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>
+<hr>Each time you click inside the window, the light source will rotate to
+<br>a new position.&nbsp;
+<br>
+<applet code="movelight.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/movelight.java b/demos/RonsDemos/movelight.java
new file mode 100644
index 0000000..bb983d9
--- /dev/null
+++ b/demos/RonsDemos/movelight.java
@@ -0,0 +1,322 @@
+/**
+ * @(#) movelight.java
+ * @(#) author: Silicon Graphics (converted to Java by Ron Cemer)
+ */
+
+/*
+ * Copyright (c) 1993-1997, Silicon Graphics, Inc.
+ * ALL RIGHTS RESERVED
+ * Permission to use, copy, modify, and distribute this software for
+ * any purpose and without fee is hereby granted, provided that the above
+ * copyright notice appear in all copies and that both the copyright notice
+ * and this permission notice appear in supporting documentation, and that
+ * the name of Silicon Graphics, Inc. not be used in advertising
+ * or publicity pertaining to distribution of the software without specific,
+ * written prior permission.
+ *
+ * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
+ * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
+ * GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
+ * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
+ * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
+ * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
+ * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN
+ * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
+ * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * US Government Users Restricted Rights
+ * Use, duplication, or disclosure by the Government is subject to
+ * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
+ * (c)(1)(ii) of the Rights in Technical Data and Computer Software
+ * clause at DFARS 252.227-7013 and/or in similar or successor
+ * clauses in the FAR or the DOD or NASA FAR Supplement.
+ * Unpublished-- rights reserved under the copyright laws of the
+ * United States. Contractor/manufacturer is Silicon Graphics,
+ * Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
+ *
+ * OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
+ */
+
+/*
+ * movelight.java
+ * This applet demonstrates when to issue lighting and
+ * transformation commands to render a model with a light
+ * which is moved by a modeling transformation (rotate or
+ * translate). The light position is reset after the modeling
+ * transformation is called. The eye position does not change.
+ *
+ * A torus is drawn using a grey material characteristic.
+ * A single light source illuminates the object.
+ *
+ * Interaction: pressing the left mouse button alters
+ * the modeling transformation (x rotation) by 30 degrees.
+ * The scene is then redrawn with the light in a new position.
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+
+public class movelight extends Applet
+{
+ private static final float boxnormals[][] =
+ {
+ {-1.0f, 0.0f, 0.0f},
+ {0.0f, 1.0f, 0.0f},
+ {1.0f, 0.0f, 0.0f},
+ {0.0f, -1.0f, 0.0f},
+ {0.0f, 0.0f, 1.0f},
+ {0.0f, 0.0f, -1.0f}
+ };
+ private static final int boxfaces[][] =
+ {
+ {0, 1, 2, 3},
+ {3, 2, 6, 7},
+ {7, 6, 5, 4},
+ {4, 5, 1, 0},
+ {5, 6, 2, 1},
+ {7, 4, 0, 3}
+ };
+
+ movelightCanvas canvas = null;
+
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new movelightCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Start the applet */
+
+
+ public void start()
+ {
+ }
+
+
+ /* Stop the applet */
+
+
+ public void stop()
+ {
+ }
+
+
+ /* Destroy the applet */
+
+
+ public void destroy()
+ {
+ canvas.cvsDispose();
+ }
+
+
+ /* Local GLCanvas extension class */
+
+
+ private class movelightCanvas extends GLCanvas implements MouseListener
+ {
+ private static final float M_PI = 3.14159265359f;
+
+ private int spin = 0;
+
+ public movelightCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+ gl.glShadeModel(GL_SMOOTH);
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_DEPTH_TEST);
+
+ glj.gljCheckGL();
+
+ addMouseListener(this);
+ }
+
+ public void cvsDispose()
+ {
+ System.out.println("destroy(): " + this);
+ removeMouseListener(this);
+ super.cvsDispose();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ glu.gluPerspective(40.0f,(float)width/(float)height,1.0f,20.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ float position[] = { 0.0f, 0.0f, 1.5f, 1.0f };
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ gl.glPushMatrix();
+ glu.gluLookAt(0.0f, 0.0f, 5.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f);
+
+ gl.glPushMatrix();
+ gl.glRotated((double)spin, 1.0, 0.0, 0.0);
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, position);
+
+ gl.glTranslated(0.0, 0.0, 1.5);
+ gl.glDisable(GL_LIGHTING);
+ gl.glColor3f(0.0f, 1.0f, 1.0f);
+ glutWireCube(0.1f);
+ gl.glEnable(GL_LIGHTING);
+ gl.glPopMatrix();
+
+ glutSolidTorus(0.275f, 0.85f, 8, 15);
+ gl.glPopMatrix();
+ gl.glFlush();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ // Imported from glut.
+ private void glutWireCube(float size)
+ {
+ drawBox(size, GL_LINE_LOOP);
+ }
+
+ // Imported from glut.
+ private void glutSolidTorus
+ (float innerRadius,
+ float outerRadius,
+ int nsides,
+ int rings)
+ {
+ doughnut(innerRadius, outerRadius, nsides, rings);
+ }
+
+ // Imported from glut.
+ private void drawBox(float size, int type)
+ {
+ float v[][] = new float[8][3];
+ int i;
+
+ v[0][0] = v[1][0] = v[2][0] = v[3][0] = -size / 2;
+ v[4][0] = v[5][0] = v[6][0] = v[7][0] = size / 2;
+ v[0][1] = v[1][1] = v[4][1] = v[5][1] = -size / 2;
+ v[2][1] = v[3][1] = v[6][1] = v[7][1] = size / 2;
+ v[0][2] = v[3][2] = v[4][2] = v[7][2] = -size / 2;
+ v[1][2] = v[2][2] = v[5][2] = v[6][2] = size / 2;
+
+ for (i = 5; i >= 0; i--)
+ {
+ gl.glBegin(type);
+ gl.glNormal3fv(boxnormals[i]);
+ gl.glVertex3fv(v[boxfaces[i][0]]);
+ gl.glVertex3fv(v[boxfaces[i][1]]);
+ gl.glVertex3fv(v[boxfaces[i][2]]);
+ gl.glVertex3fv(v[boxfaces[i][3]]);
+ gl.glEnd();
+ }
+ }
+
+ // Imported from glut.
+ private void doughnut(float r, float R, int nsides, int rings)
+ {
+ int i, j;
+ float theta, phi, theta1;
+ float cosTheta, sinTheta;
+ float cosTheta1, sinTheta1;
+ float ringDelta, sideDelta;
+
+ ringDelta = 2.0f * M_PI / rings;
+ sideDelta = 2.0f * M_PI / nsides;
+
+ theta = 0.0f;
+ cosTheta = 1.0f;
+ sinTheta = 0.0f;
+ for (i = rings - 1; i >= 0; i--)
+ {
+ theta1 = theta + ringDelta;
+ cosTheta1 = (float)Math.cos(theta1);
+ sinTheta1 = (float)Math.sin(theta1);
+ gl.glBegin(GL_QUAD_STRIP);
+ phi = 0.0f;
+ for (j = nsides; j >= 0; j--)
+ {
+ float cosPhi, sinPhi, dist;
+
+ phi += sideDelta;
+ cosPhi = (float)Math.cos(phi);
+ sinPhi = (float)Math.sin(phi);
+ dist = R + r * cosPhi;
+
+ gl.glNormal3f(cosTheta1 * cosPhi, -sinTheta1 * cosPhi, sinPhi);
+ gl.glVertex3f(cosTheta1 * dist, -sinTheta1 * dist, r * sinPhi);
+ gl.glNormal3f(cosTheta * cosPhi, -sinTheta * cosPhi, sinPhi);
+ gl.glVertex3f(cosTheta * dist, -sinTheta * dist, r * sinPhi);
+ }
+ gl.glEnd();
+ theta = theta1;
+ cosTheta = cosTheta1;
+ sinTheta = sinTheta1;
+ }
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ spin = (spin + 30) % 360;
+ repaint();
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ }
+ }
+}
diff --git a/demos/RonsDemos/movelight_plugin13.html b/demos/RonsDemos/movelight_plugin13.html
new file mode 100644
index 0000000..2c0d494
--- /dev/null
+++ b/demos/RonsDemos/movelight_plugin13.html
@@ -0,0 +1,51 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Movelight by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Movelight applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>
+<hr>Each time you click inside the window, the light source will rotate to
+<br>a new position.&nbsp;
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "movelight.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "movelight.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "movelight.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "movelight.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/nonAnimApplet.skel b/demos/RonsDemos/nonAnimApplet.skel
new file mode 100644
index 0000000..a1697d2
--- /dev/null
+++ b/demos/RonsDemos/nonAnimApplet.skel
@@ -0,0 +1,120 @@
+/**
+ * Skeleton for non-animated applets (applets which redraw once each
+ * time the repaint() method is called, but do not continually animate
+ * automatically).
+ */
+
+/**
+ * @(#) [place applet name here].java
+ * @(#) author: [place author here] (converted to Java by Ron Cemer)
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+
+public class myapplet extends Applet
+{
+ myappletCanvas canvas = null;
+
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new myappletCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Start the applet */
+
+
+ public void start()
+ {
+ }
+
+
+ /* Stop the applet */
+
+
+ public void stop()
+ {
+ }
+
+
+ /* Destroy the applet */
+
+
+ public void destroy()
+ {
+ canvas.destroy();
+ }
+
+
+ /* Local GLCanvas extension class */
+
+
+ private class myappletCanvas extends GLCanvas
+ {
+ public myappletCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+// Put OpenGL initialization code here.
+
+ glj.gljCheckGL();
+ }
+
+ public void destroy()
+ {
+ System.out.println("destroy(): " + this);
+
+// Put any special takedown code here.
+
+ cvsDispose();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+
+// Put any custom reshape code here.
+
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent(true) == false) return;
+
+// Put drawing code here.
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+ }
+}
diff --git a/demos/RonsDemos/particle.html b/demos/RonsDemos/particle.html
new file mode 100644
index 0000000..ec8231d
--- /dev/null
+++ b/demos/RonsDemos/particle.html
@@ -0,0 +1,26 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Particle by Nate Robins; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Particle applet
+<br>Originially written by Nate Robins
+<br>Ported to Java by Ron Cemer
+<br>Drag the mouse inside the window to rotate the view.
+<br>Click inside the window, then press any of the following keys:
+<br>W/w: waterfall mode
+<br>F/f: fountain mode
+<br>S/s: toggle sphere collision
+<br>L/l: toggle between points lines
+<br>P/p: increase/decrease point size
+<br>+/-: increase/decrease number of particles
+<br>R/r: reset view rotation
+<br>
+<applet code="particle.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/particle.java b/demos/RonsDemos/particle.java
new file mode 100644
index 0000000..2369b00
--- /dev/null
+++ b/demos/RonsDemos/particle.java
@@ -0,0 +1,613 @@
+/**
+ * @(#) particle.java
+ * @(#) author: Nate Robins (converted to Java by Ron Cemer)
+ */
+
+/*
+ particle
+ Nate Robins, 1997
+
+ An example of a simple particle system.
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+public class particle extends SimpleGLAnimApplet1
+{
+ private static final int PS_WATERFALL = 0, PS_FOUNTAIN = 1;
+ private static Random random = null;
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new particleCanvas(d.width, d.height);
+ add("Center", canvas);
+ canvas.requestFocus();
+ random = new Random(System.currentTimeMillis());
+ }
+
+
+ private class PSsphere
+ {
+ protected float x, y, z;
+ protected float radius, radiussquared;
+
+ public PSsphere(float x, float y, float z, float radius)
+ {
+ this.x = x;
+ this.y = y;
+ this.z = z;
+ this.radius = radius;
+ radiussquared = radius*radius;
+ }
+ }
+
+ private class PSparticle
+ {
+ private final float PS_GRAVITY = -9.8f;
+
+ protected float position[] = new float[3]; /* current position */
+ protected float previous[] = new float[3]; /* previous position */
+ protected float velocity[] = new float[3]; /* velocity (magnitude & direction) */
+ protected float dampening = 0.0f; /* % of energy lost on collision */
+ protected boolean alive = false; /* is this particle alive? */
+
+ public PSparticle()
+ {
+ velocity[0] = previous[0] = position[0] = 0.0f;
+ velocity[1] = previous[1] = position[1] = 0.0f;
+ velocity[2] = previous[2] = position[2] = 0.0f;
+ dampening = 0.0f;
+ alive = false;
+ }
+
+ public PSparticle(float dt, int type)
+ {
+ if (type == PS_WATERFALL)
+ {
+ velocity[0] = (random.nextFloat()-0.5f);
+ velocity[1] = 0.0f;
+ velocity[2] = 0.5f*random.nextFloat();
+ position[0] = 0.0f;
+ position[1] = 2.0f;
+ position[2] = 0.0f;
+ dampening = 0.45f*random.nextFloat();
+ }
+ else if (type == PS_FOUNTAIN)
+ {
+ velocity[0] = 2.0f*(random.nextFloat()-0.5f);
+ velocity[1] = 6.0f;
+ velocity[2] = 2.0f*(random.nextFloat()-0.5f);
+ position[0] = 0.0f;
+ position[1] = 0.0f;
+ position[2] = 0.0f;
+ dampening = 0.35f*random.nextFloat();
+ }
+ previous[0] = position[0];
+ previous[1] = position[1];
+ previous[2] = position[2];
+ alive = true;
+ psTimeStep(2.0f*dt*random.nextFloat());
+ }
+
+ public void psTimeStep(float dt)
+ {
+ if (!alive) return;
+
+ velocity[1] += PS_GRAVITY*dt;
+
+ previous[0] = position[0];
+ previous[1] = position[1];
+ previous[2] = position[2];
+
+ position[0] += velocity[0]*dt;
+ position[1] += velocity[1]*dt;
+ position[2] += velocity[2]*dt;
+ }
+
+ /* psBounce: the particle has gone past (or exactly hit) the
+ ground plane, so calculate the time at which the particle
+ actually intersected the ground plane (s). essentially, this
+ just rolls back time to when the particle hit the ground plane,
+ then starts time again from then.
+
+ - - o A (previous position)
+ | | \
+ | s \ o (position it _should_ be at) -
+ t | \ / | t - s
+ | - ------X-------- -
+ | \
+ - o B (new position)
+
+ A + V*s = 0 or s = -A/V
+
+ to calculate where the particle should be:
+
+ A + V*t + V*(t-s)*d
+
+ where d is a damping factor which accounts for the loss
+ of energy due to the bounce. */
+ public void psBounce(float dt)
+ {
+ if (!alive) return;
+
+ /* since we know it is the ground plane, we only need to
+ calculate s for a single dimension. */
+ float s = -previous[1]/velocity[1];
+
+ position[0] =
+ (previous[0] + velocity[0]*s + velocity[0]*(dt-s)*dampening);
+ position[1] =
+ -velocity[1] * (dt-s) * dampening; /* reflect */
+ position[2] =
+ (previous[2] + velocity[2]*s + velocity[2]*(dt-s)*dampening);
+
+ /* damp the reflected velocity (since the particle hit
+ something, it lost some energy) */
+ velocity[0] *= dampening;
+ velocity[1] *= -dampening; /* reflect */
+ velocity[2] *= dampening;
+ }
+
+ public void psCollide(PSsphere sphere)
+ {
+ if (!alive) return;
+
+ float vx = position[0] - sphere.x;
+ float vy = position[1] - sphere.y;
+ float vz = position[2] - sphere.z;
+ float distance, distancesquared;
+
+ // Use distancesquared and radiussquared for comparison,
+ // eliminating the sqrt() call unless it is absolutely
+ // necessary, since it is time-consuming.
+ distancesquared = (vx*vx + vy*vy + vz*vz);
+ if (distancesquared < sphere.radiussquared)
+ {
+ distance = (float)Math.sqrt(distancesquared);
+ position[0] = sphere.x+(vx/distance)*sphere.radius;
+ position[1] = sphere.y+(vy/distance)*sphere.radius;
+ position[2] = sphere.z+(vz/distance)*sphere.radius;
+ previous[0] = position[0];
+ previous[1] = position[1];
+ previous[2] = position[2];
+ velocity[0] = vx/distance;
+ velocity[1] = vy/distance;
+ velocity[2] = vz/distance;
+ }
+ }
+ }
+
+
+ /* Local GLAnimCanvas extension class */
+
+
+ private class particleCanvas extends GLAnimCanvas
+ implements MouseListener, MouseMotionListener, KeyListener
+ {
+ private static final float M_PI = 3.14159265359f;
+
+ private MatrixFuncs mtxfuncs = null;
+ private int prevMouseX, prevMouseY;
+ private boolean mouseRButtonDown = false;
+ private float rot_matrix[] =
+ {
+ 1.0f, 0.0f, 0.0f, 0.0f,
+ 0.0f, 1.0f, 0.0f, 0.0f,
+ 0.0f, 0.0f, 1.0f, 0.0f,
+ 0.0f, 0.0f, 0.0f, 1.0f
+ };
+
+ private PSparticle[] particles = null;
+ private PSsphere sphere = new PSsphere(0.0f,1.0f,0.0f,0.25f);
+ private int num_particles = 5000;
+ private int living = 0; /* index to end of live particles */
+ private int type = PS_WATERFALL;
+ private boolean use_lines = false;
+ private boolean do_sphere = false;
+ private float flow = 500.0f;
+ private float slow_down = 1.0f;
+ private int point_size = 3;
+ private int sphere_list = 0;
+
+ public particleCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ setAnimateFps(30.0);
+
+ mtxfuncs = new MatrixFuncs();
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ setInitialRotation();
+
+ particles = new PSparticle[num_particles];
+ for (int i = 0; i < num_particles; i++)
+ particles[i] = new PSparticle();
+
+ sphere_list = gl.glGenLists(1);
+ gl.glNewList(sphere_list,GL_COMPILE);
+ gl.glColor3ub((byte)0, (byte)255, (byte)128);
+ int qobj = glu.gluNewQuadric();
+ glu.gluQuadricOrientation(qobj,GLU_OUTSIDE);
+ glu.gluQuadricNormals(qobj,GLU_SMOOTH);
+ glu.gluQuadricTexture(qobj,false);
+ glu.gluSphere(qobj,sphere.radius, 16, 16);
+ glu.gluDeleteQuadric(qobj);
+ gl.glEndList();
+
+ glj.gljCheckGL();
+
+ addMouseListener(this);
+ addMouseMotionListener(this);
+ addKeyListener(this);
+ }
+
+ public void doCleanup()
+ {
+ System.out.println("destroy(): " + this);
+ removeMouseListener(this);
+ removeMouseMotionListener(this);
+ removeKeyListener(this);
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+
+ float black[] = { 0, 0, 0, 0 };
+
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ glu.gluPerspective(60, 1, 0.1, 1000);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ glu.gluLookAt(0, 1, 3, 0, 1, 0, 0, 1, 0);
+ gl.glFogfv(GL_FOG_COLOR, black);
+ gl.glFogf(GL_FOG_START, 2.5f);
+ gl.glFogf(GL_FOG_END, 4f);
+ gl.glEnable(GL_FOG);
+ gl.glFogi(GL_FOG_MODE, GL_LINEAR);
+ gl.glPointSize(point_size);
+ gl.glEnable(GL_POINT_SMOOTH);
+ gl.glEnable(GL_BLEND);
+ gl.glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+ gl.glEnable(GL_COLOR_MATERIAL);
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glEnable(GL_LIGHT0);
+
+ timedelta();
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ gl.glPushMatrix();
+ gl.glMultMatrixf(rot_matrix);
+
+ // Update particles.
+
+ float dt = timedelta();
+ float truedt = dt;
+
+ /* slow the simulation if we can't keep the frame rate up
+ around 10 fps */
+ if (dt > 0.1f)
+ slow_down = 0.75f;
+ else if (dt < 0.1f)
+ slow_down = 1.0f;
+ dt *= slow_down;
+
+ /* resurrect a few particles */
+ for (int i = 0; i < flow*dt; i++)
+ {
+ particles[living] = new PSparticle(dt,type);
+ living++;
+ if (living >= num_particles) living = 0;
+ }
+
+ for (int i = 0; i < num_particles; i++)
+ {
+ particles[i].psTimeStep(dt);
+ /* collision with sphere? */
+ if (do_sphere) particles[i].psCollide(sphere);
+ /* collision with ground? */
+ if (particles[i].position[1] <= 0.0f)
+ particles[i].psBounce(dt);
+ /* dead particle? */
+ if ( (particles[i].position[1] < 0.1f)
+ && (Math.abs(particles[i].velocity[1]) < 0.2f) )
+ particles[i].alive = false;
+ }
+
+ // Draw the scene.
+
+ gl.glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
+
+ gl.glEnable(GL_LIGHTING);
+ if (do_sphere)
+ {
+ gl.glPushMatrix();
+ gl.glTranslatef(sphere.x, sphere.y, sphere.z);
+ gl.glCallList(sphere_list);
+ gl.glPopMatrix();
+ }
+ gl.glDisable(GL_LIGHTING);
+
+ gl.glColor3ub((byte)0, (byte)128, (byte)255);
+ gl.glBegin(GL_QUADS);
+ gl.glVertex3f(-2f, 0f, -2f);
+ gl.glVertex3f(-2f, 0f, 2f);
+ gl.glVertex3f(2f, 0f, 2f);
+ gl.glVertex3f(2f, 0f, -2f);
+ gl.glEnd();
+
+ float r, g;
+ if (!use_lines)
+ {
+ gl.glBegin(GL_POINTS);
+ for (int i = 0; i < num_particles; i++)
+ {
+ if (!particles[i].alive) continue;
+ r = particles[i].position[1]/2.1f*255f;
+ g = 128.0f+(r*0.5f);
+ gl.glColor3ub((byte)r, (byte)g, (byte)255);
+ gl.glVertex3fv(particles[i].position);
+ }
+ gl.glEnd();
+ }
+ else
+ {
+ gl.glBegin(GL_LINES);
+ for (int i = 0; i < num_particles; i++)
+ {
+ if (!particles[i].alive) continue;
+ r = particles[i].previous[1]/2.1f*255f;
+ g = 128.0f+(r*0.5f);
+ gl.glColor3ub((byte)r, (byte)g, (byte)255);
+ gl.glVertex3fv(particles[i].previous);
+ r = particles[i].position[1]/2.1f*255f;
+ g = 128.0f+(r*0.5f);
+ gl.glColor3ub((byte)r, (byte)g, (byte)255);
+ gl.glVertex3fv(particles[i].position);
+ }
+ gl.glEnd();
+ }
+
+ gl.glPopMatrix();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+
+ //if (!isSuspended()) repaint(); // Animate at full speed.
+ }
+
+ /* timedelta: returns the number of seconds that have elapsed
+ since the previous call to the function. */
+ private long timedelta_prev = 0L;
+ private float timedelta()
+ {
+ long current = System.currentTimeMillis();
+ if (timedelta_prev == 0L) timedelta_prev = current;
+ long delta = current-timedelta_prev;
+ timedelta_prev = current;
+ return ((float)delta) * 0.001f;
+ }
+
+ // Reset the rotation matrix to the default view.
+ private void setInitialRotation()
+ {
+ for (int i = 0; i < 16; i++)
+ rot_matrix[i] = ((i % 5) == 0) ? 1.0f : 0.0f;
+ }
+
+ private void fixRotationMatrix()
+ {
+ // Fix any problems with the rotation matrix.
+ rot_matrix[3] =
+ rot_matrix[7] =
+ rot_matrix[11] =
+ rot_matrix[12] =
+ rot_matrix[13] =
+ rot_matrix[14] = 0.0f;
+ rot_matrix[15] = 1.0f;
+ float fac;
+ if ((fac = (float)Math.sqrt
+ ((rot_matrix[0]*rot_matrix[0]) +
+ (rot_matrix[4]*rot_matrix[4]) +
+ (rot_matrix[8]*rot_matrix[8]))) != 1.0f)
+ {
+ if (fac != 0.0f)
+ {
+ fac = 1.0f/fac;
+ rot_matrix[0] *= fac;
+ rot_matrix[4] *= fac;
+ rot_matrix[8] *= fac;
+ }
+ }
+ if ((fac = (float)Math.sqrt
+ ((rot_matrix[1]*rot_matrix[1]) +
+ (rot_matrix[5]*rot_matrix[5]) +
+ (rot_matrix[9]*rot_matrix[9]))) != 1.0f)
+ {
+ if (fac != 0.0f)
+ {
+ fac = 1.0f/fac;
+ rot_matrix[1] *= fac;
+ rot_matrix[5] *= fac;
+ rot_matrix[9] *= fac;
+ }
+ }
+ if ((fac = (float)Math.sqrt
+ ((rot_matrix[2]*rot_matrix[2]) +
+ (rot_matrix[6]*rot_matrix[6]) +
+ (rot_matrix[10]*rot_matrix[10]))) != 1.0f)
+ {
+ if (fac != 0.0f)
+ {
+ fac = 1.0f/fac;
+ rot_matrix[2] *= fac;
+ rot_matrix[6] *= fac;
+ rot_matrix[10] *= fac;
+ }
+ }
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ prevMouseX = evt.getX();
+ prevMouseY = evt.getY();
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ mouseRButtonDown = true;
+ evt.consume();
+ }
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ mouseRButtonDown = false;
+ evt.consume();
+ }
+ }
+
+ // Methods required for the implementation of MouseMotionListener
+ public void mouseDragged( MouseEvent evt )
+ {
+ int x = evt.getX();
+ int y = evt.getY();
+ float thetaX = (float)(x-prevMouseX)*(360.0f/(float)getSize().width);
+ float thetaY = (float)(prevMouseY-y)*(360.0f/(float)getSize().height);
+ float mtxbuf[] = new float[16];
+ float mtxbuf2[] = new float[16];
+
+ prevMouseX = x;
+ prevMouseY = y;
+ if ( (thetaX != 0.0f) || (thetaY != 0.0f) )
+ {
+ mtxfuncs.rotateAroundY(((float)thetaX),mtxbuf);
+ if (mouseRButtonDown)
+ mtxfuncs.rotateAroundZ(thetaY,mtxbuf2);
+ else
+ mtxfuncs.rotateAroundX(-thetaY,mtxbuf2);
+ mtxfuncs.multiplyMatrices(mtxbuf2,mtxbuf,mtxbuf);
+ mtxfuncs.multiplyMatrices(rot_matrix,mtxbuf,rot_matrix);
+ fixRotationMatrix();
+ }
+ evt.consume();
+ }
+
+ public void mouseMoved( MouseEvent evt )
+ {
+ }
+
+ // Methods required for the implementation of KeyListener
+ public void keyPressed(KeyEvent e)
+ {
+ }
+
+ public void keyReleased(KeyEvent e)
+ {
+ }
+
+ public void keyTyped(KeyEvent e)
+ {
+ if (glj.gljMakeCurrent() == false) return;
+ switch ((char)e.getKeyChar())
+ {
+ case 'W':
+ case 'w':
+ type = PS_WATERFALL;
+ break;
+ case 'F':
+ case 'f':
+ type = PS_FOUNTAIN;
+ break;
+ case 'S':
+ case 's':
+ do_sphere = !do_sphere;
+ break;
+ case 'L':
+ case 'l':
+ use_lines = !use_lines;
+ break;
+ case 'P':
+ point_size++;
+ gl.glPointSize(point_size);
+ break;
+ case 'p':
+ point_size--;
+ if (point_size < 1) point_size = 1;
+ gl.glPointSize(point_size);
+ break;
+ case '+':
+ flow += 100;
+ if (flow > num_particles) flow = num_particles;
+ System.out.println(flow + " particles/second");
+ break;
+ case '-':
+ flow -= 100;
+ if (flow < 0) flow = 0;
+ System.out.println(flow + " particles/second");
+ break;
+ case 'R':
+ case 'r':
+ setInitialRotation();
+ break;
+ }
+ glj.gljFree();
+ }
+ }
+}
diff --git a/demos/RonsDemos/particle_plugin13.html b/demos/RonsDemos/particle_plugin13.html
new file mode 100644
index 0000000..84268df
--- /dev/null
+++ b/demos/RonsDemos/particle_plugin13.html
@@ -0,0 +1,57 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Particle by Nate Robins; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Particle applet
+<br>Originially written by Nate Robins
+<br>Ported to Java by Ron Cemer
+<br>Drag the mouse inside the window to rotate the view.
+<br>Click inside the window, then press any of the following keys:
+<br>W/w: waterfall mode
+<br>F/f: fountain mode
+<br>S/s: toggle sphere collision
+<br>L/l: toggle between points lines
+<br>P/p: increase/decrease point size
+<br>+/-: increase/decrease number of particles
+<br>R/r: reset view rotation
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "particle.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "particle.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "particle.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "particle.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/pointblast.html b/demos/RonsDemos/pointblast.html
new file mode 100644
index 0000000..d469a51
--- /dev/null
+++ b/demos/RonsDemos/pointblast.html
@@ -0,0 +1,19 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Pointblast by Mark J. Kilgard; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Pointblast applet
+<br>Originially written by Mark J. Kilgard
+<br>Ported to Java by Ron Cemer
+<br>Drag the mouse within the window to spin the image.
+<br>Right-click within the window for a menu of options.
+<br>
+<applet code="pointblast.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/pointblast.java b/demos/RonsDemos/pointblast.java
new file mode 100644
index 0000000..08570d1
--- /dev/null
+++ b/demos/RonsDemos/pointblast.java
@@ -0,0 +1,664 @@
+/**
+ * @(#) pointblast.java
+ * @(#) author: Mark J. Kilgard (converted to Java by Ron Cemer)
+ */
+
+/* Copyright (c) Mark J. Kilgard, 1997. */
+
+/* This program is freely distributable without licensing fees
+ and is provided without guarantee or warrantee expressed or
+ implied. This program is -not- in the public domain. */
+
+/* This example demonstrates how to render particle effects
+ with OpenGL. A cloud of pinkish/orange particles explodes with the
+ particles bouncing off the ground. When the EXT_point_parameters
+ is present , the particle size is attenuated based on eye distance. */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+public class pointblast extends SimpleGLAnimApplet1
+{
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new pointblastCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Local GLAnimCanvas extension class */
+
+
+ private class pointblastCanvas extends GLAnimCanvas
+ implements MouseListener, MouseMotionListener, ActionListener
+ {
+ private final double M_PI = 3.14159265;
+
+ private final String MENU_PAUSE = "Pause";
+ private final String MENU_RESUME = "Resume";
+ private final String MENU_RESET_TIME = "Reset time";
+// private final String MENU_CONSTANT = "Constant";
+// private final String MENU_LINEAR = "Linear";
+// private final String MENU_QUADRATIC = "Quadratic";
+ private final String MENU_BLEND_ON = "Blend on";
+ private final String MENU_BLEND_OFF = "Blend off";
+// private final String MENU_THRESHOLD_1 = "Threshold 1";
+// private final String MENU_THRESHOLD_10 = "Threshold 10";
+ private final String MENU_POINT_SMOOTH_ON = "Point smooth on";
+ private final String MENU_POINT_SMOOTH_OFF = "Point smooth off";
+ private final String MENU_POINT_SIZE_2 = "Point size 2";
+ private final String MENU_POINT_SIZE_4 = "Point size 4";
+ private final String MENU_POINT_SIZE_8 = "Point size 8";
+ private final String MENU_ENABLE_SPIN = "Enable spin";
+ private final String MENU_DISABLE_SPIN = "Disable spin";
+ private final String MENU_200_POINTS = "200 points";
+ private final String MENU_500_POINTS = "500 points";
+ private final String MENU_1000_POINTS = "1000 points";
+ private final String MENU_2000_POINTS = "2000 points";
+ private final String MENU_ENABLE_TEXTURING = "Enable texturing";
+ private final String MENU_DISABLE_TEXTURING = "Disable texturing";
+ private final String MENU_LINEAR_TEXTURE_FILTERING = "Linear texture filtering";
+ private final String MENU_POINT_TEXTURE_FILTERING = "Point texture filtering";
+
+ private PopupMenu menu = null;
+ private boolean menu_showing = false;
+ private boolean save_suspended = false;
+
+ private float angle = -150; /* in degrees */
+ private boolean spin = false;
+ private boolean moving = false;
+ private int begin;
+ private boolean newModel = true;
+ private float theTime;
+ private boolean repeat = true;
+ private boolean blend = true;
+ private boolean texturing = true;
+// private boolean useMipmaps = true;
+ private boolean linearFiltering = true;
+
+ private float constant[] = { 1.0f/5.0f, 0.0f, 0.0f };
+ private float linear[] = { 0.0f, 1.0f/5.0f, 0.0f };
+ private float theQuad[] = { 0.25f, 0.0f, 1.0f/60.0f };
+
+ private final int MAX_POINTS = 2000;
+
+ private int numPoints = 200;
+
+ private float pointList[][] = new float[MAX_POINTS][3];
+ private float pointTime[] = new float[MAX_POINTS];
+ private float pointVelocity[][] = new float[MAX_POINTS][2];
+ private float pointDirection[][] = new float[MAX_POINTS][2];
+ private int colorList[] = new int[MAX_POINTS];
+ private boolean motion = false;
+
+ private Random random = new Random(System.currentTimeMillis());
+
+ private final float MEAN_VELOCITY = 3.0f;
+ private final float GRAVITY = 2.0f;
+ private final float TIME_DELTA = 0.025f; /* The speed of time. */
+
+ /* Modeling units of ground extent in each X and Z direction. */
+ private final int EDGE = 12;
+
+ private final float colorSet[][] =
+ {
+ /* Shades of red. */
+ { 0.7f, 0.2f, 0.4f, 0.5f },
+ { 0.8f, 0.0f, 0.7f, 0.5f },
+ { 1.0f, 0.0f, 0.0f, 0.5f },
+ { 0.9f, 0.3f, 0.6f, 0.5f },
+ { 1.0f, 0.4f, 0.0f, 0.5f },
+ { 1.0f, 0.0f, 0.5f, 0.5f }
+ };
+ private final int NUM_COLORS = colorSet.length;
+ private final int DEAD = NUM_COLORS;
+
+ public pointblastCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ setAnimateFps(30.0);
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ gl.glShadeModel(GL_FLAT);
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glEnable(GL_POINT_SMOOTH);
+ gl.glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+ gl.glPointSize(8.0f);
+// gl.glPointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT, theQuad);
+ gl.glMatrixMode(GL_PROJECTION);
+ glu.gluPerspective
+ (/* field of view in degree */ 40.0,
+ /* aspect ratio */ 1.0,
+ /* Z near */ 0.5,
+ /* Z far */ 40.0);
+ gl.glMatrixMode(GL_MODELVIEW);
+ glu.gluLookAt
+ (0.0f, 1.0f, 8.0f, /* eye location */
+ 0.0f, 1.0f, 0.0f, /* center is at (0,0,0) */
+ 0.0f, 1.0f, 0.0f); /* up is in postivie Y direction */
+ gl.glPushMatrix(); /* dummy push so we can pop on model
+ recalc */
+ makePointList();
+ makeFloorTexture();
+
+ glj.gljCheckGL();
+
+ menu = new PopupMenu("Options");
+ menu.add(MENU_PAUSE);
+ menu.add(MENU_RESUME);
+ menu.add(MENU_RESET_TIME);
+// menu.add(MENU_CONSTANT);
+// menu.add(MENU_LINEAR);
+// menu.add(MENU_QUADRATIC);
+ menu.add(MENU_BLEND_ON);
+ menu.add(MENU_BLEND_OFF);
+// menu.add(MENU_THRESHOLD_1);
+// menu.add(MENU_THRESHOLD_10);
+ menu.add(MENU_POINT_SMOOTH_ON);
+ menu.add(MENU_POINT_SMOOTH_OFF);
+ menu.add(MENU_POINT_SIZE_2);
+ menu.add(MENU_POINT_SIZE_4);
+ menu.add(MENU_POINT_SIZE_8);
+ menu.add(MENU_ENABLE_SPIN);
+ menu.add(MENU_DISABLE_SPIN);
+ menu.add(MENU_200_POINTS);
+ menu.add(MENU_500_POINTS);
+ menu.add(MENU_1000_POINTS);
+ menu.add(MENU_2000_POINTS);
+ menu.add(MENU_ENABLE_TEXTURING);
+ menu.add(MENU_DISABLE_TEXTURING);
+ menu.add(MENU_LINEAR_TEXTURE_FILTERING);
+ menu.add(MENU_POINT_TEXTURE_FILTERING);
+ menu.addActionListener(this);
+ add(menu);
+
+ addMouseListener(this);
+ addMouseMotionListener(this);
+ }
+
+ public void doCleanup()
+ {
+ System.out.println("destroy(): " + this);
+ removeMouseListener(this);
+ removeMouseMotionListener(this);
+ menu.removeActionListener(this);
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ if (!isSuspended())
+ {
+ if (spin)
+ {
+ angle += 0.3f;
+ newModel = true;
+ }
+ updatePointList();
+ }
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ if (newModel) recalcModelView();
+
+ gl.glDepthMask(false);
+
+ /* Draw the floor. */
+ if (texturing) gl.glEnable(GL_TEXTURE_2D);
+ gl.glColor3f(0.5f, 1.0f, 0.5f);
+ gl.glBegin(GL_QUADS);
+ gl.glTexCoord2f(0.0f, 0.0f);
+ gl.glVertex3f(-EDGE, -0.05f, -EDGE);
+ gl.glTexCoord2f(20.0f, 0.0f);
+ gl.glVertex3f(EDGE, -0.05f, -EDGE);
+ gl.glTexCoord2f(20.0f, 20.0f);
+ gl.glVertex3f(EDGE, -0.05f, EDGE);
+ gl.glTexCoord2f(0.0f, 20.0f);
+ gl.glVertex3f(-EDGE, -0.05f, EDGE);
+ gl.glEnd();
+
+ /* Allow particles to blend with each other. */
+ gl.glDepthMask(true);
+
+ if (blend) gl.glEnable(GL_BLEND);
+
+ if (texturing) gl.glDisable(GL_TEXTURE_2D);
+ gl.glBegin(GL_POINTS);
+ for (int i = 0; i < numPoints; i++)
+ {
+ /* Draw alive particles. */
+ int c = colorList[i];
+ if ( (c < 0) || (c >= DEAD) ) continue;
+ gl.glColor4fv(colorSet[colorList[i]]);
+ gl.glVertex3fv(pointList[i]);
+ }
+ gl.glEnd();
+
+ gl.glDisable(GL_BLEND);
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+
+ //if (!isSuspended()) repaint(); // Animate at full speed.
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered(MouseEvent evt)
+ {
+ }
+
+ public void mouseExited(MouseEvent evt)
+ {
+ }
+
+ public void mousePressed(MouseEvent evt)
+ {
+ // If user presses right mouse button within canvas area,
+ // suspend animation and pop up menu.
+ // If menu was already popped up and user presses either
+ // mouse button within canvas area, resume animation
+ // because the menu will have been removed automatically.
+ if (!menu_showing)
+ {
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ menu_showing = true;
+ save_suspended = isSuspended();
+ if (!save_suspended)
+ {
+ setSuspended(true);
+ repaint(100);
+ try
+ {
+ Thread.currentThread().sleep(200);
+ }
+ catch (Exception e)
+ { }
+ }
+ menu.show(this,evt.getX(),evt.getY());
+ }
+ else
+ {
+ // Must be left button.
+ moving = true;
+ begin = evt.getX();
+ }
+ }
+ else
+ {
+ menu_showing = false;
+ setSuspended(save_suspended);
+ }
+ }
+
+ public void mouseReleased(MouseEvent evt)
+ {
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) == 0)
+ {
+ // Must be left button.
+ moving = false;
+ }
+ }
+
+ public void mouseClicked(MouseEvent evt)
+ {
+ }
+
+ // Methods required for the implementation of MouseMotionListener
+ public void mouseDragged(MouseEvent evt)
+ {
+ if (moving)
+ {
+ int x = evt.getX();
+ angle = angle + (x - begin);
+ begin = x;
+ newModel = true;
+ if (isSuspended()) repaint();
+ }
+ }
+
+ public void mouseMoved(MouseEvent evt)
+ {
+ }
+
+ // Method required for the implementation of ActionListener
+ public void actionPerformed(ActionEvent evt)
+ {
+ if (glj.gljMakeCurrent() == false) return;
+ boolean dorepaint = false;
+ String c = evt.getActionCommand();
+ if (c.equals(MENU_PAUSE))
+ {
+ if (menu_showing)
+ save_suspended = true;
+ else if (!isSuspended())
+ setSuspended(true);
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_RESUME))
+ {
+ if (menu_showing)
+ save_suspended = false;
+ else if (isSuspended())
+ setSuspended(false);
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_RESET_TIME))
+ {
+ makePointList();
+ dorepaint = true;
+ }
+// else if (c.equals(MENU_CONSTANT))
+// {
+// gl.glPointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT, constant);
+// dorepaint = true;
+// }
+// else if (c.equals(MENU_LINEAR))
+// {
+// gl.glPointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT, linear);
+// dorepaint = true;
+// }
+// else if (c.equals(MENU_QUADRATIC))
+// {
+// gl.glPointParameterfvEXT(GL_DISTANCE_ATTENUATION_EXT, theQuad);
+// dorepaint = true;
+// }
+ else if (c.equals(MENU_BLEND_ON))
+ {
+ blend = true;
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_BLEND_OFF))
+ {
+ blend = false;
+ dorepaint = true;
+ }
+// else if (c.equals(MENU_THRESHOLD_1))
+// {
+// gl.glPointParameterfEXT(GL_POINT_FADE_THRESHOLD_SIZE_EXT, 1.0f);
+// dorepaint = true;
+// }
+// else if (c.equals(MENU_THRESHOLD_10))
+// {
+// gl.glPointParameterfEXT(GL_POINT_FADE_THRESHOLD_SIZE_EXT, 10.0f);
+// dorepaint = true;
+// }
+ else if (c.equals(MENU_POINT_SMOOTH_ON))
+ {
+ gl.glEnable(GL_POINT_SMOOTH);
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_POINT_SMOOTH_OFF))
+ {
+ gl.glDisable(GL_POINT_SMOOTH);
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_POINT_SIZE_2))
+ {
+ gl.glPointSize(2.0f);
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_POINT_SIZE_4))
+ {
+ gl.glPointSize(4.0f);
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_POINT_SIZE_8))
+ {
+ gl.glPointSize(8.0f);
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_ENABLE_SPIN))
+ {
+ spin = true;
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_DISABLE_SPIN))
+ {
+ spin = false;
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_200_POINTS))
+ {
+ numPoints = 200;
+ makePointList();
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_500_POINTS))
+ {
+ numPoints = 500;
+ makePointList();
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_1000_POINTS))
+ {
+ numPoints = 1000;
+ makePointList();
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_2000_POINTS))
+ {
+ numPoints = 2000;
+ makePointList();
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_ENABLE_TEXTURING))
+ {
+ texturing = true;
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_DISABLE_TEXTURING))
+ {
+ texturing = false;
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_LINEAR_TEXTURE_FILTERING))
+ {
+ linearFiltering = true;
+ makeFloorTexture();
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_POINT_TEXTURE_FILTERING))
+ {
+ linearFiltering = false;
+ makeFloorTexture();
+ dorepaint = true;
+ }
+
+ glj.gljFree();
+ if (menu_showing)
+ {
+ menu_showing = false;
+ setSuspended(save_suspended);
+ }
+ if ( (isSuspended()) && (dorepaint) ) repaint();
+ }
+
+ private float float_rand()
+ {
+ return random.nextFloat();
+ }
+
+ private float RANDOM_RANGE(float lo, float hi)
+ {
+ return lo + ((hi - lo) * float_rand());
+ }
+
+ private void makePointList()
+ {
+ float angle, velocity, direction;
+ motion = true;
+ for (int i = 0; i < numPoints; i++)
+ {
+ pointList[i][0] = 0.0f;
+ pointList[i][1] = 0.0f;
+ pointList[i][2] = 0.0f;
+ pointTime[i] = 0.0f;
+ angle = (RANDOM_RANGE(60.0f, 70.0f)) * ((float)M_PI)/180.0f;
+ direction = RANDOM_RANGE(0.0f, 360.0f) * ((float)M_PI)/180.0f;
+ pointDirection[i][0] = (float)Math.cos(direction);
+ pointDirection[i][1] = (float)Math.sin(direction);
+ velocity = MEAN_VELOCITY + RANDOM_RANGE(-0.8f, 1.0f);
+ pointVelocity[i][0] = velocity * (float)Math.cos(angle);
+ pointVelocity[i][1] = velocity * (float)Math.sin(angle);
+ colorList[i] = random.nextInt() % NUM_COLORS;
+ }
+ theTime = 0.0f;
+ }
+
+ private void updatePointList()
+ {
+ float distance;
+ motion = false;
+ for (int i = 0; i < numPoints; i++)
+ {
+ distance = pointVelocity[i][0] * theTime;
+
+ /* X and Z */
+ pointList[i][0] = pointDirection[i][0] * distance;
+ pointList[i][2] = pointDirection[i][1] * distance;
+
+ /* Z */
+ pointList[i][1] =
+ (pointVelocity[i][1] - 0.5f * GRAVITY * pointTime[i])*pointTime[i];
+
+ /* If we hit the ground, bounce the point upward again. */
+ if (pointList[i][1] <= 0.0f)
+ {
+ if (distance > EDGE)
+ {
+ /* Particle has hit ground past the distance duration of
+ the particles. Mark particle as dead. */
+ colorList[i] = DEAD; /* Not moving. */
+ continue;
+ }
+ pointVelocity[i][1] *= 0.8f; /* 80% of previous up velocity. */
+ pointTime[i] = 0.0f; /* Reset the particles sense of up time. */
+ }
+ motion = true;
+ pointTime[i] += TIME_DELTA;
+ }
+ theTime += TIME_DELTA;
+ if ( (repeat) && (!motion) ) makePointList();
+ }
+
+ private void recalcModelView()
+ {
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glRotatef(angle, 0.0f, 1.0f, 0.0f);
+ newModel = false;
+ }
+
+ private void makeFloorTexture()
+ {
+ /* Nice floor texture tiling pattern. */
+ String circles[] =
+ {
+ "....xxxx........",
+ "..xxxxxxxx......",
+ ".xxxxxxxxxx.....",
+ ".xxx....xxx.....",
+ "xxx......xxx....",
+ "xxx......xxx....",
+ "xxx......xxx....",
+ "xxx......xxx....",
+ ".xxx....xxx.....",
+ ".xxxxxxxxxx.....",
+ "..xxxxxxxx......",
+ "....xxxx........",
+ "................",
+ "................",
+ "................",
+ "................"
+ };
+ byte floorTexture[] = new byte[16*16*3];
+
+ /* Setup RGB image for the texture. */
+ int idx = 0;
+ for (int t = 0; t < 16; t++)
+ {
+ for (int s = 0; s < 16; s++)
+ {
+ if (circles[t].charAt(s) == 'x')
+ {
+ /* Nice blue. */
+ floorTexture[idx++] = (byte)0x1f;
+ floorTexture[idx++] = (byte)0x1f;
+ floorTexture[idx++] = (byte)0x8f;
+ }
+ else
+ {
+ /* Light gray. */
+ floorTexture[idx++] = (byte)0xca;
+ floorTexture[idx++] = (byte)0xca;
+ floorTexture[idx++] = (byte)0xca;
+ }
+ }
+ }
+
+ gl.glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
+
+// if (useMipmaps)
+// {
+// gl.glTexParameteri
+// (GL_TEXTURE_2D,
+// GL_TEXTURE_MIN_FILTER,
+// GL_LINEAR_MIPMAP_LINEAR);
+// glu.gluBuild2DMipmaps
+// (GL_TEXTURE_2D,3,16,16,GL_RGB,GL_UNSIGNED_BYTE,floorTexture);
+// }
+// else
+ {
+ if (linearFiltering)
+ {
+ gl.glTexParameteri
+ (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
+ gl.glTexParameteri
+ (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ }
+ else
+ {
+ gl.glTexParameteri
+ (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
+ gl.glTexParameteri
+ (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
+ }
+ gl.glTexImage2D
+ (GL_TEXTURE_2D,0,3,16,16,0,GL_RGB,GL_UNSIGNED_BYTE,floorTexture);
+ }
+ }
+ }
+}
diff --git a/demos/RonsDemos/pointblast_plugin13.html b/demos/RonsDemos/pointblast_plugin13.html
new file mode 100644
index 0000000..0133e90
--- /dev/null
+++ b/demos/RonsDemos/pointblast_plugin13.html
@@ -0,0 +1,50 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Pointblast by Mark J. Kilgard; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Pointblast applet
+<br>Originially written by Mark J. Kilgard
+<br>Ported to Java by Ron Cemer
+<br>Drag the mouse within the window to spin the image.
+<br>Right-click within the window for a menu of options.
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "pointblast.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "pointblast.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "pointblast.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "pointblast.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/polyoff.html b/demos/RonsDemos/polyoff.html
new file mode 100644
index 0000000..78ba14d
--- /dev/null
+++ b/demos/RonsDemos/polyoff.html
@@ -0,0 +1,23 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Polyoff by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Polyoff applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>Use the Java Console in your browser to see messages generated by this applet.
+<br>Click inside the window, then press any of the following keys:
+<br>Arrows: rotate the object
+<br>t/T: decrease/increase translation distance
+<br>f/F: decrease/increase polygon offset factor
+<br>u/U: decrease/increase polygon offset units
+<br>
+<applet code="polyoff.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/polyoff.java b/demos/RonsDemos/polyoff.java
new file mode 100644
index 0000000..a79a398
--- /dev/null
+++ b/demos/RonsDemos/polyoff.java
@@ -0,0 +1,332 @@
+/**
+ * @(#) polyoff.java
+ * @(#) author: Silicon Graphics, Inc. (converted to Java by Ron Cemer)
+ */
+
+/*
+ * Copyright (c) 1993-1997, Silicon Graphics, Inc.
+ * ALL RIGHTS RESERVED
+ * Permission to use, copy, modify, and distribute this software for
+ * any purpose and without fee is hereby granted, provided that the above
+ * copyright notice appear in all copies and that both the copyright notice
+ * and this permission notice appear in supporting documentation, and that
+ * the name of Silicon Graphics, Inc. not be used in advertising
+ * or publicity pertaining to distribution of the software without specific,
+ * written prior permission.
+ *
+ * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
+ * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
+ * GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
+ * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
+ * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
+ * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
+ * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN
+ * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
+ * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * US Government Users Restricted Rights
+ * Use, duplication, or disclosure by the Government is subject to
+ * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
+ * (c)(1)(ii) of the Rights in Technical Data and Computer Software
+ * clause at DFARS 252.227-7013 and/or in similar or successor
+ * clauses in the FAR or the DOD or NASA FAR Supplement.
+ * Unpublished-- rights reserved under the copyright laws of the
+ * United States. Contractor/manufacturer is Silicon Graphics,
+ * Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
+ *
+ * OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
+ */
+
+/*
+ * This program demonstrates polygon offset to draw a shaded
+ * polygon and its wireframe counterpart without ugly visual
+ * artifacts ("stitching").
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+
+public class polyoff extends Applet
+{
+ polyoffCanvas canvas = null;
+
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new polyoffCanvas(d.width, d.height);
+ canvas.requestFocus();
+ add("Center", canvas);
+ }
+
+
+ /* Start the applet */
+
+
+ public void start()
+ {
+ }
+
+
+ /* Stop the applet */
+
+
+ public void stop()
+ {
+ }
+
+
+ /* Destroy the applet */
+
+
+ public void destroy()
+ {
+ canvas.cvsDispose();
+ }
+
+
+ /* Local GLCanvas extension class */
+
+
+ private class polyoffCanvas extends GLCanvas
+ implements KeyListener, MouseListener
+ {
+ private int list;
+ private int spinx = 0;
+ private int spiny = 0;
+ private float tdist = 0.0f;
+ private float polyfactor = 1.0f;
+ private float polyunits = 1.0f;
+
+ public polyoffCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ /* specify initial properties
+ * create display list with sphere
+ * initialize lighting and depth buffer
+ */
+
+ float light_ambient[] = { 0.0f, 0.0f, 0.0f, 1.0f };
+ float light_diffuse[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ float light_specular[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ float light_position[] = { 1.0f, 1.0f, 1.0f, 0.0f };
+
+ float global_ambient[] = { 0.2f, 0.2f, 0.2f, 1.0f };
+
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
+
+ list = gl.glGenLists(1);
+ gl.glNewList (list, GL_COMPILE);
+
+ int qobj = glu.gluNewQuadric();
+ glu.gluQuadricOrientation(qobj,GLU_OUTSIDE);
+ glu.gluQuadricNormals(qobj,GLU_SMOOTH);
+ glu.gluQuadricTexture(qobj,false);
+ glu.gluSphere(qobj,1.0f,20,12);
+ glu.gluDeleteQuadric(qobj);
+
+ gl.glEndList();
+
+ gl.glEnable(GL_DEPTH_TEST);
+
+ gl.glLightfv(GL_LIGHT0, GL_AMBIENT, light_ambient);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, light_diffuse);
+ gl.glLightfv(GL_LIGHT0, GL_SPECULAR, light_specular);
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, light_position);
+ gl.glLightModelfv (GL_LIGHT_MODEL_AMBIENT, global_ambient);
+
+ glj.gljCheckGL();
+
+ addKeyListener(this);
+ addMouseListener(this);
+ }
+
+ public void cvsDispose()
+ {
+ System.out.println("destroy(): " + this);
+ removeKeyListener(this);
+ super.cvsDispose();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ glu.gluPerspective(45.0,(double)width/(double)height,1.0,10.0);
+ gl.glMatrixMode (GL_MODELVIEW);
+ gl.glLoadIdentity();
+ glu.gluLookAt (0.0, 0.0, 5.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ float mat_ambient[] = { 0.8f, 0.8f, 0.8f, 1.0f };
+ float mat_diffuse[] = { 1.0f, 0.0f, 0.5f, 1.0f };
+ float mat_specular[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ float gray[] = { 0.8f, 0.8f, 0.8f, 1.0f };
+ float black[] = { 0.0f, 0.0f, 0.0f, 1.0f };
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ gl.glPushMatrix();
+ gl.glTranslatef(0.0f, 0.0f, tdist);
+ gl.glRotatef((float)spinx, 1.0f, 0.0f, 0.0f);
+ gl.glRotatef((float)spiny, 0.0f, 1.0f, 0.0f);
+
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, gray);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, black);
+ gl.glMaterialf(GL_FRONT, GL_SHININESS, 0.0f);
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_POLYGON_OFFSET_FILL);
+ gl.glPolygonOffset(polyfactor, polyunits);
+ gl.glCallList (list);
+ gl.glDisable(GL_POLYGON_OFFSET_FILL);
+
+ gl.glDisable(GL_LIGHTING);
+ gl.glDisable(GL_LIGHT0);
+ gl.glColor3f(1.0f, 1.0f, 1.0f);
+ gl.glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
+ gl.glCallList (list);
+ gl.glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
+
+ gl.glPopMatrix();
+ gl.glFlush();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ // Methods required for the implementation of KeyListener
+ public void keyPressed(KeyEvent e)
+ {
+ switch (e.getKeyCode())
+ {
+ case KeyEvent.VK_LEFT:
+ int j = (spiny-5);
+ while (j < 0) j += 360;
+ spiny = j;
+ repaint();
+ break;
+ case KeyEvent.VK_RIGHT:
+ spiny = (spiny + 5) % 360;
+ repaint();
+ break;
+ case KeyEvent.VK_UP:
+ int i = (spinx-5);
+ while (i < 0) i += 360;
+ spinx = i;
+ repaint();
+ break;
+ case KeyEvent.VK_DOWN:
+ spinx = (spinx + 5) % 360;
+ repaint();
+ break;
+ }
+ }
+
+ public void keyReleased(KeyEvent e)
+ {
+ }
+
+ public void keyTyped(KeyEvent e)
+ {
+ switch ((char)e.getKeyChar())
+ {
+ case 'T':
+ if (tdist < 4.0f)
+ {
+ tdist += 0.5f;
+ System.out.println("translation distance is " + tdist);
+ repaint();
+ }
+ break;
+ case 't':
+ if (tdist > -5.0f)
+ {
+ tdist -= 0.5f;
+ System.out.println("translation distance is " + tdist);
+ repaint();
+ }
+ break;
+ case 'F':
+ polyfactor += 0.1f;
+ System.out.println("polyfactor is " + polyfactor);
+ repaint();
+ break;
+ case 'f':
+ polyfactor -= 0.1f;
+ System.out.println("polyfactor is " + polyfactor);
+ repaint();
+ break;
+ case 'U':
+ polyunits += 1.0f;
+ System.out.println("polyunits is " + polyunits);
+ repaint();
+ break;
+ case 'u':
+ polyunits -= 1.0f;
+ System.out.println("polyunits is " + polyunits);
+ repaint();
+ break;
+ }
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ public void mouseExited( MouseEvent evt )
+ { }
+ public void mousePressed( MouseEvent evt )
+ { }
+ public void mouseReleased( MouseEvent evt )
+ { }
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+ }
+}
diff --git a/demos/RonsDemos/polyoff_plugin13.html b/demos/RonsDemos/polyoff_plugin13.html
new file mode 100644
index 0000000..aab6878
--- /dev/null
+++ b/demos/RonsDemos/polyoff_plugin13.html
@@ -0,0 +1,54 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Polyoff by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Polyoff applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>Use the Java Console in your browser to see messages generated by this applet.
+<br>Click inside the window, then press any of the following keys:
+<br>Arrows: rotate the object
+<br>t/T: decrease/increase translation distance
+<br>f/F: decrease/increase polygon offset factor
+<br>u/U: decrease/increase polygon offset units
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "polyoff.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "polyoff.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "polyoff.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "polyoff.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/quadric.html b/demos/RonsDemos/quadric.html
new file mode 100644
index 0000000..d104772
--- /dev/null
+++ b/demos/RonsDemos/quadric.html
@@ -0,0 +1,17 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Quadric by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Quadric applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>
+<applet code="quadric.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/quadric.java b/demos/RonsDemos/quadric.java
new file mode 100644
index 0000000..932f428
--- /dev/null
+++ b/demos/RonsDemos/quadric.java
@@ -0,0 +1,250 @@
+/**
+ * @(#) quadric.java
+ * @(#) author: Silicon Graphics, Inc. (converted to Java by Ron Cemer)
+ */
+
+/*
+ * Copyright (c) 1993-1997, Silicon Graphics, Inc.
+ * ALL RIGHTS RESERVED
+ * Permission to use, copy, modify, and distribute this software for
+ * any purpose and without fee is hereby granted, provided that the above
+ * copyright notice appear in all copies and that both the copyright notice
+ * and this permission notice appear in supporting documentation, and that
+ * the name of Silicon Graphics, Inc. not be used in advertising
+ * or publicity pertaining to distribution of the software without specific,
+ * written prior permission.
+ *
+ * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
+ * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
+ * GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
+ * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
+ * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
+ * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
+ * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN
+ * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
+ * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * US Government Users Restricted Rights
+ * Use, duplication, or disclosure by the Government is subject to
+ * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
+ * (c)(1)(ii) of the Rights in Technical Data and Computer Software
+ * clause at DFARS 252.227-7013 and/or in similar or successor
+ * clauses in the FAR or the DOD or NASA FAR Supplement.
+ * Unpublished-- rights reserved under the copyright laws of the
+ * United States. Contractor/manufacturer is Silicon Graphics,
+ * Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
+ *
+ * OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
+ */
+
+/*
+ * This program demonstrates the use of some of the gluQuadric*
+ * routines. Quadric objects are created with some quadric
+ * properties and the callback routine to handle errors.
+ * Note that the cylinder has no top or bottom and the circle
+ * has a hole in it.
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+
+public class quadric extends Applet
+{
+ quadricCanvas canvas = null;
+
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new quadricCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Start the applet */
+
+
+ public void start()
+ {
+ }
+
+
+ /* Stop the applet */
+
+
+ public void stop()
+ {
+ }
+
+
+ /* Destroy the applet */
+
+
+ public void destroy()
+ {
+ canvas.cvsDispose();
+ }
+
+
+ /* Local GLCanvas extension class */
+
+
+ private class quadricCanvas extends GLCanvas
+ {
+ int startList;
+
+ public quadricCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ int qobj;
+ float mat_ambient[] = { 0.5f, 0.5f, 0.5f, 1.0f };
+ float mat_specular[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ float mat_shininess[] = { 50.0f };
+ float light_position[] = { 1.0f, 1.0f, 1.0f, 0.0f };
+ float model_ambient[] = { 0.5f, 0.5f, 0.5f, 1.0f };
+
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, mat_ambient);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, mat_shininess);
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, light_position);
+ gl.glLightModelfv(GL_LIGHT_MODEL_AMBIENT, model_ambient);
+
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_DEPTH_TEST);
+
+ /* Create 4 display lists, each with a different quadric object.
+ * Different drawing styles and surface normal specifications
+ * are demonstrated.
+ */
+ startList = gl.glGenLists(4);
+ qobj = glu.gluNewQuadric();
+
+ glu.gluQuadricDrawStyle(qobj, GLU_FILL); /* smooth shaded */
+ glu.gluQuadricNormals(qobj, GLU_SMOOTH);
+ gl.glNewList(startList, GL_COMPILE);
+ glu.gluSphere(qobj, 0.75f, 15, 10);
+ gl.glEndList();
+
+ glu.gluQuadricDrawStyle(qobj, GLU_FILL); /* flat shaded */
+ glu.gluQuadricNormals(qobj, GLU_FLAT);
+ gl.glNewList(startList+1, GL_COMPILE);
+ glu.gluCylinder(qobj, 0.5f, 0.3f, 1.0f, 15, 5);
+ gl.glEndList();
+
+ glu.gluQuadricDrawStyle(qobj, GLU_LINE); /* all polygons wireframe */
+ glu.gluQuadricNormals(qobj, GLU_NONE);
+ gl.glNewList(startList+2, GL_COMPILE);
+ glu.gluDisk(qobj, 0.25f, 1.0f, 20, 4);
+ gl.glEndList();
+
+ glu.gluQuadricDrawStyle(qobj, GLU_SILHOUETTE); /* boundary only */
+ glu.gluQuadricNormals(qobj, GLU_NONE);
+ gl.glNewList(startList+3, GL_COMPILE);
+ glu.gluPartialDisk(qobj, 0.0f, 1.0f, 20, 4, 0.0f, 225.0f);
+ gl.glEndList();
+
+ glu.gluDeleteQuadric(qobj);
+
+ glj.gljCheckGL();
+ }
+
+ public void cvsDispose()
+ {
+ System.out.println("destroy(): " + this);
+ super.cvsDispose();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ if (width <= height)
+ gl.glOrtho
+ (-2.5f,
+ 2.5f,
+ -2.5f*(float)height/(float)width,
+ 2.5f*(float)height/(float)width,
+ -10.0f,
+ 10.0f);
+ else
+ gl.glOrtho
+ (-2.5f*(float)width/(float)height,
+ 2.5f*(float)width/(float)height,
+ -2.5f,
+ 2.5f,
+ -10.0f,
+ 10.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ gl.glPushMatrix();
+
+ gl.glEnable(GL_LIGHTING);
+ gl.glShadeModel(GL_SMOOTH);
+ gl.glTranslatef(-1.0f, -1.0f, 0.0f);
+ gl.glCallList(startList);
+
+ gl.glShadeModel(GL_FLAT);
+ gl.glTranslatef(0.0f, 2.0f, 0.0f);
+ gl.glPushMatrix();
+ gl.glRotatef(300.0f, 1.0f, 0.0f, 0.0f);
+ gl.glCallList(startList+1);
+ gl.glPopMatrix();
+
+ gl.glDisable(GL_LIGHTING);
+ gl.glColor3f(0.0f, 1.0f, 1.0f);
+ gl.glTranslatef(2.0f, -2.0f, 0.0f);
+ gl.glCallList(startList+2);
+
+ gl.glColor3f(1.0f, 1.0f, 0.0f);
+ gl.glTranslatef(0.0f, 2.0f, 0.0f);
+ gl.glCallList(startList+3);
+
+ gl.glPopMatrix();
+ gl.glFlush();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+ }
+}
diff --git a/demos/RonsDemos/quadric_plugin13.html b/demos/RonsDemos/quadric_plugin13.html
new file mode 100644
index 0000000..9d4db49
--- /dev/null
+++ b/demos/RonsDemos/quadric_plugin13.html
@@ -0,0 +1,48 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Quadric by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Quadric applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "quadric.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "quadric.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "quadric.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "quadric.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/reflect.html b/demos/RonsDemos/reflect.html
new file mode 100644
index 0000000..3ade9b6
--- /dev/null
+++ b/demos/RonsDemos/reflect.html
@@ -0,0 +1,22 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Reflect by Brian Paul; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Reflect applet
+<br>Originially written by Brian Paul
+<br>Ported to Java by Ron Cemer
+<br>
+<hr>You can rotate the view by holding the left mouse button down and
+<br>dragging the mouse within the applet's window.
+<br>If you hold the right button down instead, the view will rotate
+<br>around the Z axis.
+<br>
+<applet code="reflect.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/reflect.java b/demos/RonsDemos/reflect.java
new file mode 100644
index 0000000..e857881
--- /dev/null
+++ b/demos/RonsDemos/reflect.java
@@ -0,0 +1,424 @@
+/**
+ * @(#) reflect.java
+ * @(#) author: Brian Paul (converted to Java by Ron Cemer)
+ */
+
+/*
+ * Demo of a reflective, texture-mapped surface with OpenGL.
+ * Brian Paul August 14, 1995 This file is in the public domain.
+ *
+ * Hardware texture mapping is highly recommended!
+ *
+ * The basic steps are:
+ * 1. Render the reflective object (a polygon) from the normal viewpoint,
+ * setting the stencil planes = 1.
+ * 2. Render the scene from a special viewpoint: the viewpoint which
+ * is on the opposite side of the reflective plane. Only draw where
+ * stencil = 1. This draws the objects in the reflective surface.
+ * 3. Render the scene from the original viewpoint. This draws the
+ * objects in the normal fashion. Use blending when drawing
+ * the reflective, textured surface.
+ *
+ * This is a very crude demo. It could be much better.
+ */
+
+/*
+ * Dirk Reiners ([email protected]) made some modifications to this code.
+ *
+ * August 1996 - A few optimizations by Brian
+ */
+
+/*
+ * April, 1997 - Added Mark Kilgard's changes.
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+public class reflect extends SimpleGLAnimApplet1
+{
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new reflectCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Local GLAnimCanvas extension class */
+
+
+ private class reflectCanvas extends GLAnimCanvas implements MouseListener, MouseMotionListener
+ {
+ private static final float M_PI = 3.14159265359f;
+ private static final float DEG2RAD = (M_PI/180.0f);
+ private static final int MAX_OBJECTS = 2;
+
+ private final float light_pos[] = { 0.0f, 20.0f, 0.0f, 1.0f };
+
+ private int textureid = 0;
+
+ private int table_list;
+ private int objects_list[];
+
+ private float spin, xrot, yrot;
+
+ private MatrixFuncs mtxfuncs = null;
+ private int prevMouseX, prevMouseY;
+ private boolean mouseRButtonDown = false;
+
+ public reflectCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ setAnimateFps(60.0f);
+
+ mtxfuncs = new MatrixFuncs();
+ objects_list = new int[MAX_OBJECTS];
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ stencilBits = 3;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ make_table();
+ make_objects();
+
+ int texIdBuf[] = new int[1];
+ gl.glGenTextures(1, texIdBuf);
+ textureid = texIdBuf[0];
+
+ gl.glBindTexture(GL_TEXTURE_2D,textureid);
+
+ HardCodedTexture texture = new DemoTex1();
+ gl.glTexImage2D
+ (GL_TEXTURE_2D,
+ 0,
+ texture.getComponents(),
+ texture.getWidth(),
+ texture.getHeight(),
+ 0,
+ texture.getFormat(),
+ texture.getType(),
+ texture.getBits());
+
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
+ gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+
+ gl.glBindTexture(GL_TEXTURE_2D,0);
+
+ spin = 0.0f;
+ xrot = 30.0f;
+ yrot = 50.0f;
+
+ gl.glShadeModel(GL_FLAT);
+
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_LIGHTING);
+
+ gl.glClearColor(0.5f, 0.5f, 0.5f, 1.0f);
+
+ gl.glEnable(GL_NORMALIZE);
+
+ glj.gljCheckGL();
+
+ addMouseListener(this);
+ addMouseMotionListener(this);
+ }
+
+ public void doCleanup()
+ {
+ System.out.println("destroy(): " + this);
+ removeMouseListener(this);
+ removeMouseMotionListener(this);
+ }
+
+ public void reshape(int width, int height)
+ {
+ float aspect = (float)width / (float)height;
+
+ gl.glViewport(0,0,width,height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ gl.glFrustum(-aspect, aspect, -1.0f, 1.0f, 4.0f, 300.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ spin += 0.8f;
+ yrot += 1.2f;
+ if (yrot >= 360.0f) yrot -= 360.0f;
+
+ float dist = 20.0f;
+ float eyex, eyey, eyez;
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
+
+ eyex = dist * (float)Math.cos(yrot*DEG2RAD) * (float)Math.cos(xrot*DEG2RAD);
+ eyez = dist * (float)Math.sin(yrot*DEG2RAD) * (float)Math.cos(xrot*DEG2RAD);
+ eyey = dist * (float)Math.sin(xrot*DEG2RAD);
+
+ /* view from top */
+ gl.glPushMatrix();
+
+ glu.gluLookAt(eyex,eyey,eyez,0.0f,0.0f,0.0f,0.0f,1.0f,0.0f);
+
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, light_pos);
+
+ /* draw table into stencil planes (non-textured for speed) */
+ gl.glEnable(GL_STENCIL_TEST);
+ gl.glDisable(GL_DEPTH_TEST);
+ gl.glStencilFunc(GL_ALWAYS, 1, 0xffffffff);
+ gl.glStencilOp(GL_REPLACE, GL_REPLACE, GL_REPLACE);
+ gl.glColorMask(false, false, false, false);
+ draw_table();
+ gl.glColorMask(true, true, true, true);
+
+ gl.glEnable(GL_DEPTH_TEST);
+
+ /* render view from below (reflected viewport) */
+ /* only draw where stencil==1 */
+ if (eyey > 0.0f)
+ {
+ gl.glPushMatrix();
+
+ gl.glStencilFunc(GL_EQUAL, 1, 0xffffffff); /* draw if ==1 */
+ gl.glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP);
+ gl.glScalef(1.0f, -1.0f, 1.0f);
+
+ /* Reposition light in reflected space. */
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, light_pos);
+
+ draw_objects(eyex, eyey, eyez);
+ gl.glPopMatrix();
+
+ /* Restore light's original unreflected position. */
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, light_pos);
+ }
+
+ /* draw table into color planes (textured this time) */
+ gl.glDisable(GL_STENCIL_TEST);
+
+ gl.glEnable(GL_BLEND);
+ gl.glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+
+ gl.glBindTexture(GL_TEXTURE_2D,textureid);
+ gl.glEnable(GL_TEXTURE_2D);
+ draw_table();
+ gl.glDisable(GL_TEXTURE_2D);
+ gl.glBindTexture(GL_TEXTURE_2D,0);
+ gl.glDisable(GL_BLEND);
+
+ /* view from top */
+ gl.glPushMatrix();
+
+ draw_objects(eyex, eyey, eyez);
+
+ gl.glPopMatrix();
+
+ gl.glPopMatrix();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+
+ //if (!isSuspended()) repaint(); // Animate at full speed.
+ }
+
+ private void make_table()
+ {
+ float table_mat[] = { 1.0f, 1.0f, 1.0f, 0.6f };
+ float gray[] = { 0.4f, 0.4f, 0.4f, 1.0f };
+
+ table_list = gl.glGenLists(1);
+ gl.glNewList(table_list,GL_COMPILE);
+
+ /* load table's texture */
+ gl.glMaterialfv(GL_FRONT,GL_AMBIENT_AND_DIFFUSE,table_mat);
+ gl.glMaterialfv(GL_FRONT,GL_DIFFUSE,table_mat);
+ gl.glMaterialfv(GL_FRONT,GL_AMBIENT,gray);
+
+ /* draw textured square for the table */
+ gl.glPushMatrix();
+ gl.glScalef(4.0f, 4.0f, 4.0f);
+ gl.glBegin(GL_POLYGON);
+ gl.glNormal3f(0.0f, 1.0f, 0.0f);
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f(-1.0f, 0.0f, 1.0f);
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f( 1.0f, 0.0f, 1.0f);
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f( 1.0f, 0.0f, -1.0f);
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f(-1.0f, 0.0f, -1.0f);
+ gl.glEnd();
+ gl.glPopMatrix();
+
+ gl.glEndList();
+ }
+
+ private void make_objects()
+ {
+ int q;
+
+ float cyan[] = { 0.0f, 1.0f, 1.0f, 1.0f };
+ float green[] = { 0.2f, 1.0f, 0.2f, 1.0f };
+ float black[] = { 0.0f, 0.0f, 0.0f, 0.0f };
+
+ q = glu.gluNewQuadric();
+ glu.gluQuadricDrawStyle(q, GLU_FILL);
+ glu.gluQuadricNormals(q, GLU_SMOOTH);
+
+ objects_list[0] = gl.glGenLists(1);
+ gl.glNewList(objects_list[0], GL_COMPILE);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, cyan );
+ gl.glMaterialfv(GL_FRONT, GL_EMISSION, black );
+ glu.gluCylinder(q, 0.5f, 0.5f, 1.0f, 15, 10);
+ gl.glEndList();
+
+ objects_list[1] = gl.glGenLists(1);
+ gl.glNewList(objects_list[1], GL_COMPILE);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, green);
+ gl.glMaterialfv(GL_FRONT, GL_EMISSION, black);
+ glu.gluCylinder(q, 1.5, 0.0f, 2.5f, 15, 10);
+ gl.glEndList();
+ }
+
+
+ private void draw_objects(float eyex, float eyey, float eyez)
+ {
+ gl.glPushMatrix();
+ gl.glTranslatef(1.0f, 1.5f, 0.0f);
+ gl.glRotatef(spin, 1.0f, 0.5f, 0.0f);
+ gl.glRotatef(0.5f*spin, 0.0f, 0.5f, 1.0f);
+ gl.glCallList(objects_list[0]);
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glTranslatef(-1.0f, 0.85f+3.0f*(float)Math.abs((float)Math.cos(0.01f*spin)),0.0f);
+ gl.glRotatef(0.5f*spin, 0.0f, 0.5f, 1.0f);
+ gl.glRotatef(spin, 1.0f, 0.5f, 0.0f);
+ gl.glScalef(0.5f, 0.5f, 0.5f);
+ gl.glCallList(objects_list[1]);
+ gl.glPopMatrix();
+ }
+
+ private void draw_table()
+ {
+ gl.glCallList(table_list);
+ }
+
+ float[] MatrixTransform(float m[], float vx, float vy, float vz, float vw)
+ {
+ float v[] = new float[4];
+ float nx, ny, nz, nw, ninvw;
+
+ nx = ((vx*m[0])+(vy*m[4])+(vz*m[ 8])+(vw*m[12]));
+ ny = ((vx*m[1])+(vy*m[5])+(vz*m[ 9])+(vw*m[13]));
+ nz = ((vx*m[2])+(vy*m[6])+(vz*m[10])+(vw*m[14]));
+ nw = ((vx*m[3])+(vy*m[7])+(vz*m[11])+(vw*m[15]));
+ if ( (nw != 0.0f) && (nw != 1.0f) )
+ {
+ ninvw = 1.0f/nw;
+ nx *= ninvw;
+ ny *= ninvw;
+ nz *= ninvw;
+ }
+ v[0] = nx;
+ v[1] = ny;
+ v[2] = nz;
+ v[3] = 1.0f;
+ return(v);
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ prevMouseX = evt.getX();
+ prevMouseY = evt.getY();
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ mouseRButtonDown = true;
+ evt.consume();
+ }
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ mouseRButtonDown = false;
+ evt.consume();
+ }
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ }
+
+ // Methods required for the implementation of MouseMotionListener
+ public void mouseDragged( MouseEvent evt )
+ {
+ int x = evt.getX();
+ int y = evt.getY();
+ float thetaX = (float)(x-prevMouseX)*(360.0f/(float)getSize().width);
+ float thetaY = (float)(prevMouseY-y)*(360.0f/(float)getSize().height);
+ float mtxbuf[] = new float[16];
+ float mtxbuf2[] = new float[16];
+
+ prevMouseX = x;
+ prevMouseY = y;
+ if ( (thetaX != 0.0f) || (thetaY != 0.0f) )
+ {
+// This is a special hack for this applet only, due to
+// the fact that we are not using a rotation matrix!!!
+ yrot += thetaX;
+ while (yrot < 0.0f) yrot += 360.0f;
+ while (yrot >= 360.0f) yrot -= 360.0f;
+
+ xrot -= thetaY;
+ if (xrot > 90.0f)
+ xrot = 90.0f;
+ else if (xrot < -90.0f)
+ xrot = -90.0f;
+ }
+ evt.consume();
+ }
+
+ public void mouseMoved( MouseEvent evt )
+ {
+ }
+ }
+}
diff --git a/demos/RonsDemos/reflect_plugin13.html b/demos/RonsDemos/reflect_plugin13.html
new file mode 100644
index 0000000..306e8d6
--- /dev/null
+++ b/demos/RonsDemos/reflect_plugin13.html
@@ -0,0 +1,53 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Reflect by Brian Paul; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Reflect applet
+<br>Originially written by Brian Paul
+<br>Ported to Java by Ron Cemer
+<br>
+<hr>You can rotate the view by holding the left mouse button down and
+<br>dragging the mouse within the applet's window.
+<br>If you hold the right button down instead, the view will rotate
+<br>around the Z axis.
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "reflect.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "reflect.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "reflect.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "reflect.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/renormal.html b/demos/RonsDemos/renormal.html
new file mode 100644
index 0000000..c0aa238
--- /dev/null
+++ b/demos/RonsDemos/renormal.html
@@ -0,0 +1,18 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Renormal by Brian Paul; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Renormal applet
+<br>Originially written by Brian Paul
+<br>Ported to Java by Ron Cemer
+<br>
+<hr>
+<applet code="renormal.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/renormal.java b/demos/RonsDemos/renormal.java
new file mode 100644
index 0000000..783bf15
--- /dev/null
+++ b/demos/RonsDemos/renormal.java
@@ -0,0 +1,112 @@
+/**
+ * @(#) renormal.java
+ * @(#) author: Brian Paul (converted to Java by Ron Cemer)
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+public class renormal extends SimpleGLAnimApplet1
+{
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new renormalCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Local GLAnimCanvas extension class */
+
+
+ private class renormalCanvas extends GLAnimCanvas
+ {
+ private static final float M_PI = 3.14159265359f;
+ private float Phi = 0.0f;
+
+ public renormalCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ setAnimateFps(30.0);
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ float mat[] = { 0.8f, 0.8f, 0.0f, 1.0f };
+ float pos[] = { -1.0f, 1.0f, 1.0f, 0.0f };
+
+ /* setup lighting, etc */
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, mat);
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, pos);
+ gl.glEnable(GL_CULL_FACE);
+ gl.glEnable(GL_NORMALIZE);
+
+ glj.gljCheckGL();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ gl.glFrustum(-1.0f, 1.0f, -1.0f, 1.0f, 5.0f, 25.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ gl.glTranslatef(0.0f, 0.0f, -15.0f);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ Phi += 0.05f;
+ while (Phi >= (M_PI*2.0f)) Phi -= (M_PI*2.0f);
+
+ float scale = 0.6f + (0.5f * (float)Math.sin(Phi));
+ gl.glClear(GL_COLOR_BUFFER_BIT);
+ gl.glPushMatrix();
+ gl.glScalef(scale, scale, scale);
+
+ int qobj = glu.gluNewQuadric();
+ glu.gluQuadricOrientation(qobj,GLU_OUTSIDE);
+ glu.gluQuadricNormals(qobj,GLU_SMOOTH);
+ glu.gluQuadricTexture(qobj,false);
+ glu.gluSphere(qobj,2.0f,40,40);
+ glu.gluDeleteQuadric(qobj);
+
+ gl.glPopMatrix();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+
+ //if (!isSuspended()) repaint(); // Animate at full speed.
+ }
+ }
+}
diff --git a/demos/RonsDemos/renormal_plugin13.html b/demos/RonsDemos/renormal_plugin13.html
new file mode 100644
index 0000000..d40bb7b
--- /dev/null
+++ b/demos/RonsDemos/renormal_plugin13.html
@@ -0,0 +1,49 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Renormal by Brian Paul; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Renormal applet
+<br>Originially written by Brian Paul
+<br>Ported to Java by Ron Cemer
+<br>
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "renormal.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "renormal.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "renormal.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "renormal.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/rings.html b/demos/RonsDemos/rings.html
new file mode 100644
index 0000000..a393253
--- /dev/null
+++ b/demos/RonsDemos/rings.html
@@ -0,0 +1,18 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Rings by Philip Winston; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Rings applet
+<br>Originially written by Philip Winston
+<br>Ported to Java by Ron Cemer
+<br>Right-click within the window for a menu of commands.
+<br>
+<applet code="rings.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/rings.java b/demos/RonsDemos/rings.java
new file mode 100644
index 0000000..8a08bb5
--- /dev/null
+++ b/demos/RonsDemos/rings.java
@@ -0,0 +1,406 @@
+/**
+ * @(#) rings.java
+ * @(#) author: Philip Winston (converted to Java by Ron Cemer)
+ */
+
+/*
+ * Homework 4, Part 1: perspective, hierarchical coords, moving eye pos.
+ *
+ * Do a slow zoom on a bunch of rings (ala Superman III?)
+ *
+ * Philip Winston - 2/21/95
+ * http://www.cs.hmc.edu/people/pwinston
+ *
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+public class rings extends SimpleGLAnimApplet1
+{
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new ringsCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Local GLAnimCanvas extension class */
+
+
+ private class ringsCanvas extends GLAnimCanvas
+ implements MouseListener, ActionListener
+ {
+ private final double M_PI = 3.14159265;
+ private final String MENU_STARTOVER = "Start Over";
+ private final String MENU_ZOOM_OUT = "Zoom Out";
+ private final String MENU_START_RINGS = "Start rings";
+ private final String MENU_STOP_RINGS = "Stop rings";
+ private final String MENU_START_FADE = "Start fade";
+ private final String MENU_STOP_FADE = "Stop fade";
+ private final int CONE = 1, TORUS = 2, INNERMAT = 3, OUTTERMAT = 4;
+ private final double STEPS = 30.0;
+
+ private PopupMenu menu = null;
+ private boolean menu_showing = false;
+ private boolean save_suspended = false;
+ private boolean Fade = true; /* Start moving out */
+ private float Axis = 0.0f;
+ private float AxisInc = (float)(2.0 * M_PI / STEPS);
+ private float InnerRad, OutterRad, Tilt, Trans, TransCone, Dist;
+
+ public ringsCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ setAnimateFps(30.0);
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ float sinoftilt;
+ InnerRad = 0.70f;
+ OutterRad = 5.0f;
+ Tilt = 15.0f;
+ Dist = 10.0f;
+ sinoftilt = (float)Math.sin(Tilt * M_PI*2.0/360.0);
+ Trans = (float)
+ ((2.0f*OutterRad + InnerRad) * sinoftilt +
+ InnerRad +
+ ((1 - sinoftilt) * InnerRad) - (InnerRad * 0.1));
+ TransCone = Trans + (OutterRad * sinoftilt + InnerRad);
+ /* I used code from the book's accnot.c as a starting
+ point for lighting. I have one positional light in
+ center, then one directional */
+ float light0_position[] = { 1.0f, 0.2f, 1.0f, 0.0f };
+ float light1_position[] = { 0.0f, 0.0f, 0.0f, 1.0f };
+ float light1_diffuse[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ float light1_specular[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ float lm_ambient[] = { 0.2f, 0.2f, 0.2f, 1.0f };
+
+ gl.glEnable(GL_NORMALIZE);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, light0_position);
+ gl.glLightfv(GL_LIGHT1, GL_POSITION, light1_position);
+ gl.glLightfv(GL_LIGHT1, GL_DIFFUSE, light1_diffuse);
+ gl.glLightfv(GL_LIGHT1, GL_SPECULAR, light1_specular);
+ gl.glLightf(GL_LIGHT1, GL_LINEAR_ATTENUATION, 0.2f);
+ gl.glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lm_ambient);
+
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_LIGHT1);
+
+ gl.glDepthFunc(GL_LESS);
+ gl.glEnable(GL_DEPTH_TEST);
+
+ // Make display lists
+
+ float cone_diffuse[] = { 0.0f, 0.7f, 0.7f, 1.0f };
+ float mat1_ambient[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ float mat2_ambient[] = { 0.0f, 0.0f, 0.0f, 0.0f };
+ float torus1_diffuse[] = { 0.7f, 0.7f, 0.0f, 1.0f };
+ float torus2_diffuse[] = { 0.3f, 0.0f, 0.0f, 1.0f };
+ float mat1_specular[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ float mat2_specular[] = { 0.5f, 0.5f, 0.5f, 1.0f };
+
+ gl.glNewList(INNERMAT, GL_COMPILE);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, mat1_specular);
+ gl.glMaterialf(GL_FRONT, GL_SHININESS, 50.0f);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, torus1_diffuse);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, mat1_ambient);
+ gl.glEndList();
+
+ gl.glNewList(OUTTERMAT, GL_COMPILE);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, mat2_specular);
+ gl.glMaterialf(GL_FRONT, GL_SHININESS, 25.0f);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, torus2_diffuse);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, mat2_ambient);
+ gl.glEndList();
+
+ gl.glNewList(CONE, GL_COMPILE);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, cone_diffuse);
+ gl.glPushMatrix();
+ gl.glTranslatef(0, -TransCone, 0);
+ gl.glRotatef(90, 1, 0, 0);
+ glutSolidCone(OutterRad, 10, 8, 8);
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ gl.glNewList(TORUS, GL_COMPILE);
+ gl.glPushMatrix();
+ gl.glRotatef(90, 1, 0, 0);
+ glutSolidTorus(InnerRad, OutterRad, 15, 25);
+ gl.glPopMatrix();
+ gl.glEndList();
+
+ glj.gljCheckGL();
+
+ menu = new PopupMenu("Options");
+ menu.add(MENU_STARTOVER);
+ menu.add(MENU_ZOOM_OUT);
+ menu.add(MENU_START_RINGS);
+ menu.add(MENU_STOP_RINGS);
+ menu.add(MENU_START_FADE);
+ menu.add(MENU_STOP_FADE);
+ menu.addActionListener(this);
+ add(menu);
+
+ addMouseListener(this);
+ }
+
+ public void doCleanup()
+ {
+ System.out.println("destroy(): " + this);
+ removeMouseListener(this);
+ menu.removeActionListener(this);
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ Axis += AxisInc;
+
+ if ( (Dist < 15.0f) && (Fade) ) /* start slow */
+ Dist += 0.1f;
+ else if ( (Dist < 800.0f) && (Fade) ) /* don't go back too far */
+ Dist *= 1.005f;
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ gl.glFrustum(-1.0f,1.0f,-1.0f,1.0f,10.0f,1000.0f);
+ glu.gluLookAt(0.0f,0.0f,Dist,0.0f,0.0f,0.0f,0.0f,1.0f,0.0f);
+
+ gl.glMatrixMode(GL_MODELVIEW);
+
+ gl.glCallList(INNERMAT);
+ DrawRings(Axis);
+ gl.glCallList(CONE);
+
+ gl.glCallList(OUTTERMAT);
+ gl.glPushMatrix();
+ gl.glScalef(10, 10, 10);
+ DrawRings(Axis/3.0f);
+ gl.glPopMatrix();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+
+ //if (!isSuspended()) repaint(); // Animate at full speed.
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered(MouseEvent evt)
+ {
+ }
+
+ public void mouseExited(MouseEvent evt)
+ {
+ }
+
+ public void mousePressed(MouseEvent evt)
+ {
+ // If user presses right mouse button within canvas area,
+ // suspend animation and pop up menu.
+ // If menu was already popped up and user presses either
+ // mouse button within canvas area, resume animation
+ // because the menu will have been removed automatically.
+ if (!menu_showing)
+ {
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ menu_showing = true;
+ save_suspended = isSuspended();
+ if (!save_suspended)
+ {
+ setSuspended(true);
+ repaint(100);
+ try
+ {
+ Thread.currentThread().sleep(200);
+ }
+ catch (Exception e)
+ { }
+ }
+ menu.show(this,evt.getX(),evt.getY());
+ }
+ }
+ else
+ {
+ menu_showing = false;
+ setSuspended(save_suspended);
+ }
+ }
+
+ public void mouseReleased(MouseEvent evt)
+ {
+ }
+
+ public void mouseClicked(MouseEvent evt)
+ {
+ }
+
+ // Method required for the implementation of ActionListener
+ public void actionPerformed(ActionEvent evt)
+ {
+ String c = evt.getActionCommand();
+ if (c.equals(MENU_STARTOVER))
+ {
+ Dist = 10.0f;
+ Axis = 0.0f;
+ Fade = true;
+ AxisInc = (float)(2.0 * M_PI / STEPS);
+ }
+ else if (c.equals(MENU_ZOOM_OUT))
+ {
+ Dist = 800.0f;
+ }
+ else if (c.equals(MENU_START_RINGS))
+ {
+ AxisInc = (float)(2.0 * M_PI / STEPS);
+ }
+ else if (c.equals(MENU_STOP_RINGS))
+ {
+ AxisInc = 0.0f;
+ }
+ else if (c.equals(MENU_START_FADE))
+ {
+ Fade = true;
+ }
+ else if (c.equals(MENU_STOP_FADE))
+ {
+ Fade = false;
+ }
+ if (menu_showing)
+ {
+ menu_showing = false;
+ setSuspended(save_suspended);
+ }
+ }
+
+ /* Draw three rings, rotated and translate so they look cool */
+ private void DrawRings(float axis)
+ {
+ float x = (float)Math.sin(axis), y = (float)Math.cos(axis);
+ gl.glPushMatrix();
+ gl.glTranslatef(0.0f, Trans, 0.0f);
+ gl.glRotatef(Tilt, x, 0.0f, y);
+ gl.glCallList(TORUS);
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glRotatef(-Tilt, x, 0.0f, y);
+ gl.glCallList(TORUS);
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glTranslatef(0.0f, -Trans, 0.0f);
+ gl.glRotatef(Tilt, x, 0.0f, y);
+ gl.glCallList(TORUS);
+ gl.glPopMatrix();
+ }
+
+ // Imported from glut.
+ private void glutSolidTorus
+ (float innerRadius,
+ float outerRadius,
+ int nsides,
+ int rings)
+ {
+ doughnut(innerRadius, outerRadius, nsides, rings);
+ }
+
+ // Imported from glut.
+ private void glutSolidCone
+ (float base,
+ float height,
+ int slices,
+ int stacks)
+ {
+ int qobj = glu.gluNewQuadric();
+
+ glu.gluQuadricDrawStyle(qobj,GLU_FILL);
+ glu.gluQuadricNormals(qobj,GLU_SMOOTH);
+ glu.gluCylinder(qobj,base,0.0f,height,slices,stacks);
+ glu.gluDeleteQuadric(qobj);
+ }
+
+ // Imported from glut.
+ private void doughnut(float r, float R, int nsides, int rings)
+ {
+ int i, j;
+ float theta, phi, theta1;
+ float cosTheta, sinTheta;
+ float cosTheta1, sinTheta1;
+ float ringDelta, sideDelta;
+
+ ringDelta = 2.0f * (float)M_PI / rings;
+ sideDelta = 2.0f * (float)M_PI / nsides;
+
+ theta = 0.0f;
+ cosTheta = 1.0f;
+ sinTheta = 0.0f;
+ for (i = rings - 1; i >= 0; i--)
+ {
+ theta1 = theta + ringDelta;
+ cosTheta1 = (float)Math.cos(theta1);
+ sinTheta1 = (float)Math.sin(theta1);
+ gl.glBegin(GL_QUAD_STRIP);
+ phi = 0.0f;
+ for (j = nsides; j >= 0; j--)
+ {
+ float cosPhi, sinPhi, dist;
+
+ phi += sideDelta;
+ cosPhi = (float)Math.cos(phi);
+ sinPhi = (float)Math.sin(phi);
+ dist = R + r * cosPhi;
+
+ gl.glNormal3f(cosTheta1 * cosPhi, -sinTheta1 * cosPhi, sinPhi);
+ gl.glVertex3f(cosTheta1 * dist, -sinTheta1 * dist, r * sinPhi);
+ gl.glNormal3f(cosTheta * cosPhi, -sinTheta * cosPhi, sinPhi);
+ gl.glVertex3f(cosTheta * dist, -sinTheta * dist, r * sinPhi);
+ }
+ gl.glEnd();
+ theta = theta1;
+ cosTheta = cosTheta1;
+ sinTheta = sinTheta1;
+ }
+ }
+ }
+}
diff --git a/demos/RonsDemos/rings_plugin13.html b/demos/RonsDemos/rings_plugin13.html
new file mode 100644
index 0000000..48ac24c
--- /dev/null
+++ b/demos/RonsDemos/rings_plugin13.html
@@ -0,0 +1,49 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Rings by Philip Winston; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Rings applet
+<br>Originially written by Philip Winston
+<br>Ported to Java by Ron Cemer
+<br>Right-click within the window for a menu of commands.
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "rings.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "rings.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "rings.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "rings.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/sappletviewer.bat b/demos/RonsDemos/sappletviewer.bat
new file mode 100755
index 0000000..90f7666
--- /dev/null
+++ b/demos/RonsDemos/sappletviewer.bat
@@ -0,0 +1 @@
+appletviewer.exe -J-Djava.security.policy=gl4java.policy %*
diff --git a/demos/RonsDemos/sappletviewer.sh b/demos/RonsDemos/sappletviewer.sh
new file mode 100755
index 0000000..7add0f7
--- /dev/null
+++ b/demos/RonsDemos/sappletviewer.sh
@@ -0,0 +1,3 @@
+#! /bin/sh
+
+appletviewer -J-Djava.security.policy=gl4java.policy $*
diff --git a/demos/RonsDemos/scube.html b/demos/RonsDemos/scube.html
new file mode 100644
index 0000000..b889faf
--- /dev/null
+++ b/demos/RonsDemos/scube.html
@@ -0,0 +1,27 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Scube by David G Yu/Mark J. Kilgard/Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Scube applet
+<br>Originially written by David G Yu/Mark J. Kilgard/Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>Click inside the window, then press any of the following keys:
+<br>L/l: toggle lighting
+<br>S/s: toggle SGI logo on/off
+<br>Q/q: toggle between quads and polygons for drawing
+<br>F/f: toggle fog
+<br>1: linear fog mode
+<br>2: exponential fog mode
+<br>3: exponential squared fog mode
+<br>p/P: toggle motion (pause/resume)
+<br>spacebar: single-step while paused
+<br>
+<applet code="scube.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/scube.java b/demos/RonsDemos/scube.java
new file mode 100644
index 0000000..f06cc4e
--- /dev/null
+++ b/demos/RonsDemos/scube.java
@@ -0,0 +1,590 @@
+/**
+ * @(#) scube.java
+ * @(#) author: David G Yu/Mark J. Kilgard/Silicon Graphics (converted to Java by Ron Cemer)
+ */
+
+/* Copyright (c) Mark J. Kilgard, 1994. */
+
+/**
+ * (c) Copyright 1993, 1994, Silicon Graphics, Inc.
+ * ALL RIGHTS RESERVED
+ * Permission to use, copy, modify, and distribute this software for
+ * any purpose and without fee is hereby granted, provided that the above
+ * copyright notice appear in all copies and that both the copyright notice
+ * and this permission notice appear in supporting documentation, and that
+ * the name of Silicon Graphics, Inc. not be used in advertising
+ * or publicity pertaining to distribution of the software without specific,
+ * written prior permission.
+ *
+ * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
+ * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
+ * GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
+ * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
+ * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
+ * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
+ * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN
+ * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
+ * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * US Government Users Restricted Rights
+ * Use, duplication, or disclosure by the Government is subject to
+ * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
+ * (c)(1)(ii) of the Rights in Technical Data and Computer Software
+ * clause at DFARS 252.227-7013 and/or in similar or successor
+ * clauses in the FAR or the DOD or NASA FAR Supplement.
+ * Unpublished-- rights reserved under the copyright laws of the
+ * United States. Contractor/manufacturer is Silicon Graphics,
+ * Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
+ *
+ * OpenGL(TM) is a trademark of Silicon Graphics, Inc.
+ */
+
+/*
+ * 1992 David G Yu -- Silicon Graphics Computer Systems
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+public class scube extends SimpleGLAnimApplet1
+{
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new scubeCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Local GLAnimCanvas extension class */
+
+
+ private class scubeCanvas extends GLAnimCanvas
+ implements KeyListener, MouseListener
+ {
+ private static final int
+ GREY=0,RED=1,GREEN=2,BLUE=3,CYAN=4,MAGENTA=5,YELLOW=6,BLACK=7;
+
+ private float materialColor[][] =
+ {
+ {0.8f, 0.8f, 0.8f, 1.0f},
+ {0.8f, 0.0f, 0.0f, 1.0f},
+ {0.0f, 0.8f, 0.0f, 1.0f},
+ {0.0f, 0.0f, 0.8f, 1.0f},
+ {0.0f, 0.8f, 0.8f, 1.0f},
+ {0.8f, 0.0f, 0.8f, 1.0f},
+ {0.8f, 0.8f, 0.0f, 1.0f},
+ {0.0f, 0.0f, 0.0f, 0.6f},
+ };
+
+ private float lightPos[] = {2.0f, 4.0f, 2.0f, 1.0f};
+ private float lightAmb[] = {0.2f, 0.2f, 0.2f, 1.0f};
+ private float lightDiff[] = {0.8f, 0.8f, 0.8f, 1.0f};
+ private float lightSpec[] = {0.4f, 0.4f, 0.4f, 1.0f};
+
+ private float groundPlane[] = {0.0f, 1.0f, 0.0f, 1.499f};
+ private float backPlane[] = {0.0f, 0.0f, 1.0f, 0.899f};
+
+ private float fogColor[] = {0.0f, 0.0f, 0.0f, 0.0f};
+ private float fogIndex[] = {0.0f};
+
+ private byte shadowPattern[] =
+ {
+ (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0x55, (byte)0x55, (byte)0x55, (byte)0x55, /* 50% Grey */
+ (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0x55, (byte)0x55, (byte)0x55, (byte)0x55,
+ (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0x55, (byte)0x55, (byte)0x55, (byte)0x55,
+ (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0x55, (byte)0x55, (byte)0x55, (byte)0x55,
+ (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0x55, (byte)0x55, (byte)0x55, (byte)0x55,
+ (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0x55, (byte)0x55, (byte)0x55, (byte)0x55,
+ (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0x55, (byte)0x55, (byte)0x55, (byte)0x55,
+ (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0x55, (byte)0x55, (byte)0x55, (byte)0x55,
+ (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0x55, (byte)0x55, (byte)0x55, (byte)0x55,
+ (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0x55, (byte)0x55, (byte)0x55, (byte)0x55,
+ (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0x55, (byte)0x55, (byte)0x55, (byte)0x55,
+ (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0x55, (byte)0x55, (byte)0x55, (byte)0x55,
+ (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0x55, (byte)0x55, (byte)0x55, (byte)0x55,
+ (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0x55, (byte)0x55, (byte)0x55, (byte)0x55,
+ (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0x55, (byte)0x55, (byte)0x55, (byte)0x55,
+ (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0xaa, (byte)0x55, (byte)0x55, (byte)0x55, (byte)0x55
+ };
+
+ private byte sgiPattern[] =
+ {
+ (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, /* SGI Logo */
+ (byte)0xff, (byte)0xbd, (byte)0xff, (byte)0x83, (byte)0xff, (byte)0x5a, (byte)0xff, (byte)0xef,
+ (byte)0xfe, (byte)0xdb, (byte)0x7f, (byte)0xef, (byte)0xfd, (byte)0xdb, (byte)0xbf, (byte)0xef,
+ (byte)0xfb, (byte)0xdb, (byte)0xdf, (byte)0xef, (byte)0xf7, (byte)0xdb, (byte)0xef, (byte)0xef,
+ (byte)0xfb, (byte)0xdb, (byte)0xdf, (byte)0xef, (byte)0xfd, (byte)0xdb, (byte)0xbf, (byte)0x83,
+ (byte)0xce, (byte)0xdb, (byte)0x73, (byte)0xff, (byte)0xb7, (byte)0x5a, (byte)0xed, (byte)0xff,
+ (byte)0xbb, (byte)0xdb, (byte)0xdd, (byte)0xc7, (byte)0xbd, (byte)0xdb, (byte)0xbd, (byte)0xbb,
+ (byte)0xbe, (byte)0xbd, (byte)0x7d, (byte)0xbb, (byte)0xbf, (byte)0x7e, (byte)0xfd, (byte)0xb3,
+ (byte)0xbe, (byte)0xe7, (byte)0x7d, (byte)0xbf, (byte)0xbd, (byte)0xdb, (byte)0xbd, (byte)0xbf,
+ (byte)0xbb, (byte)0xbd, (byte)0xdd, (byte)0xbb, (byte)0xb7, (byte)0x7e, (byte)0xed, (byte)0xc7,
+ (byte)0xce, (byte)0xdb, (byte)0x73, (byte)0xff, (byte)0xfd, (byte)0xdb, (byte)0xbf, (byte)0xff,
+ (byte)0xfb, (byte)0xdb, (byte)0xdf, (byte)0x87, (byte)0xf7, (byte)0xdb, (byte)0xef, (byte)0xfb,
+ (byte)0xf7, (byte)0xdb, (byte)0xef, (byte)0xfb, (byte)0xfb, (byte)0xdb, (byte)0xdf, (byte)0xfb,
+ (byte)0xfd, (byte)0xdb, (byte)0xbf, (byte)0xc7, (byte)0xfe, (byte)0xdb, (byte)0x7f, (byte)0xbf,
+ (byte)0xff, (byte)0x5a, (byte)0xff, (byte)0xbf, (byte)0xff, (byte)0xbd, (byte)0xff, (byte)0xc3,
+ (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff
+ };
+
+ private float cube_vertexes[][][] =
+ {
+ {
+ {-1.0f, -1.0f, -1.0f, 1.0f},
+ {-1.0f, -1.0f, 1.0f, 1.0f},
+ {-1.0f, 1.0f, 1.0f, 1.0f},
+ {-1.0f, 1.0f, -1.0f, 1.0f}
+ },
+ {
+ {1.0f, 1.0f, 1.0f, 1.0f},
+ {1.0f, -1.0f, 1.0f, 1.0f},
+ {1.0f, -1.0f, -1.0f, 1.0f},
+ {1.0f, 1.0f, -1.0f, 1.0f}
+ },
+ {
+ {-1.0f, -1.0f, -1.0f, 1.0f},
+ {1.0f, -1.0f, -1.0f, 1.0f},
+ {1.0f, -1.0f, 1.0f, 1.0f},
+ {-1.0f, -1.0f, 1.0f, 1.0f}
+ },
+ {
+ {1.0f, 1.0f, 1.0f, 1.0f},
+ {1.0f, 1.0f, -1.0f, 1.0f},
+ {-1.0f, 1.0f, -1.0f, 1.0f},
+ {-1.0f, 1.0f, 1.0f, 1.0f}
+ },
+ {
+ {-1.0f, -1.0f, -1.0f, 1.0f},
+ {-1.0f, 1.0f, -1.0f, 1.0f},
+ {1.0f, 1.0f, -1.0f, 1.0f},
+ {1.0f, -1.0f, -1.0f, 1.0f}
+ },
+ {
+ {1.0f, 1.0f, 1.0f, 1.0f},
+ {-1.0f, 1.0f, 1.0f, 1.0f},
+ {-1.0f, -1.0f, 1.0f, 1.0f},
+ {1.0f, -1.0f, 1.0f, 1.0f}
+ }
+ };
+
+ private float cube_normals[][] =
+ {
+ {-1.0f, 0.0f, 0.0f, 0.0f},
+ {1.0f, 0.0f, 0.0f, 0.0f},
+ {0.0f, -1.0f, 0.0f, 0.0f},
+ {0.0f, 1.0f, 0.0f, 0.0f},
+ {0.0f, 0.0f, -1.0f, 0.0f},
+ {0.0f, 0.0f, 1.0f, 0.0f}
+ };
+
+ private boolean useLighting = true;
+ private boolean useFog = false;
+ private boolean useLogo = false;
+ private boolean useQuads = true;
+ private int tick = -1;
+
+ public scubeCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ setAnimateFps(30.0);
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ /* setup context */
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ gl.glFrustum(-1.0f, 1.0f, -1.0f, 1.0f, 1.0f, 3.0f);
+
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ gl.glTranslatef(0.0f, 0.0f, -2.0f);
+
+ gl.glEnable(GL_DEPTH_TEST);
+
+ if (useLighting) gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, lightPos);
+ gl.glLightfv(GL_LIGHT0, GL_AMBIENT, lightAmb);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, lightDiff);
+ gl.glLightfv(GL_LIGHT0, GL_SPECULAR, lightSpec);
+
+ gl.glEnable(GL_NORMALIZE);
+
+ if (useFog) gl.glEnable(GL_FOG);
+ gl.glFogfv(GL_FOG_COLOR, fogColor);
+ gl.glFogfv(GL_FOG_INDEX, fogIndex);
+ gl.glFogf(GL_FOG_MODE, GL_EXP);
+ gl.glFogf(GL_FOG_DENSITY, 0.5f);
+ gl.glFogf(GL_FOG_START, 1.0f);
+ gl.glFogf(GL_FOG_END, 3.0f);
+
+ gl.glEnable(GL_CULL_FACE);
+ gl.glCullFace(GL_BACK);
+
+ gl.glShadeModel(GL_SMOOTH);
+
+ gl.glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+ if (useLogo)
+ gl.glPolygonStipple(sgiPattern);
+ else
+ gl.glPolygonStipple(shadowPattern);
+
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
+ gl.glClearIndex(0);
+ gl.glClearDepth(1);
+
+ glj.gljCheckGL();
+
+ addKeyListener(this);
+ addMouseListener(this);
+ }
+
+ public void doCleanup()
+ {
+ System.out.println("destroy(): " + this);
+ removeKeyListener(this);
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+
+// Put any custom reshape code here.
+
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ if (!isSuspended()) inctick();
+
+ float cubeXform[] = new float[16];
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ gl.glPushMatrix();
+ gl.glTranslatef(0.0f, -1.5f, 0.0f);
+ gl.glRotatef(-90.0f, 1f, 0f, 0f);
+ gl.glScalef(2.0f, 2.0f, 2.0f);
+
+ drawCheck(6, 6, BLUE, YELLOW); /* draw ground */
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glTranslatef(0.0f, 0.0f, -0.9f);
+ gl.glScalef(2.0f, 2.0f, 2.0f);
+
+ drawCheck(6, 6, BLUE, YELLOW); /* draw back */
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glTranslatef(0.0f, 0.2f, 0.0f);
+ gl.glScalef(0.3f, 0.3f, 0.3f);
+ gl.glRotatef((360.0f / (30 * 1)) * tick, 1f, 0f, 0f);
+ gl.glRotatef((360.0f / (30 * 2)) * tick, 0f, 1f, 0f);
+ gl.glRotatef((360.0f / (30 * 4)) * tick, 0f, 0f, 1f);
+ gl.glScalef(1.0f, 2.0f, 1.0f);
+ gl.glGetFloatv(GL_MODELVIEW_MATRIX, cubeXform);
+
+ drawCube(RED); /* draw cube */
+ gl.glPopMatrix();
+
+ gl.glDepthMask(false);
+ gl.glEnable(GL_POLYGON_STIPPLE);
+ if (useFog) gl.glDisable(GL_FOG);
+ gl.glPushMatrix();
+ myShadowMatrix(groundPlane, lightPos);
+ gl.glTranslatef(0.0f, 0.0f, 2.0f);
+ gl.glMultMatrixf(cubeXform);
+
+ drawCube(BLACK); /* draw ground shadow */
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ myShadowMatrix(backPlane, lightPos);
+ gl.glTranslatef(0.0f, 0.0f, 2.0f);
+ gl.glMultMatrixf(cubeXform);
+
+ drawCube(BLACK); /* draw back shadow */
+ gl.glPopMatrix();
+
+ gl.glDepthMask(true);
+ gl.glDisable(GL_POLYGON_STIPPLE);
+ if (useFog) gl.glEnable(GL_FOG);
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+
+ //if (!isSuspended()) repaint(); // Animate at full speed.
+ }
+
+ // Methods required for the implementation of KeyListener
+ public void keyPressed(KeyEvent e)
+ {
+ }
+
+ public void keyReleased(KeyEvent e)
+ {
+ }
+
+ public void keyTyped(KeyEvent e)
+ {
+ if (glj.gljMakeCurrent() == false) return;
+ boolean dorepaint = false;
+ switch ((char)e.getKeyChar())
+ {
+ case 'L':
+ case 'l':
+ useLighting = !useLighting;
+ if (useLighting)
+ gl.glEnable(GL_LIGHTING);
+ else
+ gl.glDisable(GL_LIGHTING);
+ dorepaint = isSuspended();
+ break;
+ case 'S':
+ case 's':
+ useLogo = !useLogo;
+ if (useLogo)
+ gl.glPolygonStipple(sgiPattern);
+ else
+ gl.glPolygonStipple(shadowPattern);
+ dorepaint = isSuspended();
+ break;
+ case 'Q':
+ case 'q':
+ useQuads = !useQuads;
+ dorepaint = isSuspended();
+ break;
+ case 'F':
+ case 'f':
+ useFog = !useFog;
+ if (useFog)
+ gl.glEnable(GL_FOG);
+ else
+ gl.glDisable(GL_FOG);
+ dorepaint = isSuspended();
+ break;
+ case '1':
+ gl.glFogf(GL_FOG_MODE, GL_LINEAR);
+ dorepaint = isSuspended();
+ break;
+ case '2':
+ gl.glFogf(GL_FOG_MODE, GL_EXP);
+ dorepaint = isSuspended();
+ break;
+ case '3':
+ gl.glFogf(GL_FOG_MODE, GL_EXP2);
+ dorepaint = isSuspended();
+ break;
+ case 'P':
+ case 'p':
+ setSuspended(!isSuspended());
+ break;
+ case ' ':
+ if (isSuspended())
+ {
+ inctick();
+ dorepaint = true;
+ }
+ break;
+ }
+ glj.gljFree();
+ if (dorepaint) repaint();
+ }
+
+ private void inctick()
+ {
+ tick++;
+ if (tick >= 120) tick = 0;
+ }
+
+ private void setColor(int c)
+ {
+ if (useLighting)
+ gl.glMaterialfv
+ (GL_FRONT_AND_BACK,
+ GL_AMBIENT_AND_DIFFUSE,
+ materialColor[c]);
+ else
+ gl.glColor4fv(materialColor[c]);
+ }
+
+ private void drawCube(int color)
+ {
+ setColor(color);
+
+ for (int i = 0; i < 6; ++i)
+ {
+ gl.glNormal3fv(cube_normals[i]);
+ gl.glBegin(GL_POLYGON);
+ gl.glVertex4fv(cube_vertexes[i][0]);
+ gl.glVertex4fv(cube_vertexes[i][1]);
+ gl.glVertex4fv(cube_vertexes[i][2]);
+ gl.glVertex4fv(cube_vertexes[i][3]);
+ gl.glEnd();
+ }
+ }
+
+ private boolean check_initialized = false;
+ private boolean check_usedLighting = false;
+ private boolean check_usedQuads = false;
+ private int checklist = 0;
+
+ private void drawCheck(int w, int h, int evenColor, int oddColor)
+ {
+ if ( (!check_initialized)
+ || (check_usedLighting != useLighting)
+ || (check_usedQuads != useQuads) )
+ {
+ float square_normal[] = {0.0f, 0.0f, 1.0f, 0.0f};
+ float square[][] = new float[4][4];
+ int i, j;
+
+ if (checklist == 0) checklist = gl.glGenLists(1);
+ gl.glNewList(checklist, GL_COMPILE_AND_EXECUTE);
+ if (useQuads)
+ {
+ gl.glNormal3fv(square_normal);
+ gl.glBegin(GL_QUADS);
+ }
+ for (j = 0; j < h; ++j)
+ {
+ for (i = 0; i < w; ++i)
+ {
+ square[0][0] = -1.0f + 2.0f / w * i;
+ square[0][1] = -1.0f + 2.0f / h * (j + 1);
+ square[0][2] = 0.0f;
+ square[0][3] = 1.0f;
+
+ square[1][0] = -1.0f + 2.0f / w * i;
+ square[1][1] = -1.0f + 2.0f / h * j;
+ square[1][2] = 0.0f;
+ square[1][3] = 1.0f;
+
+ square[2][0] = -1.0f + 2.0f / w * (i + 1);
+ square[2][1] = -1.0f + 2.0f / h * j;
+ square[2][2] = 0.0f;
+ square[2][3] = 1.0f;
+
+ square[3][0] = -1.0f + 2.0f / w * (i + 1);
+ square[3][1] = -1.0f + 2.0f / h * (j + 1);
+ square[3][2] = 0.0f;
+ square[3][3] = 1.0f;
+
+ if ( ((i & 1) != 0) ^ ((j & 1) != 0) )
+ setColor(oddColor);
+ else
+ setColor(evenColor);
+
+ if (!useQuads)gl.glBegin(GL_POLYGON);
+ gl.glVertex4fv(square[0]);
+ gl.glVertex4fv(square[1]);
+ gl.glVertex4fv(square[2]);
+ gl.glVertex4fv(square[3]);
+ if (!useQuads) gl.glEnd();
+ }
+ }
+
+ if (useQuads) gl.glEnd();
+ gl.glEndList();
+
+ check_initialized = true;
+ check_usedLighting = useLighting;
+ check_usedQuads = useQuads;
+ }
+ else
+ gl.glCallList(checklist);
+ }
+
+ private void myShadowMatrix(float ground[], float light[])
+ {
+ float dot;
+ float shadowMat[] = new float[4*4];
+
+ dot =
+ ground[0] * light[0] +
+ ground[1] * light[1] +
+ ground[2] * light[2] +
+ ground[3] * light[3];
+
+ shadowMat[0] = dot - light[0] * ground[0];
+ shadowMat[4] = -light[0] * ground[1];
+ shadowMat[8] = -light[0] * ground[2];
+ shadowMat[12] = -light[0] * ground[3];
+
+ shadowMat[1] = -light[1] * ground[0];
+ shadowMat[5] = dot - light[1] * ground[1];
+ shadowMat[9] = -light[1] * ground[2];
+ shadowMat[13] = -light[1] * ground[3];
+
+ shadowMat[2] = -light[2] * ground[0];
+ shadowMat[6] = -light[2] * ground[1];
+ shadowMat[10] = dot - light[2] * ground[2];
+ shadowMat[14] = -light[2] * ground[3];
+
+ shadowMat[3] = -light[3] * ground[0];
+ shadowMat[7] = -light[3] * ground[1];
+ shadowMat[11] = -light[3] * ground[2];
+ shadowMat[15] = dot - light[3] * ground[3];
+
+ gl.glMultMatrixf(shadowMat);
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ public void mouseExited( MouseEvent evt )
+ { }
+ public void mousePressed( MouseEvent evt )
+ { }
+ public void mouseReleased( MouseEvent evt )
+ { }
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+ }
+}
diff --git a/demos/RonsDemos/scube_plugin13.html b/demos/RonsDemos/scube_plugin13.html
new file mode 100644
index 0000000..660f48f
--- /dev/null
+++ b/demos/RonsDemos/scube_plugin13.html
@@ -0,0 +1,58 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Scube by David G Yu/Mark J. Kilgard/Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Scube applet
+<br>Originially written by David G Yu/Mark J. Kilgard/Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>Click inside the window, then press any of the following keys:
+<br>L/l: toggle lighting
+<br>S/s: toggle SGI logo on/off
+<br>Q/q: toggle between quads and polygons for drawing
+<br>F/f: toggle fog
+<br>1: linear fog mode
+<br>2: exponential fog mode
+<br>3: exponential squared fog mode
+<br>p/P: toggle motion (pause/resume)
+<br>spacebar: single-step while paused
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "scube.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "scube.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "scube.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "scube.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/shadowvol.html b/demos/RonsDemos/shadowvol.html
new file mode 100644
index 0000000..e709826
--- /dev/null
+++ b/demos/RonsDemos/shadowvol.html
@@ -0,0 +1,18 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Shadowvol by Tom McReynolds, SGI; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Shadowvol applet
+<br>Originially written by Tom McReynolds, SGI
+<br>Ported to Java by Ron Cemer
+<br>Click inside the window to cycle the shadow and lighting mode.
+<br>
+<applet code="shadowvol.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/shadowvol.java b/demos/RonsDemos/shadowvol.java
new file mode 100644
index 0000000..f40f20b
--- /dev/null
+++ b/demos/RonsDemos/shadowvol.java
@@ -0,0 +1,458 @@
+/**
+ * @(#) shadowvol.java
+ * @(#) author: Tom McReynolds, SGI (converted to Java by Ron Cemer)
+ */
+
+/* Shadows: Shadow maps */
+/* Demonstrate shadow volumes */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+
+public class shadowvol extends Applet
+{
+ private static final int SPHERE = 1, CONE = 2, LIGHT = 3, SHADOWVOL = 4;
+ private static final int X = 0, Y = 1, Z = 2;
+ private static final int NONE = 0, NOLIGHT = 1, VOLUME = 2, SHADOW = 3;
+ private static final int TEXDIM = 256;
+
+ shadowvolCanvas canvas = null;
+
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new shadowvolCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Start the applet */
+
+
+ public void start()
+ {
+ }
+
+
+ /* Stop the applet */
+
+
+ public void stop()
+ {
+ }
+
+
+ /* Destroy the applet */
+
+
+ public void destroy()
+ {
+ canvas.cvsDispose();
+ }
+
+ private class ShadObj
+ {
+ float[] vertices;
+ float[] normal;
+ int n;
+ }
+
+
+ /* Local GLCanvas extension class */
+
+
+ private class shadowvolCanvas extends GLCanvas implements MouseListener
+ {
+ private float shadVerts[] =
+ {
+ 30.0f, 30.0f, -350.0f,
+ 60.0f, 20.0f, -340.0f,
+ 40.0f, 40.0f, -400.0f
+ };
+ private float shadNormal[] =
+ {
+ 1.0f, 10.f, 1.0f
+ };
+ private float leftwallshadow[] = new float[16];
+ private float floorshadow[] = new float[16];
+ private float lightpos[] = { 50.0f, 50.0f, -340.0f, 1.0f };
+ private ShadObj shadower = new ShadObj();
+ private int rendermode = SHADOW;
+
+ public shadowvolCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ stencilBits = 3;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ byte tex[];
+ int sphere, cone, base;
+ float sphere_mat[] = {1.0f, 0.5f, 0.0f, 1.0f};
+ float cone_mat[] = {0.0f, 0.5f, 1.0f, 1.0f};
+
+ /* turn on features */
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_CULL_FACE);
+
+ /* place light 0 in the right place */
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, lightpos);
+
+ /* remove back faces to speed things up */
+ gl.glCullFace(GL_BACK);
+
+ gl.glTexParameteri
+ (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
+
+ /* make display lists for sphere and cone; for efficiency */
+
+ gl.glNewList(SPHERE, GL_COMPILE);
+ sphere = glu.gluNewQuadric();
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, sphere_mat);
+ glu.gluSphere(sphere, 20.0f, 20, 20);
+ glu.gluDeleteQuadric(sphere);
+ gl.glEndList();
+
+ gl.glNewList(CONE, GL_COMPILE);
+ cone = glu.gluNewQuadric();
+ base = glu.gluNewQuadric();
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, cone_mat);
+ gl.glRotatef(-90.0f, 1.0f, 0.0f, 0.0f);
+ glu.gluDisk(base, 0., 20., 20, 1);
+ glu.gluCylinder(cone, 20., 0., 60., 20, 20);
+ glu.gluDeleteQuadric(cone);
+ glu.gluDeleteQuadric(base);
+ gl.glEndList();
+
+ gl.glNewList(LIGHT, GL_COMPILE);
+ sphere = glu.gluNewQuadric();
+ gl.glPushMatrix();
+ gl.glTranslatef(lightpos[X], lightpos[Y], lightpos[Z]);
+ gl.glDisable(GL_LIGHTING);
+ gl.glColor3f(0.9f, 0.9f, 0.6f);
+ glu.gluSphere(sphere, 5.0f, 20, 20);
+ gl.glEnable(GL_LIGHTING);
+ gl.glPopMatrix();
+ glu.gluDeleteQuadric(sphere);
+ gl.glEndList();
+
+ /* load pattern for current 2d texture */
+ tex = make_texture(TEXDIM, TEXDIM);
+ gl.glTexImage2D
+ (GL_TEXTURE_2D,
+ 0,
+ 1,
+ TEXDIM,
+ TEXDIM,
+ 0,
+ GL_RED,
+ GL_UNSIGNED_BYTE,
+ tex);
+ tex = null;
+
+ shadower.vertices = shadVerts;
+ shadower.normal = shadNormal;
+ shadower.n = shadVerts.length/3;
+
+ makeShadowVolume(shadower, lightpos, 10.f, SHADOWVOL);
+
+ glj.gljCheckGL();
+
+ addMouseListener(this);
+ }
+
+ public void cvsDispose()
+ {
+ System.out.println("destroy(): " + this);
+ removeMouseListener(this);
+ super.cvsDispose();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ /* draw a perspective scene */
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glFrustum(-100.0f, 100.0f, -100.0f, 100.0f, 320.0f, 640.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+
+
+
+ gl.glClear
+ (GL_COLOR_BUFFER_BIT |
+ GL_DEPTH_BUFFER_BIT |
+ GL_STENCIL_BUFFER_BIT);
+ switch (rendermode)
+ {
+ case NONE:
+ render(shadower);
+ break;
+ case NOLIGHT:
+ gl.glDisable(GL_LIGHT0);
+ render(shadower);
+ gl.glEnable(GL_LIGHT0);
+ break;
+ case VOLUME:
+ render(shadower);
+ gl.glCallList(SHADOWVOL);
+ break;
+ case SHADOW:
+ gl.glColorMask(false, false, false, false);
+ render(shadower); /* render scene in depth buffer */
+ gl.glEnable(GL_STENCIL_TEST);
+ gl.glDepthMask(false);
+ gl.glStencilFunc(GL_ALWAYS, 0, 0);
+ gl.glStencilOp(GL_KEEP, GL_KEEP, GL_INCR);
+ gl.glCullFace(GL_BACK); /* increment using front face of shadow volume */
+ gl.glCallList(SHADOWVOL);
+ gl.glStencilOp(GL_KEEP, GL_KEEP, GL_DECR);
+ gl.glCullFace(GL_FRONT); /* increment using front face of shadow volume */
+ gl.glCallList(SHADOWVOL);
+ gl.glDepthMask(true);
+ gl.glColorMask(true, true, true, true);
+ gl.glCullFace(GL_BACK);
+ gl.glDepthFunc(GL_LEQUAL);
+ gl.glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP);
+ gl.glStencilFunc(GL_EQUAL, 1, 1); /* draw shadowed part */
+ gl.glDisable(GL_LIGHT0);
+ render(shadower);
+ gl.glStencilFunc(GL_EQUAL, 0, 1); /* draw lit part */
+ gl.glEnable(GL_LIGHT0);
+ render(shadower);
+ gl.glDepthFunc(GL_LESS);
+ gl.glDisable(GL_STENCIL_TEST);
+ break;
+ }
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ rendermode++;
+ if (rendermode > SHADOW) rendermode = NONE;
+ repaint();
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ }
+
+ private byte[] make_texture(int maxs, int maxt)
+ {
+ byte texture[] = new byte[maxs*maxt];
+ for (int t = 0; t < maxt; t++)
+ {
+ for (int s = 0; s < maxs; s++)
+ {
+ texture[s + maxs * t] =
+ ( (((s >> 4) & 0x1) != 0) ^ (((t >> 4) & 0x1) != 0) ) ?
+ (byte)0xff :
+ (byte)0;
+ }
+ }
+ return texture;
+ }
+
+ /* simple way to extend a point to build shadow volume */
+ private void extend(float newvertex[], float light[], float vertex[], float t)
+ {
+ float delta[] = new float[3];
+
+ delta[X] = vertex[X] - light[X];
+ delta[Y] = vertex[Y] - light[Y];
+ delta[Z] = vertex[Z] - light[Z];
+
+ newvertex[X] = light[X] + delta[X] * t;
+ newvertex[Y] = light[Y] + delta[Y] * t;
+ newvertex[Z] = light[Z] + delta[Z] * t;
+ }
+
+ /* Create a shadow volume in a display list */
+ /* XXX light should have 4 compoents */
+ void makeShadowVolume(ShadObj shadower, float light[], float t, int dlist)
+ {
+ float v[] = new float[3], newv[] = new float[3];
+ int j;
+
+ gl.glNewList(dlist, GL_COMPILE);
+ gl.glDisable(GL_LIGHTING);
+ gl.glBegin(GL_QUADS);
+ /* for debugging */
+ gl.glColor3f(0.2f, 0.8f, 0.4f);
+ for (int i = 0; i < shadower.n; i++)
+ {
+ j = ((i + 1) % shadower.n);
+ v[0] = shadower.vertices[i * 3];
+ v[1] = shadower.vertices[(i * 3) + 1];
+ v[2] = shadower.vertices[(i * 3) + 2];
+ gl.glVertex3fv(v);
+ extend(newv, light, v, t);
+ gl.glVertex3fv(newv);
+ v[0] = shadower.vertices[j * 3];
+ v[1] = shadower.vertices[(j * 3) + 1];
+ v[2] = shadower.vertices[(j * 3) + 2];
+ extend(newv, light, v, t);
+ gl.glVertex3fv(newv);
+ gl.glVertex3fv(v);
+ }
+ gl.glEnd();
+ gl.glEnable(GL_LIGHTING);
+ gl.glEndList();
+ }
+
+ private void sphere()
+ {
+ gl.glPushMatrix();
+ gl.glTranslatef(60.0f, -50.0f, -360.0f);
+ gl.glCallList(SPHERE);
+ gl.glPopMatrix();
+ }
+
+ private void cone()
+ {
+ gl.glPushMatrix();
+ gl.glTranslatef(-40.0f, -40.0f, -400.0f);
+ gl.glCallList(CONE);
+ gl.glPopMatrix();
+ }
+
+ /* render while jittering the shadows */
+ private void render(ShadObj obj)
+ {
+ float shad_mat[] = {10.f, 0.1f, 0.1f, 1.0f};
+ float v[] = new float[3];
+ /* material properties for objects in scene */
+ float wall_mat[] = {1.0f, 1.0f, 1.0f, 1.0f};
+ /* Note: wall vertices are ordered so they are all
+ front facing this lets me do back face culling to
+ speed things up. */
+
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, wall_mat);
+
+ /* floor */
+ /* make the floor textured */
+ gl.glEnable(GL_TEXTURE_2D);
+
+ /* Since we want to turn texturing on for floor only, we have
+ to make floor a separate glBegin()/glEnd() sequence. You
+ can't turn texturing on and off between begin and end calls */
+ gl.glBegin(GL_QUADS);
+ gl.glNormal3f(0.0f, 1.0f, 0.0f);
+ gl.glTexCoord2i(0, 0);
+ gl.glVertex3f(-100.0f, -100.0f, -320.0f);
+ gl.glTexCoord2i(1, 0);
+ gl.glVertex3f(100.0f, -100.0f, -320.0f);
+ gl.glTexCoord2i(1, 1);
+ gl.glVertex3f(100.0f, -100.0f, -520.0f);
+ gl.glTexCoord2i(0, 1);
+ gl.glVertex3f(-100.0f, -100.0f, -520.0f);
+ gl.glEnd();
+
+ gl.glDisable(GL_TEXTURE_2D);
+
+ /* walls */
+
+ gl.glBegin(GL_QUADS);
+ /* left wall */
+ gl.glNormal3f(1.0f, 0.0f, 0.0f);
+ gl.glVertex3f(-100.0f, -100.0f, -320.0f);
+ gl.glVertex3f(-100.0f, -100.0f, -520.0f);
+ gl.glVertex3f(-100.0f, 100.0f, -520.0f);
+ gl.glVertex3f(-100.0f, 100.0f, -320.0f);
+
+ /* right wall */
+ gl.glNormal3f(-1.0f, 0.0f, 0.0f);
+ gl.glVertex3f(100.0f, -100.0f, -320.0f);
+ gl.glVertex3f(100.0f, 100.0f, -320.0f);
+ gl.glVertex3f(100.0f, 100.0f, -520.0f);
+ gl.glVertex3f(100.0f, -100.0f, -520.0f);
+
+ /* ceiling */
+ gl.glNormal3f(0.0f, -1.0f, 0.0f);
+ gl.glVertex3f(-100.0f, 100.0f, -320.0f);
+ gl.glVertex3f(-100.0f, 100.0f, -520.0f);
+ gl.glVertex3f(100.0f, 100.0f, -520.0f);
+ gl.glVertex3f(100.0f, 100.0f, -320.0f);
+
+ /* back wall */
+ gl.glNormal3f(0.0f, 0.0f, 1.0f);
+ gl.glVertex3f(-100.0f, -100.0f, -520.0f);
+ gl.glVertex3f(100.0f, -100.0f, -520.0f);
+ gl.glVertex3f(100.0f, 100.0f, -520.0f);
+ gl.glVertex3f(-100.0f, 100.0f, -520.0f);
+
+ gl.glEnd();
+
+ cone();
+
+ sphere();
+
+ gl.glCallList(LIGHT);
+
+ /* draw shadowing object */
+ gl.glMaterialfv
+ (GL_FRONT_AND_BACK,
+ GL_AMBIENT_AND_DIFFUSE,
+ shad_mat);
+ gl.glBegin(GL_POLYGON);
+ gl.glNormal3fv(obj.normal);
+ for (int i = 0; i < obj.n; i++)
+ {
+ int j = i * 3;
+ v[0] = obj.vertices[j];
+ v[1] = obj.vertices[j+1];
+ v[2] = obj.vertices[j+2];
+ gl.glVertex3fv(v);
+ }
+ gl.glEnd();
+ }
+ }
+}
diff --git a/demos/RonsDemos/shadowvol_plugin13.html b/demos/RonsDemos/shadowvol_plugin13.html
new file mode 100644
index 0000000..ed62530
--- /dev/null
+++ b/demos/RonsDemos/shadowvol_plugin13.html
@@ -0,0 +1,49 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Shadowvol by Tom McReynolds, SGI; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Shadowvol applet
+<br>Originially written by Tom McReynolds, SGI
+<br>Ported to Java by Ron Cemer
+<br>Click inside the window to cycle the shadow and lighting mode.
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "shadowvol.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "shadowvol.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "shadowvol.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "shadowvol.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/softshadow.html b/demos/RonsDemos/softshadow.html
new file mode 100644
index 0000000..be13230
--- /dev/null
+++ b/demos/RonsDemos/softshadow.html
@@ -0,0 +1,19 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Softshadow by Tom McReynolds, SGI; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Softshadow applet
+<br>Originially written by Tom McReynolds, SGI
+<br>Ported to Java by Ron Cemer
+<br>Click inside the window to enable/disable shadows.
+<br>NOTE: WHEN SHADOWS ARE ENABLED, IT MAY TAKE A FEW SECONDS TO DRAW THE SCENE.
+<br>
+<applet code="softshadow.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/softshadow.java b/demos/RonsDemos/softshadow.java
new file mode 100644
index 0000000..0d9e8ef
--- /dev/null
+++ b/demos/RonsDemos/softshadow.java
@@ -0,0 +1,528 @@
+/**
+ * @(#) softshadow.java
+ * @(#) author: Tom McReynolds, SGI (converted to Java by Ron Cemer)
+ */
+
+/* Using the accumulation buffer for soft shadows. */
+/* Demonstrate the use of accumulation buffer to create soft shadows */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+
+public class softshadow extends Applet
+{
+ private static final int SPHERE=1, CONE=2, LIGHT=3, LEFTWALL=4, FLOOR=5;
+ private static final int X = 0, Y = 1, Z = 2;
+ private static final int A = 0, B = 1, C = 2, D = 3;
+ private static final int NONE = 0, SHADOW = 1;
+ private static final int TEXDIM = 256;
+
+ softshadowCanvas canvas = null;
+
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new softshadowCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Start the applet */
+
+
+ public void start()
+ {
+ }
+
+
+ /* Stop the applet */
+
+
+ public void stop()
+ {
+ }
+
+
+ /* Destroy the applet */
+
+
+ private class ShadObj
+ {
+ float[] vertices;
+ float[] normal;
+ int n;
+ }
+
+
+ /* Local GLCanvas extension class */
+
+
+ private class softshadowCanvas extends GLCanvas implements MouseListener
+ {
+ private float leftwallshadow[] = new float[16];
+ private float floorshadow[] = new float[16];
+ private float lightpos[] = { 50.0f, 50.0f, -320.0f, 1.0f };
+ private int rendermode = SHADOW;
+
+ public softshadowCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ stencilBits = 3;
+ accumSize = 8;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ /* turn on features */
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+
+ /* make shadow matricies */
+
+ float v0[] = new float[3];
+ float v1[] = new float[3];
+ float v2[] = new float[3];
+
+ /* 3 points on floor */
+ v0[X] = -100.0f;
+ v0[Y] = -100.0f;
+ v0[Z] = -320.0f;
+ v1[X] = 100.0f;
+ v1[Y] = -100.0f;
+ v1[Z] = -320.0f;
+ v2[X] = 100.0f;
+ v2[Y] = -100.0f;
+ v2[Z] = -520.0f;
+
+ float plane[] = new float[4];
+ findplane(plane, v0, v1, v2);
+ shadowmatrix(floorshadow, plane, lightpos);
+
+ /* 3 points on left wall */
+ v0[X] = -100.0f;
+ v0[Y] = -100.0f;
+ v0[Z] = -320.0f;
+ v1[X] = -100.0f;
+ v1[Y] = -100.0f;
+ v1[Z] = -520.0f;
+ v2[X] = -100.0f;
+ v2[Y] = 100.0f;
+ v2[Z] = -520.0f;
+
+ findplane(plane, v0, v1, v2);
+ shadowmatrix(leftwallshadow, plane, lightpos);
+
+ /* place light 0 in the right place */
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, lightpos);
+
+ /* remove back faces to speed things up */
+ gl.glCullFace(GL_BACK);
+
+ gl.glTexParameteri
+ (GL_TEXTURE_2D,
+ GL_TEXTURE_MIN_FILTER,
+ GL_NEAREST);
+
+ /* make display lists for sphere and cone; for efficiency */
+
+ int sphere, cone, base;
+
+ gl.glNewList(SPHERE, GL_COMPILE);
+ sphere = glu.gluNewQuadric();
+ glu.gluSphere(sphere, 20.f, 20, 20);
+ glu.gluDeleteQuadric(sphere);
+ gl.glEndList();
+
+ gl.glNewList(LIGHT, GL_COMPILE);
+ sphere = glu.gluNewQuadric();
+ glu.gluSphere(sphere, 5.f, 20, 20);
+ glu.gluDeleteQuadric(sphere);
+ gl.glEndList();
+
+ gl.glNewList(CONE, GL_COMPILE);
+ cone = glu.gluNewQuadric();
+ base = glu.gluNewQuadric();
+ gl.glRotatef(-90.f, 1.f, 0.f, 0.f);
+ glu.gluDisk(base, 0., 20., 20, 1);
+ glu.gluCylinder(cone, 20., 0., 60., 20, 20);
+ glu.gluDeleteQuadric(cone);
+ glu.gluDeleteQuadric(base);
+ gl.glEndList();
+
+ gl.glNewList(FLOOR, GL_COMPILE);
+ gl.glEndList();
+
+ gl.glNewList(LEFTWALL, GL_COMPILE);
+ gl.glEndList();
+
+ byte tex[] = make_texture(TEXDIM, TEXDIM);
+ gl.glTexImage2D
+ (GL_TEXTURE_2D,
+ 0,
+ 1,
+ TEXDIM,
+ TEXDIM,
+ 0,
+ GL_RED,
+ GL_UNSIGNED_BYTE,
+ tex);
+ tex = null;
+
+ glj.gljCheckGL();
+
+ addMouseListener(this);
+ }
+
+ public void cvsDispose()
+ {
+ System.out.println("destroy(): " + this);
+ removeMouseListener(this);
+ super.cvsDispose();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ /* draw a perspective scene */
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glFrustum(-100.0f, 100.0f, -100.0f, 100.0f, 320.0f, 640.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+
+ int dx, dy, dz;
+
+ dy = 0;
+ /* jitter the light around */
+ if (rendermode == SHADOW)
+ {
+ gl.glClear(GL_ACCUM_BUFFER_BIT);
+ for (dz = -4; dz < 5; dz += 2)
+ {
+ for (dx = -4; dx < 5; dx += 2)
+ {
+ render((float)dx, (float)dy, (float)dz);
+ gl.glAccum(GL_ACCUM, 1.0f / 25.0f);
+ }
+ }
+ gl.glAccum(GL_RETURN, 1.0f);
+ }
+ else
+ render(0.0f, 0.0f, 0.0f);
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ rendermode++;
+ if (rendermode > SHADOW) rendermode = NONE;
+ repaint();
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ }
+
+ private byte[] make_texture(int maxs, int maxt)
+ {
+ byte texture[] = new byte[maxs*maxt];
+ for (int t = 0; t < maxt; t++)
+ {
+ for (int s = 0; s < maxs; s++)
+ {
+ texture[s + maxs * t] =
+ ( (((s >> 4) & 0x1) != 0) ^ (((t >> 4) & 0x1) != 0) ) ?
+ (byte)0xff :
+ (byte)0;
+ }
+ }
+ return texture;
+ }
+
+ /* create a matrix that will project the desired shadow */
+ void shadowmatrix(float shadowMat[], float groundplane[], float lightpos[])
+ {
+ float dot;
+
+ /* find dot product between light position vector
+ and ground plane normal */
+ dot =
+ groundplane[0] * lightpos[0] +
+ groundplane[1] * lightpos[1] +
+ groundplane[2] * lightpos[2] +
+ groundplane[3] * lightpos[3];
+
+ shadowMat[0] = dot - lightpos[0] * groundplane[0];
+ shadowMat[4] = -lightpos[0] * groundplane[1];
+ shadowMat[8] = -lightpos[0] * groundplane[2];
+ shadowMat[12] = -lightpos[0] * groundplane[3];
+
+ shadowMat[1] = -lightpos[1] * groundplane[0];
+ shadowMat[5] = dot - lightpos[1] * groundplane[1];
+ shadowMat[9] = -lightpos[1] * groundplane[2];
+ shadowMat[13] = -lightpos[1] * groundplane[3];
+
+ shadowMat[2] = -lightpos[2] * groundplane[0];
+ shadowMat[6] = -lightpos[2] * groundplane[1];
+ shadowMat[10] = dot - lightpos[2] * groundplane[2];
+ shadowMat[14] = -lightpos[2] * groundplane[3];
+
+ shadowMat[3] = -lightpos[3] * groundplane[0];
+ shadowMat[7] = -lightpos[3] * groundplane[1];
+ shadowMat[11] = -lightpos[3] * groundplane[2];
+ shadowMat[15] = dot - lightpos[3] * groundplane[3];
+ }
+
+ /* find the plane equation given 3 points */
+ void findplane(float plane[], float v0[], float v1[], float v2[])
+ {
+ float vec0[] = new float[3], vec1[] = new float[3];
+
+ /* need 2 vectors to find cross product */
+ vec0[X] = v1[X] - v0[X];
+ vec0[Y] = v1[Y] - v0[Y];
+ vec0[Z] = v1[Z] - v0[Z];
+
+ vec1[X] = v2[X] - v0[X];
+ vec1[Y] = v2[Y] - v0[Y];
+ vec1[Z] = v2[Z] - v0[Z];
+
+ /* find cross product to get A, B, and C of plane equation */
+ plane[A] = vec0[Y] * vec1[Z] - vec0[Z] * vec1[Y];
+ plane[B] = -(vec0[X] * vec1[Z] - vec0[Z] * vec1[X]);
+ plane[C] = vec0[X] * vec1[Y] - vec0[Y] * vec1[X];
+ plane[D] = -(plane[A]*v0[X] + plane[B]*v0[Y] + plane[C]*v0[Z]);
+ }
+
+ private void sphere()
+ {
+ gl.glPushMatrix();
+ gl.glTranslatef(60.0f, -50.0f, -360.0f);
+ gl.glCallList(SPHERE);
+ gl.glPopMatrix();
+ }
+
+ private void cone()
+ {
+ gl.glPushMatrix();
+ gl.glTranslatef(-40.0f, -40.0f, -400.0f);
+ gl.glCallList(CONE);
+ gl.glPopMatrix();
+ }
+
+ /* render while jittering the shadows */
+ private void render(float dx, float dy, float dz)
+ {
+ float v[] = new float[3];
+ /* material properties for objects in scene */
+ float wall_mat[] = {1.0f, 1.0f, 1.0f, 1.0f};
+ float sphere_mat[] = {1.0f, 0.5f, 0.0f, 1.0f};
+ float cone_mat[] = {0.0f, 0.5f, 1.0f, 1.0f};
+
+ gl.glClear
+ (GL_DEPTH_BUFFER_BIT |
+ GL_COLOR_BUFFER_BIT |
+ GL_STENCIL_BUFFER_BIT);
+
+ /* Note: wall vertices are ordered so they are all
+ front facing this lets me do back face culling to
+ speed things up. */
+
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, wall_mat);
+
+ /* floor */
+ /* make the floor textured */
+ gl.glEnable(GL_TEXTURE_2D);
+
+ /* Since we want to turn texturing on for floor only, we have
+ to make floor a separate glBegin()/glEnd() sequence. You
+ can't turn texturing on and off between begin and end calls */
+ gl.glBegin(GL_QUADS);
+ gl.glNormal3f(0.0f, 1.0f, 0.0f);
+ gl.glTexCoord2i(0, 0);
+ gl.glVertex3f(-100.0f, -100.0f, -320.0f);
+ gl.glTexCoord2i(1, 0);
+ gl.glVertex3f(100.0f, -100.0f, -320.0f);
+ gl.glTexCoord2i(1, 1);
+ gl.glVertex3f(100.0f, -100.0f, -520.0f);
+ gl.glTexCoord2i(0, 1);
+ gl.glVertex3f(-100.0f, -100.0f, -520.0f);
+ gl.glEnd();
+
+ gl.glDisable(GL_TEXTURE_2D);
+
+
+
+ if (rendermode == SHADOW)
+ {
+ gl.glDisable(GL_DEPTH_TEST);
+ gl.glDisable(GL_LIGHTING);
+ gl.glColor3f(0.f, 0.f, 0.f); /* shadow color */
+
+ gl.glPushMatrix();
+ gl.glMultMatrixf(floorshadow);
+ gl.glTranslatef(dx, dy, dz);
+ cone();
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glMultMatrixf(floorshadow);
+ gl.glTranslatef(dx, dy, dz);
+ sphere();
+ gl.glPopMatrix();
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glEnable(GL_LIGHTING);
+ }
+
+
+ /* walls */
+
+ if (rendermode == SHADOW)
+ {
+ gl.glEnable(GL_STENCIL_TEST);
+ gl.glStencilFunc(GL_ALWAYS, 1, 0);
+ gl.glStencilOp(GL_KEEP, GL_KEEP, GL_REPLACE);
+ }
+ /* left wall */
+ gl.glBegin(GL_QUADS);
+ gl.glNormal3f(1.0f, 0.0f, 0.0f);
+ gl.glVertex3f(-100.0f, -100.0f, -320.0f);
+ gl.glVertex3f(-100.0f, -100.0f, -520.0f);
+ gl.glVertex3f(-100.0f, 100.0f, -520.0f);
+ gl.glVertex3f(-100.0f, 100.0f, -320.0f);
+ gl.glEnd();
+
+ if (rendermode == SHADOW)
+ {
+ gl.glStencilFunc(GL_EQUAL, 1, 1);
+ gl.glDisable(GL_DEPTH_TEST);
+ gl.glDisable(GL_LIGHTING);
+ gl.glColor3f(0.0f, 0.0f, 0.0f); /* shadow color */
+ gl.glDisable(GL_DEPTH_TEST);
+ gl.glPushMatrix();
+ gl.glMultMatrixf(leftwallshadow);
+ gl.glTranslatef(dx, dy, dz);
+ cone();
+ gl.glPopMatrix();
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glDisable(GL_STENCIL_TEST);
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glEnable(GL_LIGHTING);
+ }
+
+ gl.glBegin(GL_QUADS);
+
+ /* right wall */
+ gl.glNormal3f(-1.0f, 0.0f, 0.0f);
+ gl.glVertex3f(100.0f, -100.0f, -320.0f);
+ gl.glVertex3f(100.0f, 100.0f, -320.0f);
+ gl.glVertex3f(100.0f, 100.0f, -520.0f);
+ gl.glVertex3f(100.0f, -100.0f, -520.0f);
+
+ /* ceiling */
+ gl.glNormal3f(0.0f, -1.0f, 0.0f);
+ gl.glVertex3f(-100.0f, 100.0f, -320.0f);
+ gl.glVertex3f(-100.0f, 100.0f, -520.0f);
+ gl.glVertex3f(100.0f, 100.0f, -520.0f);
+ gl.glVertex3f(100.0f, 100.0f, -320.0f);
+
+ /* back wall */
+ gl.glNormal3f(0.0f, 0.0f, 1.0f);
+ gl.glVertex3f(-100.0f, -100.0f, -520.0f);
+ gl.glVertex3f(100.0f, -100.0f, -520.0f);
+ gl.glVertex3f(100.0f, 100.0f, -520.0f);
+ gl.glVertex3f(-100.0f, 100.0f, -520.0f);
+
+ gl.glEnd();
+
+ gl.glPushMatrix();
+ gl.glTranslatef(lightpos[X], lightpos[Y], lightpos[Z]);
+ gl.glDisable(GL_LIGHTING);
+ gl.glColor3f(1.0f, 1.0f, 0.7f);
+ gl.glCallList(LIGHT);
+ gl.glEnable(GL_LIGHTING);
+ gl.glPopMatrix();
+
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, cone_mat);
+ cone();
+
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, sphere_mat);
+ sphere();
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ /* simple way to extend a point to build shadow volume */
+ private void extend(float newvertex[], float light[], float vertex[], float t)
+ {
+ float delta[] = new float[3];
+
+ delta[X] = vertex[X] - light[X];
+ delta[Y] = vertex[Y] - light[Y];
+ delta[Z] = vertex[Z] - light[Z];
+
+ newvertex[X] = light[X] + delta[X] * t;
+ newvertex[Y] = light[Y] + delta[Y] * t;
+ newvertex[Z] = light[Z] + delta[Z] * t;
+ }
+
+ }
+}
diff --git a/demos/RonsDemos/softshadow_plugin13.html b/demos/RonsDemos/softshadow_plugin13.html
new file mode 100644
index 0000000..48eb0d3
--- /dev/null
+++ b/demos/RonsDemos/softshadow_plugin13.html
@@ -0,0 +1,50 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Softshadow by Tom McReynolds, SGI; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Softshadow applet
+<br>Originially written by Tom McReynolds, SGI
+<br>Ported to Java by Ron Cemer
+<br>Click inside the window to enable/disable shadows.
+<br>NOTE: WHEN SHADOWS ARE ENABLED, IT MAY TAKE A FEW SECONDS TO DRAW THE SCENE.
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "softshadow.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "softshadow.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "softshadow.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "softshadow.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/spots.html b/demos/RonsDemos/spots.html
new file mode 100644
index 0000000..cd61548
--- /dev/null
+++ b/demos/RonsDemos/spots.html
@@ -0,0 +1,17 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Spots by Mark J. Kilgard; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Spots applet
+<br>Originially written by Mark J. Kilgard
+<br>Ported to Java by Ron Cemer
+<br>
+<applet code="spots.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/spots.java b/demos/RonsDemos/spots.java
new file mode 100644
index 0000000..60a1813
--- /dev/null
+++ b/demos/RonsDemos/spots.java
@@ -0,0 +1,384 @@
+/**
+ * @(#) [place applet name here].java
+ * @(#) author: [place author here] (converted to Java by Ron Cemer)
+ */
+
+/* Copyright (c) Mark J. Kilgard, 1994. */
+
+/**
+ * (c) Copyright 1993, 1994, Silicon Graphics, Inc.
+ * ALL RIGHTS RESERVED
+ * Permission to use, copy, modify, and distribute this software for
+ * any purpose and without fee is hereby granted, provided that the above
+ * copyright notice appear in all copies and that both the copyright notice
+ * and this permission notice appear in supporting documentation, and that
+ * the name of Silicon Graphics, Inc. not be used in advertising
+ * or publicity pertaining to distribution of the software without specific,
+ * written prior permission.
+ *
+ * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
+ * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
+ * GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
+ * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
+ * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
+ * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
+ * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN
+ * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
+ * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * US Government Users Restricted Rights
+ * Use, duplication, or disclosure by the Government is subject to
+ * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
+ * (c)(1)(ii) of the Rights in Technical Data and Computer Software
+ * clause at DFARS 252.227-7013 and/or in similar or successor
+ * clauses in the FAR or the DOD or NASA FAR Supplement.
+ * Unpublished-- rights reserved under the copyright laws of the
+ * United States. Contractor/manufacturer is Silicon Graphics,
+ * Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
+ *
+ * OpenGL(TM) is a trademark of Silicon Graphics, Inc.
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+public class spots extends SimpleGLAnimApplet1
+{
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new spotsCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ private class Light
+ {
+ public float amb[] = new float[4];
+ public float diff[] = new float[4];
+ public float spec[] = new float[4];
+ public float pos[] = new float[4];
+ public float spotDir[] = new float[3];
+ public float spotExp;
+ public float spotCutoff;
+ public float atten[] = new float[3];
+ public float trans[] = new float[3];
+ public float rot[] = new float[3];
+ public float swing[] = new float[3];
+ public float arc[] = new float[3];
+ public float arcIncr[] = new float[3];
+
+ public Light
+ (float ambr, float ambg, float ambb, float amba,
+ float diffr, float diffg, float diffb, float diffa,
+ float specr, float specg, float specb, float speca,
+ float posx, float posy, float posz, float posw,
+ float dirx, float diry, float dirz,
+ float exp,
+ float cutoff,
+ float attenr, float atteng, float attenb,
+ float transx, float transy, float transz,
+ float rotx, float roty, float rotz,
+ float swingx, float swingy, float swingz,
+ float arcx, float arcy, float arcz,
+ float arcincrx, float arcincry, float arcincrz)
+ {
+ amb[0] = ambr;
+ amb[1] = ambg;
+ amb[2] = ambb;
+ amb[3] = amba;
+ diff[0] = diffr;
+ diff[1] = diffg;
+ diff[2] = diffb;
+ diff[3] = diffa;
+ spec[0] = specr;
+ spec[1] = specg;
+ spec[2] = specb;
+ spec[3] = speca;
+ pos[0] = posx;
+ pos[1] = posy;
+ pos[2] = posz;
+ pos[3] = posw;
+ spotDir[0] = dirx;
+ spotDir[1] = diry;
+ spotDir[2] = dirz;
+ spotExp = exp;
+ spotCutoff = cutoff;
+ atten[0] = attenr;
+ atten[1] = atteng;
+ atten[2] = attenb;
+ trans[0] = transx;
+ trans[1] = transy;
+ trans[2] = transz;
+ rot[0] = rotx;
+ rot[1] = roty;
+ rot[2] = rotz;
+ swing[0] = swingx;
+ swing[1] = swingy;
+ swing[2] = swingz;
+ arc[0] = arcx;
+ arc[1] = arcy;
+ arc[2] = arcz;
+ arcIncr[0] = arcincrx;
+ arcIncr[1] = arcincry;
+ arcIncr[2] = arcincrz;
+ }
+ }
+
+
+ /* Local GLAnimCanvas extension class */
+
+
+ private class spotsCanvas extends GLAnimCanvas
+ {
+ private final double M_PI = 3.14159265;
+ private final double TWO_PI = (2.0*M_PI);
+ private final int NUM_LIGHTS = 3;
+
+ private boolean useSAME_AMB_SPEC = true;
+ private float modelAmb[] = {0.2f, 0.2f, 0.2f, 1.0f};
+ private float matAmb[] = {0.2f, 0.2f, 0.2f, 1.0f};
+ private float matDiff[] = {0.8f, 0.8f, 0.8f, 1.0f};
+ private float matSpec[] = {0.4f, 0.4f, 0.4f, 1.0f};
+ private float matEmission[] = {0.0f, 0.0f, 0.0f, 1.0f};
+ private Light[] spots =
+ {
+ new Light
+ (0.2f, 0.0f, 0.0f, 1.0f, /* ambient */
+ 0.8f, 0.0f, 0.0f, 1.0f, /* diffuse */
+ 0.4f, 0.0f, 0.0f, 1.0f, /* specular */
+ 0.0f, 0.0f, 0.0f, 1.0f, /* position */
+ 0.0f, -1.0f, 0.0f, /* direction */
+ 20.0f,
+ 60.0f, /* exponent, cutoff */
+ 1.0f, 0.0f, 0.0f, /* attenuation */
+ 0.0f, 1.25f, 0.0f, /* translation */
+ 0.0f, 0.0f, 0.0f, /* rotation */
+ 20.0f, 0.0f, 40.0f, /* swing */
+ 0.0f, 0.0f, 0.0f, /* arc */
+ (float)(TWO_PI / 70.0), 0.0f, (float)(TWO_PI / 140.0)), /* arc increment */
+ new Light
+ (0.0f, 0.2f, 0.0f, 1.0f, /* ambient */
+ 0.0f, 0.8f, 0.0f, 1.0f, /* diffuse */
+ 0.0f, 0.4f, 0.0f, 1.0f, /* specular */
+ 0.0f, 0.0f, 0.0f, 1.0f, /* position */
+ 0.0f, -1.0f, 0.0f, /* direction */
+ 20.0f,
+ 60.0f, /* exponent, cutoff */
+ 1.0f, 0.0f, 0.0f, /* attenuation */
+ 0.0f, 1.25f, 0.0f, /* translation */
+ 0.0f, 0.0f, 0.0f, /* rotation */
+ 20.0f, 0.0f, 40.0f, /* swing */
+ 0.0f, 0.0f, 0.0f, /* arc */
+ (float)(TWO_PI / 120.0), 0.0f, (float)(TWO_PI / 60.0)), /* arc increment */
+ new Light
+ (0.0f, 0.0f, 0.2f, 1.0f, /* ambient */
+ 0.0f, 0.0f, 0.8f, 1.0f, /* diffuse */
+ 0.0f, 0.0f, 0.4f, 1.0f, /* specular */
+ 0.0f, 0.0f, 0.0f, 1.0f, /* position */
+ 0.0f, -1.0f, 0.0f, /* direction */
+ 20.0f,
+ 60.0f, /* exponent, cutoff */
+ 1.0f, 0.0f, 0.0f, /* attenuation */
+ 0.0f, 1.25f, 0.0f, /* translation */
+ 0.0f, 0.0f, 0.0f, /* rotation */
+ 20.0f, 0.0f, 40.0f, /* swing */
+ 0.0f, 0.0f, 0.0f, /* arc */
+ (float)(TWO_PI / 50.0), 0.0f, (float)(TWO_PI / 100.0)), /* arc increment */
+ };
+ float spin = 0.0f;
+
+ public spotsCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ setAnimateFps(30.0);
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glFrustum(-1.0f, 1.0f, -1.0f, 1.0f, 2.0f, 6.0f);
+
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glTranslatef(0.0f, 0.0f, -3.0f);
+ gl.glRotatef(45.0f, 1.0f, 0.0f, 0.0f);
+
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_NORMALIZE);
+
+ gl.glLightModelfv(GL_LIGHT_MODEL_AMBIENT, modelAmb);
+ gl.glLightModelf(GL_LIGHT_MODEL_LOCAL_VIEWER, 1.0f);
+ gl.glLightModelf(GL_LIGHT_MODEL_TWO_SIDE, 0.0f);
+
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, matAmb);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, matDiff);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, matSpec);
+ gl.glMaterialfv(GL_FRONT, GL_EMISSION, matEmission);
+ gl.glMaterialf(GL_FRONT, GL_SHININESS, 10.0f);
+
+ initLights();
+
+ glj.gljCheckGL();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ spin += 0.5f;
+ if (spin > 360.0f) spin -= 360.0f;
+
+ gl.glClear(GL_COLOR_BUFFER_BIT);
+
+ gl.glPushMatrix();
+ gl.glRotatef(spin, 0.0f, 1.0f, 0.0f);
+
+ aimLights();
+ setLights();
+
+ gl.glPushMatrix();
+ gl.glRotatef(-90.0f, 1.0f, 0.0f, 0.0f);
+ gl.glScalef(1.9f, 1.9f, 1.0f);
+ gl.glTranslatef(-0.5f, -0.5f, 0.0f);
+ drawPlane(16, 16);
+ gl.glPopMatrix();
+
+ drawLights();
+ gl.glPopMatrix();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+
+ //if (!isSuspended()) repaint(); // Animate at full speed.
+ }
+
+ private void initLights()
+ {
+ for (int k = 0; k < NUM_LIGHTS; ++k)
+ {
+ int lt = GL_LIGHT0 + k;
+ Light light = spots[k];
+ gl.glEnable(lt);
+ gl.glLightfv(lt, GL_AMBIENT, light.amb);
+ gl.glLightfv(lt, GL_DIFFUSE, light.diff);
+ if (useSAME_AMB_SPEC)
+ gl.glLightfv(lt, GL_SPECULAR, light.amb);
+ else
+ gl.glLightfv(lt, GL_SPECULAR, light.spec);
+ gl.glLightf(lt, GL_SPOT_EXPONENT, light.spotExp);
+ gl.glLightf(lt, GL_SPOT_CUTOFF, light.spotCutoff);
+ gl.glLightf(lt, GL_CONSTANT_ATTENUATION, light.atten[0]);
+ gl.glLightf(lt, GL_LINEAR_ATTENUATION, light.atten[1]);
+ gl.glLightf(lt, GL_QUADRATIC_ATTENUATION, light.atten[2]);
+ }
+ }
+
+ private void aimLights()
+ {
+ for (int k = 0; k < NUM_LIGHTS; ++k)
+ {
+ Light light = spots[k];
+ light.rot[0] = light.swing[0] * (float)Math.sin(light.arc[0]);
+ light.arc[0] += light.arcIncr[0];
+ if (light.arc[0] > TWO_PI)
+ light.arc[0] -= TWO_PI;
+ light.rot[1] = light.swing[1] * (float)Math.sin(light.arc[1]);
+ light.arc[1] += light.arcIncr[1];
+ if (light.arc[1] > TWO_PI)
+ light.arc[1] -= TWO_PI;
+ light.rot[2] = light.swing[2] * (float)Math.sin(light.arc[2]);
+ light.arc[2] += light.arcIncr[2];
+ if (light.arc[2] > TWO_PI)
+ light.arc[2] -= TWO_PI;
+ }
+ }
+
+ private void setLights()
+ {
+ for (int k = 0; k < NUM_LIGHTS; ++k)
+ {
+ int lt = GL_LIGHT0 + k;
+ Light light = spots[k];
+ gl.glPushMatrix();
+ gl.glTranslatef(light.trans[0], light.trans[1], light.trans[2]);
+ gl.glRotatef(light.rot[0], 1, 0, 0);
+ gl.glRotatef(light.rot[1], 0, 1, 0);
+ gl.glRotatef(light.rot[2], 0, 0, 1);
+ gl.glLightfv(lt, GL_POSITION, light.pos);
+ gl.glLightfv(lt, GL_SPOT_DIRECTION, light.spotDir);
+ gl.glPopMatrix();
+ }
+ }
+
+ private void drawLights()
+ {
+ gl.glDisable(GL_LIGHTING);
+ for (int k = 0; k < NUM_LIGHTS; ++k)
+ {
+ Light light = spots[k];
+ gl.glColor4fv(light.diff);
+ gl.glPushMatrix();
+ gl.glTranslatef(light.trans[0], light.trans[1], light.trans[2]);
+ gl.glRotatef(light.rot[0], 1, 0, 0);
+ gl.glRotatef(light.rot[1], 0, 1, 0);
+ gl.glRotatef(light.rot[2], 0, 0, 1);
+ gl.glBegin(GL_LINES);
+ gl.glVertex3f(light.pos[0], light.pos[1], light.pos[2]);
+ gl.glVertex3f(light.spotDir[0], light.spotDir[1], light.spotDir[2]);
+ gl.glEnd();
+ gl.glPopMatrix();
+ }
+ gl.glEnable(GL_LIGHTING);
+ }
+
+ private void drawPlane(int w, int h)
+ {
+ int i, j;
+ float dw = 1.0f / (float)w;
+ float dh = 1.0f / (float)h;
+ gl.glNormal3f(0.0f, 0.0f, 1.0f);
+ for (j = 0; j < h; ++j)
+ {
+ gl.glBegin(GL_TRIANGLE_STRIP);
+ for (i = 0; i <= w; ++i)
+ {
+ gl.glVertex2f(dw * i, dh * (j + 1));
+ gl.glVertex2f(dw * i, dh * j);
+ }
+ gl.glEnd();
+ }
+ }
+ }
+}
diff --git a/demos/RonsDemos/spots_plugin13.html b/demos/RonsDemos/spots_plugin13.html
new file mode 100644
index 0000000..c5cfb39
--- /dev/null
+++ b/demos/RonsDemos/spots_plugin13.html
@@ -0,0 +1,48 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Spots by Mark J. Kilgard; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Spots applet
+<br>Originially written by Mark J. Kilgard
+<br>Ported to Java by Ron Cemer
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "spots.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "spots.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "spots.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "spots.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/star.html b/demos/RonsDemos/star.html
new file mode 100644
index 0000000..7ab40ee
--- /dev/null
+++ b/demos/RonsDemos/star.html
@@ -0,0 +1,22 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Star by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Star applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>
+<hr>By clicking inside the window, you can change the behavior of the
+<br>stars.&nbsp; There are two modes: normal and "weird".&nbsp; Each time
+you
+<br>click inside the window, the current mode will change.
+<br>
+<applet code="star.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/star.java b/demos/RonsDemos/star.java
new file mode 100644
index 0000000..3017b51
--- /dev/null
+++ b/demos/RonsDemos/star.java
@@ -0,0 +1,349 @@
+/**
+ * @(#) star.java
+ * @(#) author: Silicon Graphics (converted to Java by Ron Cemer)
+ */
+
+/*
+ * Copyright (c) 1991, 1992, 1993 Silicon Graphics, Inc.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and
+ * its documentation for any purpose is hereby granted without fee, provided
+ * that (i) the above copyright notices and this permission notice appear in
+ * all copies of the software and related documentation, and (ii) the name of
+ * Silicon Graphics may not be used in any advertising or
+ * publicity relating to the software without the specific, prior written
+ * permission of Silicon Graphics.
+ *
+ * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF
+ * ANY KIND,
+ * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
+ * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * IN NO EVENT SHALL SILICON GRAPHICS BE LIABLE FOR
+ * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
+ * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
+ * OF THIS SOFTWARE.
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+public class star extends SimpleGLAnimApplet1
+{
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new starCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Local GLAnimCanvas extension class */
+
+
+ private class starCanvas extends GLAnimCanvas implements MouseListener
+ {
+ private static final float M_PI = 3.14159265359f;
+ private static final int NORMAL = 0, WEIRD = 1;
+ private static final int STREAK = 0, CIRCLE = 1;
+ private static final int MAXSTARS = 400;
+ private static final int MAXPOS = 10000;
+ private static final int MAXWARP = 10;
+ private static final int MAXANGLES = 6000;
+ private int windW, windH;
+ private int flag = NORMAL;
+ private int starCount = MAXSTARS / 2;
+ private float speed = 1.0f;
+ private int nitro = 0;
+ private starRec stars[];
+ private float sinTable[];
+ private Random rand = null;
+
+ private class starRec
+ {
+ protected int type;
+ protected float x[], y[], z[];
+ protected float offsetX, offsetY, offsetR, rotation;
+
+ public starRec()
+ {
+ x = new float[2];
+ y = new float[2];
+ z = new float[2];
+ }
+ }
+
+ public starCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ setAnimateFps(30.0);
+
+ stars = new starRec[MAXSTARS];
+ sinTable = new float[MAXANGLES];
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ Date dt = new Date();
+ rand = new Random(dt.getTime());
+
+ int n;
+ for (n = 0; n < MAXSTARS; n++)
+ NewStar(n, 100);
+ float angle = 0.0f;
+ for (n = 0; n < MAXANGLES ; n++)
+ {
+ sinTable[n] = (float)Math.sin(angle);
+ angle += M_PI / (MAXANGLES / 2.0f);
+ }
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+ gl.glDisable(GL_DITHER);
+
+ glj.gljCheckGL();
+
+ addMouseListener(this);
+ }
+
+ public void doCleanup()
+ {
+ System.out.println("destroy(): " + this);
+ removeMouseListener(this);
+ }
+
+ public void reshape(int width, int height)
+ {
+ windW = width;
+ windH = height;
+
+ gl.glViewport(0,0,width,height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ glu.gluOrtho2D(-0.5,(double)width+0.5,-0.5,(double)height+0.5);
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ MoveStars();
+ ShowStars();
+ if (nitro > 0)
+ {
+ speed = (float)(nitro / 10) + 1.0f;
+ if (speed > MAXWARP) speed = MAXWARP;
+ if (++nitro > MAXWARP*10) nitro = -nitro;
+ }
+ else if (nitro < 0)
+ {
+ nitro++;
+ speed = (float)(-nitro / 10) + 1.0f;
+ if (speed > MAXWARP) speed = MAXWARP;
+ }
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+
+ //if (!isSuspended()) repaint(); // Animate at full speed.
+ }
+
+ private float Sin(float angle)
+ {
+ int ang;
+ ang = (int)angle;
+ while (ang < 0) ang += MAXANGLES;
+ while (ang >= MAXANGLES) ang -= MAXANGLES;
+ return (sinTable[ang]);
+ }
+
+ private float Cos(float angle)
+ {
+ return Sin(angle+(((float)MAXANGLES)*0.25f));
+ }
+
+ private void NewStar(int n, int d)
+ {
+ stars[n] = new starRec();
+ if (rand.nextInt() % 4 == 0)
+ stars[n].type = CIRCLE;
+ else
+ stars[n].type = STREAK;
+ stars[n].x[0] = (float)(rand.nextInt() % MAXPOS - MAXPOS / 2);
+ stars[n].y[0] = (float)(rand.nextInt() % MAXPOS - MAXPOS / 2);
+ stars[n].z[0] = (float)(rand.nextInt() % MAXPOS + d);
+ if ( (rand.nextInt() % 4 == 0) && (flag == WEIRD) )
+ {
+ stars[n].offsetX = (float)(rand.nextInt() % 100 - 100 / 2);
+ stars[n].offsetY = (float)(rand.nextInt() % 100 - 100 / 2);
+ stars[n].offsetR = (float)(rand.nextInt() % 25 - 25 / 2);
+ }
+ else
+ {
+ stars[n].offsetX = 0.0f;
+ stars[n].offsetY = 0.0f;
+ stars[n].offsetR = 0.0f;
+ }
+ }
+
+ private void RotatePoint(float[] x, float[] y, float rotation)
+ {
+ float tmpX, tmpY;
+
+ tmpX = x[0] * Cos(rotation) - y[0] * Sin(rotation);
+ tmpY = y[0] * Cos(rotation) + x[0] * Sin(rotation);
+ x[0] = tmpX;
+ y[0] = tmpY;
+ }
+
+ private void MoveStars()
+ {
+ float offset;
+ int n;
+
+ offset = speed * 60.0f;
+
+ for (n = 0; n < starCount; n++)
+ {
+ stars[n].x[1] = stars[n].x[0];
+ stars[n].y[1] = stars[n].y[0];
+ stars[n].z[1] = stars[n].z[0];
+ stars[n].x[0] += stars[n].offsetX;
+ stars[n].y[0] += stars[n].offsetY;
+ stars[n].z[0] -= offset;
+ int rot = (int)(stars[n].rotation = stars[n].offsetR);
+ while (rot < 0) rot += MAXANGLES;
+ while (rot >= MAXANGLES) rot -= MAXANGLES;
+ stars[n].rotation = (float)rot;
+ }
+ }
+
+ private boolean StarPoint(int n)
+ {
+ float x0, y0, x1, y1, width;
+ float xbuf[] = new float[1], ybuf[] = new float[1];
+ int i;
+
+ x0 = stars[n].x[0] * windW / stars[n].z[0];
+ y0 = stars[n].y[0] * windH / stars[n].z[0];
+ xbuf[0] = x0;
+ ybuf[0] = y0;
+ RotatePoint(xbuf, ybuf, stars[n].rotation);
+ x0 = xbuf[0];
+ y0 = ybuf[0];
+ x0 += windW / 2.0f;
+ y0 += windH / 2.0f;
+
+ if ( (x0 >= 0.0f) && (x0 < windW) && (y0 >= 0.0f) && (y0 < windH) )
+ {
+ if (stars[n].type == STREAK)
+ {
+ x1 = stars[n].x[1] * windW / stars[n].z[1];
+ y1 = stars[n].y[1] * windH / stars[n].z[1];
+ xbuf[0] = x1;
+ ybuf[0] = y1;
+ RotatePoint(xbuf, ybuf, stars[n].rotation);
+ x1 = xbuf[0];
+ y1 = ybuf[0];
+ x1 += windW / 2.0f;
+ y1 += windH / 2.0f;
+
+ gl.glLineWidth(MAXPOS/100.0f/stars[n].z[0]+1.0f);
+ gl.glColor3f(1.0f, (MAXWARP-speed)/MAXWARP, (MAXWARP-speed)/MAXWARP);
+ if (Math.abs(x0-x1) < 1.0f && Math.abs(y0-y1) < 1.0f)
+ {
+ gl.glBegin(GL_POINTS);
+ gl.glVertex2f(x0, y0);
+ gl.glEnd();
+ }
+ else
+ {
+ gl.glBegin(GL_LINES);
+ gl.glVertex2f(x0, y0);
+ gl.glVertex2f(x1, y1);
+ gl.glEnd();
+ }
+ }
+ else
+ {
+ width = MAXPOS / 10.0f / stars[n].z[0] + 1.0f;
+ gl.glColor3f(1.0f, 0.0f, 0.0f);
+ gl.glBegin(GL_POLYGON);
+ for (i = 0; i < 8; i++)
+ {
+ float x = x0 + width * Cos((float)i*MAXANGLES/8.0f);
+ float y = y0 + width * Sin((float)i*MAXANGLES/8.0f);
+ gl.glVertex2f(x, y);
+ };
+ gl.glEnd();
+ }
+
+ return true;
+ }
+ return false;
+ }
+
+ private void ShowStars()
+ {
+ gl.glClear(GL_COLOR_BUFFER_BIT);
+ for (int n = 0; n < starCount; n++)
+ {
+ if ( (stars[n].z[0] > speed)
+ || ( (stars[n].z[0] > 0.0f) && (speed < MAXWARP) ) )
+ {
+ if (!StarPoint(n))
+ NewStar(n, MAXPOS);
+ }
+ else
+ NewStar(n, MAXPOS);
+ }
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ flag = (flag == NORMAL) ? WEIRD : NORMAL;
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ }
+ }
+}
diff --git a/demos/RonsDemos/star_plugin13.html b/demos/RonsDemos/star_plugin13.html
new file mode 100644
index 0000000..8a3f8e1
--- /dev/null
+++ b/demos/RonsDemos/star_plugin13.html
@@ -0,0 +1,53 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Star by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Star applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>
+<hr>By clicking inside the window, you can change the behavior of the
+<br>stars.&nbsp; There are two modes: normal and "weird".&nbsp; Each time
+you
+<br>click inside the window, the current mode will change.
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "star.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "star.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "star.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "star.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/steam.html b/demos/RonsDemos/steam.html
new file mode 100644
index 0000000..b02826e
--- /dev/null
+++ b/demos/RonsDemos/steam.html
@@ -0,0 +1,22 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Steam by Troy Robinette; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Steam applet
+<br>Originially written by Troy Robinette
+<br>Ported to Java by Ron Cemer
+<br>Right click within the window for a menu of options.
+<br>Left-click within the window, then press any of the following keys:
+<br>Arrow keys rotate the model.
+<br>+ and - keys speed up or slow down the simulation.
+<br>While paused, a and z keys single-step forward and backward.
+<br>
+<applet code="steam.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/steam.java b/demos/RonsDemos/steam.java
new file mode 100644
index 0000000..3f19f7e
--- /dev/null
+++ b/demos/RonsDemos/steam.java
@@ -0,0 +1,791 @@
+/**
+ * @(#) steam.java
+ * @(#) author: Troy Robinette (converted to Java by Ron Cemer)
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+/**
+ Description: Interactive 3D graphics, Assignment #1
+ Miniature Steam Engine Simulation.
+ Author: Troy Robinette
+ Date: 29/9/95
+ Notes: - Transparence doesn't quite work. The color of the
+ underlying object doesn't show through.
+ - Also only the front side of the transparent objects are
+ transparent.
+**/
+
+public class steam extends SimpleGLAnimApplet1
+{
+ private static final float boxnormals[][] =
+ {
+ {-1.0f, 0.0f, 0.0f},
+ {0.0f, 1.0f, 0.0f},
+ {1.0f, 0.0f, 0.0f},
+ {0.0f, -1.0f, 0.0f},
+ {0.0f, 0.0f, 1.0f},
+ {0.0f, 0.0f, -1.0f}
+ };
+ private static final int boxfaces[][] =
+ {
+ {0, 1, 2, 3},
+ {3, 2, 6, 7},
+ {7, 6, 5, 4},
+ {4, 5, 1, 0},
+ {5, 6, 2, 1},
+ {7, 4, 0, 3}
+ };
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new steamCanvas(d.width, d.height);
+ canvas.requestFocus();
+ add("Center", canvas);
+ }
+
+
+ /* Local GLAnimCanvas extension class */
+
+
+ private class steamCanvas extends GLAnimCanvas
+ implements MouseListener, ActionListener, KeyListener
+ {
+ /* Dimensions of texture image. */
+ private final int IMAGE_WIDTH = 64;
+ private final int IMAGE_HEIGHT = 64;
+ /* Step to be taken for each rotation. */
+ private final int ANGLE_STEP = 10;
+ /* Magic numbers for relationship b/w cylinder head and crankshaft. */
+ private final float MAGNITUDE = 120.0f;
+ private final float PHASE = 270.112f;
+ private final float FREQ_DIV = 58.0f;
+ private final float ARC_LENGTH = 2.7f;
+ private final float ARC_RADIUS = 0.15f;
+ /* Rotation angles */
+ private float view_h = 270.0f, view_v = 0.0f;
+ private float head_angle = 0.0f;
+ private int crank_angle = 0;
+ /* Crank rotation step. */
+ private float crank_step = 5.0f;
+ /* Toggles */
+ private boolean filled = true;
+ private boolean textured = false, transparent = false;
+ /* Storage for the angle look up table and the texture map */
+ private float head_look_up_table[] = new float[360];
+ private byte image[] = new byte[IMAGE_WIDTH*IMAGE_HEIGHT*3];
+ /* Indentifiers for each Display list */
+ private int list_piston_filled = 1;
+ private int list_piston_texture = 2;
+ private int list_flywheel_filled = 4;
+ private int list_flywheel_texture = 8;
+ /* Variable used in the creaton of glu objects */
+ int obj; // (GLU quadric object)
+
+ private PopupMenu menu = null;
+ private boolean menu_showing = false;
+ private boolean save_suspended = false;
+
+ private final String MENU_FILLED = "Filled";
+ private final String MENU_WIREFRAME = "Wireframe";
+ private final String MENU_TEXTURED = "Textured";
+ private final String MENU_UNTEXTURED = "Untextured";
+ private final String MENU_TRANSPARENT = "Transparent";
+ private final String MENU_OPAQUE = "Opaque";
+ private final String MENU_RIGHT_LIGHT_ON = "Right light on";
+ private final String MENU_RIGHT_LIGHT_OFF = "Right light off";
+ private final String MENU_LEFT_LIGHT_ON = "Left light on";
+ private final String MENU_LEFT_LIGHT_OFF = "Left light off";
+ private final String MENU_PAUSE = "Pause (use a and z to step)";
+ private final String MENU_RESUME = "Resume animation";
+ private final String MENU_SPEED_UP = "Speed up (+)";
+ private final String MENU_SLOW_DOWN = "Slow down (-)";
+
+ public steamCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ setAnimateFps(30.0);
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ float mat_specular[] = {1.0f, 1.0f, 1.0f, 1.0f};
+ float mat_shininess[] = {50.0f};
+ float light_position0[] = {1.0f, 1.0f, 1.0f, 0.0f};
+ float light_position1[] = {-1.0f, 1.0f, 1.0f, 0.0f};
+ float light_diffuse1[] = {1.0f,1.0f,1.0f,1.0f};
+ float light_specular1[] = {1.0f,1.0f,1.0f,1.0f};
+
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+
+ obj = glu.gluNewQuadric();
+ make_table();
+ make_image();
+
+ /* Set up Texturing */
+ gl.glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
+ gl.glTexImage2D
+ (GL_TEXTURE_2D,
+ 0,
+ 3,
+ IMAGE_WIDTH,
+ IMAGE_HEIGHT,
+ 0,
+ GL_RGB,
+ GL_UNSIGNED_BYTE,
+ image);
+ gl.glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
+ gl.glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
+ gl.glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
+ gl.glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
+ gl.glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
+
+ /* Set up Lighting */
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, mat_shininess);
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, light_position0);
+ gl.glLightfv(GL_LIGHT1, GL_POSITION, light_position1);
+ gl.glLightfv(GL_LIGHT1, GL_DIFFUSE, light_diffuse1);
+ gl.glLightfv(GL_LIGHT1, GL_SPECULAR, light_specular1);
+
+ /* Initial render mode is with full shading and LIGHT 0
+ enabled. */
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glDisable(GL_LIGHT1);
+ gl.glDepthFunc(GL_LEQUAL);
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glDisable(GL_ALPHA_TEST);
+
+ gl.glColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE);
+ gl.glEnable(GL_COLOR_MATERIAL);
+ gl.glShadeModel(GL_SMOOTH);
+
+ /* Initialise display lists */
+ gl.glNewList(list_piston_filled, GL_COMPILE);
+ draw_piston();
+ gl.glEndList();
+ gl.glNewList(list_flywheel_filled, GL_COMPILE);
+ draw_flywheel();
+ gl.glEndList();
+
+ glu.gluQuadricTexture(obj, true);
+ gl.glNewList(list_piston_texture, GL_COMPILE);
+ draw_piston();
+ gl.glEndList();
+ gl.glNewList(list_flywheel_texture, GL_COMPILE);
+ draw_flywheel();
+ gl.glEndList();
+ glu.gluQuadricTexture(obj, false);
+
+ glj.gljCheckGL();
+
+ menu = new PopupMenu("Options");
+ menu.add(MENU_FILLED);
+ menu.add(MENU_WIREFRAME);
+ menu.add(MENU_TEXTURED);
+ menu.add(MENU_UNTEXTURED);
+ menu.add(MENU_TRANSPARENT);
+ menu.add(MENU_OPAQUE);
+ menu.add(MENU_RIGHT_LIGHT_ON);
+ menu.add(MENU_RIGHT_LIGHT_OFF);
+ menu.add(MENU_LEFT_LIGHT_ON);
+ menu.add(MENU_LEFT_LIGHT_OFF);
+ menu.add(MENU_PAUSE);
+ menu.add(MENU_RESUME);
+ menu.add(MENU_SPEED_UP);
+ menu.add(MENU_SLOW_DOWN);
+ menu.addActionListener(this);
+ add(menu);
+
+ addMouseListener(this);
+ addKeyListener(this);
+ }
+
+ public void doCleanup()
+ {
+ System.out.println("destroy(): " + this);
+ removeMouseListener(this);
+ menu.removeActionListener(this);
+ removeKeyListener(this);
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ glu.gluPerspective(65.0f, (float)width/(float)height, 1.0f, 20.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ gl.glTranslatef(0.0f, 0.0f, -5.0f); /* viewing transform */
+ gl.glScalef(1.5f, 1.5f, 1.5f);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ if (!isSuspended())
+ {
+ crank_angle += crank_step;
+ while (crank_angle >= 360) crank_angle -= 360;
+ while (crank_angle < 0) crank_angle += 360;
+ head_angle = head_look_up_table[crank_angle];
+ }
+
+ /* Main display code. Clears the drawing buffer and if
+ transparency is set, displays the model twice, 1st time
+ accepting those fragments with an ALPHA value of 1 only,
+ then with DEPTH_BUFFER writing disabled for those with
+ other values. */
+
+ int pass;
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ gl.glPushMatrix();
+ if (transparent)
+ {
+ gl.glEnable(GL_ALPHA_TEST);
+ pass = 2;
+ }
+ else
+ {
+ gl.glDisable(GL_ALPHA_TEST);
+ pass = 0;
+ }
+
+ /* Rotate the whole model */
+ gl.glRotatef(view_h, 0.0f, 1.0f, 0.0f);
+ gl.glRotatef(view_v, 1.0f, 0.0f, 0.0f);
+
+ do
+ {
+ if (pass == 2)
+ {
+ gl.glAlphaFunc(GL_EQUAL, 1);
+ gl.glDepthMask(true);
+ pass = 1;
+ }
+ else if (pass != 0)
+ {
+ gl.glAlphaFunc(GL_NOTEQUAL, 1);
+ gl.glDepthMask(false);
+ pass = 0;
+ }
+
+ draw_engine_pole();
+
+ gl.glPushMatrix();
+ gl.glTranslatef(0.5f, 1.4f, 0.0f);
+ draw_cylinder_head();
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glTranslatef(0.0f, -0.8f, 0.0f);
+ draw_crank();
+ gl.glPopMatrix();
+ } while (pass > 0);
+
+ gl.glDepthMask(true);
+ gl.glPopMatrix();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+
+ //if (!isSuspended()) repaint(); // Animate at full speed.
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ public void mouseExited(MouseEvent evt)
+ {
+ }
+
+ public void mousePressed(MouseEvent evt)
+ {
+ // If user presses right mouse button within canvas area,
+ // suspend animation and pop up menu.
+ // If menu was already popped up and user presses either
+ // mouse button within canvas area, resume animation
+ // because the menu will have been removed automatically.
+ if (!menu_showing)
+ {
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ menu_showing = true;
+ save_suspended = isSuspended();
+ if (!save_suspended)
+ {
+ setSuspended(true);
+ repaint(100);
+ try
+ {
+ Thread.currentThread().sleep(200);
+ }
+ catch (Exception e)
+ { }
+ }
+ menu.show(this,evt.getX(),evt.getY());
+ }
+ }
+ else
+ {
+ menu_showing = false;
+ setSuspended(save_suspended);
+ }
+ }
+
+ public void mouseReleased(MouseEvent evt)
+ {
+ }
+
+ // Method required for the implementation of ActionListener
+ public void actionPerformed(ActionEvent evt)
+ {
+ if (glj.gljMakeCurrent() == false) return;
+ boolean dorepaint = false;
+ String c = evt.getActionCommand();
+ if (c.equals(MENU_FILLED))
+ {
+ filled = true;
+ gl.glShadeModel(GL_SMOOTH);
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glEnable(GL_COLOR_MATERIAL);
+ glu.gluQuadricNormals(obj, GLU_SMOOTH);
+ glu.gluQuadricDrawStyle(obj, GLU_FILL);
+ // Conditionally re-enable texturing.
+ if (textured)
+ {
+ gl.glEnable(GL_TEXTURE_2D);
+ glu.gluQuadricTexture(obj, true);
+ }
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_WIREFRAME))
+ {
+ filled = false;
+ gl.glShadeModel(GL_FLAT);
+ gl.glDisable(GL_LIGHTING);
+ gl.glDisable(GL_DEPTH_TEST);
+ gl.glDisable(GL_COLOR_MATERIAL);
+ glu.gluQuadricNormals(obj, GLU_NONE);
+ glu.gluQuadricDrawStyle(obj, GLU_LINE);
+ glu.gluQuadricTexture(obj, false);
+ // Be sure texturing is disabled.
+ gl.glDisable(GL_TEXTURE_2D);
+ glu.gluQuadricTexture(obj, false);
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_TEXTURED))
+ {
+ textured = true;
+ if (filled)
+ {
+ gl.glEnable(GL_TEXTURE_2D);
+ glu.gluQuadricTexture(obj, true);
+ dorepaint = true;
+ }
+ }
+ else if (c.equals(MENU_UNTEXTURED))
+ {
+ textured = false;
+ gl.glDisable(GL_TEXTURE_2D);
+ glu.gluQuadricTexture(obj, false);
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_TRANSPARENT))
+ {
+ transparent = true;
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_OPAQUE))
+ {
+ transparent = false;
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_RIGHT_LIGHT_ON))
+ {
+ gl.glEnable(GL_LIGHT0);
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_RIGHT_LIGHT_OFF))
+ {
+ gl.glDisable(GL_LIGHT0);
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_LEFT_LIGHT_ON))
+ {
+ gl.glEnable(GL_LIGHT1);
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_LEFT_LIGHT_OFF))
+ {
+ gl.glDisable(GL_LIGHT1);
+ dorepaint = true;
+ }
+ else if (c.equals(MENU_PAUSE))
+ {
+ if (menu_showing)
+ save_suspended = true;
+ else
+ setSuspended(true);
+ }
+ else if (c.equals(MENU_RESUME))
+ {
+ if (menu_showing)
+ save_suspended = false;
+ else
+ setSuspended(false);
+ }
+ else if (c.equals(MENU_SPEED_UP))
+ {
+ crank_step++;
+ if (crank_step > 45) crank_step = 45;
+ }
+ else if (c.equals(MENU_SLOW_DOWN))
+ {
+ crank_step--;
+ if (crank_step < 1) crank_step = 1;
+ }
+ if (menu_showing)
+ {
+ menu_showing = false;
+ setSuspended(save_suspended);
+ }
+ glj.gljFree();
+ if (dorepaint) repaint();
+ }
+
+ // Methods required for the implementation of KeyListener
+ public void keyPressed(KeyEvent e)
+ {
+ switch (e.getKeyCode())
+ {
+ case KeyEvent.VK_LEFT:
+ view_h -= ANGLE_STEP;
+ while (view_h < 0) view_h += 360;
+ repaint();
+ break;
+ case KeyEvent.VK_RIGHT:
+ view_h += ANGLE_STEP;
+ while (view_h >= 360) view_h -= 360;
+ repaint();
+ break;
+ case KeyEvent.VK_UP:
+ view_v += ANGLE_STEP;
+ while (view_v >= 360) view_v -= 360;
+ repaint();
+ break;
+ case KeyEvent.VK_DOWN:
+ view_v -= ANGLE_STEP;
+ while (view_v < 0) view_v += 360;
+ repaint();
+ break;
+ }
+ }
+
+ public void keyReleased(KeyEvent e)
+ {
+ }
+
+ public void keyTyped(KeyEvent e)
+ {
+ if (glj.gljMakeCurrent() == false) return;
+ boolean dorepaint = false;
+ switch ((char)e.getKeyChar())
+ {
+ case 'a':
+ case 'A':
+ if (!isSuspended()) break;
+ crank_angle += crank_step;
+ while (crank_angle >= 360) crank_angle -= 360;
+ head_angle = head_look_up_table[crank_angle];
+ dorepaint = true;
+ break;
+ case 'z':
+ case 'Z':
+ if (!isSuspended()) break;
+ crank_angle -= crank_step;
+ while (crank_angle < 0) crank_angle += 360;
+ head_angle = head_look_up_table[crank_angle];
+ dorepaint = true;
+ break;
+ case '+':
+ crank_step++;
+ if (crank_step > 45) crank_step = 45;
+ break;
+ case '-':
+ crank_step--;
+ if (crank_step < 1) crank_step = 1;
+ break;
+ }
+ glj.gljFree();
+ if (dorepaint) repaint();
+ }
+
+ /* Draws a box by scaling a glut cube of size 1.
+ Also checks the filled toggle to see which rendering
+ style to use. NB Texture doesn't work correctly due
+ to the cube being scaled. */
+ private void myBox(float x, float y, float z)
+ {
+ gl.glPushMatrix();
+ gl.glScalef(x, y, z);
+ if (filled)
+ glutSolidCube(1);
+ else
+ glutWireCube(1);
+ gl.glPopMatrix();
+ }
+
+ /* Draws a cylinder using glu function, drawing flat discs
+ at each end, to give the appearence of it being solid. */
+ private void myCylinder
+ (int object, float outerRadius, float innerRadius, float length)
+ {
+ gl.glPushMatrix();
+ glu.gluCylinder(object, outerRadius, outerRadius, length, 20, 1);
+ gl.glPushMatrix();
+ gl.glRotatef(180.0f, 0.0f, 1.0f, 0.0f);
+ glu.gluDisk(object, innerRadius, outerRadius, 20, 1);
+ gl.glPopMatrix();
+ gl.glTranslatef(0.0f, 0.0f, length);
+ glu.gluDisk(object, innerRadius, outerRadius, 20, 1);
+ gl.glPopMatrix();
+ }
+
+ /* Draws a piston. */
+ private void draw_piston()
+ {
+ gl.glPushMatrix();
+ gl.glColor4f(0.3f, 0.6f, 0.9f, 1.0f);
+ gl.glPushMatrix();
+ gl.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
+ gl.glTranslatef(0.0f, 0.0f, -0.07f);
+ myCylinder(obj, 0.125f, 0.06f, 0.12f);
+ gl.glPopMatrix();
+ gl.glRotatef(-90.0f, 1.0f, 0.0f, 0.0f);
+ gl.glTranslatef(0.0f, 0.0f, 0.05f);
+ myCylinder(obj, 0.06f, 0.0f, 0.6f);
+ gl.glTranslatef(0.0f, 0.0f, 0.6f);
+ myCylinder(obj, 0.2f, 0.0f, 0.5f);
+ gl.glPopMatrix();
+ }
+
+ /* Draws the engine pole and the
+ pivot pole for the cylinder head. */
+ private void draw_engine_pole()
+ {
+ gl.glPushMatrix();
+ gl.glColor4f(0.9f, 0.9f, 0.9f, 1.0f);
+ myBox(0.5f, 3.0f, 0.5f);
+ gl.glColor3f(0.5f, 0.1f, 0.5f);
+ gl.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
+ gl.glTranslatef(0.0f, 0.9f, -0.4f);
+ myCylinder(obj, 0.1f, 0.0f, 2);
+ gl.glPopMatrix();
+ }
+
+ /* Draws the cylinder head at the appropreate angle, doing
+ the necessary translations for the rotation. */
+ private void draw_cylinder_head()
+ {
+ gl.glPushMatrix();
+ gl.glColor4f(0.5f, 1.0f, 0.5f, 0.1f);
+ gl.glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
+ gl.glTranslatef(0.0f, 0.0f, 0.4f);
+ gl.glRotatef(head_angle, 1.0f, 0.0f, 0.0f);
+ gl.glTranslatef(0.0f, 0.0f, -0.4f);
+ myCylinder(obj, 0.23f, 0.21f, 1.6f);
+ gl.glRotatef(180.0f, 1.0f, 0.0f, 0.0f);
+ glu.gluDisk(obj, 0.0f, 0.23f, 20, 1);
+ gl.glPopMatrix();
+ }
+
+ /* Draws the flywheel. */
+ private void draw_flywheel()
+ {
+ gl.glPushMatrix();
+ gl.glColor4f(0.5f, 0.5f, 1.0f, 1.0f);
+ gl.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
+ myCylinder(obj, 0.625f, 0.08f, 0.5f);
+ gl.glPopMatrix();
+ }
+
+/* Draws the crank bell, and the pivot pin for the piston. Also calls the
+ appropreate display list of a piston doing the nesacary rotations before
+ hand. */
+ private void draw_crankbell()
+ {
+ gl.glPushMatrix();
+ gl.glColor4f(1.0f, 0.5f, 0.5f, 1.0f);
+ gl.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
+ myCylinder(obj, 0.3f, 0.08f, 0.12f);
+
+ gl.glColor4f(0.5f, 0.1f, 0.5f, 1.0f);
+ gl.glTranslatef(0.0f, 0.2f, 0.0f);
+ myCylinder(obj, 0.06f, 0.0f, 0.34f);
+
+ gl.glTranslatef(0.0f, 0.0f, 0.22f);
+ gl.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
+ gl.glRotatef(((float)crank_angle)-head_angle, 1.0f, 0.0f, 0.0f);
+ if (filled)
+ {
+ if (textured)
+ gl.glCallList(list_piston_texture);
+ else
+ gl.glCallList(list_piston_filled);
+ }
+ else
+ draw_piston();
+ gl.glPopMatrix();
+ }
+
+ /* Draws the complete crank. Piston also gets drawn through
+ the crank bell function. */
+ private void draw_crank()
+ {
+ gl.glPushMatrix();
+ gl.glRotatef(crank_angle, 1.0f, 0.0f, 0.0f);
+
+ gl.glPushMatrix();
+ gl.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
+ gl.glTranslatef(0.0f, 0.0f, -1.0f);
+ myCylinder(obj, 0.08f, 0.0f, 1.4f);
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glTranslatef(0.28f, 0.0f, 0.0f);
+ draw_crankbell();
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glTranslatef(-0.77f, 0.0f, 0.0f);
+ if (filled)
+ {
+ if (textured)
+ gl.glCallList(list_flywheel_texture);
+ else
+ gl.glCallList(list_flywheel_filled);
+ }
+ else
+ draw_flywheel();
+ gl.glPopMatrix();
+ gl.glPopMatrix();
+ }
+
+ /* Makes a simple checkered pattern image. (Copied from the
+ redbook example "checker.c".) */
+ private void make_image()
+ {
+ int c, idx = 0;
+ for (int i = 0; i < IMAGE_WIDTH; i++)
+ {
+ for (int j = 0; j < IMAGE_HEIGHT; j++)
+ {
+ c = ((((i & 0x8) == 0) ^ ((j & 0x8)) == 0)) ? 255 : 0;
+ image[idx++] = (byte)c;
+ image[idx++] = (byte)c;
+ image[idx++] = (byte)c;
+ }
+ }
+ }
+
+ /* Makes the head lookup table for all possible crank angles. */
+ private void make_table()
+ {
+ for (int i = 0; i < 360; i++)
+ {
+ float rads = PHASE-(((float)i)/FREQ_DIV);
+ head_look_up_table[i] =
+ MAGNITUDE *
+ (float)Math.atan
+ ((ARC_RADIUS*Math.sin(rads)) /
+ (ARC_LENGTH-(ARC_RADIUS*Math.cos(rads))));
+ }
+ }
+
+ // Imported from glut.
+ private void glutWireCube(float size)
+ {
+ drawBox(size, GL_LINE_LOOP);
+ }
+
+ // Imported from glut.
+ private void glutSolidCube(float size)
+ {
+ drawBox(size, GL_QUADS);
+ }
+
+ // Imported from glut.
+ private void drawBox(float size, int type)
+ {
+ float v[][] = new float[8][3];
+ int i;
+
+ v[0][0] = v[1][0] = v[2][0] = v[3][0] = -size / 2;
+ v[4][0] = v[5][0] = v[6][0] = v[7][0] = size / 2;
+ v[0][1] = v[1][1] = v[4][1] = v[5][1] = -size / 2;
+ v[2][1] = v[3][1] = v[6][1] = v[7][1] = size / 2;
+ v[0][2] = v[3][2] = v[4][2] = v[7][2] = -size / 2;
+ v[1][2] = v[2][2] = v[5][2] = v[6][2] = size / 2;
+
+ for (i = 5; i >= 0; i--)
+ {
+ gl.glBegin(type);
+ gl.glNormal3fv(boxnormals[i]);
+ gl.glVertex3fv(v[boxfaces[i][0]]);
+ gl.glVertex3fv(v[boxfaces[i][1]]);
+ gl.glVertex3fv(v[boxfaces[i][2]]);
+ gl.glVertex3fv(v[boxfaces[i][3]]);
+ gl.glEnd();
+ }
+ }
+ }
+}
diff --git a/demos/RonsDemos/steam_plugin13.html b/demos/RonsDemos/steam_plugin13.html
new file mode 100644
index 0000000..252422e
--- /dev/null
+++ b/demos/RonsDemos/steam_plugin13.html
@@ -0,0 +1,53 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Steam by Troy Robinette; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Steam applet
+<br>Originially written by Troy Robinette
+<br>Ported to Java by Ron Cemer
+<br>Right click within the window for a menu of options.
+<br>Left-click within the window, then press any of the following keys:
+<br>Arrow keys rotate the model.
+<br>+ and - keys speed up or slow down the simulation.
+<br>While paused, a and z keys single-step forward and backward.
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "steam.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "steam.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "steam.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "steam.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/surface.html b/demos/RonsDemos/surface.html
new file mode 100644
index 0000000..fa384a5
--- /dev/null
+++ b/demos/RonsDemos/surface.html
@@ -0,0 +1,18 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Surface by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Surface applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>Click inside the window to toggle visibility of the control points.
+<br>
+<applet code="surface.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/surface.java b/demos/RonsDemos/surface.java
new file mode 100644
index 0000000..2d959b8
--- /dev/null
+++ b/demos/RonsDemos/surface.java
@@ -0,0 +1,263 @@
+/**
+ * @(#) surface.java
+ * @(#) author: Silicon Graphics (converted to Java by Ron Cemer)
+ */
+
+/*
+ * Copyright (c) 1993-1997, Silicon Graphics, Inc.
+ * ALL RIGHTS RESERVED
+ * Permission to use, copy, modify, and distribute this software for
+ * any purpose and without fee is hereby granted, provided that the above
+ * copyright notice appear in all copies and that both the copyright notice
+ * and this permission notice appear in supporting documentation, and that
+ * the name of Silicon Graphics, Inc. not be used in advertising
+ * or publicity pertaining to distribution of the software without specific,
+ * written prior permission.
+ *
+ * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
+ * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
+ * GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
+ * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
+ * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
+ * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
+ * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN
+ * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
+ * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * US Government Users Restricted Rights
+ * Use, duplication, or disclosure by the Government is subject to
+ * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
+ * (c)(1)(ii) of the Rights in Technical Data and Computer Software
+ * clause at DFARS 252.227-7013 and/or in similar or successor
+ * clauses in the FAR or the DOD or NASA FAR Supplement.
+ * Unpublished-- rights reserved under the copyright laws of the
+ * United States. Contractor/manufacturer is Silicon Graphics,
+ * Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
+ *
+ * OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
+ */
+
+/*
+ * This program draws a NURBS surface in the shape of a
+ * symmetrical hill. The 'c' keyboard key allows you to
+ * toggle the visibility of the control points themselves.
+ * Note that some of the control points are hidden by the
+ * surface itself.
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+
+public class surface extends Applet
+{
+ surfaceCanvas canvas = null;
+
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new surfaceCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Start the applet */
+
+
+ public void start()
+ {
+ }
+
+
+ /* Stop the applet */
+
+
+ public void stop()
+ {
+ }
+
+
+ /* Destroy the applet */
+
+
+
+ /* Local GLCanvas extension class */
+
+
+ private class surfaceCanvas extends GLCanvas implements MouseListener
+ {
+ float ctlpoints[] = new float [4*4*3];
+ boolean showPoints = false;
+ int theNurb;
+
+ public surfaceCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ float mat_diffuse[] = { 0.7f, 0.7f, 0.7f, 1.0f };
+ float mat_specular[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ float mat_shininess[] = { 100.0f };
+
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, mat_shininess);
+
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glEnable(GL_AUTO_NORMAL);
+ gl.glEnable(GL_NORMALIZE);
+
+ init_surface();
+
+ theNurb = glu.gluNewNurbsRenderer();
+ glu.gluNurbsProperty(theNurb, GLU_SAMPLING_TOLERANCE, 25.0f);
+ glu.gluNurbsProperty(theNurb, GLU_DISPLAY_MODE, GLU_FILL);
+
+ glj.gljCheckGL();
+
+ addMouseListener(this);
+ }
+
+ public void cvsDispose()
+ {
+ System.out.println("destroy(): " + this);
+ removeMouseListener(this);
+ super.cvsDispose();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ glu.gluPerspective(45.0f,(double)width/(double)height,3.0f,8.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ gl.glTranslatef(0.0f, 0.0f, -5.0f);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ float knots[] = {0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f};
+ int i, j;
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ gl.glPushMatrix();
+ gl.glRotatef(330.0f, 1.0f,0.0f,0.0f);
+ gl.glScalef (0.5f, 0.5f, 0.5f);
+
+ glu.gluBeginSurface(theNurb);
+ glu.gluNurbsSurface
+ (theNurb,
+ 8,
+ knots,
+ 8,
+ knots,
+ (4 * 3),
+ 3,
+ ctlpoints,
+ 4,
+ 4,
+ GL_MAP2_VERTEX_3);
+ glu.gluEndSurface(theNurb);
+
+ if (showPoints)
+ {
+ gl.glPointSize(5.0f);
+ gl.glDisable(GL_LIGHTING);
+ gl.glColor3f(1.0f, 1.0f, 0.0f);
+ gl.glBegin(GL_POINTS);
+ for (i = 0; i < 4; i++)
+ {
+ for (j = 0; j < 4; j++)
+ {
+ gl.glVertex3f
+ (ctlpoints[(i*12)+(j*3)+0],
+ ctlpoints[(i*12)+(j*3)+1],
+ ctlpoints[(i*12)+(j*3)+2]);
+ }
+ }
+ gl.glEnd();
+ gl.glEnable(GL_LIGHTING);
+ }
+ gl.glPopMatrix();
+ gl.glFlush();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ private void init_surface()
+ {
+ for (int u = 0; u < 4; u++)
+ {
+ for (int v = 0; v < 4; v++)
+ {
+ ctlpoints[(u*12)+(v*3)+0] = 2.0f*((float)u - 1.5f);
+ ctlpoints[(u*12)+(v*3)+1] = 2.0f*((float)v - 1.5f);
+ if ( (u == 1 || u == 2) && (v == 1 || v == 2) )
+ ctlpoints[(u*12)+(v*3)+2] = 3.0f;
+ else
+ ctlpoints[(u*12)+(v*3)+2] = -3.0f;
+ }
+ }
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ showPoints = !showPoints;
+ repaint();
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ }
+ }
+}
diff --git a/demos/RonsDemos/surface_plugin13.html b/demos/RonsDemos/surface_plugin13.html
new file mode 100644
index 0000000..711d650
--- /dev/null
+++ b/demos/RonsDemos/surface_plugin13.html
@@ -0,0 +1,49 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Surface by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Surface applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>Click inside the window to toggle visibility of the control points.
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "surface.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "surface.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "surface.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "surface.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/teapots.html b/demos/RonsDemos/teapots.html
new file mode 100644
index 0000000..834c206
--- /dev/null
+++ b/demos/RonsDemos/teapots.html
@@ -0,0 +1,17 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Teapots by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Teapots applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>
+<applet code="teapots.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/teapots.java b/demos/RonsDemos/teapots.java
new file mode 100644
index 0000000..c59945a
--- /dev/null
+++ b/demos/RonsDemos/teapots.java
@@ -0,0 +1,465 @@
+/**
+ * @(#) teapots.java
+ * @(#) author: Silicon Graphics, Inc. (converted to Java by Ron Cemer)
+ */
+
+/*
+ * Copyright (c) 1993-1997, Silicon Graphics, Inc.
+ * ALL RIGHTS RESERVED
+ * Permission to use, copy, modify, and distribute this software for
+ * any purpose and without fee is hereby granted, provided that the above
+ * copyright notice appear in all copies and that both the copyright notice
+ * and this permission notice appear in supporting documentation, and that
+ * the name of Silicon Graphics, Inc. not be used in advertising
+ * or publicity pertaining to distribution of the software without specific,
+ * written prior permission.
+ *
+ * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
+ * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
+ * GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
+ * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
+ * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
+ * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
+ * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN
+ * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
+ * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * US Government Users Restricted Rights
+ * Use, duplication, or disclosure by the Government is subject to
+ * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
+ * (c)(1)(ii) of the Rights in Technical Data and Computer Software
+ * clause at DFARS 252.227-7013 and/or in similar or successor
+ * clauses in the FAR or the DOD or NASA FAR Supplement.
+ * Unpublished-- rights reserved under the copyright laws of the
+ * United States. Contractor/manufacturer is Silicon Graphics,
+ * Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
+ *
+ * OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
+ */
+
+/*
+ * This program demonstrates lots of material properties.
+ * A single light source illuminates the objects.
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+
+public class teapots extends Applet
+{
+ // Data for drawing teapots:
+ /* Rim, body, lid, and bottom data must be reflected in x and
+ y; handle and spout data across the y axis only. */
+ private static final int patchdata[][] =
+ {
+ /* rim */
+ {102, 103, 104, 105, 4, 5, 6, 7, 8, 9, 10, 11,
+ 12, 13, 14, 15},
+ /* body */
+ {12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27},
+ {24, 25, 26, 27, 29, 30, 31, 32, 33, 34, 35, 36,
+ 37, 38, 39, 40},
+ /* lid */
+ {96, 96, 96, 96, 97, 98, 99, 100, 101, 101, 101,
+ 101, 0, 1, 2, 3,},
+ {0, 1, 2, 3, 106, 107, 108, 109, 110, 111, 112,
+ 113, 114, 115, 116, 117},
+ /* bottom */
+ {118, 118, 118, 118, 124, 122, 119, 121, 123, 126,
+ 125, 120, 40, 39, 38, 37},
+ /* handle */
+ {41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
+ 53, 54, 55, 56},
+ {53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
+ 28, 65, 66, 67},
+ /* spout */
+ {68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
+ 80, 81, 82, 83},
+ {80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91,
+ 92, 93, 94, 95}
+ };
+ private static final float cpdata[][] =
+ {
+ {0.2f, 0.0f, 2.7f}, {0.2f, -0.112f, 2.7f}, {0.112f, -0.2f, 2.7f}, {0.0f,
+ -0.2f, 2.7f}, {1.3375f, 0.0f, 2.53125f}, {1.3375f, -0.749f, 2.53125f},
+ {0.749f, -1.3375f, 2.53125f}, {0.0f, -1.3375f, 2.53125f}, {1.4375f,
+ 0.0f, 2.53125f}, {1.4375f, -0.805f, 2.53125f}, {0.805f, -1.4375f,
+ 2.53125f}, {0.0f, -1.4375f, 2.53125f}, {1.5f, 0.0f, 2.4f}, {1.5f, -0.84f,
+ 2.4f}, {0.84f, -1.5f, 2.4f}, {0.0f, -1.5f, 2.4f}, {1.75f, 0.0f, 1.875f},
+ {1.75f, -0.98f, 1.875f}, {0.98f, -1.75f, 1.875f}, {0.0f, -1.75f,
+ 1.875f}, {2f, 0.0f, 1.35f}, {2f, -1.12f, 1.35f}, {1.12f, -2f, 1.35f},
+ {0.0f, -2f, 1.35f}, {2f, 0.0f, 0.9f}, {2f, -1.12f, 0.9f}, {1.12f, -2f,
+ 0.9f}, {0.0f, -2f, 0.9f}, {-2f, 0.0f, 0.9f}, {2f, 0.0f, 0.45f}, {2f, -1.12f,
+ 0.45f}, {1.12f, -2f, 0.45f}, {0.0f, -2f, 0.45f}, {1.5f, 0.0f, 0.225f},
+ {1.5f, -0.84f, 0.225f}, {0.84f, -1.5f, 0.225f}, {0.0f, -1.5f, 0.225f},
+ {1.5f, 0.0f, 0.15f}, {1.5f, -0.84f, 0.15f}, {0.84f, -1.5f, 0.15f}, {0.0f,
+ -1.5f, 0.15f}, {-1.6f, 0.0f, 2.025f}, {-1.6f, -0.3f, 2.025f}, {-1.5f,
+ -0.3f, 2.25f}, {-1.5f, 0.0f, 2.25f}, {-2.3f, 0.0f, 2.025f}, {-2.3f, -0.3f,
+ 2.025f}, {-2.5f, -0.3f, 2.25f}, {-2.5f, 0.0f, 2.25f}, {-2.7f, 0.0f,
+ 2.025f}, {-2.7f, -0.3f, 2.025f}, {-3f, -0.3f, 2.25f}, {-3f, 0.0f,
+ 2.25f}, {-2.7f, 0.0f, 1.8f}, {-2.7f, -0.3f, 1.8f}, {-3f, -0.3f, 1.8f},
+ {-3f, 0.0f, 1.8f}, {-2.7f, 0.0f, 1.575f}, {-2.7f, -0.3f, 1.575f}, {-3f,
+ -0.3f, 1.35f}, {-3f, 0.0f, 1.35f}, {-2.5f, 0.0f, 1.125f}, {-2.5f, -0.3f,
+ 1.125f}, {-2.65f, -0.3f, 0.9375f}, {-2.65f, 0.0f, 0.9375f}, {-2f,
+ -0.3f, 0.9f}, {-1.9f, -0.3f, 0.6f}, {-1.9f, 0.0f, 0.6f}, {1.7f, 0.0f,
+ 1.425f}, {1.7f, -0.66f, 1.425f}, {1.7f, -0.66f, 0.6f}, {1.7f, 0.0f,
+ 0.6f}, {2.6f, 0.0f, 1.425f}, {2.6f, -0.66f, 1.425f}, {3.1f, -0.66f,
+ 0.825f}, {3.1f, 0.0f, 0.825f}, {2.3f, 0.0f, 2.1f}, {2.3f, -0.25f, 2.1f},
+ {2.4f, -0.25f, 2.025f}, {2.4f, 0.0f, 2.025f}, {2.7f, 0.0f, 2.4f}, {2.7f,
+ -0.25f, 2.4f}, {3.3f, -0.25f, 2.4f}, {3.3f, 0.0f, 2.4f}, {2.8f, 0.0f,
+ 2.475f}, {2.8f, -0.25f, 2.475f}, {3.525f, -0.25f, 2.49375f},
+ {3.525f, 0.0f, 2.49375f}, {2.9f, 0.0f, 2.475f}, {2.9f, -0.15f, 2.475f},
+ {3.45f, -0.15f, 2.5125f}, {3.45f, 0.0f, 2.5125f}, {2.8f, 0.0f, 2.4f},
+ {2.8f, -0.15f, 2.4f}, {3.2f, -0.15f, 2.4f}, {3.2f, 0.0f, 2.4f}, {0.0f, 0.0f,
+ 3.15f}, {0.8f, 0.0f, 3.15f}, {0.8f, -0.45f, 3.15f}, {0.45f, -0.8f,
+ 3.15f}, {0.0f, -0.8f, 3.15f}, {0.0f, 0.0f, 2.85f}, {1.4f, 0.0f, 2.4f}, {1.4f,
+ -0.784f, 2.4f}, {0.784f, -1.4f, 2.4f}, {0.0f, -1.4f, 2.4f}, {0.4f, 0.0f,
+ 2.55f}, {0.4f, -0.224f, 2.55f}, {0.224f, -0.4f, 2.55f}, {0.0f, -0.4f,
+ 2.55f}, {1.3f, 0.0f, 2.55f}, {1.3f, -0.728f, 2.55f}, {0.728f, -1.3f,
+ 2.55f}, {0.0f, -1.3f, 2.55f}, {1.3f, 0.0f, 2.4f}, {1.3f, -0.728f, 2.4f},
+ {0.728f, -1.3f, 2.4f}, {0.0f, -1.3f, 2.4f}, {0.0f, 0.0f, 0.0f}, {1.425f,
+ -0.798f, 0.0f}, {1.5f, 0.0f, 0.075f}, {1.425f, 0.0f, 0.0f}, {0.798f, -1.425f,
+ 0.0f}, {0.0f, -1.5f, 0.075f}, {0.0f, -1.425f, 0.0f}, {1.5f, -0.84f, 0.075f},
+ {0.84f, -1.5f, 0.075f}
+ };
+ private static final float tex[] =
+ {
+ 0.0f, 0.0f,
+ 1.0f, 0.0f,
+ 0.0f, 1.0f,
+ 1.0f, 1.0f
+ };
+
+ teapotsCanvas canvas = null;
+
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new teapotsCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Start the applet */
+
+
+ public void start()
+ {
+ }
+
+
+ /* Stop the applet */
+
+
+ public void stop()
+ {
+ }
+
+ public static void main( String args[] )
+ {
+ Frame mainFrame = new Frame("teapots");
+
+ teapots applet = new teapots();
+
+ applet.setSize(400, 400);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ }
+
+
+ /* Local GLCanvas extension class */
+
+
+ private class teapotsCanvas extends GLCanvas
+ {
+ int teapotList;
+
+ public teapotsCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ float ambient[] = {0.0f, 0.0f, 0.0f, 1.0f};
+ float diffuse[] = {1.0f, 1.0f, 1.0f, 1.0f};
+ float specular[] = {1.0f, 1.0f, 1.0f, 1.0f};
+ float position[] = {0.0f, 3.0f, 3.0f, 0.0f};
+
+ float lmodel_ambient[] = {0.2f, 0.2f, 0.2f, 1.0f};
+ float local_view[] = {0.0f};
+
+ gl.glLightfv(GL_LIGHT0, GL_AMBIENT, ambient);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse);
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, position);
+ gl.glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);
+ gl.glLightModelfv(GL_LIGHT_MODEL_LOCAL_VIEWER, local_view);
+
+ gl.glFrontFace(GL_CW);
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_AUTO_NORMAL);
+ gl.glEnable(GL_NORMALIZE);
+ gl.glEnable(GL_DEPTH_TEST);
+ /* be efficient--make teapot display list */
+ teapotList = gl.glGenLists(1);
+ gl.glNewList(teapotList, GL_COMPILE);
+ glutSolidTeapot(1.0);
+ gl.glEndList();
+
+ glj.gljCheckGL();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ if (width <= height)
+ gl.glOrtho
+ (0.0f,
+ 16.0f,
+ 0.0f,
+ 16.0f*(float)height/(float)width,
+ -10.0f,
+ 10.0f);
+ else
+ gl.glOrtho
+ (0.0f,
+ 16.0f*(float)width/(float)height,
+ 0.0f,
+ 16.0,
+ -10.0f,
+ 10.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ /**
+ * First column: emerald, jade, obsidian, pearl, ruby, turquoise
+ * 2nd column: brass, bronze, chrome, copper, gold, silver
+ * 3rd column: black, cyan, green, red, white, yellow plastic
+ * 4th column: black, cyan, green, red, white, yellow rubber
+ */
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ renderTeapot
+ (2.0f, 17.0f, 0.0215f, 0.1745f, 0.0215f,
+ 0.07568f, 0.61424f, 0.07568f, 0.633f, 0.727811f, 0.633f, 0.6f);
+ renderTeapot
+ (2.0f, 14.0f, 0.135f, 0.2225f, 0.1575f,
+ 0.54f, 0.89f, 0.63f, 0.316228f, 0.316228f, 0.316228f, 0.1f);
+ renderTeapot
+ (2.0f, 11.0f, 0.05375f, 0.05f, 0.06625f,
+ 0.18275f, 0.17f, 0.22525f, 0.332741f, 0.328634f, 0.346435f, 0.3f);
+ renderTeapot
+ (2.0f, 8.0f, 0.25f, 0.20725f, 0.20725f,
+ 1f, 0.829f, 0.829f, 0.296648f, 0.296648f, 0.296648f, 0.088f);
+ renderTeapot
+ (2.0f, 5.0f, 0.1745f, 0.01175f, 0.01175f,
+ 0.61424f, 0.04136f, 0.04136f, 0.727811f, 0.626959f, 0.626959f, 0.6f);
+ renderTeapot
+ (2.0f, 2.0f, 0.1f, 0.18725f, 0.1745f,
+ 0.396f, 0.74151f, 0.69102f, 0.297254f, 0.30829f, 0.306678f, 0.1f);
+ renderTeapot
+ (6.0f, 17.0f, 0.329412f, 0.223529f, 0.027451f,
+ 0.780392f, 0.568627f, 0.113725f, 0.992157f, 0.941176f, 0.807843f,
+ 0.21794872f);
+ renderTeapot
+ (6.0f, 14.0f, 0.2125f, 0.1275f, 0.054f,
+ 0.714f, 0.4284f, 0.18144f, 0.393548f, 0.271906f, 0.166721f, 0.2f);
+ renderTeapot
+ (6.0f, 11.0f, 0.25f, 0.25f, 0.25f,
+ 0.4f, 0.4f, 0.4f, 0.774597f, 0.774597f, 0.774597f, 0.6f);
+ renderTeapot
+ (6.0f, 8.0f, 0.19125f, 0.0735f, 0.0225f,
+ 0.7038f, 0.27048f, 0.0828f, 0.256777f, 0.137622f, 0.086014f, 0.1f);
+ renderTeapot
+ (6.0f, 5.0f, 0.24725f, 0.1995f, 0.0745f,
+ 0.75164f, 0.60648f, 0.22648f, 0.628281f, 0.555802f, 0.366065f, 0.4f);
+ renderTeapot
+ (6.0f, 2.0f, 0.19225f, 0.19225f, 0.19225f,
+ 0.50754f, 0.50754f, 0.50754f, 0.508273f, 0.508273f, 0.508273f, 0.4f);
+ renderTeapot
+ (10.0f, 17.0f, 0.0f, 0.0f, 0.0f, 0.01f, 0.01f, 0.01f,
+ 0.50f, 0.50f, 0.50f, .25f);
+ renderTeapot
+ (10.0f, 14.0f, 0.0f, 0.1f, 0.06f, 0.0f, 0.50980392f, 0.50980392f,
+ 0.50196078f, 0.50196078f, 0.50196078f, .25f);
+ renderTeapot
+ (10.0f, 11.0f, 0.0f, 0.0f, 0.0f,
+ 0.1f, 0.35f, 0.1f, 0.45f, 0.55f, 0.45f, .25f);
+ renderTeapot
+ (10.0f, 8.0f, 0.0f, 0.0f, 0.0f, 0.5f, 0.0f, 0.0f,
+ 0.7f, 0.6f, 0.6f, .25f);
+ renderTeapot
+ (10.0f, 5.0f, 0.0f, 0.0f, 0.0f, 0.55f, 0.55f, 0.55f,
+ 0.70f, 0.70f, 0.70f, .25f);
+ renderTeapot
+ (10.0f, 2.0f, 0.0f, 0.0f, 0.0f, 0.5f, 0.5f, 0.0f,
+ 0.60f, 0.60f, 0.50f, .25f);
+ renderTeapot
+ (14.0f, 17.0f, 0.02f, 0.02f, 0.02f, 0.01f, 0.01f, 0.01f,
+ 0.4f, 0.4f, 0.4f, .078125f);
+ renderTeapot
+ (14.0f, 14.0f, 0.0f, 0.05f, 0.05f, 0.4f, 0.5f, 0.5f,
+ 0.04f, 0.7f, 0.7f, .078125f);
+ renderTeapot
+ (14.0f, 11.0f, 0.0f, 0.05f, 0.0f, 0.4f, 0.5f, 0.4f,
+ 0.04f, 0.7f, 0.04f, .078125f);
+ renderTeapot
+ (14.0f, 8.0f, 0.05f, 0.0f, 0.0f, 0.5f, 0.4f, 0.4f,
+ 0.7f, 0.04f, 0.04f, .078125f);
+ renderTeapot
+ (14.0f, 5.0f, 0.05f, 0.05f, 0.05f, 0.5f, 0.5f, 0.5f,
+ 0.7f, 0.7f, 0.7f, .078125f);
+ renderTeapot
+ (14.0f, 2.0f, 0.05f, 0.05f, 0.0f, 0.5f, 0.5f, 0.4f,
+ 0.7f, 0.7f, 0.04f, .078125f);
+ gl.glFlush();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ /*
+ * Move object into position. Use 3rd through 12th
+ * parameters to specify the material property. Draw a teapot.
+ */
+ private void renderTeapot
+ (float x,
+ float y,
+ float ambr,
+ float ambg,
+ float ambb,
+ float difr,
+ float difg,
+ float difb,
+ float specr,
+ float specg,
+ float specb,
+ float shine)
+ {
+ float mat[] = new float[4];
+
+ gl.glPushMatrix();
+ gl.glTranslatef(x, y, 0.0f);
+ mat[0] = ambr; mat[1] = ambg; mat[2] = ambb; mat[3] = 1.0f;
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, mat);
+ mat[0] = difr; mat[1] = difg; mat[2] = difb;
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, mat);
+ mat[0] = specr; mat[1] = specg; mat[2] = specb;
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, mat);
+ gl.glMaterialf(GL_FRONT, GL_SHININESS, shine * 128.0f);
+ gl.glCallList(teapotList);
+ gl.glPopMatrix();
+ }
+
+ // Imported from glut.
+ private void glutSolidTeapot(double scale)
+ {
+ teapot(14, scale, GL_FILL);
+ }
+
+ // Imported from glut.
+ private void teapot(int grid, double scale, int type)
+ {
+ float p[] = new float[4*4*3];
+ float q[] = new float[4*4*3];
+ float r[] = new float[4*4*3];
+ float s[] = new float[4*4*3];
+ float sc = (float)(0.5*scale);
+
+ gl.glPushAttrib(GL_ENABLE_BIT | GL_EVAL_BIT);
+ gl.glEnable(GL_AUTO_NORMAL);
+ gl.glEnable(GL_NORMALIZE);
+ gl.glEnable(GL_MAP2_VERTEX_3);
+ gl.glEnable(GL_MAP2_TEXTURE_COORD_2);
+ gl.glPushMatrix();
+ gl.glRotatef(270.0f, 1.0f, 0.0f, 0.0f);
+ gl.glScalef(sc, sc, sc);
+ gl.glTranslatef(0.0f, 0.0f, -1.5f);
+ for (int i = 0; i < 10; i++)
+ {
+ for (int j = 0; j < 4; j++)
+ {
+ for (int k = 0; k < 4; k++)
+ {
+ for (int l = 0; l < 3; l++)
+ {
+ p[(j*12)+(k*3)+l] = cpdata[patchdata[i][j * 4 + k]][l];
+ q[(j*12)+(k*3)+l] = cpdata[patchdata[i][j * 4 + (3 - k)]][l];
+ if (l == 1)
+ q[(j*12)+(k*3)+l] *= -1.0f;
+ if (i < 6)
+ {
+ r[(j*12)+(k*3)+l] =
+ cpdata[patchdata[i][j * 4 + (3 - k)]][l];
+ if (l == 0)
+ r[(j*12)+(k*3)+l] *= -1.0f;
+ s[(j*12)+(k*3)+l] =
+ cpdata[patchdata[i][j * 4 + k]][l];
+ if (l == 0)
+ s[(j*12)+(k*3)+l] *= -1.0f;
+ if (l == 1)
+ s[(j*12)+(k*3)+l] *= -1.0f;
+ }
+ }
+ }
+ }
+ gl.glMap2f
+ (GL_MAP2_TEXTURE_COORD_2, 0, 1, 2, 2, 0, 1, 4, 2, tex);
+ gl.glMap2f
+ (GL_MAP2_VERTEX_3, 0, 1, 3, 4, 0, 1, 12, 4, p);
+ gl.glMapGrid2f(grid, 0.0f, 1.0f, grid, 0.0f, 1.0f);
+ gl.glEvalMesh2(type, 0, grid, 0, grid);
+ gl.glMap2f(GL_MAP2_VERTEX_3, 0, 1, 3, 4, 0, 1, 12, 4, q);
+ gl.glEvalMesh2(type, 0, grid, 0, grid);
+ if (i < 6)
+ {
+ gl.glMap2f(GL_MAP2_VERTEX_3, 0, 1, 3, 4, 0, 1, 12, 4, r);
+ gl.glEvalMesh2(type, 0, grid, 0, grid);
+ gl.glMap2f(GL_MAP2_VERTEX_3, 0, 1, 3, 4, 0, 1, 12, 4, s);
+ gl.glEvalMesh2(type, 0, grid, 0, grid);
+ }
+ }
+ gl.glPopMatrix();
+ gl.glPopAttrib();
+ }
+ }
+}
diff --git a/demos/RonsDemos/teapots_plugin13.html b/demos/RonsDemos/teapots_plugin13.html
new file mode 100644
index 0000000..19ee75d
--- /dev/null
+++ b/demos/RonsDemos/teapots_plugin13.html
@@ -0,0 +1,48 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Teapots by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Teapots applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "teapots.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "teapots.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "teapots.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "teapots.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/texgen.html b/demos/RonsDemos/texgen.html
new file mode 100644
index 0000000..859d220
--- /dev/null
+++ b/demos/RonsDemos/texgen.html
@@ -0,0 +1,22 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Texgen by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Texgen applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>Click inside the window, then press any of the following keys:
+<br>e/E: generate eye linear texture coordinates
+<br>o/O: generate object linear texture coordinates
+<br>s/S: use a slanted plane for texture coordinate generation
+<br>x/X: use a flat plane (x = 0) for texture coordinate generation
+<br>
+<applet code="texgen.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/texgen.java b/demos/RonsDemos/texgen.java
new file mode 100644
index 0000000..bbc3288
--- /dev/null
+++ b/demos/RonsDemos/texgen.java
@@ -0,0 +1,478 @@
+/**
+ * @(#) texgen.java
+ * @(#) author: Silicon Graphics, Inc. (converted to Java by Ron Cemer)
+ */
+
+/*
+ * Copyright (c) 1993-1997, Silicon Graphics, Inc.
+ * ALL RIGHTS RESERVED
+ * Permission to use, copy, modify, and distribute this software for
+ * any purpose and without fee is hereby granted, provided that the above
+ * copyright notice appear in all copies and that both the copyright notice
+ * and this permission notice appear in supporting documentation, and that
+ * the name of Silicon Graphics, Inc. not be used in advertising
+ * or publicity pertaining to distribution of the software without specific,
+ * written prior permission.
+ *
+ * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
+ * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
+ * GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
+ * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
+ * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
+ * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
+ * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN
+ * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
+ * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * US Government Users Restricted Rights
+ * Use, duplication, or disclosure by the Government is subject to
+ * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
+ * (c)(1)(ii) of the Rights in Technical Data and Computer Software
+ * clause at DFARS 252.227-7013 and/or in similar or successor
+ * clauses in the FAR or the DOD or NASA FAR Supplement.
+ * Unpublished-- rights reserved under the copyright laws of the
+ * United States. Contractor/manufacturer is Silicon Graphics,
+ * Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
+ *
+ * OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
+ */
+
+/* This program draws a texture mapped teapot with
+ * automatically generated texture coordinates. The
+ * texture is rendered as stripes on the teapot.
+ * Initially, the object is drawn with texture coordinates
+ * based upon the object coordinates of the vertex
+ * and distance from the plane x = 0. Pressing the 'e'
+ * key changes the coordinate generation to eye coordinates
+ * of the vertex. Pressing the 'o' key switches it back
+ * to the object coordinates. Pressing the 's' key
+ * changes the plane to a slanted one (x + y + z = 0).
+ * Pressing the 'x' key switches it back to x = 0.
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+
+public class texgen extends Applet
+{
+ // Data for drawing teapots:
+ /* Rim, body, lid, and bottom data must be reflected in x and
+ y; handle and spout data across the y axis only. */
+ private static final int patchdata[][] =
+ {
+ /* rim */
+ {102, 103, 104, 105, 4, 5, 6, 7, 8, 9, 10, 11,
+ 12, 13, 14, 15},
+ /* body */
+ {12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27},
+ {24, 25, 26, 27, 29, 30, 31, 32, 33, 34, 35, 36,
+ 37, 38, 39, 40},
+ /* lid */
+ {96, 96, 96, 96, 97, 98, 99, 100, 101, 101, 101,
+ 101, 0, 1, 2, 3,},
+ {0, 1, 2, 3, 106, 107, 108, 109, 110, 111, 112,
+ 113, 114, 115, 116, 117},
+ /* bottom */
+ {118, 118, 118, 118, 124, 122, 119, 121, 123, 126,
+ 125, 120, 40, 39, 38, 37},
+ /* handle */
+ {41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
+ 53, 54, 55, 56},
+ {53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
+ 28, 65, 66, 67},
+ /* spout */
+ {68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
+ 80, 81, 82, 83},
+ {80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91,
+ 92, 93, 94, 95}
+ };
+ private static final float cpdata[][] =
+ {
+ {0.2f, 0.0f, 2.7f}, {0.2f, -0.112f, 2.7f}, {0.112f, -0.2f, 2.7f}, {0.0f,
+ -0.2f, 2.7f}, {1.3375f, 0.0f, 2.53125f}, {1.3375f, -0.749f, 2.53125f},
+ {0.749f, -1.3375f, 2.53125f}, {0.0f, -1.3375f, 2.53125f}, {1.4375f,
+ 0.0f, 2.53125f}, {1.4375f, -0.805f, 2.53125f}, {0.805f, -1.4375f,
+ 2.53125f}, {0.0f, -1.4375f, 2.53125f}, {1.5f, 0.0f, 2.4f}, {1.5f, -0.84f,
+ 2.4f}, {0.84f, -1.5f, 2.4f}, {0.0f, -1.5f, 2.4f}, {1.75f, 0.0f, 1.875f},
+ {1.75f, -0.98f, 1.875f}, {0.98f, -1.75f, 1.875f}, {0.0f, -1.75f,
+ 1.875f}, {2f, 0.0f, 1.35f}, {2f, -1.12f, 1.35f}, {1.12f, -2f, 1.35f},
+ {0.0f, -2f, 1.35f}, {2f, 0.0f, 0.9f}, {2f, -1.12f, 0.9f}, {1.12f, -2f,
+ 0.9f}, {0.0f, -2f, 0.9f}, {-2f, 0.0f, 0.9f}, {2f, 0.0f, 0.45f}, {2f, -1.12f,
+ 0.45f}, {1.12f, -2f, 0.45f}, {0.0f, -2f, 0.45f}, {1.5f, 0.0f, 0.225f},
+ {1.5f, -0.84f, 0.225f}, {0.84f, -1.5f, 0.225f}, {0.0f, -1.5f, 0.225f},
+ {1.5f, 0.0f, 0.15f}, {1.5f, -0.84f, 0.15f}, {0.84f, -1.5f, 0.15f}, {0.0f,
+ -1.5f, 0.15f}, {-1.6f, 0.0f, 2.025f}, {-1.6f, -0.3f, 2.025f}, {-1.5f,
+ -0.3f, 2.25f}, {-1.5f, 0.0f, 2.25f}, {-2.3f, 0.0f, 2.025f}, {-2.3f, -0.3f,
+ 2.025f}, {-2.5f, -0.3f, 2.25f}, {-2.5f, 0.0f, 2.25f}, {-2.7f, 0.0f,
+ 2.025f}, {-2.7f, -0.3f, 2.025f}, {-3f, -0.3f, 2.25f}, {-3f, 0.0f,
+ 2.25f}, {-2.7f, 0.0f, 1.8f}, {-2.7f, -0.3f, 1.8f}, {-3f, -0.3f, 1.8f},
+ {-3f, 0.0f, 1.8f}, {-2.7f, 0.0f, 1.575f}, {-2.7f, -0.3f, 1.575f}, {-3f,
+ -0.3f, 1.35f}, {-3f, 0.0f, 1.35f}, {-2.5f, 0.0f, 1.125f}, {-2.5f, -0.3f,
+ 1.125f}, {-2.65f, -0.3f, 0.9375f}, {-2.65f, 0.0f, 0.9375f}, {-2f,
+ -0.3f, 0.9f}, {-1.9f, -0.3f, 0.6f}, {-1.9f, 0.0f, 0.6f}, {1.7f, 0.0f,
+ 1.425f}, {1.7f, -0.66f, 1.425f}, {1.7f, -0.66f, 0.6f}, {1.7f, 0.0f,
+ 0.6f}, {2.6f, 0.0f, 1.425f}, {2.6f, -0.66f, 1.425f}, {3.1f, -0.66f,
+ 0.825f}, {3.1f, 0.0f, 0.825f}, {2.3f, 0.0f, 2.1f}, {2.3f, -0.25f, 2.1f},
+ {2.4f, -0.25f, 2.025f}, {2.4f, 0.0f, 2.025f}, {2.7f, 0.0f, 2.4f}, {2.7f,
+ -0.25f, 2.4f}, {3.3f, -0.25f, 2.4f}, {3.3f, 0.0f, 2.4f}, {2.8f, 0.0f,
+ 2.475f}, {2.8f, -0.25f, 2.475f}, {3.525f, -0.25f, 2.49375f},
+ {3.525f, 0.0f, 2.49375f}, {2.9f, 0.0f, 2.475f}, {2.9f, -0.15f, 2.475f},
+ {3.45f, -0.15f, 2.5125f}, {3.45f, 0.0f, 2.5125f}, {2.8f, 0.0f, 2.4f},
+ {2.8f, -0.15f, 2.4f}, {3.2f, -0.15f, 2.4f}, {3.2f, 0.0f, 2.4f}, {0.0f, 0.0f,
+ 3.15f}, {0.8f, 0.0f, 3.15f}, {0.8f, -0.45f, 3.15f}, {0.45f, -0.8f,
+ 3.15f}, {0.0f, -0.8f, 3.15f}, {0.0f, 0.0f, 2.85f}, {1.4f, 0.0f, 2.4f}, {1.4f,
+ -0.784f, 2.4f}, {0.784f, -1.4f, 2.4f}, {0.0f, -1.4f, 2.4f}, {0.4f, 0.0f,
+ 2.55f}, {0.4f, -0.224f, 2.55f}, {0.224f, -0.4f, 2.55f}, {0.0f, -0.4f,
+ 2.55f}, {1.3f, 0.0f, 2.55f}, {1.3f, -0.728f, 2.55f}, {0.728f, -1.3f,
+ 2.55f}, {0.0f, -1.3f, 2.55f}, {1.3f, 0.0f, 2.4f}, {1.3f, -0.728f, 2.4f},
+ {0.728f, -1.3f, 2.4f}, {0.0f, -1.3f, 2.4f}, {0.0f, 0.0f, 0.0f}, {1.425f,
+ -0.798f, 0.0f}, {1.5f, 0.0f, 0.075f}, {1.425f, 0.0f, 0.0f}, {0.798f, -1.425f,
+ 0.0f}, {0.0f, -1.5f, 0.075f}, {0.0f, -1.425f, 0.0f}, {1.5f, -0.84f, 0.075f},
+ {0.84f, -1.5f, 0.075f}
+ };
+ private static final float tex[] =
+ {
+ 0.0f, 0.0f,
+ 1.0f, 0.0f,
+ 0.0f, 1.0f,
+ 1.0f, 1.0f
+ };
+
+ texgenCanvas canvas = null;
+
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = new texgenCanvas(d.width, d.height);
+ canvas.requestFocus();
+ add("Center", canvas);
+ }
+
+
+ /* Start the applet */
+
+
+ public void start()
+ {
+ }
+
+
+ /* Stop the applet */
+
+
+ public void stop()
+ {
+ }
+
+
+
+
+ /* Local GLCanvas extension class */
+
+
+ private class texgenCanvas extends GLCanvas
+ implements KeyListener, MouseListener
+ {
+ private static final int stripeImageWidth = 32;
+ private byte stripeImage[] = new byte[4*stripeImageWidth];
+ private int texName;
+
+ /* planes for texture coordinate generation */
+ private float xequalzero[] = {1.0f, 0.0f, 0.0f, 0.0f};
+ private float slanted[] = {1.0f, 1.0f, 1.0f, 0.0f};
+ private float currentCoeff[];
+ private int currentPlane;
+ private int currentGenMode;
+
+ public texgenCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glShadeModel(GL_SMOOTH);
+
+ makeStripeImage();
+ gl.glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
+
+ int tnbuf[] = new int[1];
+ gl.glGenTextures(1, tnbuf);
+ texName = tnbuf[0];
+ gl.glBindTexture(GL_TEXTURE_1D, texName);
+ gl.glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_WRAP_S, GL_REPEAT);
+ gl.glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ gl.glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
+ gl.glTexImage1D
+ (GL_TEXTURE_1D,
+ 0,
+ GL_RGBA,
+ stripeImageWidth,
+ 0,
+ GL_RGBA,
+ GL_UNSIGNED_BYTE,
+ stripeImage);
+ gl.glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
+ currentCoeff = xequalzero;
+ currentGenMode = GL_OBJECT_LINEAR;
+ currentPlane = GL_OBJECT_PLANE;
+ gl.glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, currentGenMode);
+ gl.glTexGenfv(GL_S, currentPlane, currentCoeff);
+
+ gl.glEnable(GL_TEXTURE_GEN_S);
+ gl.glEnable(GL_TEXTURE_1D);
+ gl.glEnable(GL_CULL_FACE);
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_AUTO_NORMAL);
+ gl.glEnable(GL_NORMALIZE);
+ gl.glFrontFace(GL_CW);
+ gl.glCullFace(GL_BACK);
+ gl.glMaterialf(GL_FRONT, GL_SHININESS, 64.0f);
+
+ glj.gljCheckGL();
+
+ addKeyListener(this);
+ addMouseListener(this);
+ }
+
+ public void cvsDispose()
+ {
+ System.out.println("destroy(): " + this);
+ removeKeyListener(this);
+ super.cvsDispose();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ if (width <= height)
+ gl.glOrtho
+ (-3.5f,3.5f,-3.5f*(float)height/(float)width,
+ 3.5f*(float)height/(float)width,-3.5f,3.5f);
+ else
+ gl.glOrtho
+ (-3.5f*(float)width/(float)height,
+ 3.5f*(float)width/(float)height,-3.5f,3.5f,-3.5f,3.5f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ if (width <= height)
+ gl.glOrtho
+ (-3.5f,3.5f,-3.5f*(float)height/(float)width,
+ 3.5f*(float)height/(float)width,-3.5f,3.5f);
+ else
+ gl.glOrtho
+ (-3.5f*(float)width/(float)height,
+ 3.5f*(float)width/(float)height,-3.5f,3.5f,-3.5f,3.5f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ gl.glPushMatrix ();
+ gl.glRotatef(45.0f, 0.0f, 0.0f, 1.0f);
+ gl.glBindTexture(GL_TEXTURE_1D, texName);
+ glutSolidTeapot(2.0f);
+ gl.glPopMatrix();
+ gl.glFlush();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ // Methods required for the implementation of KeyListener
+ public void keyPressed(KeyEvent e)
+ {
+ }
+
+ public void keyReleased(KeyEvent e)
+ {
+ }
+
+ public void keyTyped(KeyEvent e)
+ {
+ if (glj.gljMakeCurrent() == false) return;
+ boolean dorepaint = false;
+ switch ((char)e.getKeyChar())
+ {
+ case 'e':
+ case 'E':
+ currentGenMode = GL_EYE_LINEAR;
+ currentPlane = GL_EYE_PLANE;
+ gl.glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, currentGenMode);
+ gl.glTexGenfv(GL_S, currentPlane, currentCoeff);
+ dorepaint = true;
+ break;
+ case 'o':
+ case 'O':
+ currentGenMode = GL_OBJECT_LINEAR;
+ currentPlane = GL_OBJECT_PLANE;
+ gl.glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, currentGenMode);
+ gl.glTexGenfv(GL_S, currentPlane, currentCoeff);
+ dorepaint = true;
+ break;
+ case 's':
+ case 'S':
+ currentCoeff = slanted;
+ gl.glTexGenfv(GL_S, currentPlane, currentCoeff);
+ dorepaint = true;
+ break;
+ case 'x':
+ case 'X':
+ currentCoeff = xequalzero;
+ gl.glTexGenfv(GL_S, currentPlane, currentCoeff);
+ dorepaint = true;
+ break;
+ }
+ glj.gljFree();
+ if (dorepaint) repaint();
+ }
+
+ private void makeStripeImage()
+ {
+ for (int j = 0; j < stripeImageWidth; j++)
+ {
+ stripeImage[4*j] = (byte)((j<=4) ? 255 : 0);
+ stripeImage[4*j+1] = (byte)((j>4) ? 255 : 0);
+ stripeImage[4*j+2] = (byte)0;
+ stripeImage[4*j+3] = (byte)255;
+ }
+ }
+
+ // Imported from glut.
+ private void glutSolidTeapot(double scale)
+ {
+ teapot(14, scale, GL_FILL);
+ }
+
+ // Imported from glut.
+ private void teapot(int grid, double scale, int type)
+ {
+ float p[] = new float[4*4*3];
+ float q[] = new float[4*4*3];
+ float r[] = new float[4*4*3];
+ float s[] = new float[4*4*3];
+ float sc = (float)(0.5*scale);
+
+ gl.glPushAttrib(GL_ENABLE_BIT | GL_EVAL_BIT);
+ gl.glEnable(GL_AUTO_NORMAL);
+ gl.glEnable(GL_NORMALIZE);
+ gl.glEnable(GL_MAP2_VERTEX_3);
+ gl.glEnable(GL_MAP2_TEXTURE_COORD_2);
+ gl.glPushMatrix();
+ gl.glRotatef(270.0f, 1.0f, 0.0f, 0.0f);
+ gl.glScalef(sc, sc, sc);
+ gl.glTranslatef(0.0f, 0.0f, -1.5f);
+ for (int i = 0; i < 10; i++)
+ {
+ for (int j = 0; j < 4; j++)
+ {
+ for (int k = 0; k < 4; k++)
+ {
+ for (int l = 0; l < 3; l++)
+ {
+ p[(j*12)+(k*3)+l] = cpdata[patchdata[i][j * 4 + k]][l];
+ q[(j*12)+(k*3)+l] = cpdata[patchdata[i][j * 4 + (3 - k)]][l];
+ if (l == 1)
+ q[(j*12)+(k*3)+l] *= -1.0f;
+ if (i < 6)
+ {
+ r[(j*12)+(k*3)+l] =
+ cpdata[patchdata[i][j * 4 + (3 - k)]][l];
+ if (l == 0)
+ r[(j*12)+(k*3)+l] *= -1.0f;
+ s[(j*12)+(k*3)+l] =
+ cpdata[patchdata[i][j * 4 + k]][l];
+ if (l == 0)
+ s[(j*12)+(k*3)+l] *= -1.0f;
+ if (l == 1)
+ s[(j*12)+(k*3)+l] *= -1.0f;
+ }
+ }
+ }
+ }
+ gl.glMap2f
+ (GL_MAP2_TEXTURE_COORD_2, 0, 1, 2, 2, 0, 1, 4, 2, tex);
+ gl.glMap2f
+ (GL_MAP2_VERTEX_3, 0, 1, 3, 4, 0, 1, 12, 4, p);
+ gl.glMapGrid2f(grid, 0.0f, 1.0f, grid, 0.0f, 1.0f);
+ gl.glEvalMesh2(type, 0, grid, 0, grid);
+ gl.glMap2f(GL_MAP2_VERTEX_3, 0, 1, 3, 4, 0, 1, 12, 4, q);
+ gl.glEvalMesh2(type, 0, grid, 0, grid);
+ if (i < 6)
+ {
+ gl.glMap2f(GL_MAP2_VERTEX_3, 0, 1, 3, 4, 0, 1, 12, 4, r);
+ gl.glEvalMesh2(type, 0, grid, 0, grid);
+ gl.glMap2f(GL_MAP2_VERTEX_3, 0, 1, 3, 4, 0, 1, 12, 4, s);
+ gl.glEvalMesh2(type, 0, grid, 0, grid);
+ }
+ }
+ gl.glPopMatrix();
+ gl.glPopAttrib();
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+
+ public void mouseExited( MouseEvent evt )
+ { }
+ public void mousePressed( MouseEvent evt )
+ { }
+ public void mouseReleased( MouseEvent evt )
+ { }
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ if( comp.equals(this ) )
+ {
+ requestFocus();
+ }
+ }
+ }
+}
diff --git a/demos/RonsDemos/texgen_plugin13.html b/demos/RonsDemos/texgen_plugin13.html
new file mode 100644
index 0000000..f776b4c
--- /dev/null
+++ b/demos/RonsDemos/texgen_plugin13.html
@@ -0,0 +1,53 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Texgen by Silicon Graphics; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Texgen applet
+<br>Originially written by Silicon Graphics
+<br>Ported to Java by Ron Cemer
+<br>Click inside the window, then press any of the following keys:
+<br>e/E: generate eye linear texture coordinates
+<br>o/O: generate object linear texture coordinates
+<br>s/S: use a slanted plane for texture coordinate generation
+<br>x/X: use a flat plane (x = 0) for texture coordinate generation
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "texgen.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "texgen.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "texgen.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "texgen.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/texobj.html b/demos/RonsDemos/texobj.html
new file mode 100644
index 0000000..63f7d5b
--- /dev/null
+++ b/demos/RonsDemos/texobj.html
@@ -0,0 +1,18 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Texobj by Brian Paul; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Texobj applet
+<br>Originially written by Brian Paul
+<br>Ported to Java by Ron Cemer
+<br>
+<hr>
+<applet code="texobj.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/texobj.java b/demos/RonsDemos/texobj.java
new file mode 100644
index 0000000..49923a0
--- /dev/null
+++ b/demos/RonsDemos/texobj.java
@@ -0,0 +1,233 @@
+/**
+ * @(#) texobj.java
+ * @(#) author: Brian Paul (converted to Java by Ron Cemer)
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+public class texobj extends SimpleGLAnimApplet1
+{
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new texobjCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Local GLAnimCanvas extension class */
+
+
+ private class texobjCanvas extends GLAnimCanvas
+ {
+ private int TexObj[];
+ float Angle = 0.0f;
+
+ public texobjCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ setAnimateFps(30.0);
+
+ TexObj = new int[2];
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ int width = 8, height = 8;
+ byte tex1[] =
+ {
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 1, 0, 0, 0,
+ 0, 0, 0, 1, 1, 0, 0, 0,
+ 0, 0, 0, 0, 1, 0, 0, 0,
+ 0, 0, 0, 0, 1, 0, 0, 0,
+ 0, 0, 0, 0, 1, 0, 0, 0,
+ 0, 0, 0, 1, 1, 1, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0
+ };
+ byte tex2[] =
+ {
+ 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 2, 2, 0, 0, 0,
+ 0, 0, 2, 0, 0, 2, 0, 0,
+ 0, 0, 0, 0, 0, 2, 0, 0,
+ 0, 0, 0, 0, 2, 0, 0, 0,
+ 0, 0, 0, 2, 0, 0, 0, 0,
+ 0, 0, 2, 2, 2, 2, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0
+ };
+ byte tex[] = new byte[64*3];
+ int i, j;
+
+ gl.glDisable(GL_DITHER);
+
+ /* Setup texturing */
+ gl.glEnable(GL_TEXTURE_2D);
+ gl.glTexEnvi(GL_TEXTURE_ENV,GL_TEXTURE_ENV_MODE,GL_DECAL);
+ gl.glHint(GL_PERSPECTIVE_CORRECTION_HINT,GL_FASTEST);
+
+ /* generate texture object IDs */
+ gl.glGenTextures(2, TexObj);
+
+ /* setup first texture object */
+ gl.glBindTexture(GL_TEXTURE_2D, TexObj[0]);
+ /* red on white */
+ for (i = 0; i < height; i++)
+ {
+ for (j = 0; j < width; j++)
+ {
+ int p = i*width+j;
+ if ((tex1[(height-i-1)*width+j]) != (byte)0)
+ {
+ tex[p*3] = (byte)255;
+ tex[(p*3)+1] = (byte)0;
+ tex[(p*3)+2] = (byte)0;
+ }
+ else
+ {
+ tex[p*3] = (byte)255;
+ tex[(p*3)+1] = (byte)255;
+ tex[(p*3)+2] = (byte)255;
+ }
+ }
+ }
+ gl.glTexImage2D
+ (GL_TEXTURE_2D,
+ 0,
+ 3,
+ width,
+ height,
+ 0,
+ GL_RGB,
+ GL_UNSIGNED_BYTE,
+ tex);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_NEAREST);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_NEAREST);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL_REPEAT);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,GL_REPEAT);
+ /* end of texture object */
+
+ /* setup second texture object */
+ gl.glBindTexture(GL_TEXTURE_2D,TexObj[1]);
+ /* green on blue */
+ for (i = 0; i < height; i++)
+ {
+ for (j = 0; j < width; j++)
+ {
+ int p = i*width+j;
+ if ((tex2[(height-i-1)*width+j]) != (byte)0)
+ {
+ tex[p*3] = (byte)0;
+ tex[(p*3)+1] = (byte)255;
+ tex[(p*3)+2] = (byte)0;
+ }
+ else
+ {
+ tex[p*3] = (byte)0;
+ tex[(p*3)+1] = (byte)0;
+ tex[(p*3)+2] = (byte)255;
+ }
+ }
+ }
+ gl.glTexImage2D
+ (GL_TEXTURE_2D,
+ 0,
+ 3,
+ width,
+ height,
+ 0,
+ GL_RGB,
+ GL_UNSIGNED_BYTE,
+ tex);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_NEAREST);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_NEAREST);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL_REPEAT);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,GL_REPEAT);
+ /* end texture object */
+
+ glj.gljCheckGL();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ gl.glFrustum(-2.0, 2.0, -2.0, 2.0, 6.0, 20.0);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ gl.glTranslatef(0.0f, 0.0f, -8.0f);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ Angle += 0.2f;
+
+ gl.glDepthFunc(GL_EQUAL);
+ gl.glClear(GL_COLOR_BUFFER_BIT);
+
+ gl.glColor3f(1.0f, 1.0f, 1.0f);
+
+ /* draw first polygon */
+ gl.glPushMatrix();
+ gl.glTranslatef(-1.0f, 0.0f, 0.0f);
+ gl.glRotatef(Angle, 0.0f, 0.0f, 1.0f);
+ gl.glBindTexture(GL_TEXTURE_2D, TexObj[0]);
+ gl.glBegin(GL_POLYGON);
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex2f(-1.0f, -1.0f);
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex2f( 1.0f, -1.0f);
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex2f( 1.0f, 1.0f);
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex2f(-1.0f, 1.0f);
+ gl.glEnd();
+ gl.glPopMatrix();
+
+ /* draw second polygon */
+ gl.glPushMatrix();
+ gl.glTranslatef(1.0f, 0.0f, 0.0f);
+ gl.glRotatef(Angle-90.0f, 0.0f, 1.0f, 0.0f);
+ gl.glBindTexture(GL_TEXTURE_2D, TexObj[1]);
+ gl.glBegin(GL_POLYGON);
+ gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex2f(-1.0f, -1.0f);
+ gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex2f( 1.0f, -1.0f);
+ gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex2f( 1.0f, 1.0f);
+ gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex2f(-1.0f, 1.0f);
+ gl.glEnd();
+ gl.glPopMatrix();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+
+ //if (!isSuspended()) repaint(); // Animate at full speed.
+ }
+ }
+}
diff --git a/demos/RonsDemos/texobj_plugin13.html b/demos/RonsDemos/texobj_plugin13.html
new file mode 100644
index 0000000..30f3829
--- /dev/null
+++ b/demos/RonsDemos/texobj_plugin13.html
@@ -0,0 +1,49 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Texobj by Brian Paul; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Texobj applet
+<br>Originially written by Brian Paul
+<br>Ported to Java by Ron Cemer
+<br>
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "texobj.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "texobj.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "texobj.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "texobj.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/text3d.html b/demos/RonsDemos/text3d.html
new file mode 100644
index 0000000..40d67ac
--- /dev/null
+++ b/demos/RonsDemos/text3d.html
@@ -0,0 +1,17 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Text3d by Robert J. Doyle, Jr.; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Text3d applet
+<br>Originially written by Robert J. Doyle, Jr.
+<br>Ported to Java by Ron Cemer
+<br>
+<applet code="text3d.class" width=400 height=400>
+</applet>
+<hr>
+</body>
+</html>
diff --git a/demos/RonsDemos/text3d.java b/demos/RonsDemos/text3d.java
new file mode 100644
index 0000000..ed40bee
--- /dev/null
+++ b/demos/RonsDemos/text3d.java
@@ -0,0 +1,682 @@
+/**
+ * @(#) text3d.java
+ * @(#) author: Robert J. Doyle, Jr. (converted to Java by Ron Cemer)
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+public class text3d extends SimpleGLAnimApplet1
+{
+ private static final float letterM[][] =
+ {
+ {-3.125000f, 0.000000f, 0.000000f},
+ {-3.125000f, 6.208000f, 0.000000f},
+ {-1.233000f, 6.208000f, 0.000000f},
+ {0.003000f, 1.484000f, 0.000000f},
+ {1.223000f, 6.208000f, 0.000000f},
+ {3.123000f, 6.208000f, 0.000000f},
+ {3.123000f, 0.000000f, 0.000000f},
+ {1.923000f, 0.000000f, 0.000000f},
+ {1.923000f, 5.010000f, 0.000000f},
+ {0.659000f, 0.000000f, 0.000000f},
+ {-0.649000f, 0.000000f, 0.000000f},
+ {-1.925000f, 5.010000f, 0.000000f},
+ {-1.925000f, 0.000000f, 0.000000f}
+ };
+ private static final int letterMtris[][] =
+ {
+ { 1, 0, 12 },
+ { 1, 12, 11 },
+ { 1, 11, 2 },
+ { 2, 11, 3 },
+ { 11, 10, 3 },
+ { 3, 10, 9 },
+ { 3, 9, 8 },
+ { 3, 8, 4 },
+ { 4, 8, 5 },
+ { 5, 8, 7 },
+ { 5, 7, 6 },
+ };
+ private static final float letterO[][] =
+ {
+ {-3.038000f, 3.102000f, 0.0f},
+ {-2.974000f, 3.874000f, 0.0f},
+ {-2.827000f, 4.440000f, 0.0f},
+ {-2.802000f, 4.508000f, 0.0f},
+ {-2.544000f, 5.042000f, 0.0f},
+ {-2.502000f, 5.110000f, 0.0f},
+ {-2.223000f, 5.479000f, 0.0f},
+ {-2.132000f, 5.576000f, 0.0f},
+ {-1.784000f, 5.869000f, 0.0f},
+ {-1.678000f, 5.940000f, 0.0f},
+ {-1.260000f, 6.155000f, 0.0f},
+ {-1.148000f, 6.198000f, 0.0f},
+ {-0.677000f, 6.321000f, 0.0f},
+ {-0.638000f, 6.328000f, 0.0f},
+ {-0.002000f, 6.378000f, 0.0f},
+ {0.634000f, 6.328000f, 0.0f},
+ {1.107000f, 6.210000f, 0.0f},
+ {1.144000f, 6.198000f, 0.0f},
+ {1.570000f, 6.002000f, 0.0f},
+ {1.674000f, 5.940000f, 0.0f},
+ {2.038000f, 5.661000f, 0.0f},
+ {2.128000f, 5.576000f, 0.0f},
+ {2.428000f, 5.217000f, 0.0f},
+ {2.504000f, 5.104000f, 0.0f},
+ {2.762000f, 4.598000f, 0.0f},
+ {2.798000f, 4.508000f, 0.0f},
+ {2.960000f, 3.913000f, 0.0f},
+ {2.970000f, 3.862000f, 0.0f},
+ {3.034000f, 3.102000f, 0.0f},
+ {2.970000f, 2.342000f, 0.0f},
+ {2.815000f, 1.745000f, 0.0f},
+ {2.798000f, 1.696000f, 0.0f},
+ {2.554000f, 1.182000f, 0.0f},
+ {2.504000f, 1.100000f, 0.0f},
+ {2.221000f, 0.726000f, 0.0f},
+ {2.128000f, 0.628000f, 0.0f},
+ {1.776000f, 0.332000f, 0.0f},
+ {1.674000f, 0.264000f, 0.0f},
+ {1.256000f, 0.049000f, 0.0f},
+ {1.144000f, 0.006000f, 0.0f},
+ {0.672000f, -0.117000f, 0.0f},
+ {0.634000f, -0.124000f, 0.0f},
+ {-0.002000f, -0.174000f, 0.0f},
+ {-0.638000f, -0.124000f, 0.0f},
+ {-1.112000f, -0.006000f, 0.0f},
+ {-1.148000f, 0.006000f, 0.0f},
+ {-1.576000f, 0.202000f, 0.0f},
+ {-1.678000f, 0.264000f, 0.0f},
+ {-2.041000f, 0.540000f, 0.0f},
+ {-2.132000f, 0.628000f, 0.0f},
+ {-2.430000f, 0.983000f, 0.0f},
+ {-2.502000f, 1.094000f, 0.0f},
+ {-2.773000f, 1.622000f, 0.0f},
+ {-2.802000f, 1.696000f, 0.0f},
+ {-2.962000f, 2.258000f, 0.0f},
+ {-2.974000f, 2.330000f, 0.0f},
+ {-1.736000f, 3.102000f, 1.0f}, // Begin new strip
+ {-1.710000f, 3.578000f, 0.0f},
+ {-1.644000f, 3.934000f, 0.0f},
+ {-1.503000f, 4.328000f, 0.0f},
+ {-1.494000f, 4.346000f, 0.0f},
+ {-1.352000f, 4.593000f, 0.0f},
+ {-1.306000f, 4.656000f, 0.0f},
+ {-1.120000f, 4.857000f, 0.0f},
+ {-1.040000f, 4.926000f, 0.0f},
+ {-0.825000f, 5.067000f, 0.0f},
+ {-0.726000f, 5.116000f, 0.0f},
+ {-0.480000f, 5.200000f, 0.0f},
+ {-0.402000f, 5.218000f, 0.0f},
+ {-0.041000f, 5.257000f, 0.0f},
+ {-0.002000f, 5.258000f, 0.0f},
+ {0.361000f, 5.227000f, 0.0f},
+ {0.400000f, 5.220000f, 0.0f},
+ {0.650000f, 5.147000f, 0.0f},
+ {0.726000f, 5.116000f, 0.0f},
+ {0.950000f, 4.990000f, 0.0f},
+ {1.038000f, 4.926000f, 0.0f},
+ {1.239000f, 4.736000f, 0.0f},
+ {1.306000f, 4.656000f, 0.0f},
+ {1.462000f, 4.413000f, 0.0f},
+ {1.498000f, 4.342000f, 0.0f},
+ {1.635000f, 3.964000f, 0.0f},
+ {1.644000f, 3.934000f, 0.0f},
+ {1.710000f, 3.568000f, 0.0f},
+ {1.736000f, 3.102000f, 0.0f},
+ {1.710000f, 2.636000f, 0.0f},
+ {1.642000f, 2.268000f, 0.0f},
+ {1.508000f, 1.886000f, 0.0f},
+ {1.496000f, 1.860000f, 0.0f},
+ {1.351000f, 1.610000f, 0.0f},
+ {1.304000f, 1.546000f, 0.0f},
+ {1.115000f, 1.343000f, 0.0f},
+ {1.036000f, 1.276000f, 0.0f},
+ {0.823000f, 1.135000f, 0.0f},
+ {0.724000f, 1.086000f, 0.0f},
+ {0.480000f, 1.001000f, 0.0f},
+ {0.400000f, 0.984000f, 0.0f},
+ {0.035000f, 0.946000f, 0.0f},
+ {-0.002000f, 0.946000f, 0.0f},
+ {-0.368000f, 0.979000f, 0.0f},
+ {-0.402000f, 0.986000f, 0.0f},
+ {-0.653000f, 1.057000f, 0.0f},
+ {-0.726000f, 1.088000f, 0.0f},
+ {-0.952000f, 1.213000f, 0.0f},
+ {-1.040000f, 1.278000f, 0.0f},
+ {-1.240000f, 1.467000f, 0.0f},
+ {-1.306000f, 1.548000f, 0.0f},
+ {-1.460000f, 1.788000f, 0.0f},
+ {-1.494000f, 1.858000f, 0.0f},
+ {-1.639000f, 2.251000f, 0.0f},
+ {-1.644000f, 2.270000f, 0.0f},
+ {-1.710000f, 2.626000f, 0.0f}
+ };
+ private static final int letterOtris[][] =
+ {
+ { 0, 56, 1 },
+ { 1, 56, 57 },
+ { 1, 57, 2 },
+ { 2, 57, 58 },
+ { 2, 58, 3 },
+ { 3, 58, 59 },
+ { 3, 59, 4 },
+ { 4, 59, 60 },
+ { 4, 60, 5 },
+ { 5, 60, 61 },
+ { 5, 61, 6 },
+ { 6, 61, 62 },
+ { 6, 62, 7 },
+ { 7, 62, 63 },
+ { 7, 63, 8 },
+ { 8, 63, 64 },
+ { 8, 64, 9 },
+ { 9, 64, 65 },
+ { 9, 65, 10 },
+ { 10, 65, 66 },
+ { 10, 66, 11 },
+ { 11, 66, 67 },
+ { 11, 67, 12 },
+ { 12, 67, 68 },
+ { 12, 68, 13 },
+ { 13, 68, 69 },
+ { 13, 69, 14 },
+ { 14, 69, 70 },
+ { 14, 70, 15 },
+ { 15, 70, 71 },
+ { 15, 71, 16 },
+ { 16, 71, 72 },
+ { 16, 72, 17 },
+ { 17, 72, 73 },
+ { 17, 73, 18 },
+ { 18, 73, 74 },
+ { 18, 74, 19 },
+ { 19, 74, 75 },
+ { 19, 75, 20 },
+ { 20, 75, 76 },
+ { 20, 76, 21 },
+ { 21, 76, 77 },
+ { 21, 77, 22 },
+ { 22, 77, 78 },
+ { 22, 78, 23 },
+ { 23, 78, 79 },
+ { 23, 79, 24 },
+ { 24, 79, 80 },
+ { 24, 80, 25 },
+ { 25, 80, 81 },
+ { 25, 81, 26 },
+ { 26, 81, 82 },
+ { 26, 82, 27 },
+ { 27, 82, 83 },
+ { 27, 83, 28 },
+ { 28, 83, 84 },
+ { 28, 84, 29 },
+ { 29, 84, 85 },
+ { 29, 85, 30 },
+ { 30, 85, 86 },
+ { 30, 86, 31 },
+ { 31, 86, 87 },
+ { 31, 87, 32 },
+ { 32, 87, 88 },
+ { 32, 88, 33 },
+ { 33, 88, 89 },
+ { 33, 89, 34 },
+ { 34, 89, 90 },
+ { 34, 90, 35 },
+ { 35, 90, 91 },
+ { 35, 91, 36 },
+ { 36, 91, 92 },
+ { 36, 92, 37 },
+ { 37, 92, 93 },
+ { 37, 93, 38 },
+ { 38, 93, 94 },
+ { 38, 94, 39 },
+ { 39, 94, 95 },
+ { 39, 95, 40 },
+ { 40, 95, 96 },
+ { 40, 96, 41 },
+ { 41, 96, 97 },
+ { 41, 97, 42 },
+ { 42, 97, 98 },
+ { 42, 98, 43 },
+ { 43, 98, 99 },
+ { 43, 99, 44 },
+ { 44, 99, 100 },
+ { 44, 100, 45 },
+ { 45, 100, 101 },
+ { 45, 101, 46 },
+ { 46, 101, 102 },
+ { 46, 102, 47 },
+ { 47, 102, 103 },
+ { 47, 103, 48 },
+ { 48, 103, 104 },
+ { 48, 104, 49 },
+ { 49, 104, 105 },
+ { 49, 105, 50 },
+ { 50, 105, 106 },
+ { 50, 106, 51 },
+ { 51, 106, 107 },
+ { 51, 107, 52 },
+ { 52, 107, 108 },
+ { 52, 108, 53 },
+ { 53, 108, 109 },
+ { 53, 109, 54 },
+ { 54, 109, 110 },
+ { 54, 110, 55 },
+ { 55, 110, 111 },
+ { 55, 111, 0 },
+ { 0, 111, 56 },
+ };
+ private static final float letterT[][] =
+ {
+ {-0.640000f, 0.000000f, 0.0f},
+ {-0.640000f, 5.104000f, 0.0f},
+ {-2.476000f, 5.104000f, 0.0f},
+ {-2.476000f, 6.208000f, 0.0f},
+ {2.476000f, 6.208000f, 0.0f},
+ {2.476000f, 5.104000f, 0.0f},
+ {0.640000f, 5.104000f, 0.0f},
+ {0.640000f, 0.000000f, 0.0f}
+ };
+ private static final int letterTtris[][] =
+ {
+ { 1, 0, 7 },
+ { 1, 7, 6 },
+ { 3, 2, 1 },
+ { 3, 1, 6 },
+ { 3, 6, 4 },
+ { 4, 6, 5 },
+ };
+ private static final float letterH[][] =
+ {
+ {-2.570000f, 0.000000f, 0.0f},
+ {-2.570000f, 6.208000f, 0.0f},
+ {-1.282000f, 6.208000f, 0.0f},
+ {-1.282000f, 3.900000f, 0.0f},
+ {1.280000f, 3.900000f, 0.0f},
+ {1.280000f, 6.208000f, 0.0f},
+ {2.568000f, 6.208000f, 0.0f},
+ {2.568000f, 0.000000f, 0.0f},
+ {1.280000f, 0.000000f, 0.0f},
+ {1.280000f, 2.760000f, 0.0f},
+ {-1.282000f, 2.760000f, 0.0f},
+ {-1.282000f, 0.000000f, 0.0f}
+ };
+ private static final int letterHtris[][] =
+ {
+ { 1, 0, 11 },
+ { 1, 11, 10 },
+ { 1, 10, 3 },
+ { 1, 3, 2 },
+ { 3, 10, 9 },
+ { 3, 9, 4 },
+ { 6, 5, 4 },
+ { 6, 4, 9 },
+ { 6, 9, 8 },
+ { 6, 8, 7 },
+ };
+
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new text3dCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ /* Local GLAnimCanvas extension class */
+
+
+ private class text3dCanvas extends GLAnimCanvas
+ {
+ private final int
+ M_SIDE = 1, M_EDGE = 2, M_WHOLE = 3,
+ O_SIDE = 4, O_EDGE = 5, O_WHOLE = 6,
+ T_SIDE = 7, T_EDGE = 8, T_WHOLE = 9,
+ H_SIDE = 10, H_EDGE = 11, H_WHOLE = 12,
+ REPEAT_SIDE = 13, REPEAT_EDGE = 14, REPEAT1 = 15,
+ REPEAT2_SIDE = 16, REPEAT2_EDGE = 17, REPEAT2 = 18,
+ REPEAT3_SIDE = 19, REPEAT3_EDGE = 20, REPEAT3 = 21,
+ REPEAT4_SIDE = 22, REPEAT4_EDGE = 23, REPEAT4 = 24;
+ private float sideColor[] = {0.0f, 0.0f, 0.5f, 1.0f};
+ private float edgeColor[] = {0.7f, 0.7f, 0.0f, 1.0f};
+ private float shininess[] = {128.0f};
+ private float mat_specular[] = {0.7f, 0.7f, 0.7f, 1.0f};
+ private float width = 0.0f, width2 = 2.0f;
+
+ public text3dCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ setAnimateFps(30.0);
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ accumSize = 8;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ int count1 = letterM.length;
+ int count2 = letterO.length;
+ int count3 = letterT.length;
+ int count4 = letterH.length;
+
+ int i;
+
+ float light_ambient[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ float light_diffuse[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ float light_specular[] = { 1.0f, 1.0f, 1.0f, 1.0f };
+ /* light_position is NOT default value */
+ float light_position[] = { -1.0f, -1.0f, 1.0f, 0.0f };
+
+ gl.glLightfv(GL_LIGHT0, GL_AMBIENT, light_ambient);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, light_diffuse);
+ gl.glLightfv(GL_LIGHT0, GL_SPECULAR, light_specular);
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, light_position);
+
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glDepthFunc(GL_LESS);
+ gl.glEnable(GL_DEPTH_TEST);
+
+ gl.glDrawBuffer(GL_FRONT_AND_BACK);
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
+ gl.glClear(GL_COLOR_BUFFER_BIT);
+ gl.glClear(GL_ACCUM_BUFFER_BIT);
+ gl.glDrawBuffer(GL_BACK);
+
+ /* Zero position of text */
+
+ for(i = 0; i < count1; i++)
+ letterM[i][1] -= 3.175f;
+ for(i = 0; i < count2; i++)
+ letterO[i][1] -= 3.175f;
+ for(i = 0; i < count3; i++)
+ letterT[i][1] -= 3.175f;
+ for(i = 0; i < count4; i++)
+ letterH[i][1] -= 3.175f;
+
+ glj.gljCheckGL();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glViewport(0,0,width,height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ gl.glFrustum(-7.0f, 7.0f, -7.0f, 7.0f, 6.0f, 20.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ int i, j;
+ float xPos = -0.34f;
+ gl.glLoadIdentity();
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ gl.glTranslatef(0.0f, 0.0f, -10.0f);
+
+ extrudeSolidFromPolygon
+ (letterM, letterMtris, width2, REPEAT_SIDE, REPEAT_EDGE, REPEAT1);
+ extrudeSolidFromPolygon
+ (letterO, letterOtris, width2, REPEAT2_SIDE, REPEAT2_EDGE, REPEAT2);
+ extrudeSolidFromPolygon
+ (letterT, letterTtris, width2, REPEAT3_SIDE, REPEAT3_EDGE, REPEAT3);
+ extrudeSolidFromPolygon
+ (letterH, letterHtris, width2, REPEAT4_SIDE, REPEAT4_EDGE, REPEAT4);
+
+ for (j = 1; j < 5; j++)
+ {
+ width = 0.0f;
+ glj.gljCheckGL();
+ for (i = 0; i < 10; i++)
+ {
+ gl.glPushMatrix();
+ repeat(j);
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
+ switch (j)
+ {
+ case 1:
+ extrudeSolidFromPolygon
+ (letterM, letterMtris, width, M_SIDE, M_EDGE, M_WHOLE);
+ gl.glCallList(M_WHOLE);
+ break;
+ case 2:
+ extrudeSolidFromPolygon
+ (letterO, letterOtris, width, O_SIDE, O_EDGE, O_WHOLE);
+ gl.glCallList(O_WHOLE);
+ break;
+ case 3:
+ extrudeSolidFromPolygon
+ (letterT, letterTtris, width, T_SIDE, T_EDGE, T_WHOLE);
+ gl.glCallList(T_WHOLE);
+ break;
+ case 4:
+ extrudeSolidFromPolygon
+ (letterH, letterHtris, width, H_SIDE, H_EDGE, H_WHOLE);
+ gl.glCallList(H_WHOLE);
+ break;
+ }
+ glj.gljSwap();
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ width += 0.2f;
+ gl.glPopMatrix();
+ }
+ for (i = 0; i < 45 ; i++)
+ {
+ gl.glPushMatrix();
+ repeat(j);
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glRotatef(90.0f - (2.0f * i), 0.0f, 1.0f, 0.0f);
+ switch (j)
+ {
+ case 1:
+ gl.glCallList(M_WHOLE);
+ break;
+ case 2:
+ gl.glCallList(O_WHOLE);
+ break;
+ case 3:
+ gl.glCallList(T_WHOLE);
+ break;
+ case 4:
+ gl.glCallList(H_WHOLE);
+ break;
+ }
+ glj.gljSwap();
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ gl.glPopMatrix();
+ }
+ for (i = 1; i < 32 ; i++)
+ {
+ gl.glPushMatrix();
+ repeat(j);
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glTranslatef(i * xPos, i * 0.3f, i * -0.3f);
+ switch (j)
+ {
+ case 1:
+ gl.glCallList(M_WHOLE);
+ break;
+ case 2:
+ gl.glCallList(O_WHOLE);
+ break;
+ case 3:
+ gl.glCallList(T_WHOLE);
+ break;
+ case 4:
+ gl.glCallList(H_WHOLE);
+ break;
+ }
+ glj.gljSwap();
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ gl.glPopMatrix();
+ }
+ if (j == 1)
+ xPos += 0.25f;
+ else
+ xPos += 0.21f;
+ }
+ gl.glFlush();
+
+ glj.gljCheckGL();
+ glj.gljFree();
+
+ //if (!isSuspended()) repaint(); // Animate at full speed.
+ }
+
+ /* Mark Kilgard's tessellation code from the "dino" demos.
+ Bug fixes and re-write without GLU tesselator
+ by Ronald B. Cemer */
+ private void extrudeSolidFromPolygon
+ (float data[][],
+ int outlineTriIndices[][],
+ float thickness,
+ int side,
+ int edge,
+ int whole)
+ {
+ double dx, dy, len;
+ int i, j0, j1, j2;
+ int min, max, range;
+ float x0, y0, x1, y1;
+ int count = data.length;
+ int tricount = outlineTriIndices.length;
+
+ gl.glNewList(side, GL_COMPILE);
+ gl.glShadeModel(GL_SMOOTH);
+ gl.glBegin(GL_TRIANGLES);
+ for (i = 0; i < tricount; i++)
+ {
+ j0 = outlineTriIndices[i][0];
+ j1 = outlineTriIndices[i][1];
+ j2 = outlineTriIndices[i][2];
+ gl.glVertex3f(data[j0][0],data[j0][1],0.0f);
+ gl.glVertex3f(data[j1][0],data[j1][1],0.0f);
+ gl.glVertex3f(data[j2][0],data[j2][1],0.0f);
+ }
+ gl.glEnd();
+ gl.glEndList();
+
+ gl.glNewList(edge, GL_COMPILE);
+ for (min = max = 0; min < count; min = max)
+ {
+ for (max = min+1; max < count; max++)
+ if (data[max][2] != 0.0f) break;
+ range = max-min;
+ gl.glBegin(GL_QUAD_STRIP);
+ for (i = min; i <= max; i++)
+ {
+ j0 = i;
+ j1 = i+1;
+ if (j0 >= max) j0 -= range;
+ if (j1 >= max) j1 -= range;
+ x0 = data[j0][0];
+ y0 = data[j0][1];
+ x1 = data[j1][0];
+ y1 = data[j1][1];
+ gl.glVertex3f(x0, y0, 0.0f);
+ gl.glVertex3f(x0, y0, thickness);
+ // Normals
+ dx = y1 - y0;
+ dy = x0 - x1;
+ len = Math.sqrt(dx * dx + dy * dy);
+ gl.glNormal3f((float)(dx / len), (float)(dy / len), 0.0f);
+ }
+ gl.glEnd();
+ }
+ gl.glEndList();
+
+ gl.glNewList(whole, GL_COMPILE);
+ gl.glFrontFace(GL_CW);
+
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, edgeColor);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, shininess);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular);
+ gl.glCallList(edge);
+
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, sideColor);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, shininess);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular);
+ gl.glNormal3f(0.0f, 0.0f, -1.0f);
+ gl.glCallList(side);
+ gl.glPushMatrix();
+ gl.glTranslatef(0.0f, 0.0f, thickness);
+ gl.glFrontFace(GL_CCW);
+ gl.glNormal3f(0.0f, 0.0f, 1.0f);
+ gl.glCallList(side);
+ gl.glPopMatrix();
+
+ gl.glEndList();
+ }
+
+ private void repeat(int j)
+ {
+ if (j == 2)
+ {
+ gl.glPushMatrix();
+ gl.glTranslatef((31.0f * -0.34f) , 9.3f, -9.6f);
+ gl.glCallList(REPEAT1);
+ gl.glPopMatrix();
+ }
+ if (j == 3)
+ {
+ gl.glPushMatrix();
+ gl.glTranslatef(31.0f * -0.34f, 9.3f, -9.6f);
+ gl.glCallList(REPEAT1);
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glTranslatef(31.0f * -0.09f, 9.3f, -9.6f);
+ gl.glCallList(REPEAT2);
+ gl.glPopMatrix();
+ }
+ if (j == 4)
+ {
+ gl.glPushMatrix();
+ gl.glTranslatef(31.0f * -0.34f, 9.3f, -9.6f);
+ gl.glCallList(REPEAT1);
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glTranslatef(31.0f * -0.09f, 9.3f, -9.6f);
+ gl.glCallList(REPEAT2);
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glTranslatef(31.0f * 0.12f, 9.3f, -9.6f);
+ gl.glCallList(REPEAT3);
+ gl.glPopMatrix();
+ }
+ }
+ }
+}
diff --git a/demos/RonsDemos/text3d_plugin13.html b/demos/RonsDemos/text3d_plugin13.html
new file mode 100644
index 0000000..79c5976
--- /dev/null
+++ b/demos/RonsDemos/text3d_plugin13.html
@@ -0,0 +1,48 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Text3d by Robert J. Doyle, Jr.; ported to Java by Ron Cemer</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+Text3d applet
+<br>Originially written by Robert J. Doyle, Jr.
+<br>Ported to Java by Ron Cemer
+<br>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.3 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODE = "text3d.class" WIDTH = 400 HEIGHT = 400 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "text3d.class" WIDTH = 400 HEIGHT = 400></XMP>
+<PARAM NAME = CODE VALUE = "text3d.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
+<PARAM NAME="scriptable" VALUE="false">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "text3d.class" WIDTH = 400 HEIGHT = 400>
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</body>
+</html>
diff --git a/demos/SwingDemos/CrossColorJPanel.java b/demos/SwingDemos/CrossColorJPanel.java
new file mode 100644
index 0000000..44a6492
--- /dev/null
+++ b/demos/SwingDemos/CrossColorJPanel.java
@@ -0,0 +1,55 @@
+import java.awt.*;
+import javax.swing.*;
+import gl4java.*;
+import gl4java.swing.*;
+
+public class CrossColorJPanel extends GLJPanel
+{
+ public CrossColorJPanel( )
+ {
+ super();
+ }
+
+
+ public void init() {
+ reshape(getSize().width, getSize().height);
+ }
+
+ public void display()
+ {
+ System.out.println("i");
+ int i;
+
+ gl.glPushMatrix();
+ gl.glClear(GL_COLOR_BUFFER_BIT);
+
+ gl.glBegin(GLEnum.GL_LINES);
+ gl.glColor4f(0f, 0f, 1f, 1f);
+ gl.glVertex3i( 0, 0, 0);
+ gl.glVertex3i( 10, 10, 0);
+
+ gl.glColor4f(0f, 1f, 0f, 1f);
+ gl.glVertex3i( 0, 10, 0);
+ gl.glVertex3i( 10, 0, 0);
+
+ gl.glColor4f(1f, 0f, 0f, 1f);
+ gl.glVertex3i( 0, 5, 0);
+ gl.glVertex3i( 10, 5, 0);
+
+ gl.glColor4f(1f, 1f, 1f, 1f);
+ gl.glVertex3i( 5, 0, 0);
+ gl.glVertex3i( 5, 10, 0);
+ gl.glEnd();
+
+ gl.glPopMatrix();
+ }
+
+ public void reshape( int width, int height )
+ {
+ gl.glViewport(0, 0, width, height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ gl.glOrtho(0, 10, 0, 10, -50.0,50.0);
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+}
diff --git a/demos/SwingDemos/DrawColoredPrimitivesJPanel.java b/demos/SwingDemos/DrawColoredPrimitivesJPanel.java
new file mode 100644
index 0000000..66fc849
--- /dev/null
+++ b/demos/SwingDemos/DrawColoredPrimitivesJPanel.java
@@ -0,0 +1,79 @@
+/**
+ * @(#) DrawColoredPrimitives.java
+ * @(#) author: Joe Zimmerman (converted to Java by Sven Goethel)
+ */
+
+/* This program is free software under the license of LGPL */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.swing.*;
+
+public class DrawColoredPrimitivesJPanel extends GLAnimJPanel
+{
+ float rotate;
+
+ float LightAmbient[] = { 0.75f, 0.75f, 0.75f, 1.5f};
+ float LightDiffuse[] = { 1.0f, 1.0f, 1.0f, 0.9f};
+ float LightSpecular[] = { 0.8f, 0.8f, 0.8f, 1.0f};
+
+ public DrawColoredPrimitivesJPanel()
+ {
+ super(false);
+ setAnimateFps(30.0);
+ }
+
+ public void preInit()
+ {
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ reshape(getSize().width, getSize().height);
+
+ gl.glEnable(GL_LIGHT0);
+ gl.glLightfv(GL_LIGHT0, GL_AMBIENT, LightAmbient);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, LightDiffuse);
+ gl.glLightfv(GL_LIGHT0, GL_SPECULAR, LightSpecular);
+
+ glj.gljCheckGL();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ glu.gluPerspective(45, (float)width/(float)height, 1, 700);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ gl.glViewport(0,0,width,height);
+ }
+
+ public void display()
+ {
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+
+ gl.glColor4f(1, 1, 1, 1);
+
+ rotate++;
+
+ gl.glTranslatef(0, 0, -5);
+ gl.glRotatef(rotate, 0, 1, 0);
+ gl.glBegin(GL_POLYGON);
+ gl.glNormal3f( 1, 0, 0);
+ gl.glColor4f(1, 0, 0, 1); gl.glVertex3f( 0, 1, 0);
+ gl.glColor4f(0, 1, 0, 1); gl.glVertex3f(-1, -1, 0);
+ gl.glColor4f(0, 0, 1, 1); gl.glVertex3f( 1, -1, 0);
+ gl.glEnd();
+ }
+}
diff --git a/demos/SwingDemos/GLSwingDemoApplet.java b/demos/SwingDemos/GLSwingDemoApplet.java
new file mode 100755
index 0000000..33b0d95
--- /dev/null
+++ b/demos/SwingDemos/GLSwingDemoApplet.java
@@ -0,0 +1,168 @@
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.awt.Dimension;
+import javax.swing.*;
+import gl4java.*;
+import gl4java.swing.*;
+import gl4java.utils.glut.*;
+import gl4java.utils.glut.fonts.*;
+
+public class GLSwingDemoApplet extends SimpleGLJApplet1
+ implements GLEnum, GLUEnum, ActionListener, ItemListener
+{
+ String[] dataSize = {"offscreen-size: component",
+ "offscreen-size: 10x10",
+ "offscreen-size: 50x50",
+ "offscreen-size: 100x100",
+ "offscreen-size: 500x500",
+ "offscreen-size: 1000x1000"};
+
+ Dimension[] dimSize = { null,
+ new Dimension(10,10),
+ new Dimension(50,50),
+ new Dimension(100,100),
+ new Dimension(500,500),
+ new Dimension(1000,1000)};
+
+
+ String[] data = {"CrossColorJPanel",
+ "GearsJPanel",
+ "DrawColoredPrimitivesJPanel",
+ "TessJPanel"};
+
+ JPanel masterPanel = null;
+ JComboBox glChoice = null;
+ JComboBox glOffScrnSize = null;
+ boolean isAnApplet = true;
+
+ public void init()
+ {
+ super.init();
+ if(isAnApplet==false)
+ {
+ GLContext.gljNativeDebug = true;
+ GLContext.gljClassDebug = true;
+ }
+
+ masterPanel = new JPanel (new BorderLayout());
+ getContentPane().add("Center",masterPanel);
+ canvas = new CrossColorJPanel();
+ masterPanel.add("Center", canvas);
+
+ JPanel np = new JPanel();
+ masterPanel.add("North", np);
+ glChoice = new JComboBox(data);
+ glChoice.addItemListener(this);
+ np.add(glChoice);
+ glOffScrnSize = new JComboBox(dataSize);
+ glOffScrnSize.addItemListener(this);
+ np.add(glOffScrnSize);
+
+ JButton b1, b2;
+ masterPanel.add("East", (b1 = new JButton("E")));
+ b1.setActionCommand("east");
+ b1.addActionListener(this);
+ masterPanel.add("West", (b2 = new JButton("W")));
+ b2.setActionCommand("west");
+ b2.addActionListener(this);
+
+ JCheckBox c1;
+ masterPanel.add("South", (c1 = new JCheckBox("SouthButton", true)));
+ c1.addItemListener(this);
+ }
+
+ public static void main(java.lang.String[] args) {
+ try {
+ boolean withAWT=false;
+
+ if(args.length>0 && args[0].equals("withAWT"))
+ withAWT=true;
+ Frame mainFrame = new Frame("test1");
+
+ GLSwingDemoApplet applet=new GLSwingDemoApplet();
+
+ applet.isAnApplet=false;
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+ applet.setSize(480, 480);
+
+ if(withAWT)
+ {
+ gears applet2 = new gears();
+ applet2.setSize(300, 300);
+ applet2.init();
+ applet2.start();
+ mainFrame.add(applet2);
+ applet2.setSize(300, 300);
+ }
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+
+ } catch (Throwable exception) {
+ System.err.println("Exception occurred in main()");
+ exception.printStackTrace(System.out);
+ }
+ }
+
+ public void actionPerformed(ActionEvent e) {
+ if (e.getActionCommand().equals("east")) {
+ System.out.println("East pressed");
+ } else if (e.getActionCommand().equals("west")) {
+ System.out.println("West pressed");
+ }
+ }
+
+ public void itemStateChanged(ItemEvent e) {
+ Object source = e.getItemSelectable();
+ Object item = e.getItem();
+ System.out.println("item changed: "+source);
+
+ if(glChoice!=null &&
+ glChoice.equals(e.getItemSelectable()) &&
+ e.getStateChange()==ItemEvent.SELECTED &&
+ (item instanceof String)==true
+ )
+ {
+ String clazzName = (String)item;
+ try {
+ Object obj =
+ Class.forName(clazzName).newInstance();
+ if(obj instanceof GLJPanel)
+ {
+ if(canvas!=null)
+ {
+ masterPanel.remove(canvas);
+ canvas.cvsDispose();
+ }
+ canvas = (GLJPanel)obj;
+ canvas.setVisible(true);
+ masterPanel.add("Center", canvas);
+ masterPanel.invalidate();
+ masterPanel.validate();
+ masterPanel.repaint();
+ glOffScrnSize.setSelectedIndex(0);
+ }
+ if(obj instanceof GLAnimJPanel)
+ {
+ ((GLAnimJPanel)obj).start();
+ }
+ } catch (Exception ex) {
+ System.out.println("Exception during loading: "+
+ clazzName);
+ System.out.println(ex);
+ }
+ } else
+ if(glOffScrnSize!=null && canvas!=null &&
+ glOffScrnSize.equals(e.getItemSelectable()) &&
+ e.getStateChange()==ItemEvent.SELECTED &&
+ (item instanceof String)==true
+ )
+ {
+ int idx = glOffScrnSize.getSelectedIndex();
+ canvas.setOffScreenSize(dimSize[idx]);
+ }
+ }
+}
diff --git a/demos/SwingDemos/GearsJPanel.java b/demos/SwingDemos/GearsJPanel.java
new file mode 100644
index 0000000..3d03111
--- /dev/null
+++ b/demos/SwingDemos/GearsJPanel.java
@@ -0,0 +1,382 @@
+/**
+ * @(#) GearsJPanel.java
+ * @(#) author: Brian Paul (converted to Java by Ron Cemer & Sven Goethel)
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.swing.*;
+
+public class GearsJPanel extends GLAnimJPanel
+ implements MouseListener, MouseMotionListener
+{
+ private static final float M_PI = 3.14159265359f;
+ private int gear1, gear2, gear3;
+ private float angle = 0.0f;
+
+ private MatrixFuncs mtxfuncs = null;
+ private int prevMouseX, prevMouseY;
+ private boolean mouseRButtonDown = false;
+ private float rot_matrix[] =
+ {
+ 1.0f, 0.0f, 0.0f, 0.0f,
+ 0.0f, 1.0f, 0.0f, 0.0f,
+ 0.0f, 0.0f, 1.0f, 0.0f,
+ 0.0f, 0.0f, 0.0f, 1.0f
+ };
+
+ public GearsJPanel()
+ {
+ super();
+ setAnimateFps(30.0);
+
+ mtxfuncs = new MatrixFuncs();
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ setInitialRotation();
+
+ float pos[] = { 5.0f, 5.0f, 10.0f, 0.0f };
+ float red[] = { 0.8f, 0.1f, 0.0f, 1.0f };
+ float green[] = { 0.0f, 0.8f, 0.2f, 1.0f };
+ float blue[] = { 0.2f, 0.2f, 1.0f, 1.0f };
+
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, pos);
+ gl.glEnable(GL_CULL_FACE);
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_DEPTH_TEST);
+
+ /* make the gears */
+ gear1 = gl.glGenLists(1);
+ gl.glNewList(gear1, GL_COMPILE);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, red);
+ gear(1.0f, 4.0f, 1.0f, 20, 0.7f);
+ gl.glEndList();
+
+ gear2 = gl.glGenLists(1);
+ gl.glNewList(gear2, GL_COMPILE);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, green);
+ gear(0.5f, 2.0f, 2.0f, 10, 0.7f);
+ gl.glEndList();
+
+ gear3 = gl.glGenLists(1);
+ gl.glNewList(gear3, GL_COMPILE);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, blue);
+ gear(1.3f, 2.0f, 0.5f, 10, 0.7f);
+ gl.glEndList();
+
+ gl.glEnable(GL_NORMALIZE);
+
+ glj.gljCheckGL();
+
+ addMouseListener(this);
+ addMouseMotionListener(this);
+ }
+
+ public void doCleanup()
+ {
+ System.out.println("destroy(): " + this);
+ removeMouseListener(this);
+ removeMouseMotionListener(this);
+ }
+
+ public void reshape(int width, int height)
+ {
+ float h = (float)height / (float)width;
+
+ gl.glViewport(0,0,width,height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ gl.glFrustum(-1.0f, 1.0f, -h, h, 5.0f, 60.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ gl.glTranslatef(0.0f, 0.0f, -40.0f);
+ }
+
+ public void display()
+ {
+ angle += 0.5f;
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ gl.glPushMatrix();
+ gl.glMultMatrixf(rot_matrix);
+
+ gl.glPushMatrix();
+ gl.glTranslatef(-3.0f, -2.0f, 0.0f);
+ gl.glRotatef(angle, 0.0f, 0.0f, 1.0f);
+ gl.glCallList(gear1);
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glTranslatef(3.1f, -2.0f, 0.0f);
+ gl.glRotatef(-2.0f * angle - 9.0f, 0.0f, 0.0f, 1.0f);
+ gl.glCallList(gear2);
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glTranslatef(-3.1f, 4.2f, 0.0f);
+ gl.glRotatef(-2.0f * angle - 25.0f, 0.0f, 0.0f, 1.0f);
+ gl.glCallList(gear3);
+ gl.glPopMatrix();
+
+ gl.glPopMatrix();
+
+ glj.gljCheckGL();
+ }
+
+ private void gear
+ (float inner_radius,
+ float outer_radius,
+ float width,
+ int teeth,
+ float tooth_depth)
+ {
+ int i;
+ float r0, r1, r2;
+ float angle, da;
+ float u, v, len;
+
+ r0 = inner_radius;
+ r1 = outer_radius - tooth_depth / 2.0f;
+ r2 = outer_radius + tooth_depth / 2.0f;
+
+ da = 2.0f * M_PI / teeth / 4.0f;
+
+ gl.glShadeModel(GL_FLAT);
+
+ gl.glNormal3f(0.0f, 0.0f, 1.0f);
+
+ /* draw front face */
+ gl.glBegin(GL_QUAD_STRIP);
+ for (i = 0; i <= teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), width * 0.5f);
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3.0f * da), r1 * (float)Math.sin(angle + 3.0f * da), width * 0.5f);
+ }
+ gl.glEnd();
+
+ /* draw front sides of teeth */
+ gl.glBegin(GL_QUADS);
+ da = 2.0f * M_PI / teeth / 4.0f;
+ for (i = 0; i < teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + da), r2 * (float)Math.sin(angle + da), width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + 2.0f * da), r2 * (float)Math.sin(angle + 2.0f * da), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3.0f * da), r1 * (float)Math.sin(angle + 3.0f * da), width * 0.5f);
+ }
+ gl.glEnd();
+
+ gl.glNormal3f(0.0f, 0.0f, -1.0f);
+
+ /* draw back face */
+ gl.glBegin(GL_QUAD_STRIP);
+ for (i = 0; i <= teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), -width * 0.5f);
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), -width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3 * da), r1 * (float)Math.sin(angle + 3 * da), -width * 0.5f);
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), -width * 0.5f);
+ }
+ gl.glEnd();
+
+ /* draw back sides of teeth */
+ gl.glBegin(GL_QUADS);
+ da = 2.0f * M_PI / teeth / 4.0f;
+ for (i = 0; i < teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3 * da), r1 * (float)Math.sin(angle + 3 * da), -width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + 2 * da), r2 * (float)Math.sin(angle + 2 * da), -width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + da), r2 * (float)Math.sin(angle + da), -width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), -width * 0.5f);
+ }
+ gl.glEnd();
+
+ /* draw outward faces of teeth */
+ gl.glBegin(GL_QUAD_STRIP);
+ for (i = 0; i < teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), -width * 0.5f);
+ u = r2 * (float)Math.cos(angle + da) - r1 * (float)Math.cos(angle);
+ v = r2 * (float)Math.sin(angle + da) - r1 * (float)Math.sin(angle);
+ len = (float)Math.sqrt(u * u + v * v);
+ u /= len;
+ v /= len;
+ gl.glNormal3f(v, -u, 0.0f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + da), r2 * (float)Math.sin(angle + da), width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + da), r2 * (float)Math.sin(angle + da), -width * 0.5f);
+ gl.glNormal3f((float)Math.cos(angle), (float)Math.sin(angle), 0.0f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + 2 * da), r2 * (float)Math.sin(angle + 2 * da), width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + 2 * da), r2 * (float)Math.sin(angle + 2 * da), -width * 0.5f);
+ u = r1 * (float)Math.cos(angle + 3 * da) - r2 * (float)Math.cos(angle + 2 * da);
+ v = r1 * (float)Math.sin(angle + 3 * da) - r2 * (float)Math.sin(angle + 2 * da);
+ gl.glNormal3f(v, -u, 0.0f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3 * da), r1 * (float)Math.sin(angle + 3 * da), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3 * da), r1 * (float)Math.sin(angle + 3 * da), -width * 0.5f);
+ gl.glNormal3f((float)Math.cos(angle), (float)Math.sin(angle), 0.0f);
+ }
+ gl.glVertex3f(r1 * (float)Math.cos(0), r1 * (float)Math.sin(0), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(0), r1 * (float)Math.sin(0), -width * 0.5f);
+ gl.glEnd();
+
+ gl.glShadeModel(GL_SMOOTH);
+
+ /* draw inside radius cylinder */
+ gl.glBegin(GL_QUAD_STRIP);
+ for (i = 0; i <= teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glNormal3f(-(float)Math.cos(angle), -(float)Math.sin(angle), 0.0f);
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), -width * 0.5f);
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), width * 0.5f);
+ }
+ gl.glEnd();
+ }
+
+ // Reset the rotation matrix to the default view.
+ private void setInitialRotation()
+ {
+ float mtxbuf[] = new float[16];
+ float mtxbuf2[] = new float[16];
+
+ mtxfuncs.rotateAroundY(30.0f,mtxbuf);
+ mtxfuncs.rotateAroundX(20.0f,mtxbuf2);
+ mtxfuncs.multiplyMatrices(mtxbuf2,mtxbuf,rot_matrix);
+ fixRotationMatrix();
+ }
+
+ private void fixRotationMatrix()
+ {
+ // Fix any problems with the rotation matrix.
+ rot_matrix[3] =
+ rot_matrix[7] =
+ rot_matrix[11] =
+ rot_matrix[12] =
+ rot_matrix[13] =
+ rot_matrix[14] = 0.0f;
+ rot_matrix[15] = 1.0f;
+ float fac;
+ if ((fac = (float)Math.sqrt
+ ((rot_matrix[0]*rot_matrix[0]) +
+ (rot_matrix[4]*rot_matrix[4]) +
+ (rot_matrix[8]*rot_matrix[8]))) != 1.0f)
+ {
+ if (fac != 0.0f)
+ {
+ fac = 1.0f/fac;
+ rot_matrix[0] *= fac;
+ rot_matrix[4] *= fac;
+ rot_matrix[8] *= fac;
+ }
+ }
+ if ((fac = (float)Math.sqrt
+ ((rot_matrix[1]*rot_matrix[1]) +
+ (rot_matrix[5]*rot_matrix[5]) +
+ (rot_matrix[9]*rot_matrix[9]))) != 1.0f)
+ {
+ if (fac != 0.0f)
+ {
+ fac = 1.0f/fac;
+ rot_matrix[1] *= fac;
+ rot_matrix[5] *= fac;
+ rot_matrix[9] *= fac;
+ }
+ }
+ if ((fac = (float)Math.sqrt
+ ((rot_matrix[2]*rot_matrix[2]) +
+ (rot_matrix[6]*rot_matrix[6]) +
+ (rot_matrix[10]*rot_matrix[10]))) != 1.0f)
+ {
+ if (fac != 0.0f)
+ {
+ fac = 1.0f/fac;
+ rot_matrix[2] *= fac;
+ rot_matrix[6] *= fac;
+ rot_matrix[10] *= fac;
+ }
+ }
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ prevMouseX = evt.getX();
+ prevMouseY = evt.getY();
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ mouseRButtonDown = true;
+ evt.consume();
+ }
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ mouseRButtonDown = false;
+ evt.consume();
+ }
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ }
+
+ // Methods required for the implementation of MouseMotionListener
+ public void mouseDragged( MouseEvent evt )
+ {
+ int x = evt.getX();
+ int y = evt.getY();
+ float thetaX = (float)(x-prevMouseX)*(360.0f/(float)getSize().width);
+ float thetaY = (float)(prevMouseY-y)*(360.0f/(float)getSize().height);
+ float mtxbuf[] = new float[16];
+ float mtxbuf2[] = new float[16];
+
+ prevMouseX = x;
+ prevMouseY = y;
+ if ( (thetaX != 0.0f) || (thetaY != 0.0f) )
+ {
+ mtxfuncs.rotateAroundY(((float)thetaX),mtxbuf);
+ if (mouseRButtonDown)
+ mtxfuncs.rotateAroundZ(thetaY,mtxbuf2);
+ else
+ mtxfuncs.rotateAroundX(-thetaY,mtxbuf2);
+ mtxfuncs.multiplyMatrices(mtxbuf2,mtxbuf,mtxbuf);
+ mtxfuncs.multiplyMatrices(rot_matrix,mtxbuf,rot_matrix);
+ fixRotationMatrix();
+ }
+ evt.consume();
+ }
+
+ public void mouseMoved( MouseEvent evt )
+ {
+ }
+}
diff --git a/demos/SwingDemos/InternalGLFrameDemo1.java b/demos/SwingDemos/InternalGLFrameDemo1.java
new file mode 100644
index 0000000..ea5cada
--- /dev/null
+++ b/demos/SwingDemos/InternalGLFrameDemo1.java
@@ -0,0 +1,248 @@
+import javax.swing.*;
+import javax.swing.event.*;
+
+import java.awt.event.*;
+import java.awt.*;
+
+import gl4java.swing.*;
+import gl4java.*;
+
+public class InternalGLFrameDemo1 extends JFrame {
+ JDesktopPane desktop = null;
+
+ public InternalGLFrameDemo1() {
+ super("InternalGLFrameDemo1");
+
+ //Make the big window be indented 50 pixels from each edge
+ //of the screen.
+ int inset = 50;
+ Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
+ setBounds(inset, inset,
+ screenSize.width/2 - inset*2,
+ screenSize.height/2*3-inset*2);
+
+ //Quit this app when the big window closes.
+ addWindowListener(new WindowAdapter() {
+ public void windowClosing(WindowEvent e) {
+ System.exit(0);
+ }
+ });
+
+ //Set up the GUI.
+ desktop = new JDesktopPane(); //a specialized layered pane
+ createFrame(); //Create first window
+ setContentPane(desktop);
+ setJMenuBar(createMenuBar());
+
+ //Make dragging faster:
+ desktop.putClientProperty("JDesktopPane.dragMode", "outline");
+ }
+
+ protected JMenuBar createMenuBar() {
+ JMenuBar menuBar = new JMenuBar();
+
+ JMenu menu = new JMenu("Document");
+ menu.setMnemonic(KeyEvent.VK_D);
+ JMenuItem menuItem = new JMenuItem("New");
+ menuItem.setMnemonic(KeyEvent.VK_N);
+ menuItem.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ createFrame();
+ }
+ });
+ menu.add(menuItem);
+ menuBar.add(menu);
+
+ return menuBar;
+ }
+
+ protected void createFrame() {
+ InternalGLFrame frame = new InternalGLFrame("CrossColorJPanel");
+ frame.setVisible(true); //necessary as of kestrel
+ desktop.add(frame);
+ try {
+ frame.setSelected(true);
+ } catch (java.beans.PropertyVetoException e) {}
+ }
+
+ public static void main(String[] args) {
+ GLContext.gljNativeDebug = true;
+ GLContext.gljClassDebug = true;
+ InternalGLFrameDemo1 frame = new InternalGLFrameDemo1();
+ frame.setVisible(true);
+ }
+
+ static int openFrameCount = 0;
+ static final int xOffset = 30, yOffset = 30;
+ static InternalGLFrame activeIF = null;
+
+ public class InternalGLFrame extends JInternalFrame
+ implements ItemListener, InternalFrameListener
+ {
+ String[] data = {"CrossColorJPanel",
+ "GearsJPanel",
+ "DrawColoredPrimitivesJPanel",
+ "TessJPanel"};
+ String[] dataSize = {"offscreen-size: component",
+ "offscreen-size: 10x10",
+ "offscreen-size: 50x50",
+ "offscreen-size: 100x100",
+ "offscreen-size: 500x500",
+ "offscreen-size: 1000x1000"};
+
+ Dimension[] dimSize = { null,
+ new Dimension(10,10),
+ new Dimension(50,50),
+ new Dimension(100,100),
+ new Dimension(500,500),
+ new Dimension(1000,1000)};
+
+
+ GLJPanel canvas = null;
+ JComboBox glChoice = null;
+ JComboBox glOffScrnSize = null;
+ JComponent master = null;
+
+ public InternalGLFrame(String clazzName)
+ {
+ super("Document #" + (++openFrameCount),
+ true, //resizable
+ true, //closable
+ true, //maximizable
+ true);//iconifiable
+
+ //...Create the GUI and put it in the window...
+ master = (JComponent) getContentPane();
+ master.setLayout(new BorderLayout());
+ switchGLJPanel(clazzName);
+
+ JPanel np = new JPanel();
+ master.add("North", np);
+ glChoice = new JComboBox(data);
+ glChoice.addItemListener(this);
+ np.add(glChoice);
+ glOffScrnSize = new JComboBox(dataSize);
+ glOffScrnSize.addItemListener(this);
+ np.add(glOffScrnSize);
+
+ setJMenuBar(createIFMenuBar());
+
+ //...Then set the window size or call pack...
+ setSize(300,300);
+
+ //Set the window's location.
+ setLocation(xOffset*openFrameCount, yOffset*openFrameCount);
+
+ addInternalFrameListener(this);
+ }
+
+ public void switchGLJPanel(String clazzName)
+ {
+ try {
+ Object obj =
+ Class.forName(clazzName).newInstance();
+ if(obj instanceof GLJPanel)
+ {
+ if(canvas!=null)
+ {
+ master.remove(canvas);
+ canvas.cvsDispose();
+ }
+ canvas = (GLJPanel)obj;
+ canvas.setVisible(true);
+ master.add("Center", canvas);
+ master.invalidate();
+ master.validate();
+ master.repaint();
+ glOffScrnSize.setSelectedIndex(0);
+ }
+ if(obj instanceof GLAnimJPanel)
+ {
+ ((GLAnimJPanel)obj).start();
+ }
+ } catch (Exception ex) {
+ System.out.println("Exception during loading: "+
+ clazzName);
+ System.out.println(ex);
+ }
+
+ }
+
+ protected JMenuBar createIFMenuBar()
+ {
+ JMenuBar menuBar = new JMenuBar();
+
+ JMenu menu = new JMenu("Document");
+ menu.setMnemonic(KeyEvent.VK_D);
+ JMenuItem menuItem = new JMenuItem("New");
+ menuItem.setMnemonic(KeyEvent.VK_N);
+ menuItem.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ createIFFrame();
+ }
+ });
+ menu.add(menuItem);
+ menuBar.add(menu);
+
+ return menuBar;
+ }
+
+ protected void createIFFrame() {
+ if(activeIF==null)
+ return;
+ InternalGLFrame frame = new InternalGLFrame("CrossColorJPanel");
+ frame.setVisible(true); //necessary as of kestrel
+ activeIF.canvas.add(frame);
+ try {
+ activeIF.setSelected(true);
+ } catch (java.beans.PropertyVetoException e) {}
+ }
+
+ public void itemStateChanged(ItemEvent e)
+ {
+ Object source = e.getItemSelectable();
+ Object item = e.getItem();
+ System.out.println("item changed: "+source);
+
+ if(glChoice!=null &&
+ glChoice.equals(e.getItemSelectable()) &&
+ e.getStateChange()==ItemEvent.SELECTED &&
+ (item instanceof String)==true
+ )
+ {
+ switchGLJPanel((String)item);
+ } else
+ if(glOffScrnSize!=null && canvas!=null &&
+ glOffScrnSize.equals(e.getItemSelectable()) &&
+ e.getStateChange()==ItemEvent.SELECTED &&
+ (item instanceof String)==true
+ )
+ {
+ int idx = glOffScrnSize.getSelectedIndex();
+ canvas.setOffScreenSize(dimSize[idx]);
+ }
+ }
+
+ public void internalFrameClosing(InternalFrameEvent e) {
+ }
+
+ public void internalFrameClosed(InternalFrameEvent e) {
+ }
+
+ public void internalFrameOpened(InternalFrameEvent e) {
+ }
+
+ public void internalFrameIconified(InternalFrameEvent e) {
+ }
+
+ public void internalFrameDeiconified(InternalFrameEvent e) {
+ }
+
+ public void internalFrameActivated(InternalFrameEvent e) {
+ activeIF = (InternalGLFrame)e.getSource();
+ }
+
+ public void internalFrameDeactivated(InternalFrameEvent e) {
+ }
+ }
+}
diff --git a/demos/SwingDemos/MatrixFuncs.java b/demos/SwingDemos/MatrixFuncs.java
new file mode 100644
index 0000000..75493a2
--- /dev/null
+++ b/demos/SwingDemos/MatrixFuncs.java
@@ -0,0 +1,200 @@
+/**
+ * @(#) MatrixFuncs.java
+ * @(#) author: Ronald B. Cemer
+ * @(#) version: 1.0
+ */
+
+import java.io.*;
+
+public class MatrixFuncs
+{
+ public static final float M_PI = 3.14159265359f;
+
+ // Given the angle in degs, create a 4x4 matrix
+ // in mtx which rotates around the X axis.
+ public void rotateAroundX(float degs, float mtx[])
+ {
+ float rads, rsin, rcos;
+
+ rads = degs*(M_PI/180.0f);
+ rsin = (float)Math.sin(rads);
+ rcos = (float)Math.cos(rads);
+ mtx[0] = 1.0f;
+ mtx[1] = 0.0f;
+ mtx[2] = 0.0f;
+ mtx[3] = 0.0f;
+ mtx[4] = 0.0f;
+ mtx[5] = rcos;
+ mtx[6] = rsin;
+ mtx[7] = 0.0f;
+ mtx[8] = 0.0f;
+ mtx[9] = -rsin;
+ mtx[10] = rcos;
+ mtx[11] = 0.0f;
+ mtx[12] = 0.0f;
+ mtx[13] = 0.0f;
+ mtx[14] = 0.0f;
+ mtx[15] = 1.0f;
+ }
+
+ // Given the angle in degs, create a 4x4 matrix
+ // in mtx which rotates around the Y axis.
+ public void rotateAroundY(float degs, float mtx[])
+ {
+ float rads, rsin, rcos;
+
+ rads = degs*(M_PI/180.0f);
+ rsin = (float)Math.sin(rads);
+ rcos = (float)Math.cos(rads);
+ mtx[0] = rcos;
+ mtx[1] = 0.0f;
+ mtx[2] = -rsin;
+ mtx[3] = 0.0f;
+ mtx[4] = 0.0f;
+ mtx[5] = 1.0f;
+ mtx[6] = 0.0f;
+ mtx[7] = 0.0f;
+ mtx[8] = rsin;
+ mtx[9] = 0.0f;
+ mtx[10] = rcos;
+ mtx[11] = 0.0f;
+ mtx[12] = 0.0f;
+ mtx[13] = 0.0f;
+ mtx[14] = 0.0f;
+ mtx[15] = 1.0f;
+ }
+
+ // Given the angle in degs, create a 4x4 matrix
+ // in mtx which rotates around the Z axis.
+ public void rotateAroundZ(float degs, float mtx[])
+ {
+ float rads, rsin, rcos;
+
+ rads = degs*(M_PI/180.0f);
+ rsin = (float)Math.sin(rads);
+ rcos = (float)Math.cos(rads);
+ mtx[0] = rcos;
+ mtx[1] = rsin;
+ mtx[2] = 0.0f;
+ mtx[3] = 0.0f;
+ mtx[4] = -rsin;
+ mtx[5] = rcos;
+ mtx[6] = 0.0f;
+ mtx[7] = 0.0f;
+ mtx[8] = 0.0f;
+ mtx[9] = 0.0f;
+ mtx[10] = 1.0f;
+ mtx[11] = 0.0f;
+ mtx[12] = 0.0f;
+ mtx[13] = 0.0f;
+ mtx[14] = 0.0f;
+ mtx[15] = 1.0f;
+ }
+
+ // Given two 4x4 matrices in mtx1 and mtx2, multiply
+ // them and put the result in dest.
+ // This routine uses a temporary buffer for the result,
+ // so if dest is the same as mtx1 or mtx2, it will still
+ // work properly.
+ public void multiplyMatrices(float mtx1[], float mtx2[], float dest[])
+ {
+ float nmtx[] = new float[16];
+
+ nmtx[0] =
+ (mtx1[0]*mtx2[0]) +
+ (mtx1[1]*mtx2[4]) +
+ (mtx1[2]*mtx2[8]) +
+ (mtx1[3]*mtx2[12]);
+ nmtx[1] =
+ (mtx1[0]*mtx2[1]) +
+ (mtx1[1]*mtx2[5]) +
+ (mtx1[2]*mtx2[9]) +
+ (mtx1[3]*mtx2[13]);
+ nmtx[2] =
+ (mtx1[0]*mtx2[2]) +
+ (mtx1[1]*mtx2[6]) +
+ (mtx1[2]*mtx2[10]) +
+ (mtx1[3]*mtx2[14]);
+ nmtx[3] =
+ (mtx1[0]*mtx2[3]) +
+ (mtx1[1]*mtx2[7]) +
+ (mtx1[2]*mtx2[11]) +
+ (mtx1[3]*mtx2[15]);
+ nmtx[4] =
+ (mtx1[4]*mtx2[0]) +
+ (mtx1[5]*mtx2[4]) +
+ (mtx1[6]*mtx2[8]) +
+ (mtx1[7]*mtx2[12]);
+ nmtx[5] =
+ (mtx1[4]*mtx2[1]) +
+ (mtx1[5]*mtx2[5]) +
+ (mtx1[6]*mtx2[9]) +
+ (mtx1[7]*mtx2[13]);
+ nmtx[6] =
+ (mtx1[4]*mtx2[2]) +
+ (mtx1[5]*mtx2[6]) +
+ (mtx1[6]*mtx2[10]) +
+ (mtx1[7]*mtx2[14]);
+ nmtx[7] =
+ (mtx1[4]*mtx2[3]) +
+ (mtx1[5]*mtx2[7]) +
+ (mtx1[6]*mtx2[11]) +
+ (mtx1[7]*mtx2[15]);
+ nmtx[8] =
+ (mtx1[8]*mtx2[0]) +
+ (mtx1[9]*mtx2[4]) +
+ (mtx1[10]*mtx2[8]) +
+ (mtx1[11]*mtx2[12]);
+ nmtx[9] =
+ (mtx1[8]*mtx2[1]) +
+ (mtx1[9]*mtx2[5]) +
+ (mtx1[10]*mtx2[9]) +
+ (mtx1[11]*mtx2[13]);
+ nmtx[10] =
+ (mtx1[8]*mtx2[2]) +
+ (mtx1[9]*mtx2[6]) +
+ (mtx1[10]*mtx2[10]) +
+ (mtx1[11]*mtx2[14]);
+ nmtx[11] =
+ (mtx1[8]*mtx2[3]) +
+ (mtx1[9]*mtx2[7]) +
+ (mtx1[10]*mtx2[11]) +
+ (mtx1[11]*mtx2[15]);
+ nmtx[12] =
+ (mtx1[12]*mtx2[0]) +
+ (mtx1[13]*mtx2[4]) +
+ (mtx1[14]*mtx2[8]) +
+ (mtx1[15]*mtx2[12]);
+ nmtx[13] =
+ (mtx1[12]*mtx2[1]) +
+ (mtx1[13]*mtx2[5]) +
+ (mtx1[14]*mtx2[9]) +
+ (mtx1[15]*mtx2[13]);
+ nmtx[14] =
+ (mtx1[12]*mtx2[2]) +
+ (mtx1[13]*mtx2[6]) +
+ (mtx1[14]*mtx2[10]) +
+ (mtx1[15]*mtx2[14]);
+ nmtx[15] =
+ (mtx1[12]*mtx2[3]) +
+ (mtx1[13]*mtx2[7]) +
+ (mtx1[14]*mtx2[11]) +
+ (mtx1[15]*mtx2[15]);
+ dest[0] = nmtx[0];
+ dest[1] = nmtx[1];
+ dest[2] = nmtx[2];
+ dest[3] = nmtx[3];
+ dest[4] = nmtx[4];
+ dest[5] = nmtx[5];
+ dest[6] = nmtx[6];
+ dest[7] = nmtx[7];
+ dest[8] = nmtx[8];
+ dest[9] = nmtx[9];
+ dest[10] = nmtx[10];
+ dest[11] = nmtx[11];
+ dest[12] = nmtx[12];
+ dest[13] = nmtx[13];
+ dest[14] = nmtx[14];
+ dest[15] = nmtx[15];
+ }
+}
diff --git a/demos/SwingDemos/TessJPanel.java b/demos/SwingDemos/TessJPanel.java
new file mode 100644
index 0000000..f070823
--- /dev/null
+++ b/demos/SwingDemos/TessJPanel.java
@@ -0,0 +1,244 @@
+/*
+ * Copyright (c) 1993-1997, Silicon Graphics, Inc.
+ * ALL RIGHTS RESERVED
+ * Permission to use, copy, modify, and distribute this software for
+ * any purpose and without fee is hereby granted, provided that the above
+ * copyright notice appear in all copies and that both the copyright notice
+ * and this permission notice appear in supporting documentation, and that
+ * the name of Silicon Graphics, Inc. not be used in adverti(float)Math.sing
+ * or publicity pertaining to distribution of the software without specific,
+ * written prior permission.
+ *
+ * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
+ * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
+ * GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
+ * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
+ * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
+ * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
+ * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN
+ * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
+ * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * US Government Users Restricted Rights
+ * Use, duplication, or disclosure by the Government is subject to
+ * restrictions set forth in FAR 52.227f.19(c)(2) or subparagraph
+ * (c)(1)(ii) of the Rights in Technical Data and Computer Software
+ * clause at DFARS 252.227f-7013 and/or in similar or successor
+ * clauses in the FAR or the DOD or NASA FAR Supplement.
+ * Unpublished-- rights reserved under the copyright laws of the
+ * United States. Contractor/manufacturer is Silicon Graphics,
+ * Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
+ *
+ * OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
+ */
+
+/*
+ * tess.c
+ * This program demonstrates polygon tessellation.
+ * Two tesselated objects are drawn. The first is a
+ * rectangle with a triangular hole. The second is a
+ * smooth shaded, self-intersecting star.
+ *
+ * Note the exterior rectangle is drawn with its vertices
+ * in counter-clockwise order, but its interior clockwise.
+ * Note the combineCallback is needed for the self-intersecting
+ * star. Also note that removing the TessProperty for the
+ * star will make the interior unshaded (WINDING_ODD).
+ */
+
+import gl4java.utils.glut.*;
+import gl4java.utils.glut.fonts.*;
+
+import gl4java.*;
+import gl4java.awt.*;
+import gl4java.swing.*;
+import java.applet.*;
+import java.awt.*;
+import java.awt.Dimension;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+
+public class TessJPanel extends GLJPanel
+{
+ public static double rect[/*4*/][/*3*/] =
+ {{50.0, 50.0, 0.0},
+ {200.0, 50.0, 0.0},
+ {200.0, 200.0f, 0.0},
+ {50.0, 200.0, 0.0}};
+ public static double tri[/*3*/][/*3*/] =
+ {{75.0, 75.0, 0.0},
+ {125.0, 175.0, 0.0},
+ {175.0, 75.0, 0.0}};
+ public static double star[/*5*/][/*6*/] =
+ {{250.0, 50.0, 0.0, 1.0, 0.0, 1.0},
+ {325.0, 200.0, 0.0, 1.0, 1.0, 0.0},
+ {400.0, 50.0, 0.0, 0.0, 1.0, 1.0},
+ {250.0, 150.0, 0.0, 1.0, 0.0, 0.0},
+ {400.0, 150.0, 0.0, 0.0, 1.0, 0.0}};
+
+ protected GLUTFunc glut = null;
+
+ int startList=-1;
+ boolean exit = false;
+
+ public TessJPanel() {
+ super();
+ }
+
+ public void init() {
+ int i;
+ glut = new GLUTFuncLightImplWithFonts(gl, glu);
+
+ int tobj;
+
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+
+ startList = gl.glGenLists(2);
+
+ tobj = glu.gluNewTess();
+ glu.gluTessCallback ( tobj, GLU_TESS_VERTEX, gl,
+ "glVertex3dv", "([D)V",
+ 3, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_BEGIN, this,
+ "beginCallback", "(I)V",
+ 0, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_END, this,
+ "endCallback", "()V",
+ 0, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_ERROR, this,
+ "errorCallback", "(I)V",
+ 0, 0, 0, 0, 0);
+
+ /* rectangle with triangular hole inside */
+ gl.glNewList(startList, GL_COMPILE);
+ gl.glShadeModel(GL_FLAT);
+ glu.gluTessBeginPolygon(tobj, (double[])null);
+ glu.gluTessBeginContour(tobj);
+ glu.gluTessVertex(tobj, rect[0], rect[0]);
+ glu.gluTessVertex(tobj, rect[1], rect[1]);
+ glu.gluTessVertex(tobj, rect[2], rect[2]);
+ glu.gluTessVertex(tobj, rect[3], rect[3]);
+ glu.gluTessEndContour(tobj);
+ glu.gluTessBeginContour(tobj);
+ glu.gluTessVertex(tobj, tri[0], tri[0]);
+ glu.gluTessVertex(tobj, tri[1], tri[1]);
+ glu.gluTessVertex(tobj, tri[2], tri[2]);
+ glu.gluTessEndContour(tobj);
+ glu.gluTessEndPolygon(tobj);
+ gl.glEndList();
+
+ glu.gluTessCallback ( tobj, GLU_TESS_VERTEX, this,
+ "vertexCallback", "([D)V",
+ 6, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_BEGIN, this,
+ "beginCallback", "(I)V",
+ 0, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_END, this,
+ "endCallback", "()V",
+ 0, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_ERROR, this,
+ "errorCallback", "(I)V",
+ 0, 0, 0, 0, 0);
+ glu.gluTessCallback ( tobj, GLU_TESS_COMBINE, this,
+ "combineCallback", "([D[D[F[D)V",
+ 3, 4*6, 4, 6, 0);
+
+ /* smooth shaded, self-intersecting star */
+ gl.glNewList(startList + 1, GL_COMPILE);
+ gl.glShadeModel(GL_SMOOTH);
+ glu.gluTessProperty(tobj, GLU_TESS_WINDING_RULE,
+ GLU_TESS_WINDING_POSITIVE);
+ glu.gluTessBeginPolygon(tobj, (double[])null);
+ glu.gluTessBeginContour(tobj);
+ glu.gluTessVertex(tobj, star[0], star[0]);
+ glu.gluTessVertex(tobj, star[1], star[1]);
+ glu.gluTessVertex(tobj, star[2], star[2]);
+ glu.gluTessVertex(tobj, star[3], star[3]);
+ glu.gluTessVertex(tobj, star[4], star[4]);
+ glu.gluTessEndContour(tobj);
+ glu.gluTessEndPolygon(tobj);
+ gl.glEndList();
+
+ glu.gluDeleteTess(tobj);
+
+ reshape(getSize().width, getSize().height);
+
+ glj.gljCheckGL();
+ }
+
+ public void display()
+ {
+ if(exit) return;
+
+ gl.glClear(GL_COLOR_BUFFER_BIT);
+ gl.glColor3f(1.0f, 1.0f, 1.0f);
+ gl.glCallList(startList);
+ gl.glCallList(startList + 1);
+ }
+
+ public void beginCallback(int which)
+ {
+ gl.glBegin(which);
+ }
+
+ public void errorCallback(int errorCode)
+ {
+ String str;
+
+ gl.glColor3f( 0.9f, 0.9f, 0.9f );
+ gl.glRasterPos2i( 5, 5 );
+
+ str = glu.gluErrorString( errorCode );
+
+ glut.glutBitmapString(glut.GLUT_BITMAP_9_BY_15, str);
+ exit = true;
+ }
+
+ public void endCallback()
+ {
+ gl.glEnd();
+ }
+
+ public void vertexCallback(double[/*6*/] vertex)
+ {
+ double[] col = new double[3];
+ System.arraycopy(vertex, 3, col, 0, 3);
+
+ gl.glColor3dv(col);
+ gl.glVertex3dv(vertex);
+ }
+
+ /* combineCallback is used to create a new vertex when edges
+ * intersect. coordinate location is trivial to calculate,
+ * but weight[4] may be used to average color, normal, or texture
+ * coordinate data. In this program, color is weighted.
+ */
+ public void combineCallback(double coords[/*3*/],
+ double vertex_data[/*4x6*/],
+ float weight[/*4*/], double[/*6*/] dataOut )
+ {
+ int i;
+
+ dataOut[0] = coords[0];
+ dataOut[1] = coords[1];
+ dataOut[2] = coords[2];
+ for (i = 3; i < 6; i++)
+ dataOut[i] = weight[0] * vertex_data[0*6+i]
+ + weight[1] * vertex_data[1*6+i]
+ + weight[2] * vertex_data[2*6+i]
+ + weight[3] * vertex_data[3*6+i];
+ }
+
+ public void reshape(int w, int h)
+ {
+ gl.glViewport( 0, 0, w, h );
+
+ gl.glMatrixMode( GL_PROJECTION );
+ gl.glLoadIdentity();
+ glu.gluOrtho2D(0.0f, (double) w, 0.0f, (double) h);
+ }
+}
diff --git a/demos/SwingDemos/gears.java b/demos/SwingDemos/gears.java
new file mode 100755
index 0000000..db7e97a
--- /dev/null
+++ b/demos/SwingDemos/gears.java
@@ -0,0 +1,370 @@
+/**
+ * @(#) gears.java
+ * @(#) author: Brian Paul (converted to Java by Ron Cemer and Sven Goethel)
+ *
+ * This version is equal to Brian Paul's version 1.2 1999/10/21
+ */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+public class gears extends SimpleGLAnimApplet1
+{
+
+ /* Initialize the applet */
+
+
+ public void init()
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = new gearsCanvas(d.width, d.height);
+ add("Center", canvas);
+ }
+
+
+ public static void main( String args[] )
+ {
+ Frame mainFrame = new Frame("gears");
+
+ gears applet = new gears();
+
+ applet.setSize(300, 300);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ }
+
+
+ /* Local GLAnimCanvas extension class */
+
+
+ private class gearsCanvas extends GLAnimCanvas implements MouseListener, MouseMotionListener
+ {
+ private static final float M_PI = 3.14159265f;
+
+ private long T0 = 0;
+ private long Frames = 0;
+
+ private float view_rotx = 20.0f, view_roty = 30.0f, view_rotz = 0.0f;
+ private int gear1, gear2, gear3;
+ private float angle = 0.0f;
+
+ private int prevMouseX, prevMouseY;
+ private boolean mouseRButtonDown = false;
+
+ public gearsCanvas(int w, int h)
+ {
+ super(w, h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ setAnimateFps(30.0);
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = false;
+ }
+
+ public void init()
+ {
+ System.out.println("init(): " + this);
+ reshape(getSize().width, getSize().height);
+
+ float pos[] = { 5.0f, 5.0f, 10.0f, 0.0f };
+ float red[] = { 0.8f, 0.1f, 0.0f, 1.0f };
+ float green[] = { 0.0f, 0.8f, 0.2f, 1.0f };
+ float blue[] = { 0.2f, 0.2f, 1.0f, 1.0f };
+
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, pos);
+ gl.glEnable(GL_CULL_FACE);
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_DEPTH_TEST);
+
+ /* make the gears */
+ gear1 = gl.glGenLists(1);
+ gl.glNewList(gear1, GL_COMPILE);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, red);
+ gear(1.0f, 4.0f, 1.0f, 20, 0.7f);
+ gl.glEndList();
+
+ gear2 = gl.glGenLists(1);
+ gl.glNewList(gear2, GL_COMPILE);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, green);
+ gear(0.5f, 2.0f, 2.0f, 10, 0.7f);
+ gl.glEndList();
+
+ gear3 = gl.glGenLists(1);
+ gl.glNewList(gear3, GL_COMPILE);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, blue);
+ gear(1.3f, 2.0f, 0.5f, 10, 0.7f);
+ gl.glEndList();
+
+ gl.glEnable(GL_NORMALIZE);
+
+ glj.gljCheckGL();
+
+ addMouseListener(this);
+ addMouseMotionListener(this);
+
+ T0=System.currentTimeMillis();
+ }
+
+ public void doCleanup()
+ {
+ System.out.println("destroy(): " + this);
+ removeMouseListener(this);
+ removeMouseMotionListener(this);
+ }
+
+ public void reshape(int width, int height)
+ {
+ float h = (float)height / (float)width;
+
+ gl.glViewport(0,0,width,height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ gl.glFrustum(-1.0f, 1.0f, -h, h, 5.0f, 60.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ gl.glTranslatef(0.0f, 0.0f, -40.0f);
+ }
+
+ public void display()
+ {
+ if (glj.gljMakeCurrent() == false) return;
+
+ angle += 2.0f;
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ gl.glPushMatrix();
+ gl.glRotatef(view_rotx, 1.0f, 0.0f, 0.0f);
+ gl.glRotatef(view_roty, 0.0f, 1.0f, 0.0f);
+ gl.glRotatef(view_rotz, 0.0f, 0.0f, 1.0f);
+
+ gl.glPushMatrix();
+ gl.glTranslatef(-3.0f, -2.0f, 0.0f);
+ gl.glRotatef(angle, 0.0f, 0.0f, 1.0f);
+ gl.glCallList(gear1);
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glTranslatef(3.1f, -2.0f, 0.0f);
+ gl.glRotatef(-2.0f * angle - 9.0f, 0.0f, 0.0f, 1.0f);
+ gl.glCallList(gear2);
+ gl.glPopMatrix();
+
+ gl.glPushMatrix();
+ gl.glTranslatef(-3.1f, 4.2f, 0.0f);
+ gl.glRotatef(-2.0f * angle - 25.0f, 0.0f, 0.0f, 1.0f);
+ gl.glCallList(gear3);
+ gl.glPopMatrix();
+
+ gl.glPopMatrix();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+
+ Frames++;
+
+ long t=System.currentTimeMillis();
+ if(t - T0 >= 5000)
+ {
+ double seconds = (double)(t - T0) / 1000.0;
+ double fps = (double)Frames / seconds;
+ System.out.println(Frames+" frames in "+seconds+" seconds = "+
+ fps+" FPS");
+ T0 = t;
+ Frames = 0;
+ }
+ }
+
+ private void gear
+ (float inner_radius,
+ float outer_radius,
+ float width,
+ int teeth,
+ float tooth_depth)
+ {
+ int i;
+ float r0, r1, r2;
+ float angle, da;
+ float u, v, len;
+
+ r0 = inner_radius;
+ r1 = outer_radius - tooth_depth / 2.0f;
+ r2 = outer_radius + tooth_depth / 2.0f;
+
+ da = 2.0f * M_PI / teeth / 4.0f;
+
+ gl.glShadeModel(GL_FLAT);
+
+ gl.glNormal3f(0.0f, 0.0f, 1.0f);
+
+ /* draw front face */
+ gl.glBegin(GL_QUAD_STRIP);
+ for (i = 0; i <= teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), width * 0.5f);
+ if(i < teeth)
+ {
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3.0f * da), r1 * (float)Math.sin(angle + 3.0f * da), width * 0.5f);
+ }
+ }
+ gl.glEnd();
+
+ /* draw front sides of teeth */
+ gl.glBegin(GL_QUADS);
+ for (i = 0; i < teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + da), r2 * (float)Math.sin(angle + da), width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + 2.0f * da), r2 * (float)Math.sin(angle + 2.0f * da), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3.0f * da), r1 * (float)Math.sin(angle + 3.0f * da), width * 0.5f);
+ }
+ gl.glEnd();
+
+ /* draw back face */
+ gl.glBegin(GL_QUAD_STRIP);
+ for (i = 0; i <= teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), -width * 0.5f);
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), -width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3 * da), r1 * (float)Math.sin(angle + 3 * da), -width * 0.5f);
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), -width * 0.5f);
+ }
+ gl.glEnd();
+
+ /* draw back sides of teeth */
+ gl.glBegin(GL_QUADS);
+ for (i = 0; i < teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3 * da), r1 * (float)Math.sin(angle + 3 * da), -width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + 2 * da), r2 * (float)Math.sin(angle + 2 * da), -width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + da), r2 * (float)Math.sin(angle + da), -width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), -width * 0.5f);
+ }
+ gl.glEnd();
+
+ /* draw outward faces of teeth */
+ gl.glBegin(GL_QUAD_STRIP);
+ for (i = 0; i < teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle), r1 * (float)Math.sin(angle), -width * 0.5f);
+ u = r2 * (float)Math.cos(angle + da) - r1 * (float)Math.cos(angle);
+ v = r2 * (float)Math.sin(angle + da) - r1 * (float)Math.sin(angle);
+ len = (float)Math.sqrt(u * u + v * v);
+ u /= len;
+ v /= len;
+ gl.glNormal3f(v, -u, 0.0f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + da), r2 * (float)Math.sin(angle + da), width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + da), r2 * (float)Math.sin(angle + da), -width * 0.5f);
+ gl.glNormal3f((float)Math.cos(angle), (float)Math.sin(angle), 0.0f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + 2 * da), r2 * (float)Math.sin(angle + 2 * da), width * 0.5f);
+ gl.glVertex3f(r2 * (float)Math.cos(angle + 2 * da), r2 * (float)Math.sin(angle + 2 * da), -width * 0.5f);
+ u = r1 * (float)Math.cos(angle + 3 * da) - r2 * (float)Math.cos(angle + 2 * da);
+ v = r1 * (float)Math.sin(angle + 3 * da) - r2 * (float)Math.sin(angle + 2 * da);
+ gl.glNormal3f(v, -u, 0.0f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3 * da), r1 * (float)Math.sin(angle + 3 * da), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(angle + 3 * da), r1 * (float)Math.sin(angle + 3 * da), -width * 0.5f);
+ gl.glNormal3f((float)Math.cos(angle), (float)Math.sin(angle), 0.0f);
+ }
+ gl.glVertex3f(r1 * (float)Math.cos(0), r1 * (float)Math.sin(0), width * 0.5f);
+ gl.glVertex3f(r1 * (float)Math.cos(0), r1 * (float)Math.sin(0), -width * 0.5f);
+ gl.glEnd();
+
+ gl.glShadeModel(GL_SMOOTH);
+
+ /* draw inside radius cylinder */
+ gl.glBegin(GL_QUAD_STRIP);
+ for (i = 0; i <= teeth; i++)
+ {
+ angle = i * 2.0f * M_PI / teeth;
+ gl.glNormal3f(-(float)Math.cos(angle), -(float)Math.sin(angle), 0.0f);
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), -width * 0.5f);
+ gl.glVertex3f(r0 * (float)Math.cos(angle), r0 * (float)Math.sin(angle), width * 0.5f);
+ }
+ gl.glEnd();
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ prevMouseX = evt.getX();
+ prevMouseY = evt.getY();
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ mouseRButtonDown = true;
+ evt.consume();
+ }
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ if ((evt.getModifiers() & evt.BUTTON3_MASK) != 0)
+ {
+ mouseRButtonDown = false;
+ evt.consume();
+ }
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ }
+
+ // Methods required for the implementation of MouseMotionListener
+ public void mouseDragged( MouseEvent evt )
+ {
+ int x = evt.getX();
+ int y = evt.getY();
+ Dimension size = getSize();
+
+ float thetaY = 360.0f * ( (float)(x-prevMouseX)/(float)size.width);
+ float thetaX = 360.0f * ( (float)(prevMouseY-y)/(float)size.height);
+
+ prevMouseX = x;
+ prevMouseY = y;
+
+ view_rotx += thetaX;
+ view_roty += thetaY;
+
+ evt.consume();
+ }
+
+ public void mouseMoved( MouseEvent evt )
+ {
+ }
+ }
+}
diff --git a/demos/SwingDemos/test/GLJPanel/GLJPanel.java b/demos/SwingDemos/test/GLJPanel/GLJPanel.java
new file mode 100644
index 0000000..166437b
--- /dev/null
+++ b/demos/SwingDemos/test/GLJPanel/GLJPanel.java
@@ -0,0 +1,694 @@
+//package gl4java.swing;
+
+import gl4java.*;
+
+import java.awt.*;
+import java.awt.event.*;
+import javax.swing.*;
+
+public class GLJPanel extends JPanel
+ implements GLEnum, GLUEnum,
+ ComponentListener, WindowListener, MouseListener
+{
+ protected GLContext glj = null;
+ public GLFunc gl = null;
+ public GLUFunc glu = null;
+
+ protected boolean mustResize = false;
+
+ protected boolean cvsInitialized=false;
+
+ protected boolean needCvsDispose = false;
+
+ /**
+ * Visual pre-set for doubleBuffer, default: true
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLJPanel#preInit
+ * @see GLJPanel#paint
+ */
+ protected boolean doubleBuffer = true;
+
+ /**
+ * Visual pre-set for stencil-bit number, default: 0
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLJPanel#preInit
+ * @see GLJPanel#paint
+ */
+ protected int stencilBits = 0;
+
+ /**
+ * Visual pre-set for stereoView, default: false
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLJPanel#preInit
+ * @see GLJPanel#paint
+ */
+ protected boolean stereoView = false;
+
+ /**
+ * Visual pre-set for RGBA usage, default: true - of course ;-)
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLJPanel#preInit
+ * @see GLJPanel#paint
+ */
+ protected boolean rgba = true;
+
+ /**
+ * Visual pre-set for RGBA usage, default: true - of course ;-)
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLJPanel#preInit
+ * @see GLJPanel#paint
+ */
+ protected boolean createOwnWindow = false;
+
+ /**
+ * The context with witch display lists and textures will be shared.
+ *
+ * @see GLJPanel#preInit
+ * @see GLJPanel#paint
+ */
+ protected GLContext sharedGLContext;
+
+ static {
+ if(GLContext.loadNativeLibraries(null, null, null)==false)
+ System.out.println("GLJPanel could not load def. native libs.");
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * @param gl_Name The name of the GLFunc implementation
+ * If gl_Name==null, the default class will be used !
+ *
+ * @param glu_Name The name of the GLUFunc implementation
+ * If gl_LibName==null, the default class will be used !
+ *
+ * @param layout the layout manager
+ * @param isDoubleBuffered the flag indicates,
+ * if double buffer should be used
+ *
+ */
+ public GLJPanel( String gl_Name,
+ String glu_Name,
+ LayoutManager layout, boolean isDoubleBuffered
+ )
+ {
+ super( layout, isDoubleBuffered );
+
+ if( (gl=GLContext.createGLFunc(gl_Name)) ==null)
+ {
+ System.out.println("GLFunc implementation "+gl_Name+" not created");
+ }
+ if( (glu=GLContext.createGLUFunc(glu_Name)) ==null)
+ {
+ System.out.println("GLUFunc implementation "+glu_Name+" not created");
+ }
+
+ /* to be able for RESIZE event's */
+ addComponentListener(this);
+
+ setOpaque(false);
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * @param layout the layout manager
+ * @param isDoubleBuffered the flag indicates,
+ * if double buffer should be used
+ *
+ */
+ public GLJPanel( LayoutManager layout, boolean isDoubleBuffered )
+ {
+ this(null, null, layout, isDoubleBuffered);
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * Uses the default GLFunc and GLUFunc implementation !
+ *
+ * @param isDoubleBuffered the flag indicates,
+ * if double buffer should be used
+ */
+ public GLJPanel( boolean isDoubleBuffered )
+ {
+ this(null, null, new FlowLayout(), isDoubleBuffered);
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * Uses the default GLFunc and GLUFunc implementation !
+ *
+ * @param layout the layout manager
+ */
+ public GLJPanel(LayoutManager layout)
+ {
+ this(null, null, layout, true);
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * Uses the default GLFunc and GLUFunc implementation !
+ *
+ */
+ public GLJPanel( )
+ {
+ this(null, null, new FlowLayout(), true);
+ }
+
+ /**
+ * Used to return the created GLContext
+ */
+ public final GLContext getGLContext() { return glj; }
+
+ /**
+ * Safe the toplevel window
+ */
+ protected Window topLevelWindow = null;
+
+ /**
+ *
+ * This function returns the found TopLevelWindow,
+ * which contains this Canvas ..
+ *
+ * @return void
+ *
+ * @see GLJPanel#paint
+ */
+ public final Window getTopLevelWindow()
+ { return topLevelWindow; }
+
+ /**
+ * this function overrides the Canvas paint method !
+ *
+ * For the first paint,
+ * the user function preInit is called, a GLContext is created
+ * and the user function init is called !
+ *
+ * Also, if a GL Context exist, GLJPanel's sDisplay-method will be called
+ * to do OpenGL-rendering.
+ *
+ * The sDisplay method itself calls the display-method !
+ * sDisplay is needed to be thread-safe, to manage
+ * the resize functionality and to safe the time per frame.
+ *
+ * To define your rendering, you should overwrite the display-method
+ * in your derivation.
+ *
+ * @see gl4java.GLContext#GLContext
+ * @see GLJPanel#cvsIsInit
+ * @see GLJPanel#sDisplay
+ * @see GLJPanel#display
+ * @see GLJPanel#preInit
+ * @see GLJPanel#init
+ */
+ public synchronized final void paintComponent(Graphics g)
+ {
+ //JAU
+ if(GLContext.gljClassDebug)
+ System.out.println("GPanel::paintComponent()");
+ //super.paintComponent(g);
+ setOpaque(false);
+ if(glj == null )
+ {
+ preInit();
+ glj = new GLContext ( this, gl, glu,
+ createOwnWindow,
+ doubleBuffer, stereoView,
+ rgba, stencilBits,
+ sharedGLContext );
+
+ if(glj!=null)
+ {
+ createOwnWindow = glj.isOwnWindowCreated();
+ doubleBuffer = glj.isDoubleBuffer();
+ stencilBits = glj.getStencilBitNumber();
+ stereoView = glj.isStereoView();
+ rgba = glj.isRGBA();
+ }
+
+ init();
+
+ // fetch the top-level window ,
+ // to add us as the windowListener
+ //
+ Container _c = getParent();
+ Container c = null;
+
+ while(_c!=null)
+ {
+ c = _c;
+ _c = _c.getParent();
+ }
+
+ if(c instanceof Window) {
+ topLevelWindow = (Window)c;
+ topLevelWindow.addComponentListener(this);
+ topLevelWindow.addMouseListener(this);
+ } else {
+ topLevelWindow = null;
+ System.out.println("toplevel is not a Window: "+c);
+ }
+
+ if(topLevelWindow!=null)
+ {
+ topLevelWindow.addWindowListener(this);
+ } else {
+ System.out.println("no parent found for "+getName());
+ System.out.flush();
+ }
+ if(glj!=null && glj.gljIsInit())
+ cvsInitialized=true;
+ }
+ /*
+ if( mustResize ) size = getSize();
+ g.setClip(0, 0, size.width, size.height );
+ */
+ sPaint(g);
+ }
+
+ /**
+ *
+ * This is the thread save rendering-method called by paint.
+ * The actual thread will be set to highes priority befor calling
+ * 'display'. After 'display' the priority will be reset !
+ *
+ * 'gljFree' will be NOT called after 'display'.
+ *
+ * We tested the above to use multi-threading and
+ * for the demonstration 'glDemos' it works ;-)) !
+ *
+ * BE SURE, if you want to call 'display' by yourself
+ * (e.g. in the run method for animation)
+ * YOU HAVE TO CALL sDisplay -- OR YOU MUST KNOW WHAT YOU ARE DOING THEN !
+ *
+ * @return void
+ *
+ * @see GLJPanel#paint
+ * @see GLJPanel#display
+ */
+ public synchronized final void sPaint( Graphics g )
+ {
+ boolean ok = true;
+
+ long _s = System.currentTimeMillis();
+
+ if(!cvsIsInit())
+ return;
+
+ /*
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("GLJPanel: problem in use() method");
+ return;
+ }
+ */
+
+ if( mustResize )
+ {
+ if( (ok = glj.gljMakeCurrent()) == true )
+ {
+ Dimension size = getSize();
+ glj.gljResize( size.width, size.height ) ;
+ reshape(size.width, size.height);
+ mustResize = false;
+ }
+ }
+ if(ok)
+ {
+ display();
+ g.setClip(getBounds());
+ if(GLContext.gljClassDebug)
+ glj.gljCheckGL();
+ _f_dur_self = System.currentTimeMillis()-_s;
+
+ /*
+ GLGraphics glg1 = (GLGraphics)glg.create();
+ try {
+ super.paint(glg1);
+ } finally {
+ glg1.dispose();
+ }
+ */
+ //super.paint(g);
+ if(GLContext.gljClassDebug)
+ glj.gljCheckGL();
+ _f_dur_total = System.currentTimeMillis()-_s;
+ }
+
+ }
+
+ /**
+ *
+ * This is the rendering-method called by sDisplay
+ * (and sDisplay is called by paint !).
+ * The derived-class (Your Subclass) will redefine this, to draw it's own...
+ *
+ * BE SURE, if you want to call 'display' by yourself
+ * (e.g. in the run method for animation)
+ * YOU HAVE TO CALL sDisplay !
+ *
+ * 'sDisplay' manages a semaphore to avoid reentrance of
+ * the display function !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ *
+ * @return void
+ *
+ * @see GLJPanel#sDisplay
+ * @see GLJPanel#paint
+ */
+ public void display()
+ {
+ }
+
+ /**
+ *
+ * This is your pre-init method.
+ * preInit is called just BEFORE the GL-Context is created.
+ * You should override preInit, to initialize your visual-stuff,
+ * like the protected vars: doubleBuffer and stereoView
+ *
+ * @return void
+ *
+ * @see GLJPanel#paint
+ * @see GLJPanel#doubleBuffer
+ * @see GLJPanel#stereoView
+ * @see GLJPanel#rgba
+ * @see GLJPanel#stencilBits
+ */
+ public void preInit()
+ {
+ }
+
+ /**
+ *
+ * This is your init method.
+ * init is called right after the GL-Context is initialized.
+ * You should override init, to initialize your stuff needed
+ * by OpenGL an Java !
+ *
+ * @return void
+ *
+ * @see GLJPanel#paint
+ */
+ public void init()
+ {
+ }
+
+ /**
+ * This method is used to clean up any OpenGL stuff (delete textures
+ * or whatever) prior to actually deleting the OpenGL context.
+ * You should override this with your own version, if you need to do
+ * any cleanup work at this phase.
+ * This functions is called within cvsDispose
+ *
+ * @return void
+ *
+ * @see GLJPanel#cvsDispose
+ */
+ public void doCleanup()
+ {
+ }
+
+ /**
+ * This function returns, if everything is init: the GLContext,
+ * the and the users init function
+ * This value is set in the paint method!
+ *
+ * @return boolean
+ *
+ * @see GLJPanel#paint
+ * @see GLJPanel#init
+ */
+ public boolean cvsIsInit()
+ {
+ return cvsInitialized;
+ }
+
+ protected long _f_dur_self = 0;
+ protected long _f_dur_total = 0;
+
+ /**
+ *
+ * This is the reshape-method called by paint.
+ * The derived-class (Your Subclass) will redefine this,
+ * to manage your individual reshape ...
+ *
+ * This �reshape� method will be invoked after the first paint command
+ * after GLJPanel.componentResize is called AND only if �gljUse� was
+ * succesfull (so a call of gljUse is redundant).
+ * �reshape� is not an overloading of java.awt.Component.reshape,
+ * �reshape� is more like �glut�-reshape.
+ *
+ * GLJPanel.reshape allready has a simple default implementation,
+ * which calls �gljResize� and �glViewport� - so you may be can
+ * left this one as it is (no need to overload).
+ * The needed call to �gljResize� is done by hte invoker paint !
+ *
+ * @param width the new width
+ * @param height the new height
+ * @return void
+ *
+ * @see GLJPanel#paint
+ * @see GLJPanel#sDisplay
+ */
+ public void reshape( int width, int height )
+ {
+ if(GLContext.gljClassDebug)
+ System.out.println("GLJPanel::reshape bounds("+getBounds()+")");
+ gl.glViewport(0,0, width, height);
+ }
+
+ /* JAU */
+ /*
+ public final void setBounds(int x, int y, int width, int height) {
+ reshape(x, y, width, height);
+ }
+ public final void setBounds(Rectangle r) {
+ reshape(r.x, r.y, r.width, r.height);
+ }
+
+ public void reshape(int x, int y, int width, int height) {
+ super.reshape(x, y, width, height);
+ if(glj==null || !glj.gljIsInit() || !glj.gljMakeCurrent())
+ {
+ System.out.println("GLJPanel::setBounds(): problem in use() method");
+ return;
+ }
+ reshape(width-x, height-y);
+ glj.gljCheckGL();
+ glj.gljFree();
+ size = new Dimension(width-x, height-y);
+ }
+ */
+
+
+ /**
+ *
+ * �componentResized� is the componentListeners event handler.
+ *
+ * This method sets the variable �mustResize� to true,
+ * so the upcoming �paint� method-call will invoke �reshape� !
+ *
+ * This little look-alike complicating thing is done,
+ * to avoid an Exception by using the glContext from more than
+ * one concurrent thread�s !
+ *
+ * You cannot override this implementation, it is final
+ * - override �reshape' instead !
+ *
+ * @param e the element, which is resized
+ * @return void
+ *
+ * @see GLJPanel#paint
+ * @see GLJPanel#reshape
+ */
+ public void componentResized(ComponentEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.println("GLJPanel::componentResized("+e.getComponent()+")");
+ if(glj!=null && glj.gljIsInit() && e.getComponent()==this )
+ {
+ mustResize = true;
+ //repaint();
+ }
+ }
+
+ public void componentMoved(ComponentEvent e)
+ {
+ /*
+ if(GLContext.gljClassDebug)
+ System.out.print("GLJPanel::componentMoved("+e.getComponent()+")");
+ if(e.getComponent().equals(topLevelWindow))
+ {
+ repaint();
+ }
+ */
+ }
+
+ public void componentShown(ComponentEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.print("GLJPanel::componentShown("+e.getComponent()+")");
+ }
+
+ public void componentHidden(ComponentEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.print("GLJPanel::componentHidden("+e.getComponent()+")");
+ }
+
+ public void mouseClicked(MouseEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.print(".");
+ }
+ public void mouseEntered(MouseEvent e)
+ {
+ /*
+ if(GLContext.gljClassDebug)
+ System.out.print("GLJPanel::mouseEntered("+e.getComponent()+")");
+ if(e.getComponent().equals(topLevelWindow))
+ {
+ repaint();
+ }
+ */
+ }
+ public void mouseExited(MouseEvent e)
+ {}
+ public void mousePressed(MouseEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.print("<");
+ }
+ public void mouseReleased(MouseEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.print(">");
+ }
+
+ public void windowOpened(WindowEvent e)
+ {
+ }
+
+ /**
+ *
+ * �windowClosing� is the windowListeners event handler
+ * for the topLevelWindow of this Canvas !
+ *
+ * This methods free�s AND destroy�s
+ * the GL Context with �glj.gljDestroy� !
+ *
+ * @return void
+ *
+ */
+ public void windowClosing(WindowEvent e)
+ {
+ if(e.getComponent().equals(topLevelWindow))
+ {
+ cvsDispose();
+ }
+ }
+
+ /**
+ *
+ * �windowClosed� is the windowListeners event handler.
+ *
+ * @return void
+ *
+ */
+ public void windowClosed(WindowEvent e)
+ {
+ if (needCvsDispose) cvsDispose();
+ }
+
+ public void windowIconified(WindowEvent e)
+ {
+ }
+
+ public void windowDeiconified(WindowEvent e)
+ {
+ }
+
+ public void windowActivated(WindowEvent e)
+ {
+ }
+
+ public void windowDeactivated(WindowEvent e)
+ {
+ }
+
+ /**
+ * You should call this before releasing/dispose this Window !
+ * Also you can overwrite this class,
+ * to dispose your own elements, e.g. a Frame etc. -
+ * but be shure that you call
+ * cvsDispose implementation call this one !
+ *
+ * This function calls gljDestroy of GLContext !
+ *
+ * @see gl4java.GLContext#gljDestroy
+ * @see GLJPanel#doCleanup
+ */
+ public void cvsDispose()
+ {
+ cvsInitialized = false;
+ if (glj != null)
+ {
+ if (glj.gljIsInit())
+ {
+ /* Sometimes the Microsoft VM calls the
+ Applet.stop() method but doesn't have
+ permissions to do J/Direct calls, so
+ this whole block of code will throw a
+ security exception. If this happens,
+ however, windowClosing() will still
+ call us again later and we will have
+ another opportunity to shut down the
+ context, so it all works out fine. */
+ try
+ {
+ glj.gljFree();
+ doCleanup();
+ //locks and free's GLContext
+ glj.setEnabled(false);
+ glj.gljDestroy();
+ needCvsDispose = false;
+ }
+ catch (Exception ex)
+ {
+ needCvsDispose = true;
+ }
+ }
+ }
+
+ // Setting glj to null will simply cause paint() to re-initialize.
+ // We don't want that to happen, so we will leave glj non-null.
+ }
+
+ /**
+ * get methods
+ */
+ public final int cvsGetWidth() {
+ return getSize().width;
+ }
+ public final int cvsGetHeight() {
+ return getSize().height;
+ }
+}
+
diff --git a/demos/SwingDemos/test/GLJPanel/test1.java b/demos/SwingDemos/test/GLJPanel/test1.java
new file mode 100644
index 0000000..3dcb96a
--- /dev/null
+++ b/demos/SwingDemos/test/GLJPanel/test1.java
@@ -0,0 +1,158 @@
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.awt.Dimension;
+import javax.swing.*;
+import gl4java.*;
+import gl4java.awt.*;
+import gl4java.utils.glut.*;
+import gl4java.utils.glut.fonts.*;
+
+public class test1 extends JApplet
+ implements GLEnum, GLUEnum, ActionListener, ItemListener
+{
+ static {
+ if(GLContext.loadNativeLibraries(null, null, null)==false)
+ System.out.println("GLCanvas could not load def. native libs.");
+ }
+
+ protected class test1Panel extends GLJPanel
+ implements ActionListener, ItemListener
+ {
+ public test1Panel( LayoutManager layout, boolean isDoubleBuffered)
+ {
+ super(layout, isDoubleBuffered);
+ GLContext.gljNativeDebug = true;
+ GLContext.gljClassDebug = true;
+ doubleBuffer = false;
+ }
+
+
+ public void init() {
+ System.out.println("<i>");
+ //glg = new GLGraphics(gl, glu);
+ reshape(getSize().width, getSize().height);
+ }
+
+ public void display()
+ {
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ System.out.println("<p>");
+
+ int i;
+
+ gl.glPushMatrix();
+ gl.glClear(GL_COLOR_BUFFER_BIT);
+
+ gl.glColor4f(0f, 0f, 1f, 1f);
+
+ int width=getSize().width;
+ int height=getSize().height;
+
+ gl.glBegin(GLEnum.GL_LINES);
+ gl.glVertex3i( 0, 0, 0);
+ gl.glVertex3i( 10, 10, 0);
+ gl.glVertex3i( 0, 10, 0);
+ gl.glVertex3i( 10, 0, 0);
+ gl.glEnd();
+
+ gl.glPopMatrix();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ public void reshape( int width, int height )
+ {
+ Rectangle bounds = getBounds();
+ System.out.println("reshape("+width+", "+height+")");
+ System.out.println("reshape bounds("+bounds+")");
+ //gl.glViewport(0,0, width, height);
+ gl.glViewport(bounds.x, bounds.y,
+ bounds.width, bounds.height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ gl.glOrtho(0, 10, 0, 10, -50.0,50.0);
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+ public void actionPerformed(ActionEvent e) {
+ if (e.getActionCommand().equals("east")) {
+ System.out.println("East pressed");
+ } else if (e.getActionCommand().equals("west")) {
+ System.out.println("West pressed");
+ }
+ }
+
+ public void itemStateChanged(ItemEvent e) {
+ Object source = e.getItemSelectable();
+ System.out.println("item changed: "+source);
+ }
+
+ }
+
+ test1Panel tst1cvs1;
+
+ public void init()
+ {
+ JPanel jp1 = new JPanel (new BorderLayout(), false);
+ setContentPane(jp1);
+ tst1cvs1 = new test1Panel(new BorderLayout(), false);
+ jp1.add("Center", tst1cvs1);
+
+ String[] data = {"one", "two", "three", "four"};
+ JList dataList = new JList(data);
+ jp1.add("North", dataList);
+
+ JButton b1, b2;
+ jp1.add("East", (b1 = new JButton("E")));
+ b1.setActionCommand("east");
+ b1.addActionListener(this);
+ jp1.add("West", (b2 = new JButton("W")));
+ b2.setActionCommand("west");
+ b2.addActionListener(this);
+
+ JCheckBox c1;
+ jp1.add("South", (c1 = new JCheckBox("SouthButton", true)));
+ c1.addItemListener(this);
+ }
+
+ public static void main(java.lang.String[] args) {
+ try {
+ Frame mainFrame = new Frame("test1");
+
+ test1 applet=new test1();
+
+ applet.setSize(400, 400);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ } catch (Throwable exception) {
+ System.err.println("Exception occurred in main()");
+ exception.printStackTrace(System.out);
+ }
+ }
+
+ public void actionPerformed(ActionEvent e) {
+ if (e.getActionCommand().equals("east")) {
+ System.out.println("East pressed");
+ } else if (e.getActionCommand().equals("west")) {
+ System.out.println("West pressed");
+ }
+ }
+
+ public void itemStateChanged(ItemEvent e) {
+ Object source = e.getItemSelectable();
+ System.out.println("item changed: "+source);
+ }
+
+}
diff --git a/demos/SwingDemos/test/GLJPanel/test2.java b/demos/SwingDemos/test/GLJPanel/test2.java
new file mode 100644
index 0000000..c479133
--- /dev/null
+++ b/demos/SwingDemos/test/GLJPanel/test2.java
@@ -0,0 +1,115 @@
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.awt.Dimension;
+import javax.swing.*;
+
+public class test2 extends JApplet
+ implements ActionListener, ItemListener
+{
+ protected class test2Panel extends JPanel
+ implements ActionListener, ItemListener
+ {
+ public test2Panel( LayoutManager layout, boolean isDoubleBuffered)
+ {
+ super(layout, isDoubleBuffered);
+ }
+
+
+ public void paintComponent(Graphics g)
+ {
+ System.out.println("<p>");
+
+ super.paintComponent(g);
+
+ g.setColor(Color.blue);
+
+ int width=getSize().width;
+ int height=getSize().height;
+
+ g.drawLine ( 0, height/2, width, height/2 );
+ g.drawLine ( width/2, 0, width/2, height );
+
+ g.setColor(Color.yellow);
+
+ g.drawLine ( 0, 0, width, height);
+ g.drawString("Left-top", 0, 10);
+ g.drawString("GLGraphics - CENTER", width/2, height/2);
+ g.drawString("Right - Bottom (nearly)", width*2/3, height*2/3);
+ }
+
+ public void actionPerformed(ActionEvent e) {
+ if (e.getActionCommand().equals("east")) {
+ System.out.println("East pressed");
+ } else if (e.getActionCommand().equals("west")) {
+ System.out.println("West pressed");
+ }
+ }
+
+ public void itemStateChanged(ItemEvent e) {
+ Object source = e.getItemSelectable();
+ System.out.println("item changed: "+source);
+ }
+
+ }
+
+ test2Panel tst1cvs1;
+
+ public void init()
+ {
+ JPanel jp1 = new JPanel (new BorderLayout(), false);
+ setContentPane(jp1);
+ tst1cvs1 = new test2Panel(new BorderLayout(), false);
+ jp1.add("Center", tst1cvs1);
+
+ String[] data = {"one", "two", "three", "four"};
+ JList dataList = new JList(data);
+ jp1.add("North", dataList);
+
+ JButton b1, b2;
+ jp1.add("East", (b1 = new JButton("E")));
+ b1.setActionCommand("east");
+ b1.addActionListener(this);
+ jp1.add("West", (b2 = new JButton("W")));
+ b2.setActionCommand("west");
+ b2.addActionListener(this);
+
+ JCheckBox c1;
+ jp1.add("South", (c1 = new JCheckBox("SouthButton", true)));
+ c1.addItemListener(this);
+ }
+
+ public static void main(java.lang.String[] args) {
+ try {
+ Frame mainFrame = new Frame("test2");
+
+ test2 applet=new test2();
+
+ applet.setSize(400, 400);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ } catch (Throwable exception) {
+ System.err.println("Exception occurred in main()");
+ exception.printStackTrace(System.out);
+ }
+ }
+
+ public void actionPerformed(ActionEvent e) {
+ if (e.getActionCommand().equals("east")) {
+ System.out.println("East pressed");
+ } else if (e.getActionCommand().equals("west")) {
+ System.out.println("West pressed");
+ }
+ }
+
+ public void itemStateChanged(ItemEvent e) {
+ Object source = e.getItemSelectable();
+ System.out.println("item changed: "+source);
+ }
+
+}
diff --git a/demos/SwingDemos/test/GLPanel-AWTGraphics/GLPanel.java b/demos/SwingDemos/test/GLPanel-AWTGraphics/GLPanel.java
new file mode 100644
index 0000000..4c7989d
--- /dev/null
+++ b/demos/SwingDemos/test/GLPanel-AWTGraphics/GLPanel.java
@@ -0,0 +1,676 @@
+//package gl4java.awt;
+
+import gl4java.*;
+
+import java.awt.*;
+import java.awt.event.*;
+
+public class GLPanel extends Panel
+ implements GLEnum, GLUEnum,
+ ComponentListener, WindowListener, MouseListener
+{
+ protected GLContext glj = null;
+ public GLFunc gl = null;
+ public GLUFunc glu = null;
+
+ protected boolean mustResize = false;
+
+ protected boolean cvsInitialized=false;
+
+ protected boolean needCvsDispose = false;
+
+ /**
+ * Visual pre-set for doubleBuffer, default: true
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLPanel#preInit
+ * @see GLPanel#paint
+ */
+ protected boolean doubleBuffer = true;
+
+ /**
+ * Visual pre-set for stencil-bit number, default: 0
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLPanel#preInit
+ * @see GLPanel#paint
+ */
+ protected int stencilBits = 0;
+
+ /**
+ * Visual pre-set for stereoView, default: false
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLPanel#preInit
+ * @see GLPanel#paint
+ */
+ protected boolean stereoView = false;
+
+ /**
+ * Visual pre-set for RGBA usage, default: true - of course ;-)
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLPanel#preInit
+ * @see GLPanel#paint
+ */
+ protected boolean rgba = true;
+
+ /**
+ * Visual pre-set for RGBA usage, default: true - of course ;-)
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLPanel#preInit
+ * @see GLPanel#paint
+ */
+ protected boolean createOwnWindow = false;
+
+ /**
+ * The context with witch display lists and textures will be shared.
+ *
+ * @see GLPanel#preInit
+ * @see GLPanel#paint
+ */
+ protected GLContext sharedGLContext;
+
+ static {
+ if(GLContext.loadNativeLibraries(null, null, null)==false)
+ System.out.println("GLPanel could not load def. native libs.");
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * @param width the canvas initial-prefered width
+ * @param height the canvas initial-prefered height
+ *
+ * @param gl_Name The name of the GLFunc implementation
+ * If gl_Name==null, the default class will be used !
+ *
+ * @param glu_Name The name of the GLUFunc implementation
+ * If gl_LibName==null, the default class will be used !
+ *
+ */
+ public GLPanel( String gl_Name,
+ String glu_Name
+ )
+ {
+ super( new BorderLayout() );
+
+ if( (gl=GLContext.createGLFunc(gl_Name)) ==null)
+ {
+ System.out.println("GLFunc implementation "+gl_Name+" not created");
+ }
+ if( (glu=GLContext.createGLUFunc(glu_Name)) ==null)
+ {
+ System.out.println("GLUFunc implementation "+glu_Name+" not created");
+ }
+
+ /* to be able for RESIZE event's */
+ addComponentListener(this);
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * Uses the default GLFunc and GLUFunc implementation !
+ *
+ * @param width the canvas initial-prefered width
+ * @param height the canvas initial-prefered height
+ *
+ */
+ public GLPanel( )
+ {
+ this(null, null);
+ }
+
+ /**
+ * Used to return the created GLContext
+ */
+ public final GLContext getGLContext() { return glj; }
+
+ /**
+ *
+ * Overridden update
+ * This one only call's the paint method, without clearing
+ * the background - thats hopefully done by OpenGL ;-)
+ *
+ * @param g the Graphics Context
+ * @return void
+ *
+ * @see GLPanel#paint
+ */
+ public void update(Graphics g)
+ {
+ //JAU
+ if(GLContext.gljClassDebug)
+ System.out.println("GPanel::update(): isShowing()="+isShowing());
+ if(isShowing())
+ {
+ /* let's let OpenGL clear the background ... */
+ paint(g);
+ }
+ }
+
+
+ /**
+ * Safe the toplevel window
+ */
+ protected Window topLevelWindow = null;
+
+ /**
+ *
+ * This function returns the found TopLevelWindow,
+ * which contains this Canvas ..
+ *
+ * @return void
+ *
+ * @see GLPanel#paint
+ */
+ public final Window getTopLevelWindow()
+ { return topLevelWindow; }
+
+ /**
+ * this function overrides the Canvas paint method !
+ *
+ * For the first paint,
+ * the user function preInit is called, a GLContext is created
+ * and the user function init is called !
+ *
+ * Also, if a GL Context exist, GLPanel's sDisplay-method will be called
+ * to do OpenGL-rendering.
+ *
+ * The sDisplay method itself calls the display-method !
+ * sDisplay is needed to be thread-safe, to manage
+ * the resize functionality and to safe the time per frame.
+ *
+ * To define your rendering, you should overwrite the display-method
+ * in your derivation.
+ *
+ * @see gl4java.GLContext#GLContext
+ * @see GLPanel#cvsIsInit
+ * @see GLPanel#sDisplay
+ * @see GLPanel#display
+ * @see GLPanel#preInit
+ * @see GLPanel#init
+ */
+ public synchronized final void paint( Graphics g )
+ {
+ //JAU
+ if(GLContext.gljClassDebug)
+ System.out.println("GPanel::paint()");
+ if(glj == null )
+ {
+ preInit();
+ glj = new GLContext ( this, gl, glu,
+ createOwnWindow,
+ doubleBuffer, stereoView,
+ rgba, stencilBits,
+ sharedGLContext );
+
+ if(glj!=null)
+ {
+ createOwnWindow = glj.isOwnWindowCreated();
+ doubleBuffer = glj.isDoubleBuffer();
+ stencilBits = glj.getStencilBitNumber();
+ stereoView = glj.isStereoView();
+ rgba = glj.isRGBA();
+ }
+
+ init();
+
+ // fetch the top-level window ,
+ // to add us as the windowListener
+ //
+ Container _c = getParent();
+ Container c = null;
+
+ while(_c!=null)
+ {
+ c = _c;
+ _c = _c.getParent();
+ }
+
+ if(c instanceof Window) {
+ topLevelWindow = (Window)c;
+ topLevelWindow.addComponentListener(this);
+ topLevelWindow.addMouseListener(this);
+ } else {
+ topLevelWindow = null;
+ System.out.println("toplevel is not a Window: "+c);
+ }
+
+ if(topLevelWindow!=null)
+ {
+ topLevelWindow.addWindowListener(this);
+ } else {
+ System.out.println("no parent found for "+getName());
+ System.out.flush();
+ }
+ if(glj!=null && glj.gljIsInit())
+ cvsInitialized=true;
+ }
+ /*
+ if( mustResize ) size = getSize();
+ g.setClip(0, 0, size.width, size.height );
+ */
+ sPaint(g);
+ }
+
+ /**
+ *
+ * This is the thread save rendering-method called by paint.
+ * The actual thread will be set to highes priority befor calling
+ * 'display'. After 'display' the priority will be reset !
+ *
+ * 'gljFree' will be NOT called after 'display'.
+ *
+ * We tested the above to use multi-threading and
+ * for the demonstration 'glDemos' it works ;-)) !
+ *
+ * BE SURE, if you want to call 'display' by yourself
+ * (e.g. in the run method for animation)
+ * YOU HAVE TO CALL sDisplay -- OR YOU MUST KNOW WHAT YOU ARE DOING THEN !
+ *
+ * @return void
+ *
+ * @see GLPanel#paint
+ * @see GLPanel#display
+ */
+ public synchronized final void sPaint( Graphics g )
+ {
+ boolean ok = true;
+
+ long _s = System.currentTimeMillis();
+
+ if(!cvsIsInit())
+ return;
+
+ /*
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("GLPanel: problem in use() method");
+ return;
+ }
+ */
+
+ if( mustResize )
+ {
+ Dimension size = getSize();
+ glj.gljResize( size.width, size.height ) ;
+ reshape(size.width, size.height);
+ mustResize = false;
+ }
+ if(ok)
+ {
+ display();
+ if(GLContext.gljClassDebug)
+ glj.gljCheckGL();
+ _f_dur_self = System.currentTimeMillis()-_s;
+
+ /*
+ GLGraphics glg1 = (GLGraphics)glg.create();
+ try {
+ super.paint(glg1);
+ } finally {
+ glg1.dispose();
+ }
+ */
+ super.paint(g);
+ if(GLContext.gljClassDebug)
+ glj.gljCheckGL();
+ _f_dur_total = System.currentTimeMillis()-_s;
+
+ glj.gljSwap();
+ glj.gljFree();
+ }
+
+ }
+
+ /**
+ *
+ * This is the rendering-method called by sDisplay
+ * (and sDisplay is called by paint !).
+ * The derived-class (Your Subclass) will redefine this, to draw it's own...
+ *
+ * BE SURE, if you want to call 'display' by yourself
+ * (e.g. in the run method for animation)
+ * YOU HAVE TO CALL sDisplay !
+ *
+ * 'sDisplay' manages a semaphore to avoid reentrance of
+ * the display function !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ *
+ * @return void
+ *
+ * @see GLPanel#sDisplay
+ * @see GLPanel#paint
+ */
+ public void display()
+ {
+ }
+
+ /**
+ *
+ * This is your pre-init method.
+ * preInit is called just BEFORE the GL-Context is created.
+ * You should override preInit, to initialize your visual-stuff,
+ * like the protected vars: doubleBuffer and stereoView
+ *
+ * @return void
+ *
+ * @see GLPanel#paint
+ * @see GLPanel#doubleBuffer
+ * @see GLPanel#stereoView
+ * @see GLPanel#rgba
+ * @see GLPanel#stencilBits
+ */
+ public void preInit()
+ {
+ }
+
+ /**
+ *
+ * This is your init method.
+ * init is called right after the GL-Context is initialized.
+ * You should override init, to initialize your stuff needed
+ * by OpenGL an Java !
+ *
+ * @return void
+ *
+ * @see GLPanel#paint
+ */
+ public void init()
+ {
+ }
+
+ /**
+ * This method is used to clean up any OpenGL stuff (delete textures
+ * or whatever) prior to actually deleting the OpenGL context.
+ * You should override this with your own version, if you need to do
+ * any cleanup work at this phase.
+ * This functions is called within cvsDispose
+ *
+ * @return void
+ *
+ * @see GLPanel#cvsDispose
+ */
+ public void doCleanup()
+ {
+ }
+
+ /**
+ * This function returns, if everything is init: the GLContext,
+ * the and the users init function
+ * This value is set in the paint method!
+ *
+ * @return boolean
+ *
+ * @see GLPanel#paint
+ * @see GLPanel#init
+ */
+ public boolean cvsIsInit()
+ {
+ return cvsInitialized;
+ }
+
+ protected long _f_dur_self = 0;
+ protected long _f_dur_total = 0;
+
+ /**
+ *
+ * This is the reshape-method called by paint.
+ * The derived-class (Your Subclass) will redefine this,
+ * to manage your individual reshape ...
+ *
+ * This �reshape� method will be invoked after the first paint command
+ * after GLPanel.componentResize is called AND only if �gljUse� was
+ * succesfull (so a call of gljUse is redundant).
+ * �reshape� is not an overloading of java.awt.Component.reshape,
+ * �reshape� is more like �glut�-reshape.
+ *
+ * GLPanel.reshape allready has a simple default implementation,
+ * which calls �gljResize� and �glViewport� - so you may be can
+ * left this one as it is (no need to overload).
+ * The needed call to �gljResize� is done by hte invoker paint !
+ *
+ * @param width the new width
+ * @param height the new height
+ * @return void
+ *
+ * @see GLPanel#paint
+ * @see GLPanel#sDisplay
+ */
+ public void reshape( int width, int height )
+ {
+ if(GLContext.gljClassDebug)
+ System.out.println("GLPanel::reshape bounds("+getBounds()+")");
+ gl.glViewport(0,0, width, height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ gl.glOrtho(0, width, height, 0, -50.0,50.0);
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+ /* JAU */
+ /*
+ public final void setBounds(int x, int y, int width, int height) {
+ reshape(x, y, width, height);
+ }
+ public final void setBounds(Rectangle r) {
+ reshape(r.x, r.y, r.width, r.height);
+ }
+
+ public void reshape(int x, int y, int width, int height) {
+ super.reshape(x, y, width, height);
+ if(glj==null || !glj.gljIsInit() || !glj.gljMakeCurrent())
+ {
+ System.out.println("GLPanel::setBounds(): problem in use() method");
+ return;
+ }
+ reshape(width-x, height-y);
+ glj.gljCheckGL();
+ glj.gljFree();
+ size = new Dimension(width-x, height-y);
+ }
+ */
+
+
+ /**
+ *
+ * �componentResized� is the componentListeners event handler.
+ *
+ * This method sets the variable �mustResize� to true,
+ * so the upcoming �paint� method-call will invoke �reshape� !
+ *
+ * This little look-alike complicating thing is done,
+ * to avoid an Exception by using the glContext from more than
+ * one concurrent thread�s !
+ *
+ * You cannot override this implementation, it is final
+ * - override �reshape' instead !
+ *
+ * @param e the element, which is resized
+ * @return void
+ *
+ * @see GLPanel#paint
+ * @see GLPanel#reshape
+ */
+ public void componentResized(ComponentEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.println("GLPanel::componentResized("+e.getComponent()+")");
+ if(glj!=null && glj.gljIsInit() && e.getComponent()==this )
+ {
+ mustResize = true;
+ //repaint();
+ }
+ }
+
+ public void componentMoved(ComponentEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.print("GLPanel::componentMoved("+e.getComponent()+")");
+ /*
+ if(e.getComponent().equals(topLevelWindow))
+ {
+ repaint();
+ }
+ */
+ }
+
+ public void componentShown(ComponentEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.print("GLPanel::componentShown("+e.getComponent()+")");
+ }
+
+ public void componentHidden(ComponentEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.print("GLPanel::componentHidden("+e.getComponent()+")");
+ }
+
+ public void mouseClicked(MouseEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.print(".");
+ }
+ public void mouseEntered(MouseEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.print("GLPanel::mouseEntered("+e.getComponent()+")");
+ /*
+ if(e.getComponent().equals(topLevelWindow))
+ {
+ repaint();
+ }
+ */
+ }
+ public void mouseExited(MouseEvent e)
+ {}
+ public void mousePressed(MouseEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.print("<");
+ }
+ public void mouseReleased(MouseEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.print(">");
+ }
+
+ public void windowOpened(WindowEvent e)
+ {
+ }
+
+ /**
+ *
+ * �windowClosing� is the windowListeners event handler
+ * for the topLevelWindow of this Canvas !
+ *
+ * This methods free�s AND destroy�s
+ * the GL Context with �glj.gljDestroy� !
+ *
+ * @return void
+ *
+ */
+ public void windowClosing(WindowEvent e)
+ {
+ if(e.getComponent().equals(topLevelWindow))
+ {
+ cvsDispose();
+ }
+ }
+
+ /**
+ *
+ * �windowClosed� is the windowListeners event handler.
+ *
+ * @return void
+ *
+ */
+ public void windowClosed(WindowEvent e)
+ {
+ if (needCvsDispose) cvsDispose();
+ }
+
+ public void windowIconified(WindowEvent e)
+ {
+ }
+
+ public void windowDeiconified(WindowEvent e)
+ {
+ }
+
+ public void windowActivated(WindowEvent e)
+ {
+ }
+
+ public void windowDeactivated(WindowEvent e)
+ {
+ }
+
+ /**
+ * You should call this before releasing/dispose this Window !
+ * Also you can overwrite this class,
+ * to dispose your own elements, e.g. a Frame etc. -
+ * but be shure that you call
+ * cvsDispose implementation call this one !
+ *
+ * This function calls gljDestroy of GLContext !
+ *
+ * @see gl4java.GLContext#gljDestroy
+ * @see GLPanel#doCleanup
+ */
+ public void cvsDispose()
+ {
+ cvsInitialized = false;
+ if (glj != null)
+ {
+ if (glj.gljIsInit())
+ {
+ /* Sometimes the Microsoft VM calls the
+ Applet.stop() method but doesn't have
+ permissions to do J/Direct calls, so
+ this whole block of code will throw a
+ security exception. If this happens,
+ however, windowClosing() will still
+ call us again later and we will have
+ another opportunity to shut down the
+ context, so it all works out fine. */
+ try
+ {
+ glj.gljFree();
+ doCleanup();
+ //locks and free's GLContext
+ glj.setEnabled(false);
+ glj.gljDestroy();
+ needCvsDispose = false;
+ }
+ catch (Exception ex)
+ {
+ needCvsDispose = true;
+ }
+ }
+ }
+
+ // Setting glj to null will simply cause paint() to re-initialize.
+ // We don't want that to happen, so we will leave glj non-null.
+ }
+
+ /**
+ * get methods
+ */
+ public final int cvsGetWidth() {
+ return getSize().width;
+ }
+ public final int cvsGetHeight() {
+ return getSize().height;
+ }
+}
+
diff --git a/demos/SwingDemos/test/GLPanel-AWTGraphics/test1.java b/demos/SwingDemos/test/GLPanel-AWTGraphics/test1.java
new file mode 100644
index 0000000..b9786a0
--- /dev/null
+++ b/demos/SwingDemos/test/GLPanel-AWTGraphics/test1.java
@@ -0,0 +1,137 @@
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.awt.Dimension;
+import javax.swing.*;
+import gl4java.*;
+import gl4java.awt.*;
+import gl4java.swing.*;
+import gl4java.utils.glut.*;
+import gl4java.utils.glut.fonts.*;
+
+public class test1 extends JApplet
+ implements GLEnum, GLUEnum
+{
+ static {
+ if(GLContext.loadNativeLibraries(null, null, null)==false)
+ System.out.println("GLCanvas could not load def. native libs.");
+ }
+
+ protected class test1Panel extends GLPanel
+ implements ActionListener, ItemListener
+ {
+ public test1Panel() {
+ super();
+ GLContext.gljNativeDebug = true;
+ GLContext.gljClassDebug = true;
+ //String[] data = {"one", "two", "three", "four"};
+ //JList dataList = new JList(data);
+ //add("North", dataList);
+ JButton b1, b2;
+ add("East", (b1 = new JButton("E")));
+ b1.setActionCommand("east");
+ b1.addActionListener(this);
+ add("West", (b2 = new JButton("W")));
+ b2.setActionCommand("west");
+ b2.addActionListener(this);
+
+ JCheckBox c1;
+ add("South", (c1 = new JCheckBox("SouthButton", true)));
+ c1.addItemListener(this);
+ }
+
+
+ public void init() {
+ System.out.println("<i>");
+ //glg = new GLGraphics(gl, glu);
+ reshape(getSize().width, getSize().height);
+ }
+
+ public void display()
+ {
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ System.out.println("<p>");
+
+ int i;
+
+ gl.glPushMatrix();
+ gl.glClear(GL_COLOR_BUFFER_BIT);
+
+ gl.glColor4f(0f, 0f, 1f, 1f);
+
+ int width=getSize().width;
+ int height=getSize().height;
+
+ gl.glBegin(GLEnum.GL_LINES);
+ gl.glVertex3i( 0, 0, 0);
+ gl.glVertex3i( 10, 10, 0);
+ gl.glVertex3i( 0, 10, 0);
+ gl.glVertex3i( 10, 0, 0);
+ gl.glEnd();
+
+ gl.glPopMatrix();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ public void reshape( int width, int height )
+ {
+ System.out.println("reshape("+width+", "+height+")");
+ System.out.println("reshape bounds("+getBounds()+")");
+ gl.glViewport(0,0, width, height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ gl.glOrtho(0, 10, 0, 10, -50.0,50.0);
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+ public void actionPerformed(ActionEvent e) {
+ if (e.getActionCommand().equals("east")) {
+ System.out.println("East pressed");
+ } else if (e.getActionCommand().equals("west")) {
+ System.out.println("West pressed");
+ }
+ }
+
+ public void itemStateChanged(ItemEvent e) {
+ Object source = e.getItemSelectable();
+ System.out.println("item changed: "+source);
+ }
+
+ }
+
+ test1Panel tst1cvs1;
+
+ public void init()
+ {
+ tst1cvs1 = new test1Panel();
+ tst1cvs1.setSize(400,400);
+ setContentPane(tst1cvs1);
+ }
+
+ public static void main(java.lang.String[] args) {
+ try {
+ Frame mainFrame = new Frame("test1");
+
+ test1 applet=new test1();
+
+ applet.setSize(400, 400);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ } catch (Throwable exception) {
+ System.err.println("Exception occurred in main()");
+ exception.printStackTrace(System.out);
+ }
+ }
+}
diff --git a/demos/SwingDemos/test/GLPanel-GLGraphics/GLGraphics.java b/demos/SwingDemos/test/GLPanel-GLGraphics/GLGraphics.java
new file mode 100644
index 0000000..835febf
--- /dev/null
+++ b/demos/SwingDemos/test/GLPanel-GLGraphics/GLGraphics.java
@@ -0,0 +1,513 @@
+/**
+ * @(#) GLGraphics.java
+ */
+
+//package gl4java.awt;
+
+import gl4java.*;
+import gl4java.utils.glut.*;
+import gl4java.utils.glut.fonts.*;
+
+import java.awt.*;
+import java.awt.image.*;
+import java.awt.event.*;
+import java.awt.image.ImageObserver;
+import java.text.*;
+
+public class GLGraphics
+ extends java.awt.Graphics
+ implements Cloneable
+{
+
+protected final boolean debug = false;
+
+/**
+ * this is the original Graphics context
+ */
+protected Graphics g = null;
+
+protected GLContext glj = null;
+protected GLFunc gl = null;
+protected GLUFunc glu = null;
+protected GLUTFunc glut = null;
+protected int currentGlutFont = GLUTEnum.GLUT_BITMAP_TIMES_ROMAN_10;
+protected int x_orig = 0;
+protected int y_orig = 0;
+protected int z_orig = 0;
+
+//protected Color clr = Color.black;
+//protected Shape clip = null;
+//protected Font fnt = null;
+
+public GLGraphics (Graphics g, GLContext glj, GLFunc gl, GLUFunc glu) {
+ this.g=g;
+ this.glj=glj;
+ this.gl=gl;
+ this.glu=glu;
+ glut = new GLUTFuncLightImplWithFonts(gl, glu);
+}
+
+public GLGraphics (Graphics g, GLContext glj, GLFunc gl, GLUFunc glu, GLUTFunc glut) {
+ this.g=g;
+ this.glj=glj;
+ this.gl=gl;
+ this.glu=glu;
+ this.glut=glut;
+}
+
+protected GLGraphics (GLContext glj, GLFunc gl, GLUFunc glu, GLUTFunc glut) {
+ this.glj=glj;
+ this.gl=gl;
+ this.glu=glu;
+ this.glut=glut;
+}
+
+protected Object clone()
+ throws CloneNotSupportedException
+{
+ GLGraphics glg = new GLGraphics(g, glj, gl, glu, glut);
+ //glg.g=g.create();
+ glg.x_orig=x_orig;
+ glg.y_orig=y_orig;
+ glg.z_orig=z_orig;
+ glg.currentGlutFont=currentGlutFont;
+
+ //glg.clr = clr;
+ //glg.clip=clip;
+ //glg.fnt = fnt;
+
+ return glg;
+}
+
+public Graphics create () {
+ try {
+ return ((Graphics)clone());
+ }
+ catch (CloneNotSupportedException _) {
+ return (null);
+ }
+}
+
+public Graphics create ( int x, int y, int width, int height ) {
+ if(debug)
+ System.out.println("Graphics::create("+x+","+y+","+width+","+height+")");
+ // slow, generic version
+ Graphics g = create();
+
+ // modify cloned state acording to request
+ g.translate( x, y);
+ g.clipRect( 0, 0, width, height); // spec says this should be the intersection
+
+ return g;
+}
+
+public void clearRect ( int x, int y, int width, int height )
+{
+ if(debug)
+ System.out.println("Graphics::clearRect("+x+","+y+","+width+","+height+")");
+}
+
+public void clipRect ( int x, int y, int width, int height )
+{ g.clipRect(x, y, width, height);
+}
+
+public void copyArea ( int x, int y, int width, int height, int dx, int dy )
+{
+ if(debug)
+ System.out.println("Graphics::copyArea("+x+","+y+","+width+","+height+","+dx+","+dy+")");
+}
+
+public void dispose ()
+{
+ //g.dispose();
+}
+
+public void drawArc ( int x, int y, int width, int height,
+ int startAngle, int arcAngle )
+{
+ if(debug)
+ System.out.println("Graphics::drawArc("+x+","+y+","+width+","+height+","+startAngle+","+arcAngle+")");
+}
+
+public boolean drawImage (Image img, int x, int y, Color bgcolor,
+ ImageObserver observer)
+{
+ if(debug)
+ System.out.println("Graphics::drawImage("+x+","+y+","+bgcolor+")");
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("GLGraphics: problem in use() method");
+ return false;
+ }
+ return false;
+}
+
+public boolean drawImage ( Image img, int x, int y, ImageObserver observer)
+{
+ if(debug)
+ System.out.println("Graphics::drawImage("+x+","+y+")");
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("GLGraphics: problem in use() method");
+ return false;
+ }
+
+ glDrawImage(observer, img, x_orig+x, y_orig+y, z_orig);
+ return false;
+}
+
+public boolean drawImage ( Image img, int x, int y, int width, int height,
+ Color background, ImageObserver observer )
+{
+ if(debug)
+ System.out.println("Graphics::drawImage("+x+","+y+","+width+","+height+","+background+")");
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("GLGraphics: problem in use() method");
+ return false;
+ }
+ return false;
+}
+
+public boolean drawImage ( Image img, int x, int y, int width, int height,
+ ImageObserver observer)
+{
+ if(debug)
+ System.out.println("Graphics::drawImage("+x+","+y+","+width+","+height+")");
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("GLGraphics: problem in use() method");
+ return false;
+ }
+ return false;
+}
+
+public boolean drawImage ( Image img,
+ int dx0, int dy0, int dx1, int dy1,
+ int sx0, int sy0, int sx1, int sy1,
+ Color bgColor, ImageObserver observer)
+{
+ if(debug)
+ System.out.println("Graphics::drawImage(..)");
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("GLGraphics: problem in use() method");
+ return false;
+ }
+ return false;
+}
+
+public boolean drawImage ( Image img,
+ int dx1, int dy1, int dx2, int dy2,
+ int sx1, int sy1, int sx2, int sy2,
+ ImageObserver observer)
+{
+ if(debug)
+ System.out.println("Graphics::drawImage(..)");
+ return false;
+}
+
+public void drawLine ( int x1, int y1, int x2, int y2 )
+{
+ if(debug)
+ System.out.println("Graphics("+x_orig+","+y_orig+")::drawLine("+x1+","+y1+","+x2+","+y2+")");
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("GLGraphics: problem in use() method");
+ return;
+ }
+ gl.glBegin(GLEnum.GL_LINES);
+ gl.glVertex3i( x_orig+x1, y_orig+y1, z_orig);
+ gl.glVertex3i( x_orig+x2, y_orig+y2, z_orig);
+ gl.glEnd();
+}
+
+public void drawOval ( int x, int y, int width, int height )
+{
+ if(debug)
+ System.out.println("Graphics::drawOval("+x+","+y+","+width+","+height+")");
+}
+
+public void drawPolygon ( int xPoints[], int yPoints[], int nPoints )
+{
+ if(debug)
+ System.out.println("Graphics("+x_orig+","+y_orig+")::drawPolygon(...)");
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("GLGraphics: problem in use() method");
+ return;
+ }
+ gl.glPolygonMode(GLEnum.GL_FRONT_AND_BACK, GLEnum.GL_LINE);
+ gl.glBegin(GLEnum.GL_POLYGON);
+ for(int i=0; i<nPoints; i++)
+ gl.glVertex3i( x_orig+xPoints[i], y_orig+yPoints[i], z_orig);
+ gl.glEnd();
+}
+
+public void drawPolyline ( int xPoints[], int yPoints[], int nPoints )
+{
+ if(debug)
+ System.out.println("Graphics("+x_orig+","+y_orig+")::drawPolyline(...)");
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("GLGraphics: problem in use() method");
+ return;
+ }
+ gl.glPolygonMode(GLEnum.GL_FRONT_AND_BACK, GLEnum.GL_LINE);
+ gl.glBegin(GLEnum.GL_POLYGON);
+ for(int i=0; i<nPoints; i++)
+ gl.glVertex3i( x_orig+xPoints[i], y_orig+yPoints[i], z_orig);
+ gl.glEnd();
+}
+
+public void drawRoundRect ( int x, int y, int width, int height,
+ int arcWidth, int arcHeight)
+{
+ if(debug)
+ System.out.println("Graphics::drawRoundRect("+x+","+y+","+width+","+height+","+arcWidth+","+arcHeight+")");
+}
+
+public void drawString ( String str, int x, int y )
+{
+ if(debug)
+ System.out.println("Graphics("+x_orig+","+y_orig+")::drawString("+x+","+y+","+str+")");
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("GLGraphics: problem in use() method");
+ return;
+ }
+ gl.glRasterPos3d(x_orig+x, y_orig+y, z_orig);
+ glut.glutBitmapString(currentGlutFont,str);
+}
+
+public void drawString(java.text.AttributedCharacterIterator aci, int x, int y)
+{
+ if(debug)
+ System.out.println("Graphics("+x_orig+","+y_orig+")::drawStringACI("+x+","+y+")");
+ StringBuffer sb = new StringBuffer();
+ for(char c = aci.first(); c != CharacterIterator.DONE; c = aci.next())
+ sb.append(c);
+ drawString(sb.toString(), x, y);
+}
+
+public void fillArc ( int x, int y, int width, int height,
+ int startAngle, int arcAngle )
+{
+ if(debug)
+ System.out.println("Graphics::fillArc("+x+","+y+","+width+","+height+","+startAngle+","+arcAngle+")");
+}
+
+public void fillOval ( int x, int y, int width, int height )
+{
+ if(debug)
+ System.out.println("Graphics::fillOval("+x+","+y+","+width+","+height+")");
+}
+
+public void fillPolygon ( int xPoints[], int yPoints[], int nPoints )
+{
+ if(debug)
+ System.out.println("Graphics::fillPolygon(..)");
+}
+
+public void fillRect ( int x, int y, int width, int height )
+{
+ if(debug)
+ System.out.println("Graphics::fillRect("+x+","+y+","+width+","+height+")");
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("GLGraphics: problem in use() method");
+ return;
+ }
+ gl.glPolygonMode(GLEnum.GL_FRONT_AND_BACK, GLEnum.GL_FILL);
+ gl.glBegin(GLEnum.GL_POLYGON);
+ gl.glVertex3i( x_orig+x, y_orig+y, z_orig);
+ gl.glVertex3i( x_orig+x+width, y_orig+y, z_orig);
+ gl.glVertex3i( x_orig+x+width, y_orig+y+height, z_orig);
+ gl.glVertex3i( x_orig+x, y_orig+y+height, z_orig);
+ gl.glVertex3i( x_orig+x, y_orig+y, z_orig);
+ gl.glEnd();
+}
+
+public void fillRoundRect ( int x, int y, int width, int height,
+ int arcWidth, int arcHeight )
+{
+ if(debug)
+ System.out.println("Graphics::fillRoundRect("+x+","+y+","+width+","+height+","+arcWidth+","+arcHeight+")");
+}
+
+public Shape getClip ()
+{ return g.getClip(); }
+
+public Rectangle getClipBounds()
+{ return null; }
+
+public Color getColor()
+{ return g.getColor(); }
+
+public Font getFont()
+{ return g.getFont(); }
+
+public FontMetrics getFontMetrics ( Font fnt )
+{ return g.getFontMetrics(fnt); }
+
+public void setClip ( Shape clip )
+{ g.setClip(clip); }
+
+public void setClip ( int x, int y, int width, int height )
+{ g.setClip(x, y, width, height); }
+
+public void setColor ( Color clr )
+{
+ if(debug)
+ System.out.println("Graphics("+x_orig+","+y_orig+")::setColor("+clr+")");
+ g.setColor(clr);
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("GLGraphics: problem in use() method");
+ return;
+ }
+ gl.glColor4d(clr.getRed()/255.0, clr.getGreen()/255.0,
+ clr.getBlue()/255.0, clr.getAlpha()/255.0);
+}
+
+public void setFont ( Font newFnt )
+{ g.setFont(newFnt);
+ if(debug)
+ System.out.println("Graphics("+(x_orig)+","+(y_orig)+")::setFont("+newFnt.getName()+" / "+ newFnt.getFamily()+" / "+ newFnt.getSize()+")");
+ switch(newFnt.getSize())
+ {
+ case 8:
+ currentGlutFont = GLUTEnum.GLUT_BITMAP_8_BY_13;
+ break;
+ case 9:
+ currentGlutFont = GLUTEnum.GLUT_BITMAP_9_BY_15;
+ break;
+ case 10:
+ currentGlutFont = GLUTEnum.GLUT_BITMAP_TIMES_ROMAN_10;
+ break;
+ case 24:
+ currentGlutFont = GLUTEnum.GLUT_BITMAP_TIMES_ROMAN_24;
+ break;
+ /*
+ case 10:
+ currentGlutFont = GLUTEnum.GLUT_BITMAP_HELVETICA_10;
+ break;
+ */
+ case 12:
+ currentGlutFont = GLUTEnum.GLUT_BITMAP_HELVETICA_12;
+ break;
+ case 18:
+ currentGlutFont = GLUTEnum.GLUT_BITMAP_HELVETICA_18;
+ break;
+ default:
+ currentGlutFont = GLUTEnum.GLUT_BITMAP_TIMES_ROMAN_10;
+ }
+}
+
+public void setPaintMode()
+{}
+
+public void setXORMode ( Color newXorClr )
+{}
+
+public void translate ( int x, int y )
+{
+ x_orig+=x;
+ y_orig+=y;
+ if(debug)
+ System.out.println("Graphics("+(x_orig-x)+","+(y_orig-y)+")::translate("+x+","+y+") -> ("+x_orig+","+y_orig+")");
+ g.translate(x, y);
+}
+
+protected void glDrawImage(ImageObserver observer, Image image,
+ int xpos, int ypos, int zpos)
+{
+ int imageWidth = image.getWidth(observer);
+ int imageHeight = image.getHeight(observer);
+ int glFormat=GLEnum.GL_RGB; //def. RGB type
+ int comps=3; //def. RGB type
+
+ if(debug)
+ System.out.println("Graphics("+(x_orig)+","+(y_orig)+")::glDrawImage("+xpos+","+ypos+") ("+imageWidth+","+imageHeight+")");
+
+ /* This is Java2 only code :-(
+ BufferedImage image =
+ new BufferedImage(imageWidth, imageHeight,
+ BufferedImage.TYPE_INT_RGB);
+
+ Graphics g = image.createGraphics();
+ g.drawImage(img,0,0,comp);
+
+ imageWidth = image.getWidth();
+ imageHeight = image.getHeight();
+ */
+
+ // Read entire PNG image (doesn't throw exceptions)
+ int[] iPixels = new int[imageWidth * imageHeight];
+
+ PixelGrabber pp=new PixelGrabber(image,
+ 0,0,
+ imageWidth, imageHeight,
+ iPixels,
+ 0,
+ imageWidth);
+ try
+ {
+ pp.grabPixels();
+ }
+ catch (InterruptedException e)
+ {
+ System.err.println("interrupted waiting for pixel!");
+ return;
+ }
+ if ((pp.getStatus() & ImageObserver.ABORT) != 0)
+ {
+ System.err.println("image fetch aborted or errored");
+ return;
+ }
+
+ /* This is Java2 only code :-(
+ int imagetype = image.getType();
+ switch(imagetype)
+ {
+ case BufferedImage.TYPE_INT_RGB:
+ glFormat=GLEnum.GL_RGB;
+ comps=3;
+ break;
+ case BufferedImage.TYPE_INT_ARGB:
+ case BufferedImage.TYPE_INT_ARGB_PRE:
+ glFormat=GLEnum.GL_RGBA;
+ comps=4;
+ break;
+ default:
+ System.err.println("unsupported format: "+imagetype);
+ return;
+ };
+ */
+
+ byte[] pixel=new byte[imageWidth * imageHeight * comps];
+
+ byte alpha=0;
+ byte red=0;
+ byte green=0;
+ byte blue=0;
+ int offset=0;
+ int aPixel;
+ int y_desc, y_asc;
+ for(y_desc=imageHeight-1, y_asc=0; y_desc>=0; y_desc--, y_asc++)
+ {
+ for(int x=0;x<imageWidth;x++)
+ {
+ aPixel = iPixels[y_desc*imageWidth + x];
+
+ if(glFormat==GLEnum.GL_RGBA)
+ alpha =new Integer( (aPixel >> 24) & 0xff ).byteValue();
+ red =new Integer( (aPixel >> 16) & 0xff ).byteValue();
+ green =new Integer( (aPixel >> 8) & 0xff ).byteValue();
+ blue =new Integer( (aPixel ) & 0xff ).byteValue();
+
+ pixel[offset++]=red;
+ pixel[offset++]=green;
+ pixel[offset++]=blue;
+ if(glFormat==GLEnum.GL_RGBA)
+ pixel[offset++]=alpha;
+ }
+ }
+ gl.glPixelStorei(GLEnum.GL_UNPACK_ALIGNMENT, 1);
+ gl.glDrawBuffer(GLEnum.GL_FRONT);
+ gl.glRasterPos3i(xpos, ypos+imageHeight, zpos);
+ gl.glDrawPixels(imageWidth, imageHeight,
+ glFormat, GLEnum.GL_UNSIGNED_BYTE,
+ pixel);
+ gl.glDrawBuffer(GLEnum.GL_BACK);
+}
+}
diff --git a/demos/SwingDemos/test/GLPanel-GLGraphics/GLPanel.java b/demos/SwingDemos/test/GLPanel-GLGraphics/GLPanel.java
new file mode 100644
index 0000000..266595e
--- /dev/null
+++ b/demos/SwingDemos/test/GLPanel-GLGraphics/GLPanel.java
@@ -0,0 +1,692 @@
+//package gl4java.awt;
+
+import gl4java.*;
+
+import java.awt.*;
+import java.awt.event.*;
+
+public class GLPanel extends Panel
+ implements GLEnum, GLUEnum,
+ ComponentListener, WindowListener, MouseListener
+{
+ protected GLContext glj = null;
+ public GLFunc gl = null;
+ public GLUFunc glu = null;
+ public GLGraphics glg = null;
+
+ protected boolean mustResize = false;
+
+ protected boolean cvsInitialized=false;
+
+ protected boolean needCvsDispose = false;
+
+ /**
+ * Visual pre-set for doubleBuffer, default: true
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLPanel#preInit
+ * @see GLPanel#paint
+ */
+ protected boolean doubleBuffer = true;
+
+ /**
+ * Visual pre-set for stencil-bit number, default: 0
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLPanel#preInit
+ * @see GLPanel#paint
+ */
+ protected int stencilBits = 0;
+
+ /**
+ * Visual pre-set for stereoView, default: false
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLPanel#preInit
+ * @see GLPanel#paint
+ */
+ protected boolean stereoView = false;
+
+ /**
+ * Visual pre-set for RGBA usage, default: true - of course ;-)
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLPanel#preInit
+ * @see GLPanel#paint
+ */
+ protected boolean rgba = true;
+
+ /**
+ * Visual pre-set for RGBA usage, default: true - of course ;-)
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLPanel#preInit
+ * @see GLPanel#paint
+ */
+ protected boolean createOwnWindow = false;
+
+ /**
+ * The context with witch display lists and textures will be shared.
+ *
+ * @see GLPanel#preInit
+ * @see GLPanel#paint
+ */
+ protected GLContext sharedGLContext;
+
+ static {
+ if(GLContext.loadNativeLibraries(null, null, null)==false)
+ System.out.println("GLPanel could not load def. native libs.");
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * @param width the canvas initial-prefered width
+ * @param height the canvas initial-prefered height
+ *
+ * @param gl_Name The name of the GLFunc implementation
+ * If gl_Name==null, the default class will be used !
+ *
+ * @param glu_Name The name of the GLUFunc implementation
+ * If gl_LibName==null, the default class will be used !
+ *
+ */
+ public GLPanel( String gl_Name,
+ String glu_Name
+ )
+ {
+ super( new BorderLayout() );
+
+ if( (gl=GLContext.createGLFunc(gl_Name)) ==null)
+ {
+ System.out.println("GLFunc implementation "+gl_Name+" not created");
+ }
+ if( (glu=GLContext.createGLUFunc(glu_Name)) ==null)
+ {
+ System.out.println("GLUFunc implementation "+glu_Name+" not created");
+ }
+
+ /* to be able for RESIZE event's */
+ addComponentListener(this);
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * Uses the default GLFunc and GLUFunc implementation !
+ *
+ * @param width the canvas initial-prefered width
+ * @param height the canvas initial-prefered height
+ *
+ */
+ public GLPanel( )
+ {
+ this(null, null);
+ }
+
+ /**
+ * Used to return the created GLContext
+ */
+ public final GLContext getGLContext() { return glj; }
+
+ /**
+ *
+ * Overridden update
+ * This one only call's the paint method, without clearing
+ * the background - thats hopefully done by OpenGL ;-)
+ *
+ * @param g the Graphics Context
+ * @return void
+ *
+ * @see GLPanel#paint
+ */
+ public void update(Graphics g)
+ {
+ //JAU
+ if(GLContext.gljClassDebug)
+ System.out.println("GPanel::update(): isShowing()="+isShowing());
+ if(isShowing())
+ {
+ /* let's let OpenGL clear the background ... */
+ paint(g);
+ }
+ }
+
+
+ /**
+ * Safe the toplevel window
+ */
+ protected Window topLevelWindow = null;
+
+ /**
+ *
+ * This function returns the found TopLevelWindow,
+ * which contains this Canvas ..
+ *
+ * @return void
+ *
+ * @see GLPanel#paint
+ */
+ public final Window getTopLevelWindow()
+ { return topLevelWindow; }
+
+ /**
+ * this function overrides the Canvas paint method !
+ *
+ * For the first paint,
+ * the user function preInit is called, a GLContext is created
+ * and the user function init is called !
+ *
+ * Also, if a GL Context exist, GLPanel's sDisplay-method will be called
+ * to do OpenGL-rendering.
+ *
+ * The sDisplay method itself calls the display-method !
+ * sDisplay is needed to be thread-safe, to manage
+ * the resize functionality and to safe the time per frame.
+ *
+ * To define your rendering, you should overwrite the display-method
+ * in your derivation.
+ *
+ * @see gl4java.GLContext#GLContext
+ * @see GLPanel#cvsIsInit
+ * @see GLPanel#sDisplay
+ * @see GLPanel#display
+ * @see GLPanel#preInit
+ * @see GLPanel#init
+ */
+ public synchronized final void paint( Graphics g )
+ {
+ //JAU
+ if(GLContext.gljClassDebug)
+ System.out.println("GPanel::paint()");
+ if(glj == null )
+ {
+ preInit();
+ glj = new GLContext ( this, gl, glu,
+ createOwnWindow,
+ doubleBuffer, stereoView,
+ rgba, stencilBits,
+ sharedGLContext );
+
+ if(glj!=null)
+ {
+ createOwnWindow = glj.isOwnWindowCreated();
+ doubleBuffer = glj.isDoubleBuffer();
+ stencilBits = glj.getStencilBitNumber();
+ stereoView = glj.isStereoView();
+ rgba = glj.isRGBA();
+ }
+
+ init();
+
+ // fetch the top-level window ,
+ // to add us as the windowListener
+ //
+ Container _c = getParent();
+ Container c = null;
+
+ while(_c!=null)
+ {
+ c = _c;
+ _c = _c.getParent();
+ }
+
+ if(c instanceof Window) {
+ topLevelWindow = (Window)c;
+ topLevelWindow.addComponentListener(this);
+ topLevelWindow.addMouseListener(this);
+ } else {
+ topLevelWindow = null;
+ System.out.println("toplevel is not a Window: "+c);
+ }
+
+ if(topLevelWindow!=null)
+ {
+ topLevelWindow.addWindowListener(this);
+ } else {
+ System.out.println("no parent found for "+getName());
+ System.out.flush();
+ }
+ if(glj!=null && glj.gljIsInit())
+ cvsInitialized=true;
+ }
+ if(glg!=null)
+ glg.dispose();
+ glg = new GLGraphics(g, glj, gl, glu);
+ /*
+ if( mustResize ) size = getSize();
+ g.setClip(0, 0, size.width, size.height );
+ */
+ sPaint(g);
+ }
+
+ /**
+ *
+ * This is the thread save rendering-method called by paint.
+ * The actual thread will be set to highes priority befor calling
+ * 'display'. After 'display' the priority will be reset !
+ *
+ * 'gljFree' will be NOT called after 'display'.
+ *
+ * We tested the above to use multi-threading and
+ * for the demonstration 'glDemos' it works ;-)) !
+ *
+ * BE SURE, if you want to call 'display' by yourself
+ * (e.g. in the run method for animation)
+ * YOU HAVE TO CALL sDisplay -- OR YOU MUST KNOW WHAT YOU ARE DOING THEN !
+ *
+ * @return void
+ *
+ * @see GLPanel#paint
+ * @see GLPanel#display
+ */
+ public synchronized final void sPaint( Graphics g )
+ {
+ boolean ok = true;
+
+ long _s = System.currentTimeMillis();
+
+ if(!cvsIsInit())
+ return;
+
+ /*
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("GLPanel: problem in use() method");
+ return;
+ }
+ */
+
+ if( mustResize )
+ {
+ Dimension size = getSize();
+ glj.gljResize( size.width, size.height ) ;
+ reshape(size.width, size.height);
+ mustResize = false;
+ }
+ if(ok)
+ {
+ display();
+ if(GLContext.gljClassDebug)
+ glj.gljCheckGL();
+ _f_dur_self = System.currentTimeMillis()-_s;
+
+ /*
+ GLGraphics glg1 = (GLGraphics)glg.create();
+ try {
+ super.paint(glg1);
+ } finally {
+ glg1.dispose();
+ }
+ */
+ super.paint(glg);
+ if(GLContext.gljClassDebug)
+ glj.gljCheckGL();
+ _f_dur_total = System.currentTimeMillis()-_s;
+
+ glj.gljSwap();
+ glj.gljFree();
+ }
+
+ }
+
+ public Graphics getGraphics()
+ {
+ if(glg==null)
+ return super.getGraphics();
+ return glg.create();
+ }
+
+ public Graphics getNativeGraphics()
+ {
+ return super.getGraphics();
+ }
+
+ /**
+ *
+ * This is the rendering-method called by sDisplay
+ * (and sDisplay is called by paint !).
+ * The derived-class (Your Subclass) will redefine this, to draw it's own...
+ *
+ * BE SURE, if you want to call 'display' by yourself
+ * (e.g. in the run method for animation)
+ * YOU HAVE TO CALL sDisplay !
+ *
+ * 'sDisplay' manages a semaphore to avoid reentrance of
+ * the display function !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ *
+ * @return void
+ *
+ * @see GLPanel#sDisplay
+ * @see GLPanel#paint
+ */
+ public void display()
+ {
+ }
+
+ /**
+ *
+ * This is your pre-init method.
+ * preInit is called just BEFORE the GL-Context is created.
+ * You should override preInit, to initialize your visual-stuff,
+ * like the protected vars: doubleBuffer and stereoView
+ *
+ * @return void
+ *
+ * @see GLPanel#paint
+ * @see GLPanel#doubleBuffer
+ * @see GLPanel#stereoView
+ * @see GLPanel#rgba
+ * @see GLPanel#stencilBits
+ */
+ public void preInit()
+ {
+ }
+
+ /**
+ *
+ * This is your init method.
+ * init is called right after the GL-Context is initialized.
+ * You should override init, to initialize your stuff needed
+ * by OpenGL an Java !
+ *
+ * @return void
+ *
+ * @see GLPanel#paint
+ */
+ public void init()
+ {
+ }
+
+ /**
+ * This method is used to clean up any OpenGL stuff (delete textures
+ * or whatever) prior to actually deleting the OpenGL context.
+ * You should override this with your own version, if you need to do
+ * any cleanup work at this phase.
+ * This functions is called within cvsDispose
+ *
+ * @return void
+ *
+ * @see GLPanel#cvsDispose
+ */
+ public void doCleanup()
+ {
+ }
+
+ /**
+ * This function returns, if everything is init: the GLContext,
+ * the and the users init function
+ * This value is set in the paint method!
+ *
+ * @return boolean
+ *
+ * @see GLPanel#paint
+ * @see GLPanel#init
+ */
+ public boolean cvsIsInit()
+ {
+ return cvsInitialized;
+ }
+
+ protected long _f_dur_self = 0;
+ protected long _f_dur_total = 0;
+
+ /**
+ *
+ * This is the reshape-method called by paint.
+ * The derived-class (Your Subclass) will redefine this,
+ * to manage your individual reshape ...
+ *
+ * This �reshape� method will be invoked after the first paint command
+ * after GLPanel.componentResize is called AND only if �gljUse� was
+ * succesfull (so a call of gljUse is redundant).
+ * �reshape� is not an overloading of java.awt.Component.reshape,
+ * �reshape� is more like �glut�-reshape.
+ *
+ * GLPanel.reshape allready has a simple default implementation,
+ * which calls �gljResize� and �glViewport� - so you may be can
+ * left this one as it is (no need to overload).
+ * The needed call to �gljResize� is done by hte invoker paint !
+ *
+ * @param width the new width
+ * @param height the new height
+ * @return void
+ *
+ * @see GLPanel#paint
+ * @see GLPanel#sDisplay
+ */
+ public void reshape( int width, int height )
+ {
+ if(GLContext.gljClassDebug)
+ System.out.println("GLPanel::reshape bounds("+getBounds()+")");
+ gl.glViewport(0,0, width, height);
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ gl.glOrtho(0, width, height, 0, -50.0,50.0);
+ gl.glMatrixMode(GL_MODELVIEW);
+ }
+
+ /* JAU */
+ /*
+ public final void setBounds(int x, int y, int width, int height) {
+ reshape(x, y, width, height);
+ }
+ public final void setBounds(Rectangle r) {
+ reshape(r.x, r.y, r.width, r.height);
+ }
+
+ public void reshape(int x, int y, int width, int height) {
+ super.reshape(x, y, width, height);
+ if(glj==null || !glj.gljIsInit() || !glj.gljMakeCurrent())
+ {
+ System.out.println("GLPanel::setBounds(): problem in use() method");
+ return;
+ }
+ reshape(width-x, height-y);
+ glj.gljCheckGL();
+ glj.gljFree();
+ size = new Dimension(width-x, height-y);
+ }
+ */
+
+
+ /**
+ *
+ * �componentResized� is the componentListeners event handler.
+ *
+ * This method sets the variable �mustResize� to true,
+ * so the upcoming �paint� method-call will invoke �reshape� !
+ *
+ * This little look-alike complicating thing is done,
+ * to avoid an Exception by using the glContext from more than
+ * one concurrent thread�s !
+ *
+ * You cannot override this implementation, it is final
+ * - override �reshape' instead !
+ *
+ * @param e the element, which is resized
+ * @return void
+ *
+ * @see GLPanel#paint
+ * @see GLPanel#reshape
+ */
+ public void componentResized(ComponentEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.println("GLPanel::componentResized("+e.getComponent()+")");
+ if(glj!=null && glj.gljIsInit() && e.getComponent()==this )
+ {
+ mustResize = true;
+ //repaint();
+ }
+ }
+
+ public void componentMoved(ComponentEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.print("GLPanel::componentMoved("+e.getComponent()+")");
+ /*
+ if(e.getComponent().equals(topLevelWindow))
+ {
+ repaint();
+ }
+ */
+ }
+
+ public void componentShown(ComponentEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.print("GLPanel::componentShown("+e.getComponent()+")");
+ }
+
+ public void componentHidden(ComponentEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.print("GLPanel::componentHidden("+e.getComponent()+")");
+ }
+
+ public void mouseClicked(MouseEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.print(".");
+ }
+ public void mouseEntered(MouseEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.print("GLPanel::mouseEntered("+e.getComponent()+")");
+ /*
+ if(e.getComponent().equals(topLevelWindow))
+ {
+ repaint();
+ }
+ */
+ }
+ public void mouseExited(MouseEvent e)
+ {}
+ public void mousePressed(MouseEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.print("<");
+ }
+ public void mouseReleased(MouseEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.print(">");
+ }
+
+ public void windowOpened(WindowEvent e)
+ {
+ }
+
+ /**
+ *
+ * �windowClosing� is the windowListeners event handler
+ * for the topLevelWindow of this Canvas !
+ *
+ * This methods free�s AND destroy�s
+ * the GL Context with �glj.gljDestroy� !
+ *
+ * @return void
+ *
+ */
+ public void windowClosing(WindowEvent e)
+ {
+ if(e.getComponent().equals(topLevelWindow))
+ {
+ cvsDispose();
+ }
+ }
+
+ /**
+ *
+ * �windowClosed� is the windowListeners event handler.
+ *
+ * @return void
+ *
+ */
+ public void windowClosed(WindowEvent e)
+ {
+ if (needCvsDispose) cvsDispose();
+ }
+
+ public void windowIconified(WindowEvent e)
+ {
+ }
+
+ public void windowDeiconified(WindowEvent e)
+ {
+ }
+
+ public void windowActivated(WindowEvent e)
+ {
+ }
+
+ public void windowDeactivated(WindowEvent e)
+ {
+ }
+
+ /**
+ * You should call this before releasing/dispose this Window !
+ * Also you can overwrite this class,
+ * to dispose your own elements, e.g. a Frame etc. -
+ * but be shure that you call
+ * cvsDispose implementation call this one !
+ *
+ * This function calls gljDestroy of GLContext !
+ *
+ * @see gl4java.GLContext#gljDestroy
+ * @see GLPanel#doCleanup
+ */
+ public void cvsDispose()
+ {
+ cvsInitialized = false;
+ if (glj != null)
+ {
+ if (glj.gljIsInit())
+ {
+ /* Sometimes the Microsoft VM calls the
+ Applet.stop() method but doesn't have
+ permissions to do J/Direct calls, so
+ this whole block of code will throw a
+ security exception. If this happens,
+ however, windowClosing() will still
+ call us again later and we will have
+ another opportunity to shut down the
+ context, so it all works out fine. */
+ try
+ {
+ glj.gljFree();
+ doCleanup();
+ //locks and free's GLContext
+ glj.setEnabled(false);
+ glj.gljDestroy();
+ needCvsDispose = false;
+ }
+ catch (Exception ex)
+ {
+ needCvsDispose = true;
+ }
+ }
+ }
+
+ // Setting glj to null will simply cause paint() to re-initialize.
+ // We don't want that to happen, so we will leave glj non-null.
+ }
+
+ /**
+ * get methods
+ */
+ public final int cvsGetWidth() {
+ return getSize().width;
+ }
+ public final int cvsGetHeight() {
+ return getSize().height;
+ }
+}
+
diff --git a/demos/SwingDemos/test/GLPanel-GLGraphics/test1.java b/demos/SwingDemos/test/GLPanel-GLGraphics/test1.java
new file mode 100644
index 0000000..1b8bf4b
--- /dev/null
+++ b/demos/SwingDemos/test/GLPanel-GLGraphics/test1.java
@@ -0,0 +1,129 @@
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.awt.Dimension;
+import javax.swing.*;
+import gl4java.*;
+import gl4java.swing.*;
+import gl4java.utils.glut.*;
+import gl4java.utils.glut.fonts.*;
+
+public class test1 extends JApplet
+ implements GLEnum, GLUEnum
+{
+ static {
+ if(GLContext.loadNativeLibraries(null, null, null)==false)
+ System.out.println("GLCanvas could not load def. native libs.");
+ }
+
+ protected class test1Panel extends GLPanel
+ implements ActionListener, ItemListener
+ {
+ public test1Panel() {
+ super();
+ GLContext.gljNativeDebug = true;
+ GLContext.gljClassDebug = true;
+ //String[] data = {"one", "two", "three", "four"};
+ //JList dataList = new JList(data);
+ //add("North", dataList);
+ JButton b1, b2;
+ add("East", (b1 = new JButton("E")));
+ b1.setActionCommand("east");
+ b1.addActionListener(this);
+ add("West", (b2 = new JButton("W")));
+ b2.setActionCommand("west");
+ b2.addActionListener(this);
+
+ JCheckBox c1;
+ add("South", (c1 = new JCheckBox("SouthButton", true)));
+ c1.addItemListener(this);
+ }
+
+ GLGraphics glg = null;
+
+ public void init() {
+ System.out.println("<i>");
+ //glg = new GLGraphics(gl, glu);
+ reshape(getSize().width, getSize().height);
+ }
+
+ public void display()
+ {
+ System.out.println("<p>");
+
+ int i;
+
+ glg = (GLGraphics)getGraphics();
+
+ gl.glPushMatrix();
+ gl.glClear(GL_COLOR_BUFFER_BIT);
+
+ glg.setColor(Color.blue);
+
+ int width=getSize().width;
+ int height=getSize().height;
+
+ glg.drawLine ( 0, height/2, width, height/2 );
+ glg.drawLine ( width/2, 0, width/2, height );
+
+ glg.setColor(Color.yellow);
+
+ glg.drawLine ( 0, 0, width, height);
+ glg.drawString("Left-top", 0, 10);
+ glg.drawString("GLGraphics - CENTER", width/2, height/2);
+ glg.drawString("Right - Bottom (nearly)", width*2/3, height*2/3);
+ gl.glPopMatrix();
+
+ glj.gljCheckGL();
+ }
+
+ public void reshape(int width, int height)
+ {
+ System.out.println("reshape("+width+", "+height+")");
+ super.reshape(width, height);
+ }
+
+ public void actionPerformed(ActionEvent e) {
+ if (e.getActionCommand().equals("east")) {
+ System.out.println("East pressed");
+ } else if (e.getActionCommand().equals("west")) {
+ System.out.println("West pressed");
+ }
+ }
+
+ public void itemStateChanged(ItemEvent e) {
+ Object source = e.getItemSelectable();
+ System.out.println("item changed: "+source);
+ }
+
+ }
+
+ test1Panel tst1cvs1;
+
+ public void init()
+ {
+ tst1cvs1 = new test1Panel();
+ tst1cvs1.setSize(400,400);
+ setContentPane(tst1cvs1);
+ }
+
+ public static void main(java.lang.String[] args) {
+ try {
+ Frame mainFrame = new Frame("test1");
+
+ test1 applet=new test1();
+
+ applet.setSize(400, 400);
+ applet.init();
+ applet.start();
+
+ mainFrame.add(applet);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ } catch (Throwable exception) {
+ System.err.println("Exception occurred in main()");
+ exception.printStackTrace(System.out);
+ }
+ }
+}
diff --git a/demos/change2GL4JavaV2.sh b/demos/change2GL4JavaV2.sh
new file mode 100755
index 0000000..7998edb
--- /dev/null
+++ b/demos/change2GL4JavaV2.sh
@@ -0,0 +1,23 @@
+#! /bin/sh
+
+if [ -z $1 -a -z $2 ] ; then
+ echo usage: $0 input-file output-file
+ exit 0
+fi
+sed -e 's/gljGetFpsCounter/cvsGetFpsCounter/g' \
+ -e 's/gljResetFpsCounter/cvsResetFpsCounter/g' \
+ -e 's/gljGetWidth/cvsGetWidth/g' \
+ -e 's/gljGetHeight/cvsGetHeight/g' \
+ -e 's/gljDispose/cvsDispose/g' \
+ -e 's/gljUse()/gljMakeCurrent(true)/g' \
+ -e 's/glj/glj.glj/g' \
+ -e 's/gl[^a-z]/gl.&\1/g' \
+ -e 's/glut/glut.&\1/g' \
+ -e 's/glu/glu.&\1/g' \
+ -e 's/GLCanvasV2.gl.glClassDebug/GLContext.gljClassDebug/g' \
+ -e 's/GLCanvasV2.gl.glNativeDebug/GLContext.gljNativeDebug/g' \
+ -e 's/gl.glClassDebug/GLContext.gljClassDebug/g' \
+ -e 's/gl.glNativeDebug/GLContext.gljNativeDebug/g' \
+ -e 's/import GL4Java/import gl4java.awt/g' \
+ -e 's/GL4Java/gl4java/g' \
+ $1 > $2
diff --git a/demos/demoCvs.java b/demos/demoCvs.java
new file mode 100644
index 0000000..79b5c73
--- /dev/null
+++ b/demos/demoCvs.java
@@ -0,0 +1,57 @@
+/**
+ * @(#) demoCvs.java
+ */
+
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.Math;
+
+
+class demoCvs extends GLCanvas
+{
+/**
+ * Instead of using suspend (JAVA2)
+ *
+ * @see run
+ */
+ protected boolean threadSuspended = true;
+
+ public demoCvs (int w, int h,
+ String glClass, String gluClass )
+ {
+ super(w, h, glClass, gluClass );
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = true;
+ }
+
+ public void init()
+ {
+ }
+
+
+ public void display()
+ {
+ /* Standard GL4Java Init */
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ public void ReInit()
+ {
+ }
+
+}
+
diff --git a/demos/demoCvsAnim.java b/demos/demoCvsAnim.java
new file mode 100644
index 0000000..3dcc689
--- /dev/null
+++ b/demos/demoCvsAnim.java
@@ -0,0 +1,57 @@
+/**
+ * @(#) demoCvsAnim.java
+ */
+
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.Math;
+
+
+class demoCvsAnim extends GLAnimCanvas
+{
+/**
+ * Instead of using suspend (JAVA2)
+ *
+ * @see run
+ */
+ protected boolean threadSuspended = true;
+
+ public demoCvsAnim (int w, int h,
+ String glClass, String gluClass )
+ {
+ super(w, h, glClass, gluClass );
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = true;
+ }
+
+ public void init()
+ {
+ }
+
+
+ public void display()
+ {
+ /* Standard GL4Java Init */
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ public void ReInit()
+ {
+ }
+
+}
+
diff --git a/demos/gl4java.policy b/demos/gl4java.policy
new file mode 100644
index 0000000..0db24dc
--- /dev/null
+++ b/demos/gl4java.policy
@@ -0,0 +1,60 @@
+//
+// GL4Java extensions get all permissions !
+//
+// This peace should be added on top of the file:
+//
+// If a Java2 SDK is used:
+// <java2-installation>/jre/lib/security/java.policy
+//
+// If a Java2 JRE is used:
+// <jre-installation>/lib/security/java.policy
+//
+// GL4Java Homepage:
+//
+// http://www.jausoft.com/gl4java/
+//
+
+grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/Installer/*"
+{
+ permission java.security.AllPermission;
+};
+
+grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/*"
+{
+ permission java.security.AllPermission;
+};
+
+grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/MiscDemos/*
+{
+ permission java.security.AllPermission;
+};
+
+grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/RonsDemos/*
+{
+ permission java.security.AllPermission;
+};
+
+grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/SwingDemos/*
+{
+ permission java.security.AllPermission;
+};
+
+grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/GLLandScape/*
+{
+ permission java.security.AllPermission;
+};
+
+grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/HodglimsNeHe/*
+{
+ permission java.security.AllPermission;
+};
+
+
+grant codeBase "file:/home/sven/projects/java/GL4Java/demos/- {
+ permission java.security.AllPermission;
+};
+
+grant codeBase "file:/home/sven/projects/java/GL4Java/demos/RonsDemos/- {
+ permission java.security.AllPermission;
+};
+
diff --git a/demos/glDemosCvs.html b/demos/glDemosCvs.html
new file mode 100644
index 0000000..535e9da
--- /dev/null
+++ b/demos/glDemosCvs.html
@@ -0,0 +1,14 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<applet code="glDemosCvs.class" width=500 height=550>
+<param name=frames value="55">
+</applet>
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/glDemosCvs.java b/demos/glDemosCvs.java
new file mode 100644
index 0000000..6902b95
--- /dev/null
+++ b/demos/glDemosCvs.java
@@ -0,0 +1,620 @@
+
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import java.awt.*;
+import java.awt.event.*;
+import java.applet.*;
+
+public class glDemosCvs extends Applet
+ implements MouseListener, WindowListener, ActionListener, ItemListener
+{
+ /*
+ * show how independent the
+ * canvas and the frame are :-)
+ *
+ * the canvas size is toggled from: (150,150)->(250,250)
+ * the frame size is toggled from: (350,350)->(450,450)
+ *
+ */
+
+ Button ButtonFps;
+ TextField TextFpsOlymp;
+ TextField TextFpsLogo;
+ TextField TextFpsWave;
+ TextField TextFpsStar;
+
+ Button buttonInfo = null;
+
+ Checkbox bUseRepaintW = null;
+ Checkbox bUseFpsSleepW = null;
+ Button bReStartW = null;
+ Checkbox bUseRepaintO = null;
+ Checkbox bUseFpsSleepO = null;
+ Button bReStartO = null;
+ Checkbox bUseRepaintL = null;
+ Checkbox bUseFpsSleepL = null;
+ Button bReStartL = null;
+ Checkbox bUseRepaintS = null;
+ Checkbox bUseFpsSleepS = null;
+ Button bReStartS = null;
+
+ String glClass=null;
+ String gluClass=null;
+
+ olympicCvs cvsOlympic = null;
+ waveCvs cvsWave = null;
+ glLogoCvs cvsLogo = null;
+ starCvs cvsStar = null;
+
+ Frame frame = null;
+
+ public void applicationInit(Frame holder)
+ {
+ frame = holder;
+
+ init();
+ start();
+ }
+
+ public void init()
+ {
+ System.out.println("Applet init ...");
+
+ Panel pTmp = null;
+
+ setLayout(new BorderLayout());
+
+ // 1. GetFps
+ ButtonFps=new Button("Get Fps");
+ ButtonFps.addMouseListener(this);
+ add("North", ButtonFps);
+
+ // 4. Info
+ buttonInfo=new Button("Info");
+ buttonInfo.addMouseListener(this);
+ add("South", buttonInfo);
+
+ // Master-Grid-Panel pAllCvs
+ //
+ // 2 rows
+ // 1. Wave
+ // 2. Olympic
+ // 3. Logo
+ // 4. Star
+ //
+ Panel pAllCvs = new Panel();
+ pAllCvs.setLayout(new GridLayout(4,1));
+ add("Center", pAllCvs);
+
+ // 1. Wave
+ Panel pWave = new Panel();
+ pWave.setLayout(new GridLayout(1,2));
+ pAllCvs.add(pWave);
+
+ // 2. Olympic
+ Panel pOlympic = new Panel();
+ pOlympic.setLayout(new GridLayout(1,2));
+ pAllCvs.add(pOlympic);
+
+ // 3. Logo
+ Panel pLogo = new Panel();
+ pLogo.setLayout(new GridLayout(1,2));
+ pAllCvs.add(pLogo);
+
+ // 3. Star
+ Panel pStar = new Panel();
+ pStar.setLayout(new GridLayout(1,2));
+ pAllCvs.add(pStar);
+
+ // Wave-Grid-Panel pWave
+ //
+ // 3 coloumns
+ //
+ // 1. waveCvs
+ // 2. options
+ //
+
+ // 1. waveCvs
+ cvsWave = new waveCvs(150, 150, glClass, gluClass);
+ pWave.add(cvsWave);
+ cvsWave.addMouseListener(this);
+
+ // 2. options
+ Panel pWaveOpt = new Panel();
+ pWaveOpt.setLayout(new GridLayout(4,1));
+ pWave.add(pWaveOpt);
+ bUseRepaintW = new Checkbox("repaint", true);
+ bUseRepaintW.addItemListener(this);
+ pWaveOpt.add(bUseRepaintW);
+ bUseFpsSleepW = new Checkbox("fps-sleep", true);
+ bUseFpsSleepW.addItemListener(this);
+ pWaveOpt.add(bUseFpsSleepW);
+ pTmp = new Panel();
+ pTmp.setLayout(new GridLayout(1,2));
+ pTmp.add(new Label("fps: "));
+ TextFpsWave=new TextField();
+ TextFpsWave.addActionListener(this);
+ pTmp.add(TextFpsWave);
+ pWaveOpt.add(pTmp);
+ bReStartW = new Button("restart");
+ bReStartW.addMouseListener(this);
+ pWaveOpt.add(bReStartW);
+
+ // Olympic-Grid-Panel pOlympic
+ //
+ // 3 coloumns
+ //
+ // 1. olympicCvs
+ // 2. options
+ //
+
+ // 1. olympicCvs
+ cvsOlympic = new olympicCvs(150, 150, glClass, gluClass);
+ pOlympic.add(cvsOlympic);
+ cvsOlympic.addMouseListener(this);
+
+ // 2. options
+ Panel pOlympOpt = new Panel();
+ pOlympOpt.setLayout(new GridLayout(4,1));
+ pOlympic.add(pOlympOpt);
+ bUseRepaintO = new Checkbox("repaint", true);
+ bUseRepaintO.addItemListener(this);
+ pOlympOpt.add(bUseRepaintO);
+ bUseFpsSleepO = new Checkbox("fps-sleep", true);
+ bUseFpsSleepO.addItemListener(this);
+ pOlympOpt.add(bUseFpsSleepO);
+ pTmp = new Panel();
+ pTmp.setLayout(new GridLayout(1,2));
+ pTmp.add(new Label("fps: "));
+ TextFpsOlymp=new TextField();
+ TextFpsOlymp.addActionListener(this);
+ pTmp.add(TextFpsOlymp);
+ pOlympOpt.add(pTmp);
+ bReStartO = new Button("restart");
+ bReStartO.addMouseListener(this);
+ pOlympOpt.add(bReStartO);
+
+
+ // Logo-Grid-Panel pLogo
+ //
+ // 3 coloumns
+ //
+ // 1. logoCvs
+ // 2. options
+ //
+
+ // 1. logoCvs
+ cvsLogo = new glLogoCvs(150, 150, glClass, gluClass);
+ pLogo.add(cvsLogo);
+ cvsLogo.addMouseListener(this);
+
+ // 2. options
+ Panel pLogoOpt = new Panel();
+ pLogoOpt.setLayout(new GridLayout(4,1));
+ pLogo.add(pLogoOpt);
+ bUseRepaintL = new Checkbox("repaint", true);
+ bUseRepaintL.addItemListener(this);
+ pLogoOpt.add(bUseRepaintL);
+ bUseFpsSleepL = new Checkbox("fps-sleep", true);
+ bUseFpsSleepL.addItemListener(this);
+ pLogoOpt.add(bUseFpsSleepL);
+ pTmp = new Panel();
+ pTmp.setLayout(new GridLayout(1,2));
+ pTmp.add(new Label("fps: "));
+ TextFpsLogo=new TextField();
+ TextFpsLogo.addActionListener(this);
+ pTmp.add(TextFpsLogo);
+ pLogoOpt.add(pTmp);
+ bReStartL = new Button("ReStart");
+ bReStartL.addMouseListener(this);
+ pLogoOpt.add(bReStartL);
+
+ // Star-Grid-Panel pWave
+ //
+ // 3 coloumns
+ //
+ // 1. starCvs
+ // 2. options
+ //
+
+ // 1. starCvs
+ cvsStar = new starCvs(150, 150, glClass, gluClass);
+ pStar.add(cvsStar);
+ cvsStar.addMouseListener(this);
+
+ // 2. options
+ Panel pStarOpt = new Panel();
+ pStarOpt.setLayout(new GridLayout(4,1));
+ pStar.add(pStarOpt);
+ bUseRepaintS = new Checkbox("repaint", true);
+ bUseRepaintS.addItemListener(this);
+ pStarOpt.add(bUseRepaintS);
+ bUseFpsSleepS = new Checkbox("fps-sleep", true);
+ bUseFpsSleepS.addItemListener(this);
+ pStarOpt.add(bUseFpsSleepS);
+ pTmp = new Panel();
+ pTmp.setLayout(new GridLayout(1,2));
+ pTmp.add(new Label("fps: "));
+ TextFpsStar=new TextField();
+ TextFpsStar.addActionListener(this);
+ pTmp.add(TextFpsStar);
+ pStarOpt.add(pTmp);
+ bReStartS = new Button("restart");
+ bReStartS.addMouseListener(this);
+ pStarOpt.add(bReStartS);
+
+ System.out.println("Applet init DONE ! ");
+ }
+
+ public void start() {
+ cvsOlympic.start();
+ cvsWave.start();
+ cvsLogo.start();
+ cvsStar.start();
+ }
+
+ public void stop() {
+ cvsOlympic.stop();
+ cvsWave.stop();
+ cvsLogo.stop();
+ cvsStar.stop();
+ }
+
+ public void destroy() {
+ cvsOlympic.stop();
+ cvsOlympic.cvsDispose();
+ cvsWave.stop();
+ cvsWave.cvsDispose();
+ cvsLogo.stop();
+ cvsLogo.cvsDispose();
+ cvsStar.stop();
+ cvsStar.cvsDispose();
+ }
+
+ public static void main( String args[] ) {
+ String gljLib=null;
+ String glLib=null;
+ String gluLib=null;
+
+ if(args.length>0)
+ gljLib = args[0];
+ if(args.length>1)
+ glLib = args[1];
+ if(args.length>2)
+ gluLib = args[2];
+
+ GLContext.gljNativeDebug = true;
+ GLContext.gljClassDebug = true;
+
+ if(GLContext.loadNativeLibraries(gljLib, glLib, gluLib)==false)
+ System.out.println("could not load native libs:"+
+ gljLib + ", " + glLib + ", " + gluLib);
+ else
+ System.out.println("load native libs:"+
+ gljLib + ", " + glLib + ", " + gluLib);
+
+ Frame mainFrame = new Frame("glDemosCvs");
+
+ glDemosCvs applet = new glDemosCvs();
+ applet.applicationInit(mainFrame);
+
+ mainFrame.add(applet);
+
+ if(args.length>3)
+ applet.glClass = args[3];
+ if(args.length>4)
+ applet.gluClass = args[4];
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+
+ mainFrame.addWindowListener(applet);
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+
+ if( comp.equals(ButtonFps) )
+ {
+ double fps = 0;
+ int a1;
+
+ if(cvsWave!=null && TextFpsWave!=null)
+ {
+ cvsWave.stopFpsCounter();
+ fps=cvsWave.getFps();
+ a1=(int)(fps*100.0);
+ fps=(double)a1/100.0;
+ TextFpsWave.setText(String.valueOf(fps));
+ }
+ if(cvsOlympic!=null && TextFpsOlymp!=null)
+ {
+ cvsOlympic.stopFpsCounter();
+ fps=cvsOlympic.getFps();
+ a1=(int)(fps*100.0);
+ fps=(double)a1/100.0;
+ TextFpsOlymp.setText(String.valueOf(fps));
+ }
+ if(cvsLogo!=null && TextFpsLogo!=null)
+ {
+ cvsLogo.stopFpsCounter();
+ fps=cvsLogo.getFps();
+ a1=(int)(fps*100.0);
+ fps=(double)a1/100.0;
+ TextFpsLogo.setText(String.valueOf(fps));
+ }
+ if(cvsStar!=null && TextFpsStar!=null)
+ {
+ cvsStar.stopFpsCounter();
+ fps=cvsStar.getFps();
+ a1=(int)(fps*100.0);
+ fps=(double)a1/100.0;
+ TextFpsStar.setText(String.valueOf(fps));
+ }
+ }
+ else if( comp.equals(buttonInfo) )
+ {
+ Frame fInfo = null;
+ if(cvsWave!=null && cvsWave.getGLContext()!=null)
+ fInfo = cvsWave.getGLContext().gljShowVersions();
+ else if(cvsOlympic!=null && cvsOlympic.getGLContext()!=null)
+ fInfo = cvsOlympic.getGLContext().gljShowVersions();
+ else if(cvsLogo!=null && cvsLogo.getGLContext()!=null)
+ fInfo = cvsLogo.getGLContext().gljShowVersions();
+ else if(cvsStar!=null && cvsStar.getGLContext()!=null)
+ fInfo = cvsStar.getGLContext().gljShowVersions();
+ }
+ else if( comp.equals(cvsWave) )
+ {
+ cvsWave.setSuspended(!cvsWave.isSuspended(),
+ evt.getClickCount()>1 // -> ReInit
+ );
+ }
+ else if( comp.equals(cvsOlympic) )
+ {
+ cvsOlympic.setSuspended(!cvsOlympic.isSuspended(),
+ evt.getClickCount()>1 // -> ReInit
+ );
+ }
+ else if( comp.equals(cvsLogo) )
+ {
+ cvsLogo.setSuspended(!cvsLogo.isSuspended(),
+ evt.getClickCount()>1 // -> ReInit
+ );
+ }
+ else if( comp.equals(cvsStar) )
+ {
+ cvsStar.setSuspended(!cvsStar.isSuspended(),
+ evt.getClickCount()>1 // -> ReInit
+ );
+ }
+ if( comp.equals(bReStartL) )
+ {
+ if(cvsLogo!=null)
+ {
+ cvsLogo.setSuspended(false, true);
+ }
+ }
+ if( comp.equals(bReStartO) )
+ {
+ if(cvsOlympic!=null)
+ {
+ cvsOlympic.setSuspended(false, true);
+ }
+ }
+ if( comp.equals(bReStartW) )
+ {
+ if(cvsWave!=null)
+ {
+ cvsWave.setSuspended(false, true);
+ }
+ }
+ if( comp.equals(bReStartS) )
+ {
+ if(cvsStar!=null)
+ {
+ cvsStar.setSuspended(false, true);
+ }
+ }
+ }
+
+ public void itemStateChanged( ItemEvent evt )
+ {
+ ItemSelectable comp = evt.getItemSelectable();
+
+ if( comp.equals(bUseRepaintW ) )
+ {
+ if(cvsWave!=null)
+ {
+ cvsWave.setUseRepaint(bUseRepaintW.getState());
+ System.out.println("Wave uses repaint: "+
+ bUseRepaintW.getState());
+ }
+ }
+ if( comp.equals(bUseFpsSleepW ) )
+ {
+ if(cvsWave!=null)
+ {
+ cvsWave.setUseFpsSleep(bUseFpsSleepW.getState());
+ System.out.println("Wave uses fps-sleep: "+
+ bUseFpsSleepW.getState());
+ }
+ }
+ if( comp.equals(bUseRepaintO ) )
+ {
+ if(cvsOlympic!=null)
+ {
+ cvsOlympic.setUseRepaint(bUseRepaintO.getState());
+ System.out.println("Olympic uses repaint: "+
+ bUseRepaintO.getState());
+ }
+ }
+ if( comp.equals(bUseFpsSleepO ) )
+ {
+ if(cvsOlympic!=null)
+ {
+ cvsOlympic.setUseFpsSleep(bUseFpsSleepO.getState());
+ System.out.println("Olympic uses fps-sleep: "+
+ bUseFpsSleepO.getState());
+ }
+ }
+ else if( comp.equals(bUseRepaintL ) )
+ {
+ if(cvsLogo!=null)
+ {
+ cvsLogo.setUseRepaint(bUseRepaintL.getState());
+ System.out.println("Logo uses repaint: "+
+ bUseRepaintL.getState());
+ }
+ }
+ else if( comp.equals(bUseFpsSleepL ) )
+ {
+ if(cvsLogo!=null)
+ {
+ cvsLogo.setUseFpsSleep(bUseFpsSleepL.getState());
+ System.out.println("Logo uses fps-sleep: "+
+ bUseFpsSleepL.getState());
+ }
+ }
+ else if( comp.equals(bUseRepaintS ) )
+ {
+ if(cvsStar!=null)
+ {
+ cvsStar.setUseRepaint(bUseRepaintS.getState());
+ System.out.println("Star uses repaint: "+
+ bUseRepaintS.getState());
+ }
+ }
+ else if( comp.equals(bUseFpsSleepS ) )
+ {
+ if(cvsStar!=null)
+ {
+ cvsStar.setUseFpsSleep(bUseFpsSleepS.getState());
+ System.out.println("Star uses fps-sleep: "+
+ bUseFpsSleepS.getState());
+ }
+ }
+ }
+
+ public void windowOpened(WindowEvent e)
+ {
+ }
+
+ public void windowClosing(WindowEvent e)
+ {
+ if(frame!=null && e.getComponent().equals(frame))
+ {
+ if(frame!=null) frame.dispose();
+ cvsLogo.cvsDispose();
+ cvsOlympic.cvsDispose();
+ cvsWave.cvsDispose();
+ cvsStar.cvsDispose();
+ System.exit(0);
+ }
+ }
+
+ public void windowClosed(WindowEvent e)
+ {
+ }
+
+ public void windowIconified(WindowEvent e)
+ {
+ }
+
+ public void windowDeiconified(WindowEvent e)
+ {
+ }
+
+ public void windowActivated(WindowEvent e)
+ {
+ }
+
+ public void windowDeactivated(WindowEvent e)
+ {
+ }
+
+ public void actionPerformed(ActionEvent event)
+ {
+ Object source = event.getSource();
+
+ if ( source == TextFpsWave )
+ {
+ try {
+ double FramesPerSec=
+ Double.valueOf(TextFpsWave.getText()).doubleValue();
+ if(cvsWave!=null)
+ {
+ cvsWave.setAnimateFps(FramesPerSec);
+ cvsWave.setSuspended(false, true);
+ }
+ } catch (NumberFormatException s) {
+ System.out.println("wrong fps format, use float ..");
+ }
+
+ }
+ if ( source == TextFpsOlymp )
+ {
+ try {
+ double FramesPerSec=
+ Double.valueOf(TextFpsOlymp.getText()).doubleValue();
+ if(cvsOlympic!=null)
+ {
+ cvsOlympic.setAnimateFps(FramesPerSec);
+ cvsOlympic.setSuspended(false, true);
+ }
+ } catch (NumberFormatException s) {
+ System.out.println("wrong fps format, use float ..");
+ }
+
+ }
+ if ( source == TextFpsLogo )
+ {
+ try {
+ double FramesPerSec=
+ Double.valueOf(TextFpsLogo.getText()).doubleValue();
+ if(cvsLogo!=null)
+ {
+ cvsLogo.setAnimateFps(FramesPerSec);
+ cvsLogo.setSuspended(false, true);
+ }
+ } catch (NumberFormatException s) {
+ System.out.println("wrong fps format, use float ..");
+ }
+
+ }
+ if ( source == TextFpsStar )
+ {
+ try {
+ double FramesPerSec=
+ Double.valueOf(TextFpsStar.getText()).doubleValue();
+ if(cvsLogo!=null)
+ {
+ cvsStar.setAnimateFps(FramesPerSec);
+ cvsStar.setSuspended(false, true);
+ }
+ } catch (NumberFormatException s) {
+ System.out.println("wrong fps format, use float ..");
+ }
+
+ }
+ }
+
+}
diff --git a/demos/glLogoCvs.java b/demos/glLogoCvs.java
new file mode 100644
index 0000000..e287406
--- /dev/null
+++ b/demos/glLogoCvs.java
@@ -0,0 +1,765 @@
+/**
+ * @(#) dummyGLCvs.java
+ */
+
+import gl4java.awt.GLAnimCanvas;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.Math;
+
+class glLogoCvs extends GLAnimCanvas
+{
+
+ static final int RAND_MAX = 100;
+
+ /* some math.h's don't define M_PI */
+ static final float M_PI = 3.14159265359f;
+
+ static final int ACC = 8;
+ static final int ACC2 = 16;
+ static final int ACC3 = 48;
+ static final int ACC4 = 24;
+ static final float THLD = 0.6f;
+ static final float THLD2 = 0.8f;
+
+ int angle, rotating;
+
+ float TRANS[][];
+ float ROTAXIS[][];
+ float ROT[];
+
+ float char_El[][][];
+ float normal_El[][][];
+
+ float char_O[][][];
+ float normal_O[][][];
+
+ float char_P[][][];
+ float normal_P[][][];
+
+ float char_G[][][];
+ float normal_G[][][];
+
+ float accSIN[], accCOS[];
+
+ float difmat4[] = { 0.425f, 0.570f, 0.664f, 1.0f };
+ float difamb4[] = { 0.425f, 0.570f, 0.664f, 1.0f };
+ float matspec4[] = { 0.174f, 0.174f, 0.174f, 1.0f };
+
+ float lightpos[] = { 1.0f, 1.0f, 1.0f, 0.0f };
+ float lightamb[] = { 0.3f, 0.3f, 0.3f, 1.0f };
+ float lightdif[] = { 0.8f, 0.8f, 0.8f, 1.0f };
+ float speed=0f, progress = 1f;
+
+ public glLogoCvs (int w, int h,
+ String glClass, String gluClass )
+ {
+ super(w, h, glClass, gluClass );
+ }
+
+ public void init()
+ {
+ /* here we should add and initialize our JAVA components */
+ TRANS = new float[7][3];
+ ROTAXIS = new float[7][3];
+ ROT = new float[7];
+
+ char_El=new float[ACC3+1][ACC+1][3];
+ normal_El=new float[ACC3+1][ACC+1][3];
+
+ char_O=new float[ACC4][ACC+1][3];
+ normal_O=new float[ACC4][ACC+1][3];
+
+ char_P=new float[ACC2][ACC+1][3];
+ normal_P=new float[ACC2][ACC+1][3];
+
+ char_G=new float[ACC4][ACC+1][3];
+ normal_G=new float[ACC4][ACC+1][3];
+
+ accSIN=new float[ACC+1];
+ accCOS=new float[ACC+1];
+
+ randomize();
+
+ gl.glShadeModel (GL_SMOOTH);
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, lightpos);
+ gl.glLightfv(GL_LIGHT0, GL_AMBIENT, lightamb);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, lightdif);
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glColor3f(1.0f, 1.0f, 1.0f);
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
+ gl.glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
+ gl.glEnable(GL_NORMALIZE);
+ def_logo();
+ gl.glCullFace(GL_BACK);
+ gl.glEnable(GL_CULL_FACE);
+ /* . and furthet OpenGL init's - like you want to */
+ glj.gljCheckGL();
+ }
+
+ public void display()
+ {
+ int i;
+
+ /* Standard GL4Java Init */
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ // just render it
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ SetCamera();
+ draw_logo();
+
+ /* For your animation dutys ;-) */
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ animationCalc();
+ }
+
+ public void reshape(int width, int height)
+ {
+ gl.glMatrixMode (GL_MODELVIEW);
+ gl.glViewport (0, 0, width, height);
+ gl.glLoadIdentity();
+ SetCamera();
+ }
+
+
+ void SetCamera()
+ {
+ gl.glMatrixMode (GL_PROJECTION);
+ gl.glLoadIdentity ();
+ gl.glFrustum (-0.1333f, 0.1333f, -0.1f, 0.1f, 0.2f, 150.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ glu.gluLookAt(0,1.5f,2, 0,1.5f,0, 0,1,0);
+ gl.glTranslatef(0.0f, -8.0f, -45.0f);
+ gl.glRotatef(-progress*720f, 0.0f, 1.0f, 0.0f);
+ }
+
+ public void animationCalc()
+ {
+ //
+ // computation for an animation sequence ...
+ //
+ speed = -0.95f*speed + progress*0.05f;
+ if (progress > 0.0f && speed < 0.0003f)
+ speed = 0.0003f;
+ if (speed > 0.01f)
+ speed = 0.01f;
+ progress = progress - speed;
+
+ // may be we just render a sequence,
+ // so we can set �shallWeRender� to false ...
+ if (progress <= 0.0005)
+ {
+ progress = 0.0f;
+ speed = 0;
+ shallWeRender=false;
+ }
+ }
+
+ public void ReInit()
+ {
+ progress=1f;
+ randomize();
+ }
+
+ int rnd(int i)
+ {
+ return ( (int)((float)Math.random()*RAND_MAX) )%i;
+ }
+
+ void groen_texture()
+ {
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, difmat4);
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, difamb4);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, matspec4);
+ gl.glMaterialf(GL_FRONT, GL_SHININESS, 35.0f);
+ }
+
+ void def_O()
+ {
+ float a, s, c, ln;
+ int i,j,k,l,m,n;
+ float dx, dy;
+ float dx1, dx2, dy1, dy2, dz1, dz2;
+ float center_O[][];
+ float width_O[];
+
+ center_O=new float[ACC4+4][3];
+ width_O=new float[ACC4+4];
+
+ for (i=0;i<ACC4;i++)
+ {
+ a = 2.0f*((float) i)*M_PI/ACC4;
+ s = 1+(float)Math.sin(a);
+ c = (float)Math.cos(a);
+ center_O[i][0] = c*3.8f;
+ center_O[i][1] = s*3.8f+(s<-1.01f?-0.8f:(s>1.01f?0.8f:0)) + 0.8f;
+ center_O[i][2] = 0.0f;
+ width_O[i] = 0.6f;
+ }
+
+ /* I should be able to generalise this. oh well */
+ for (i=0;i<ACC4;i++)
+ {
+ j = (i+1)%ACC4;
+ k = (i+ACC4-1)%ACC4;
+ for (a=0;a<ACC;a++)
+ {
+ c = (float)Math.cos(a*M_PI*2.0f/ACC);
+ s = (float)Math.sin(a*M_PI*2.0f/ACC);
+ dx = center_O[j][0] - center_O[k][0];
+ dy = center_O[j][1] - center_O[k][1];
+ ln = (float)Math.sqrt(dx*dx+dy*dy);
+ dx = dx/ln;
+ dy = dy/ln;
+ char_O[i][(int) a][0] = center_O[i][0] + width_O[i] * dy * c;
+ char_O[i][(int) a][1] = center_O[i][1] - width_O[i] * dx * c;
+ char_O[i][(int) a][2] = (s<-THLD?-THLD:(s>THLD?THLD:s));
+ }
+ }
+ for (i=0;i<ACC;i++)
+ {
+ j = (i+1)%ACC;
+ k = (i-1+ACC)%ACC;
+ for (l=0;l<ACC4;l++)
+ {
+ m = (l+1)%ACC4;
+ n = (l+ACC4-1)%ACC4;
+ dx1 = char_O[m][i][0] - char_O[n][i][0];
+ dy1 = char_O[m][i][1] - char_O[n][i][1];
+ dz1 = char_O[m][i][2] - char_O[n][i][2];
+ dx2 = char_O[l][k][0] - char_O[l][j][0];
+ dy2 = char_O[l][k][1] - char_O[l][j][1];
+ dz2 = char_O[l][k][2] - char_O[l][j][2];
+ normal_O[l][i][0] = dy2*dz1 - dy1*dz2;
+ normal_O[l][i][1] = dz2*dx1 - dz1*dx2;
+ normal_O[l][i][2] = dx2*dy1 - dx1*dy2;
+ }
+ }
+ }
+
+ void def_P()
+ {
+ float a, s, c, ln;
+ int i,j,k,l,m,n;
+ float dx, dy;
+ float dx1, dx2, dy1, dy2, dz1, dz2;
+ float center_P[][];
+ float width_P[];
+
+ center_P=new float[ACC2][3];
+ width_P=new float[ACC2];
+
+
+ for (i=0;i<ACC2;i++)
+ {
+ a = 2.0f*((float) i)*M_PI/ACC2;
+ s = 1+(float)Math.sin(a);
+ c = (float)Math.cos(a);
+ center_P[i][0] = c*2.15f;
+ center_P[i][1] = s*2.1f + (s<-1.01f?-0.7f:(s>1.01f?0.7f:0)) + 0.7f;
+ center_P[i][2] = 0.0f;
+ width_P[i] = 0.5f;
+ }
+
+ for (i=0;i<ACC2;i++)
+ {
+ j = (i+1)%ACC2;
+ k = (i+ACC2-1)%ACC2;
+ for (a=0;a<ACC;a++)
+ {
+ accCOS[(int) a] = c = (float)Math.cos(a*M_PI*2.0f/ACC);
+ accSIN[(int) a] = s = (float)Math.sin(a*M_PI*2.0f/ACC);
+ dx = center_P[j][0] - center_P[k][0];
+ dy = center_P[j][1] - center_P[k][1];
+ ln = (float)Math.sqrt(dx*dx+dy*dy);
+ dx = dx/ln;
+ dy = dy/ln;
+ char_P[i][(int) a][0] = center_P[i][0] + width_P[i] * dy * c;
+ char_P[i][(int) a][1] = center_P[i][1] - width_P[i] * dx * c;
+ char_P[i][(int) a][2] = (s<-THLD?-THLD:(s>THLD?THLD:s));
+ }
+ }
+ for (i=0;i<ACC;i++)
+ {
+ j = (i+1)%ACC;
+ k = (i-1+ACC)%ACC;
+ for (l=0;l<ACC2;l++)
+ {
+ m = (l+1)%ACC2;
+ n = (l+ACC2-1)%ACC2;
+ dx1 = char_P[m][i][0] - char_P[n][i][0];
+ dy1 = char_P[m][i][1] - char_P[n][i][1];
+ dz1 = char_P[m][i][2] - char_P[n][i][2];
+ dx2 = char_P[l][k][0] - char_P[l][j][0];
+ dy2 = char_P[l][k][1] - char_P[l][j][1];
+ dz2 = char_P[l][k][2] - char_P[l][j][2];
+ normal_P[l][i][0] = dy2*dz1 - dy1*dz2;
+ normal_P[l][i][1] = dz2*dx1 - dz1*dx2;
+ normal_P[l][i][2] = dx2*dy1 - dx1*dy2;
+ }
+ }
+ }
+
+ void def_El()
+ {
+ float a, s, c, ln;
+ int i,j,k,l,m,n;
+ float dx, dy;
+ float dx1, dx2, dy1, dy2, dz1, dz2;
+ float center_El[][];
+ float width_El[];
+
+ center_El=new float[ACC3+3][3];
+ width_El=new float[ACC3+3];
+
+ for (i=0;i<ACC3+1;i++)
+ {
+ /* a = (ACC3/24 + i*11/12)*M_PI*2.0f/ACC3; */
+ a = (ACC3/8 + ((float) i)*3/4)*M_PI*2.0f/ACC3;
+ s = 1+(float)Math.sin(a);
+ c = (float)Math.cos(a);
+ center_El[i][0] = c*18.0f;
+ center_El[i][1] = s*9.3f;
+ center_El[i][2] = 0.0f;
+ width_El[i] = (float)Math.pow(3.5, Math.sin(i*M_PI/ACC3))-0.6f;
+ }
+
+ for (i=0;i<ACC3+1;i++)
+ {
+ j = (i+1)%ACC3;
+ k = (i+ACC3-1)%ACC3;
+ for (a=0;a<ACC;a++)
+ {
+ c = (float)Math.cos(a*M_PI*2.0f/ACC);
+ s = (float)Math.sin(a*M_PI*2.0f/ACC);
+ dx = center_El[j][0] - center_El[k][0];
+ dy = center_El[j][1] - center_El[k][1];
+ ln = (float)Math.sqrt(dx*dx+dy*dy);
+ dx = dx/ln;
+ dy = dy/ln;
+ char_El[i][(int) a][0] = center_El[i][0] + width_El[i] * dy * c;
+ char_El[i][(int) a][1] = center_El[i][1] - width_El[i] * dx * c;
+ char_El[i][(int) a][2] = (s<-THLD2?-THLD2:(s>THLD2?THLD2:s));
+ }
+ }
+ for (i=0;i<ACC+1;i++)
+ {
+ j = (i+1)%ACC;
+ k = (i-1+ACC)%ACC;
+ for (l=0;l<ACC3;l++)
+ {
+ m = (l+1)%ACC3;
+ n = (l+ACC3-1)%ACC3;
+ dx1 = char_El[m][i][0] - char_El[n][i][0];
+ dy1 = char_El[m][i][1] - char_El[n][i][1];
+ dz1 = char_El[m][i][2] - char_El[n][i][2];
+ dx2 = char_El[l][k][0] - char_El[l][j][0];
+ dy2 = char_El[l][k][1] - char_El[l][j][1];
+ dz2 = char_El[l][k][2] - char_El[l][j][2];
+ normal_El[l][i][0] = dy2*dz1 - dy1*dz2;
+ normal_El[l][i][1] = dz2*dx1 - dz1*dx2;
+ normal_El[l][i][2] = dx2*dy1 - dx1*dy2;
+ }
+ }
+ }
+
+ void def_G()
+ {
+ float a, s, c, ln;
+ int i,j,k,l,m,n;
+ float dx, dy;
+ float dx1, dx2, dy1, dy2, dz1, dz2;
+ float center_G[][];
+ float width_G[];
+
+ center_G=new float[ACC4][3];
+ width_G=new float[ACC4];
+
+ for (i=0;i<ACC4;i++)
+ {
+ a = 2.0f*((float) i)*M_PI/ACC4;
+ s = 1+(float)Math.sin(a);
+ c = (float)Math.cos(a);
+ center_G[i][0] = c*3.8f;
+ center_G[i][1] = s*3.8f+(s<-1.01f?-0.8f:(s>1.01f?0.8f:0)) + 0.8f;
+ center_G[i][2] = 0.0f;
+ width_G[i] = 0.9f;
+ if (i>ACC4*3/4)
+ width_G[i] = 0.9f - ((i-ACC4*3/4)*0.9f)/ACC;
+ }
+ for (i=0;i<ACC4;i++)
+ {
+ j = (i+1)%ACC4;
+ k = (i+ACC4-1)%ACC4;
+ for (a=0;a<ACC;a++)
+ {
+ c = (float)Math.cos(a*M_PI*2.0f/ACC);
+ s = (float)Math.sin(a*M_PI*2.0f/ACC);
+ dx = center_G[j][0] - center_G[k][0];
+ dy = center_G[j][1] - center_G[k][1];
+ ln = (float)Math.sqrt(dx*dx+dy*dy);
+ dx = dx/ln;
+ dy = dy/ln;
+ char_G[i][(int) a][0] = center_G[i][0] + width_G[i] * dy * c;
+ char_G[i][(int) a][1] = center_G[i][1] - width_G[i] * dx * c;
+ char_G[i][(int) a][2] = (s<-THLD?-THLD:(s>THLD?THLD:s));
+ }
+ }
+ for (i=0;i<ACC;i++)
+ {
+ j = (i+1)%ACC;
+ k = (i-1+ACC)%ACC;
+ for (l=0;l<ACC4;l++)
+ {
+ m = (l+1)%ACC4;
+ n = (l+ACC4-1)%ACC4;
+ dx1 = char_G[m][i][0] - char_G[n][i][0];
+ dy1 = char_G[m][i][1] - char_G[n][i][1];
+ dz1 = char_G[m][i][2] - char_G[n][i][2];
+ dx2 = char_G[l][k][0] - char_G[l][j][0];
+ dy2 = char_G[l][k][1] - char_G[l][j][1];
+ dz2 = char_G[l][k][2] - char_G[l][j][2];
+ normal_G[l][i][0] = dy2*dz1 - dy1*dz2;
+ normal_G[l][i][1] = dz2*dx1 - dz1*dx2;
+ normal_G[l][i][2] = dx2*dy1 - dx1*dy2;
+ }
+ }
+ }
+
+ void randomize()
+ {
+ int i;
+ for (i=0;i<7;i++)
+ {
+ TRANS[i][0] = rnd(100)-rnd(100);
+ TRANS[i][1] = rnd(100)-rnd(100);
+ TRANS[i][1] = rnd(100)-rnd(100);
+ ROTAXIS[i][0] = rnd(100)-rnd(100);
+ ROTAXIS[i][1] = rnd(100)-rnd(100);
+ ROTAXIS[i][1] = rnd(100)-rnd(100);
+ ROT[i]=rnd(3600)-rnd(3600);
+ }
+ }
+
+ void def_logo()
+ {
+ def_O();
+ def_P();
+ def_El();
+ def_G();
+ }
+
+ void draw_O()
+ {
+ int i,j,k;
+ for (i=0;i<ACC;i++)
+ {
+ k = i+1;
+ if (k>=ACC)
+ k = 0;
+ gl.glBegin(GL_QUAD_STRIP);
+ for (j=0;j<ACC4;j++)
+ {
+ gl.glNormal3f(normal_O[j][k][0], normal_O[j][k][1], normal_O[j][k][2]);
+ gl.glVertex3f(char_O[j][k][0], char_O[j][k][1], char_O[j][k][2]);
+ gl.glNormal3f(normal_O[j][i][0], normal_O[j][i][1], normal_O[j][i][2]);
+ gl.glVertex3f(char_O[j][i][0], char_O[j][i][1], char_O[j][i][2]);
+ }
+ gl.glNormal3f(normal_O[0][k][0], normal_O[0][k][1], normal_O[0][k][2]);
+ gl.glVertex3f(char_O[0][k][0], char_O[0][k][1], char_O[0][k][2]);
+ gl.glNormal3f(normal_O[0][i][0], normal_O[0][i][1], normal_O[0][i][2]);
+ gl.glVertex3f(char_O[0][i][0], char_O[0][i][1], char_O[0][i][2]);
+ gl.glEnd();
+ }
+ }
+
+ void draw_P()
+ {
+ int i,j,k;
+ for (i=0;i<ACC;i++)
+ {
+ k = i+1;
+ if (k>=ACC)
+ k = 0;
+ gl.glBegin(GL_QUAD_STRIP);
+ for (j=0;j<ACC2;j++)
+ {
+ gl.glNormal3f(normal_P[j][k][0], normal_P[j][k][1], normal_P[j][k][2]);
+ gl.glVertex3f(char_P[j][k][0], char_P[j][k][1], char_P[j][k][2]);
+ gl.glNormal3f(normal_P[j][i][0], normal_P[j][i][1], normal_P[j][i][2]);
+ gl.glVertex3f(char_P[j][i][0], char_P[j][i][1], char_P[j][i][2]);
+ }
+ gl.glNormal3f(normal_P[0][k][0], normal_P[0][k][1], normal_P[0][k][2]);
+ gl.glVertex3f(char_P[0][k][0], char_P[0][k][1], char_P[0][k][2]);
+ gl.glNormal3f(normal_P[0][i][0], normal_P[0][i][1], normal_P[0][i][2]);
+ gl.glVertex3f(char_P[0][i][0], char_P[0][i][1], char_P[0][i][2]);
+ gl.glEnd();
+ }
+ j = 0;
+ gl.glBegin(GL_QUAD_STRIP);
+ for (i=0;i<ACC;i++)
+ {
+ gl.glNormal3f(normal_P[0][i][0], normal_P[0][i][1], normal_P[0][i][2]);
+ gl.glVertex3f(char_P[0][i][0]-4.3f, -1.6f, 1.0f*char_P[0][i][2]);
+ gl.glVertex3f(char_P[0][i][0]-4.3f, 6.0f, 1.0f*char_P[0][i][2]);
+ }
+ gl.glNormal3f(normal_P[0][0][0], normal_P[0][0][1], normal_P[0][0][2]);
+ gl.glVertex3f(char_P[0][0][0]-4.3f, -1.6f, 1.0f*char_P[0][0][2]);
+ gl.glVertex3f(char_P[0][0][0]-4.3f, 6.0f, 1.0f*char_P[0][0][2]);
+ gl.glEnd();
+ }
+
+ void draw_E()
+ {
+ int i,j,k;
+ for (i=0;i<ACC;i++)
+ {
+ k = i+1;
+ if (k>=ACC)
+ k = 0;
+ gl.glBegin(GL_QUAD_STRIP);
+ gl.glNormal3f(normal_P[0][k][0], normal_P[0][k][1], normal_P[0][k][2]);
+ gl.glVertex3f(char_P[0][k][0], char_P[0][k][1]+0.0f, char_P[0][k][2]);
+ gl.glNormal3f(normal_P[0][i][0], normal_P[0][i][1], normal_P[0][i][2]);
+ gl.glVertex3f(char_P[0][i][0], char_P[0][i][1]+0.0f, char_P[0][i][2]);
+ for (j=1;j<ACC2;j++)
+ {
+ gl.glNormal3f(normal_P[j][k][0], normal_P[j][k][1], normal_P[j][k][2]);
+ gl.glVertex3f(char_P[j][k][0], char_P[j][k][1], char_P[j][k][2]);
+ gl.glNormal3f(normal_P[j][i][0], normal_P[j][i][1], normal_P[j][i][2]);
+ gl.glVertex3f(char_P[j][i][0], char_P[j][i][1], char_P[j][i][2]);
+ }
+ gl.glNormal3f(normal_P[0][k][0], normal_P[0][k][1], normal_P[0][k][2]);
+ gl.glVertex3f(char_P[0][k][0], char_P[0][k][1]-0.4f, char_P[0][k][2]);
+ gl.glNormal3f(normal_P[0][i][0], normal_P[0][i][1], normal_P[0][i][2]);
+ gl.glVertex3f(char_P[0][i][0], char_P[0][i][1]-0.4f, char_P[0][i][2]);
+ gl.glEnd();
+ }
+
+ gl.glBegin(GL_QUAD_STRIP);
+ j = ACC2*3/4;
+ for (i=0;i<ACC;i++)
+ {
+ gl.glNormal3f(normal_P[j][i][0], normal_P[j][i][1], normal_P[j][i][2]);
+ gl.glVertex3f(-2.0f, char_P[j][i][1]+2.55f, 1.0f*char_P[j][i][2]);
+ gl.glVertex3f(2.0f, char_P[j][i][1]+2.55f, 1.0f*char_P[j][i][2]);
+ }
+ gl.glNormal3f(normal_P[j][0][0], normal_P[j][0][1], normal_P[j][0][2]);
+ gl.glVertex3f(-2.0f, char_P[j][0][1]+2.55f, 1.0f*char_P[j][0][2]);
+ gl.glVertex3f(2.0f, char_P[j][0][1]+2.55f, 1.0f*char_P[j][0][2]);
+ gl.glEnd();
+ }
+
+ void draw_El()
+ {
+ int i,j,k;
+ for (i=0;i<ACC;i++)
+ {
+ k = i+1;
+ if (k>=ACC)
+ k = 0;
+ gl.glBegin(GL_QUAD_STRIP);
+ for (j=0;j<=ACC3;j++)
+ {
+ gl.glNormal3f(normal_El[j][k][0], normal_El[j][k][1], normal_El[j][k][2]);
+ gl.glVertex3f(char_El[j][k][0], char_El[j][k][1], char_El[j][k][2]);
+ gl.glNormal3f(normal_El[j][i][0], normal_El[j][i][1], normal_El[j][i][2]);
+ gl.glVertex3f(char_El[j][i][0], char_El[j][i][1], char_El[j][i][2]);
+ }
+ gl.glEnd();
+ }
+ }
+
+ void draw_N()
+ {
+ int i,j,k;
+ for (i=0;i<ACC;i++)
+ {
+ k = i+1;
+ if (k>=ACC)
+ k = 0;
+ gl.glBegin(GL_QUAD_STRIP);
+ for (j=0;j<=ACC2/2;j++)
+ {
+ gl.glNormal3f(normal_P[j][k][0], normal_P[j][k][1], normal_P[j][k][2]);
+ gl.glVertex3f(char_P[j][k][0], char_P[j][k][1], char_P[j][k][2]);
+ gl.glNormal3f(normal_P[j][i][0], normal_P[j][i][1], normal_P[j][i][2]);
+ gl.glVertex3f(char_P[j][i][0], char_P[j][i][1], char_P[j][i][2]);
+ }
+ gl.glEnd();
+ }
+
+ j = 0;
+ gl.glBegin(GL_QUAD_STRIP);
+ for (i=0;i<ACC;i++)
+ {
+ gl.glNormal3f(normal_P[0][i][0], normal_P[0][i][1], normal_P[0][i][2]);
+ gl.glVertex3f(char_P[0][i][0]-4.3f, 0.2f, 1.0f*char_P[0][i][2]);
+ gl.glVertex3f(char_P[0][i][0]-4.3f, 6.0f, 1.0f*char_P[0][i][2]);
+ }
+ gl.glNormal3f(normal_P[0][0][0], normal_P[0][0][1], normal_P[0][0][2]);
+ gl.glVertex3f(char_P[0][0][0]-4.3f, 0.2f, 1.0f*char_P[0][0][2]);
+ gl.glVertex3f(char_P[0][0][0]-4.3f, 6.0f, 1.0f*char_P[0][0][2]);
+ gl.glEnd();
+ j = 0;
+
+ gl.glBegin(GL_QUAD_STRIP);
+ for (i=0;i<ACC;i++)
+ {
+ gl.glNormal3f(normal_P[0][i][0], normal_P[0][i][1], normal_P[0][i][2]);
+ gl.glVertex3f(char_P[0][i][0], 0.2f, 1.0f*char_P[0][i][2]);
+ gl.glVertex3f(char_P[0][i][0], 3.4f, 1.0f*char_P[0][i][2]);
+ }
+ gl.glNormal3f(normal_P[0][0][0], normal_P[0][0][1], normal_P[0][0][2]);
+ gl.glVertex3f(char_P[0][0][0], 0.2f, 1.0f*char_P[0][0][2]);
+ gl.glVertex3f(char_P[0][0][0], 3.4f, 1.0f*char_P[0][0][2]);
+ gl.glEnd();
+ }
+
+ void draw_G()
+ {
+ int i,j,k;
+ for (i=0;i<ACC;i++)
+ {
+ k = i+1;
+ if (k>=ACC)
+ k = 0;
+ gl.glBegin(GL_QUAD_STRIP);
+ gl.glNormal3f(normal_G[0][k][0], normal_G[0][k][1], normal_G[0][k][2]);
+ gl.glVertex3f(char_G[0][k][0], char_G[0][k][1]+1.2f, char_G[0][k][2]);
+ gl.glNormal3f(normal_G[0][i][0], normal_G[0][i][1], normal_G[0][i][2]);
+ gl.glVertex3f(char_G[0][i][0], char_G[0][i][1]+1.2f, char_G[0][i][2]);
+ for (j=1;j<ACC4;j++)
+ {
+ gl.glNormal3f(normal_G[j][k][0], normal_G[j][k][1], normal_G[j][k][2]);
+ gl.glVertex3f(char_G[j][k][0], char_G[j][k][1], char_G[j][k][2]);
+ gl.glNormal3f(normal_G[j][i][0], normal_G[j][i][1], normal_G[j][i][2]);
+ gl.glVertex3f(char_G[j][i][0], char_G[j][i][1], char_G[j][i][2]);
+ }
+ gl.glEnd();
+ }
+
+ gl.glBegin(GL_QUAD_STRIP);
+ j = ACC4*3/4;
+ for (i=0;i<ACC;i++)
+ {
+ gl.glNormal3f(accSIN[i], 0.0f, accCOS[i] );
+ gl.glVertex3f(4.0f+0.9f*accSIN[i], 4.0f+0.9f*accSIN[i], 0.9f*accCOS[i] );
+ gl.glVertex3f(4.0f+0.9f*accSIN[i], 0.0f, 0.9f*accCOS[i]);
+ }
+ gl.glNormal3f(accSIN[0], 0.0f, accCOS[0] );
+ gl.glVertex3f(4.0f+0.9f*accSIN[0], 4.0f+0.9f*accSIN[0], 0.9f*accCOS[0] );
+ gl.glVertex3f(4.0f+0.9f*accSIN[0], 0.0f, 0.9f*accCOS[0]);
+ gl.glEnd();
+
+ gl.glBegin(GL_QUAD_STRIP);
+ j = ACC4*3/4;
+ for (i=0;i<ACC;i++)
+ {
+ gl.glNormal3f(0.0f, accSIN[i], accCOS[i] );
+ gl.glVertex3f(4.0f-0.9f*accSIN[i], 4.0f-0.9f*accSIN[i], 0.9f*accCOS[i] );
+ gl.glVertex3f(0.0f, 4.0f-0.9f*accSIN[i], 0.9f*accCOS[i]);
+ }
+ gl.glNormal3f(0.0f, accSIN[0], accCOS[0] );
+ gl.glVertex3f(4.0f-0.9f*accSIN[0], 4.0f-0.9f*accSIN[0], 0.9f*accCOS[0] );
+ gl.glVertex3f(0.0f, 4.0f-0.9f*accSIN[0], 0.9f*accCOS[0]);
+ gl.glEnd();
+
+ j = ACC4*3/4;
+ gl.glBegin(GL_TRIANGLE_FAN);
+ gl.glNormal3f(-1.0f, 0.0f, 0.0f);
+ gl.glVertex3f(0.0f, 4.0f, 0.0f);
+ for (i=0;i<ACC;i++)
+ gl.glVertex3f(0.0f, 4.0f+0.9f*accSIN[i], 0.9f*accCOS[i]);
+ gl.glVertex3f(0.0f, 4.0f+0.9f*accSIN[0], 0.9f*accCOS[0]);
+ gl.glEnd();
+ }
+
+ void draw_L()
+ {
+ int i;
+
+ gl.glBegin(GL_QUAD_STRIP);
+ for (i=0;i<ACC;i++)
+ {
+ gl.glNormal3f(accSIN[i], 0.0f, accCOS[i] );
+ gl.glVertex3f(0.9f*accSIN[i], 9.6f, 0.9f*accCOS[i]);
+ gl.glVertex3f(0.9f*accSIN[i], 0.9f+0.9f*accSIN[i], 0.9f*accCOS[i] );
+ }
+ gl.glNormal3f(accSIN[0], 0.0f, accCOS[0] );
+ gl.glVertex3f(0.9f*accSIN[0], 9.6f, 0.9f*accCOS[0]);
+ gl.glVertex3f(0.9f*accSIN[0], 0.9f+0.9f*accSIN[0], 0.9f*accCOS[0] );
+ gl.glEnd();
+
+ gl.glBegin(GL_QUAD_STRIP);
+ for (i=0;i<ACC;i++)
+ {
+ gl.glNormal3f(0.0f, accSIN[i], accCOS[i] );
+ gl.glVertex3f(0.9f*accSIN[i], 0.9f+0.9f*accSIN[i], 0.9f*accCOS[i] );
+ gl.glVertex3f(5.6f, 0.9f+0.9f*accSIN[i], 0.9f*accCOS[i]);
+ }
+ gl.glNormal3f(0.0f, accSIN[0], accCOS[0] );
+ gl.glVertex3f(0.9f*accSIN[0], 0.9f+0.9f*accSIN[0], 0.9f*accCOS[0] );
+ gl.glVertex3f(5.6f, 0.9f+0.9f*accSIN[0], 0.9f*accCOS[0]);
+ gl.glEnd();
+
+ gl.glBegin(GL_TRIANGLE_FAN);
+ gl.glNormal3f(1.0f, 0.0f, 0.0f);
+ gl.glVertex3f(5.6f, 0.9f, 0.0f);
+ for (i=ACC-1;i>=0;i--)
+ gl.glVertex3f(5.6f, 0.9f+0.9f*accSIN[i], 0.9f*accCOS[i]);
+ gl.glVertex3f(5.6f, 0.9f+0.9f*accSIN[ACC-1], 0.9f*accCOS[ACC-1]);
+ gl.glEnd();
+ }
+
+ void draw_part(int i)
+ {
+ gl.glPushMatrix();
+ gl.glTranslatef(TRANS[i][0]*progress, TRANS[i][1]*progress, TRANS[i][2]*progress);
+ gl.glRotatef(ROT[i]*progress, ROTAXIS[i][0], ROTAXIS[i][1], ROTAXIS[i][2]);
+ switch(i)
+ {
+ case 0: draw_El(); break;
+ case 1: draw_O(); break;
+ case 2: draw_P(); break;
+ case 3: draw_E(); break;
+ case 4: draw_N(); break;
+ case 5: draw_G(); break;
+ case 6: draw_L(); break;
+ }
+ gl.glPopMatrix();
+ }
+
+ void draw_logo()
+ {
+ groen_texture();
+ gl.glEnable(GL_CULL_FACE);
+ gl.glTranslatef(-2.8f, 0.0f, 0.0f);
+
+ draw_part(0);
+ gl.glTranslatef(-12.0f, 4.3f, 0.0f);
+ draw_part(1);
+ gl.glTranslatef(7.3f, 0.0f, 0.0f);
+ draw_part(2);
+ gl.glTranslatef(5.4f, 0.0f, 0.0f);
+ draw_part(3);
+ gl.glTranslatef(5.4f, 0.0f, 0.0f);
+ draw_part(4);
+ gl.glTranslatef(7.4f, 0.0f, 0.0f);
+ draw_part(5);
+ gl.glTranslatef(6.8f, 0.0f, 0.0f);
+ draw_part(6);
+ }
+
+}
+
diff --git a/demos/glLogoCvsApplet.html b/demos/glLogoCvsApplet.html
new file mode 100644
index 0000000..69546d9
--- /dev/null
+++ b/demos/glLogoCvsApplet.html
@@ -0,0 +1,14 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<applet code="glLogoCvsApplet.class" width=400 height=220>
+<param name=frames value="55">
+</applet>
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/glLogoCvsApplet.java b/demos/glLogoCvsApplet.java
new file mode 100644
index 0000000..bdd5009
--- /dev/null
+++ b/demos/glLogoCvsApplet.java
@@ -0,0 +1,71 @@
+
+import gl4java.GLContext;
+
+import java.awt.*;
+import java.awt.event.*;
+import java.applet.*;
+
+public class glLogoCvsApplet extends Applet
+ implements MouseListener
+{
+ glLogoCvs cvsLogo = null;
+
+ String gljLib=null;
+ String glLib=null;
+ String gluLib=null;
+
+ Button bLoadLib = null;
+ Button bAddGL = null;
+
+ public void init()
+ {
+ setLayout(new BorderLayout());
+ cvsLogo = new glLogoCvs(150, 150, null, null);
+ cvsLogo.setAnimateFps(30.0);
+ add("Center", cvsLogo);
+
+ add("West", new Label("OpenGL"));
+ add("East", new Label("Java-Applet"));
+
+ cvsLogo.addMouseListener(this);
+ setBackground(Color.white);
+ }
+
+ public void start() {
+ cvsLogo.start();
+ }
+
+ public void stop() {
+ cvsLogo.stop();
+ }
+
+ public void destroy() {
+ cvsLogo.stop();
+ cvsLogo.cvsDispose();
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+
+ if( comp.equals(cvsLogo) )
+ cvsLogo.setSuspended(!cvsLogo.isSuspended(), true);
+ }
+}
diff --git a/demos/glLogoCvsAppletDbg.java b/demos/glLogoCvsAppletDbg.java
new file mode 100644
index 0000000..8ddfd0a
--- /dev/null
+++ b/demos/glLogoCvsAppletDbg.java
@@ -0,0 +1,125 @@
+
+import gl4java.GLContext;
+
+import java.awt.*;
+import java.awt.event.*;
+import java.applet.*;
+
+public class glLogoCvsAppletDbg extends Applet
+ implements MouseListener
+{
+ glLogoCvs cvsLogo = null;
+
+ String gljLib=null;
+ String glLib=null;
+ String gluLib=null;
+
+ Button bLoadLib = null;
+ Button bAddGL = null;
+
+ static {
+ if(GLContext.loadNativeLibraries(null, null, null)==false)
+ System.out.println("could not load native def. libs");
+ else
+ System.out.println("loaded native def. libs");
+ }
+
+ public void init()
+ {
+ setLayout(new BorderLayout());
+
+ bLoadLib = new Button("load lib");
+ add("North", bLoadLib);
+ bAddGL = new Button("add gl");
+ add("South", bAddGL);
+ bAddGL.addMouseListener(this);
+ /*
+ if(GLContext.loadNativeLibraries(gljLib, glLib, gluLib)==false)
+ System.out.println("could not load native libs:"+
+ gljLib + ", " + glLib + ", " + gluLib);
+ else
+ System.out.println("load native libs:"+
+ gljLib + ", " + glLib + ", " + gluLib);
+
+ setLayout(new BorderLayout());
+ cvsLogo = new glLogoCvs(150, 150, null, null);
+ cvsLogo.setAnimateFps(30.0);
+ add("Center", cvsLogo);
+
+ add("West", new Label("OpenGL"));
+ add("East", new Label("Java-Applet"));
+
+ cvsLogo.addMouseListener(this);
+ setBackground(Color.white);
+ */
+ }
+
+ public void start() {
+ // cvsLogo.start();
+ }
+
+ public void stop() {
+ // cvsLogo.stop();
+ }
+
+ public void destroy() {
+ /*
+ cvsLogo.stop();
+ cvsLogo.cvsDispose();
+ */
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+
+ if( comp.equals(bLoadLib) )
+ loadLib();
+ if( comp.equals(bAddGL) )
+ addGL();
+ else if( comp.equals(cvsLogo) )
+ cvsLogo.setSuspended(!cvsLogo.isSuspended(),
+ evt.getClickCount()>1 // -> ReInit
+ );
+ }
+
+ void loadLib()
+ {
+ if(GLContext.loadNativeLibraries(gljLib, glLib, gluLib)==false)
+ System.out.println("could not load native libs:"+
+ gljLib + ", " + glLib + ", " + gluLib);
+ else
+ System.out.println("load native libs:"+
+ gljLib + ", " + glLib + ", " + gluLib);
+ }
+
+ void addGL()
+ {
+ cvsLogo = new glLogoCvs(150, 150, null, null);
+ cvsLogo.setAnimateFps(30.0);
+ add("Center", cvsLogo);
+
+ add("West", new Label("OpenGL"));
+ add("East", new Label("Java-Applet"));
+
+ cvsLogo.addMouseListener(this);
+ setBackground(Color.white);
+ }
+}
diff --git a/demos/glLogoCvsAppletJ2P.html b/demos/glLogoCvsAppletJ2P.html
new file mode 100644
index 0000000..62c9705
--- /dev/null
+++ b/demos/glLogoCvsAppletJ2P.html
@@ -0,0 +1,45 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.0 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 220 codebase="http://java.sun.com/products/plugin/1.2/jinstall-12-win32.cab#Version=1,2,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.2" java_CODE = "glLogoCvsApplet.class" WIDTH = 400 HEIGHT = 220 frames = "55" pluginspage="http://java.sun.com/products/plugin/1.2/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "glLogoCvsApplet.class" WIDTH = 400 HEIGHT = 220 ></XMP>
+<PARAM NAME = CODE VALUE = "glLogoCvsApplet.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.2">
+<PARAM NAME = frames VALUE ="55">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "glLogoCvsApplet.class" WIDTH = 400 HEIGHT = 220 >
+<PARAM NAME = frames VALUE ="55">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/glOlympicCvsApplet.html b/demos/glOlympicCvsApplet.html
new file mode 100644
index 0000000..97520e7
--- /dev/null
+++ b/demos/glOlympicCvsApplet.html
@@ -0,0 +1,14 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<applet code="glOlympicCvsApplet.class" width=400 height=220>
+<param name=frames value="55">
+</applet>
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/glOlympicCvsApplet.java b/demos/glOlympicCvsApplet.java
new file mode 100644
index 0000000..0bc9102
--- /dev/null
+++ b/demos/glOlympicCvsApplet.java
@@ -0,0 +1,78 @@
+
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+import java.awt.*;
+import java.awt.event.*;
+import java.applet.*;
+
+public class glOlympicCvsApplet extends Applet
+ implements MouseListener
+{
+ olympicCvs cvsOlympic = null;
+
+ String gljLib=null;
+ String glLib=null;
+ String gluLib=null;
+
+ public void init()
+ {
+ if(GLContext.loadNativeLibraries(gljLib, glLib, gluLib)==false)
+ System.out.println("could not load native libs:"+
+ gljLib + ", " + glLib + ", " + gluLib);
+ else
+ System.out.println("load native libs:"+
+ gljLib + ", " + glLib + ", " + gluLib);
+
+
+ setLayout(new BorderLayout());
+ cvsOlympic = new olympicCvs(150, 150, null, null);
+ cvsOlympic.setAnimateFps(30.0);
+ add("Center", cvsOlympic);
+
+ add("West", new Label("OpenGL"));
+ add("East", new Label("Java-Applet"));
+
+ cvsOlympic.addMouseListener(this);
+ addMouseListener(this);
+
+ setBackground(Color.white);
+ }
+
+ public void start() {
+ cvsOlympic.start();
+ }
+
+ public void stop() {
+ cvsOlympic.stop();
+ }
+
+ public void destroy() {
+ cvsOlympic.stop();
+ cvsOlympic.cvsDispose();
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+
+ if( comp.equals(cvsOlympic) )
+ cvsOlympic.setSuspended(!cvsOlympic.isSuspended(), true);
+ }
+}
diff --git a/demos/glOlympicCvsAppletJ2P.html b/demos/glOlympicCvsAppletJ2P.html
new file mode 100644
index 0000000..135c58f
--- /dev/null
+++ b/demos/glOlympicCvsAppletJ2P.html
@@ -0,0 +1,45 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.0 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 220 codebase="http://java.sun.com/products/plugin/1.2/jinstall-12-win32.cab#Version=1,2,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.2" java_CODE = "glOlympicCvsApplet.class" WIDTH = 400 HEIGHT = 220 frames = "55" pluginspage="http://java.sun.com/products/plugin/1.2/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "glOlympicCvsApplet.class" WIDTH = 400 HEIGHT = 220 ></XMP>
+<PARAM NAME = CODE VALUE = "glOlympicCvsApplet.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.2">
+<PARAM NAME = frames VALUE ="55">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "glOlympicCvsApplet.class" WIDTH = 400 HEIGHT = 220 >
+<PARAM NAME = frames VALUE ="55">
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/glOlympicSwingApplet.html b/demos/glOlympicSwingApplet.html
new file mode 100644
index 0000000..32caef3
--- /dev/null
+++ b/demos/glOlympicSwingApplet.html
@@ -0,0 +1,14 @@
+<HTML>
+<HEAD>
+<TITLE>G&ouml;thel Hard- und Software Entwicklungen</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<applet code="glOlympicSwingApplet.class" width=400 height=220>
+<param name=frames value="55">
+</applet>
+<hr>
+</BODY>
+</HTML>
+
+
diff --git a/demos/glOlympicSwingApplet.java b/demos/glOlympicSwingApplet.java
new file mode 100644
index 0000000..9e67af2
--- /dev/null
+++ b/demos/glOlympicSwingApplet.java
@@ -0,0 +1,125 @@
+
+import gl4java.GLContext;
+import java.awt.*;
+import javax.swing.*;
+import java.awt.event.*;
+import java.applet.*;
+
+public class glOlympicSwingApplet extends JApplet
+ implements MouseListener
+{
+ olympicCvs cvsOlympic = null;
+
+ String gljLib=null;
+ String glLib=null;
+ String gluLib=null;
+
+ public void init()
+ {
+ if(GLContext.loadNativeLibraries(gljLib, glLib, gluLib)==false)
+ System.out.println("could not load native libs:"+
+ gljLib + ", " + glLib + ", " + gluLib);
+ else
+ System.out.println("load native libs:"+
+ gljLib + ", " + glLib + ", " + gluLib);
+
+
+ cvsOlympic = new olympicCvs(150, 150, null, null);
+ cvsOlympic.setAnimateFps(30.0);
+
+ JPanel p1 = new JPanel();
+ p1.setLayout(new BorderLayout());
+
+ getContentPane().setLayout(new BorderLayout());
+ getContentPane().add("Center", p1);
+
+ p1.add("North", new JLabel("Overlapping Swings do not work"));
+ p1.add("West", new JLabel("OpenGL"));
+ p1.add("Center", cvsOlympic);
+ p1.add("East", new JLabel("Java-JApplet"));
+ p1.add("South", new JLabel("The Events does not work yet"));
+
+ cvsOlympic.addMouseListener(this);
+
+ setBackground(Color.white);
+
+ JMenuBar jmb1 = new JMenuBar();
+ JMenu jm1 = new JMenu("Menu-1");
+ jm1.add(new JMenuItem("Menue-1-Item-1"));
+ jm1.add(new JMenuItem("Menue-1-Item-2"));
+ jm1.add(new JMenuItem("Menue-1-Item-3"));
+ JMenu jm2 = new JMenu("Menu-2");
+ jm2.add(new JMenuItem("Menue-2-Item-1"));
+ jm2.add(new JMenuItem("Menue-2-Item-2"));
+ jm2.add(new JMenuItem("Menue-2-Item-3"));
+ JMenu jm3 = new JMenu("Menu-3");
+ jm3.add(new JMenuItem("Menue-3-Item-1"));
+ jm3.add(new JMenuItem("Menue-3-Item-2"));
+ jm3.add(new JMenuItem("Menue-3-Item-3"));
+ jmb1.add(jm1);
+ jmb1.add(jm2);
+ jmb1.add(jm3);
+
+ setJMenuBar(jmb1);
+ }
+
+ public void start() {
+ cvsOlympic.start();
+ }
+
+ public void stop() {
+ cvsOlympic.stop();
+ }
+
+ public void destroy() {
+ cvsOlympic.stop();
+ cvsOlympic.cvsDispose();
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+ mouseInfo(evt);
+ if( comp.equals(cvsOlympic) )
+ cvsOlympic.setSuspended(!cvsOlympic.isSuspended(), true);
+
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ mouseInfo(evt);
+
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ mouseInfo(evt);
+
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ mouseInfo(evt);
+
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+
+ mouseInfo(evt);
+
+ if( comp.equals(cvsOlympic) )
+ cvsOlympic.setSuspended(!cvsOlympic.isSuspended(), true);
+ }
+
+ public void mouseInfo(MouseEvent evt)
+ {
+ Component comp = evt.getComponent();
+
+ System.out.println("\n\n----------------------------------");
+ System.out.println(comp);
+ System.out.println(evt);
+ }
+}
diff --git a/demos/glStencilTest.java b/demos/glStencilTest.java
new file mode 100755
index 0000000..79a2e4b
--- /dev/null
+++ b/demos/glStencilTest.java
@@ -0,0 +1,95 @@
+import gl4java.awt.*;
+import java.awt.*;
+import java.awt.Dimension;
+import gl4java.GLContext;
+import gl4java.GLFunc;
+
+public class glStencilTest {
+
+ protected class MyCanvas extends GLCanvas {
+
+ public MyCanvas(int w, int h) {
+ super(w,h);
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ public void preInit() {
+ stencilBits = 8;
+ }
+
+ public void init() {
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glOrtho(-1,1,-1,1,-50.0,50.0);
+ gl.glMatrixMode(GL_MODELVIEW);
+ glj.gljCheckGL();
+ }
+
+ public void reshape(int w, int h) {
+ Dimension d=new Dimension(w,h);
+ if (!cvsIsInit()) return;
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("problem in use() method");
+ return;
+ }
+ setSize(d);
+ gl.glViewport(0,0,w,h);
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ public void display() {
+ int i;
+
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ gl.glPushMatrix();
+ gl.glClear(GL_COLOR_BUFFER_BIT);
+ glu.gluLookAt(0, 0, 20, 0, 0, 0, 0, 1, 0);
+
+ gl.glBegin(GL_POLYGON);
+ gl.glVertex2d(0,-0.5);
+ gl.glVertex2d(0.5,0.5);
+ gl.glVertex2d(-0.5,0.5);
+ gl.glEnd();
+
+
+ // Examine some OpenGL properties
+ int [] res=new int[6];
+
+ gl.glGetIntegerv(GL_STENCIL_BITS,res);
+ System.out.println("Stencil bits are "+res[0]);
+
+ gl.glGetIntegerv(GL_RED_BITS,res);
+ System.out.println("Color bits are "+res[0]);
+
+ gl.glPopMatrix();
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+ }
+
+ protected MyCanvas cvs;
+ protected Frame frame;
+
+ public glStencilTest() {
+ frame = new Frame( "OpenGL" );
+ cvs= new MyCanvas(640,480);
+ frame.setSize(640,480);
+ frame.add("Center", cvs);
+ frame.setVisible(true);
+ }
+
+ public static void main(java.lang.String[] args) {
+ try {
+ glStencilTest g=new glStencilTest();
+ } catch (Throwable exception) {
+ System.err.println("Exception occurred in main()");
+ exception.printStackTrace(System.out);
+ }
+ }
+}
diff --git a/demos/glc2glj b/demos/glc2glj
new file mode 100755
index 0000000..2512144
--- /dev/null
+++ b/demos/glc2glj
@@ -0,0 +1,32 @@
+#! /bin/sh
+
+echo "will replace all decimal numbers to java-float constants"
+echo "$1 -> $1.new"
+sed -e '/[0-9][0-9]*\.[0-9][0-9]*/s//&f/g' \
+ -e '/GLbyte/s//byte/g' \
+ -e '/GLshort/s//short/g' \
+ -e '/GLint/s//int/g' \
+ -e '/GLfloat/s//float/g' \
+ -e '/GLclampf/s//float/g' \
+ -e '/GLdouble/s//double/g' \
+ -e '/GLclampd/s//double/g' \
+ -e '/GLubyte/s//byte/g' \
+ -e '/GLboolean/s//boolean/g' \
+ -e '/GLushort/s//short/g' \
+ -e '/GLuint/s//int/g' \
+ -e '/GLenum/s//int/g' \
+ -e '/GLbitfield/s//int/g' \
+ -e '/GLUquadricObj *\*/s//long /g' \
+ -e '/GLUnurbsObj *\*/s//long /g' \
+ -e '/GLUtesselator *\*/s//long /g' \
+ -e '/GLUtriangulatorObj *\*/s//long /g' \
+ -e '/cos/s//(float)Math.cos/g' \
+ -e '/sin/s//(float)Math.sin/g' \
+ -e '/sqrt/s//(float)Math.sqrt/g' \
+ -e '/pow/s//(float)Math.pow/g' \
+ -e '/\#define/s//static final int/g' \
+ -e '/glut[A-Z]/s//glut.&/g' \
+ -e '/glu[A-Z]/s//glu.&/g' \
+ -e '/gl[A-Z]/s//gl.&/g' \
+ $1 > $1.new
+
diff --git a/demos/index.html b/demos/index.html
new file mode 100755
index 0000000..1ac862b
--- /dev/null
+++ b/demos/index.html
@@ -0,0 +1,62 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="Author" content="Ron Cemer & Sven Goethel">
+ <meta name="GENERATOR" content="Mozilla/4.61 [en] (Win98; U) [Netscape]">
+ <title>Misc Demos</title>
+</head>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<p>Here are the demos-I for <B>
+<A HREF="http://www.jausoft.com/gl4java/">GL4Java</A> >= 2.4.0.0: </B> <br>
+<br>
+ <LI><P ALIGN=LEFT><I><A HREF="glDemosCvs.html">glDemosCvs</A>
+ : Many OpenGL Canvas running together</I>
+ </P>
+ <LI><P ALIGN=LEFT><I><A HREF="glOlympicCvsApplet.html">glOlympicCvsApplet</A>
+ : The Olympic Rings alone </I>
+ </P>
+ <LI><P ALIGN=LEFT><I><A HREF="glLogoCvsApplet.html">glLogoCvsApplet</A>
+ : The OpenGL Logo alone</I></P>
+ <LI><P ALIGN=LEFT><I><A HREF="glOlympicSwingApplet.html">glOlympicSwingApplet</A>
+ : The Olympic Rings using Swing (needs Swing 1.1 installed
+ either)</I></P>
+ <LI><P ALIGN=LEFT><I><A HREF="testTextPPM1.html">testTextPPM1</A>
+ : A textured Box using Swing (needs Swing 1.1 installed
+ either)</I></P>
+
+<BR>
+
+ <LI><P ALIGN=LEFT><I><A HREF="GLLandScape/index.html">GLLandScape World</A>
+ : The GLLandScape World
+ </I></P>
+ <LI><P ALIGN=LEFT><I><A HREF="MiscDemos/index.html">Misc Demos</A>
+ : Some new ported demos.
+ </I></P>
+ <LI><P ALIGN=LEFT><I><A HREF="RonsDemos/index.html">Ron's Demos</A>
+ : Demo's ported by Ron Cemer
+ </I></P>
+ <LI><P ALIGN=LEFT><I><A HREF="HodglimsNeHe/index.html">Hodglim's NeHe Demos</A>
+ : Here are the NeHe OpenGL Tutorial Demos originally ported by Hodglim
+ </I></P>
+<BR>
+
+<P ALIGN=CENTER><SPAN STYLE="text-decoration: none"><I>For use with
+the Java2-Plug-In: Tested with Win32,Netscape,Java2 <A HREF="Java2.txt">(see
+Installation-instructions Java2)</A> ! </I></SPAN>
+</P>
+<UL>
+ <LI><P ALIGN=LEFT><I><A HREF="glOlympicCvsAppletJ2P.html">glOlympicCvsAppletJ2P</A>
+ : Out of the demo directory of GL4Java </I>
+ </P>
+ <LI><P ALIGN=LEFT><I><A HREF="glLogoCvsAppletJ2P.html">glLogoCvsAppletJ2P</A>
+ : Out of the demo directory of GL4Java</I></P>
+ <LI><P ALIGN=LEFT><I><A HREF="testTextPPM1J2P.html">testTextPPM1J2P</A>
+ : Out of the demo directory of GL4Java (needs Swing 1.1 installed
+ either)</I></P>
+</UL>
+<P ALIGN=CENTER><SPAN STYLE="text-decoration: none">
+<a href="../../Installer/java.policy">The Java2 (sdk, jre, plugin 1.3) policy file example to give GL4Java the necessary permissions (Click here) !</a>
+</P>
+</BODY>
+</HTML>
diff --git a/demos/java.policy b/demos/java.policy
new file mode 100644
index 0000000..1115932
--- /dev/null
+++ b/demos/java.policy
@@ -0,0 +1,56 @@
+
+// Standard extensions get all permissions by default
+
+grant codeBase "file:${java.home}/lib/ext/-" {
+ permission java.security.AllPermission;
+};
+
+grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/* {
+ permission java.security.AllPermission;
+};
+
+grant codeBase "file://f/java-1.1.X/GL4Java/demos/* {
+ permission java.security.AllPermission;
+};
+
+// default permissions granted to all domains
+
+grant {
+ // Allows any thread to stop itself using the java.lang.Thread.stop()
+ // method that takes no argument.
+ // Note that this permission is granted by default only to remain
+ // backwards compatible.
+ // It is strongly recommended that you either remove this permission
+ // from this policy file or further restrict it to code sources
+ // that you specify, because Thread.stop() is potentially unsafe.
+ // See "http://java.sun.com/notes" for more information.
+ permission java.lang.RuntimePermission "stopThread";
+
+ // allows anyone to listen on un-privileged ports
+ permission java.net.SocketPermission "localhost:1024-", "listen";
+
+ // "standard" properies that can be read by anyone
+
+ permission java.util.PropertyPermission "java.version", "read";
+ permission java.util.PropertyPermission "java.vendor", "read";
+ permission java.util.PropertyPermission "java.vendor.url", "read";
+ permission java.util.PropertyPermission "java.class.version", "read";
+ permission java.util.PropertyPermission "os.name", "read";
+ permission java.util.PropertyPermission "os.version", "read";
+ permission java.util.PropertyPermission "os.arch", "read";
+ permission java.util.PropertyPermission "file.separator", "read";
+ permission java.util.PropertyPermission "path.separator", "read";
+ permission java.util.PropertyPermission "line.separator", "read";
+
+ permission java.util.PropertyPermission "java.specification.version", "read";
+ permission java.util.PropertyPermission "java.specification.vendor", "read";
+ permission java.util.PropertyPermission "java.specification.name", "read";
+
+ permission java.util.PropertyPermission "java.vm.specification.version", "read";
+ permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
+ permission java.util.PropertyPermission "java.vm.specification.name", "read";
+ permission java.util.PropertyPermission "java.vm.version", "read";
+ permission java.util.PropertyPermission "java.vm.vendor", "read";
+ permission java.util.PropertyPermission "java.vm.name", "read";
+};
+
diff --git a/demos/lunaL.ppm b/demos/lunaL.ppm
new file mode 100644
index 0000000..aaf7c41
--- /dev/null
+++ b/demos/lunaL.ppm
Binary files differ
diff --git a/demos/makefile b/demos/makefile
new file mode 100644
index 0000000..56422c8
--- /dev/null
+++ b/demos/makefile
@@ -0,0 +1,36 @@
+JAVAC = javac
+
+
+JAVA_APPL_FILES = olympicCvs.java \
+ starCvs.java \
+ waveCvs.java \
+ glOlympicCvsApplet.java \
+ glOlympicSwingApplet.java \
+ glLogoCvs.java \
+ glLogoCvsApplet.java \
+ glDemosCvs.java \
+ testTextPPM1.java
+
+.SUFFIXES : .java .class
+
+.java.class:
+ $(JAVAC) -deprecation $< 2>&1 | tee -a errors
+
+all: ${JAVA_APPL_FILES:.java=.class}
+
+showdest:
+ echo ${JAVA_APPL_FILES:.java=.class} ${C_APPL_FILES:.c=.o}
+
+clean:
+ rm -f *.o *~ errors *.dll
+
+cleanall: clean
+ rm -f *.class ${C_APPL_FILES:.c=}
+ rm -f $(find . -name \*.o -o -name \*.exe )
+
+windllcpy:
+ cp /WIN_NT/system32/opengl32.dll .
+ cp /WIN_NT/system32/opengl.dll .
+ cp /WIN_NT/system32/gl4java.dll .
+ cp /WIN_NT/system32/gl4java32.dll .
+
diff --git a/demos/natives/bc5/cube.c b/demos/natives/bc5/cube.c
new file mode 100644
index 0000000..34c2f47
--- /dev/null
+++ b/demos/natives/bc5/cube.c
@@ -0,0 +1,289 @@
+#include <windows.h>
+#include <GL/gl.h>
+
+char *className = "OpenGL";
+char *windowName = "OpenGL Cube";
+int winX = 0, winY = 0;
+int winWidth = 300, winHeight = 300;
+
+HDC hDC;
+HGLRC hGLRC;
+HPALETTE hPalette;
+
+void
+init(void)
+{
+ /* set viewing projection */
+ glMatrixMode(GL_PROJECTION);
+ glFrustum(-0.5F, 0.5F, -0.5F, 0.5F, 1.0F, 3.0F);
+
+ /* position viewer */
+ glMatrixMode(GL_MODELVIEW);
+ glTranslatef(0.0F, 0.0F, -2.0F);
+
+ /* position object */
+ glRotatef(30.0F, 1.0F, 0.0F, 0.0F);
+ glRotatef(30.0F, 0.0F, 1.0F, 0.0F);
+
+ glEnable(GL_DEPTH_TEST);
+ glEnable(GL_LIGHTING);
+ glEnable(GL_LIGHT0);
+}
+
+void
+redraw(void)
+{
+ /* clear color and depth buffers */
+ glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ /* draw six faces of a cube */
+ glBegin(GL_QUADS);
+ glNormal3f( 0.0F, 0.0F, 1.0F);
+ glVertex3f( 0.5F, 0.5F, 0.5F); glVertex3f(-0.5F, 0.5F, 0.5F);
+ glVertex3f(-0.5F,-0.5F, 0.5F); glVertex3f( 0.5F,-0.5F, 0.5F);
+
+ glNormal3f( 0.0F, 0.0F,-1.0F);
+ glVertex3f(-0.5F,-0.5F,-0.5F); glVertex3f(-0.5F, 0.5F,-0.5F);
+ glVertex3f( 0.5F, 0.5F,-0.5F); glVertex3f( 0.5F,-0.5F,-0.5F);
+
+ glNormal3f( 0.0F, 1.0F, 0.0F);
+ glVertex3f( 0.5F, 0.5F, 0.5F); glVertex3f( 0.5F, 0.5F,-0.5F);
+ glVertex3f(-0.5F, 0.5F,-0.5F); glVertex3f(-0.5F, 0.5F, 0.5F);
+
+ glNormal3f( 0.0F,-1.0F, 0.0F);
+ glVertex3f(-0.5F,-0.5F,-0.5F); glVertex3f( 0.5F,-0.5F,-0.5F);
+ glVertex3f( 0.5F,-0.5F, 0.5F); glVertex3f(-0.5F,-0.5F, 0.5F);
+
+ glNormal3f( 1.0F, 0.0F, 0.0F);
+ glVertex3f( 0.5F, 0.5F, 0.5F); glVertex3f( 0.5F,-0.5F, 0.5F);
+ glVertex3f( 0.5F,-0.5F,-0.5F); glVertex3f( 0.5F, 0.5F,-0.5F);
+
+ glNormal3f(-1.0F, 0.0F, 0.0F);
+ glVertex3f(-0.5F,-0.5F,-0.5F); glVertex3f(-0.5F,-0.5F, 0.5F);
+ glVertex3f(-0.5F, 0.5F, 0.5F); glVertex3f(-0.5F, 0.5F,-0.5F);
+ glEnd();
+
+ SwapBuffers(hDC);
+}
+
+void
+resize(void)
+{
+ /* set viewport to cover the window */
+ glViewport(0, 0, winWidth, winHeight);
+}
+
+void
+setupPixelFormat(HDC hDC)
+{
+ PIXELFORMATDESCRIPTOR pfd = {
+ sizeof(PIXELFORMATDESCRIPTOR), /* size */
+ 1, /* version */
+ PFD_SUPPORT_OPENGL |
+ PFD_DRAW_TO_WINDOW |
+ PFD_DOUBLEBUFFER, /* support double-buffering */
+ PFD_TYPE_RGBA, /* color type */
+ 16, /* prefered color depth */
+ 0, 0, 0, 0, 0, 0, /* color bits (ignored) */
+ 0, /* no alpha buffer */
+ 0, /* alpha bits (ignored) */
+ 0, /* no accumulation buffer */
+ 0, 0, 0, 0, /* accum bits (ignored) */
+ 16, /* depth buffer */
+ 0, /* no stencil buffer */
+ 0, /* no auxiliary buffers */
+ PFD_MAIN_PLANE, /* main layer */
+ 0, /* reserved */
+ 0, 0, 0, /* no layer, visible, damage masks */
+ };
+ int pixelFormat;
+
+ pixelFormat = ChoosePixelFormat(hDC, &pfd);
+ if (pixelFormat == 0) {
+ MessageBox(WindowFromDC(hDC), "ChoosePixelFormat failed.", "Error",
+ MB_ICONERROR | MB_OK);
+ exit(1);
+ }
+
+ if (SetPixelFormat(hDC, pixelFormat, &pfd) != TRUE) {
+ MessageBox(WindowFromDC(hDC), "SetPixelFormat failed.", "Error",
+ MB_ICONERROR | MB_OK);
+ exit(1);
+ }
+}
+
+void
+setupPalette(HDC hDC)
+{
+ int pixelFormat = GetPixelFormat(hDC);
+ PIXELFORMATDESCRIPTOR pfd;
+ LOGPALETTE* pPal;
+ int paletteSize;
+
+ DescribePixelFormat(hDC, pixelFormat, sizeof(PIXELFORMATDESCRIPTOR), &pfd);
+
+ if (pfd.dwFlags & PFD_NEED_PALETTE) {
+ paletteSize = 1 << pfd.cColorBits;
+ } else {
+ return;
+ }
+
+ pPal = (LOGPALETTE*)
+ malloc(sizeof(LOGPALETTE) + paletteSize * sizeof(PALETTEENTRY));
+ pPal->palVersion = 0x300;
+ pPal->palNumEntries = paletteSize;
+
+ /* build a simple RGB color palette */
+ {
+ int redMask = (1 << pfd.cRedBits) - 1;
+ int greenMask = (1 << pfd.cGreenBits) - 1;
+ int blueMask = (1 << pfd.cBlueBits) - 1;
+ int i;
+
+ for (i=0; i<paletteSize; ++i) {
+ pPal->palPalEntry[i].peRed =
+ (((i >> pfd.cRedShift) & redMask) * 255) / redMask;
+ pPal->palPalEntry[i].peGreen =
+ (((i >> pfd.cGreenShift) & greenMask) * 255) / greenMask;
+ pPal->palPalEntry[i].peBlue =
+ (((i >> pfd.cBlueShift) & blueMask) * 255) / blueMask;
+ pPal->palPalEntry[i].peFlags = 0;
+ }
+ }
+
+ hPalette = CreatePalette(pPal);
+ free(pPal);
+
+ if (hPalette) {
+ SelectPalette(hDC, hPalette, FALSE);
+ RealizePalette(hDC);
+ }
+}
+
+LRESULT APIENTRY
+WndProc(
+ HWND hWnd,
+ UINT message,
+ WPARAM wParam,
+ LPARAM lParam)
+{
+ switch (message) {
+ case WM_CREATE:
+ /* initialize OpenGL rendering */
+ hDC = GetDC(hWnd);
+ setupPixelFormat(hDC);
+ setupPalette(hDC);
+ hGLRC = wglCreateContext(hDC);
+ wglMakeCurrent(hDC, hGLRC);
+ init();
+ return 0;
+ case WM_DESTROY:
+ /* finish OpenGL rendering */
+ if (hGLRC) {
+ wglMakeCurrent(NULL, NULL);
+ wglDeleteContext(hGLRC);
+ }
+ if (hPalette) {
+ DeleteObject(hPalette);
+ }
+ ReleaseDC(hWnd, hDC);
+ PostQuitMessage(0);
+ return 0;
+ case WM_SIZE:
+ /* track window size changes */
+ if (hGLRC) {
+ winWidth = (int) LOWORD(lParam);
+ winHeight = (int) HIWORD(lParam);
+ resize();
+ return 0;
+ }
+ case WM_PALETTECHANGED:
+ /* realize palette if this is *not* the current window */
+ if (hGLRC && hPalette && (HWND) wParam != hWnd) {
+ UnrealizeObject(hPalette);
+ SelectPalette(hDC, hPalette, FALSE);
+ RealizePalette(hDC);
+ redraw();
+ break;
+ }
+ break;
+ case WM_QUERYNEWPALETTE:
+ /* realize palette if this is the current window */
+ if (hGLRC && hPalette) {
+ UnrealizeObject(hPalette);
+ SelectPalette(hDC, hPalette, FALSE);
+ RealizePalette(hDC);
+ redraw();
+ return TRUE;
+ }
+ break;
+ case WM_PAINT:
+ {
+ PAINTSTRUCT ps;
+ BeginPaint(hWnd, &ps);
+ if (hGLRC) {
+ redraw();
+ }
+ EndPaint(hWnd, &ps);
+ return 0;
+ }
+ break;
+ case WM_CHAR:
+ /* handle keyboard input */
+ switch ((int)wParam) {
+ case VK_ESCAPE:
+ DestroyWindow(hWnd);
+ return 0;
+ default:
+ break;
+ }
+ break;
+ default:
+ break;
+ }
+ return DefWindowProc(hWnd, message, wParam, lParam);
+}
+
+int APIENTRY
+WinMain(
+ HINSTANCE hCurrentInst,
+ HINSTANCE hPreviousInst,
+ LPSTR lpszCmdLine,
+ int nCmdShow)
+{
+ WNDCLASS wndClass;
+ HWND hWnd;
+ MSG msg;
+
+ /* register window class */
+ wndClass.style = CS_HREDRAW | CS_VREDRAW;
+ wndClass.lpfnWndProc = WndProc;
+ wndClass.cbClsExtra = 0;
+ wndClass.cbWndExtra = 0;
+ wndClass.hInstance = hCurrentInst;
+ wndClass.hIcon = LoadIcon(NULL, IDI_APPLICATION);
+ wndClass.hCursor = LoadCursor(NULL, IDC_ARROW);
+ wndClass.hbrBackground = GetStockObject(BLACK_BRUSH);
+ wndClass.lpszMenuName = NULL;
+ wndClass.lpszClassName = className;
+ RegisterClass(&wndClass);
+
+ /* create window */
+ hWnd = CreateWindow(
+ className, windowName,
+ WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_CLIPSIBLINGS,
+ winX, winY, winWidth, winHeight,
+ NULL, NULL, hCurrentInst, NULL);
+
+ /* display window */
+ ShowWindow(hWnd, nCmdShow);
+ UpdateWindow(hWnd);
+
+ /* process messages */
+ while (GetMessage(&msg, NULL, 0, 0) == TRUE) {
+ TranslateMessage(&msg);
+ DispatchMessage(&msg);
+ }
+ return msg.wParam;
+}
+ \ No newline at end of file
diff --git a/demos/natives/bc5/cube.ide b/demos/natives/bc5/cube.ide
new file mode 100644
index 0000000..d2fab99
--- /dev/null
+++ b/demos/natives/bc5/cube.ide
Binary files differ
diff --git a/demos/natives/bc5/testGL1.c b/demos/natives/bc5/testGL1.c
new file mode 100644
index 0000000..b0094f1
--- /dev/null
+++ b/demos/natives/bc5/testGL1.c
@@ -0,0 +1,224 @@
+
+
+
+
+ #include <windows.h>
+
+ #include <stdio.h>
+ #include <stdlib.h>
+
+#include <GL/gl.h>
+#include <GL/glut.h>
+
+double width = 250;
+double height = 250;
+double fps = 25.0;
+
+ static float lmodel_twoside[] =
+ {GL_FALSE};
+ static float lmodel_local[] =
+ {GL_FALSE};
+ static float lmodel_ambient[] =
+ {0.0, 0.0, 0.0, 0.0};
+
+void CylinderDraw( )
+{
+ glBegin( GL_TRIANGLE_STRIP );
+ glNormal3f ( 1.0, 0.0, -5.0 );
+ glVertex3f ( 1.0, 0.0, -5.0 );
+ glNormal3f ( 1.0, 0.0, -5.0 );
+ glVertex3f (1.000000, 0.000000, 5.000000);
+ glNormal3f (0.707107, 0.707107, -5.000000);
+ glVertex3f (0.707107, 0.707107, -5.000000);
+ glNormal3f (0.707107, 0.707107, -5.000000);
+ glVertex3f (0.707107, 0.707107, 5.000000);
+ glNormal3f (0.000000, 1.000000, -5.000000);
+ glVertex3f (0.000000, 1.000000, -5.000000);
+ glNormal3f (0.000000, 1.000000, -5.000000);
+ glVertex3f (0.000000, 1.000000, 5.000000);
+ glNormal3f (-0.707107, 0.707107, -5.00000);
+ glVertex3f (-0.707107, 0.707107, -5.00000);
+ glNormal3f (-0.707107, 0.707107, -5.00000);
+ glVertex3f (-0.707107, 0.707107, 5.00000);
+ glNormal3f (-1.000000, 0.000000, -5.000000);
+ glVertex3f (-1.000000, 0.000000, -5.000000);
+ glNormal3f (-1.000000, 0.000000, -5.000000);
+ glVertex3f (-1.000000, 0.000000, 5.00000);
+ glNormal3f (-0.707107, -0.707107, -5.000000);
+ glVertex3f (-0.707107, -0.707107, -5.000000);
+ glNormal3f (-0.707107, -0.707107, -5.000000);
+ glVertex3f (-0.707107, -0.707107, 5.00000);
+ glNormal3f (0.000000, -1.000000, -5.000000);
+ glVertex3f (0.000000, -1.000000, -5.000000);
+ glNormal3f (0.000000, -1.000000, -5.000000);
+ glVertex3f (0.000000, -1.000000, 5.00000);
+ glNormal3f (0.707107, -0.707107, -5.00000);
+ glVertex3f (0.707107, -0.707107, -5.00000);
+ glNormal3f (0.707107, -0.707107, -5.00000);
+ glVertex3f (0.707107, -0.707107, 5.000000);
+ glNormal3f (1.000000, 0.000000, -5.00000);
+ glVertex3f (1.000000, 0.000000, -5.00000);
+ glNormal3f (1.000000, 0.000000, -5.00000);
+ glVertex3f (1.000000, 0.000000, 5.00000);
+ glEnd();
+}
+
+void reshape(int width, int height)
+{
+ double fov = 45.0,
+ aspect = width / height,
+ near_ = 1.0,
+ far_ = 200.0;
+
+ glViewport( 0, 0, width, height );
+
+ glMatrixMode( GL_PROJECTION );
+ glLoadIdentity();
+
+ gluPerspective( fov, aspect, near_, far_ );
+
+ glMatrixMode( GL_MODELVIEW );
+ glLoadIdentity();
+
+}
+
+void display()
+{
+ static int FrameStep = 0;
+
+ glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
+ glPushMatrix();
+ glTranslatef( 0.0, 0.0, -65.0 );
+ glRotatef( 40.0+(2*FrameStep), 0.0, 0.0, 1.0 );
+ glRotatef( 190.0+(2*FrameStep), 0.0, 1.0, 0.0 );
+ glRotatef( 200.0+(FrameStep*2), 1.0, 0.0, 0.0 );
+ glPushMatrix();
+ glScalef( 1.0, 1.0, 10.0 );
+ CylinderDraw( );
+ glPopMatrix();
+ glPushMatrix();
+ glRotatef( 90.0, 0.0, 1.0, 0.0 );
+ glScalef( 1.0, 1.0, 10.0 );
+ CylinderDraw( );
+ glPopMatrix();
+ glPushMatrix();
+ glRotatef( 90.0, 1.0, 0.0, 0.0 );
+ glScalef( 1.0, 1.0, 10.0 );
+ CylinderDraw( );
+ glPopMatrix();
+ glPopMatrix();
+
+ glutSwapBuffers();
+ /* glFlush(); */
+
+ FrameStep++;
+
+ if(FrameStep>100000) FrameStep=0;
+
+}
+
+void init()
+{
+ double fov = 45.0;
+ double aspect = width / height ;
+ double near_ = 1.0;
+ double far_ = 200.0;
+ float lightArr[4];
+ float farr[4];
+
+ /* initialize the widget */
+ glClearColor( 0.8f, 0.8f, 1.0f, 1.0f );
+ glFrontFace( GL_CW );
+ glEnable( GL_DEPTH_TEST );
+
+ glViewport( 0, 0, width, height );
+
+ glMatrixMode( GL_PROJECTION );
+ glLoadIdentity();
+
+ gluPerspective( fov, aspect, near_, far_ );
+
+ /* render three rotated cylinders */
+ glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
+
+ glMatrixMode( GL_MODELVIEW );
+ glLoadIdentity();
+
+ /* enable lighting */
+ lightArr[0] = 1.0f; lightArr[1] = 1.0f;
+ lightArr[2] = 1.0f; lightArr[3] = 1.0f;
+ glLightfv( GL_LIGHT0, GL_DIFFUSE, lightArr );
+ lightArr[0] = 90.0f; lightArr[1] = 90.0f;
+ lightArr[2] = 0.0f; lightArr[3] = 0.0f;
+ glLightfv( GL_LIGHT0, GL_POSITION, lightArr );
+ lightArr[0] = 0.1f; lightArr[1] = 0.1f;
+ lightArr[2] = 0.1f; lightArr[3] = 1.0f;
+ glLightfv( GL_LIGHT0, GL_AMBIENT, lightArr );
+ glEnable( GL_LIGHT0 );
+
+ /*
+ glLightModelfv(GL_LIGHT_MODEL_LOCAL_VIEWER, lmodel_local);
+ glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);
+ */
+ glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, 1);
+ glEnable( GL_LIGHTING );
+
+ /*
+ glLightModelfv(GL_LIGHT_MODEL_LOCAL_VIEWER, lmodel_local);
+ glLightModelfv(GL_LIGHT_MODEL_TWO_SIDE, lmodel_twoside);
+ glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);
+ glEnable( GL_LIGHTING );
+ */
+
+
+ glMaterialf( GL_FRONT, GL_SHININESS, 30.0f );
+
+ farr[0] = 0.0f; farr[1] = 0.0f; farr[2] = 0.0f; farr[3] = 1.0f;
+ glMaterialfv( GL_FRONT, GL_SPECULAR, farr );
+
+ farr[0] = 0.0f; farr[1] = 1.0f; farr[2] = 0.0f; farr[3] = 1.0f;
+ glMaterialfv( GL_FRONT, GL_DIFFUSE, farr );
+
+ glMaterialf( GL_BACK, GL_SHININESS, 50.0f );
+
+ farr[0] = 0.0f; farr[1] = 0.0f; farr[2] = 1.0f; farr[3] = 1.0f;
+ glMaterialfv( GL_BACK, GL_SPECULAR, farr );
+
+ farr[0] = 1.0f; farr[1] = 1.0f; farr[2] = 0.0f; farr[3] = 1.0f;
+ glMaterialfv( GL_BACK, GL_DIFFUSE, farr );
+
+}
+
+void idle()
+{
+ glutPostRedisplay();
+}
+
+int main( int argc, char **argv)
+{
+ fprintf(stderr,"1\n");
+ if(argc>2 && strcmp(argv[1], "-fps")==0)
+ {
+ fprintf(stderr,"2\n");
+ fps = atof(argv[2]);
+ argc-=2;
+ argv+=2;
+ }
+ fprintf(stderr, "Frame Per Secounds %d\n ( will be ignored this time )\n", fps);
+
+ glutInit(&argc, argv);
+ glutInitDisplayMode ( GLUT_DOUBLE
+ | GLUT_DEPTH
+ | GLUT_RGBA
+ );
+ glutInitWindowSize(width,height);
+ glutInitWindowPosition(100,100);
+ glutCreateWindow("OpenGL GLUT/NATIVE");
+ init();
+ glutDisplayFunc(display);
+ glutReshapeFunc(reshape);
+ glutIdleFunc(idle);
+ glutMainLoop();
+ return 0;
+}
+
diff --git a/demos/natives/bc5/testGL1.ide b/demos/natives/bc5/testGL1.ide
new file mode 100644
index 0000000..d2fab99
--- /dev/null
+++ b/demos/natives/bc5/testGL1.ide
Binary files differ
diff --git a/demos/natives/wgl.c b/demos/natives/wgl.c
new file mode 100644
index 0000000..15119e8
--- /dev/null
+++ b/demos/natives/wgl.c
@@ -0,0 +1,517 @@
+/*****************************************************************
+
+ Xmame OpenGL driver
+
+ Written based on the x11 driver by Mike Oliphant - [email protected]
+
+ http://www.ling.ed.ac.uk/~oliphant/glmame
+
+ This code may be used and distributed under the terms of the
+ Mame license
+
+*****************************************************************/
+/* pretend we're x11.c otherwise display and a few other crucial things don't
+ get declared */
+#define __X11_C_
+#define __XOPENGL_C_
+
+#define RRand(range) (random()%range)
+
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#include <windowsx.h>
+#include <assert.h>
+#include <string.h>
+#include <excpt.h>
+#include "common.h"
+#include "usrintrf.h"
+#include "osdepend.h"
+#include "mame.h"
+#include "driver.h"
+#include "MAME32.h"
+#include "Display.h"
+#include "Sound.h"
+#include "Keyboard.h"
+#include "Joystick.h"
+#include "Trak.h"
+#include "resource.h"
+#include "M32Util.h"
+
+#include "wgl.h"
+
+/*
+#ifndef NOSEAL
+#include "SealSound.h" /* For sound devices.
+#endif
+*/
+
+struct GameOptions mame_options;
+static void MamePlayGame();
+static int page_index;
+static game_data_type* game_data;
+static int game_count;
+
+static int last_sort = 0;
+
+/* global data--know where to send messages */
+static BOOL in_emulation;
+
+/* quit after game */
+static BOOL quit;
+
+/* idle work at startup */
+static BOOL idle_work;
+static int game_index;
+
+int winwidth=640;
+int winheight=480;
+float fxgamma=1.0;
+
+static HDC thisWin;
+static HWND thisHwnd;
+/*
+static wglWnd thisCwnd;
+*/
+static HGLRC cx;
+
+static int fx=0;
+static int fxwin=0;
+extern int screendirty;
+extern int doublebuffer;
+extern int dodepth;
+
+/***************************************************************************
+ Function prototypes
+ ***************************************************************************/
+
+static LRESULT CALLBACK MAME32_MessageProc(HWND, UINT, WPARAM, LPARAM);
+static HWND MAME32_CreateWindow(void);
+static void MAME32_ProcessMessages(void);
+static BOOL MAME32_PumpAndReturnMessage(MSG* pMsg);
+static void MAME32_Quit(void);
+static BOOL OnMessage(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, LRESULT* pResult);
+static void OnActivateApp(HWND hWnd, BOOL fActivate, DWORD dwThreadId);
+static void OnSysCommand(HWND hWnd, UINT cmd, int x, int y);
+static void OnClose(HWND hWnd);
+
+/***************************************************************************
+ External variables
+ ***************************************************************************/
+
+/*
+struct tMAME32App MAME32App =
+{
+ { NULL }, /* m_hwndUI
+ { NULL }, /* m_hWnd
+ { "MAME32" }, /* m_pName
+ { FALSE }, /* m_bIsInitialized
+ { FALSE }, /* m_bIsActive
+ { FALSE }, /* m_bPaused
+ { FALSE }, /* m_bMMXDetected
+ { FALSE }, /* m_bUseAIMouse
+ { NULL }, /* m_pDisplay
+ { NULL }, /* m_pSound
+ { NULL }, /* m_pKeyboard
+ { NULL }, /* m_pJoystick
+ { NULL }, /* m_pTrak
+ { NULL }, /* m_pFMSynth
+
+ { MAME32_CreateWindow }, /* CreateMAMEWindow
+ { MAME32_ProcessMessages }, /* ProcessMessages
+ { MAME32_PumpAndReturnMessage }, /* PumpAndReturnMessage
+ { MAME32_Quit }, /* Quit
+ { NULL } /* detect MMX
+};
+*/
+
+/***************************************************************************
+ Internal structures
+ ***************************************************************************/
+
+/***************************************************************************
+ Internal variables
+ ***************************************************************************/
+
+static BOOL auto_pause;
+
+/***************************************************************************
+ External functions
+ ***************************************************************************/
+
+/*
+void MAME32App_init(options_type *options)
+{
+ MAME32App.m_hWnd = NULL;
+
+ MAME32App.m_bIsInitialized = FALSE;
+ MAME32App.m_bIsActive = FALSE;
+ MAME32App.m_bIsPaused = FALSE;
+
+ MAME32App.m_pDisplay = NULL;
+ MAME32App.m_pSound = NULL;
+ MAME32App.m_pKeyboard = NULL;
+ MAME32App.m_pJoystick = NULL;
+ MAME32App.m_pTrak = NULL;
+ MAME32App.m_pFMSynth = NULL;
+
+ auto_pause = options->auto_pause;
+
+ /*
+ Machine->scrbitmap is not initialized in the mame source
+ until after the call to osd_create_display().
+ This causes a problem if osd_create_display() detects an error,
+ then shows the error message box, which causes focus to change,
+ which causes OnPause() to be called, which uses Machine->scrbitmap.
+ Whew. So it needs to be set to NULL so it doesn't crash in OnPause().
+ /
+ Machine->scrbitmap = NULL;
+}
+*/
+
+
+
+/***************************************************************************
+ Internal OPENGL functions
+ ***************************************************************************/
+
+// Color Palette handle
+HPALETTE hPalette = NULL;
+// Set Pixel Format function - forward declaration
+void SetDCPixelFormat(HDC hDC);
+HPALETTE GetOpenGLPalette(HDC hDC);
+HGLRC tempRC;
+
+static HGLRC get_GC( HDC hDC )
+{
+ if( hDC == 0 )
+ return 0; /* printf( "get_GC: Error, HDC is zero\n"); */
+
+ // Select the pixel format
+ SetDCPixelFormat(hDC);
+
+ // Create palette if needed
+ hPalette = GetOpenGLPalette(hDC);
+
+ tempRC = wglCreateContext( hDC );
+
+ /* check if the context could be created */
+ if( tempRC == NULL ) {
+ /* fprintf(stderr, "getGC context could NOT be created \n"); */
+ return( 0 );
+ }
+
+ /* associated the context with the X window */
+ if( wglMakeCurrent( hDC, tempRC ) == FALSE) {
+ wglDeleteContext( tempRC );
+ return( 0 );
+ }
+
+ return tempRC;
+}
+
+// Select the pixel format for a given device context
+void SetDCPixelFormat(HDC hDC)
+{
+ int nPixelFormat=0;
+
+ static PIXELFORMATDESCRIPTOR pfd = {
+ sizeof(PIXELFORMATDESCRIPTOR), // Size of this structure
+ 1, // Version of this structure
+ PFD_DRAW_TO_WINDOW | // Draw to Window (not to bitmap)
+ PFD_SUPPORT_OPENGL | // Support OpenGL calls in window
+ PFD_DOUBLEBUFFER, // Double buffered
+ PFD_TYPE_RGBA, // RGBA Color mode
+ 24, // Want 24bit color
+ 0,0,0,0,0,0, // Not used to select mode
+ 0,0, // Not used to select mode
+ 0,0,0,0,0, // Not used to select mode
+ 32, // Size of depth buffer
+ 0, // Not used to select mode
+ 0, // Not used to select mode
+ PFD_MAIN_PLANE, // Draw in main plane
+ 0, // Not used to select mode
+ 0,0,0 }; // Not used to select mode
+
+ // Choose a pixel format that best matches that described in pfd
+ nPixelFormat = ChoosePixelFormat(hDC, &pfd);
+
+ // Set the pixel format for the device context
+ if(SetPixelFormat(hDC, nPixelFormat, &pfd)==FALSE)
+ MessageBox(thisHwnd, "could not set PixelFormat", "ERROR",
+ MB_OK|MB_ICONERROR);
+
+}
+
+
+// If necessary, creates a 3-3-2 palette for the device context listed.
+HPALETTE GetOpenGLPalette(HDC hDC)
+{
+ HPALETTE hRetPal = NULL; // Handle to palette to be created
+ PIXELFORMATDESCRIPTOR pfd; // Pixel Format Descriptor
+ LOGPALETTE *pPal; // Pointer to memory for logical palette
+ int nPixelFormat; // Pixel format index
+ int nColors; // Number of entries in palette
+ int i; // Counting variable
+ BYTE RedRange,GreenRange,BlueRange;
+ // Range for each color entry (7,7,and 3)
+
+
+ // Get the pixel format index and retrieve the pixel format description
+ nPixelFormat = GetPixelFormat(hDC);
+ DescribePixelFormat(hDC, nPixelFormat, sizeof(PIXELFORMATDESCRIPTOR), &pfd);
+
+ // Does this pixel format require a palette? If not, do not create a
+ // palette and just return NULL
+ if(!(pfd.dwFlags & PFD_NEED_PALETTE))
+ return NULL;
+
+ // Number of entries in palette. 8 bits yeilds 256 entries
+ nColors = 1 << pfd.cColorBits;
+
+ // Allocate space for a logical palette structure plus all the palette entries
+ pPal = (LOGPALETTE*)malloc(sizeof(LOGPALETTE) + nColors*sizeof(PALETTEENTRY));
+
+ // Fill in palette header
+ pPal->palVersion = 0x300; // Windows 3.0
+ pPal->palNumEntries = nColors; // table size
+
+ // Build mask of all 1's. This creates a number represented by having
+ // the low order x bits set, where x = pfd.cRedBits, pfd.cGreenBits, and
+ // pfd.cBlueBits.
+ RedRange = (1 << pfd.cRedBits) -1;
+ GreenRange = (1 << pfd.cGreenBits) - 1;
+ BlueRange = (1 << pfd.cBlueBits) -1;
+
+ // Loop through all the palette entries
+ for(i = 0; i < nColors; i++)
+ {
+ // Fill in the 8-bit equivalents for each component
+ pPal->palPalEntry[i].peRed = (i >> pfd.cRedShift) & RedRange;
+ pPal->palPalEntry[i].peRed = (unsigned char)(
+ (double) pPal->palPalEntry[i].peRed * 255.0 / RedRange);
+
+ pPal->palPalEntry[i].peGreen = (i >> pfd.cGreenShift) & GreenRange;
+ pPal->palPalEntry[i].peGreen = (unsigned char)(
+ (double)pPal->palPalEntry[i].peGreen * 255.0 / GreenRange);
+
+ pPal->palPalEntry[i].peBlue = (i >> pfd.cBlueShift) & BlueRange;
+ pPal->palPalEntry[i].peBlue = (unsigned char)(
+ (double)pPal->palPalEntry[i].peBlue * 255.0 / BlueRange);
+
+ pPal->palPalEntry[i].peFlags = (unsigned char) NULL;
+ }
+
+
+ // Create the palette
+ hRetPal = CreatePalette(pPal);
+
+ // Go ahead and select and realize the palette for this device context
+ SelectPalette(hDC,hRetPal,FALSE);
+ RealizePalette(hDC);
+
+ // Free the memory used for the logical palette structure
+ free(pPal);
+
+ // Return the handle to the new palette
+ return hRetPal;
+}
+
+
+/***************************************************************************
+ Internal functions
+ ***************************************************************************/
+
+/* Create display */
+
+static BOOL Win32UI_init(HINSTANCE hInstance, LPSTR lpCmdLine, int nCmdShow)
+{
+ static BOOL bRegistered = FALSE;
+
+ if (bRegistered == FALSE)
+ {
+ WNDCLASS WndClass;
+
+ WndClass.style = CS_SAVEBITS | CS_BYTEALIGNCLIENT | CS_OWNDC;
+ WndClass.lpfnWndProc = MAME32_MessageProc;
+ WndClass.cbClsExtra = 0;
+ WndClass.cbWndExtra = 0;
+ WndClass.hInstance = hInstance;
+ WndClass.hIcon = LoadIcon(hInstance, MAKEINTATOM(IDI_MAME32_ICON));
+ WndClass.hCursor = LoadCursor(NULL, IDC_ARROW);
+ WndClass.hbrBackground = (HBRUSH)GetStockObject(NULL_BRUSH);
+ WndClass.lpszMenuName = NULL;
+ WndClass.lpszClassName = (LPCSTR)"classMAME32";
+
+ if (RegisterClass(&WndClass) == 0)
+ return FALSE;
+ bRegistered = TRUE;
+ }
+
+ thisHwnd = CreateWindowEx(0,
+ "classMAME32",
+ "WGLMAME" ,
+ WS_OVERLAPPEDWINDOW & ~WS_THICKFRAME | WS_BORDER,
+ CW_USEDEFAULT,
+ CW_USEDEFAULT,
+ 640, 480,
+ NULL,
+ NULL,
+ hInstance,
+ NULL);
+
+ ShowWindow(thisHwnd, nCmdShow);
+
+ /* thisCwnd.attach(thisHwnd); */
+ thisWin = GetDC(thisHwnd);
+
+ wglMakeCurrent(NULL, NULL);
+
+ /* get the graphics context for this widget */
+ if( (cx = get_GC( thisWin )) == 0 )
+ {
+ MessageBox(thisHwnd, "could not create GLContext", "ERROR",
+ MB_OK|MB_ICONERROR);
+
+ } else {
+ MessageBox(thisHwnd, "could create GLContext", "OK", MB_OK);
+ }
+
+ SetFocus(thisHwnd);
+
+ return thisHwnd!=NULL;
+}
+
+static LRESULT CALLBACK MAME32_MessageProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
+{
+ LRESULT Result = 0;
+ HDC hdc = 0;
+
+ switch(Msg)
+ {
+ case WM_DESTROY:
+ PostQuitMessage(0);
+ return 0L;
+
+ case WM_QUIT:
+ OnClose(thisHwnd);
+ return 0;
+
+ case WM_PAINT:
+ hdc = (HDC) wParam;
+ return DefWindowProc(hWnd, Msg, wParam, lParam);
+ }
+ return DefWindowProc(hWnd, Msg, wParam, lParam);
+}
+
+
+static void OnClose(HWND hWnd)
+{
+ /* Don't call DestroyWindow, it will be called by osd_exit. */
+ wglMakeCurrent(NULL, NULL);
+ DestroyWindow(thisHwnd);
+}
+
+
+static BOOL idle_work;
+
+
+int WINAPI WinMain(HINSTANCE hInstance,
+ HINSTANCE hPrevInstance,
+ LPSTR lpCmdLine,
+ int nCmdShow)
+{
+ MSG msg;
+
+ if (!Win32UI_init(hInstance, lpCmdLine, nCmdShow))
+ {
+ MessageBox(thisHwnd, "could not create window ...", "ERROR",
+ MB_OK|MB_ICONERROR);
+ OnClose(thisHwnd);
+ return 1;
+ }
+
+ /* Set the samplerate to 0 if sound is disabled,
+ this should notify mame not to "render" it (speed improvement) */
+ Machine->sample_rate = 0;
+ mame_options.samplerate = 0;
+
+ /*
+ Simplified MFC Run() alg. See mfc/src/thrdcore.cpp.
+ */
+ /* phase2: pump messages while available */
+ while (GetMessage(&msg, NULL, 0, 0))
+ {
+ TranslateMessage(&msg);
+ DispatchMessage(&msg);
+ }
+
+ return 0;
+}
+
+
+void MamePlayGame()
+{
+ char buf[1000];
+ int index = 0;
+
+ if (run_game(index ,&mame_options) != 0)
+ {
+ const struct RomModule *romp = drivers[index]->rom;
+
+ /* This needs to be changed to use a window with a scrollbar
+ * because the list can be too large to fit on the screen.
+ */
+ sprintf(buf, "Unable to initialize machine emulation.\r\n\r\n"
+ "Most likely you have a corrupt ROM file.\r\n"
+ "The following files must exist in the specified\r\n"
+ "directory or .zip file for %s to run.\r\n\r\n",
+ drivers[index]->description);
+
+ sprintf(buf + strlen(buf), "Directory:\r\n");
+ GetCurrentDirectory(sizeof(buf) - strlen(buf), buf + strlen(buf));
+ sprintf(buf + strlen(buf), "\\%s\r\n\r\n", drivers[index]->name);
+ sprintf(buf + strlen(buf), "or .zip file:\r\n");
+ GetCurrentDirectory(sizeof(buf) - strlen(buf), buf + strlen(buf));
+ sprintf(buf + strlen(buf), "\\roms\\%s.zip\r\n\r\n", drivers[index]->name);
+
+ sprintf(buf + strlen(buf), "Files:\r\n");
+ while (romp->name || romp->offset || romp->length)
+ {
+ romp++; /* skip memory region definition */
+
+ while (romp->length)
+ {
+ char name[100];
+ int length;
+
+ sprintf(name, romp->name, drivers[index]->name);
+
+ length = 0;
+
+ do
+ {
+ /* ROM_RELOAD */
+ if (romp->name == (char *)-1)
+ length = 0; /* restart */
+
+ length += romp->length & ~0x80000000;
+
+ romp++;
+ } while (romp->length && (romp->name == 0 || romp->name == (char *)-1));
+
+ sprintf(buf + strlen(buf), "%-12s\t%u bytes\n", name, length);
+ }
+ }
+
+ MessageBox(thisHwnd, buf, "MAME32 Error", MB_OK | MB_ICONERROR);
+ }
+
+ in_emulation = FALSE;
+
+ if (quit)
+ {
+ PostMessage(thisHwnd, WM_CLOSE, 0, 0);
+ return;
+ }
+
+}
diff --git a/demos/natives/wgl.h b/demos/natives/wgl.h
new file mode 100644
index 0000000..5ebe096
--- /dev/null
+++ b/demos/natives/wgl.h
@@ -0,0 +1,81 @@
+/***************************************************************************
+
+ M.A.M.E.32 - Multiple Arcade Machine Emulator for Win32
+ Win32 Portions Copyright (C) 1997-98 Michael Soderstrom and Chris Kirmse
+
+ This file is part of MAME32, and may only be used, modified and
+ distributed under the terms of the MAME license, in "readme.txt".
+ By continuing to use, modify or distribute this file you indicate
+ that you have read the license and understand and accept it fully.
+
+ ***************************************************************************/
+
+#ifndef __MAME32_H__
+#define __MAME32_H__
+
+#include <math.h>
+/*JAU #include <X11/cursorfont.h> */
+#include <windows.h>
+#include <GL/gl.h>
+#include <GL/glu.h>
+#include <wingdi.h>
+
+
+#define HANDLE_MESSAGE(hwnd, message, fn) \
+ case (message): \
+ { \
+ *pResult = HANDLE_##message((hwnd), (wParam), (lParam), (fn)); \
+ return TRUE; \
+ }
+
+#define PEEK_MESSAGE(hwnd, message, fn) \
+ case (message): \
+ { \
+ *pResult = HANDLE_##message((hwnd), (wParam), (lParam), (fn)); \
+ return FALSE; \
+ }
+
+/*
+struct tMAME32App
+{
+ HWND m_hwndUI;
+ HWND m_hWnd;
+ const char* m_Name;
+
+ BOOL m_bIsInitialized;
+ BOOL m_bIsActive;
+ BOOL m_bIsPaused;
+
+ BOOL m_bMMXDetected;
+
+ TRUE if using m_pTrak for standard analog inputs,
+ FALSE if using m_pJoystick for standard analog inputs.
+ BOOL m_bUseAIMouse;
+
+ struct OSDDisplay* m_pDisplay;
+ struct OSDSound* m_pSound;
+ struct OSDKeyboard* m_pKeyboard;
+ struct OSDJoystick* m_pJoystick;
+ struct OSDTrak* m_pTrak;
+
+ struct OSDFMSynth* m_pFMSynth;
+
+ HWND (*CreateMAMEWindow)(void);
+ void (*ProcessMessages)(void);
+ BOOL (*PumpAndReturnMessage)(MSG* pMsg);
+ void (*Quit)(void);
+ BOOL (*DetectMMX)(void);
+};
+
+extern struct tMAME32App MAME32App;
+
+*/
+
+/*
+class wglWnd : CWnd
+{
+}
+*/
+
+
+#endif
diff --git a/demos/natives/x11/cube.c b/demos/natives/x11/cube.c
new file mode 100644
index 0000000..6f2fd57
--- /dev/null
+++ b/demos/natives/x11/cube.c
@@ -0,0 +1,95 @@
+
+/* Copyright (c) Mark J. Kilgard, 1997. */
+
+/* This program is freely distributable without licensing fees
+ and is provided without guarantee or warrantee expressed or
+ implied. This program is -not- in the public domain. */
+
+/* This program was requested by Patrick Earl; hopefully someone else
+ will write the equivalent Direct3D immediate mode program. */
+
+#include <GL/glut.h>
+
+GLfloat light_diffuse[] = {1.0, 0.0, 0.0, 1.0}; /* Red diffuse light. */
+GLfloat light_position[] = {1.0, 1.0, 1.0, 0.0}; /* Infinite light location. */
+GLfloat n[6][3] = { /* Normals for the 6 faces of a cube. */
+ {-1.0, 0.0, 0.0}, {0.0, 1.0, 0.0}, {1.0, 0.0, 0.0},
+ {0.0, -1.0, 0.0}, {0.0, 0.0, 1.0}, {0.0, 0.0, -1.0} };
+GLint faces[6][4] = { /* Vertex indices for the 6 faces of a cube. */
+ {0, 1, 2, 3}, {3, 2, 6, 7}, {7, 6, 5, 4},
+ {4, 5, 1, 0}, {5, 6, 2, 1}, {7, 4, 0, 3} };
+GLfloat v[8][3]; /* Will be filled in with X,Y,Z vertexes. */
+
+void
+drawBox(void)
+{
+ int i;
+
+ for (i = 0; i < 6; i++) {
+ glBegin(GL_QUADS);
+ glNormal3fv(&n[i][0]);
+ glVertex3fv(&v[faces[i][0]][0]);
+ glVertex3fv(&v[faces[i][1]][0]);
+ glVertex3fv(&v[faces[i][2]][0]);
+ glVertex3fv(&v[faces[i][3]][0]);
+ glEnd();
+ }
+}
+
+void
+display(void)
+{
+ glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ drawBox();
+ glutSwapBuffers();
+}
+
+void
+init(void)
+{
+ /* Setup cube vertex data. */
+ v[0][0] = v[1][0] = v[2][0] = v[3][0] = -1;
+ v[4][0] = v[5][0] = v[6][0] = v[7][0] = 1;
+ v[0][1] = v[1][1] = v[4][1] = v[5][1] = -1;
+ v[2][1] = v[3][1] = v[6][1] = v[7][1] = 1;
+ v[0][2] = v[3][2] = v[4][2] = v[7][2] = 1;
+ v[1][2] = v[2][2] = v[5][2] = v[6][2] = -1;
+
+ /* Enable a single OpenGL light. */
+ glLightfv(GL_LIGHT0, GL_DIFFUSE, light_diffuse);
+ glLightfv(GL_LIGHT0, GL_POSITION, light_position);
+ glEnable(GL_LIGHT0);
+ glEnable(GL_LIGHTING);
+
+ glClearColor( 0.3f, 0.3f, 5.0f, 1.0f );
+
+ /* Use depth buffering for hidden surface elimination. */
+ glEnable(GL_DEPTH_TEST);
+
+ /* Setup the view of the cube. */
+ glMatrixMode(GL_PROJECTION);
+ gluPerspective( /* field of view in degree */ 40.0,
+ /* aspect ratio */ 1.0,
+ /* Z near */ 1.0, /* Z far */ 10.0);
+ glMatrixMode(GL_MODELVIEW);
+ gluLookAt(0.0, 0.0, 5.0, /* eye is at (0,0,5) */
+ 0.0, 0.0, 0.0, /* center is at (0,0,0) */
+ 0.0, 1.0, 0.); /* up is in positive Y direction */
+
+ /* Adjust cube position to be asthetic angle. */
+ glTranslatef(0.0, 0.0, -1.0);
+ glRotatef(60, 1.0, 0.0, 0.0);
+ glRotatef(-20, 0.0, 0.0, 1.0);
+}
+
+int
+main(int argc, char **argv)
+{
+ glutInit(&argc, argv);
+ glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
+ glutCreateWindow("red 3D lighted cube");
+ glutDisplayFunc(display);
+ init();
+ glutMainLoop();
+ return 0; /* ANSI C requires main to return int. */
+}
diff --git a/demos/natives/x11/gears.c b/demos/natives/x11/gears.c
new file mode 100644
index 0000000..f1812ae
--- /dev/null
+++ b/demos/natives/x11/gears.c
@@ -0,0 +1,374 @@
+/* $Id$ */
+
+/*
+ * 3-D gear wheels. This program is in the public domain.
+ *
+ * Command line options:
+ * -info print GL implementation information
+ *
+ *
+ * Brian Paul
+ */
+
+/* Conversion to GLUT by Mark J. Kilgard */
+
+/*
+ * $Log$
+ * Revision 1.1 2000/11/18 06:54:01 sven
+ * Initial revision
+ *
+ * Revision 1.2 1999/10/21 16:39:06 brianp
+ * added -info command line option
+ *
+ * Revision 1.1.1.1 1999/08/19 00:55:40 jtg
+ * Imported sources
+ *
+ * Revision 3.2 1999/06/03 17:07:36 brianp
+ * an extra quad was being drawn in front and back faces
+ *
+ * Revision 3.1 1998/11/03 02:49:10 brianp
+ * added fps output
+ *
+ * Revision 3.0 1998/02/14 18:42:29 brianp
+ * initial rev
+ *
+ */
+
+
+#include <math.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <GL/glut.h>
+
+#ifndef M_PI
+#define M_PI 3.14159265
+#endif
+
+static GLint T0 = 0;
+static GLint Frames = 0;
+
+
+/**
+
+ Draw a gear wheel. You'll probably want to call this function when
+ building a display list since we do a lot of trig here.
+
+ Input: inner_radius - radius of hole at center
+ outer_radius - radius at center of teeth
+ width - width of gear
+ teeth - number of teeth
+ tooth_depth - depth of tooth
+
+ **/
+
+static void
+gear(GLfloat inner_radius, GLfloat outer_radius, GLfloat width,
+ GLint teeth, GLfloat tooth_depth)
+{
+ GLint i;
+ GLfloat r0, r1, r2;
+ GLfloat angle, da;
+ GLfloat u, v, len;
+
+ r0 = inner_radius;
+ r1 = outer_radius - tooth_depth / 2.0;
+ r2 = outer_radius + tooth_depth / 2.0;
+
+ da = 2.0 * M_PI / teeth / 4.0;
+
+ glShadeModel(GL_FLAT);
+
+ glNormal3f(0.0, 0.0, 1.0);
+
+ /* draw front face */
+ glBegin(GL_QUAD_STRIP);
+ for (i = 0; i <= teeth; i++) {
+ angle = i * 2.0 * M_PI / teeth;
+ glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5);
+ glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5);
+ if (i < teeth) {
+ glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5);
+ glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), width * 0.5);
+ }
+ }
+ glEnd();
+
+ /* draw front sides of teeth */
+ glBegin(GL_QUADS);
+ da = 2.0 * M_PI / teeth / 4.0;
+ for (i = 0; i < teeth; i++) {
+ angle = i * 2.0 * M_PI / teeth;
+
+ glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5);
+ glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), width * 0.5);
+ glVertex3f(r2 * cos(angle + 2 * da), r2 * sin(angle + 2 * da), width * 0.5);
+ glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), width * 0.5);
+ }
+ glEnd();
+
+ glNormal3f(0.0, 0.0, -1.0);
+
+ /* draw back face */
+ glBegin(GL_QUAD_STRIP);
+ for (i = 0; i <= teeth; i++) {
+ angle = i * 2.0 * M_PI / teeth;
+ glVertex3f(r1 * cos(angle), r1 * sin(angle), -width * 0.5);
+ glVertex3f(r0 * cos(angle), r0 * sin(angle), -width * 0.5);
+ if (i < teeth) {
+ glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), -width * 0.5);
+ glVertex3f(r0 * cos(angle), r0 * sin(angle), -width * 0.5);
+ }
+ }
+ glEnd();
+
+ /* draw back sides of teeth */
+ glBegin(GL_QUADS);
+ da = 2.0 * M_PI / teeth / 4.0;
+ for (i = 0; i < teeth; i++) {
+ angle = i * 2.0 * M_PI / teeth;
+
+ glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), -width * 0.5);
+ glVertex3f(r2 * cos(angle + 2 * da), r2 * sin(angle + 2 * da), -width * 0.5);
+ glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), -width * 0.5);
+ glVertex3f(r1 * cos(angle), r1 * sin(angle), -width * 0.5);
+ }
+ glEnd();
+
+ /* draw outward faces of teeth */
+ glBegin(GL_QUAD_STRIP);
+ for (i = 0; i < teeth; i++) {
+ angle = i * 2.0 * M_PI / teeth;
+
+ glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5);
+ glVertex3f(r1 * cos(angle), r1 * sin(angle), -width * 0.5);
+ u = r2 * cos(angle + da) - r1 * cos(angle);
+ v = r2 * sin(angle + da) - r1 * sin(angle);
+ len = sqrt(u * u + v * v);
+ u /= len;
+ v /= len;
+ glNormal3f(v, -u, 0.0);
+ glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), width * 0.5);
+ glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), -width * 0.5);
+ glNormal3f(cos(angle), sin(angle), 0.0);
+ glVertex3f(r2 * cos(angle + 2 * da), r2 * sin(angle + 2 * da), width * 0.5);
+ glVertex3f(r2 * cos(angle + 2 * da), r2 * sin(angle + 2 * da), -width * 0.5);
+ u = r1 * cos(angle + 3 * da) - r2 * cos(angle + 2 * da);
+ v = r1 * sin(angle + 3 * da) - r2 * sin(angle + 2 * da);
+ glNormal3f(v, -u, 0.0);
+ glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), width * 0.5);
+ glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), -width * 0.5);
+ glNormal3f(cos(angle), sin(angle), 0.0);
+ }
+
+ glVertex3f(r1 * cos(0), r1 * sin(0), width * 0.5);
+ glVertex3f(r1 * cos(0), r1 * sin(0), -width * 0.5);
+
+ glEnd();
+
+ glShadeModel(GL_SMOOTH);
+
+ /* draw inside radius cylinder */
+ glBegin(GL_QUAD_STRIP);
+ for (i = 0; i <= teeth; i++) {
+ angle = i * 2.0 * M_PI / teeth;
+ glNormal3f(-cos(angle), -sin(angle), 0.0);
+ glVertex3f(r0 * cos(angle), r0 * sin(angle), -width * 0.5);
+ glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5);
+ }
+ glEnd();
+
+}
+
+static GLfloat view_rotx = 20.0, view_roty = 30.0, view_rotz = 0.0;
+static GLint gear1, gear2, gear3;
+static GLfloat angle = 0.0;
+
+static void
+draw(void)
+{
+ glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ glPushMatrix();
+ glRotatef(view_rotx, 1.0, 0.0, 0.0);
+ glRotatef(view_roty, 0.0, 1.0, 0.0);
+ glRotatef(view_rotz, 0.0, 0.0, 1.0);
+
+ glPushMatrix();
+ glTranslatef(-3.0, -2.0, 0.0);
+ glRotatef(angle, 0.0, 0.0, 1.0);
+ glCallList(gear1);
+ glPopMatrix();
+
+ glPushMatrix();
+ glTranslatef(3.1, -2.0, 0.0);
+ glRotatef(-2.0 * angle - 9.0, 0.0, 0.0, 1.0);
+ glCallList(gear2);
+ glPopMatrix();
+
+ glPushMatrix();
+ glTranslatef(-3.1, 4.2, 0.0);
+ glRotatef(-2.0 * angle - 25.0, 0.0, 0.0, 1.0);
+ glCallList(gear3);
+ glPopMatrix();
+
+ glPopMatrix();
+
+ glutSwapBuffers();
+
+ Frames++;
+ {
+ GLint t = glutGet(GLUT_ELAPSED_TIME);
+ if (t - T0 >= 5000) {
+ GLfloat seconds = (t - T0) / 1000.0;
+ GLfloat fps = Frames / seconds;
+ printf("%d frames in %g seconds = %g FPS\n", Frames, seconds, fps);
+ T0 = t;
+ Frames = 0;
+ }
+ }
+}
+
+
+static void
+idle(void)
+{
+ angle += 2.0;
+ glutPostRedisplay();
+}
+
+/* change view angle, exit upon ESC */
+/* ARGSUSED1 */
+static void
+key(unsigned char k, int x, int y)
+{
+ switch (k) {
+ case 'z':
+ view_rotz += 5.0;
+ break;
+ case 'Z':
+ view_rotz -= 5.0;
+ break;
+ case 27: /* Escape */
+ exit(0);
+ break;
+ default:
+ return;
+ }
+ glutPostRedisplay();
+}
+
+/* change view angle */
+/* ARGSUSED1 */
+static void
+special(int k, int x, int y)
+{
+ switch (k) {
+ case GLUT_KEY_UP:
+ view_rotx += 5.0;
+ break;
+ case GLUT_KEY_DOWN:
+ view_rotx -= 5.0;
+ break;
+ case GLUT_KEY_LEFT:
+ view_roty += 5.0;
+ break;
+ case GLUT_KEY_RIGHT:
+ view_roty -= 5.0;
+ break;
+ default:
+ return;
+ }
+ glutPostRedisplay();
+}
+
+/* new window size or exposure */
+static void
+reshape(int width, int height)
+{
+ GLfloat h = (GLfloat) height / (GLfloat) width;
+
+ glViewport(0, 0, (GLint) width, (GLint) height);
+ glMatrixMode(GL_PROJECTION);
+ glLoadIdentity();
+ glFrustum(-1.0, 1.0, -h, h, 5.0, 60.0);
+ glMatrixMode(GL_MODELVIEW);
+ glLoadIdentity();
+ glTranslatef(0.0, 0.0, -40.0);
+}
+
+static void
+init(int argc, char *argv[])
+{
+ static GLfloat pos[4] =
+ {5.0, 5.0, 10.0, 0.0};
+ static GLfloat red[4] =
+ {0.8, 0.1, 0.0, 1.0};
+ static GLfloat green[4] =
+ {0.0, 0.8, 0.2, 1.0};
+ static GLfloat blue[4] =
+ {0.2, 0.2, 1.0, 1.0};
+
+ glLightfv(GL_LIGHT0, GL_POSITION, pos);
+ glEnable(GL_CULL_FACE);
+ glEnable(GL_LIGHTING);
+ glEnable(GL_LIGHT0);
+ glEnable(GL_DEPTH_TEST);
+
+ /* make the gears */
+ gear1 = glGenLists(1);
+ glNewList(gear1, GL_COMPILE);
+ glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, red);
+ gear(1.0, 4.0, 1.0, 20, 0.7);
+ glEndList();
+
+ gear2 = glGenLists(1);
+ glNewList(gear2, GL_COMPILE);
+ glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, green);
+ gear(0.5, 2.0, 2.0, 10, 0.7);
+ glEndList();
+
+ gear3 = glGenLists(1);
+ glNewList(gear3, GL_COMPILE);
+ glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, blue);
+ gear(1.3, 2.0, 0.5, 10, 0.7);
+ glEndList();
+
+ glEnable(GL_NORMALIZE);
+
+ if (argc > 1 && strcmp(argv[1], "-info")==0) {
+ printf("GL_RENDERER = %s\n", (char *) glGetString(GL_RENDERER));
+ printf("GL_VERSION = %s\n", (char *) glGetString(GL_VERSION));
+ printf("GL_VENDOR = %s\n", (char *) glGetString(GL_VENDOR));
+ printf("GL_EXTENSIONS = %s\n", (char *) glGetString(GL_EXTENSIONS));
+ }
+}
+
+void
+visible(int vis)
+{
+ if (vis == GLUT_VISIBLE)
+ glutIdleFunc(idle);
+ else
+ glutIdleFunc(NULL);
+}
+
+int main(int argc, char *argv[])
+{
+ glutInit(&argc, argv);
+ glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE);
+
+ glutInitWindowPosition(0, 0);
+ glutInitWindowSize(300, 300);
+ glutCreateWindow("Gears");
+ init(argc, argv);
+
+ glutDisplayFunc(draw);
+ glutReshapeFunc(reshape);
+ glutKeyboardFunc(key);
+ glutSpecialFunc(special);
+ glutVisibilityFunc(visible);
+
+ glutMainLoop();
+ return 0; /* ANSI C requires main to return int. */
+}
diff --git a/demos/natives/x11/makeGears.sh b/demos/natives/x11/makeGears.sh
new file mode 100755
index 0000000..f7c6f27
--- /dev/null
+++ b/demos/natives/x11/makeGears.sh
@@ -0,0 +1,3 @@
+#! /bin/sh
+gcc -ogears -I/usr/X11R6/include/ gears.c \
+ -lGL -lGLU -lglut -L/usr/X11R6/lib -lm
diff --git a/demos/natives/x11/makefile b/demos/natives/x11/makefile
new file mode 100644
index 0000000..d4e03bb
--- /dev/null
+++ b/demos/natives/x11/makefile
@@ -0,0 +1,30 @@
+#
+# Uses: Linux2.0X-glibc-pthreads-mesa3.0pthreads
+#
+
+CC = cc
+
+CCINCL = -I/usr/local/include -I/usr/X11/include -I/usr/X11R6/include
+CCLIBS = -L/usr/X11R6/lib -L/usr/local/lib -L/usr/X11/lib \
+ -lGL -lGLU -lglut \
+ -lXmu -lXt -lSM -lICE -lXext -lX11 -lXi -lXext -lX11 -lm -lpthread
+
+
+C_APPL_FILES = cube.c olympic.c testGL1.c testGL2.c wave.c
+
+
+.SUFFIXES : .c .o
+
+.c.o:
+ $(CC) -c -o $@ $< $(CCINCL) 2>&1 | tee -a errors
+ $(CC) -o ${@:.o=} $@ $(CCINCL) $(CCLIBS) 2>&1 | tee -a errors
+
+all: ${C_APPL_FILES:.c=.o}
+
+
+clean:
+ rm -f *.o *~ errors
+
+cleanall: clean
+ rm -f ${C_APPL_FILES:.c=}
+
diff --git a/demos/natives/x11/makefile.mesa b/demos/natives/x11/makefile.mesa
new file mode 100644
index 0000000..9068e08
--- /dev/null
+++ b/demos/natives/x11/makefile.mesa
@@ -0,0 +1,30 @@
+#
+# Uses: Linux2.0X-glibc-pthreads-mesa3.0pthreads
+#
+
+CC = cc
+
+CCINCL = -I/usr/local/include -I/usr/local/mesa/include -I/usr/X11R6/include
+CCLIBS = -L/usr/X11R6/lib -L/usr/local/lib -L/usr/local/mesa/lib \
+ -lGL -lGLU -lglut \
+ -lXmu -lXt -lSM -lICE -lXext -lX11 -lXi -lXext -lX11 -lm -lpthread
+
+
+C_APPL_FILES = cube.c olympic.c testGL1.c testGL2.c wave.c
+
+
+.SUFFIXES : .c .o
+
+.c.o:
+ $(CC) -c -o $@ $< $(CCINCL) 2>&1 | tee -a errors
+ $(CC) -o ${@:.o=} $@ $(CCINCL) $(CCLIBS) 2>&1 | tee -a errors
+
+all: ${C_APPL_FILES:.c=.o}
+
+
+clean:
+ rm -f *.o *~ errors
+
+cleanall: clean
+ rm -f ${C_APPL_FILES:.c=}
+
diff --git a/demos/natives/x11/makefile.x11 b/demos/natives/x11/makefile.x11
new file mode 100644
index 0000000..d4e03bb
--- /dev/null
+++ b/demos/natives/x11/makefile.x11
@@ -0,0 +1,30 @@
+#
+# Uses: Linux2.0X-glibc-pthreads-mesa3.0pthreads
+#
+
+CC = cc
+
+CCINCL = -I/usr/local/include -I/usr/X11/include -I/usr/X11R6/include
+CCLIBS = -L/usr/X11R6/lib -L/usr/local/lib -L/usr/X11/lib \
+ -lGL -lGLU -lglut \
+ -lXmu -lXt -lSM -lICE -lXext -lX11 -lXi -lXext -lX11 -lm -lpthread
+
+
+C_APPL_FILES = cube.c olympic.c testGL1.c testGL2.c wave.c
+
+
+.SUFFIXES : .c .o
+
+.c.o:
+ $(CC) -c -o $@ $< $(CCINCL) 2>&1 | tee -a errors
+ $(CC) -o ${@:.o=} $@ $(CCINCL) $(CCLIBS) 2>&1 | tee -a errors
+
+all: ${C_APPL_FILES:.c=.o}
+
+
+clean:
+ rm -f *.o *~ errors
+
+cleanall: clean
+ rm -f ${C_APPL_FILES:.c=}
+
diff --git a/demos/natives/x11/olympic.c b/demos/natives/x11/olympic.c
new file mode 100644
index 0000000..0527d58
--- /dev/null
+++ b/demos/natives/x11/olympic.c
@@ -0,0 +1,409 @@
+
+/* Copyright (c) Mark J. Kilgard, 1994. */
+
+/**
+ * (c) Copyright 1993, 1994, Silicon Graphics, Inc.
+ * ALL RIGHTS RESERVED
+ * Permission to use, copy, modify, and distribute this software for
+ * any purpose and without fee is hereby granted, provided that the above
+ * copyright notice appear in all copies and that both the copyright notice
+ * and this permission notice appear in supporting documentation, and that
+ * the name of Silicon Graphics, Inc. not be used in advertising
+ * or publicity pertaining to distribution of the software without specific,
+ * written prior permission.
+ *
+ * THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
+ * AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
+ * GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
+ * SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
+ * KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
+ * LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
+ * THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN
+ * ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
+ * POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * US Government Users Restricted Rights
+ * Use, duplication, or disclosure by the Government is subject to
+ * restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
+ * (c)(1)(ii) of the Rights in Technical Data and Computer Software
+ * clause at DFARS 252.227-7013 and/or in similar or successor
+ * clauses in the FAR or the DOD or NASA FAR Supplement.
+ * Unpublished-- rights reserved under the copyright laws of the
+ * United States. Contractor/manufacturer is Silicon Graphics,
+ * Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
+ *
+ * OpenGL(TM) is a trademark of Silicon Graphics, Inc.
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <math.h>
+#include <sys/types.h>
+#include <sys/time.h>
+#include <GL/glut.h>
+
+/* Some <math.h> files do not define M_PI... */
+#ifndef M_PI
+#define M_PI 3.141592654
+#endif
+
+extern double drand48(void);
+extern void srand48(long seedval);
+
+#define XSIZE 100
+#define YSIZE 75
+
+#define RINGS 5
+#define BLUERING 0
+#define BLACKRING 1
+#define REDRING 2
+#define YELLOWRING 3
+#define GREENRING 4
+
+#define BACKGROUND 8
+
+enum {
+ BLACK = 0,
+ RED,
+ GREEN,
+ YELLOW,
+ BLUE,
+ MAGENTA,
+ CYAN,
+ WHITE
+};
+
+typedef short Point[2];
+
+GLenum rgb, doubleBuffer, directRender;
+
+unsigned char rgb_colors[RINGS][3];
+int mapped_colors[RINGS];
+float dests[RINGS][3];
+float offsets[RINGS][3];
+float angs[RINGS];
+float rotAxis[RINGS][3];
+int iters[RINGS];
+GLuint theTorus;
+
+void
+FillTorus(float rc, int numc, float rt, int numt)
+{
+ int i, j, k;
+ double s, t;
+ double x, y, z;
+ double pi, twopi;
+
+ pi = M_PI;
+ twopi = 2 * pi;
+
+ for (i = 0; i < numc; i++) {
+ glBegin(GL_QUAD_STRIP);
+ for (j = 0; j <= numt; j++) {
+ for (k = 1; k >= 0; k--) {
+ s = (i + k) % numc + 0.5;
+ t = j % numt;
+
+ x = cos(t * twopi / numt) * cos(s * twopi / numc);
+ y = sin(t * twopi / numt) * cos(s * twopi / numc);
+ z = sin(s * twopi / numc);
+ glNormal3f(x, y, z);
+
+ x = (rt + rc * cos(s * twopi / numc)) * cos(t * twopi / numt);
+ y = (rt + rc * cos(s * twopi / numc)) * sin(t * twopi / numt);
+ z = rc * sin(s * twopi / numc);
+ glVertex3f(x, y, z);
+ }
+ }
+ glEnd();
+ }
+}
+
+float
+Clamp(int iters_left, float t)
+{
+
+ if (iters_left < 3) {
+ return 0.0;
+ }
+ return (iters_left - 2) * t / iters_left;
+}
+
+void
+Idle(void)
+{
+ int i, j;
+ int more = GL_FALSE;
+
+ for (i = 0; i < RINGS; i++) {
+ if (iters[i]) {
+ for (j = 0; j < 3; j++) {
+ offsets[i][j] = Clamp(iters[i], offsets[i][j]);
+ }
+ angs[i] = Clamp(iters[i], angs[i]);
+ iters[i]--;
+ more = GL_TRUE;
+ }
+ }
+ if (more) {
+ glutPostRedisplay();
+ } else {
+ glutIdleFunc(NULL);
+ }
+}
+
+void
+DrawScene(void)
+{
+ int i;
+
+ glPushMatrix();
+
+ glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ gluLookAt(0, 0, 10, 0, 0, 0, 0, 1, 0);
+
+ for (i = 0; i < RINGS; i++) {
+ if (rgb) {
+ glColor3ubv(rgb_colors[i]);
+ } else {
+ glIndexi(mapped_colors[i]);
+ }
+ glPushMatrix();
+ glTranslatef(dests[i][0] + offsets[i][0], dests[i][1] + offsets[i][1],
+ dests[i][2] + offsets[i][2]);
+ glRotatef(angs[i], rotAxis[i][0], rotAxis[i][1], rotAxis[i][2]);
+ glCallList(theTorus);
+ glPopMatrix();
+ }
+
+ glPopMatrix();
+ if (doubleBuffer) {
+ glutSwapBuffers();
+ } else {
+ glFlush();
+ }
+}
+
+float
+MyRand(void)
+{
+ return 10.0 * (drand48() - 0.5);
+}
+
+void
+ReInit(void)
+{
+ int i;
+ float deviation;
+
+ deviation = MyRand() / 2;
+ deviation = deviation * deviation;
+ for (i = 0; i < RINGS; i++) {
+ offsets[i][0] = MyRand();
+ offsets[i][1] = MyRand();
+ offsets[i][2] = MyRand();
+ angs[i] = 260.0 * MyRand();
+ rotAxis[i][0] = MyRand();
+ rotAxis[i][1] = MyRand();
+ rotAxis[i][2] = MyRand();
+ iters[i] = (deviation * MyRand() + 60.0);
+ }
+}
+
+void
+Init(void)
+{
+ int i;
+ float top_y = 1.0;
+ float bottom_y = 0.0;
+ float top_z = 0.15;
+ float bottom_z = 0.69;
+ float spacing = 2.5;
+ static float lmodel_ambient[] =
+ {0.0, 0.0, 0.0, 0.0};
+ static float lmodel_twoside[] =
+ {GL_FALSE};
+ static float lmodel_local[] =
+ {GL_FALSE};
+ static float light0_ambient[] =
+ {0.1, 0.1, 0.1, 1.0};
+ static float light0_diffuse[] =
+ {1.0, 1.0, 1.0, 0.0};
+ static float light0_position[] =
+ {0.8660254, 0.5, 1, 0};
+ static float light0_specular[] =
+ {1.0, 1.0, 1.0, 0.0};
+ static float bevel_mat_ambient[] =
+ {0.0, 0.0, 0.0, 1.0};
+ static float bevel_mat_shininess[] =
+ {40.0};
+ static float bevel_mat_specular[] =
+ {1.0, 1.0, 1.0, 0.0};
+ static float bevel_mat_diffuse[] =
+ {1.0, 0.0, 0.0, 0.0};
+
+ srand48(0x102342);
+ ReInit();
+ for (i = 0; i < RINGS; i++) {
+ rgb_colors[i][0] = rgb_colors[i][1] = rgb_colors[i][2] = 0;
+ }
+ rgb_colors[BLUERING][2] = 255;
+ rgb_colors[REDRING][0] = 255;
+ rgb_colors[GREENRING][1] = 255;
+ rgb_colors[YELLOWRING][0] = 255;
+ rgb_colors[YELLOWRING][1] = 255;
+ mapped_colors[BLUERING] = BLUE;
+ mapped_colors[REDRING] = RED;
+ mapped_colors[GREENRING] = GREEN;
+ mapped_colors[YELLOWRING] = YELLOW;
+ mapped_colors[BLACKRING] = BLACK;
+
+ dests[BLUERING][0] = -spacing;
+ dests[BLUERING][1] = top_y;
+ dests[BLUERING][2] = top_z;
+
+ dests[BLACKRING][0] = 0.0;
+ dests[BLACKRING][1] = top_y;
+ dests[BLACKRING][2] = top_z;
+
+ dests[REDRING][0] = spacing;
+ dests[REDRING][1] = top_y;
+ dests[REDRING][2] = top_z;
+
+ dests[YELLOWRING][0] = -spacing / 2.0;
+ dests[YELLOWRING][1] = bottom_y;
+ dests[YELLOWRING][2] = bottom_z;
+
+ dests[GREENRING][0] = spacing / 2.0;
+ dests[GREENRING][1] = bottom_y;
+ dests[GREENRING][2] = bottom_z;
+
+ theTorus = glGenLists(1);
+ glNewList(theTorus, GL_COMPILE);
+ FillTorus(0.1, 8, 1.0, 25);
+ glEndList();
+
+ glEnable(GL_CULL_FACE);
+ glCullFace(GL_BACK);
+ glEnable(GL_DEPTH_TEST);
+ glClearDepth(1.0);
+
+ if (rgb) {
+ glClearColor(0.5, 0.5, 0.5, 0.0);
+ glLightfv(GL_LIGHT0, GL_AMBIENT, light0_ambient);
+ glLightfv(GL_LIGHT0, GL_DIFFUSE, light0_diffuse);
+ glLightfv(GL_LIGHT0, GL_SPECULAR, light0_specular);
+ glLightfv(GL_LIGHT0, GL_POSITION, light0_position);
+ glEnable(GL_LIGHT0);
+
+ glLightModelfv(GL_LIGHT_MODEL_LOCAL_VIEWER, lmodel_local);
+ glLightModelfv(GL_LIGHT_MODEL_TWO_SIDE, lmodel_twoside);
+ glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);
+ glEnable(GL_LIGHTING);
+
+ glMaterialfv(GL_FRONT, GL_AMBIENT, bevel_mat_ambient);
+ glMaterialfv(GL_FRONT, GL_SHININESS, bevel_mat_shininess);
+ glMaterialfv(GL_FRONT, GL_SPECULAR, bevel_mat_specular);
+ glMaterialfv(GL_FRONT, GL_DIFFUSE, bevel_mat_diffuse);
+
+ glColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE);
+ glEnable(GL_COLOR_MATERIAL);
+ glShadeModel(GL_SMOOTH);
+ } else {
+ glClearIndex(BACKGROUND);
+ glShadeModel(GL_FLAT);
+ }
+
+ glMatrixMode(GL_PROJECTION);
+ gluPerspective(45, 1.33, 0.1, 100.0);
+ glMatrixMode(GL_MODELVIEW);
+}
+
+void
+Reshape(int width, int height)
+{
+ glViewport(0, 0, width, height);
+}
+
+/* ARGSUSED1 */
+void
+Key(unsigned char key, int x, int y)
+{
+
+ switch (key) {
+ case 27:
+ exit(0);
+ break;
+ case ' ':
+ ReInit();
+ glutIdleFunc(Idle);
+ break;
+ }
+}
+
+GLenum
+Args(int argc, char **argv)
+{
+ GLint i;
+
+ rgb = GL_TRUE;
+ doubleBuffer = GL_TRUE;
+
+ for (i = 1; i < argc; i++) {
+ if (strcmp(argv[i], "-ci") == 0) {
+ rgb = GL_FALSE;
+ } else if (strcmp(argv[i], "-rgb") == 0) {
+ rgb = GL_TRUE;
+ } else if (strcmp(argv[i], "-sb") == 0) {
+ doubleBuffer = GL_FALSE;
+ } else if (strcmp(argv[i], "-db") == 0) {
+ doubleBuffer = GL_TRUE;
+ } else {
+ printf("%s (Bad option).\n", argv[i]);
+ return GL_FALSE;
+ }
+ }
+ return GL_TRUE;
+}
+
+void
+visible(int vis)
+{
+ if (vis == GLUT_VISIBLE) {
+ glutIdleFunc(Idle);
+ } else {
+ glutIdleFunc(NULL);
+ }
+}
+
+int
+main(int argc, char **argv)
+{
+ GLenum type;
+
+ glutInitWindowSize(400, 300);
+ glutInit(&argc, argv);
+ if (Args(argc, argv) == GL_FALSE) {
+ exit(1);
+ }
+ type = (rgb) ? GLUT_RGB : GLUT_INDEX;
+ type |= (doubleBuffer) ? GLUT_DOUBLE : GLUT_SINGLE;
+ glutInitDisplayMode(type);
+
+ glutCreateWindow("Olympic");
+
+ Init();
+
+ glutReshapeFunc(Reshape);
+ glutKeyboardFunc(Key);
+ glutDisplayFunc(DrawScene);
+
+ glutVisibilityFunc(visible);
+
+ glutMainLoop();
+ return 0; /* ANSI C requires main to return int. */
+}
diff --git a/demos/natives/x11/testGL1.c b/demos/natives/x11/testGL1.c
new file mode 100644
index 0000000..71f9ab2
--- /dev/null
+++ b/demos/natives/x11/testGL1.c
@@ -0,0 +1,222 @@
+
+
+
+
+#include <stdio.h>
+#include <stdlib.h>
+
+#include <GL/gl.h>
+#include <GL/glut.h>
+
+double width = 250;
+double height = 250;
+double fps = 25.0;
+
+ static float lmodel_twoside[] =
+ {GL_FALSE};
+ static float lmodel_local[] =
+ {GL_FALSE};
+ static float lmodel_ambient[] =
+ {0.0, 0.0, 0.0, 0.0};
+
+void CylinderDraw( )
+{
+ glBegin( GL_TRIANGLE_STRIP );
+ glNormal3f ( 1.0, 0.0, -5.0 );
+ glVertex3f ( 1.0, 0.0, -5.0 );
+ glNormal3f ( 1.0, 0.0, -5.0 );
+ glVertex3f (1.000000, 0.000000, 5.000000);
+ glNormal3f (0.707107, 0.707107, -5.000000);
+ glVertex3f (0.707107, 0.707107, -5.000000);
+ glNormal3f (0.707107, 0.707107, -5.000000);
+ glVertex3f (0.707107, 0.707107, 5.000000);
+ glNormal3f (0.000000, 1.000000, -5.000000);
+ glVertex3f (0.000000, 1.000000, -5.000000);
+ glNormal3f (0.000000, 1.000000, -5.000000);
+ glVertex3f (0.000000, 1.000000, 5.000000);
+ glNormal3f (-0.707107, 0.707107, -5.00000);
+ glVertex3f (-0.707107, 0.707107, -5.00000);
+ glNormal3f (-0.707107, 0.707107, -5.00000);
+ glVertex3f (-0.707107, 0.707107, 5.00000);
+ glNormal3f (-1.000000, 0.000000, -5.000000);
+ glVertex3f (-1.000000, 0.000000, -5.000000);
+ glNormal3f (-1.000000, 0.000000, -5.000000);
+ glVertex3f (-1.000000, 0.000000, 5.00000);
+ glNormal3f (-0.707107, -0.707107, -5.000000);
+ glVertex3f (-0.707107, -0.707107, -5.000000);
+ glNormal3f (-0.707107, -0.707107, -5.000000);
+ glVertex3f (-0.707107, -0.707107, 5.00000);
+ glNormal3f (0.000000, -1.000000, -5.000000);
+ glVertex3f (0.000000, -1.000000, -5.000000);
+ glNormal3f (0.000000, -1.000000, -5.000000);
+ glVertex3f (0.000000, -1.000000, 5.00000);
+ glNormal3f (0.707107, -0.707107, -5.00000);
+ glVertex3f (0.707107, -0.707107, -5.00000);
+ glNormal3f (0.707107, -0.707107, -5.00000);
+ glVertex3f (0.707107, -0.707107, 5.000000);
+ glNormal3f (1.000000, 0.000000, -5.00000);
+ glVertex3f (1.000000, 0.000000, -5.00000);
+ glNormal3f (1.000000, 0.000000, -5.00000);
+ glVertex3f (1.000000, 0.000000, 5.00000);
+ glEnd();
+}
+
+void reshape(int width, int height)
+{
+ double fov = 45.0,
+ aspect = width / height,
+ near_ = 1.0,
+ far_ = 200.0;
+
+ glViewport( 0, 0, width, height );
+
+ glMatrixMode( GL_PROJECTION );
+ glLoadIdentity();
+
+ gluPerspective( fov, aspect, near_, far_ );
+
+ glMatrixMode( GL_MODELVIEW );
+ glLoadIdentity();
+
+}
+
+void display()
+{
+ static int FrameStep = 0;
+
+ glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
+ glPushMatrix();
+ glTranslatef( 0.0, 0.0, -65.0 );
+ glRotatef( 40.0+(2*FrameStep), 0.0, 0.0, 1.0 );
+ glRotatef( 190.0+(2*FrameStep), 0.0, 1.0, 0.0 );
+ glRotatef( 200.0+(FrameStep*2), 1.0, 0.0, 0.0 );
+ glPushMatrix();
+ glScalef( 1.0, 1.0, 10.0 );
+ CylinderDraw( );
+ glPopMatrix();
+ glPushMatrix();
+ glRotatef( 90.0, 0.0, 1.0, 0.0 );
+ glScalef( 1.0, 1.0, 10.0 );
+ CylinderDraw( );
+ glPopMatrix();
+ glPushMatrix();
+ glRotatef( 90.0, 1.0, 0.0, 0.0 );
+ glScalef( 1.0, 1.0, 10.0 );
+ CylinderDraw( );
+ glPopMatrix();
+ glPopMatrix();
+
+ glutSwapBuffers();
+ /* glFlush(); */
+
+ FrameStep++;
+
+ if(FrameStep>100000) FrameStep=0;
+
+}
+
+void init()
+{
+ double fov = 45.0;
+ double aspect = width / height ;
+ double near_ = 1.0;
+ double far_ = 200.0;
+ float lightArr[4];
+ float farr[4];
+
+ /* initialize the widget */
+ glClearColor( 0.8f, 0.8f, 1.0f, 1.0f );
+ glFrontFace( GL_CW );
+ glEnable( GL_DEPTH_TEST );
+
+ glViewport( 0, 0, width, height );
+
+ glMatrixMode( GL_PROJECTION );
+ glLoadIdentity();
+
+ gluPerspective( fov, aspect, near_, far_ );
+
+ /* render three rotated cylinders */
+ glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
+
+ glMatrixMode( GL_MODELVIEW );
+ glLoadIdentity();
+
+ /* enable lighting */
+ lightArr[0] = 1.0f; lightArr[1] = 1.0f;
+ lightArr[2] = 1.0f; lightArr[3] = 1.0f;
+ glLightfv( GL_LIGHT0, GL_DIFFUSE, lightArr );
+ lightArr[0] = 90.0f; lightArr[1] = 90.0f;
+ lightArr[2] = 0.0f; lightArr[3] = 0.0f;
+ glLightfv( GL_LIGHT0, GL_POSITION, lightArr );
+ lightArr[0] = 0.1f; lightArr[1] = 0.1f;
+ lightArr[2] = 0.1f; lightArr[3] = 1.0f;
+ glLightfv( GL_LIGHT0, GL_AMBIENT, lightArr );
+ glEnable( GL_LIGHT0 );
+
+ /*
+ glLightModelfv(GL_LIGHT_MODEL_LOCAL_VIEWER, lmodel_local);
+ glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);
+ */
+ glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, 1);
+ glEnable( GL_LIGHTING );
+
+ /*
+ glLightModelfv(GL_LIGHT_MODEL_LOCAL_VIEWER, lmodel_local);
+ glLightModelfv(GL_LIGHT_MODEL_TWO_SIDE, lmodel_twoside);
+ glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);
+ glEnable( GL_LIGHTING );
+ */
+
+
+ glMaterialf( GL_FRONT, GL_SHININESS, 30.0f );
+
+ farr[0] = 0.0f; farr[1] = 0.0f; farr[2] = 0.0f; farr[3] = 1.0f;
+ glMaterialfv( GL_FRONT, GL_SPECULAR, farr );
+
+ farr[0] = 0.0f; farr[1] = 1.0f; farr[2] = 0.0f; farr[3] = 1.0f;
+ glMaterialfv( GL_FRONT, GL_DIFFUSE, farr );
+
+ glMaterialf( GL_BACK, GL_SHININESS, 50.0f );
+
+ farr[0] = 0.0f; farr[1] = 0.0f; farr[2] = 1.0f; farr[3] = 1.0f;
+ glMaterialfv( GL_BACK, GL_SPECULAR, farr );
+
+ farr[0] = 1.0f; farr[1] = 1.0f; farr[2] = 0.0f; farr[3] = 1.0f;
+ glMaterialfv( GL_BACK, GL_DIFFUSE, farr );
+
+}
+
+void idle()
+{
+ glutPostRedisplay();
+}
+
+int main( int argc, char **argv)
+{
+ fprintf(stderr,"1\n");
+ if(argc>2 && strcmp(argv[1], "-fps")==0)
+ {
+ fprintf(stderr,"2\n");
+ fps = atof(argv[2]);
+ argc-=2;
+ argv+=2;
+ }
+ fprintf(stderr, "Frame Per Secounds %d\n ( will be ignored this time )\n", fps);
+
+ glutInit(&argc, argv);
+ glutInitDisplayMode ( GLUT_DOUBLE
+ | GLUT_DEPTH
+ | GLUT_RGBA
+ );
+ glutInitWindowSize(width,height);
+ glutInitWindowPosition(100,100);
+ glutCreateWindow("OpenGL GLUT/NATIVE");
+ init();
+ glutDisplayFunc(display);
+ glutReshapeFunc(reshape);
+ glutIdleFunc(idle);
+ glutMainLoop();
+ return 0;
+}
+
diff --git a/demos/natives/x11/testGL2.c b/demos/natives/x11/testGL2.c
new file mode 100644
index 0000000..335acc9
--- /dev/null
+++ b/demos/natives/x11/testGL2.c
@@ -0,0 +1,517 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <GL/gl.h>
+#include <GL/glx.h>
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+
+Display *dpy; /* X display connection */
+Window xid; /* X window id */
+GLXContext glid; /* GL window id */
+
+double width = 250;
+double height = 250;
+double fps = 25.0;
+
+ static float lmodel_twoside[] =
+ {GL_FALSE};
+ static float lmodel_local[] =
+ {GL_FALSE};
+ static float lmodel_ambient[] =
+ {0.0, 0.0, 0.0, 0.0};
+
+void CylinderDraw( )
+{
+ glBegin( GL_TRIANGLE_STRIP );
+ glNormal3f ( 1.0, 0.0, -5.0 );
+ glVertex3f ( 1.0, 0.0, -5.0 );
+ glNormal3f ( 1.0, 0.0, -5.0 );
+ glVertex3f (1.000000, 0.000000, 5.000000);
+ glNormal3f (0.707107, 0.707107, -5.000000);
+ glVertex3f (0.707107, 0.707107, -5.000000);
+ glNormal3f (0.707107, 0.707107, -5.000000);
+ glVertex3f (0.707107, 0.707107, 5.000000);
+ glNormal3f (0.000000, 1.000000, -5.000000);
+ glVertex3f (0.000000, 1.000000, -5.000000);
+ glNormal3f (0.000000, 1.000000, -5.000000);
+ glVertex3f (0.000000, 1.000000, 5.000000);
+ glNormal3f (-0.707107, 0.707107, -5.00000);
+ glVertex3f (-0.707107, 0.707107, -5.00000);
+ glNormal3f (-0.707107, 0.707107, -5.00000);
+ glVertex3f (-0.707107, 0.707107, 5.00000);
+ glNormal3f (-1.000000, 0.000000, -5.000000);
+ glVertex3f (-1.000000, 0.000000, -5.000000);
+ glNormal3f (-1.000000, 0.000000, -5.000000);
+ glVertex3f (-1.000000, 0.000000, 5.00000);
+ glNormal3f (-0.707107, -0.707107, -5.000000);
+ glVertex3f (-0.707107, -0.707107, -5.000000);
+ glNormal3f (-0.707107, -0.707107, -5.000000);
+ glVertex3f (-0.707107, -0.707107, 5.00000);
+ glNormal3f (0.000000, -1.000000, -5.000000);
+ glVertex3f (0.000000, -1.000000, -5.000000);
+ glNormal3f (0.000000, -1.000000, -5.000000);
+ glVertex3f (0.000000, -1.000000, 5.00000);
+ glNormal3f (0.707107, -0.707107, -5.00000);
+ glVertex3f (0.707107, -0.707107, -5.00000);
+ glNormal3f (0.707107, -0.707107, -5.00000);
+ glVertex3f (0.707107, -0.707107, 5.000000);
+ glNormal3f (1.000000, 0.000000, -5.00000);
+ glVertex3f (1.000000, 0.000000, -5.00000);
+ glNormal3f (1.000000, 0.000000, -5.00000);
+ glVertex3f (1.000000, 0.000000, 5.00000);
+ glEnd();
+}
+
+void reshape(int width, int height)
+{
+ double fov = 45.0,
+ aspect = width / height,
+ near = 1.0,
+ far = 200.0;
+
+ glViewport( 0, 0, width, height );
+
+ glMatrixMode( GL_PROJECTION );
+ glLoadIdentity();
+
+ gluPerspective( fov, aspect, near, far );
+
+ glMatrixMode( GL_MODELVIEW );
+ glLoadIdentity();
+
+}
+
+void display()
+{
+ static int FrameStep = 0;
+
+ glXWaitGL();
+ glXWaitX();
+ /* associated the context with the X window */
+ if( glXMakeCurrent( dpy, xid, glid ) == False) {
+ glXDestroyContext( display, glid );
+ fprintf(stderr,"(NO GC ASSOC)\n");
+ fflush(stderr);
+ return 1;
+ }
+
+ glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
+ glPushMatrix();
+ glTranslatef( 0.0, 0.0, -65.0 );
+ glRotatef( 40.0+(2*FrameStep), 0.0, 0.0, 1.0 );
+ glRotatef( 190.0+(2*FrameStep), 0.0, 1.0, 0.0 );
+ glRotatef( 200.0+(FrameStep*2), 1.0, 0.0, 0.0 );
+ glPushMatrix();
+ glScalef( 1.0, 1.0, 10.0 );
+ CylinderDraw( );
+ glPopMatrix();
+ glPushMatrix();
+ glRotatef( 90.0, 0.0, 1.0, 0.0 );
+ glScalef( 1.0, 1.0, 10.0 );
+ CylinderDraw( );
+ glPopMatrix();
+ glPushMatrix();
+ glRotatef( 90.0, 1.0, 0.0, 0.0 );
+ glScalef( 1.0, 1.0, 10.0 );
+ CylinderDraw( );
+ glPopMatrix();
+ glPopMatrix();
+
+ glXWaitGL();
+ glXWaitX();
+ glXSwapBuffers(dpy, xid);
+
+ glXWaitGL();
+ glXWaitX();
+ /* associated the context with the X window */
+ if( glXMakeCurrent( dpy, None, NULL ) == False) {
+ glXDestroyContext( display, glid );
+ fprintf(stderr,"(free GC failed)\n");
+ fflush(stderr);
+ return 1;
+ }
+
+ FrameStep++;
+
+ if(FrameStep>100000) FrameStep=0;
+
+}
+
+void init()
+{
+ double fov = 45.0;
+ double aspect = width / height ;
+ double near = 1.0;
+ double far = 200.0;
+ float lightArr[4];
+ float farr[4];
+
+ /* initialize the widget */
+ glClearColor( 0.8f, 0.8f, 1.0f, 1.0f );
+ glFrontFace( GL_CW );
+ glEnable( GL_DEPTH_TEST );
+
+ glViewport( 0, 0, width, height );
+
+ glMatrixMode( GL_PROJECTION );
+ glLoadIdentity();
+
+ gluPerspective( fov, aspect, near, far );
+
+ /* render three rotated cylinders */
+ glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
+
+ glMatrixMode( GL_MODELVIEW );
+ glLoadIdentity();
+
+ /* enable lighting */
+ lightArr[0] = 1.0f; lightArr[1] = 1.0f;
+ lightArr[2] = 1.0f; lightArr[3] = 1.0f;
+ glLightfv( GL_LIGHT0, GL_DIFFUSE, lightArr );
+ lightArr[0] = 90.0f; lightArr[1] = 90.0f;
+ lightArr[2] = 0.0f; lightArr[3] = 0.0f;
+ glLightfv( GL_LIGHT0, GL_POSITION, lightArr );
+ lightArr[0] = 0.1f; lightArr[1] = 0.1f;
+ lightArr[2] = 0.1f; lightArr[3] = 1.0f;
+ glLightfv( GL_LIGHT0, GL_AMBIENT, lightArr );
+ glEnable( GL_LIGHT0 );
+
+ /*
+ glLightModelfv(GL_LIGHT_MODEL_LOCAL_VIEWER, lmodel_local);
+ glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);
+ */
+ glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, 1);
+ glEnable( GL_LIGHTING );
+
+ /*
+ glLightModelfv(GL_LIGHT_MODEL_LOCAL_VIEWER, lmodel_local);
+ glLightModelfv(GL_LIGHT_MODEL_TWO_SIDE, lmodel_twoside);
+ glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);
+ glEnable( GL_LIGHTING );
+ */
+
+
+ glMaterialf( GL_FRONT, GL_SHININESS, 30.0f );
+
+ farr[0] = 0.0f; farr[1] = 0.0f; farr[2] = 0.0f; farr[3] = 1.0f;
+ glMaterialfv( GL_FRONT, GL_SPECULAR, farr );
+
+ farr[0] = 0.0f; farr[1] = 1.0f; farr[2] = 0.0f; farr[3] = 1.0f;
+ glMaterialfv( GL_FRONT, GL_DIFFUSE, farr );
+
+ glMaterialf( GL_BACK, GL_SHININESS, 50.0f );
+
+ farr[0] = 0.0f; farr[1] = 0.0f; farr[2] = 1.0f; farr[3] = 1.0f;
+ glMaterialfv( GL_BACK, GL_SPECULAR, farr );
+
+ farr[0] = 1.0f; farr[1] = 1.0f; farr[2] = 0.0f; farr[3] = 1.0f;
+ glMaterialfv( GL_BACK, GL_DIFFUSE, farr );
+
+}
+
+
+static void GetLargeVisual(Display *dpy, XVisualInfo *bigVisualInfo);
+static XVisualInfo *findVisualGlX( Display *display);
+Window findAWindow( const char *frameName, Display *display, Window window);
+int verbose=1;
+
+main()
+{
+ XWMHints *p_xwmh=NULL;
+ Window xid2;
+ XEvent event;
+ XVisualInfo bigVisualInfo; /* largest pseudo color visual type */
+ XSetWindowAttributes attribs; /* X window attributes structure */
+ Colormap bigColormap; /* 12-bit color map */
+ unsigned long vmask; /* value mask for attributes */
+ int i;
+
+
+ /* Get the X display connection. We'll assume that the DISPLAY
+ * environment variable is "unix:0" since GL windows only run on
+ * on the local display. */
+ if(!(dpy = XOpenDisplay(""))) {
+ printf("\n can't open display connection \n");
+ exit(0);
+ }
+
+ /* GetLargeVisual(dpy, &bigVisualInfo); */
+ bigVisualInfo = * findVisualGlX(dpy);
+ printf("\n address of XVisualInfo structure = 0x%x \n", bigVisualInfo);
+ printf("\n address of Visual structure = 0x%x ", bigVisualInfo.visual);
+ printf("\n visualID = 0x%x ", bigVisualInfo.visualid);
+ printf("\n depth of visual = %d", bigVisualInfo.depth);
+ printf("\n class of visual = %d", bigVisualInfo.class);
+ printf("\n bits_per_rgb of visual = %d", bigVisualInfo.bits_per_rgb);
+ printf("\n colormap_size of visual = %d \n", bigVisualInfo.colormap_size);
+
+ attribs.event_mask =
+ ExposureMask;
+ attribs.border_pixel =
+ BlackPixel(dpy, bigVisualInfo.screen);
+ attribs.colormap =
+ XCreateColormap( dpy,
+ RootWindow( dpy, bigVisualInfo.screen ),
+ bigVisualInfo.visual,
+ AllocNone ) ;
+
+
+ attribs.background_pixel = 0xFFFFFFFF;
+
+ attribs.background_pixel =
+ BlackPixel(dpy, bigVisualInfo.screen);
+
+ attribs.border_pixmap = None;
+ attribs.background_pixmap = None;
+
+ vmask = CWColormap | CWBorderPixmap | CWBackPixmap;
+ vmask = CWEventMask | CWColormap | CWBorderPixel | CWBackPixel;
+
+ xid =
+ XCreateWindow(dpy,
+ RootWindow( dpy, bigVisualInfo.screen ),
+ 0,0, 400, 400,
+ 0,
+ bigVisualInfo.depth,
+ InputOutput, bigVisualInfo.visual,
+ vmask,
+ &attribs);
+
+ /* Name the window, map it, and flush the X buffer. */
+ XStoreName(dpy, xid, "GLWindow");
+ XMapWindow(dpy, xid);
+ XFlush(dpy);
+
+ glid = glXCreateContext( dpy, &bigVisualInfo, None, True );
+
+ /* check if the context could be created */
+ if( glid == NULL ) {
+ fprintf(stderr,"(NO GC)\n");
+ fflush(stderr);
+ return 1;
+ }
+ /* associated the context with the X window */
+ if( glXMakeCurrent( dpy, xid, glid ) == False) {
+ glXDestroyContext( display, glid );
+ fprintf(stderr,"(NO GC ASSOC)\n");
+ fflush(stderr);
+ return 1;
+ }
+
+ XFlush(dpy);
+ XRaiseWindow (dpy, xid);
+
+ xid2 = findAWindow("GLWindow", dpy, RootWindow( dpy, bigVisualInfo.screen ));
+
+ if(xid==xid2)
+ fprintf(stderr,"found win equals created win\n");
+ else
+ fprintf(stderr,"found win ** NOT ** equals created win\n");
+ fflush(stderr);
+
+ if((p_xwmh = XAllocWMHints()) == NULL)
+ {
+ fprintf(stderr,"No Mem for WMHints\n");
+ fflush(stderr);
+ exit(1);
+ }
+ p_xwmh->flags = (InputHint|StateHint);
+ p_xwmh->input = True;
+ p_xwmh->initial_state=NormalState;
+
+ XSetWMHints(dpy, xid, p_xwmh);
+
+ init();
+
+ for(;;)
+ display();
+
+ /* exit */
+ XDestroyWindow(dpy, xid);
+ XCloseDisplay(dpy);
+}
+
+/* ============================================================== */
+/* The following routine draws a constant pitch spiral,
+ * with initial radius r0, pitch p,
+ * nsteps line segments per revolution,
+ * and nrev revolutions */
+
+/* ============================================================== */
+
+void GetLargeVisual(Display *dpy, XVisualInfo *bigVisualInfo)
+{
+ XVisualInfo *visual_info; /* Info. about visual classes */
+ /*
+ * Get all visuals based on these masks
+ */
+ long vinfo_mask = VisualClassMask | VisualScreenMask;
+ XVisualInfo vtemp ; /* template for visuals to look for */
+ int i; /* counter */
+ int nitem ; /* number of visuals returned */
+
+ /*
+ * Get All PseudoColor Visuals
+ */
+ vtemp.class = PseudoColor ; /* Set PseudoColor class */
+ vtemp.screen = DefaultScreen(dpy) ; /* Set screen */
+ /*
+ * Get all visuals of the correct class on the correct screen
+ */
+ visual_info = XGetVisualInfo(dpy, vinfo_mask, &vtemp, &nitem) ;
+ /*
+ * Search for largest visual from all visual classes
+ */
+ *(bigVisualInfo) = *(visual_info);
+
+
+ /* NOTE: on GXT1000 and GXT500 family, winX does not support
+ * overlay window, so careful not to pick up overlay visual
+ * here!
+ */
+
+ for (i=0; i<nitem; i++, visual_info++) {
+ if (visual_info->colormap_size >= bigVisualInfo->colormap_size) {
+ *(bigVisualInfo) = *(visual_info);
+ }
+ }
+ /*
+ * return largest visual
+ */
+ return;
+}
+
+static XVisualInfo *findVisualGlX( Display *display )
+{
+ int visualAttribList[11];
+ XVisualInfo *visual;
+
+ /* Ask GLX for a visual that matches the attributes we want: Single
+ buffered and RGB with at least 4 bits for each component
+ */
+ visualAttribList[0] = GLX_RGBA;
+ visualAttribList[1] = GLX_RED_SIZE;
+ visualAttribList[2] = 1;
+ visualAttribList[3] = GLX_GREEN_SIZE;
+ visualAttribList[4] = 1;
+ visualAttribList[5] = GLX_BLUE_SIZE;
+ visualAttribList[6] = 1;
+ visualAttribList[7] = GLX_DOUBLEBUFFER;
+ visualAttribList[8] = GLX_DEPTH_SIZE;
+ visualAttribList[9] = 1;
+ visualAttribList[10] = None;
+
+ visual = glXChooseVisual( display,
+ DefaultScreen( display ),
+ visualAttribList );
+ fprintf(stderr, "\nused vi(ID:%d): \n screen %d, depth %d, class %d,\n clrmapsz %d, bitsPerRGB %d\n",
+ visual->visualid,
+ visual->screen,
+ visual->depth,
+ visual->class,
+ visual->colormap_size,
+ visual->bits_per_rgb );
+ fflush(stderr);
+
+ return( visual );
+}
+
+Window findAWindow( const char *frameName, Display *display, Window window)
+{
+ /* Variables used to find the correct java Window to render into */
+ Window root, parent, *children;
+ unsigned int numOfChildren;
+ char *buff;
+ int i, status;
+ Window retWindow, lastWindow;
+
+ /* debug helpers */
+ int i1, i2, i3;
+
+ XFlush(display);
+
+ status = XFetchName( display, window, &buff );
+
+ if( status )
+ {
+ if( !strcmp( frameName, buff ) )
+ {
+ /* Ok, we've found it,
+ so return the last child under this heirarchy
+ */
+ lastWindow = window;
+
+ XFlush(display);
+
+ status = XQueryTree( display, window,
+ &root, &parent, &children, &numOfChildren );
+
+ if(verbose)
+ {
+ fprintf(stderr,"\nfjw 4 (got :0x%x with %d childs)\n",
+ window, numOfChildren);
+ fflush(stderr);
+ }
+
+ i1=0;
+
+ while( status )
+ {
+ if( children == NULL )
+ {
+ XFlush(display);
+
+ if(verbose)
+ {
+ fprintf(stderr,"\nfjw 4 (FOUND LAST WINDOW 0x%x)\n",
+ lastWindow);
+ fflush(stderr);
+ }
+ return lastWindow;
+ }
+ lastWindow = children[numOfChildren-1];
+
+ status = XQueryTree( display, lastWindow,
+ &root, &parent, &children, &numOfChildren );
+
+ if(verbose)
+ {
+ fprintf(stderr,"fjw 4 (got :0x%x with %d childs)\n",
+ lastWindow, numOfChildren);
+ fflush(stderr);
+ }
+
+ XFlush(display);
+
+ }
+
+ return (Window)0;
+ }
+ }
+
+ /* If Window has no name, or if it's not equal to the java Frame window name
+ carry on searching recursivly
+ */
+ status = XQueryTree( display, window,
+ &root, &parent, &children, &numOfChildren );
+
+ XFlush(display);
+
+ if( status )
+ {
+ for( i=0; i < numOfChildren; i++ )
+ {
+ retWindow = findAWindow( frameName, display, children[ i ]);
+ if( retWindow )
+ {
+ /* Free up the child list */
+ /* XFree( children ); */
+ return retWindow;
+ }
+ }
+ }
+
+ /* Free up the child list */
+ /* if(children!=0) XFree( children ); */
+ return (Window)0;
+}
diff --git a/demos/natives/x11/wave.c b/demos/natives/x11/wave.c
new file mode 100644
index 0000000..36d518d
--- /dev/null
+++ b/demos/natives/x11/wave.c
@@ -0,0 +1,500 @@
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <math.h>
+#include "GL/glut.h"
+
+
+#ifndef PI
+#define PI 3.14159265358979323846
+#endif
+
+#define GETCOORD(frame, x, y) (&(theMesh.coords[frame*theMesh.numCoords+(x)+(y)*(theMesh.widthX+1)]))
+#define GETFACET(frame, x, y) (&(theMesh.facets[frame*theMesh.numFacets+(x)+(y)*theMesh.widthX]))
+
+
+GLenum rgb, doubleBuffer, directRender;
+
+GLint colorIndexes1[3];
+GLint colorIndexes2[3];
+GLenum clearMask = GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT;
+
+GLenum smooth = GL_FALSE;
+GLenum lighting = GL_TRUE;
+GLenum depth = GL_TRUE;
+GLenum stepMode = GL_FALSE;
+GLenum spinMode = GL_FALSE;
+GLint contouring = 0;
+
+GLint widthX, widthY;
+GLint checkerSize;
+float height;
+
+GLint frames, curFrame = 0, nextFrame = 0;
+
+struct facet {
+ float color[3];
+ float normal[3];
+};
+struct coord {
+ float vertex[3];
+ float normal[3];
+};
+struct mesh {
+ GLint widthX, widthY;
+ GLint numFacets;
+ GLint numCoords;
+ GLint frames;
+ struct coord *coords;
+ struct facet *facets;
+} theMesh;
+
+GLubyte contourTexture1[] = {
+ 255, 255, 255, 255,
+ 255, 255, 255, 255,
+ 255, 255, 255, 255,
+ 127, 127, 127, 127,
+};
+GLubyte contourTexture2[] = {
+ 255, 255, 255, 255,
+ 255, 127, 127, 127,
+ 255, 127, 127, 127,
+ 255, 127, 127, 127,
+};
+
+
+static void display(void)
+{
+ struct coord *coord;
+ struct facet *facet;
+ float *lastColor;
+ float *thisColor;
+ GLint i, j;
+
+ glClear(clearMask);
+
+ if (nextFrame || !stepMode) {
+ curFrame++;
+ }
+ if (curFrame >= theMesh.frames) {
+ curFrame = 0;
+ }
+
+ if ((nextFrame || !stepMode) && spinMode) {
+ glRotatef(5.0, 0.0, 0.0, 1.0);
+ }
+ nextFrame = 0;
+
+ for (i = 0; i < theMesh.widthX; i++) {
+ glBegin(GL_QUAD_STRIP);
+ lastColor = NULL;
+ for (j = 0; j < theMesh.widthY; j++) {
+ facet = GETFACET(curFrame, i, j);
+ if (!smooth && lighting) {
+ glNormal3fv(facet->normal);
+ }
+ if (lighting) {
+ thisColor = facet->color;
+ glColor3fv(facet->color);
+ } else {
+ thisColor = facet->color;
+ glColor3fv(facet->color);
+ }
+
+ if (!lastColor || (thisColor[0] != lastColor[0] && smooth)) {
+ if (lastColor) {
+ glEnd();
+ glBegin(GL_QUAD_STRIP);
+ }
+ coord = GETCOORD(curFrame, i, j);
+ if (smooth && lighting) {
+ glNormal3fv(coord->normal);
+ }
+ glVertex3fv(coord->vertex);
+
+ coord = GETCOORD(curFrame, i+1, j);
+ if (smooth && lighting) {
+ glNormal3fv(coord->normal);
+ }
+ glVertex3fv(coord->vertex);
+ }
+
+ coord = GETCOORD(curFrame, i, j+1);
+ if (smooth && lighting) {
+ glNormal3fv(coord->normal);
+ }
+ glVertex3fv(coord->vertex);
+
+ coord = GETCOORD(curFrame, i+1, j+1);
+ if (smooth && lighting) {
+ glNormal3fv(coord->normal);
+ }
+ glVertex3fv(coord->vertex);
+
+ lastColor = thisColor;
+ }
+ glEnd();
+ }
+
+ glFlush();
+ if (doubleBuffer) {
+ glutSwapBuffers();
+ }
+}
+
+
+static void InitMesh(void)
+{
+ struct coord *coord;
+ struct facet *facet;
+ float dp1[3], dp2[3];
+ float *pt1, *pt2, *pt3;
+ float angle, d, x, y;
+ GLint numFacets, numCoords, frameNum, i, j;
+
+ theMesh.widthX = widthX;
+ theMesh.widthY = widthY;
+ theMesh.frames = frames;
+
+ numFacets = widthX * widthY;
+ numCoords = (widthX + 1) * (widthY + 1);
+
+ theMesh.numCoords = numCoords;
+ theMesh.numFacets = numFacets;
+
+ theMesh.coords = (struct coord *)malloc(frames*numCoords*
+ sizeof(struct coord));
+ theMesh.facets = (struct facet *)malloc(frames*numFacets*
+ sizeof(struct facet));
+ if (theMesh.coords == NULL || theMesh.facets == NULL) {
+ printf("Out of memory.\n");
+ exit(0);
+ }
+
+ for (frameNum = 0; frameNum < frames; frameNum++) {
+ for (i = 0; i <= widthX; i++) {
+ x = i / (float)widthX;
+ for (j = 0; j <= widthY; j++) {
+ y = j / (float)widthY;
+
+ d = sqrt(x*x+y*y);
+ if (d == 0.0) {
+ d = 0.0001;
+ }
+ angle = 2 * PI * d + (2 * PI / frames * frameNum);
+
+ coord = GETCOORD(frameNum, i, j);
+
+ coord->vertex[0] = x - 0.5;
+ coord->vertex[1] = y - 0.5;
+ coord->vertex[2] = (height - height * d) * cos(angle);
+
+ coord->normal[0] = -(height / d) * x * ((1 - d) * 2 * PI *
+ sin(angle) + cos(angle));
+ coord->normal[1] = -(height / d) * y * ((1 - d) * 2 * PI *
+ sin(angle) + cos(angle));
+ coord->normal[2] = -1;
+
+ d = 1.0 / sqrt(coord->normal[0]*coord->normal[0]+
+ coord->normal[1]*coord->normal[1]+1);
+ coord->normal[0] *= d;
+ coord->normal[1] *= d;
+ coord->normal[2] *= d;
+ }
+ }
+ for (i = 0; i < widthX; i++) {
+ for (j = 0; j < widthY; j++) {
+ facet = GETFACET(frameNum, i, j);
+ if (((i/checkerSize)%2)^(j/checkerSize)%2) {
+ facet->color[0] = 1.0;
+ facet->color[1] = 0.2;
+ facet->color[2] = 0.2;
+ } else {
+ facet->color[0] = 0.2;
+ facet->color[1] = 1.0;
+ facet->color[2] = 0.2;
+ }
+ pt1 = GETCOORD(frameNum, i, j)->vertex;
+ pt2 = GETCOORD(frameNum, i, j+1)->vertex;
+ pt3 = GETCOORD(frameNum, i+1, j+1)->vertex;
+
+ dp1[0] = pt2[0] - pt1[0];
+ dp1[1] = pt2[1] - pt1[1];
+ dp1[2] = pt2[2] - pt1[2];
+
+ dp2[0] = pt3[0] - pt2[0];
+ dp2[1] = pt3[1] - pt2[1];
+ dp2[2] = pt3[2] - pt2[2];
+
+ facet->normal[0] = dp1[1] * dp2[2] - dp1[2] * dp2[1];
+ facet->normal[1] = dp1[2] * dp2[0] - dp1[0] * dp2[2];
+ facet->normal[2] = dp1[0] * dp2[1] - dp1[1] * dp2[0];
+
+ d = 1.0 / sqrt(facet->normal[0]*facet->normal[0]+
+ facet->normal[1]*facet->normal[1]+
+ facet->normal[2]*facet->normal[2]);
+
+ facet->normal[0] *= d;
+ facet->normal[1] *= d;
+ facet->normal[2] *= d;
+ }
+ }
+ }
+}
+
+static void InitMaterials(void)
+{
+ static float ambient[] = {0.1, 0.1, 0.1, 1.0};
+ static float diffuse[] = {0.5, 1.0, 1.0, 1.0};
+ static float position[] = {90.0, 90.0, 150.0, 0.0};
+ static float front_mat_shininess[] = {60.0};
+ static float front_mat_specular[] = {0.2, 0.2, 0.2, 1.0};
+ static float front_mat_diffuse[] = {0.5, 0.28, 0.38, 1.0};
+ static float back_mat_shininess[] = {60.0};
+ static float back_mat_specular[] = {0.5, 0.5, 0.2, 1.0};
+ static float back_mat_diffuse[] = {1.0, 1.0, 0.2, 1.0};
+ static float lmodel_ambient[] = {1.0, 1.0, 1.0, 1.0};
+ static float lmodel_twoside[] = {GL_TRUE};
+
+ glMatrixMode(GL_PROJECTION);
+ gluPerspective(450, 1.0, 0.5, 10.0);
+
+ glLightfv(GL_LIGHT0, GL_AMBIENT, ambient);
+ glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse);
+ glLightfv(GL_LIGHT0, GL_POSITION, position);
+ glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);
+ glLightModelfv(GL_LIGHT_MODEL_TWO_SIDE, lmodel_twoside);
+ glEnable(GL_LIGHTING);
+ glEnable(GL_LIGHT0);
+
+ glMaterialfv(GL_FRONT, GL_SHININESS, front_mat_shininess);
+ glMaterialfv(GL_FRONT, GL_SPECULAR, front_mat_specular);
+ glMaterialfv(GL_FRONT, GL_DIFFUSE, front_mat_diffuse);
+ glMaterialfv(GL_BACK, GL_SHININESS, back_mat_shininess);
+ glMaterialfv(GL_BACK, GL_SPECULAR, back_mat_specular);
+ glMaterialfv(GL_BACK, GL_DIFFUSE, back_mat_diffuse);
+ glColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE);
+
+ glEnable(GL_COLOR_MATERIAL);
+}
+
+static void InitTexture(void)
+{
+
+ glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
+ glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
+ glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
+ glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
+ glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
+}
+
+void
+Idle(void)
+{
+ glutPostRedisplay();
+}
+
+static void Init(void)
+{
+
+ glClearColor(0.0, 0.0, 0.0, 0.0);
+
+ glShadeModel(GL_FLAT);
+
+ glFrontFace(GL_CW);
+
+ glEnable(GL_DEPTH_TEST);
+
+ InitMaterials();
+ InitTexture();
+ InitMesh();
+
+ glMatrixMode(GL_MODELVIEW);
+ glTranslatef(0.0, 0.4, -1.8);
+ glScalef(2.0, 2.0, 2.0);
+ glRotatef(-35.0, 1.0, 0.0, 0.0);
+ glRotatef(35.0, 0.0, 0.0, 1.0);
+}
+
+static void Reshape(int width, int height)
+{
+
+ glViewport(0, 0, (GLint)width, (GLint)height);
+}
+
+void Key(unsigned char key, int x, int y)
+{
+
+ switch (key) {
+ case 27:
+ exit(0); break;
+ case 'c':
+ contouring++;
+ if (contouring == 1) {
+ static GLfloat map[4] = {0, 0, 20, 0};
+
+ glTexImage2D(GL_TEXTURE_2D, 0, 3, 4, 4, 0, GL_LUMINANCE,
+ GL_UNSIGNED_BYTE, (GLvoid *)contourTexture1);
+ glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_OBJECT_LINEAR);
+ glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_OBJECT_LINEAR);
+ glTexGenfv(GL_S, GL_OBJECT_PLANE, map);
+ glTexGenfv(GL_T, GL_OBJECT_PLANE, map);
+ glEnable(GL_TEXTURE_2D);
+ glEnable(GL_TEXTURE_GEN_S);
+ glEnable(GL_TEXTURE_GEN_T);
+ } else if (contouring == 2) {
+ static GLfloat map[4] = {0, 0, 20, 0};
+
+ glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_EYE_LINEAR);
+ glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_EYE_LINEAR);
+ glPushMatrix();
+ glMatrixMode(GL_MODELVIEW);
+ glLoadIdentity();
+ glTexGenfv(GL_S, GL_EYE_PLANE, map);
+ glTexGenfv(GL_T, GL_EYE_PLANE, map);
+ glPopMatrix();
+ } else {
+ contouring = 0;
+ glDisable(GL_TEXTURE_GEN_S);
+ glDisable(GL_TEXTURE_GEN_T);
+ glDisable(GL_TEXTURE_2D);
+ }
+ break;
+ case 's':
+ smooth = !smooth;
+ if (smooth) {
+ glShadeModel(GL_SMOOTH);
+ } else {
+ glShadeModel(GL_FLAT);
+ }
+ break;
+ case 'l':
+ lighting = !lighting;
+ if (lighting) {
+ glEnable(GL_LIGHTING);
+ glEnable(GL_LIGHT0);
+ glEnable(GL_COLOR_MATERIAL);
+ } else {
+ glDisable(GL_LIGHTING);
+ glDisable(GL_LIGHT0);
+ glDisable(GL_COLOR_MATERIAL);
+ }
+ break;
+ case 'd':
+ depth = !depth;
+ if (depth) {
+ glEnable(GL_DEPTH_TEST);
+ clearMask |= GL_DEPTH_BUFFER_BIT;
+ } else {
+ glDisable(GL_DEPTH_TEST);
+ clearMask &= ~GL_DEPTH_BUFFER_BIT;
+ }
+ break;
+ case ' ':
+ stepMode = !stepMode;
+ if (stepMode) {
+ glutIdleFunc(0);
+ } else {
+ glutIdleFunc(Idle);
+ }
+ break;
+ case 'n':
+ if (stepMode) {
+ nextFrame = 1;
+ }
+ break;
+ case 'a':
+ spinMode = !spinMode;
+ break;
+ default:
+ return ;
+ }
+ return ;
+}
+
+static GLenum Args(int argc, char **argv)
+{
+ GLint i;
+
+ doubleBuffer = GL_TRUE;
+ directRender = GL_TRUE;
+ rgb = GL_TRUE;
+ frames = 10;
+ widthX = 10;
+ widthY = 10;
+ checkerSize = 2;
+ height = 0.2;
+
+ for (i = 1; i < argc; i++) {
+ if (strcmp(argv[i], "-sb") == 0) {
+ doubleBuffer = GL_FALSE;
+ } else if (strcmp(argv[i], "-db") == 0) {
+ doubleBuffer = GL_TRUE;
+ } else if (strcmp(argv[i], "-dr") == 0) {
+ directRender = GL_TRUE;
+ } else if (strcmp(argv[i], "-ir") == 0) {
+ directRender = GL_FALSE;
+ } else if (strcmp(argv[i], "-grid") == 0) {
+ if (i+2 >= argc || argv[i+1][0] == '-' || argv[i+2][0] == '-') {
+ printf("-grid (No numbers).\n");
+ return GL_FALSE;
+ } else {
+ widthX = atoi(argv[++i]);
+ widthY = atoi(argv[++i]);
+ }
+ } else if (strcmp(argv[i], "-size") == 0) {
+ if (i+1 >= argc || argv[i+1][0] == '-') {
+ printf("-checker (No number).\n");
+ return GL_FALSE;
+ } else {
+ checkerSize = atoi(argv[++i]);
+ }
+ } else if (strcmp(argv[i], "-wave") == 0) {
+ if (i+1 >= argc || argv[i+1][0] == '-') {
+ printf("-wave (No number).\n");
+ return GL_FALSE;
+ } else {
+ height = atof(argv[++i]);
+ }
+ } else if (strcmp(argv[i], "-frames") == 0) {
+ if (i+1 >= argc || argv[i+1][0] == '-') {
+ printf("-frames (No number).\n");
+ return GL_FALSE;
+ } else {
+ frames = atoi(argv[++i]);
+ }
+ } else {
+ printf("%s (Bad option).\n", argv[i]);
+ return GL_FALSE;
+ }
+ }
+ return GL_TRUE;
+}
+
+int
+main(int argc, char **argv)
+{
+ GLenum type;
+
+ glutInitWindowSize(300, 300);
+ glutInit(&argc, argv);
+ if (Args(argc, argv) == GL_FALSE) {
+ exit(1);
+ }
+ type = (rgb) ? GLUT_RGB : GLUT_INDEX;
+ type |= (doubleBuffer) ? GLUT_DOUBLE : GLUT_SINGLE;
+ glutInitDisplayMode(type);
+
+ glutCreateWindow("wave");
+
+ Init();
+
+ glutReshapeFunc(Reshape);
+ glutKeyboardFunc(Key);
+ glutIdleFunc(Idle);
+ glutDisplayFunc(display);
+
+ glutMainLoop();
+ return 0; /* ANSI C requires main to return int. */
+}
+
diff --git a/demos/olympicCvs.java b/demos/olympicCvs.java
new file mode 100644
index 0000000..189e52d
--- /dev/null
+++ b/demos/olympicCvs.java
@@ -0,0 +1,282 @@
+/**
+ * @(#) olympicCvs.java
+ */
+
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.Math;
+
+
+class olympicCvs extends GLAnimCanvas
+{
+/**
+ * Instead of using suspend (JAVA2)
+ *
+ * @see run
+ */
+ protected boolean threadSuspended = true;
+
+ static final double M_PI= 3.141592654;
+ static final double M_2PI= 2*3.141592654;
+
+ static final int
+ XSIZE= 100,
+ YSIZE= 75,
+ RINGS= 5,
+ BLUERING= 0,
+ BLACKRING= 1,
+ REDRING= 2,
+ YELLOWRING =3,
+ GREENRING =4,
+ BACKGROUND =8,
+ BLACK = 0,
+ RED=1,
+ GREEN=2,
+ YELLOW=3,
+ BLUE=4,
+ MAGENTA=5,
+ CYAN=6,
+ WHITE=7;
+
+ byte rgb_colors[][];
+ int mapped_colors[];
+ float dests[][];
+ float offsets[][];
+ float angs[];
+ float rotAxis[][];
+ int iters[];
+ int theTorus;
+
+ float lmodel_ambient[] = {0.0f, 0.0f, 0.0f, 0.0f};
+ float lmodel_twoside[] = {0.0f, 0.0f, 0.0f, 0.0f};
+ float lmodel_local[] = {0.0f, 0.0f, 0.0f, 0.0f};
+ float light0_ambient[] = {0.1f, 0.1f, 0.1f, 1.0f};
+ float light0_diffuse[] = {1.0f, 1.0f, 1.0f, 0.0f};
+ float light0_position[] = {0.8660254f, 0.5f, 1f, 0f};
+ float light0_specular[] = {1.0f, 1.0f, 1.0f, 0.0f};
+ float bevel_mat_ambient[] = {0.0f, 0.0f, 0.0f, 1.0f};
+ float bevel_mat_shininess[] = {40.0f, 0f, 0f, 0f};
+ float bevel_mat_specular[] = {1.0f, 1.0f, 1.0f, 0.0f};
+ float bevel_mat_diffuse[] = {1.0f, 0.0f, 0.0f, 0.0f};
+
+ public olympicCvs (int w, int h,
+ String glClass, String gluClass )
+ {
+ super(w, h, glClass, gluClass );
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = true;
+ }
+
+ public void init()
+ {
+ rgb_colors=new byte[RINGS][3];
+ mapped_colors=new int [RINGS];
+ dests=new float [RINGS][3];
+ offsets=new float[RINGS][3];
+ angs=new float[RINGS];
+ rotAxis=new float[RINGS][3];
+ iters=new int[RINGS];
+
+ int i;
+ float top_y = 1.0f;
+ float bottom_y = 0.0f;
+ float top_z = 0.15f;
+ float bottom_z = 0.69f;
+ float spacing = 2.5f;
+
+ ReInit();
+ for (i = 0; i < RINGS; i++) {
+ rgb_colors[i][0] = rgb_colors[i][1] = rgb_colors[i][2] = (byte)0;
+ }
+ rgb_colors[BLUERING][2] = (byte)255;
+ rgb_colors[REDRING][0] = (byte)255;
+ rgb_colors[GREENRING][1] = (byte)255;
+ rgb_colors[YELLOWRING][0] = (byte)255;
+ rgb_colors[YELLOWRING][1] = (byte)255;
+ mapped_colors[BLUERING] = BLUE;
+ mapped_colors[REDRING] = RED;
+ mapped_colors[GREENRING] = GREEN;
+ mapped_colors[YELLOWRING] = YELLOW;
+ mapped_colors[BLACKRING] = BLACK;
+
+ dests[BLUERING][0] = -spacing;
+ dests[BLUERING][1] = top_y;
+ dests[BLUERING][2] = top_z;
+
+ dests[BLACKRING][0] = 0.0f;
+ dests[BLACKRING][1] = top_y;
+ dests[BLACKRING][2] = top_z;
+
+ dests[REDRING][0] = spacing;
+ dests[REDRING][1] = top_y;
+ dests[REDRING][2] = top_z;
+
+ dests[YELLOWRING][0] = -spacing / 2.0f;
+ dests[YELLOWRING][1] = bottom_y;
+ dests[YELLOWRING][2] = bottom_z;
+
+ dests[GREENRING][0] = spacing / 2.0f;
+ dests[GREENRING][1] = bottom_y;
+ dests[GREENRING][2] = bottom_z;
+
+ theTorus = gl.glGenLists(1);
+ gl.glNewList(theTorus, GL_COMPILE);
+ FillTorus(0.1f, 8, 1.0f, 25);
+ gl.glEndList();
+
+ gl.glEnable(GL_CULL_FACE);
+ gl.glCullFace(GL_BACK);
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glClearDepth(1.0);
+
+ gl.glLightfv(GL_LIGHT0, GL_AMBIENT, light0_ambient);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, light0_diffuse);
+ gl.glLightfv(GL_LIGHT0, GL_SPECULAR, light0_specular);
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, light0_position);
+ gl.glEnable(GL_LIGHT0);
+
+ gl.glLightModelfv(GL_LIGHT_MODEL_LOCAL_VIEWER, lmodel_local);
+ gl.glLightModelfv(GL_LIGHT_MODEL_TWO_SIDE, lmodel_twoside);
+ gl.glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);
+ gl.glEnable(GL_LIGHTING);
+
+ gl.glClearColor(0.5f, 0.5f, 0.5f, 0.0f);
+
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, bevel_mat_ambient);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, bevel_mat_shininess);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, bevel_mat_specular);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, bevel_mat_diffuse);
+
+ gl.glColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE);
+ gl.glEnable(GL_COLOR_MATERIAL);
+ gl.glShadeModel(GL_SMOOTH);
+
+ gl.glMatrixMode(GL_PROJECTION);
+ glu.gluPerspective(45f, 1.33f, 0.1f, 100.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ glj.gljCheckGL();
+ }
+
+
+ public void display()
+ {
+ int i;
+
+ /* Standard GL4Java Init */
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ gl.glPushMatrix();
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ glu.gluLookAt(0, 0, 10, 0, 0, 0, 0, 1, 0);
+
+ for (i = 0; i < RINGS; i++) {
+ gl.glColor3ubv(rgb_colors[i]);
+ gl.glPushMatrix();
+ gl.glTranslatef(dests[i][0] + offsets[i][0], dests[i][1] + offsets[i][1],
+ dests[i][2] + offsets[i][2]);
+ gl.glRotatef(angs[i], rotAxis[i][0], rotAxis[i][1], rotAxis[i][2]);
+ gl.glCallList(theTorus);
+ gl.glPopMatrix();
+ }
+
+ gl.glPopMatrix();
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ animationCalc();
+ }
+
+ public void animationCalc()
+ {
+ int i, j;
+
+ for (i = 0; i < RINGS; i++) {
+ if (iters[i]!=0) {
+ for (j = 0; j < 3; j++) {
+ offsets[i][j] = Clamp(iters[i], offsets[i][j]);
+ }
+ angs[i] = Clamp(iters[i], angs[i]);
+ iters[i]--;
+ }
+ }
+ if (iters[0]==0)
+ {
+ shallWeRender=false;
+ }
+ }
+
+ public void ReInit()
+ {
+ int i;
+ float deviation;
+
+ deviation = MyRand() / 2;
+ deviation = deviation * deviation;
+ for (i = 0; i < RINGS; i++) {
+ offsets[i][0] = MyRand();
+ offsets[i][1] = MyRand();
+ offsets[i][2] = MyRand();
+ angs[i] = (float) (260.0 * MyRand());
+ rotAxis[i][0] = MyRand();
+ rotAxis[i][1] = MyRand();
+ rotAxis[i][2] = MyRand();
+ iters[i] = ( int ) (deviation * MyRand() + 60.0);
+ }
+ }
+
+ public void FillTorus(float rc, int numc, float rt, int numt)
+ {
+ int i, j, k;
+ double s, t;
+ float x, y, z;
+
+ for (i = 0; i < numc; i++) {
+ gl.glBegin(GL_QUAD_STRIP);
+ for (j = 0; j <= numt; j++) {
+ for (k = 1; k >= 0; k--) {
+ s = (i + k) % numc + 0.5;
+ t = j % numt;
+
+ x = (float) Math.cos(t * M_2PI / numt) * (float) Math.cos(s * M_2PI / numc);
+ y = (float) Math.sin(t * M_2PI / numt) * (float) Math.cos(s * M_2PI / numc);
+ z = (float) Math.sin(s * M_2PI / numc);
+ gl.glNormal3f(x, y, z);
+
+ x = (rt + rc * (float) Math.cos(s * M_2PI / numc)) * (float) Math.cos(t * M_2PI / numt);
+ y = (rt + rc * (float) Math.cos(s * M_2PI / numc)) * (float) Math.sin(t * M_2PI / numt);
+ z = rc * (float) Math.sin(s * M_2PI / numc);
+ gl.glVertex3f(x, y, z);
+ }
+ }
+ gl.glEnd();
+ }
+ }
+
+ public float Clamp(int iters_left, float t)
+ {
+
+ if (iters_left < 3) {
+ return 0.0f;
+ }
+ return (iters_left - 2) * t / iters_left;
+ }
+
+ public float MyRand()
+ {
+ // return 10.0 * (drand48() - 0.5);
+ return (float) ( 10.0 * (Math.random() - 0.5) );
+ }
+
+}
+
diff --git a/demos/sappletviewer.bat b/demos/sappletviewer.bat
new file mode 100755
index 0000000..90f7666
--- /dev/null
+++ b/demos/sappletviewer.bat
@@ -0,0 +1 @@
+appletviewer.exe -J-Djava.security.policy=gl4java.policy %*
diff --git a/demos/sappletviewer.sh b/demos/sappletviewer.sh
new file mode 100755
index 0000000..21c2e07
--- /dev/null
+++ b/demos/sappletviewer.sh
@@ -0,0 +1,4 @@
+#! /bin/sh
+
+echo aa
+appletviewer -J-Djava.security.policy=gl4java.policy $*
diff --git a/demos/starCvs.java b/demos/starCvs.java
new file mode 100644
index 0000000..b7c942c
--- /dev/null
+++ b/demos/starCvs.java
@@ -0,0 +1,205 @@
+/*
+ * Leo Chan
+ *
+ * October 1995
+ *
+ * -----------
+ *
+ * Sven Goethel
+ * September 1997
+ *
+ * @version 1.0, 23. JUNI 1998
+ */
+
+
+import gl4java.awt.*;
+import java.awt.*;
+import java.awt.event.*;
+
+
+class starCvs extends GLAnimCanvas
+{
+ protected int FrameStep =0;
+
+ float lmodel_twoside[] = null;
+ float lmodel_local[] = null;
+ float lmodel_ambient[] = null;
+
+ public starCvs(int w, int h, String glClass, String gluClass)
+ {
+ super( w, h, glClass, gluClass);
+ }
+
+ public void init()
+ {
+ lmodel_twoside= new float[4];
+ lmodel_twoside[0]=0f;
+ lmodel_twoside[1]=0f;
+ lmodel_twoside[2]=0f;
+ lmodel_twoside[3]=0f;
+ lmodel_local= new float[4];
+ lmodel_local[0]=0f;
+ lmodel_local[1]=0f;
+ lmodel_local[2]=0f;
+ lmodel_local[3]=0f;
+ lmodel_ambient= new float[4];
+ lmodel_ambient[0]=0f;
+ lmodel_ambient[1]=0f;
+ lmodel_ambient[2]=0f;
+ lmodel_ambient[3]=0f;
+
+ /* initialize the widget */
+ gl.glClearColor( 0.8f, 0.8f, 1.0f, 1.0f );
+ gl.glFrontFace( GL_CW );
+ gl.glEnable( GL_DEPTH_TEST );
+
+ int width = cvsGetWidth();
+ int height = cvsGetHeight();
+
+ gl.glViewport( 0, 0, width, height );
+
+ gl.glMatrixMode( GL_PROJECTION );
+ gl.glLoadIdentity();
+
+ double fov = 45.0,
+ aspect = width / height,
+ near = 1.0,
+ far = 200.0;
+ glu.gluPerspective( fov, aspect, near, far );
+
+ gl.glMatrixMode( GL_MODELVIEW );
+ gl.glLoadIdentity();
+
+ /* render three rotated cylinders */
+ gl.glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
+
+
+ float lightArr[] = new float[4];
+ float farr[] = new float[4];
+
+ /* enable lighting */
+
+ lightArr[0] = 1.0f; lightArr[1] = 1.0f;
+ lightArr[2] = 1.0f; lightArr[3] = 1.0f;
+ gl.glLightfv( GL_LIGHT0, GL_DIFFUSE, lightArr );
+ lightArr[0] = 90.0f; lightArr[1] = 90.0f;
+ lightArr[2] = 0.0f; lightArr[3] = 0.0f;
+ gl.glLightfv( GL_LIGHT0, GL_POSITION, lightArr );
+ lightArr[0] = 0.1f; lightArr[1] = 0.1f;
+ lightArr[2] = 0.1f; lightArr[3] = 1.0f;
+ gl.glLightfv( GL_LIGHT0, GL_AMBIENT, lightArr );
+ gl.glLightModeli( GL_LIGHT_MODEL_TWO_SIDE,
+ 1 );
+ gl.glEnable( GL_LIGHT0 );
+
+ /*
+ gl.glLightModelfv(GL_LIGHT_MODEL_LOCAL_VIEWER, lmodel_local);
+ gl.glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);
+ */
+ gl.glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, 1);
+ gl.glEnable( GL_LIGHTING );
+
+
+ gl.glMaterialf( GL_FRONT, GL_SHININESS, 30.0f );
+
+ farr[0] = 0.0f; farr[1] = 0.0f; farr[2] = 0.0f; farr[3] = 1.0f;
+ gl.glMaterialfv( GL_FRONT, GL_SPECULAR, farr );
+
+ farr[0] = 0.0f; farr[1] = 1.0f; farr[2] = 0.0f; farr[3] = 1.0f;
+ gl.glMaterialfv( GL_FRONT, GL_DIFFUSE, farr );
+
+ gl.glMaterialf( GL_BACK, GL_SHININESS, 50.0f );
+
+ farr[0] = 0.0f; farr[1] = 0.0f; farr[2] = 1.0f; farr[3] = 1.0f;
+ gl.glMaterialfv( GL_BACK, GL_SPECULAR, farr );
+
+ farr[0] = 1.0f; farr[1] = 1.0f; farr[2] = 0.0f; farr[3] = 1.0f;
+ gl.glMaterialfv( GL_BACK, GL_DIFFUSE, farr );
+ }
+
+ public void animationCalc()
+ {
+ FrameStep+=1;
+ if(FrameStep>100000) FrameStep=0;
+ }
+
+ public void display()
+ {
+ /* Standard gl4java Init */
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ gl.glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
+ gl.glPushMatrix();
+ gl.glTranslatef( 0.0f, 0.0f, -65.0f );
+ gl.glRotatef( 40.0f+(2f*FrameStep), 0.0f, 0.0f, 1.0f );
+ gl.glRotatef( 190.0f+(2f*FrameStep), 0.0f, 1.0f, 0.0f );
+ gl.glRotatef( 200.0f+(FrameStep*2f), 1.0f, 0.0f, 0.0f );
+ gl.glPushMatrix();
+ gl.glScalef( 1.0f, 1.0f, 10.0f );
+ drawCylinder();
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glRotatef( 90.0f, 0.0f, 1.0f, 0.0f );
+ gl.glScalef( 1.0f, 1.0f, 10.0f );
+ drawCylinder();
+ gl.glPopMatrix();
+ gl.glPushMatrix();
+ gl.glRotatef( 90.0f, 1.0f, 0.0f, 0.0f );
+ gl.glScalef( 1.0f, 1.0f, 10.0f );
+ drawCylinder();
+ gl.glPopMatrix();
+ gl.glPopMatrix();
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ animationCalc() ;
+ }
+
+ public void drawCylinder()
+ {
+ gl.glBegin( GL_TRIANGLE_STRIP );
+ gl.glNormal3f ( 1.0f, 0.0f, -5.0f);
+ gl.glVertex3f ( 1.0f, 0.0f, -5.0f);
+ gl.glNormal3f ( 1.0f, 0.0f, -5.0f);
+ gl.glVertex3f (1.000000f, 0.000000f, 5.000000f);
+ gl.glNormal3f (0.707107f, 0.707107f, -5.000000f);
+ gl.glVertex3f (0.707107f, 0.707107f, -5.000000f);
+ gl.glNormal3f (0.707107f, 0.707107f, -5.000000f);
+ gl.glVertex3f (0.707107f, 0.707107f, 5.000000f);
+ gl.glNormal3f (0.000000f, 1.000000f, -5.000000f);
+ gl.glVertex3f (0.000000f, 1.000000f, -5.000000f);
+ gl.glNormal3f (0.000000f, 1.000000f, -5.000000f);
+ gl.glVertex3f (0.000000f, 1.000000f, 5.000000f);
+ gl.glNormal3f (-0.707107f, 0.707107f, -5.00000f);
+ gl.glVertex3f (-0.707107f, 0.707107f, -5.00000f);
+ gl.glNormal3f (-0.707107f, 0.707107f, -5.00000f);
+ gl.glVertex3f (-0.707107f, 0.707107f, 5.00000f);
+ gl.glNormal3f (-1.000000f, 0.000000f, -5.000000f);
+ gl.glVertex3f (-1.000000f, 0.000000f, -5.000000f);
+ gl.glNormal3f (-1.000000f, 0.000000f, -5.000000f);
+ gl.glVertex3f (-1.000000f, 0.000000f, 5.00000f);
+ gl.glNormal3f (-0.707107f, -0.707107f, -5.000000f);
+ gl.glVertex3f (-0.707107f, -0.707107f, -5.000000f);
+ gl.glNormal3f (-0.707107f, -0.707107f, -5.000000f);
+ gl.glVertex3f (-0.707107f, -0.707107f, 5.00000f);
+ gl.glNormal3f (0.000000f, -1.000000f, -5.000000f);
+ gl.glVertex3f (0.000000f, -1.000000f, -5.000000f);
+ gl.glNormal3f (0.000000f, -1.000000f, -5.000000f);
+ gl.glVertex3f (0.000000f, -1.000000f, 5.00000f);
+ gl.glNormal3f (0.707107f, -0.707107f, -5.00000f);
+ gl.glVertex3f (0.707107f, -0.707107f, -5.00000f);
+ gl.glNormal3f (0.707107f, -0.707107f, -5.00000f);
+ gl.glVertex3f (0.707107f, -0.707107f, 5.000000f);
+ gl.glNormal3f (1.000000f, 0.000000f, -5.00000f);
+ gl.glVertex3f (1.000000f, 0.000000f, -5.00000f);
+ gl.glNormal3f (1.000000f, 0.000000f, -5.00000f);
+ gl.glVertex3f (1.000000f, 0.000000f, 5.00000f);
+ gl.glEnd();
+ }
+}
+
diff --git a/demos/starCvs.java-orig b/demos/starCvs.java-orig
new file mode 100644
index 0000000..9a45e68
--- /dev/null
+++ b/demos/starCvs.java-orig
@@ -0,0 +1,444 @@
+/*
+ * Leo Chan
+ *
+ * October 1995
+ *
+ * -----------
+ *
+ * Sven Goethel
+ * September 1997
+ *
+ * @version 1.0, 23. JUNI 1998
+ */
+
+
+import GL4Java.*;
+import java.awt.*;
+import java.awt.event.*;
+
+
+class testGL1 extends GLFrame
+ implements ActionListener, ComponentListener, MouseListener, Runnable
+{
+
+ protected double FramesPerSec=20;
+ protected long fps_count=0;
+ protected long fps_start=0;
+
+ protected Thread killme = null;
+ protected int FrameStep =0;
+
+ protected boolean inAnApplet = true;
+
+ float lmodel_twoside[] = null;
+ float lmodel_local[] = null;
+ float lmodel_ambient[] = null;
+
+ InfoWin iw=null;
+
+ public static void main( String args[] )
+ {
+ GLFrame.glNativeDebug = false;
+ GLFrame.glClassDebug = false;
+ testGL1 tt = new testGL1();
+ tt.inAnApplet=false;
+ }
+
+ public testGL1()
+ {
+ super( "Star GL4Java", 300, 250 );
+ setVisible(true);
+ }
+
+ Frame ctrl = null;
+
+ Button ButtonFps; TextField TextFps;
+
+ public void init()
+ {
+ ctrl = new Frame ("Features");
+
+ ctrl.setLayout(new GridLayout(1,2));
+ ctrl.add ( ButtonFps=new Button("Frames per secound") );
+ ctrl.add ( TextFps=new TextField() );
+
+ ctrl.pack();
+ ctrl.setVisible( true );
+
+ ButtonFps.addMouseListener(this);
+ TextFps.addActionListener(this);
+
+ ctrl.addWindowListener(this);
+
+ iw = new InfoWin(this);
+ iw.pack();
+ iw.show();
+
+ iw.addWindowListener(this);
+
+ lmodel_twoside= new float[4];
+ lmodel_twoside[0]=0f;
+ lmodel_twoside[1]=0f;
+ lmodel_twoside[2]=0f;
+ lmodel_twoside[3]=0f;
+ lmodel_local= new float[4];
+ lmodel_local[0]=0f;
+ lmodel_local[1]=0f;
+ lmodel_local[2]=0f;
+ lmodel_local[3]=0f;
+ lmodel_ambient= new float[4];
+ lmodel_ambient[0]=0f;
+ lmodel_ambient[1]=0f;
+ lmodel_ambient[2]=0f;
+ lmodel_ambient[3]=0f;
+
+ /* Standard GL4Java Init */
+ if( gljUse() == false )
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ /* initialize the widget */
+ glClearColor( 0.8f, 0.8f, 1.0f, 1.0f );
+ glFrontFace( GL_CW );
+ glEnable( GL_DEPTH_TEST );
+
+ int width = gljGetWidth();
+ int height = gljGetHeight();
+
+ glViewport( 0, 0, width, height );
+
+ glMatrixMode( GL_PROJECTION );
+ glLoadIdentity();
+
+ double fov = 45.0,
+ aspect = width / height,
+ near = 1.0,
+ far = 200.0;
+ gluPerspective( fov, aspect, near, far );
+
+ glMatrixMode( GL_MODELVIEW );
+ glLoadIdentity();
+
+ /* render three rotated cylinders */
+ glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
+
+
+ float lightArr[] = new float[4];
+ float farr[] = new float[4];
+
+ /* enable lighting */
+
+ lightArr[0] = 1.0f; lightArr[1] = 1.0f;
+ lightArr[2] = 1.0f; lightArr[3] = 1.0f;
+ glLightfv( GL_LIGHT0, GL_DIFFUSE, lightArr );
+ lightArr[0] = 90.0f; lightArr[1] = 90.0f;
+ lightArr[2] = 0.0f; lightArr[3] = 0.0f;
+ glLightfv( GL_LIGHT0, GL_POSITION, lightArr );
+ lightArr[0] = 0.1f; lightArr[1] = 0.1f;
+ lightArr[2] = 0.1f; lightArr[3] = 1.0f;
+ glLightfv( GL_LIGHT0, GL_AMBIENT, lightArr );
+ glLightModeli( GL_LIGHT_MODEL_TWO_SIDE,
+ 1 );
+ glEnable( GL_LIGHT0 );
+
+ /*
+ glLightModelfv(GL_LIGHT_MODEL_LOCAL_VIEWER, lmodel_local);
+ glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);
+ */
+ glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, 1);
+ glEnable( GL_LIGHTING );
+
+
+ glMaterialf( GL_FRONT, GL_SHININESS, 30.0f );
+
+ farr[0] = 0.0f; farr[1] = 0.0f; farr[2] = 0.0f; farr[3] = 1.0f;
+ glMaterialfv( GL_FRONT, GL_SPECULAR, farr );
+
+ farr[0] = 0.0f; farr[1] = 1.0f; farr[2] = 0.0f; farr[3] = 1.0f;
+ glMaterialfv( GL_FRONT, GL_DIFFUSE, farr );
+
+ glMaterialf( GL_BACK, GL_SHININESS, 50.0f );
+
+ farr[0] = 0.0f; farr[1] = 0.0f; farr[2] = 1.0f; farr[3] = 1.0f;
+ glMaterialfv( GL_BACK, GL_SPECULAR, farr );
+
+ farr[0] = 1.0f; farr[1] = 1.0f; farr[2] = 0.0f; farr[3] = 1.0f;
+ glMaterialfv( GL_BACK, GL_DIFFUSE, farr );
+
+ start();
+ }
+
+ public void start()
+ {
+ if(killme == null)
+ {
+ killme = new Thread(this,"star");
+ killme.start();
+
+ fps_count=0;
+ fps_start=System.currentTimeMillis();
+ }
+ }
+ public void stop()
+ {
+ killme.stop();
+ killme = null;
+ }
+
+ public void run()
+ {
+
+ while (killme!=null)
+ {
+
+ /* DRAW THE TINGS .. */
+ repaint();
+ try {Thread.sleep((int)((1.0/FramesPerSec)*1000.0));} catch (InterruptedException e){}
+
+ //sDisplay();
+
+ FrameStep+=1;
+ if(FrameStep>100000) FrameStep=0;
+
+ //Thread.yield();
+ }
+
+ }
+
+ public void display()
+ {
+ /* Standard GL4Java Init */
+ if( gljUse() == false )
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
+ glPushMatrix();
+ glTranslatef( 0.0f, 0.0f, -65.0f );
+ glRotatef( 40.0f+(2f*FrameStep), 0.0f, 0.0f, 1.0f );
+ glRotatef( 190.0f+(2f*FrameStep), 0.0f, 1.0f, 0.0f );
+ glRotatef( 200.0f+(FrameStep*2f), 1.0f, 0.0f, 0.0f );
+ glPushMatrix();
+ glScalef( 1.0f, 1.0f, 10.0f );
+ drawCylinder();
+ glPopMatrix();
+ glPushMatrix();
+ glRotatef( 90.0f, 0.0f, 1.0f, 0.0f );
+ glScalef( 1.0f, 1.0f, 10.0f );
+ drawCylinder();
+ glPopMatrix();
+ glPushMatrix();
+ glRotatef( 90.0f, 1.0f, 0.0f, 0.0f );
+ glScalef( 1.0f, 1.0f, 10.0f );
+ drawCylinder();
+ glPopMatrix();
+ glPopMatrix();
+
+ gljSwap();
+ gljCheckGL();
+
+ fps_count++;
+ }
+
+ public void drawCylinder()
+ {
+ glBegin( GL_TRIANGLE_STRIP );
+ glNormal3f ( 1.0f, 0.0f, -5.0f);
+ glVertex3f ( 1.0f, 0.0f, -5.0f);
+ glNormal3f ( 1.0f, 0.0f, -5.0f);
+ glVertex3f (1.000000f, 0.000000f, 5.000000f);
+ glNormal3f (0.707107f, 0.707107f, -5.000000f);
+ glVertex3f (0.707107f, 0.707107f, -5.000000f);
+ glNormal3f (0.707107f, 0.707107f, -5.000000f);
+ glVertex3f (0.707107f, 0.707107f, 5.000000f);
+ glNormal3f (0.000000f, 1.000000f, -5.000000f);
+ glVertex3f (0.000000f, 1.000000f, -5.000000f);
+ glNormal3f (0.000000f, 1.000000f, -5.000000f);
+ glVertex3f (0.000000f, 1.000000f, 5.000000f);
+ glNormal3f (-0.707107f, 0.707107f, -5.00000f);
+ glVertex3f (-0.707107f, 0.707107f, -5.00000f);
+ glNormal3f (-0.707107f, 0.707107f, -5.00000f);
+ glVertex3f (-0.707107f, 0.707107f, 5.00000f);
+ glNormal3f (-1.000000f, 0.000000f, -5.000000f);
+ glVertex3f (-1.000000f, 0.000000f, -5.000000f);
+ glNormal3f (-1.000000f, 0.000000f, -5.000000f);
+ glVertex3f (-1.000000f, 0.000000f, 5.00000f);
+ glNormal3f (-0.707107f, -0.707107f, -5.000000f);
+ glVertex3f (-0.707107f, -0.707107f, -5.000000f);
+ glNormal3f (-0.707107f, -0.707107f, -5.000000f);
+ glVertex3f (-0.707107f, -0.707107f, 5.00000f);
+ glNormal3f (0.000000f, -1.000000f, -5.000000f);
+ glVertex3f (0.000000f, -1.000000f, -5.000000f);
+ glNormal3f (0.000000f, -1.000000f, -5.000000f);
+ glVertex3f (0.000000f, -1.000000f, 5.00000f);
+ glNormal3f (0.707107f, -0.707107f, -5.00000f);
+ glVertex3f (0.707107f, -0.707107f, -5.00000f);
+ glNormal3f (0.707107f, -0.707107f, -5.00000f);
+ glVertex3f (0.707107f, -0.707107f, 5.000000f);
+ glNormal3f (1.000000f, 0.000000f, -5.00000f);
+ glVertex3f (1.000000f, 0.000000f, -5.00000f);
+ glNormal3f (1.000000f, 0.000000f, -5.00000f);
+ glVertex3f (1.000000f, 0.000000f, 5.00000f);
+ glEnd();
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+
+ if( gljUse() == false )
+ {
+ System.out.println("CtrlWin: problem in use() method");
+ return;
+ }
+
+ glFinish();
+
+ if(comp.equals(ButtonFps))
+ {
+ long fps_end=System.currentTimeMillis();
+ long timed= (fps_end-fps_start)/1000;
+ if(timed==0) timed=1;
+ TextFps.setText(String.valueOf(fps_count/timed));
+ System.out.println("calculated fps: "+TextFps.getText());
+
+ fps_count=0;
+ fps_start=System.currentTimeMillis();
+ }
+
+ glFinish();
+ gljFree();
+
+ if ( killme==null || ! Thread.currentThread().equals(killme) )
+ repaint();
+ }
+
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ }
+
+ public void windowClosing(WindowEvent e)
+ {
+ Component comp = e.getComponent();
+
+ if(ctrl!=null && ( comp.equals(ctrl) || comp.equals(this) ) )
+ {
+ ctrl.dispose();
+ }
+
+ if(iw!=null && ( comp.equals(iw) || comp.equals(this) ) )
+ {
+ iw.dispose();
+ }
+
+
+ if(killme!=null && comp.equals(this) )
+ {
+ ctrl.dispose();
+ iw.dispose();
+ super.windowClosing(e);
+ killme.stop();
+ }
+ }
+
+ public void actionPerformed(ActionEvent event)
+ {
+ Object source = event.getSource();
+
+ if ( source == TextFps)
+ {
+ try {
+ FramesPerSec=Double.valueOf(TextFps.getText()).doubleValue();
+ System.out.println("trying "+FramesPerSec+" fps.");
+ } catch (NumberFormatException s) {
+ System.out.println("wrong fps format, use float ..");
+ }
+
+ fps_count=0;
+ fps_start=System.currentTimeMillis();
+ }
+ }
+
+ public class InfoWin extends Frame
+ implements ActionListener
+ {
+ GLFrame glFrame = null;
+
+ TextArea output = null;
+
+ MenuItem miGLInfo = null;
+
+ public InfoWin(GLFrame glf)
+ {
+ glFrame=glf;
+
+ setTitle("Info Window");
+
+ output = new TextArea(5, 30);
+ output.setEditable(false);
+ setLayout(new BorderLayout()); //give max space to the output
+ add("Center", output);
+
+
+ MenuBar mb = new MenuBar();
+ setMenuBar( mb );
+
+ Menu info = new Menu( "Info");
+ info.add( (miGLInfo=new MenuItem( "about GL/GLU")));
+ mb.add( info );
+
+ miGLInfo.addActionListener(this);
+
+ }
+
+ public void actionPerformed(ActionEvent event)
+ {
+ String str = new String();
+
+ if (event.getSource().equals(miGLInfo)) {
+ if( gljUse() == false )
+ {
+ str=str+"problem in use() method\n";
+ } else {
+ String glVen = glGetString(GL_VENDOR);
+ String glRen = glGetString(GL_RENDERER);
+ String glVer = glGetString(GL_VERSION);
+ String glExt = glGetString(GL_EXTENSIONS);
+ String gluVer = gluGetString(GLU_VERSION);
+ String gluExt = gluGetString(GLU_EXTENSIONS);
+
+ str=str+"GL VENDOR: "+glVen+"\n";
+ str=str+"GL RENDERER: "+glRen+"\n";
+ str=str+"GL VERSION: "+glVer+"\n";
+ str=str+"GL EXTENSIONS: "+glExt+"\n";
+ str=str+"GLU VERSION: "+gluVer+"\n";
+ str=str+"GLU EXTENSIONS: "+gluExt+"\n";
+ gljFree();
+ }
+
+ }
+ str += "\n\n";
+ output.append(str);
+ }
+
+ }
+
+}
+
diff --git a/demos/test-jni12tst.sh b/demos/test-jni12tst.sh
new file mode 100755
index 0000000..d5f0d45
--- /dev/null
+++ b/demos/test-jni12tst.sh
@@ -0,0 +1,3 @@
+#! /bin/sh
+
+java gl4java.utils.Test -gljlib GL4JavaJauGljJNI12 -gllib GL4JavaJauGLJNI12tst -glulib GL4JavaJauGLUJNI12tst -testclass $1
diff --git a/demos/test-jnitst.sh b/demos/test-jnitst.sh
new file mode 100755
index 0000000..b078d5e
--- /dev/null
+++ b/demos/test-jnitst.sh
@@ -0,0 +1,3 @@
+#! /bin/sh
+
+java gl4java.utils.Test -gljlib GL4JavaJauGljJNI -gllib GL4JavaJauGLJNItst -glulib GL4JavaJauGLUJNItst -testclass $1
diff --git a/demos/test.sh b/demos/test.sh
new file mode 100755
index 0000000..3b1eb58
--- /dev/null
+++ b/demos/test.sh
@@ -0,0 +1,3 @@
+#! /bin/sh
+
+java gl4java.utils.Test -testclass $1
diff --git a/demos/test1Cvs.java b/demos/test1Cvs.java
new file mode 100644
index 0000000..85e03bb
--- /dev/null
+++ b/demos/test1Cvs.java
@@ -0,0 +1,100 @@
+/**
+ * @(#) test1Cvs.java
+ */
+
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.Math;
+
+
+class test1Cvs extends GLCanvas
+{
+/**
+ * Instead of using suspend (JAVA2)
+ *
+ * @see run
+ */
+ protected boolean threadSuspended = true;
+
+ protected int[] textures = null;
+
+ public test1Cvs (int w, int h,
+ String glClass, String gluClass )
+ {
+ super(w, h, glClass, gluClass );
+ }
+
+ public void preInit()
+ {
+ doubleBuffer = true;
+ stereoView = true;
+ }
+
+ public void init()
+ {
+ textures = new int[10];
+ gl.glGenTextures(10, textures);
+ for (int i=0; i<10; i++)
+ System.out.println("Texture "+ i +" maps to GL tex "+ textures[i]);
+ }
+
+
+ public void display()
+ {
+ /* Standard GL4Java Init */
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ public void ReInit()
+ {
+ }
+
+ public static void main( String args[] ) {
+ String gljLib=null;
+ String glLib=null;
+ String gluLib=null;
+ String glClass=null;
+ String gluClass=null;
+
+ if(args.length>0)
+ gljLib = args[0];
+ if(args.length>1)
+ glLib = args[1];
+ if(args.length>2)
+ gluLib = args[2];
+
+ if(GLContext.loadNativeLibraries(gljLib, glLib, gluLib)==false)
+ System.out.println("could not load native libs:"+
+ gljLib + ", " + glLib + ", " + gluLib);
+ else
+ System.out.println("load native libs:"+
+ gljLib + ", " + glLib + ", " + gluLib);
+
+
+ Frame mainFrame = new Frame("glDemosCvs");
+
+ if(args.length>3)
+ glClass = args[3];
+ if(args.length>4)
+ gluClass = args[4];
+
+ test1Cvs cvs1 = new test1Cvs(100, 100, glClass, gluClass);
+
+ mainFrame.add(cvs1);
+
+ mainFrame.pack();
+ mainFrame.setVisible(true);
+ }
+
+}
+
diff --git a/demos/testTextPPM1.html b/demos/testTextPPM1.html
new file mode 100644
index 0000000..abc9237
--- /dev/null
+++ b/demos/testTextPPM1.html
@@ -0,0 +1,13 @@
+
+<HTML>
+<HEAD>
+<TITLE>test</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<applet code="testTextPPM1.class" width=550 height=550 >
+</applet>
+<hr>
+</BODY>
+</HTML>
+
diff --git a/demos/testTextPPM1.java b/demos/testTextPPM1.java
new file mode 100755
index 0000000..e7d876c
--- /dev/null
+++ b/demos/testTextPPM1.java
@@ -0,0 +1,496 @@
+//-? IMPORTS
+import gl4java.awt.GLCanvas;
+import gl4java.GLContext;
+import gl4java.utils.textures.*;
+
+import javax.swing.*;
+import javax.swing.event.*;
+import javax.swing.border.*;
+
+import java.awt.*;
+import java.awt.Color.*;
+import java.awt.event.*;
+import java.applet.*;
+import java.io.*;
+import java.net.*;
+
+//// TEST
+// UniversalFileAccess -> netscape
+/////////////////////////////////////////////////////////////////
+public class testTextPPM1 extends JApplet
+{
+
+//-? VARIABLES GLOBALS APPLET
+ JPanel panelControl,panelDibuix;
+ JButton botoShading,botoTexture;
+ dibuix dib;
+// ActionsListener Actions;
+// SliderListener Sliders;
+
+ //-? VARIABLES de CONTROL
+ double obsX=0 , obsY=0 , obsZ=1.0; //-? POSICIO OBSERVADOR
+ JSlider sl_alfaUsu,sl_betaUsu;
+
+ //-? VARIABLES GL
+ int tipusPolMode;
+
+ boolean isAnApplet = true;
+
+//---------------------------------------------------------------
+
+public void init() {
+
+
+// Actions = new ActionsListener();
+
+ panelDibuix = iniDibuix();
+ panelControl = iniControl();
+
+
+ getContentPane().setLayout(new BoxLayout(getContentPane(),BoxLayout.Y_AXIS));
+ getContentPane().add(panelControl);
+ getContentPane().add(panelDibuix);
+
+ getContentPane().repaint();
+}
+ public static void main( String args[] ) {
+ testTextPPM1 applet =
+ new testTextPPM1();
+
+ Frame f = new Frame("testTextPPM1");
+
+ f.addWindowListener( new WindowAdapter()
+ {
+ public void windowClosed(WindowEvent e)
+ {
+ System.exit(0);
+ }
+ public void windowClosing(WindowEvent e)
+ {
+ windowClosed(e);
+ }
+ }
+ );
+
+ f.setLayout(new BorderLayout());
+ f.add("Center", applet);
+ applet.setSize(500,300);
+ applet.isAnApplet = false;
+ applet.init();
+ applet.start();
+ Dimension ps = applet.getPreferredSize();
+ f.setBounds(-100,-100,99,99);
+ f.setVisible(true);
+ f.setVisible(false);
+ Insets i = f.getInsets();
+ f.setBounds(0,0,
+ ps.width+i.left+i.right,
+ ps.height+i.top+i.bottom);
+ f.setVisible(true);
+ }
+
+//---------------------------------------------------------------
+public void paint(Graphics g) {
+ getContentPane().repaint();
+ dib.display();
+}
+
+//---------------------------------------------------------------
+public JPanel iniControl() {
+
+ panelControl = new JPanel();
+
+ sl_alfaUsu = new JSlider(JSlider.HORIZONTAL,-180,180,0);
+ sl_alfaUsu.setMajorTickSpacing(45);
+ sl_alfaUsu.setMinorTickSpacing(15);
+ sl_alfaUsu.setPaintTicks(true);
+ sl_alfaUsu.setPaintLabels(true);
+ sl_alfaUsu.setPreferredSize(new Dimension(350,50));
+ sl_alfaUsu.setMaximumSize(new Dimension(350,50));
+ sl_alfaUsu.setMinimumSize(new Dimension(350,50));
+
+ sl_betaUsu = new JSlider(JSlider.HORIZONTAL,-90,90,0);
+ sl_betaUsu.setMajorTickSpacing(30);
+ sl_betaUsu.setMinorTickSpacing(10);
+ sl_betaUsu.setPaintTicks(true);
+ sl_betaUsu.setPaintLabels(true);
+ sl_betaUsu.setPreferredSize(new Dimension(350,50));
+ sl_betaUsu.setMaximumSize(new Dimension(350,50));
+ sl_betaUsu.setMinimumSize(new Dimension(350,50));
+
+ sl_alfaUsu.addChangeListener(dib);
+ sl_betaUsu.addChangeListener(dib);
+
+ //-? PANEL DE BOTONS
+ JPanel panelBotons = new JPanel();
+ panelBotons.setLayout(new BoxLayout(panelBotons,BoxLayout.X_AXIS));
+
+ botoShading = new JButton("Shading Model");
+ botoShading.addActionListener(dib);
+ botoShading.setActionCommand("bS");
+
+ botoTexture = new JButton("Textures");
+ botoTexture.addActionListener(dib);
+ botoTexture.setActionCommand("bT");
+
+ panelBotons.add(botoShading);
+ panelBotons.add(botoTexture);
+
+ //-? PANEL GLOBAL DE CONTROLS
+ panelControl.setLayout(new BoxLayout(panelControl,BoxLayout.Y_AXIS));
+ panelControl.add(sl_alfaUsu);
+ panelControl.add(sl_betaUsu);
+ panelControl.add(panelBotons);
+
+ return panelControl;
+}
+
+//---------------------------------------------------------------
+public JPanel iniDibuix() {
+
+ dib = new dibuix(550,550);
+
+ panelDibuix = new JPanel();
+ panelDibuix.setLayout(new BoxLayout(panelDibuix,BoxLayout.X_AXIS));
+ panelDibuix.setBorder(new SoftBevelBorder(BevelBorder.LOWERED));
+ panelDibuix.add(dib);
+
+ return panelDibuix;
+}
+
+/////////////////////////////////////////////////////////////////
+//// DIBUIX
+/////////////////////////////////////////////////////////////////
+class dibuix extends GLCanvas
+ implements ActionListener,ChangeListener,MouseMotionListener,MouseListener
+{
+ //-? VARIABLES GLOBALS DE LA CLASSE
+
+ float n[][] = null; //-? NORMALS
+ int f[][] = null; //-? FACES
+ float v[][] = null; //-? VERTEXS
+
+ //-? POSICIO OBSERVADOR
+ //L'HEM POSADA GLOBAL double obsX=0 , obsY=0 , obsZ=5.0;
+
+ float llum_d[]; //-? LLUM DIFOSA
+ float llum_d_pos[]; //-? POSICIO LLUM DIFOSA
+ float llum_d2[]; //-? LLUM DIFOSA
+ float llum_d2_pos[]; //-? POSICIO LLUM DIFOSA
+
+ int texName[]={0};
+ boolean textures=false;
+
+ int anclaX,anclaY,anclaAlfa,anclaBeta;
+//---------------------------------------------------------------
+public dibuix(int x, int y){
+
+ //-? PASSEM A CLASSE SUPERIOR ELS 2 PARAMS. DE CONSTRUCTOR
+ super(x,y);
+}
+//---------------------------------------------------------------
+
+public void init(){
+
+ System.out.println("-- INIT");
+
+ addMouseMotionListener(this);
+ addMouseListener(this);
+
+ //-? INICIALITZEM NORMALS, VERTEXS , CARES i LLUMS
+ n = new float[6][3];
+ n[0][0]=-1f;
+ n[0][1]=0f;
+ n[0][2]=0f;
+ n[1][0]=0f;
+ n[1][1]=1f;
+ n[1][2]=0f;
+ n[2][0]=1f;
+ n[2][1]=0f;
+ n[2][2]=0f;
+ n[3][0]=0f;
+ n[3][1]=-1f;
+ n[3][2]=0f;
+ n[4][0]=0f;
+ n[4][1]=0f;
+ n[4][2]=1f;
+ n[5][0]=0f;
+ n[5][1]=0f;
+ n[5][2]=-1f;
+
+ f = new int[6][4];
+ f[0][0]=0;
+ f[0][1]=1;
+ f[0][2]=2;
+ f[0][3]=3;
+ f[1][0]=3;
+ f[1][1]=2;
+ f[1][2]=6;
+ f[1][3]=7;
+ f[2][0]=7;
+ f[2][1]=6;
+ f[2][2]=5;
+ f[2][3]=4;
+ f[3][0]=4;
+ f[3][1]=5;
+ f[3][2]=1;
+ f[3][3]=0;
+ f[4][0]=5;
+ f[4][1]=6;
+ f[4][2]=2;
+ f[4][3]=1;
+ f[5][0]=7;
+ f[5][1]=4;
+ f[5][2]=0;
+ f[5][3]=3;
+
+ v = new float[8][3];
+ v[0][0] = v[1][0] = v[2][0] = v[3][0] = -1;
+ v[4][0] = v[5][0] = v[6][0] = v[7][0] = 1;
+ v[0][1] = v[1][1] = v[4][1] = v[5][1] = -1;
+ v[2][1] = v[3][1] = v[6][1] = v[7][1] = 1;
+ v[0][2] = v[3][2] = v[4][2] = v[7][2] = 1;
+ v[1][2] = v[2][2] = v[5][2] = v[6][2] = -1;
+
+ //-? DEFINICIO DE LLUMS
+ //-? LLUM DIFOSA 1
+ llum_d = new float[4];
+ llum_d[0] = 1.0f;
+ llum_d[1] = 0.0f;
+ llum_d[2] = 0.0f;
+ llum_d[3] = 1.0f;
+
+ llum_d_pos = new float[4];
+ llum_d_pos[0] = -3.0f;
+ llum_d_pos[1] = -3.0f;
+ llum_d_pos[2] = -4.0f;
+ llum_d_pos[3] = 0.0f;
+
+ //-? LLUM DIFOSA 2
+ llum_d2 = new float[4];
+ llum_d2[0] = 1.0f;
+ llum_d2[1] = 1.0f;
+ llum_d2[2] = 0.0f;
+ llum_d2[3] = 1.0f;
+
+ llum_d2_pos = new float[4];
+ llum_d2_pos[0] = 3.0f;
+ llum_d2_pos[1] = 3.0f;
+ llum_d2_pos[2] = 4.0f;
+ llum_d2_pos[3] = 0.0f;
+
+ //-? INICIALITZACIO GL -> NOPE
+
+ gl.glClearColor( 0.4f, 0.4f, 5.0f, 1.0f );
+ gl.glShadeModel(GL_SMOOTH);
+ gl.glEnable(GL_DEPTH_TEST);
+
+ //-? CREEM LA TEXTURA
+ TextureLoader txtLoader1 = new PPMAsciiTextureLoader(gl, glu);
+ if(isAnApplet)
+ txtLoader1.readTexture(getCodeBase(), "lunaL.ppm");
+ else {
+ txtLoader1.readTexture("lunaL.ppm");
+ }
+
+ gl.glPixelStorei(GL_UNPACK_ALIGNMENT,1);
+ gl.glGenTextures(1,texName);
+ gl.glBindTexture(GL_TEXTURE_2D,texName[0]);
+
+ gl.glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
+ gl.glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
+ gl.glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
+ gl.glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
+
+ txtLoader1.texImage2DNonScaled(true);
+ // The Scaled Way
+ // txtLoader1.texImage2DScaled2Pow2();
+
+ //-? ILUMINACIO
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, llum_d);
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, llum_d_pos);
+ gl.glLightfv(GL_LIGHT1, GL_DIFFUSE, llum_d2);
+ gl.glLightfv(GL_LIGHT1, GL_POSITION, llum_d2_pos);
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ gl.glEnable(GL_LIGHT1);
+
+ puntVista();
+}
+//---------------------------------------------------------------
+public void display()
+{
+ int i;
+
+ if (cvsIsInit()==false || glj.gljMakeCurrent() == false)
+ {
+ System.out.println("-- Tenim algun problema glj.gljUse -2-");
+ return;
+ }
+ puntVista();
+
+ gl.glLineWidth(1.4f);
+ gl.glPolygonMode(GL_FRONT_AND_BACK,tipusPolMode);
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ if (textures)
+ {
+ gl.glEnable(GL_TEXTURE_2D);
+ gl.glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
+ gl.glBindTexture(GL_TEXTURE_2D,texName[0]);
+ }
+
+ for(i=0;i<6;i++)
+ {
+ gl.glBegin(GL_QUADS);
+ gl.glNormal3fv(n[i]);
+ gl.glTexCoord2f(0.0f,0.0f);gl.glVertex3fv(v[f[i][0]]);
+ gl.glTexCoord2f(0.0f,1.0f);gl.glVertex3fv(v[f[i][1]]);
+ gl.glTexCoord2f(1.0f,1.0f);gl.glVertex3fv(v[f[i][2]]);
+ gl.glTexCoord2f(1.0f,0.0f);gl.glVertex3fv(v[f[i][3]]);
+
+ gl.glEnd();
+ gl.glFlush();
+ }
+ if (textures) gl.glDisable(GL_TEXTURE_2D);
+ glj.gljSwap();
+ glj.gljFree();
+}
+//---------------------------------------------------------------
+
+public void puntVista()
+{
+
+ if (cvsIsInit()==false || glj.gljMakeCurrent() == false)
+ {
+ System.out.println("-- Tenim algun problema glj.gljUse -3-");
+ return;
+ }
+ //-? Actualitzem PUNT OBS
+
+ Integer IaU = new Integer(sl_alfaUsu.getValue());
+ Integer IbU = new Integer(sl_betaUsu.getValue());
+
+ double daU =-(((double)IaU.doubleValue())*((double)2.0*java.lang.Math.PI))/ (double)360.0;
+ double dbU = (((double)IbU.doubleValue())*((double)2.0*java.lang.Math.PI))/ (double)360.0;
+
+ obsX = 5.0 * java.lang.Math.sin(-daU) * java.lang.Math.cos(dbU);
+ obsY = 5.0 * java.lang.Math.sin(dbU);
+ obsZ = 5.0 * java.lang.Math.cos(-daU) * java.lang.Math.cos(dbU);
+
+ //-? PUNT DE VISTA
+ gl.glMatrixMode(GL_PROJECTION);
+ gl.glLoadIdentity();
+ glu.gluPerspective( /* field of view in degree */ 90.0,
+ /* aspect ratio */ 1.0,
+ /* Z near */ 1.0,
+ /* Z far */ 100.0);
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ glu.gluLookAt(obsX, obsY, obsZ, /* eye is at (0,0,5) */
+ 0.0, 0.0, 0.0, /* center is at (0,0,0) */
+ 0.0, 1.0, 0.); /* up is in positive Y direction */
+
+
+
+ //gl.glTranslatef(0.0f, 0.0f, -1.0f);
+ //gl.glRotatef(-60f, 1.0f, 0.0f, 0.0f);
+ //gl.glRotatef(-20f, 0.0f, 0.0f, 1.0f);
+
+}
+//---------------------------------------------------------------
+ public void actionPerformed(java.awt.event.ActionEvent e)
+ {
+
+ if (e.getActionCommand().equals("bS"))
+ {
+ if (tipusPolMode == GL_LINE)
+ {
+ tipusPolMode=GL_FILL;
+ }
+ else
+ {
+ tipusPolMode=GL_LINE;
+ }
+ display();
+ }
+ if (e.getActionCommand().equals("bT"))
+ {
+ if (textures)
+ textures = false;
+ else
+ textures = true;
+ display();
+ }
+
+ }
+
+//---------------------------------------------------------------
+public void mouseClicked(MouseEvent e)
+{
+
+}
+//---------------------------------------------------------------
+public void mouseEntered(MouseEvent e)
+{
+
+}
+//---------------------------------------------------------------
+public void mouseExited(MouseEvent e)
+{
+
+}
+//---------------------------------------------------------------
+public void mousePressed(MouseEvent e)
+{
+ anclaX=e.getX();
+ anclaY=e.getY();
+
+ anclaAlfa=sl_alfaUsu.getValue();
+ anclaBeta=sl_betaUsu.getValue();
+}
+//---------------------------------------------------------------
+public void mouseReleased(MouseEvent e)
+{
+}
+//---------------------------------------------------------------
+public void mouseDragged(MouseEvent e)
+{
+ int difX=anclaX-e.getX();
+ int difY=e.getY()-anclaY;
+
+ sl_alfaUsu.setValue(anclaAlfa+difX);
+ sl_betaUsu.setValue(anclaBeta+difY);
+
+ // puntVista(); JAU
+ // display(); JAU ... -> sDisplay() or repaint ...
+ repaint();
+}
+//---------------------------------------------------------------
+public void mouseMoved(MouseEvent e)
+{
+
+}
+//---------------------------------------------------------------
+public void stateChanged(ChangeEvent e)
+{
+ JSlider source = (JSlider) e.getSource();
+
+ dib.repaint();
+
+ if (source.equals(sl_alfaUsu))
+ {
+
+ }
+
+ if (source.equals(sl_betaUsu))
+ {
+
+ }
+}
+//---------------------------------------------------------------
+} //-? Fi CLASSE Dibuix
+
+//---------------------------------------------------------------
+}// Fi Applet testTextPPM1
+
diff --git a/demos/testTextPPM1J2P.html b/demos/testTextPPM1J2P.html
new file mode 100644
index 0000000..4d76baf
--- /dev/null
+++ b/demos/testTextPPM1J2P.html
@@ -0,0 +1,43 @@
+
+<HTML>
+<HEAD>
+<TITLE>test</TITLE>
+</HEAD>
+<BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#e6e6ff">
+<hr>
+<!--"CONVERTED_APPLET"-->
+<!-- CONVERTER VERSION 1.0 -->
+<SCRIPT LANGUAGE="JavaScript"><!--
+ var _info = navigator.userAgent; var _ns = false;
+ var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
+//--></SCRIPT>
+<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
+ var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
+//--></SCRIPT></COMMENT>
+
+<SCRIPT LANGUAGE="JavaScript"><!--
+ if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 550 HEIGHT = 550 codebase="http://java.sun.com/products/plugin/1.2/jinstall-12-win32.cab#Version=1,2,0,0"><NOEMBED><XMP>');
+ else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.2" java_CODE = "testTextPPM1.class" WIDTH = 550 HEIGHT = 550 pluginspage="http://java.sun.com/products/plugin/1.2/plugin-install.html"><NOEMBED><XMP>');
+//--></SCRIPT>
+<APPLET CODE = "testTextPPM1.class" WIDTH = 550 HEIGHT = 550 ></XMP>
+<PARAM NAME = CODE VALUE = "testTextPPM1.class" >
+
+<PARAM NAME="type" VALUE="application/x-java-applet;version=1.2">
+
+</APPLET>
+
+</NOEMBED></EMBED></OBJECT>
+
+
+<!--
+<APPLET CODE = "testTextPPM1.class" WIDTH = 550 HEIGHT = 550 >
+
+
+</APPLET>
+-->
+<!--"END_CONVERTED_APPLET"-->
+
+<hr>
+</BODY>
+</HTML>
+
diff --git a/demos/waveCvs.java b/demos/waveCvs.java
new file mode 100644
index 0000000..bd7afbe
--- /dev/null
+++ b/demos/waveCvs.java
@@ -0,0 +1,634 @@
+
+/*
+ * @version 1.0, 23. JUNI 1998
+ */
+
+import gl4java.GLContext;
+import gl4java.awt.GLAnimCanvas;
+import java.awt.*;
+import java.awt.event.*;
+
+
+class waveCvs extends GLAnimCanvas
+ implements MouseListener
+{
+
+ class facet {
+ public float color[];
+ public float normal[];
+
+ public facet()
+ { color = new float[3];
+ normal = new float[3];
+ }
+ }
+
+ class coord {
+ public float vertex[];
+ public float normal[];
+
+ public coord()
+ { vertex = new float[3];
+ normal = new float[3];
+ }
+ }
+
+ class mesh {
+ public int widthX, widthY;
+ public int numFacets;
+ public int numCoords;
+ public int frames;
+ coord coords[];
+ facet facets[];
+ }
+
+/**
+ * The thread for referencing Thread (Animation)
+ *
+ * @see sbin
+ */
+ boolean rgb;
+
+ int colorIndexes1[];
+ int colorIndexes2[];
+ int clearMask = GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT;
+
+ boolean smooth = GL_TRUE;
+ boolean lighting = GL_TRUE;
+ boolean depth = GL_TRUE;
+ boolean stepMode = GL_FALSE;
+ boolean spinMode = GL_FALSE;
+ int contouring = 0;
+ int widthX, widthY;
+
+ int checkerSize;
+ float height;
+
+ int frames, curFrame = 0, nextFrame = 0;
+
+ mesh theMesh;
+
+ static final float PI = 3.14159265358979323846f;
+
+
+ byte contourTexture1[] = {
+ (byte) 255, (byte)255, (byte) 255, (byte) 255,
+ (byte) 255, (byte)255, (byte) 255, (byte) 255,
+ (byte) 255, (byte)255, (byte) 255, (byte) 255,
+ (byte) 127, (byte)127, (byte) 127, (byte) 127
+ };
+ byte contourTexture2[] = {
+ (byte) 255, (byte) 255, (byte) 255, (byte) 255,
+ (byte) 255, (byte) 127, (byte) 127, (byte) 127,
+ (byte) 255, (byte) 127, (byte) 127, (byte) 127,
+ (byte) 255, (byte) 127, (byte) 127, (byte) 127
+ };
+
+
+ public waveCvs(int w, int h, String glClass, String gluClass)
+ {
+ super( w, h, glClass, gluClass);
+ }
+
+ Frame ctrl = null;
+
+ Button ButtonCont; TextField TextCont;
+ Button ButtonShade; TextField TextShade;
+ Button ButtonLight; TextField TextLight;
+ Button ButtonDepth; TextField TextDepth;
+ Button ButtonStepMode; TextField TextStepMode;
+ Button ButtonStep; TextField TextStep;
+ Button ButtonSpinMode; TextField TextSpinMode;
+
+ public void init()
+ {
+ ctrl = new Frame ("Wave-Features");
+
+ ctrl.setLayout(new GridLayout(7,2));
+ ctrl.add ( ButtonCont=new Button("Contour") );
+ ctrl.add ( TextCont=new TextField() );
+ ctrl.add ( ButtonShade=new Button("Shade") );
+ ctrl.add ( TextShade=new TextField() );
+ ctrl.add ( ButtonLight=new Button("Light") );
+ ctrl.add ( TextLight=new TextField() );
+ ctrl.add ( ButtonDepth=new Button("Depth") );
+ ctrl.add ( TextDepth=new TextField() );
+ ctrl.add ( ButtonStepMode=new Button("StepMod") );
+ ctrl.add ( TextStepMode=new TextField() );
+ ctrl.add ( ButtonStep=new Button("Step") );
+ ctrl.add ( TextStep=new TextField() );
+ ctrl.add ( ButtonSpinMode=new Button("SpinMod") );
+ ctrl.add ( TextSpinMode=new TextField() );
+
+ TextCont.setEditable(false);
+ TextShade.setEditable(false);
+ TextLight.setEditable(false);
+ TextDepth.setEditable(false);
+ TextStepMode.setEditable(false);
+ TextStep.setEditable(false);
+ TextSpinMode.setEditable(false);
+
+ updateTextFields();
+
+ ctrl.pack();
+ ctrl.setVisible( true );
+
+ ButtonCont.addMouseListener(this);
+ ButtonShade.addMouseListener(this);
+ ButtonLight.addMouseListener(this);
+ ButtonDepth.addMouseListener(this);
+ ButtonStepMode.addMouseListener(this);
+ ButtonStep.addMouseListener(this);
+ ButtonSpinMode.addMouseListener(this);
+
+ rgb = GL_TRUE;
+ frames = 10;
+ widthX = 10;
+ widthY = 10;
+ checkerSize = 2;
+ height = 0.2f;
+
+ /* here we should add and initialize our JAVA components */
+ colorIndexes1=new int [3];
+ colorIndexes2=new int [3];
+
+ /* Standard gl4java Init */
+ if(rgb==GL_TRUE)
+ System.out.println("using rgb...");
+ else
+ System.out.println("using color index...");
+
+ gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+
+ gl.glShadeModel(GL_SMOOTH);
+
+ gl.glFrontFace(GL_CW);
+
+ gl.glEnable(GL_DEPTH_TEST);
+
+ InitMaterials();
+ InitTexture();
+ InitMesh();
+
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glTranslatef(0.0f, 0.4f, -1.8f);
+ gl.glScalef(2.0f, 2.0f, 2.0f);
+ gl.glRotatef(-35.0f, 1.0f, 0.0f, 0.0f);
+ gl.glRotatef(35.0f, 0.0f, 0.0f, 1.0f);
+ /* ... and furthet OpenGL init's - like you want to */
+ glj.gljCheckGL();
+ }
+
+ public coord GETCOORD(int frame, int x, int y)
+ {
+ return
+ theMesh.coords[frame*theMesh.numCoords+(x)+(y)*(theMesh.widthX+1)];
+ }
+ public facet GETFACET(int frame, int x, int y)
+ {
+ return
+ theMesh.facets[frame*theMesh.numFacets+(x)+(y)*(theMesh.widthX)];
+ }
+
+ public void display()
+ {
+ coord coord_;
+ facet facet_;
+ float lastColor[] = null;
+ float thisColor[] = null;
+ int i, j;
+
+ /* Standard gl4java Init */
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("wave-display: problem in use() method");
+ return;
+ }
+
+ gl.glClear(clearMask);
+
+ if (nextFrame>0 || stepMode==GL_FALSE) {
+ curFrame++;
+ }
+ if (curFrame >= theMesh.frames) {
+ curFrame = 0;
+ }
+
+ if ((nextFrame>0 || stepMode==GL_FALSE) && spinMode==GL_TRUE)
+ {
+ gl.glRotatef(5.0f, 0.0f, 0.0f, 1.0f);
+ }
+ nextFrame = 0;
+
+ for (i = 0; i < theMesh.widthX; i++) {
+ gl.glBegin(GL_QUAD_STRIP);
+ lastColor = null;
+ for (j = 0; j < theMesh.widthY; j++) {
+ facet_ = GETFACET(curFrame, i, j);
+ if (smooth==GL_FALSE && lighting==GL_TRUE)
+ {
+ gl.glNormal3fv(facet_.normal);
+ }
+ if (lighting==GL_TRUE) {
+ if (rgb==GL_TRUE) {
+ thisColor = facet_.color;
+ gl.glColor3fv(facet_.color);
+ } else {
+ thisColor = facet_.color;
+ gl.glMaterialfv(GL_FRONT_AND_BACK, GL_COLOR_INDEXES,
+ facet_.color);
+ }
+ } else {
+ if (rgb==GL_TRUE) {
+ thisColor = facet_.color;
+ gl.glColor3fv(facet_.color);
+ } else {
+ thisColor = facet_.color;
+ gl.glIndexf(facet_.color[1]);
+ }
+ }
+
+ if (lastColor==null ||
+ (thisColor[0] != lastColor[0] && smooth==GL_TRUE)
+ )
+ {
+ if (lastColor!=null) {
+ gl.glEnd();
+ gl.glBegin(GL_QUAD_STRIP);
+ }
+ coord_ = GETCOORD(curFrame, i, j);
+ if (smooth==GL_TRUE && lighting==GL_TRUE)
+ {
+ gl.glNormal3fv(coord_.normal);
+ }
+ gl.glVertex3fv(coord_.vertex);
+
+ coord_ = GETCOORD(curFrame, i+1, j);
+ if (smooth==GL_TRUE && lighting==GL_TRUE)
+ {
+ gl.glNormal3fv(coord_.normal);
+ }
+ gl.glVertex3fv(coord_.vertex);
+ }
+
+ coord_ = GETCOORD(curFrame, i, j+1);
+ if (smooth==GL_TRUE && lighting==GL_TRUE) {
+ gl.glNormal3fv(coord_.normal);
+ }
+ gl.glVertex3fv(coord_.vertex);
+
+ coord_ = GETCOORD(curFrame, i+1, j+1);
+ if (smooth==GL_TRUE && lighting==GL_TRUE) {
+ gl.glNormal3fv(coord_.normal);
+ }
+ gl.glVertex3fv(coord_.vertex);
+
+ lastColor = thisColor;
+ }
+ gl.glEnd();
+ }
+
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ public void InitMesh()
+ {
+ coord coord_;
+ facet facet_;
+ float dp1[], dp2[];
+ float pt1[], pt2[], pt3[];
+ float angle, d, x, y;
+ int numFacets, numCoords, frameNum, i, j;
+
+ dp1=new float[3];
+ dp2=new float[3];
+
+ theMesh = new mesh();
+ theMesh.widthX = widthX;
+ theMesh.widthY = widthY;
+ theMesh.frames = frames;
+
+ numFacets = widthX * widthY;
+ numCoords = (widthX + 1) * (widthY + 1);
+
+ theMesh.numCoords = numCoords;
+ theMesh.numFacets = numFacets;
+
+ theMesh.coords = new coord[frames*numCoords];
+ for(i=0; i<frames*numCoords; i++)
+ theMesh.coords[i]=new coord();
+
+ theMesh.facets = new facet[frames*numFacets];
+ for(i=0; i<frames*numFacets; i++)
+ theMesh.facets[i]=new facet();
+
+ for (frameNum = 0; frameNum < frames; frameNum++) {
+ for (i = 0; i <= widthX; i++) {
+ x = i / (float)widthX;
+ for (j = 0; j <= widthY; j++) {
+ y = j / (float)widthY;
+
+ d = (float) Math.sqrt(x*x+y*y);
+ if (d == 0.0) {
+ d = 0.0001f;
+ }
+ angle = 2 * (float)PI * d +
+ (2 * (float)PI / frames * frameNum);
+
+ coord_ = GETCOORD(frameNum, i, j);
+
+ coord_.vertex[0] = x - 0.5f;
+ coord_.vertex[1] = y - 0.5f;
+ coord_.vertex[2] = (height - height * d) *
+ (float)Math.cos(angle);
+
+ coord_.normal[0] = -(height / d) * x * ((1 - d) * 2 *
+ PI * (float)Math.sin(angle) +
+ (float)Math.cos(angle));
+ coord_.normal[1] = -(height / d) * y * ((1 - d) * 2 *
+ PI * (float)Math.sin(angle) +
+ (float)Math.cos(angle));
+ coord_.normal[2] = -1;
+
+ d = 1.0f /
+ (float)Math.sqrt(coord_.normal[0]*coord_.normal[0]+
+ coord_.normal[1]*coord_.normal[1]+1);
+ coord_.normal[0] *= d;
+ coord_.normal[1] *= d;
+ coord_.normal[2] *= d;
+ }
+ }
+ for (i = 0; i < widthX; i++) {
+ for (j = 0; j < widthY; j++) {
+ facet_ = GETFACET(frameNum, i, j);
+ if ( ( ( (i/checkerSize)%2 ) ^ (j/checkerSize) %2 )
+ >0
+ )
+ {
+ if (rgb==GL_TRUE) {
+ facet_.color[0] = 1.0f;
+ facet_.color[1] = 0.2f;
+ facet_.color[2] = 0.2f;
+ } else {
+ facet_.color[0] = colorIndexes1[0];
+ facet_.color[1] = colorIndexes1[1];
+ facet_.color[2] = colorIndexes1[2];
+ }
+ } else {
+ if (rgb==GL_TRUE) {
+ facet_.color[0] = 0.2f;
+ facet_.color[1] = 1.0f;
+ facet_.color[2] = 0.2f;
+ } else {
+ facet_.color[0] = colorIndexes2[0];
+ facet_.color[1] = colorIndexes2[1];
+ facet_.color[2] = colorIndexes2[2];
+ }
+ }
+ pt1 = GETCOORD(frameNum, i, j).vertex;
+ pt2 = GETCOORD(frameNum, i, j+1).vertex;
+ pt3 = GETCOORD(frameNum, i+1, j+1).vertex;
+
+ dp1[0] = pt2[0] - pt1[0];
+ dp1[1] = pt2[1] - pt1[1];
+ dp1[2] = pt2[2] - pt1[2];
+
+ dp2[0] = pt3[0] - pt2[0];
+ dp2[1] = pt3[1] - pt2[1];
+ dp2[2] = pt3[2] - pt2[2];
+
+ facet_.normal[0] = dp1[1] * dp2[2] - dp1[2] * dp2[1];
+ facet_.normal[1] = dp1[2] * dp2[0] - dp1[0] * dp2[2];
+ facet_.normal[2] = dp1[0] * dp2[1] - dp1[1] * dp2[0];
+
+ d = 1.0f / (float)Math.sqrt(facet_.normal[0]*facet_.normal[0]+
+ facet_.normal[1]*facet_.normal[1]+
+ facet_.normal[2]*facet_.normal[2]);
+
+ facet_.normal[0] *= d;
+ facet_.normal[1] *= d;
+ facet_.normal[2] *= d;
+ }
+ }
+ }
+ }
+
+ static float ambient[] = {0.1f, 0.1f, 0.1f, 1.0f};
+ static float diffuse[] = {0.5f, 1.0f, 1.0f, 1.0f};
+ static float position[] = {90.0f, 90.0f, 150.0f, 0.0f};
+ static float front_mat_shininess[] = {60.0f, 0f, 0f, 0f};
+ static float front_mat_specular[] = {0.2f, 0.2f, 0.2f, 1.0f};
+ static float front_mat_diffuse[] = {0.5f, 0.28f, 0.38f, 1.0f};
+ static float back_mat_shininess[] = {60.0f, 0f, 0f, 0f};
+ static float back_mat_specular[] = {0.5f, 0.5f, 0.2f, 1.0f};
+ static float back_mat_diffuse[] = {1.0f, 1.0f, 0.2f, 1.0f};
+ static float lmodel_ambient[] = {1.0f, 1.0f, 1.0f, 1.0f};
+ static float lmodel_twoside[] = {1f, 0f, 0f, 0f};
+
+ public void InitMaterials()
+ {
+ gl.glMatrixMode(GL_PROJECTION);
+ glu.gluPerspective(450, 1.0, 0.5, 10.0);
+
+ gl.glLightfv(GL_LIGHT0, GL_AMBIENT, ambient);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse);
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, position);
+ gl.glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);
+ gl.glLightModelfv(GL_LIGHT_MODEL_TWO_SIDE, lmodel_twoside);
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, front_mat_shininess);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, front_mat_specular);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, front_mat_diffuse);
+ gl.glMaterialfv(GL_BACK, GL_SHININESS, back_mat_shininess);
+ gl.glMaterialfv(GL_BACK, GL_SPECULAR, back_mat_specular);
+ gl.glMaterialfv(GL_BACK, GL_DIFFUSE, back_mat_diffuse);
+ if (rgb==GL_TRUE) {
+ gl.glColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE);
+ }
+
+ if (rgb==GL_TRUE) {
+ gl.glEnable(GL_COLOR_MATERIAL);
+ } /* else {
+ SetColorMap();
+ } */
+ }
+
+ public void InitTexture()
+ {
+
+ gl.glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
+ gl.glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
+ gl.glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
+ gl.glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
+ gl.glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
+ }
+
+ // Methods required for the implementation of MouseListener
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+
+ if( cvsIsInit()==false ) return ;
+
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("CtrlWin: problem in use() method");
+ return;
+ } else {
+ gl.glFinish();
+ }
+
+ if(comp.equals(ButtonCont))
+ {
+ contouring++;
+ if (contouring == 1) {
+ float map[];
+ map=new float[4];
+ map[0]=0f;
+ map[1]=0f;
+ map[2]=20f;
+ map[3]=0f;
+
+ gl.glTexImage2D(GL_TEXTURE_2D, 0, 3, 4, 4, 0, GL_LUMINANCE,
+ GL_UNSIGNED_BYTE, contourTexture1);
+ gl.glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_OBJECT_LINEAR);
+ gl.glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_OBJECT_LINEAR);
+ gl.glTexGenfv(GL_S, GL_OBJECT_PLANE, map);
+ gl.glTexGenfv(GL_T, GL_OBJECT_PLANE, map);
+ gl.glEnable(GL_TEXTURE_2D);
+ gl.glEnable(GL_TEXTURE_GEN_S);
+ gl.glEnable(GL_TEXTURE_GEN_T);
+ } else if (contouring == 2) {
+ float map[];
+ map=new float[4];
+ map[0]=0f;
+ map[1]=0f;
+ map[2]=20f;
+ map[3]=0f;
+
+ gl.glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_EYE_LINEAR);
+ gl.glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_EYE_LINEAR);
+ gl.glPushMatrix();
+ gl.glMatrixMode(GL_MODELVIEW);
+ gl.glLoadIdentity();
+ gl.glTexGenfv(GL_S, GL_EYE_PLANE, map);
+ gl.glTexGenfv(GL_T, GL_EYE_PLANE, map);
+ gl.glPopMatrix();
+ } else {
+ contouring = 0;
+ gl.glDisable(GL_TEXTURE_GEN_S);
+ gl.glDisable(GL_TEXTURE_GEN_T);
+ gl.glDisable(GL_TEXTURE_2D);
+ }
+ }
+ else if(comp.equals(ButtonShade))
+ {
+ smooth = (smooth==GL_TRUE)?GL_FALSE:GL_TRUE;
+ if (smooth==GL_TRUE) {
+ gl.glShadeModel(GL_SMOOTH);
+ } else {
+ gl.glShadeModel(GL_FLAT);
+ }
+ }
+ else if(comp.equals(ButtonLight))
+ {
+ lighting = (lighting==GL_TRUE)?GL_FALSE:GL_TRUE;
+ if (lighting==GL_TRUE) {
+ gl.glEnable(GL_LIGHTING);
+ gl.glEnable(GL_LIGHT0);
+ if (rgb==GL_TRUE) {
+ gl.glEnable(GL_COLOR_MATERIAL);
+ }
+ } else {
+ gl.glDisable(GL_LIGHTING);
+ gl.glDisable(GL_LIGHT0);
+ if (rgb==GL_TRUE) {
+ gl.glDisable(GL_COLOR_MATERIAL);
+ }
+ }
+ }
+ else if(comp.equals(ButtonDepth))
+ {
+ depth = (depth==GL_TRUE)?GL_FALSE:GL_TRUE;
+ if (depth==GL_TRUE) {
+ gl.glEnable(GL_DEPTH_TEST);
+ clearMask |= GL_DEPTH_BUFFER_BIT;
+ } else {
+ gl.glDisable(GL_DEPTH_TEST);
+ clearMask &= ~GL_DEPTH_BUFFER_BIT;
+ }
+ }
+ else if(comp.equals(ButtonStepMode))
+ {
+ stepMode = (stepMode==GL_TRUE)?GL_FALSE:GL_TRUE;
+ if (stepMode==GL_TRUE) {
+ stop();
+ } else {
+ start();
+ }
+ }
+ else if(comp.equals(ButtonStep))
+ {
+ if (stepMode==GL_TRUE) {
+ nextFrame = 1;
+ }
+ }
+ else if(comp.equals(ButtonSpinMode))
+ {
+ spinMode = (spinMode==GL_TRUE)?GL_FALSE:GL_TRUE;
+ }
+
+ updateTextFields();
+
+ gl.glFinish();
+ glj.gljFree();
+
+ repaint();
+ }
+
+ public void updateTextFields()
+ {
+ TextCont.setText(String.valueOf(contouring));
+
+ TextShade.setText((smooth==GL_TRUE)?"ON":"OFF");
+
+ TextLight.setText((lighting==GL_TRUE)?"ON":"OFF");
+
+ TextDepth.setText((depth==GL_TRUE)?"ON":"OFF");
+
+ TextStepMode.setText((stepMode==GL_TRUE)?"ON":"OFF");
+
+ TextStep.setText((stepMode==GL_TRUE)?"ON":"OFF");
+
+ TextSpinMode.setText((spinMode==GL_TRUE)?"ON":"OFF");
+ }
+
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ }
+
+ public void cvsDispose()
+ {
+ if(ctrl!=null)
+ {
+ ctrl.dispose();
+ }
+ super.cvsDispose();
+ }
+}
diff --git a/docs-src/GL4Java.tex b/docs-src/GL4Java.tex
new file mode 100644
index 0000000..07ff9d3
--- /dev/null
+++ b/docs-src/GL4Java.tex
@@ -0,0 +1,1573 @@
+\documentclass{report} % Must use LaTex 2e
+\usepackage{html,a4}
+\latex{\usepackage{german}}
+
+\begin{document}
+
+\renewcommand{\thefootnote}{\alph{footnote}}
+\renewcommand{\thempfootnote}{\alph{mpfootnote}}
+
+\originalTeX
+
+\pagestyle{headings}
+
+\begin{titlepage}
+ {\LARGE
+ \begin{tabular}{p{20mm}l}
+ & \htmladdnormallink{GL4Java}{http://www.jausoft.com}\\[3mm]
+ & Implementation Of A Native OpenGL-Interface \\
+ & to Java, X-Window and Windows (95/NT)\\[3mm]
+ & \emph{Version 2.4.0 Release 0}\\[5mm]
+ & \htmladdnormallink{Sven Goethel}{mailto:[email protected]} \\[25mm]
+ & Jausoft - Sven Goethel Software development \\[25mm]
+% \hline \\[20mm]
+ & 29. December 1997 (Diploma Thesis Closing)\\[50mm]
+ & 26th June 2000 (Last Changes)
+ \end{tabular}
+ }
+\end{titlepage}
+
+May be you want to check the follwing news about GL4Java directly:
+\begin{itemize}
+ \item The GL4Java top level homepage at \htmladdnormallink{http://www.jausoft.com}{http://www.jausoft.com}.
+ \item The JavaDoc package-documentation at \htmladdnormallink{packages.html}{packages.html}.
+ \item \emph{Download} GL4Java at \ref{download}, page \pageref{download}.
+ \item The \emph{versions} file at \ref{versions}, page \pageref{versions}.
+ \item The \emph{changes} file at \ref{changes}, page \pageref{changes}.
+ \item The \emph{license} of GL4Java at \ref{license}, page \pageref{license}.
+ \item The \emph{thanxs} file at \ref{thanxs}, page \pageref{thanxs}.
+\end{itemize}
+
+
+\tableofcontents
+
+\chapter{Introduction}
+
+\section{GL4Java Homepage}
+Since GL4Java Version 1.0.2 the GL4Java-Homepage has its new top-level homepage.
+
+\htmladdnormallink{http://www.jausoft.com}{http://www.jausoft.com} contains the top level homepage about GL4Java. Some links to other users are located here.
+
+\section{About GL4Java}
+
+Sorry that this English is not very good ;-) But I guess it's
+better to write little english for everybody than to write German for
+only a few.
+\htmladdnormallink{Atilla Kolac}{mailto:[email protected]}
+and I
+are working on the implementation of GL4Java\cite{GL4JavaHome}
+for our diploma thesis under the supervision
+of Prof. Dr. Wolfgang Bunse\cite{ProfBunse}.
+
+Now, i do still maintain GL4Java\cite{GL4JavaHome}.
+
+The purpose of GL4Java is to use Java as a platform independed
+programming language for OpenGL applications.
+
+The development of GL4Java may be continued by us or other persons,
+if there are interesting users.
+
+We would be very lucky, if we get some response, critic, inspirations,
+bugfixes and participation.
+
+\section{About this Document}
+
+This document was layouted with \LaTeX\ on Linux.
+We used english as the main language, because this documentation is
+published on the WWW-Server of the FH-Bielefeld\cite{GL4JavaHome2}. To convert this \LaTeX\ documentation we used latex2html\cite{Dragos96}.
+The appendix includes the introduction about OpenGL and Java in the german language. We used german for these parts, because there are many documentations in the english language for these purposes \cite{Woo97} \cite{Fosner97} \cite{JavaTuto}. This appendix is not included in the html files.
+
+The paperware we have to produce for the FH-Bielefeld includes a printout of
+the javadoc-html pages of the base GL4Java classes.
+We include a link to the javadoc pages in chapter \ref{GL4JavaHtml}, page \pageref{GL4JavaHtml}.
+
+
+
+\section{Who wrote which part?}
+The diploma thesis is splitten into two diploma theses:
+\begin{itemize}
+ \item Sven Goethel: Implementation Of A Native OpenGL-Interface to Java and X-Window
+ \item Atilla Kolac: Implementation Of A Native OpenGL-Interface to Java and Windows-NT
+\end{itemize}
+Because we both worked together in design, implementation and documentation,
+we publish one documentation and one package.
+
+To help others to distinguish who of us is responsible for which part,
+we marked Sven Goethel's tasks with a \dag, we marked Atilla Kolac's part with a \ddag, and we marked the parts which are written by both of us with nothing at all.
+If the chapter is marked, the whole chapter was written by this person.
+If only some sections are marked, only the specific section was written by this person.
+If nothing is marked both persons wrote those chapter.
+
+Since Version 1.1.0 Sven Goethel maintains this package.
+
+\section{The Procedure\dag}
+\subsection{History}
+The OpenGL interface for Java work was started by Leo Chan\cite{Chan97}.
+He implements the library with Java 1.0.2 native calls and with an extra window for OpenGL-Rendering.
+
+Leo Chan's works was continued by Adam King\cite{King97}.
+His OpenGL4Java is able
+to be compiled with Java 1.1 and the OpenGL-Rendering is done in the calling
+Java-Frame. He still uses the Java 1.0.2 native calls.
+
+Tommy Reilly\cite{Reilly97}
+participated to Adam King's work and the project's title changed to Jogl.
+Jogl's big points lies in it's powerfull autoconfig and in it's
+improved X-Window System functions - so mostly all Unices are supported.
+Another point is the Win32 support. Sources and a precompiled dll are
+distributed.
+Jogl still differs from the true OpenGL naming convention.
+
+Because of newly communication results, we are thinking about
+joining the Jogl project. This does not means, that there will be no more
+GL4Java ! We still support the GL4Java, with the OpenGL like API (naming
+conventions) !
+
+\subsection{Our Work}
+We started developing GL4Java with Adam King's\cite{King97} OpenGL4Java.
+As a matter of asynchronise development,
+the changes from Java 1.0.2 to JNI 1.1 native calls
+were made within the Jogl and GL4Java project parallel
+- because we did not know of each others development.
+
+Actual results and later changes in Jogl are ported and will be ported to GL4Java.
+Like Jogl, GL4Java uses the Java 1.1 Java-Native-Interface (JNI).
+Many incompatible changes to OpenGL4Java/Jogl were made, see the chapter \ref{changes} at page \pageref{changes}.
+
+One big point of GL4Java is the used OpenGL naming convention,
+support for glu* and glut* functions (glut support in the near future).
+
+GL4Java extends OpenGL's API with an own naming convention.
+Specialised known windowing functions, like glXSwapBuffers, have the prefix
+glj, like gljSwap.
+
+Also the GLFrame class adds itself as a ComponentListener,
+so we have a event-handler in java, like reshape for glut !
+
+If we uses a own created Color-Window as the GL-Window
+(not usefull for AIX, LINUX AND SOLARIS YET),
+gljResize will be called if the componentResized is called (ComponentListener)
+to resize the own created Window !
+
+\subsection{Status}
+We can announce the following stats about GL4Java Version 2.1.0.0
+\begin{itemize}
+ \item Stable versions with precompiled librarys for Linux, SunOS (Solaris), Windows (95/NT) and Macintosh.
+ \item Runs on Java 1.1.5 and higher, tested on:
+ \begin{itemize}
+ \item JDK 1.1.7 (win32 (plus jit), linux (plus jit (tya v3.0)))
+ \item JDK 1.2 (Win32, Linux (Pre-V1,native,no-jit), Macintosh, ...)
+ \item Java2 (Java1.2) Plug-In on Netscape 4.5 (Win32)
+ \item Netscape 4.5 (Win32/Unix)
+ \item MS-JVM (build 3186) Win32
+ \item InternetExplorer4.0 with MS-JVM (build 3186) Win32
+ \end{itemize}
+ \item AIX stable version with some multithreading difficulties
+ \item Many demonstrations of GL4Java, which also uses many Java GUI
+ features.
+ \item \htmladdnormallink{A JavaDoc HTML-Documentation}{packages.html}
+\end{itemize}
+
+\subsection{Targets}
+If you use Mesa as your OpenGL driver,
+you should use Mesa Version 3.0 or higher !
+
+The actual implementation of GL4Java supports the following UNICES
+
+\begin{itemize}
+ \item AIX (RS/6000) 4.2 with $\geq$ JDK 1.1.5 (without JIT\_COMPILER option)
+ \item Linux (x86) 2.X with Mesa-3.0 and Metro-Link's GL and Xi's Accelerated OpenGL + $\geq$ JDK 1.1.7
+ \item SunOS (Sparc) 5.X with Mesa-2.4 GL with $\geq$ JDK 1.1.5 (green threads)
+ \item SGI-Irix
+ \item Macintosh
+\end{itemize}
+
+but if you know about programming, i guess it only makes little afford to
+support your unix.
+
+And the following Windows
+\begin{itemize}
+ \item Windows NT 4.0 \& 95/98 (x86) with MS OpenGL-Library + $\geq$ JDK 1.1.7
+ \item Windows NT 4.0 \& 95/98 (x86) with MS OpenGL-Library + $\geq$ MS-JVM (build 3186)
+\end{itemize}
+
+\chapter{Installation\dag}
+\label{download}
+
+\section{Obtain GL4Java}
+You can download GL4Java at \htmladdnormallink{http://www.jausoft.com/Files/Java/1.1.X/GL4Java}{http://www.jausoft.com/Files/Java/1.1.X/GL4Java}, where you may can find older versions and new demos either.
+
+Then go to this chapter and click on the following list,
+or just download the appropiate file.
+
+Please use some \emph{Save Link to ...} function of your browser !
+
+It could happen that your browser unzip the package automatically,
+then 'gunzip' or 'tar xzf' does not work of course - just use 'tar xf' then !
+
+Windows users can use the WinZip utility to extract the tar-gzipped files,
+but be sure to NOT convert LF/CR characters, because these files are binary !
+
+\begin{itemize}
+
+ \item \htmladdnormallink{The precompiled binaries for all the machines}{../../binpkg} !
+
+ \item \htmladdnormallink{The demos: GL4Java2.4.0.0-demos-v1.zip}{../../archive/} The demos (sources and classes) for you to enjoy !
+
+ \item \htmladdnormallink{The source: GL4Java2.4.0.0-src.tar.gz}{../../archive/} All sources no precompiled binaries no demos !
+
+ \item \htmladdnormallink{The docs: GL4Java2.4.0.0-doc.zip}{../../archive/} This Documentation (html$+$postscript) plus javadoc-package-documentation !
+
+\end{itemize}
+
+\subsection{GL4Java's Version Numbers}
+\label{versions}
+Here is a little descriptions what the versions mean.
+
+\begin{verbatim}
+ binpkg/gl4javaX.Y.Z.R.zip (the JAR file)
+ binpkg/libGL4JavaX.Y.Z.R-<UNIX-TYPE>.tar.gz (the native libs - unix)
+ binpkg/libGL4JavaX.Y.Z.R-<WIN32-TYPE>.zip (the native libs - win32)
+
+ archive/GL4JavaX.Y.Z.R-demos.zip (demos - for users :-)
+ archive/GL4JavaX.Y.Z.R-src.tgz (everything - for developers :-)
+ archive/GL4JavaX.Y.Z.R-doc.tgz (everything - for readers :-)
+
+ (where X is the major, Y the minor, Z the bugfix and R the release
+ library version number !
+ Take a look at VERSIONS.txt for a closer description !
+ )
+
+\end{verbatim}
+
+\subsubsection{Version Compatibility}
+\input{../VERSIONS.txt}
+
+\section{GL4Java's Directory structure}
+\label{dirstruct}
+
+\bigskip
+
+\latex{\begin{minipage}{15cm}}
+\setcounter{footnote}{0}
+\setcounter{mpfootnote}{0}
+
+\begin{center}
+
+\begin{tabular}{ll}
+{\tt ./ } & this is the directory, \\
+ & where you extract this package\\
+ & \\
+{\tt ./GL4Java } & GL4Java root directory \\
+ & \\
+{\tt ./GL4Java/gl4java } & java-package\footnote[1]{within the src-package}\\
+{\tt ./GL4Java/gl4java/awt } & java-package\footnotemark[1]\\
+{\tt ./GL4Java/gl4java/jau/awt } & java-package\footnotemark[1]\\
+{\tt ./GL4Java/gl4java/system } & java-package\footnotemark[1]\\
+ & \\
+{\tt ./GL4Java/sun/awt/macintosh } & additional java-package\footnotemark[1]\\
+{\tt ./GL4Java/sun/awt/motif } & additional java-package\footnotemark[1]\\
+{\tt ./GL4Java/sun/awt/windows } & additional java-package\footnotemark[1]\\
+ & \\
+{\tt ./GL4Java/CNativeCode } & native code\footnotemark[1]\\
+ & \\
+{\tt ./GL4Java/demos } & GL4Java demos\footnote[2]{within the demo-package}\\
+{\tt ./GL4Java/demos/natives } & same demos as native implementation\footnotemark[2]\\
+ & \\
+{\tt ./GL4Java/mklibs } & shell-scripts to do dynamic libs\\
+ & for different plattforms\footnotemark[1] \\
+ & \\
+{\tt ./GL4Java/binpkg } & the precompiled binaries\footnote[3]{for the binary installation}\\
+{\tt ./GL4Java/binpkg/gl4javaX.Y.Z.R.zip } & GL4Java Java-Archive\footnotemark[3]\\
+ & \\
+{\tt ./GL4Java/binpkg/libGL4JavaX.Y.Z.R-<WIN32-TYPE>.zip } & ... for Windows 32\footnotemark[3]\\
+{\tt ./GL4Java/binpkg/libGL4JavaX.Y.Z.R-<UNIX-TYPE>.tar.gz } & ... for Unices\footnotemark[3]\\
+{\tt ./GL4Java/CClassHeaders } & temporaery dir for javah\footnotemark[1] \\
+ & \\
+{\tt ./GL4Java/C2J } & the C2J cross-compiler\footnotemark[1] \\
+ & used to create OpenGL and GLU wrappers \\
+{\tt ./GL4Java/C2J/manual } & manual wrappers (see above)\footnotemark[1] \\
+ & \\
+{\tt ./GL4Java/docs } & documentation target dir\footnote[4]{within the doc-package} \\
+{\tt ./GL4Java/docs/html } & the html-documentation\footnotemark[4] \\
+{\tt ./GL4Java/docs/html/icons } & icons for latex2html\footnotemark[4]\\
+{\tt ./GL4Java/docs/html/images } & icons for javadoc\footnotemark[4]\\
+ & \\
+{\tt ./GL4Java/docs-src } & doc source for tex-doc\footnotemark[1] \\
+{\tt ./GL4Java/archive } & all archives (*.tar.gz) resides here\footnote[5]{not within any package} ! \\
+ & \\
+{\tt ./GL4Java/Win32BC5 } & the target dir for Win32 development\\
+ & (Borland C Version 5.0)\footnotemark[1] \\
+{\tt ./GL4Java/Win32VC5 } & the target dir for Win32 development \\
+ & (MS Visual C Version 5.0)\footnotemark[1] \\
+\end{tabular}
+
+\end{center}
+
+\latex{\end{minipage}}
+
+
+\section{Step by Step}
+
+You can choose between an automatic installation with the GL4Java Installer
+and a manual installation !
+
+\subsection{\htmladdnormallink{GL4Java Installer}{../../INSTALLER.txt}}
+\label{GL4JavaInstaller}
+\begin{latexonly}
+\input{../INSTALLER.txt}
+\end{latexonly}
+
+\subsection{\htmladdnormallink{Manual Binary Installation}{../../INSTALL.txt}}
+\label{BinInstall}
+\begin{latexonly}
+\input{../INSTALL.txt}
+\end{latexonly}
+
+\subsubsection{\htmladdnormallink{Java2 Installation}{../../Java2.txt}}
+\label{Java2Install}
+\begin{latexonly}
+\input{../Java2.txt}
+\end{latexonly}
+
+\subsubsection{\htmladdnormallink{Netscape Installation}{../../Netscape.txt}}
+\label{NetscapeInstall}
+\begin{latexonly}
+\input{../Netscape.txt}
+\end{latexonly}
+
+\subsubsection{\htmladdnormallink{Microsoft JVM Installation}{../../MS-JVM.txt}}
+\label{MSJVMInstall}
+\begin{latexonly}
+\input{../MS-JVM.txt}
+\end{latexonly}
+
+\subsection{Source Installation}
+\label{srcinstall}
+
+\subsubsection{Prerequisites}
+
+You must allready have the following installed:
+
+
+\latex{\begin{minipage}{15cm}}
+\setcounter{footnote}{0}
+\setcounter{mpfootnote}{0}
+
+\begin{enumerate}
+
+
+ \item Common
+
+ \begin{enumerate}
+
+ \item JDK $\geq$ 1.1.7
+ \item JavaCC\cite{JavaCC} (chapter \ref{devenv}, page \pageref{devenv})
+ \item bash (chapter \ref{devenv}, page \pageref{devenv})
+ \item GNU make (chapter \ref{devenv}, page \pageref{devenv})
+ \item GNU tools (chapter \ref{devenv}, page \pageref{devenv})
+ \item Netscape Communicator 4.5 (optional)
+
+ \end{enumerate}
+
+ \item UNIX/X11
+
+ \begin{enumerate}
+ \item ( GL + GLU ) or ( MesaGL + MesaGLU Version 2.4 or higher)
+ AND glut (only for c-demos yet)
+
+ We are looking for libGL.so AND libGLU.so in your library PATH,
+ so please create a symbolic link from the Mesa libs,
+ to the abstract one's !!
+
+ \item X11R6 (XFree86 works fine ;-)
+
+ \item Unix standard file-utilities (tar, gzip, ...)
+
+ \item LaTeX and LaTeX2Html\cite{Dragos96} (to generate the documentation)
+
+ \end{enumerate}
+
+ \item Windows 32 (NT \& 95)
+
+ \begin{enumerate}
+ \item MS-OpenGL and GLU library installed - \emph{\bf must} !
+ See if you have opengl32.dll AND glu32.dll
+ installed in your library path
+ (c:/winnt/system32 OR c:/windows/system)
+
+ \item WinZip (to extract zip and tar-gzip files), be sure to disable the option LF/CR conversion in TAR-Archives ! You can also use the jar command-line tool of the JDK for zip files !
+
+ \item Unix standard utilities (make, ksh (bash), tar ...)
+ E.g. GNU-Win32 Project from Cygnus\cite{GnuWin32}, make sure to have zip installed also !
+
+ \item LaTeX and LaTeX2Html\cite{Dragos96} (not testet - to generate the documentation)
+
+ \item For compiling GL4Java for the MS-JVM,
+ be sure you have the new MS-JVM machine (build 3186) installed.
+
+ \end{enumerate}
+ \end{enumerate}
+
+\latex{\end{minipage}}
+
+\subsubsection{Compilation}
+
+ {\center{\bf UNICEs and WINDOWs users}}
+
+You CAN (not a must) follow the Installation procedure above,
+just be sure to copy the libs to your LD\_LIBRARY\_PATH
+which should be the path in symbols.mak 'HOME\_LIB\_DIR' see below (UNICEs) !!
+Also you should use a symbolic link OR edit CLASSPATH
+to make 'GL4Java' and 'sun' visible in you CLASSPATH
+(copy is not recommended - see below !!! ) !
+
+You MUST follow the Installation procedure above,
+if you want to USE GL4Java with JAVA2-JRE, JAVA2-Plug-In,
+Netscape 4.5 (Win32/Unix) JVM or MS-JVM/InternetExplorer.
+
+Just procede the Installation procedure AFTER the compilation !
+
+Login as root (or any other),
+obtain the source archive for GL4Java.
+
+copy the .tar.gz file to a directory such as /usr/local and
+cd to that directory, then unpack the file:
+
+\begin{verbatim}
+ cd /usr/local ( or where ever you placed the file )
+ gunzip GL4JavaX.Y.Z-Rn-src.tar.gz ; tar xvf GL4JavaX.Y.Z-Rn-src.tar
+ gunzip GL4JavaX.Y.Z-Rn-doc.tar.gz ;
+ tar xvf GL4JavaX.Y.Z-Rn-doc.tar (optional :-)
+\end{verbatim}
+
+X is the major, Y the minor and Z the bugfix library version number,
+and Rn (e.g. R2) is the release number, where no
+changes in the libs where made !
+
+A new directory will be created called GL4Java.
+
+Go to the directory GL4Java,
+which is the root-directory of GL4Java - so we stay here for the following
+procedures !
+
+You will see some 'symbols.mak.$<$machine$>$' files.
+Choose the right 'symbols.mak.$<$machine$>$' file, or create one.
+Some older actual non-maintained files can be found under symbols.mak-old !
+Edit your choosen or created 'symbols.mak.$<$machine$>$', so it will fit to
+your OS configuration - all macros !
+Copy the file 'symbols.mak.$<$your-machine$>$' to 'symbols.mak'.
+Do not forget to add your 'HOME\_LIB\_DIR' (set in symbols.mak) to your
+LD\_LIBRARY\_PATH (UNICEs). The created lib will be copied to 'HOME\_LIB\_DIR'
+by automatic (via tar - symbolic links are still alive ;-) !
+
+Next - you have to be sure, that the root-directory of GL4Java,
+where the directories \emph{gl4java} and \emph{sun} exists,
+is in your CLASSPATH.
+E.g.: Assume you have expanded the package in the directory
+\emph{/usr/local}.
+
+\begin{verbatim}
+
+ For sh/ksh: CLASSPATH=$CLASSPATH:/usr/local/GL4Java
+ or
+ for csh: set CLASSPATH=(/usr/local/GL4Java $CLASSPATH)
+ or
+ for WINDOW's check out your GUI's
+
+\end{verbatim}
+This is evt. obsolete, if you have added the THISDIR path in the CLASSPATH
+of the symbols.mak's JAVAC definition, look into these files !
+You must also use the macro 'DEST\_CLASSES\_DIR' (symbols.mak), where all
+generated class-files will be copied into, when created.
+You can also invoke �make classcpy� to force copy all class-files to
+'DEST\_CLASSES\_DIR'. Also the gl4java.jar file is generated there !
+
+Because GL4Java supports Netscape's JVM with JNI, we do try
+to ask for a privilege to run native DLL's.
+Because this ask - the 'netscape' package is included in the file
+\emph{capsapi\_classes.zip} which is used in the \emph{JAVAC} macro definition
+in \emph{symbols.mak}.
+
+This is evt. obsolete, if you have entered the file 'capsapi\_classes.zip'
+in the CLASSPATH of the symbols.mak's JAVAC definition, look into these files !
+
+ {\center{\bf UNICEs users}}
+
+Next create the library, class-files and all is needed with (for Unix/X11):
+
+\begin{verbatim}
+ make x11
+\end{verbatim}
+
+The Unix makefile-action does the complete creation :-)
+The default shared-library files for Unice's are :
+\begin{verbatim}
+ GLContext: libGL4JavaJauGljJNI.so
+ GLFuncJauJNI: libGL4JavaJauGLJNI.so
+ GLUFuncJauJNI: libGL4JavaJauGLUJNI.so
+
+ This *.so files stands for the versions files
+ with all symbolic links, e.g.:
+
+ libGL4JavaJauGljJNI.so -> libGL4JavaJauGljJNI.so.2.1
+ libGL4JavaJauGljJNI.so.2.1 -> libGL4JavaJauGljJNI.so.2.1.2
+ libGL4JavaJauGljJNI.so.2.1.2
+
+\end{verbatim}
+
+They are moved to the HOME\_LIB\_DIR (see above)
+or copied with the "-a" option to keep the symbolic links alive !
+
+
+ {\center{\bf WINDOWs users}}
+
+Next create the class-files and all preparations with (Win32):
+
+\begin{verbatim}
+ make w32
+\end{verbatim}
+
+The Windows makefile-action only creates the tool (gljni) and
+all Java classes and C-wrappers.
+An additional C compiler invocation must be done (see \ref{WinCompile},
+page \pageref{WinCompile}) to create the
+default shared-library files:
+\begin{verbatim}
+ GLContext (SUN-JNI): GL4JavaJauGljJNI.dll
+ GLFuncJauJNI (SUN-JNI): GL4JavaJauGLJNI.dll
+ GLUFuncJauJNI (SUN-JNI): GL4JavaJauGLUJNI.dll
+ GLContext (MS-JVM) : GL4JavaGljMSJDirect.dll
+\end{verbatim}
+
+To run GL4Java within MS-JVM and InternetExplorer,
+please see \ref{MSJVMInstall}, page \pageref{MSJVMInstall}.
+
+ {\center{\bf UNICEs and WINDOWs users}}
+
+To run GL4Java within Netscape,
+please \ref{NetscapeInstall}, page \pageref{NetscapeInstall}.
+
+For a complete description of the makefile invokations see \ref{makeinvoke},
+page \pageref{makeinvoke}.
+
+Next create the demos with.
+
+\begin{verbatim}
+ cd demos
+ make
+\end{verbatim}
+
+ If all goes well, just type e.g.: 'java glDemosCvs'
+ in this directory, and
+ you should see a demo manager for all the GL4Java demos we have written.
+
+ To allow JAVA2's appletviewer or Java2-Plug-In using JNI native libs,
+ just look at GL4Java/demo/Java2Applet.bat
+ (You have to change the gl4java.policy file) !
+
+ You can - of course - use your 'policytool',
+ which is shipped with JAVA2 !
+
+ To use the demo Applets for Java2-Plug-In from www.jausoft.com,
+ please add the following lines to your java.policy file:
+
+\begin{verbatim}
+ grant codeBase "http://www.jausoft.com/Files/Java/1.1.X/GL4Java/demos/-"
+ {
+ permission java.security.AllPermission;
+ };
+\end{verbatim}
+
+ You can also compare the totally native glut version
+ against the java version.
+ The glut versions do exist in the demos path also (under native).
+
+\subsection{Windows Source Installation\ddag}
+\label{WinCompile}
+
+To compile GL4Java, we still use MS Visual C++ 6.0 !
+We also assume that Windows is installed under c:/WIN\_NT !
+The compiler flags are set to Pentium Pro (686 / PII)
+with the optimizimg Intel compiler !
+
+Also Java2 SDK is installed under c:/java2 !
+Also MS Java SDK is installed under c:/MSJAVASDK !
+
+Please check all location in the makefile !
+
+\latex{\begin{minipage}{15cm}}
+\setcounter{footnote}{0}
+\setcounter{mpfootnote}{0}
+
+\begin{enumerate}
+ \item If you have installed cygwin32 and it's bash and make, etc...
+ AND set it up very well (CLASSPATH, PATH, ...)
+ you can invoke the makefile\footnote[2]{in the GL4Java directory, the main one} with {\tt make w32 }
+ to create all java-depended stuff and the C-wrappers.
+
+ \item Befor going any further, check if the files
+ opengl32.dll glu.dll\footnotemark[1], glu32.dll exist
+ in c:/WIN\_NT/system32 OR c:/windows/system !
+ IF not get MS-OpenGL Lib (opengl32.dll, glu32.dll) !
+
+ \item Go with the Explorer to the directory Win32VC6
+ and open the workspace Win32VC6.dsw !
+
+ \item Now, you should fix some option in the project file,
+ we used:
+
+ The order of this path is important !
+
+ INCLUDEPATH:
+ \begin{verbatim}
+ c:/projects/java-1.1.X/GL4Java/CClassHeaders; \
+ c:/projects/java-1.1.X/GL4Java/CNativeCode; \
+ c:/java2/include; \
+ c:/java2/include/windows \
+ <the MSVC60 SDK PATH's ...>
+ \end{verbatim}
+
+ LIBPATH:
+ \begin{verbatim}
+ c:/WIN_NT/system32; \
+ <the MSVC60 SDK PATH's ...>
+ \end{verbatim}
+
+ WHERE:
+ Java2 is installed under {\tt c:/java2 }
+ GL4Java is installed under {\tt d:/projects/java-1.1.X/GL4Java }
+
+ \item Now just compile each project and the targets are
+ placed in the lib directory !
+
+ \item Copy the generated dll's (in the libs-directory)
+ to your windows system32 directory,
+ or (better) to your /java2/jre/bin directory .
+
+\end{enumerate}
+
+\latex{\end{minipage}}
+
+\section{Hacking}
+
+For a complete description of the makefile invokations see \ref{makeinvoke},
+page \pageref{makeinvoke}.
+
+You can call 'make x11' for Unix/X11, or 'make w32' for Windows or 'make mac' for Macintosh to create all wrapper classes, Java classes, etc. For Unix/X11 users the native libraries are created also.
+
+If you want to modify the sources, you have to edit the \*.skel files !!!
+E.g.: You should modify 'gl4java/GLContext.java.skel' instead of 'gl4java/GLContext.java', because 'gl4java/GLContext.java' will be generated !!!!
+Check the 'makefile' for more details !
+
+{\bf Again:} Look for *.skel files and modify these, because they will be
+taken to create the target source files without the prefix .skel !!!
+
+Documentation for sources will be created later !!
+Check \htmladdnormallink{gl4java.GLContext.html}{gl4java.GLContext.html}.
+
+For a \emph{step by step} instruction, please see chapter \ref{srcinstall} on page \pageref{srcinstall}.
+
+\chapter{Design\dag}
+
+Since Version 2.0.0 R1 the object model of GL4Java is completly changed !
+But it is very easy to port existing 1.X.X RX GL4Java stuff to the new
+object model. The script \htmladdnormallink{../../demos/change2GL4JavaV2.sh}{change2GL4JavaV2.sh} will help.
+
+GL4Java is designed to use the native OpenGL library, which should be installed
+on each platform. Instead of writing an own OpenGL library, we just write a wrapper to access the nativ platform dependend OpenGL library.
+
+\section{Native-Call to OpenGL}
+Native programs are written in a programing language, where the compiler
+is able to produce binary code for the platforms processor.
+These OpenGL programs will use the platforms OpenGL library.
+\emph{Use} means, that they load the library and call the procedures which
+exists in the loaded library.
+
+\section{Java-Call to OpenGL}
+The java program should act like a native program. Java programs should use
+the native OpenGL library on the specific platform.
+The java program must load the wrapper library, which will load the OpenGL library. Like the OpenGL library, the wrapper library is platform depended and will be load in runtime, a so called dynamic library.
+The platform independed java OpenGL application needs the platform depended wrapper library and all librarys the wrapper library needs, e.g.: the OpenGL library etc. .
+To run a java OpenGL application, the user must have the OpenGL library installed and must install the wrapper library - that's all.
+The java OpenGL applications have the performance like an native OpenGL application. The only reason for a performance less than the native one are the costs for the java procedures (to modify data etc.). The passing through of data from java to OpenGL and vice versa needs no special converting features, thus the passing does not consume much time.
+
+
+\subsection{JNI to OpenGL}
+
+\subsubsection{Data Type Mappings}
+Because java should pass it�s data without any time consuming convertion,
+we need a data type mapping style, where the OpenGL data types\cite{Woo97} fits in the
+java types and vice versa.
+The first and important criteria for a type match is the size of bytes.
+The secound and convinient criteria is to find aequivalent types in java,
+where less or no data converting must be done by the wrapper library and the
+java OpenGL programmer himself.
+Except for the marked OpenGL types we found a fine type matching which
+fullfill our needs. All \emph{unsigned} types must match in a byte-size
+java aequivalent, so a special java-casting must be done by the java OpenGL programmer. Because java programmer uses arrays, we generate the GL4Java function for all Java-Array-Types, to achieve compatibility with the \emph{GLvoid *}
+(see below).
+
+OpenGL Data Types Mapping to Java Types.
+\label{datamap}
+
+\bigskip
+
+\latex{\begin{minipage}{15cm}}
+\setcounter{footnote}{0}
+\setcounter{mpfootnote}{0}
+
+\begin{center}
+\begin{tabular}{lllll}
+\hline
+Data Type & C-Type & JNI-Type & Java-Type & OpenGL Type \\
+\hline
+8-bit integer & unsigned char & jboolean & boolean & GLboolean \\
+ & & & & \\
+8-bit integer & signed char & jbyte & byte & GLbyte \\
+ & & & & \\
+8-bit unsigned integer & unsigned char & jbyte\footnote[1]{No Java matching for unsigned, using extra conversion} & byte\footnotemark[1] & GLubyte, \\
+ & & & & \\
+16-bit integer & short & jshort & short & GLshort \\
+ & & & & \\
+16-bit unsigned integer & unsigned short & jshort\footnotemark[1] & short\footnotemark[1] & GLushort \\
+ & & & & \\
+32-bit integer & int or long & jint & int & GLint, \\
+ & & & & GLsizei \\
+ & & & & \\
+32-bit unsigned integer & unsigned int or & jint\footnotemark[1] & int\footnotemark[1] & GLuint, \\
+ & unsigned int & & & GLenum, \\
+ & & & & GLbitfield \\
+ & & & & \\
+32-bit floating-point & float & jfloat & float & GLfloat, \\
+ & & & & GLclampf \\
+ & & & & \\
+64-bit floating-point & double & jdouble & double & GLdouble, \\
+ & & & & GLclampd \\
+ & & & & \\
+32-bit integer & void * & jbyteArray\footnote[2]{No Java matching for pointers, using any arrays} & byte[]\footnotemark[2] & GLvoid * \\
+ & & jshortArray\footnotemark[2] & short[]\footnotemark[2] & GLvoid * \\
+ & & jintArray\footnotemark[2] & int[]\footnotemark[2] & GLvoid * \\
+ & & jfloatArray\footnotemark[2] & float[]\footnotemark[2] & GLvoid * \\
+ & & jdoubleArray\footnotemark[2] & double[]\footnotemark[2] & GLvoid * \\
+ & & jbooleanArray\footnotemark[2] & boolean[]\footnotemark[2] & GLvoid * \\
+ & & jlongArray\footnotemark[2] & long[]\footnotemark[2] & GLvoid * \\
+\end{tabular}
+\end{center}
+
+\latex{\end{minipage}}
+
+
+\subsubsection{JNI Generation}
+\label{jnidesign}
+
+The wrapper library which is called by the java application is specified by
+the Java Native Interface (JNI)\cite{JavaTuto}. All native functions, which should be called by the java application must be declared as a native function in a java class.
+E.g.:
+\begin{verbatim}
+public native void glClear ( int mask ) ;
+\end{verbatim}
+The JNI compiler creates a header file for the C programming language, e.g. \emph{foo.h}.
+This header file can be copied as an template to the C definition file, e.g. \emph{foo.c}. This definition file can modified to add the needed function bodies.
+The function bodies, the functions, only has to call its C function out of the OpenGL library with a standard data type convertion.
+
+In the begining we wrote some of the OpenGL wrapper functions by ourself,
+but later we learned that we can not guarante that all functions are wrapped and that all functions were almost bug free.
+
+To simplify the writing of the apropiate wrapper functions, we created a
+C-Header-File to Java-Native-Declarations plus C-Wrapper-Functions
+generator. We named this generator \emph{C2J}.
+
+Details see chapter \ref{c2jimpl} on page \pageref{c2jimpl}.
+
+\section{OpenGL's Connection to the Windowing-System}
+\label{windesign}
+OpenGL is specified as a 3D rendering machine. To view the rendering results,
+we need an visual output device, e.g. the monitor ;-).
+To simplify the monitor output OpenGL uses an existing operating system,
+which allows graphical output on the screen. The X-Window-System or MS-Windows is a well known an often distributed graphical interface, where the X-Window-System is avaiable on many platforms.
+The common tasks, means the minimum need, of a library which connects the OpenGL machine to the Windowing-System are:
+\begin{itemize}
+ \item connect the OpenGL machine to a window
+ \begin{itemize}
+ \item create a window
+ \item connect the window handel to the OpenGL handle/context
+ \item set up the window properties, e.g. colors
+ \item close the window
+ \end{itemize}
+ \item re-rendering with OpenGL when the window must be refreshed
+\end{itemize}
+
+See the java class implementation in chapter \ref{sunpack} on page \pageref{sunpack} to find the platforms window handle.
+
+\subsection{X-Window-System}
+OpenGL's interface to the X-Window-System (X)\cite{Barkakati97} is the GLX library.
+The GLX library\cite{Woo97} can connect the OpenGL machine\footnote{a instance of the OpenGL machine, the OpenGL context - in detail} to X.
+GLX supports all criteria specified above.
+
+\subsection{MS-Windows}
+OpenGL's interface to MS-Windows (MSW) is the WGL library.
+The WGL library\cite{Fosner97} can connect the OpenGL machine\footnote{a instance of the OpenGL machine, the OpenGL context - in detail} to MSW.
+MSW supports all criteria specified above.
+
+\section{OpenGL's Connection to the AWT}
+\label{glconawt}
+The Abstract Window Toolkit (AWT) is the windowing system of the java machine.
+The AWT is included in the standard java package. The AWT for Unix and MS-Windows uses native functions of the windowing system, to take advantages of the existing windowing system.
+To achieve the platform window-handle, we use the (since GL4Java Version 1.1.0)
+the following classes:
+\begin{itemize}
+ \item sun.awt.DrawingSurface
+ \item sun.awt.DrawingSurfaceInfo
+ \item sun.awt.X11DrawingSurface (for X11/motif)
+ \item sun.awt.Win32DrawingSurface (for Windows 32-bit)
+\end{itemize}
+
+Of course, these classes are not explicit for user purposes,
+but they do provide us with interfaces to achieve the needed native window handle. We got this technique from Java3D's Canvas3D (decompiled it ...).
+You can see this implementation in:
+\begin{itemize}
+ \item sun/awt/motif/X11HandleAccess.java
+ \item sun/awt/window/Win32HandleAccess.java
+\end{itemize}
+
+\section{OpenGL Mapping to Java}
+The JNI and data-type mapping (see \ref{datamap} on page \pageref{datamap})
+is allready specified above.
+
+What still need to be specified is the place of the java OpenGL native
+function declarations and which OpenGL librarys should be wrapped.
+
+\subsection{Convinient Placement}
+Because OpenGL is not an object-orientated API, OpenGL programmers does not
+use methods. To support the same OpenGL environment, we will use a java class,
+which contains:
+\begin{itemize}
+ \item window control
+ \item OpenGL functions
+\end{itemize}
+
+\subsection{Keeping the OpenGL C-API}
+
+\subsubsection{The Naming Convention}
+The GL4Java interface supports the OpenGLFrame class,
+which contains all OpenGL and GLU functions (glut in the near future :-) !
+The naming convention of all gl* and glu* functions in the
+OpenGLFrame class is exactly the same as in the original,
+so there are no problems in porting C code.
+Datatypes java does not support will by supported by binary compatible types,
+e.g. for \emph{unsigned byte} in
+\emph{glColor4ubv}, GL4Java uses a \emph{byte}-array !
+
+
+\chapter{Development Environment}
+\label{devenv}
+We use a directory structure as described above (see \ref{dirstruct}, page \pageref{dirstruct}).
+Many well known Unix tools will be used, included some java tools.
+
+\section{Unix Tools\dag}
+We use the follwing standard tools as our develeopment environment:
+\begin{enumerate}
+ \item c-compiler and linker (GNU-C, ...)
+ \item debugger (gdb, xxgdb)
+ \item JavaCC\cite{JavaCC} (a java lex \& yacc parser generator)
+ \item bash, make (GNU or other)
+ \item tar \& gzip as our archive toolkit
+\end{enumerate}
+
+\section{Windows Tools\ddag}
+All above named Unix tools are avaiable under MS-Windows 32 with the
+GNU-Win32 project by Cygnus\cite{GnuWin32}.
+We need an additional MS-Windows compiler, MC-Visual-C++ or Borland-C++
+are appropiate MS-Windows compilers.
+We took the Borland compiler, because of it's accessible,
+but we guess it does not make a different.
+
+\chapter{Implementation}
+\label{implementation}
+
+\section{Makefile\dag}
+\label{makefile}
+To manage the project, we wrote a makefile (used with make).
+Our makefile is able to generate the complete code, the demos, the documentation and the archived packages.
+The makefile resides in the projects root directory and is splitten
+into two files:
+\begin{itemize}
+ \item makefile (where all common rules resides)
+ \item symbols.mak (where all platform depended rules and macros resides)
+\end{itemize}
+
+A symbols.mak\* file must be created or copied \& edited for each platform
+and linked to symbols.mak. We support some symbols.mak files like:
+
+\begin{itemize}
+ \item symbols.mak.aix
+ \item symbols.mak.linux
+ \item symbols.mak.solaris
+ \item symbols.mak.win32
+\end{itemize}
+
+\subsection{Makefile Invokation}
+\label{makeinvoke}
+
+Here is the part of the makefile, which describes the different
+actions, which are possible !
+
+\begin{verbatim}
+#
+# for general creation (java + native-lib) invoke:
+#
+# make x11 : create java and native lib for unix/x11
+# make w32 : create java and native lib for windows32
+# make mac : create java and native lib for Macintosh
+#
+#
+# to copy the class-files to DEST_CLASSES_DIR, invoke:
+#
+# make classcpy
+#
+#
+# to save the native-library invoke after general creation:
+#
+# make unix2binpkg : put the created unix-lib to the binpkg-dir
+# make win2binpkg : put the created win-lib to the binpkg-dir
+# make mac2binpkg : put the created macintosh-lib to the binpkg-dir
+#
+#
+# to create the complete html documentation invoke
+#
+# make htmldoc : unix
+# make javadoc : unix (javadoc only)
+# make htmldocw32 : win32
+# make javadocw32 : win32 (javadoc only)
+#
+#
+# to put all together as an tar-gzip archive in the archive-dir, invoke:
+#
+# make archiv
+#
+#
+# for cleanup (without archive and binpkg !!) invoke:
+#
+# make clean : only temp-files (java, native)
+# make cleannative : only temp-files (native)
+# make cleanall : all temp-,java-,and native-files
+#
+\end{verbatim}
+
+\subsection{Make-Scripts to generate the librarys\dag}
+
+To support a platform independed creation for the wrapper libraries for
+the different Unix platforms, we wrote a shell script therefor,
+which will be invoked by the makefile.
+
+The following files contains the apropiate scripts:
+
+\latex{\begin{minipage}{15cm}}
+
+\begin{center}
+\begin{tabular}{ll}
+\tt mklibs/mkexp.aix & \\
+\tt mklibs/mklib.aix & \\
+\tt mklibs/mklib.linux & \\
+\tt mklibs/mklib.solaris & \\
+\tt mklibs/mkslib.aix & \\
+\tt mklibs/mkslib.linux & \\
+\tt mklibs/mkslib.solaris & \\
+\end{tabular}
+\end{center}
+
+\latex{\end{minipage}}
+
+
+\section{C2J Version 1.0\dag}
+\label{c2jimpl}
+As decribed in chapter \ref{jnidesign} on page \pageref{jnidesign}, we use C2J as our OpenGL wrapper functions generator.
+C2J is our JNI and MSJDirect file generator. C2J creates the java native function declarations and the C functions. C2J gets a modified Mesa-OpenGL header file as it's input
+and generates the java native declarations in one file, and the complete C functions in another file.
+C2J is written in an Extended Backus Naur Form (EBNF) of the JavaCC\cite{JavaCC}parser generator.
+We modified the C parser provided with the JavaCC to write C2J.
+
+The C2J syntax can seen in \htmladdnormallink{GL4Java/C2J/C2J.jj}{./C2J.html} !
+
+The C2J output files are glued with the other parts needed by the java class
+and the C definition-file to the complete sources.
+
+The new C2J Version supports the following new features:
+\begin{enumerate}
+\item Only the glGetString, gluGetString and gluErrorString functions must be written manualy now !!!!
+
+\item Better compatibility with \emph{GLvoid *} arguments.
+ This means
+\begin{verbatim}
+ "byte[]", "short[]", "int[]",
+ "float[]", "double[]", "boolean[]", "long[]"
+\end{verbatim}
+ functions are generated !
+
+\item Better MS-JDirect (MS-JVM) integeration !
+\end{enumerate}
+
+
+The source files are:
+
+\latex{\begin{minipage}{15cm}}
+\setcounter{footnote}{0}
+\setcounter{mpfootnote}{0}
+
+\begin{center}
+\begin{tabular}{ll}
+\tt C2J/C2J.jj & the parser definition (input for JavaCC) \\
+\tt C2J/makefile & the lokal makefile \\
+\tt C2J/gl-enum-auto.orig & the OpenGL enumeration part, C2J input \\
+\tt C2J/gl-proto-auto.orig & the OpenGL declaration part, C2J input \\
+\tt C2J/glu-enum-auto.orig & the GLU enumeration part\\
+\tt C2J/glu-proto-auto.orig & the GLU declarartion part \\
+\tt C2J/manual/gl-manualCoded.orig & the GL manual coded C2J input \\
+\tt C2J/manual/glu-manualCoded.orig &the GL manual coded C2J input part \\
+\tt C2J/manual/gl-enum-manualCoded.java & the GL manual coded java part \\
+\tt C2J/manual/glu-enum-manualCoded.java & the GLU manual coded java part \\
+\tt C2J/manual/glu-manualCodedImplJNI.c & the GLU manual coded c part \\
+\tt C2J/manual/glu-manualCodedImplJNI.h & the GLU manual coded c part \\
+\tt C2J/manual/glu-manualCodedImplJNI.java & the GLU manual coded java part \\
+\tt C2J/manual/glu-manualCodedImplMSJVM.java & the GLU manual coded java part \\
+\tt C2J/manual/glu-manualCodedVirt.java & the GLU manual coded java part \\
+\tt C2J/manual/gl-manualCodedImplJNI.c & the GL manual coded c part \\
+\tt C2J/manual/gl-manualCodedVirt.java & the GL manual coded java part \\
+\tt C2J/manual/gl-manualCodedImplJNI.java & the GL manual coded java part \\
+\tt C2J/manual/gl-manualCodedImplMSJVM.java & the GL manual coded java part \\
+\end{tabular}
+\end{center}
+
+\latex{\end{minipage}}
+
+
+
+\section{GLEnum}
+\label{glenum}
+
+Since Version 2.0.0, GLEnum is the interface, where all C-API OpenGL enumerations are defined as static final.
+This class is generated, for details see chapter \ref{c2jimpl} on page \pageref{c2jimpl}.
+
+\section{GLUEnum}
+\label{glenum}
+
+Since Version 2.0.0, GLUEnum is the interface, where all C-API GLU enumerations are defined as static final.
+This class is generated, for details see chapter \ref{c2jimpl} on page \pageref{c2jimpl}.
+
+\section{GLFunc}
+\label{glfunc}
+
+Since Version 2.0.0, GLFunc is the interface, where all C-API OpenGL functions are specified.
+This class is almost generated, for details see chapter \ref{c2jimpl} on page \pageref{c2jimpl}.
+
+\section{GLFuncJauJNI}
+
+Since Version 2.0.0, GLFuncJauJNU is one implementation of the interface GLFunc.
+This class is almost generated, for details see chapter \ref{c2jimpl} on page \pageref{c2jimpl}.
+
+\section{GLUFunc}
+\label{glufunc}
+
+Since Version 2.0.0, GLUFunc is the interface, where all C-API GLU functions are specified.
+This class is almost generated, for details see chapter \ref{c2jimpl} on page \pageref{c2jimpl}.
+
+\section{GLUFuncJauJNI}
+
+Since Version 2.0.0, GLUFuncJauJNU is one implementation of the interface GLUFunc.
+This class is almost generated, for details see chapter \ref{c2jimpl} on page \pageref{c2jimpl}.
+
+\section{GLContext}
+\label{glcontext}
+
+Since Version 2.0.0, GLContext is the central java class for the OpenGL bindings and it is defined as a package member of the java package gl4java.
+GLContext trys to connect the OpenGL machine to the AWT window of
+the given Component, which is represented by the platform specific window.
+
+GLContext also can loads all the needed libraries and GLFunc and GLUFunc
+implementations.
+
+These are the basic source files, look at \ref{gl4javabasefiles}, page \pageref{gl4javabasefiles}.
+
+\section{GLFrame}
+\label{glframe}
+
+Since Version 2.0.0, GLFrame is moved out !
+
+\section{GLCanvas}
+\label{glcanvas}
+
+Since Version 2.0.0, GLCanvas is one AWT toolkit implementation for the OpenGL bindings and it is defined as a package member of the java package gl4java.awt.
+GLCanvas is derived from AWT's Canvas. While creation GLCanvas
+trys to create a GLContext instance to connect the OpenGL machine to the AWT window, which is represented by the platform specific window.
+
+Also the refresh signal is routed to OpenGL, so OpenGL can re-render.
+
+These are the basic source files, look at \ref{gl4javabasefiles}, page \pageref{gl4javabasefiles}.
+
+\section{GLAnimCanvas\dag\ddag}
+\label{glanimcanvas}
+
+Since Version 2.0.0, GLAnimCanvas is one AWT toolkit implementation for the OpenGL bindings and it is defined as a package member of the java package gl4java.awt.
+GLAnimCanvas is derived from GLCanvas.
+GLAnimCanvas addds thread support for animation, thats where the Anim stands for in GLAnimCanvas.
+
+\latex{\begin{minipage}{15cm}}
+\label{gl4javabasefiles}
+
+\begin{center}
+\begin{tabular}{ll}
+\tt gl4java/GLEnum.java & The OpenGL Enumerates as an interface. \\
+\tt gl4java/GLUEnum.java & The GLU Enumerates as an interface. \\
+ & \\
+\tt gl4java/GLFunc.java & The OpenGL functions interface. \\
+\tt gl4java/GLUFunc.java & The GLU functions interface. \\
+ & \\
+\tt gl4java/GLFuncJauJNI.java & One OpenGL functions implementation. \\
+\tt gl4java/GLUFuncJauJNI.java & One GLU functions implementation. \\
+ & \\
+\tt gl4java/GLContext.java & The OpenGL-Context Window service, and lib and class loader. \\
+ & \\
+\tt gl4java/GL4JavaInitException.java & Our Exception \\
+ & \\
+\tt gl4java/awt/GLCanvas.java & One OpenGL AWT binding \\
+\tt gl4java/awt/GLAnimCanvas.java & Another OpenGL AWT binding \\
+ & \\
+\tt gl4java/jau/awt/WinHandleAccess.java & Interface to the platform's \\
+ & windowing system \\
+\end{tabular}
+\end{center}
+
+\latex{\end{minipage}}
+
+
+Java OpenGL programmers can derive their classes either from GLCanvas.
+See the annotated Example in chapter \ref{olympicCvs} on page \ref{olympicCvs}.
+
+See the Html-Source documentation for details (see \ref{GL4JavaHtml} on page \pageref{GL4JavaHtml}).
+
+\section{Extensions for the sun-package\dag\ddag}
+\label{sunpack}
+
+Like described in chapter \ref{windesign} on page \pageref{windesign},
+we need to find out the platforms window handle to connect it with the OpenGL machine.
+
+The used motif and windows sub-packages are not defined as a standard,
+but they exist as long Java 1.0.2 exist and they are the only way to
+find out the unique AWT window's platform-window-handle from the java-side.
+
+See the Html-Source documentation for details (see \ref{GL4JavaHtml} on page \pageref{GL4JavaHtml}).
+
+Here are the apropiate source files:
+
+\latex{\begin{minipage}{15cm}}
+
+\begin{center}
+\begin{tabular}{ll}
+\tt sun/awt/motif/X11HandleAccess.java & X-Window-System glue \\
+\tt sun/awt/windows/Win32HandleAccess.java & MS-Windows glue \\
+\tt sun/awt/macintosh/MacHandleAccess.java & Macintosh glue \\
+\end{tabular}
+\end{center}
+See also \ref{glconawt} on page \pageref{glconawt}.
+
+\latex{\end{minipage}}
+
+\section{The Native Wrapper-Library Code\dag\ddag}
+\latex{\begin{minipage}{15cm}}
+
+As described in chapter \ref{windesign} on page \pageref{windesign}
+we need a connection between the platform depended window system and OpenGL.
+
+Here are the apropiate source files:
+
+\begin{center}
+\begin{tabular}{ll}
+\tt CNativeCode/OpenGL\_Win32.c & MS-Windows window access \\
+\tt CNativeCode/OpenGL\_X11.c & X-Window-System window access\\
+\tt CNativeCode/OpenGL\_misc.c & common miscelaneos sources \\
+\tt CNativeCode/OpenGLU\_funcs.c.skel & common GLU source-part \\
+\tt CNativeCode/OpenGLU\_funcs.c & glued source from the *.skel and C2J output \\
+\tt CNativeCode/OpenGL\_funcs.c.skel & common GL source-part\\
+\tt CNativeCode/OpenGL\_funcs.c & glued source from the *.skel and C2J output \\
+\tt CNativeCode/gl.aix.not.c & Dummy GL functions not defined in AIX OpenGL library \\
+\tt CNativeCode/gl.aix.not.h & Dummy GL functions not defined in AIX OpenGL library \\
+\tt CNativeCode/gl.win32.not.c & Dummy GL functions not defined in MS-Windows OpenGL library \\
+\tt CNativeCode/gl.win32.not.h & Dummy GL functions not defined in MS-Windows OpenGL library \\
+\tt CNativeCode/winstuff.h & Miscelaneous declarations missing in MS-Windows \\
+\end{tabular}
+\end{center}
+
+\latex{\end{minipage}}
+
+See the Source documentation for details.
+
+
+\chapter{Examples\dag\ddag}
+
+\section{The olympicCvs GLAnimCanvas derivation}
+\label{olympicCvs}
+\begin{verbatim}
+/**
+ * @(#) olympicCvs.java
+ */
+
+import gl4java.awt.GLAnimCanvas;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.Math;
+
+
+class olympicCvs extends GLAnimCanvas
+{
+/**
+ * Instead of using suspend (JAVA2)
+ *
+ * @see run
+ */
+ protected boolean threadSuspended = true;
+
+ static final double M_PI= 3.141592654;
+ static final double M_2PI= 2*3.141592654;
+
+ static final int
+ XSIZE= 100,
+ YSIZE= 75,
+ RINGS= 5,
+ BLUERING= 0,
+ BLACKRING= 1,
+ REDRING= 2,
+ YELLOWRING =3,
+ GREENRING =4,
+ BACKGROUND =8,
+ BLACK = 0,
+ RED=1,
+ GREEN=2,
+ YELLOW=3,
+ BLUE=4,
+ MAGENTA=5,
+ CYAN=6,
+ WHITE=7;
+
+ byte rgb_colors[][];
+ int mapped_colors[];
+ float dests[][];
+ float offsets[][];
+ float angs[];
+ float rotAxis[][];
+ int iters[];
+ int theTorus;
+
+ float lmodel_ambient[] = {0.0f, 0.0f, 0.0f, 0.0f};
+ float lmodel_twoside[] = {0.0f, 0.0f, 0.0f, 0.0f};
+ float lmodel_local[] = {0.0f, 0.0f, 0.0f, 0.0f};
+ float light0_ambient[] = {0.1f, 0.1f, 0.1f, 1.0f};
+ float light0_diffuse[] = {1.0f, 1.0f, 1.0f, 0.0f};
+ float light0_position[] = {0.8660254f, 0.5f, 1f, 0f};
+ float light0_specular[] = {1.0f, 1.0f, 1.0f, 0.0f};
+ float bevel_mat_ambient[] = {0.0f, 0.0f, 0.0f, 1.0f};
+ float bevel_mat_shininess[] = {40.0f, 0f, 0f, 0f};
+ float bevel_mat_specular[] = {1.0f, 1.0f, 1.0f, 0.0f};
+ float bevel_mat_diffuse[] = {1.0f, 0.0f, 0.0f, 0.0f};
+
+ public olympicCvs (int w, int h,
+ String glClass, String gluClass )
+ {
+ super(w, h, glClass, gluClass );
+ }
+
+ public void init()
+ {
+ rgb_colors=new byte[RINGS][3];
+ mapped_colors=new int [RINGS];
+ dests=new float [RINGS][3];
+ offsets=new float[RINGS][3];
+ angs=new float[RINGS];
+ rotAxis=new float[RINGS][3];
+ iters=new int[RINGS];
+
+ int i;
+ float top_y = 1.0f;
+ float bottom_y = 0.0f;
+ float top_z = 0.15f;
+ float bottom_z = 0.69f;
+ float spacing = 2.5f;
+
+ ReInit();
+ for (i = 0; i < RINGS; i++) {
+ rgb_colors[i][0] = rgb_colors[i][1] = rgb_colors[i][2] = (byte)0;
+ }
+ rgb_colors[BLUERING][2] = (byte)255;
+ rgb_colors[REDRING][0] = (byte)255;
+ rgb_colors[GREENRING][1] = (byte)255;
+ rgb_colors[YELLOWRING][0] = (byte)255;
+ rgb_colors[YELLOWRING][1] = (byte)255;
+ mapped_colors[BLUERING] = BLUE;
+ mapped_colors[REDRING] = RED;
+ mapped_colors[GREENRING] = GREEN;
+ mapped_colors[YELLOWRING] = YELLOW;
+ mapped_colors[BLACKRING] = BLACK;
+
+ dests[BLUERING][0] = -spacing;
+ dests[BLUERING][1] = top_y;
+ dests[BLUERING][2] = top_z;
+
+ dests[BLACKRING][0] = 0.0f;
+ dests[BLACKRING][1] = top_y;
+ dests[BLACKRING][2] = top_z;
+
+ dests[REDRING][0] = spacing;
+ dests[REDRING][1] = top_y;
+ dests[REDRING][2] = top_z;
+
+ dests[YELLOWRING][0] = -spacing / 2.0f;
+ dests[YELLOWRING][1] = bottom_y;
+ dests[YELLOWRING][2] = bottom_z;
+
+ dests[GREENRING][0] = spacing / 2.0f;
+ dests[GREENRING][1] = bottom_y;
+ dests[GREENRING][2] = bottom_z;
+
+ theTorus = gl.glGenLists(1);
+ gl.glNewList(theTorus, GL_COMPILE);
+ FillTorus(0.1f, 8, 1.0f, 25);
+ gl.glEndList();
+
+ gl.glEnable(GL_CULL_FACE);
+ gl.glCullFace(GL_BACK);
+ gl.glEnable(GL_DEPTH_TEST);
+ gl.glClearDepth(1.0);
+
+ gl.glLightfv(GL_LIGHT0, GL_AMBIENT, light0_ambient);
+ gl.glLightfv(GL_LIGHT0, GL_DIFFUSE, light0_diffuse);
+ gl.glLightfv(GL_LIGHT0, GL_SPECULAR, light0_specular);
+ gl.glLightfv(GL_LIGHT0, GL_POSITION, light0_position);
+ gl.glEnable(GL_LIGHT0);
+
+ gl.glLightModelfv(GL_LIGHT_MODEL_LOCAL_VIEWER, lmodel_local);
+ gl.glLightModelfv(GL_LIGHT_MODEL_TWO_SIDE, lmodel_twoside);
+ gl.glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);
+ gl.glEnable(GL_LIGHTING);
+
+ gl.glClearColor(0.5f, 0.5f, 0.5f, 0.0f);
+
+ gl.glMaterialfv(GL_FRONT, GL_AMBIENT, bevel_mat_ambient);
+ gl.glMaterialfv(GL_FRONT, GL_SHININESS, bevel_mat_shininess);
+ gl.glMaterialfv(GL_FRONT, GL_SPECULAR, bevel_mat_specular);
+ gl.glMaterialfv(GL_FRONT, GL_DIFFUSE, bevel_mat_diffuse);
+
+ gl.glColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE);
+ gl.glEnable(GL_COLOR_MATERIAL);
+ gl.glShadeModel(GL_SMOOTH);
+
+ gl.glMatrixMode(GL_PROJECTION);
+ glu.gluPerspective(45f, 1.33f, 0.1f, 100.0f);
+ gl.glMatrixMode(GL_MODELVIEW);
+ glj.gljCheckGL();
+ }
+
+ public void display()
+ {
+ int i;
+
+ /* Standard GL4Java Init */
+ if( glj.gljMakeCurrent(true) == false )
+ {
+ System.out.println("problem in use() method");
+ System.exit(0);
+ return;
+ }
+
+ gl.glPushMatrix();
+
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+ glu.gluLookAt(0, 0, 10, 0, 0, 0, 0, 1, 0);
+
+ for (i = 0; i < RINGS; i++) {
+ gl.glColor3ubv(rgb_colors[i]);
+ gl.glPushMatrix();
+ gl.glTranslatef(dests[i][0] + offsets[i][0], dests[i][1] + offsets[i][1],
+ dests[i][2] + offsets[i][2]);
+ gl.glRotatef(angs[i], rotAxis[i][0], rotAxis[i][1], rotAxis[i][2]);
+ gl.glCallList(theTorus);
+ gl.glPopMatrix();
+ }
+
+ gl.glPopMatrix();
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ public void animationCalc()
+ {
+ int i, j;
+
+ for (i = 0; i < RINGS; i++) {
+ if (iters[i]!=0) {
+ for (j = 0; j < 3; j++) {
+ offsets[i][j] = Clamp(iters[i], offsets[i][j]);
+ }
+ angs[i] = Clamp(iters[i], angs[i]);
+ iters[i]--;
+ }
+ }
+ if (iters[0]==0)
+ {
+ shallWeRender=false;
+ }
+ }
+
+ public void ReInit()
+ {
+ int i;
+ float deviation;
+
+ deviation = MyRand() / 2;
+ deviation = deviation * deviation;
+ for (i = 0; i < RINGS; i++) {
+ offsets[i][0] = MyRand();
+ offsets[i][1] = MyRand();
+ offsets[i][2] = MyRand();
+ angs[i] = (float) (260.0 * MyRand());
+ rotAxis[i][0] = MyRand();
+ rotAxis[i][1] = MyRand();
+ rotAxis[i][2] = MyRand();
+ iters[i] = ( int ) (deviation * MyRand() + 60.0);
+ }
+ }
+
+ public void FillTorus(float rc, int numc, float rt, int numt)
+ {
+ int i, j, k;
+ double s, t;
+ float x, y, z;
+
+ for (i = 0; i < numc; i++) {
+ gl.glBegin(GL_QUAD_STRIP);
+ for (j = 0; j <= numt; j++) {
+ for (k = 1; k >= 0; k--) {
+ s = (i + k) % numc + 0.5;
+ t = j % numt;
+
+ x = (float) Math.cos(t * M_2PI / numt) * (float) Math.cos(s * M_2PI / numc);
+ y = (float) Math.sin(t * M_2PI / numt) * (float) Math.cos(s * M_2PI / numc);
+ z = (float) Math.sin(s * M_2PI / numc);
+ gl.glNormal3f(x, y, z);
+
+ x = (rt + rc * (float) Math.cos(s * M_2PI / numc)) * (float) Math.cos(t * M_2PI / numt);
+ y = (rt + rc * (float) Math.cos(s * M_2PI / numc)) * (float) Math.sin(t * M_2PI / numt);
+ z = rc * (float) Math.sin(s * M_2PI / numc);
+ gl.glVertex3f(x, y, z);
+ }
+ }
+ gl.glEnd();
+ }
+ }
+
+ public float Clamp(int iters_left, float t)
+ {
+
+ if (iters_left < 3) {
+ return 0.0f;
+ }
+ return (iters_left - 2) * t / iters_left;
+ }
+
+ public float MyRand()
+ {
+ // return 10.0 * (drand48() - 0.5);
+ return (float) ( 10.0 * (Math.random() - 0.5) );
+ }
+
+}
+\end{verbatim}
+
+\section{Further Examples\dag\ddag}
+Please look in the directory demos to look at the samples.
+You can start the glDemosCvs (gl4java.awt.GLAnimCanvas) java application to see them all running.
+
+\chapter{Further Documentation\dag}
+
+\subsection{\htmladdnormallink{Readme}{../../README.txt}}
+\label{readme}
+\begin{latexonly}
+\input{../README.txt}
+\end{latexonly}
+
+\subsection{\htmladdnormallink{Changes}{../../CHANGES.txt}}
+\label{changes}
+\begin{latexonly}
+\input{../CHANGES.txt}
+\end{latexonly}
+
+\subsection{\htmladdnormallink{License}{../../LICENSE.txt}}
+\label{license}
+\begin{latexonly}
+\input{../LICENSE.txt}
+\end{latexonly}
+
+\section{Package-Documentation (javadoc)}
+\label{GL4JavaHtml}
+To look at the javadoc generated source documentation, go to
+\htmladdnormallink{packages.html}{packages.html}.
+
+Only the paperware produced for the FH-Bielefeld contains a printout of this pages as an extra appendix.
+
+\section{Important Links}
+
+At our homepage we generated some important links at
+\htmladdnormallink{../../LINKS.html}{../../LINKS.html}.
+
+
+\chapter{Resume}
+\section{Contact us}
+Like we described in the Foreword, we would be very thankfull for any response.
+\begin{itemize}
+ \item \htmladdnormallink{[email protected]}{mailto:[email protected]} 1st email adress
+ \item \htmladdnormallink{a\[email protected]}{mailto:[email protected]} 2nd email adress
+ \item \htmladdnormallink{Homepage: http://www.jausoft.com}{http://www.jausoft.com}
+\end{itemize}
+
+\subsection{\htmladdnormallink{Thanxs}{../../THANXS.txt}}
+\label{thanxs}
+\begin{latexonly}
+\input{../THANXS.txt}
+\end{latexonly}
+
+\appendix
+
+\latex{\input{OGLJavaBasic.tex}}
+
+\begin{thebibliography}{99}
+ \bibitem{SGI97} Silicon Graphics: OpenGL; \htmladdnormallink{http://www.opengl.org}{http://www.opengl.org}
+
+ \bibitem{Woo97} Woo, Mason: OpenGL Programming Guide 2nd Edition; Addison Wesley Developer Press April 1997; ISBN 0-0201-46138-2; \htmladdnormallink{http://www.aw.com/devpress}{http://www.aw.com/devpress}
+
+ \bibitem{Fosner97} Ron Fosner: OpenGL Programming for Windows 95 and Windows NT; Addison Wesley Second Printing April 1997; \htmladdnormallink{http://www.aw.com/devpress}{http://www.aw.com/devpress}
+
+ \bibitem{Barkakati97} Nabajyoti Barkakati: X Window System Programming; Sams Publishing Secound Edition
+
+ \bibitem{JavaTuto} Mary Campione and Kathy Walrath: The Java Tutorial; Sun Microsystems; \htmladdnormallink{http://www.javasoft.com/docs/books/tutorial/index.html}{http://www.javasoft.com/docs/books/tutorial/index.html}
+
+ \bibitem{Chan97} Leo Chan ([email protected]): OpenGL4Java; \htmladdnormallink{http://ftp.cgl.uwaterloo.ca/pub/software/meta/OpenGL4java.html}{http://ftp.cgl.uwaterloo.ca/pub/software/meta/OpenGL4java.html}
+
+ \bibitem{King97} Adam King ([email protected]): OpenGL4Java; \htmladdnormallink{http://www.magma.ca/\%7Eaking/java}{http://www.magma.ca/\%7Eaking/java}
+
+ \bibitem{Reilly97} Tommy Reilly ([email protected]): Jogl; \htmladdnormallink{http://www.pajato.com/jogl}{http://www.pajato.com/jogl}
+
+ \bibitem{JavaCC} Sun Microsystems: JavaCC Version 1.1; \htmladdnormallink{http://www.metamata.com/JavaCC/}{http://www.metamata.com/JavaCC/}
+
+ \bibitem{Kopka} Helmut Kopka: \LaTeX\ : Eine Einf"uhrung; Addison-Wesley 1991; ISBN 3-89319-338-3
+
+ \bibitem{GnuWin32} Cygnus Solutions, GNU-Win32 Project Version b18; \htmladdnormallink{http://www.cygnus.com/misc/gnu-win32}{http://www.cygnus.com/misc/gnu-win32}
+
+ \bibitem{ProfBunse} Prof. Dr. Wolfgang Bunse ([email protected]); Fachhochschule Bielefeld; \htmladdnormallink{http://www.fh-bielefeld.de}{http://www.fh-bielefeld.de}
+
+ \bibitem{GL4JavaHome} Goethel: GL4Java Homepage; \htmladdnormallink{http://www.jausoft.com}{http://www.jausoft.com}
+
+ \bibitem{Dragos96} Nikos Drakos ([email protected]): Latex2Html; \htmladdnormallink{http://cbl.leeds.ac.uk/nikos/tex2html/doc/latex2html/latex2html.html}{http://cbl.leeds.ac.uk/nikos/tex2html/doc/latex2html/latex2html.html}
+
+\end{thebibliography}
+
+\end{document}
diff --git a/docs-src/OGLJavaBasic.tex b/docs-src/OGLJavaBasic.tex
new file mode 100644
index 0000000..b5c2223
--- /dev/null
+++ b/docs-src/OGLJavaBasic.tex
@@ -0,0 +1,786 @@
+%\documentclass[a4paper]{report}
+%\usepackage{german}
+
+%
+%\begin{document}
+%
+%\begin{titlepage}
+% {\LARGE
+% \begin{tabular}{p{20mm}l}
+% \multicolumn{2}{r}{\bf FH--Bielefeld}\\[4mm]
+% \hline \\[3mm]
+% & Einf"uhrung\\
+% & f"ur\\
+% & OpenGL \& Java\\[5mm]
+% & Atilla Kolac\\[5mm]
+% & Labor f"ur Parallelverarbeitung \\
+% & FH-Bielefeld\\[5mm]
+% \hline \\[20mm]
+% & \today
+% \end{tabular}
+% }
+%\end{titlepage}
+%
+%\tableofcontents
+%
+
+\chapter{OpenGL Einf"uhrung\ddag}
+
+\section{Was ist OpenGL?}
+OpenGL \cite{Woo97} \cite{Fosner97} wurde von Silicon Graphics,Inc.(SGI) entwickelt und ist eine verbreitete
+Hardware- und Betriebsunabh"angige Bibliothek f"ur die Erstellung von
+dreidimensionalen Grafiken.
+GL steht hierbei f"ur Grafics Library.
+
+Au"serdem stellt OpenGL eine unabh"angige Programmierschnittstelle dar.
+Wobei f"ur die Hardwareseite eine geeignete Implementation programmiert werden
+kann. Die Softwareschnittstelle besteht aus ca. 120 Kommandos, die zur
+Spezifikation von Objekten und Operationen ben"otigt werden.
+OpenGL ist client- und serverf"ahig. Das Protokoll welches OpenGL-Befehle
+"ubermittelt, ist identisch. Dadurch k"onnen OpenGL-Programme
+im Netzwerk ablaufen, in denen client und server Rechner verschiedenen
+Typs sind. Dies erreicht man indem die Kommandos zum Ablauf von Windows-Tasks
+oder zur Interaktion mit dem Benutzer nicht in dem OpenGL-Programm implementiert
+werden. Sondern diese Aufgaben werden direkt mit der
+Fensteroberfl"achenprogrammierung der
+entsprechenden Hardware mit"ubernommen.
+
+Der Sinn der OpenGL-Bibliothek ist es, zwei- und dreidimensionale Objekte in
+einem Frame Buffer zu \emph{rendern}. Dieser ist mit einem Pixelspeicher in der Grafik-
+Hardware eines PC vergleichbar.
+OpenGL ist streng prozedural. Das hei"st,
+da"s nicht das Aussehen eines Objektes beschrieben wird sondern wie das
+Objekt gezeichnet wird. Hierzu bedient sich OpenGL zwei - oder dreidimensionalen
+\emph{Vertices}. Diese repr"asentieren einen Punkt, z.B. den Endpunkt einer Linie
+oder eines Polygons. Die n"achste Ebene sind \emph{Primitive}, die aus einem oder
+mehreren \emph{Vertices} bestehen.
+
+Wie Vertices zu Primitiven zusammengesetzt werden und in ein Frame Buffer
+gezeichnet werden, wird durch eine Vielzahl von Einstellm"oglichkeiten
+kontrolliert.
+
+Mit OpenGL kann man weiterhin Oberfl"achen zeichnen, Beleuchtungsspezifikationen
+anwenden und Texturen verwenden.
+
+Die wichtigsten Schritte bis zum Rendern einer Szene
+
+\begin{enumerate}
+
+\item Aus den geometrischen Primitiven werden Formen konstruiert und damit
+mathematische Beschreibungen der Objekte erstellt.
+OpenGL sieht Punkte, Linien, Polygone, Bilder und Bitmaps als Primitive an.
+
+\item Die Objekte werden im dreidimensionalen Raum arrangiert und der gew"unschte
+\emph{Blickpunkt} "uber der Szene wird ausgesucht.
+
+\item Die Farben aller Objekte werden berechnet.
+Zwar sind die Farben f"ur die Objekte im Programm definiert,
+m"ussen jedoch neu berechnet werden falls sich das Objekt bewegt oder die
+Schattierung sich "andert.
+
+\item Die mathematische Beschreibung von Objekten und den ihnen beigef"ugten
+Farbinformationen werden in Bildschiermpixel konvertiert.
+Dieser Proze"s wird \emph{Rasterung} genannt.
+
+\end{enumerate}
+
+
+Alle Daten, ob sie nun Geometrien oder Pixel beschreiben, k"onnen in einer
+\emph{Display List} gesichert werden.
+OpenGL unterscheidet zwischen zwei Berechnungsformen:
+Die Berechnung der Grafik wird sofort ausgef"uhrt (\emph{immediate-mode}).
+Das bedeutet wenn das Kommando zum Zeichnen eines Objektes abgesetzt wird,
+wird das Objekt gezeichnet. Dieser Modus ist in OpenGL voreingestellt.
+Weiterhin lassen sich Kommandos in einer \emph{Display List} sichern, um sie sp"ater
+auszuf"uhren.
+Die sofortige Ausf"uhrung der Grafik l"asst sich einfacher programmieren,
+das Sichern in einer Liste ist effizienter.
+
+\section{Grundlagen}
+
+\subsection{Client- Serverprotokoll}
+
+\subsection{Datentypen}
+
+\subsection{Beleuchtung}
+OpenGL berechnet die Farben jedes Pixels, bevor die Szene dargestellt wird
+und speichert sie im Frame Buffer ab. Dabei wird das in der Szene benutzte Licht
+berechnet, und die Art, wie die Objekte in der Szene das Licht reflektieren
+oder absorbieren sollen.
+Ein unbeleuchtetes dreidimensionales Objekt kann nicht von einem
+zweidimensionalen Objekt unterschieden werden.
+Denn auf einer zweidimensionalen Fl"ache, sprich unser Bildschirm,
+wird die dreidimensionalit"at durch die Art der Beleuchtung und der
+Schattierung erreicht.
+Das zeigt, wie wesentlich die Beziehung zwischen Objekten und dem Licht
+in einer dreidimensionalen Szene ist.
+OpenGL stellt Licht und Schatten durch Zerlegung der Objektoberfl"ach in
+bestimmte rote, gr"une und blaue Komponenten dar.
+Der Ort der Lichtquelle, sein Einstrahlungswinkel und Art m"ussen programmiert
+werden.
+
+Das Beleuchtungsmodell in OpenGL besteht aus vier Komponenten:
+\emph{emitted, ambient, diffuse und specular}.
+Alle vier Komponenten bewirken eine unterschiedliche Beleuchtungsart.
+Sie werden getrennt angegeben und danach zusammenaddiert,
+so das die Szene in das gew"unschte Licht gesetzt wird.
+
+\section{Die Programmierung}
+
+\subsection{Namenskonvention}
+
+\subsection{Die Kommandosyntax}
+OpenGL-Kommandos beginnen in der Programmiersprache C
+mit dem Pr"afix \emph{gl},
+jedes Wort beginnt mit einem Gro"sbuchstaben ( z.B. glClearColor() ).
+Konstanten beginnen mit dem gleichen Pr"afix,
+allerdings werden sie in Gro"sbuchstaben geschrieben und durch Unterstriche
+verbunden ( z.B. GL\_CLEAR\_BUFFER\_BIT ).
+in dem Kommando \emph{glColor3f()} steht 3 f"ur die Anzahl der gegebenen Argumente,
+f steht f"ur die Gleitkommazahlen.
+
+Die ANSI-C-Implementation von OpenGL erm"oglicht bis zu 8 verschiedene
+Datentypen.
+Die Datentypen umfassen 8, 16 und 32-Bit-Integer, im signed- und unsigned-
+Format und 32- oder 64-Bit-Gleitkommazahlen.
+Einige OpenGL-Kommandos sind mit dem Endbuchstaben v versehen, was darauf hindeutet, da"s
+das Kommando einen Zeiger auf einen Vektor oder Feld beinhaltet.
+
+\subsection{Die Bibliotheken}
+OpenGL bietet eine Anzahl leistungsf"ahiger und einfacher Kommandos zum Rendern.
+Alle komplexen Zeichnungen m"ussen mit diesen Kommandos ausgef"uhrt werden.
+Deshalb ist es m"oglich, eine eigene Bibliothek zu schreiben, die auf
+OpenGL aufsetzt. Damit l"a"st sich z.B. die Behandlung der Fenster vereinfachen.
+
+Hier sind zwei sehr verbreite Bibliotheken aufgelistet:
+\begin{itemize}
+\item Die \emph{OpenGL Utility Library (GLU)} enth"alt einige Routinen die einfachere
+OpenGL Kommandos benutzt. Es werden Funktionen zur Vereinbarung von Matrizen f"ur
+besondere Betrachtungsorientierungen und Projektionen und zum Rendern von Oberfl"achen
+definiert.
+GLU-Funktionen sind durch den Pr"afix \emph{glu} zu erkennen.
+
+\item Die OpenGL-Erweiterung f"ur das X-Windows System (GLX) sieht die Erzeugung
+eines OpenGL-Kontextes vor und die Hinzuf"ugung eines Fensters, in dem gezeichnet
+werden kann (drawable window), falls auf einem Rechner mit X-Window System
+gearbeitet wird.
+GLX-Funktionen besitzen das Pr"afix \emph{glx}.
+\end{itemize}
+
+Hinzukommen noch eine gro"se Anzahl weiterer Bibliotheken, die wir hier
+verst"andlicherweise nicht aufz"ahlen k"onnen.
+
+
+
+\subsection{Die OpenGL Windows-Programmierung}
+Bevor die OpenGL-Bibliothek unter MS-Windows verwendet werden kann, m"ussen
+eine Reihe von Initialisierungsschritte ausgef"uhrt werden.
+Jede Windows-OpenGL-Applikation mu"s seinen \emph{Rendering Context} ( OpenGL-Seite )
+mit seinem \emph{Device Context} ( Windows-Seite ) verbinden. Hierzu mu"s zuerst die
+Win32-Funktion \emph{SetPixelFormat} und danach die Funktion \emph{wglCreateContext} mit
+dem Device Context Handle Parameter aufgerufen werden. Ist dies erfolgreich,
+gibt wglCreateContext einen Rendering Context Handle des Typs \emph{HGLRC} zur"uck.
+OpenGL unter Windows kennt zwei Typen von Pixel-Modi:
+Einen Modus, der die direkte Angabe von Pixelfarben erlaubt.
+Und ein Modus, der die Auswahl der Farbe aus einer Palette unterst"utzt.
+
+Es gibt spezielle Anforderungen durch OpenGL an ein Ausgabefenster.
+Es mu"s mit den Fensterstilen \emph{WS\_CLIPSIBLINGS} und \emph{WS\_CLIPCHILDREN} initialisiert
+sein um OpenGL Kompabilit"at zu gew"ahrleisten.
+Um die Perfomance der Applikation zu erh"ohen, sollte das Fenster einen
+NULL-Hintergrund haben, da dieser sowieso durch die OpenGL-Bibliothek
+gel"oscht wird.
+Bevor ein Rendering Context verwendet werden kann, mu"s er mit der wglMakeCurrent
+Funktion als der aktuelle Context bestimmt werden. Ist der Rendering Context
+bereit um Kommandos entgegenzunehmen k"onnen weitere Initialisierung-Routinen
+aufgerufen werden. Z.B. um den Frame Buffer zu l"oschen, Koordinatentransformationen
+aufzusetzen, Lichtquellen zu konfigurieren oder andere Optionen zu setzen.
+
+Ein solcher Initialisierungsschritt, der nicht ausgelassen werden darf,
+ist der Aufruf der \emph{glViewport}-Funktion. Sie initialisiert oder modifiziert
+die gr"o"se des\emph{ Rendering Viewports}. Typischerweise wird diese Funktion
+ganz zu Anfang der Applikation aufgerufen und dann jedesmal wenn sie eine
+\emph{WM\_SIZE}-Meldung erh"alt. Diese zeigt eine Gr"o"sen"anderung des Fensters an.
+
+
+\chapter{Java Einf"uhrung\ddag}
+
+Weitere englischsprachige Dokumentationen sind von Sun Microsystems erh"altlich\cite{JavaTuto}.
+
+\section{Was ist Java?}
+Sun Microsystems stellte Mitte 1995 sein Java Language Enviroment (kurz Java)
+offiziell vor.
+
+Java ist eine objektorientierte Programmiersprache und
+ist Plattformunabh"angig.
+
+Java-Programme k"onnen entweder lokal auf einem Rechner ausgef"uhrt werden,
+oder aber auch "uber das Internet gestartet werden.
+
+\section{Grundlagen}
+
+\subsection{Die Entwicklungsumgebung}
+Sun Microsystems stellt f"ur die Plattformen Solaris(Sparc), Solaris(Intel) und Win32(Intel)\footnote{Windows 95 und Windows NT} die Java-Entwicklungsumgebung \emph{Java Development Kit (JDK)} kostenlos zur Verf"ugung.
+IBM stellt ihrerseits f"ur Windows 3.1(Intel), AIX(RS6000) und OS/2(Intel) die JDK zur Verf"ugung.
+
+Die JDK enth"alt den Java-Compiler, die JVM und die standard Bibliothek, sowie
+den Java-Debugger. Der Compiler als auch der Debugger sind Kommandozeilentools und enthalten keine GUI.
+
+Mittlerweilen ist auch das \emph{Java Runtime Environment (JRE)} ver"offentlicht, welches lediglich die JVM und die standard Bibliothek enth"alt. Eigene Java-Applikationen k"onnen mit dem JRE geb"undelt und herausgegeben werden.
+
+Der Java-Compiler generiert aus dem Java-Sourcecode den Java-Bytecode, wobei
+dieser Java-Bytecode von der Java-Virtuellen-Maschiene (JVM) interpretiert wird.
+
+Der Java-Sourcecode enth"alt die Klassendefinitionen.
+In der Regel gibt es je Klassendefinition eine Quelldatei.
+Der Dateiname der Quelldatei setzt sich zusammen aus dem Klassennamen und der Dateinamensendung \emph{.java}. Z.B. ist die Klassendefinition fuer \emph{Foo} in der Datei \emph{Foo.java} enthalten. Gross- und Kleinschreibung ist hierbei zu beachten.
+
+Der Java-Compiler "ubersetzt die Quelldatei mit der Namensendung \emph{.java} in die Zieldatei f"ur den Java-Bytecode mit der Namensendung \emph{.class}.
+Z.B. erzeugt der Aufruf von
+
+\begin{verbatim}
+javac Foo.java
+\end{verbatim}
+
+die Datei \emph{Foo.class}.
+
+Das compilierte Java-Programm, der Java-Bytecode, kann z.B. mittels
+
+\begin{verbatim}
+java Foo
+\end{verbatim}
+
+aufgerufen werden. Dieser Aufruf startet die JVM und beginnt das Programm
+\emph{Foo} abzuarbeiten.
+
+\subsection{Java-Virtuelle-Maschine (JVM)}
+Die JVM simuliert eine komplette Betriebssystemumgebung
+und ist in der Lage den Java-Bytecode abzuarbeiten.
+Hiermit sind Java-Programme Plattform unabh"angig, da die JVM
+auf verschiedenen Plattformen ein Einheitliches Java-System zur
+Verf"ugung stellen.
+
+Mittels der JVM und den standard Java-Bibliotheken kann ein Java-Programm
+\begin{itemize}
+ \item auf das Netzwerk/Internet zugreifen
+ \item eine grafische Oberfl"ache besitzen (AWT)
+ \item auf native Funktionen zugreifen (JNI)
+ \item auf Datenbanken zugreifen (jdbc)
+ \item wiederverwendbare Komponente besitzen (Beans)
+ \item gemeinsame standardisierte Objekte mit Java und
+ nicht-Java Applikationen austauschen (Corba/RMI)
+ \item etc.
+\end{itemize}
+
+\subsection{Java-Interpreter und JIT-Compiler}
+Der Java-Interpreter ist bestandteil der JVM. Der Java-Bytecode wird von dem Java-Interpreter abgearbeitet. Der JIT-Compiler (Just-In-Time-Compiler) ist eine Erweiterung des Java-Interpreters und "ubersetzt den Java-Bytecode blockweise in plattformspezifischen Machienencode.
+
+\section{Java-Applets und Java-Applikationen}
+Java-Programme lassen sich grob in zwei Kategorien teilen:
+Java-Applikationen bezeichnen eigenst"andige Programme, welche innerhalb des ausf"uhrenden Rechners (Client) gestartet werden. Der Client fungiert hier gleichzeitig als Server. Java-Applikationen haben die M"oglichkeit auf das Dateisystem des Clients, bzw. Server zuzugreifen.
+Z.B. kann die Java-Applikation Foo mittels
+
+\begin{verbatim}
+java Foo
+\end{verbatim}
+
+aufgerufen werden. Hierf"ur werden lediglich die JVM und die entsprechenden \emph{.class}-Files ben"otigt.
+
+Ein Java-Applet wird auf einem Server abgelegt. Das Applet wird auf dem Client "ubertragen und dort lokal ausgef"uhrt. Im Gegensatz zur Java-Applikation kann das Applet nicht auf Daten ausserhalb der JVM zugreifen. Somit kann ein Applet die Sicherheit des Systems nicht gef"ahrden.
+Java-Applets werden innerhalb einer HTML\footnote{Hypertext Markup Language, Textformat f"ur World-Wide-Web(WWW) Seiten}-Seite aufgerufen.
+
+Das Applet wird mittels des Internet, bzw. Intranet, auf den Client "ubetragen.
+Hierf"ur kann ein Java-F"ahiger-WWW-Browser oder der \emph{appletviewer} des JDK benutzt werden. Z.B. kann das Java-Applet Foo eingebettet in der HTML-Seite \emph{Foo.html} mittels
+\begin{verbatim}
+appletviewer http://www.server.de/Foo.html
+\end{verbatim}
+aufgerufen werden.
+Mittlerweile haben die meisten Unternehmen Java lizensiert
+und in ihren Web-Browsern unterst"utzt.
+Dadurch lassen sich Web-Seiten interaktiver gestalten.
+
+
+\section{Objekt-Orientierte-Sprache}
+
+\subsection{Was ist Objektorientierung?}
+Java ist eine reine Objekt Orientierte Programmiersprache.
+Im Gegensatz zu einer prozeduralen Programmiersprache, die sich durch einen
+linearen Programmflu"s und einer klaren Trennung von Daten und
+Funktionen auszeichnet verkn"upft das objektorientierte Programmieren Daten und
+Methoden\footnote{Methoden ist der objektorientierte Name f"ur Funktionen}
+zu einem Objekt.
+Objekte eines Typs lassen sich zu einer Objektklasse zusammenfassen.
+Klassen sind Beschreibungen eines Datenmodells (Prototypen)
+von denen sich beliebig viele Objekte generieren lassen.
+In den Klassen werden sowohl die Daten als auch die damit verbundenen
+Operationen festgelegt.
+
+\subsection{Klassen und Methoden}
+In Java wird eine Klasse mittels des Schl"usselwortes \emph{class} (Analog zu
+Klassen in C++) aufgerufen.
+
+Der Zugriff auf Daten und Methoden k"onnen innerhalb einer Klasse
+f"ur andere Klassen mittels \emph{public}-deklaration erlaubt, bzw.
+mit \emph{private}- oder \emph{protected}-deklaration verboten werden.
+
+Z.B. definiert die Klasse Feuerzeug Daten und Methoden f"ur Objekte des selben Typs.
+
+\begin{verbatim}
+public class Feuerzeug
+{
+ /* Gasinhalt in Liter */
+ private float gasInhalt;
+
+ /* 1 milliliter pro Zuendung */
+ private float finalize gasProZuendung = 0.001
+
+ /* Oeffentliche Methode fuer das Zuenden des Feuerzeugs.
+ Beachte: Das Zuenden kostet Gas !
+ */
+ public boolean zuende()
+ {
+ if(gasInhalt<gasProZuendung)
+ return false;
+ gasInhalt-=gasProZuendung;
+ return true;
+ }
+}
+\end{verbatim}
+
+
+Eine Methode ist unmittelbar an ein Objekt bzw. die dazugeh"origen Daten
+gebunden. Methoden k"onnen in Java auch "uberladen werden.
+Z.B.
+
+\begin{verbatim}
+public class Feuerzeug
+{
+ ...
+
+ // Feuerzeug ganz aufladen
+ void aufLaden()
+ {
+ ...
+ }
+
+ // Feuerzeug mit definierter Menge 'vol' aufladen
+ void aufLaden( float vol )
+ {
+ ...
+ }
+
+}
+\end{verbatim}
+
+
+Durch Methoden werden bestimmte Funktionen eines Objektes beschrieben.
+Sie werden in Java mittels des \emph{.} Operators aufgerufen.
+
+Objekt.Methode (....)
+
+Konstruktoren sind spezielle Methoden, die bei der Aktivierung von Objekten
+aufgerufen werden und deren Instanzierung und Initialisierung "ubernehmen.
+Konstruktoren benutzen den gleichen Namen wie die verwendete Klasse.
+
+Klasse Objekt=new KLasse (...)
+
+erzeugt aus der Klasse ein Objekt, daf"ur reserviert es
+Speicher f"ur dieses Objekt
+und initialisiert es mit den entsprechenden Werten ( evt. als Argumente "ubergeben).
+
+\subsection{Vererbung}
+
+Vererbung bezeichnet den Mechanismus des Ableitens einer Klasse aus einer
+"ubergeordneten Klasse (Einfachvererbung).
+Die Daten und Methoden der "ubergeordneten Klasse,
+Oberklasse oder Superklasse genannt,
+werden an die Subklasse weitergegeben (vererbt).
+Die vererbten Methoden k"onnen dort auch "uberschrieben, bzw. "uberladen
+werden.
+
+Die Klassen der standard Bibliothek sind in der Regel alle von der superklasse
+\emph{Object} abgeleitet. Die Klasse \emph{Object} definiert einige elementare Methoden (equals, string, getclass), welche von allen Subklassen benutzt, bzw. neu definiert werden k"onnen.
+
+Im Gegensatz zu C++ k"onnen in Java keine Operatoren "uberladen, bzw. neu definiert werden. Als L"osung werden in Java standard Methoden verwendet, wie z.B. die Methode \emph{equals} der Superklasse \emph{Object}.
+
+\subsection{Packages}
+
+Ein wesentlicher Vorteil der objektorientierten Programmierung ist die
+einfache Wiederverwendung bestehenden Programmcodes.
+Klassenbibliotheken bieten Programmierern die m"oglichkeit
+bestehende Klassen in Ihrer Applikation einzubinden.
+Es existieren eine Reihe von standard Klassenbibliotheken (Packages) f"ur
+unterschiedliche Zwecke wie z.B. Grafik, Netzwerkaktivit"aten und Ein-und
+Ausgabefunktionen.
+Packages werden mit dem \emph{import}-Befehl in den Programmcode eingebunden.
+Die Zusammenfassung von mehreren Klassen in Packages erleichtert
+die Realisierung und Modularisierung gro"ser Systeme.
+Packages dienen ebenfalls der einfachen Wiederverwendung.
+
+\section{System-Managment}
+
+\subsection{Garbage-Collector}
+Ein in Java integrierter Garbage-Collector sorgt f"ur die automatische
+Freigabe nicht mehr ben"otigter Speicherbereiche.
+Dadurch werden potentielle Fehler vermieden, wie sie z.B. bei doppelter Speicherfreigabe in ANSI-C vorkommen k"onnen.
+W"ahrend der Laufzeit eines Java-Programmes arbeitet im Hintergrund der
+Garbage Collector als Thread niedriger Priorit"at.
+
+\subsection{Exceptions}
+Mit den Exceptions besitzt Java einen Mechanismus zur strukturierten
+Behandlung von Fehlern, die w"ahrend der Programmausf"uhrung auftreten.
+Tritt ein Laufzeitfehler (z.B. ein Array-Zugriff au"serhalb der Array-Grenzen),
+so wird ein eine entsprechende Exception generiert (\emph{throw}).
+Diese Exception kann, bzw. mu"s innerhalb eines \emph{try-catch}-Blocks
+abgefangen werden (\emph{catch}).
+
+Das Grundprinzip des Exception-Mechanismus in Java kann wie folgt beschrieben
+werden:
+Wird eine Exception ausgel"ost, arbeitet die JVM den Stack soweit zur"uck,
+bis sie eine entsprechende \emph{catch}-Anweisung findet. Wird keine geeignete gefunden, gibt die JVM eine Fehlermeldung aus.
+
+Eine Exception kann an jeder Stelle der Aufrufkette (Stack) abgefangen werden.
+Methoden, welche in der Deklaration angeben eine Exception ausl"osen zu k"onnen, m"ussen innerhalb eines \emph{try-catch} Blocks aufgerufen werden.
+
+Das Behandeln von Exceptions mit der try-catch-Anweisung sieht etwa
+folgenderma"sen aus :
+
+\begin{verbatim}
+try {
+ Anweisung;
+
+ ...
+ }
+catch ( Exceptiontyp1 x ) {
+ Anweisung;
+
+ ...
+ }
+catch ( Exceptiontyp2 x ) {
+ Anweisung;
+
+ ...
+ }
+\end{verbatim}
+
+\section{Grafisches User Interface (GUI)}
+
+\subsection{Was ist eine GUI?}
+AWT
+Swing ..
+
+\subsection{Abstract Window Toolkit (AWT)}
+
+\subsection{Events}
+
+Benutzer-Interaktion !
+
+Bei der Programmierung unter einer grafischen Oberfl"ache erfolgt die
+Kommunikation zwischen Betriebssystem und Anwendungsprogramm durch den
+Austausch von Nachrichten.
+Die Anwendung wird dabei "uber alle Arten von Ereignissen und
+Zustands"anderungen vom Betriebssystem informiert.
+Dazu z"ahlen z.B. Mausklicks, Bewegung des Mauszeigers, oder Ver"anderungen
+der Fenstergr"o"se oder dessen Lage.
+Jedes dieser Ereignisse oder \emph{ Events} l"ost eine Nachricht aus, die an das
+aktive Fenster gesendet wird. Dadurch wird dort der Aufruf einer \emph{Callback}-Methode
+ausgel"ost. Das Programm kann auf ein \emph{Even}t reagieren, indem es die zugeh"orige
+Methode "uberlagert und mit der gew"unschten Funktionalit"at ausstattet.
+Die unter Java m"oglichen Events lassen sich grob in folgende Klassen
+unterteilen :
+\begin{itemize}
+\item Maus-Events
+\item Tastatur-Events
+\item Fenster-Events
+\item Action-Events
+\item Komponenten-Events
+\end{itemize}
+
+Z.B. wird ein Mausklick mit den Methoden \emph{mouseDown} und \emph{mouseUp} der
+Klasse \emph{Component} behendelt.
+Wenn die Maustaste gedr"uckt wird, ruft das AWT die Methode \emph{mouseDown} auf,
+l"asst man sie los wird die Methode \emph{mouseUp} aufgerufen.
+
+public boolean mouseDown(Event e, int x, int y);
+public boolean mouseUp(Event e. int x, int y);
+
+Der erste Parameter beider Methoden ist eine Instanz Klasse \emph{Event}.
+Die beiden anderen Parameter geben die Position in der Client-Area an,
+an der die Maustaste gedr"uckt bzw. losgelassen wurde.
+Ein Objekt der Klasse \emph{Event} repr"asentiert das Ereignis, durch das die
+Nachricht ausgel"ost wurde.
+Ein \emph{Event}-Objekt besitzt eine Reihe "offentlicher Instanzmerkmale
+wie z.B.:
+
+
+\begin{tabular}{|l|l|}
+\hline
+Element & Bedeutung \\
+\hline
+public int x; & x-Koordinate des Mauszeigers bei Tastatur- \\
+ & und Mausereignissen \\
+\hline
+public int y; & y-Koordinate des Mauszeigers bei Tastatur- \\
+ & und Mausereignissen \\
+\hline
+public long when; & Zeitpunkt des Ereignisses \\
+\hline
+public int key; & ASCII-Wert der gedr�ckten Taste bei \\
+ & Tastaturereignissen bzw. Wert der Funktionstaste \\
+\hline
+public int modifiers; & Eine Kombination der Konstanten \\
+ & \emph{Event.ALT\_MASK, Event.CTRL\_MASK,} \\
+ & \emph{Event.META\_MASK, Event.SHIFT\_MASK} \\
+\hline
+\end{tabular}
+
+
+\section{Multithreading}
+
+\subsection{Was ist Multithreading?}
+
+Durch die Weiterentwicklungen im Bereich der Betriebssystemtechnologie
+wurde das Konzept der \emph{Threads} in den letzten Jahren immer popul"arer.
+Und durch bereitstellung der Basis von Library-Routinen auch konventionellen
+Programmiersprachen zur Verf"ugung gestellt.
+Java hat \emph{Threads} direkt in die Sprache integriert und mit den erforderlichen
+Hilfsmitteln als Konstrukt zur Nebenl"aufigkeit implementiert.
+Ein \emph{Thread} ist ein eigenst"andiges Programmierfragment, das parallel
+zu anderen \emph{Threads} laufen kann.
+Der Laufzeit-Overhead zur Erzeugung und Verwaltung ist deutlich geringer
+als bei gew"ohnlichen Prozessen und kann in den meisten Programmen
+vernachl"assigt werden.
+\emph{Threads} sollen unter anderem die Implementierung grafischer Anwendungen
+erleichtern, die durch Simulation komplexer Abl"aufe oft nebenl"aufig sind.
+\emph{Threads} k"onnen auch dazu verwendet werden, die Bedienbarkeit von
+Dialoganwendungen zu verbessern, indem rechenintensive Anwendungen
+im Hintergrund ablaufen.
+
+\subsection{Programmierung von Threads}
+
+\emph{Threads} werden in Java durch die Klasse\emph{ Thread} und das Interface \emph{Runnable}
+implementiert. in beiden F"allen wird der \emph{Thread-Body}, also der
+parallel auszuf"uhrende Code, in Form der "uberlagerten Methode \emph{run} zur
+Verf"ugung gestellt. Die Kommunikation kann dann durch Zugriff auf die
+Instanz- oder Klassenvariablen oder durch Aufruf beliebiger Methoden,
+die innerhalb von \emph{run} sichtbar sind, erfolgen.
+Zur Synchronisation stellt Java das aus der Betriebssystemtheorie bekannte
+Konzept des \emph{Monitors} zur Verf"ugung. Dises erlaubtes, kritische Abschnitte
+innerhalb korrekt geklammerter Programmfragmente und Methoden zu kapseln.
+Somit wird der Zugriff auf gemeinsam benutzte Datenstrukturen koordiniert.
+Dar"uber hinaus stellt Java Funktionen zur Verwaltung von \emph{Threads}.
+Diese erlauben es, \emph{Threads} in Gruppen zusammenzufassen, zu priorisieren
+und Informationen "uber Eigenschaften von \emph{Threads} zu gewinnen.
+Das \emph{Schedulling} kann dabei wahlweise unterbrechend oder nichtunterbrechend
+implementiert sein.
+Die Sprachspezifikation legt dies nicht fest, aber in den meisten
+Java-Implementierungen wird dies von den M"oglichkeiten des darunter liegenden
+Betriebssystems abh"angen.
+
+Die Klasse \emph{Thread} ist Bestandteil des Packages \emph{java.lang} und steht damit
+allen Anwendungen standartm"a"sig zur Verf"ugung.
+\emph{Thread} stellt die Basismethoden zur Erzeugung, Kontrolle und zum Beenden von
+\emph{Threads} zur Verf"ugung. Um ein konkreten \emph{Thread} zu erzeugen, mu"s eine
+eigene Klasse aus \emph{Thread} abgeleitet und die Methode \emph{run} "uberlagert werden.
+Mit Hilfe des Aufrufs der Methode \emph{start} wird der \emph{Thread} gestartet und die weitere
+Ausf"uhrung an die Methode \emph{run} "ubertragen.
+\emph{start}wird nach dem starten des \emph{Threads} beendet, und der Aufrufer kann paralell
+zum neu erzeugten \emph{ Thread} fortfahren.
+Die "ubliche Vorgehensweise, einen \emph{Thread} zu beenden, besteht darin, die Methode \emph{stop}
+der Klasse \emph{Thread} aufzurufen.
+In diesem Fall wird der \emph{Thread} angehalten und aus der Liste der aktiven \emph{Threads}entfernt.
+Mit Hilfe der Methoden \emph{suspend} und \emph{resume} ist es m"oglich, einen \emph{Thread} vor"ubergehend
+ zu unterbrechen. Durch \emph{suspend} wird die Ausf"uhrug unterbrochen, und durch \emph{resume}
+wird der \emph{Thread} (genauer gesagt: die Methode \emph{run})an der Stelle fortgesetzt, an der die
+Unterbrechung erfolgte.
+
+
+\section{Java Native Interface (JNI)}
+
+\subsection{Was ist JNI?}
+Java stellt mit den sogenannten \emph{nativen} Methoden die M"oglichkeit,
+nicht in Java geschriebene Programmes oder Abl"aufe in die Laufzeitbibliothek
+ mit einzubinden.
+Gr"unde f�r die Implementierung von \emph{nativen} Methoden sind folgende:
+\begin{itemize}
+\item das man spezielle F"ahigkeiten der einzelnen Rechner oder der
+Betriebssysteme nutzen kann; die die Java-Bibliothek nicht bereitstellt.
+Dazu geh"ort z.B. der Anschlu"s an neue Peripherieger"ate oder Steckkarten,
+der Zugriff auf verschiedene Netztypen oder die Verwendung eines eindeutigen
+Merkmals des vorhandenen Betriebssystems.
+Solche F"ahigkeiten werden derzeit von der Java-Umgebung nicht bereitgestellt
+und m"ussen daher \emph{au"serhalb} von Java in einer anderen Sprache (meist
+C oder eine mit C vertr"aglichen Sprache) implementiert werden.
+\item Ein weiterer Grund ist die Performance des auszuf"uhrenden Programms.
+Falls man den von Java zur Verf"ugung gestellten JIT-Compiler f"ur die
+Erh"ohung der Geschwindigkeit nicht einsetzen will, kann man f"ur den
+Geschwindigkeitsorientierten Teil ( z.B. kritische innere Schleifen ),
+in C geschriebene \emph{native} Methoden einsetzen.
+Die Java-Klassenbibliothek nutzt diese M"oglichkeit bei bestimmten
+kritischen Systemklassen selbst, um die Effiziens des Systems zu steigern.
+\item Jedoch ist wohl der Hauptgrund f"ur den Einsatz von nativen Methoden in
+Java-Klassen der; da"s man auf diese Art und Weise schon existierende Programme
+ohne sie erst umzuschreiben, relativ einfach in Java einbinden kann.
+Diese M"oglichkeit haben wir in der Diplomarbeit auch genutzt.
+Die 3D-OpenGL-Animationen sind in C geschrieben und wurden sozusagen
+in Java eingebettet, doch dazu sp"ater mehr.
+\end{itemize}
+
+\subsection{Grundlagen der JNI}
+
+Dynamische Bibliothek
+ Unix: lib<Name>.so, LD\_LIBRARY\_PATH
+ WIN: <Name>.dll, SYSTEMVERZEICHNIS
+
+\subsection{Vorgehensweise}
+
+Um ein Interface zwischen Java und dem C-Code zu erstellen, sind im wesenlichen
+f"unf Schritte erforderlich :
+\begin{enumerate}
+ \item Erstellen der Java-JNI Funktionsdeklaration
+ \item Generierung der C-Header Datei
+ \item Erstellen der C-JNI Functionen
+ \item Laden der JNI-Bibliothek in Java
+ \item Linken der Dynamischen Bibliothek
+\end{enumerate}
+
+\subsection{Erstellen der Java-JNI Funktionsdeklaration}
+Den Java-Code mit der deklarierten \emph{nativen} Methode zu schreiben und zu
+"Ubersetzen.
+
+Um \emph{native} Methoden in Java-Klassen zu benutzen, mu"s man in der Deklaration
+der Methode lediglich das schl"usselwort \emph{native} einf"ugen.
+
+wie z.B.
+\begin{verbatim}
+public nativ void Methodenname();
+\end{verbatim}
+
+Und die Methode System.loadLibrary() in die Klasse mit einbinden.
+Das Schl"usselwort \emph{native} zeigt dem javac-Compiler und dem java-Interpreter
+das sie nach einem Methodenrumpf in einer dynamisch-ladbaren Bibliothek
+Ausschau halten m"ussen.
+Um die gew"unschte Bibliothek letzendlich wirklich aufzurufen, wird sie mit der
+Methode \emph{System.loadLibrary()} aus dem System-Package von Java eingelesen.
+Java durchsucht alle Pfade die in dem Betriebssystem-Umgebungsvariable
+angegeben wurden.
+Alternativ steht die Methode\emph{ Runtime.getRuntime().loadLibrary()} und die
+Methode \emph{System.load()} zur Verf"ugung.
+Letztrige liest eine Klassen-Bibliothek anhand ihres vollst"andigen
+Pfadnamens ein. So k"onnen auch Bibliotheken au"serhalb des Suchpfades
+benutzt werden.
+Die "Ubersetzung des Java-Codes kann wie "ublich ausgef"uhrt werden.
+
+\subsection{Generierung der C-Header Datei}
+Der n"achste Schritt ist es, die "ubersetzte Datei \emph{Datei.class} dazu zu benutzen, um die
+entsprechende Header-Datei \emph{Datei.h} zu erzeugen.
+Dazu wird das \emph{javah}-Tool aus der JDK-Distribution eingesetzt.
+Per Default wird die neue h-Datei im gleichen Verzeichnis angelegt. Mit der
+Option -d kann ein anderes Verzeichnis angegeben werden.
+Dies ist zu raten da noch diverse andere Dateien erzeugt werden m"ussen und
+schnell die "Ubersicht verloren gehen kann.
+Der Aufruf
+
+\begin{verbatim}
+javah -jni Datei
+\end{verbatim}
+
+erzeugt das C-Headerfile \emph{Datei.h}.
+
+In der Header-Datei wird durch die typedef-struct-Anweisung der \emph{nativen}
+C-Routine mitgeteilt, wie die Daten in der Java-Klasse angeordnet sind. Die einzelnen Variablen
+in der Struktur k"onnen benutzt werden, um die Klassen
+und Instanz-Variablen von Java zu benutzen.
+Weiterhin wird in dem h.File ein Prototype angegeben, um die Methode aus dem
+objektorientierten Namensraum der Java Klasse in den C-Namensraum zu
+"uberf"uhren.
+Der Name einer Funktion, der eine \emph{native} Methode implementiert, ergibt sich
+dabei immer aus dem Packet-Namen, dem Klassen-Namen und dem Namen der nativen
+Methode von Java, getrennt durch einen Unterstrich.
+
+\subsection{Erstellen der C-JNI Functionen}
+Nun m"ussen die nativen Methoden implementiert werden.
+"Ublicherweise werden die Implementationsdateien mit dem Klassennamen und einer
+eindeutigen Endung z.B. \emph{Datei.c} versehen.
+Die Implementationsdatei mu"s die Datei \emph{jni.h} mittels \#include-Anweisung einbinden. \emph{jni.h} ist im \emph{include} Verzeichniss des JDK enthalten.
+Ebenfalls muss die mittels \emph{javah -jni} erzeugte Headerdatei eingebunden werden.
+Der Funktionskopf in der Implementationsdatei muss den
+generierten Prototypen aus der Headerdatei entsprechen.
+
+Diese Fehlerart macht sich noch nicht beim Linken sondern erst zur Laufzeit
+des Programms bemerkbar und ist daher m"uhsam zu beheben.
+
+\subsection{Erstellung der Dynamischen Bibliothek}
+
+Nachdem nun alle ben"otigten Dateien vorhanden sind, mu"s die
+Implemtierungsdatei nur noch "ubersetzt und mit der Java-Bibliothek
+zu einer dynamischen Bibliothek zusammen gelinkt werden.
+
+\subsection{Datenaustausch zwischen Java und C}
+
+Jedem elementaren Typ in Java wird ein Typ in der Prototype-Funktion
+und damit auch in C zugeordnet
+Ein char in Java ist nach dem UNICODE kodiert, im Gegensatz zu ASCII in C.
+Dem Java-Typ String kann nur eine Struktur zugeordnet werden.
+Funktionen zur Umwandlung von UNICODE und ASCII sowie die Definition
+String-Strukturen finden sich in der Header-Datei wieder javaString.h .
+
+Variablen nicht als Parameter einer Methode sondern als Klassenvariable
+anzulegen ist objektorientiert und erm"oglicht einen einfachen Zugriff
+von C aus. Dieser Zugriff kann als 'Call by Reference' bezeichnet werden.
+"Ubergibt man die Variablen als Parameter ist der Zugriff ein
+Call by Value.
+Alle Klassenvariablen werden im .h-File zu einem \emph{struct} zusammengefa"st.
+Auf diesen erh"alt die aufgerufene C-Funktion als Parameter ein
+Handle-Pointer.
+Das in \emph{StubPreamble.h} definierte, \emph{unhand()}-Makro erm"oglicht den Zugriff
+auf die einzelnen Klassenvariablen. Das \emph{unhand()}-Makro "ubernimmt einen
+Pointer auf das Handle einer Klasse und gibt einen Pointer auf die im
+.h-File erzeugte Klassenstruktur zur"uck.
+"Uber den R"uckgabewert des Makros lassen sich die Instance-Variablen
+der Java-Klasse direkt auswerten und ver"andern.
+
+\subsubsection{Strings}
+Wie schon erw"ahnt bilden \emph{Strings} in Java eine eigene Klasse.
+M"ochte man einen \emph{String} von Java nach C oder umgekehrt "ubergeben,
+mu"s man \emph{javaString.h} im C-Implementationsfile mit einbinden.
+In \emph{javaString.h} finden sich die Typdefintionen und Funktionen um \emph{Strings}
+von Java nach C und umgekehrt zu transformieren.
+So gibt es noch weitere Methoden um \emph{Strings} zu bearbeiten, wie z.B.
+\emph{MoveString\_GetString(), CString()} oder \emph{makeJavaString()}.
+Java-\emph{Strings} bilden eine eigene Klasse, somit wird bei der Konvertierung nicht
+nur ein elementarer Typ sondern eine ganze Klasse an die \emph{native} Methode
+durchgereicht. Dieses Konzept l"a"st sich auch auf andere Klassen erweitern.
+
+\subsubsection{Felder}
+\emph{Felder} werden von Java nach C "ubergeben indem vom \emph{javah}-Tool ein
+Funktionsparameter von Typ \emph{struct HArrayOf<Objekt> *} erzeugt wird.
+Dieser Handle enth"alt ein Element \emph{body} mit dem auf die Feldelemente
+zugegriffen werden kann.
+Der Zugriff auf das Feld erfolgt mit dem \emph{unhand()}-Makro und dem
+\emph{body}-Element.
+
+\subsubsection{Speichermanagment}
+in Java wird die Speicherverwaltung automatisch vom \emph{Garbage-Collector}
+erledigt indem er die Methode \emph{dispose()} aus der Java-Klasse ausf"uhrt.
+Wird in einer C-Funktion einer \emph{nativen} Methode Speicher angelegt,
+so h"angt die Vorgehensweise des Programmierers beim Freigeben,
+von der Art des Speichers ab.
+Bei normalen Speicherbereichen f"ur die interne C-Anwendung mu"s der
+Programmierer sich explizit um die Freigabe k"ummern.
+Da der Java-Interpreter von diesem Speicher nichts wei"s,
+m"ussen eigene \emph{native} Methoden implementiert werden um ihn freizugeben.
+In C erzeugte Speicherbereiche von Java-Objekten werden nicht unbedingt
+vom \emph{Garbage-Collector} gefunden. Diese Java-Objekte, also Instanzen
+einer bestimmten Java-Klasse, k"onnen auch aus Java heraus freigegeben
+werden. Eine einfache Variante der Freigabe ist der explizite Aufruf
+der Methode \emph{dispose()} wenn die Instanz nicht mehr ben"otigt wird.
+%
+%\begin{thebibliography}{99}
+% \bibitem{1} Mary Campione and Kathy Walrath; The Java Tutorial; Sun Microsystems; http://www.javasoft.com/docs/books/tutorial/index.html
+% \bibitem{2} Ron Fosner; OpenGL Programming for Windows 95 and Windows NT; Addison Wesley Second Printing April 1997; http://www.aw.com/devpress
+% \bibitem{3} Woo, Mason; OpenGL programming guide 2nd ed., Addison Wesley Developer Press April 1997, ISBN 0-0201-46138-2; http://www.aw.com/devpress
+%\end{thebibliography}
+%
+%\end{document}
+%
diff --git a/docs-src/UpdateHtml b/docs-src/UpdateHtml
new file mode 100755
index 0000000..f8cf882
--- /dev/null
+++ b/docs-src/UpdateHtml
@@ -0,0 +1,38 @@
+#! /bin/sh
+
+LATEX=latex
+DVIPS=dvips
+PS2PDF=ps2pdf
+LATEX2HTML=latex2html
+
+echo Argument = $1
+echo using tools : $LATEX $LATEX2HTML
+
+if [ \( "$1" = "GL4Java" \) -o \( -z "$1" \) ] ; then
+ rm -rf GL4Java
+ rm -f *.log *.aux *.toc *.dvi *.ps
+ $LATEX GL4Java.tex
+ $LATEX GL4Java.tex
+ $LATEX GL4Java.tex
+ $DVIPS GL4Java.dvi
+ mv GL4Java.ps ../docs/.
+ $LATEX2HTML -html_version 4.0,table,math,i18n -prefix "glj_" \
+ -show_section_numbers \
+ -split +2 \
+ -index GL4Java.html \
+ -contents GL4Java.html \
+ -no_footnode \
+ -iso_language EN \
+ GL4Java.tex
+ cd GL4Java
+ rm -f .*
+ rm -f *.pl
+ rm -f *.log *.aux *.toc *.dvi
+ cd ..
+ rm -f *.log *.aux *.toc *.dvi *.ps
+ cp -rf GL4Java/glj_* GL4Java/GL4Java.html ../docs/html/.
+ cp -rf GL4Java/GL4Java.css ../docs/html/.
+ rm -rf GL4Java
+fi
+
+rm -f *.log *.aux
diff --git a/docs-src/images/JAVA.85.GIF b/docs-src/images/JAVA.85.GIF
new file mode 100644
index 0000000..247f8a2
--- /dev/null
+++ b/docs-src/images/JAVA.85.GIF
Binary files differ
diff --git a/docs-src/images/blueball.gif b/docs-src/images/blueball.gif
new file mode 100644
index 0000000..c481395
--- /dev/null
+++ b/docs-src/images/blueball.gif
Binary files differ
diff --git a/docs-src/images/change_begin.gif b/docs-src/images/change_begin.gif
new file mode 100644
index 0000000..dbe8d7e
--- /dev/null
+++ b/docs-src/images/change_begin.gif
Binary files differ
diff --git a/docs-src/images/change_begin_right.gif b/docs-src/images/change_begin_right.gif
new file mode 100644
index 0000000..331ddf2
--- /dev/null
+++ b/docs-src/images/change_begin_right.gif
Binary files differ
diff --git a/docs-src/images/change_delete.gif b/docs-src/images/change_delete.gif
new file mode 100644
index 0000000..63398f5
--- /dev/null
+++ b/docs-src/images/change_delete.gif
Binary files differ
diff --git a/docs-src/images/change_delete_right.gif b/docs-src/images/change_delete_right.gif
new file mode 100644
index 0000000..63398f5
--- /dev/null
+++ b/docs-src/images/change_delete_right.gif
Binary files differ
diff --git a/docs-src/images/change_end.gif b/docs-src/images/change_end.gif
new file mode 100644
index 0000000..8f1e455
--- /dev/null
+++ b/docs-src/images/change_end.gif
Binary files differ
diff --git a/docs-src/images/change_end_right.gif b/docs-src/images/change_end_right.gif
new file mode 100644
index 0000000..409246c
--- /dev/null
+++ b/docs-src/images/change_end_right.gif
Binary files differ
diff --git a/docs-src/images/contents.xbm b/docs-src/images/contents.xbm
new file mode 100644
index 0000000..a3aed9f
--- /dev/null
+++ b/docs-src/images/contents.xbm
@@ -0,0 +1,12 @@
+#define contents_width 63
+#define contents_height 16
+static char contents_bits[] = {
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0xc0,0x01,0x00,0x08,0x00,0x00,0x01,0x00,0x20,0x02,0x00,0x08,0x00,
+ 0x00,0x01,0x00,0x20,0xe2,0x74,0x7c,0x9c,0x8e,0x8f,0x03,0x20,0x10,0x99,0x08,
+ 0x22,0x13,0x41,0x04,0x20,0x10,0x89,0x08,0x3e,0x11,0x81,0x03,0x20,0x12,0x89,
+ 0x08,0x02,0x11,0x01,0x04,0x20,0x12,0x89,0x88,0x22,0x11,0x51,0x04,0xc0,0xe1,
+ 0x9c,0x71,0x9c,0x33,0x8e,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
diff --git a/docs-src/images/contents_motif.gif b/docs-src/images/contents_motif.gif
new file mode 100644
index 0000000..7b3c904
--- /dev/null
+++ b/docs-src/images/contents_motif.gif
Binary files differ
diff --git a/docs-src/images/coolbutton.gif b/docs-src/images/coolbutton.gif
new file mode 100644
index 0000000..5c86f44
--- /dev/null
+++ b/docs-src/images/coolbutton.gif
Binary files differ
diff --git a/docs-src/images/cross_ref_motif.gif b/docs-src/images/cross_ref_motif.gif
new file mode 100644
index 0000000..4c074e1
--- /dev/null
+++ b/docs-src/images/cross_ref_motif.gif
Binary files differ
diff --git a/docs-src/images/cupHJbutton.gif b/docs-src/images/cupHJbutton.gif
new file mode 100644
index 0000000..2666304
--- /dev/null
+++ b/docs-src/images/cupHJbutton.gif
Binary files differ
diff --git a/docs-src/images/foot_motif.gif b/docs-src/images/foot_motif.gif
new file mode 100644
index 0000000..f29222a
--- /dev/null
+++ b/docs-src/images/foot_motif.gif
Binary files differ
diff --git a/docs-src/images/gamelanbutton.gif b/docs-src/images/gamelanbutton.gif
new file mode 100644
index 0000000..d477a84
--- /dev/null
+++ b/docs-src/images/gamelanbutton.gif
Binary files differ
diff --git a/docs-src/images/greenball.gif b/docs-src/images/greenball.gif
new file mode 100644
index 0000000..2ffbb22
--- /dev/null
+++ b/docs-src/images/greenball.gif
Binary files differ
diff --git a/docs-src/images/icons.html b/docs-src/images/icons.html
new file mode 100644
index 0000000..d6b38c3
--- /dev/null
+++ b/docs-src/images/icons.html
@@ -0,0 +1,42 @@
+
+<FORM METHOD="POST" >
+<INPUT TYPE="submit" VALUE="Next">
+ <P>
+<INPUT TYPE="submit" VALUE="Previous">
+ <P>
+<INPUT TYPE="submit" VALUE="Up">
+ <P>
+<INPUT TYPE="submit" VALUE="Next Group">
+ <P>
+<INPUT TYPE="submit" VALUE="Previous Group">
+ <P>
+<INPUT TYPE="submit" VALUE="Contents">
+ <P>
+<INPUT TYPE="submit" VALUE="Index">
+ <P>
+<INPUT TYPE="submit" VALUE=" New ">
+ <P>
+<INPUT TYPE="submit" VALUE=" Deleted ">
+ <P>
+<INPUT TYPE="submit" VALUE="Browse">
+ <P>
+<INPUT TYPE="submit" VALUE="Search">
+ <P>
+<INPUT TYPE="submit" VALUE="Home">
+ <P>
+<INPUT TYPE="submit" VALUE="Image">
+ <P>
+<INPUT TYPE="submit" VALUE="a">
+
+ <P>
+
+<INPUT TYPE="checkbox" NAME="xx" VALUE="nil">
+<INPUT TYPE="checkbox" NAME="xx" VALUE="nil">
+<INPUT TYPE="checkbox" NAME="xx" VALUE="nil">
+
+
+</FORM>
+
+<IMG ALIGN=MIDDLE SRC="changebegin.gif" ALT="changeend"><P>
+
+<P><IMG ALIGN=MIDDLE SRC="changeend.gif" ALT="changeend">
diff --git a/docs-src/images/image.gif b/docs-src/images/image.gif
new file mode 100644
index 0000000..7e6cb1a
--- /dev/null
+++ b/docs-src/images/image.gif
Binary files differ
diff --git a/docs-src/images/index_motif.gif b/docs-src/images/index_motif.gif
new file mode 100644
index 0000000..b9b3108
--- /dev/null
+++ b/docs-src/images/index_motif.gif
Binary files differ
diff --git a/docs-src/images/invis_anchor.xbm b/docs-src/images/invis_anchor.xbm
new file mode 100644
index 0000000..cc208a3
--- /dev/null
+++ b/docs-src/images/invis_anchor.xbm
@@ -0,0 +1,4 @@
+#define dot_anchor_width 1
+#define dot_anchor_height 1
+static char dot_anchor_bits[] = {
+ 0xfe};
diff --git a/docs-src/images/j2j.gif b/docs-src/images/j2j.gif
new file mode 100644
index 0000000..a07021d
--- /dev/null
+++ b/docs-src/images/j2j.gif
Binary files differ
diff --git a/docs-src/images/jarswebsearch.gif b/docs-src/images/jarswebsearch.gif
new file mode 100644
index 0000000..0ec9e0b
--- /dev/null
+++ b/docs-src/images/jarswebsearch.gif
Binary files differ
diff --git a/docs-src/images/next_group_motif.gif b/docs-src/images/next_group_motif.gif
new file mode 100644
index 0000000..833af4d
--- /dev/null
+++ b/docs-src/images/next_group_motif.gif
Binary files differ
diff --git a/docs-src/images/next_group_motif_gr.gif b/docs-src/images/next_group_motif_gr.gif
new file mode 100644
index 0000000..c04fec3
--- /dev/null
+++ b/docs-src/images/next_group_motif_gr.gif
Binary files differ
diff --git a/docs-src/images/next_motif.gif b/docs-src/images/next_motif.gif
new file mode 100644
index 0000000..7a2dbe9
--- /dev/null
+++ b/docs-src/images/next_motif.gif
Binary files differ
diff --git a/docs-src/images/next_motif_gr.gif b/docs-src/images/next_motif_gr.gif
new file mode 100644
index 0000000..1416b1c
--- /dev/null
+++ b/docs-src/images/next_motif_gr.gif
Binary files differ
diff --git a/docs-src/images/ogl.gif b/docs-src/images/ogl.gif
new file mode 100644
index 0000000..db9fb17
--- /dev/null
+++ b/docs-src/images/ogl.gif
Binary files differ
diff --git a/docs-src/images/ogl_sm.gif b/docs-src/images/ogl_sm.gif
new file mode 100644
index 0000000..27d60ce
--- /dev/null
+++ b/docs-src/images/ogl_sm.gif
Binary files differ
diff --git a/docs-src/images/ogla.gif b/docs-src/images/ogla.gif
new file mode 100644
index 0000000..060d3a8
--- /dev/null
+++ b/docs-src/images/ogla.gif
Binary files differ
diff --git a/docs-src/images/ogla_sm.gif b/docs-src/images/ogla_sm.gif
new file mode 100644
index 0000000..efe1236
--- /dev/null
+++ b/docs-src/images/ogla_sm.gif
Binary files differ
diff --git a/docs-src/images/orangeball.gif b/docs-src/images/orangeball.gif
new file mode 100644
index 0000000..e757cd0
--- /dev/null
+++ b/docs-src/images/orangeball.gif
Binary files differ
diff --git a/docs-src/images/pinkball.gif b/docs-src/images/pinkball.gif
new file mode 100644
index 0000000..43e843b
--- /dev/null
+++ b/docs-src/images/pinkball.gif
Binary files differ
diff --git a/docs-src/images/previous_group_motif.gif b/docs-src/images/previous_group_motif.gif
new file mode 100644
index 0000000..03ea0dc
--- /dev/null
+++ b/docs-src/images/previous_group_motif.gif
Binary files differ
diff --git a/docs-src/images/previous_group_motif_gr.gif b/docs-src/images/previous_group_motif_gr.gif
new file mode 100644
index 0000000..c7a1e2b
--- /dev/null
+++ b/docs-src/images/previous_group_motif_gr.gif
Binary files differ
diff --git a/docs-src/images/previous_motif.gif b/docs-src/images/previous_motif.gif
new file mode 100644
index 0000000..aef90f1
--- /dev/null
+++ b/docs-src/images/previous_motif.gif
Binary files differ
diff --git a/docs-src/images/previous_motif_gr.gif b/docs-src/images/previous_motif_gr.gif
new file mode 100644
index 0000000..c6acaab
--- /dev/null
+++ b/docs-src/images/previous_motif_gr.gif
Binary files differ
diff --git a/docs-src/images/purpleball.gif b/docs-src/images/purpleball.gif
new file mode 100644
index 0000000..4836265
--- /dev/null
+++ b/docs-src/images/purpleball.gif
Binary files differ
diff --git a/docs-src/images/redball.gif b/docs-src/images/redball.gif
new file mode 100644
index 0000000..b1a9580
--- /dev/null
+++ b/docs-src/images/redball.gif
Binary files differ
diff --git a/docs-src/images/smi.logo.gif b/docs-src/images/smi.logo.gif
new file mode 100644
index 0000000..e21231d
--- /dev/null
+++ b/docs-src/images/smi.logo.gif
Binary files differ
diff --git a/docs-src/images/up_motif.gif b/docs-src/images/up_motif.gif
new file mode 100644
index 0000000..3d1aebf
--- /dev/null
+++ b/docs-src/images/up_motif.gif
Binary files differ
diff --git a/docs-src/images/up_motif_gr.gif b/docs-src/images/up_motif_gr.gif
new file mode 100644
index 0000000..a8b463a
--- /dev/null
+++ b/docs-src/images/up_motif_gr.gif
Binary files differ
diff --git a/docs-src/images/whiteball.gif b/docs-src/images/whiteball.gif
new file mode 100644
index 0000000..4a90ea1
--- /dev/null
+++ b/docs-src/images/whiteball.gif
Binary files differ
diff --git a/docs-src/images/yellowball.gif b/docs-src/images/yellowball.gif
new file mode 100644
index 0000000..c6ba6b1
--- /dev/null
+++ b/docs-src/images/yellowball.gif
Binary files differ
diff --git a/docs/html/images/JAVA.85.GIF b/docs/html/images/JAVA.85.GIF
new file mode 100644
index 0000000..247f8a2
--- /dev/null
+++ b/docs/html/images/JAVA.85.GIF
Binary files differ
diff --git a/docs/html/images/blueball.gif b/docs/html/images/blueball.gif
new file mode 100644
index 0000000..c481395
--- /dev/null
+++ b/docs/html/images/blueball.gif
Binary files differ
diff --git a/docs/html/images/change_begin.gif b/docs/html/images/change_begin.gif
new file mode 100644
index 0000000..dbe8d7e
--- /dev/null
+++ b/docs/html/images/change_begin.gif
Binary files differ
diff --git a/docs/html/images/change_begin_right.gif b/docs/html/images/change_begin_right.gif
new file mode 100644
index 0000000..331ddf2
--- /dev/null
+++ b/docs/html/images/change_begin_right.gif
Binary files differ
diff --git a/docs/html/images/change_delete.gif b/docs/html/images/change_delete.gif
new file mode 100644
index 0000000..63398f5
--- /dev/null
+++ b/docs/html/images/change_delete.gif
Binary files differ
diff --git a/docs/html/images/change_delete_right.gif b/docs/html/images/change_delete_right.gif
new file mode 100644
index 0000000..63398f5
--- /dev/null
+++ b/docs/html/images/change_delete_right.gif
Binary files differ
diff --git a/docs/html/images/change_end.gif b/docs/html/images/change_end.gif
new file mode 100644
index 0000000..8f1e455
--- /dev/null
+++ b/docs/html/images/change_end.gif
Binary files differ
diff --git a/docs/html/images/change_end_right.gif b/docs/html/images/change_end_right.gif
new file mode 100644
index 0000000..409246c
--- /dev/null
+++ b/docs/html/images/change_end_right.gif
Binary files differ
diff --git a/docs/html/images/contents.xbm b/docs/html/images/contents.xbm
new file mode 100644
index 0000000..a3aed9f
--- /dev/null
+++ b/docs/html/images/contents.xbm
@@ -0,0 +1,12 @@
+#define contents_width 63
+#define contents_height 16
+static char contents_bits[] = {
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0xc0,0x01,0x00,0x08,0x00,0x00,0x01,0x00,0x20,0x02,0x00,0x08,0x00,
+ 0x00,0x01,0x00,0x20,0xe2,0x74,0x7c,0x9c,0x8e,0x8f,0x03,0x20,0x10,0x99,0x08,
+ 0x22,0x13,0x41,0x04,0x20,0x10,0x89,0x08,0x3e,0x11,0x81,0x03,0x20,0x12,0x89,
+ 0x08,0x02,0x11,0x01,0x04,0x20,0x12,0x89,0x88,0x22,0x11,0x51,0x04,0xc0,0xe1,
+ 0x9c,0x71,0x9c,0x33,0x8e,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
diff --git a/docs/html/images/contents_motif.gif b/docs/html/images/contents_motif.gif
new file mode 100644
index 0000000..7b3c904
--- /dev/null
+++ b/docs/html/images/contents_motif.gif
Binary files differ
diff --git a/docs/html/images/coolbutton.gif b/docs/html/images/coolbutton.gif
new file mode 100644
index 0000000..5c86f44
--- /dev/null
+++ b/docs/html/images/coolbutton.gif
Binary files differ
diff --git a/docs/html/images/cross_ref_motif.gif b/docs/html/images/cross_ref_motif.gif
new file mode 100644
index 0000000..4c074e1
--- /dev/null
+++ b/docs/html/images/cross_ref_motif.gif
Binary files differ
diff --git a/docs/html/images/cupHJbutton.gif b/docs/html/images/cupHJbutton.gif
new file mode 100644
index 0000000..2666304
--- /dev/null
+++ b/docs/html/images/cupHJbutton.gif
Binary files differ
diff --git a/docs/html/images/foot_motif.gif b/docs/html/images/foot_motif.gif
new file mode 100644
index 0000000..f29222a
--- /dev/null
+++ b/docs/html/images/foot_motif.gif
Binary files differ
diff --git a/docs/html/images/gamelanbutton.gif b/docs/html/images/gamelanbutton.gif
new file mode 100644
index 0000000..d477a84
--- /dev/null
+++ b/docs/html/images/gamelanbutton.gif
Binary files differ
diff --git a/docs/html/images/greenball.gif b/docs/html/images/greenball.gif
new file mode 100644
index 0000000..2ffbb22
--- /dev/null
+++ b/docs/html/images/greenball.gif
Binary files differ
diff --git a/docs/html/images/icons.html b/docs/html/images/icons.html
new file mode 100644
index 0000000..d6b38c3
--- /dev/null
+++ b/docs/html/images/icons.html
@@ -0,0 +1,42 @@
+
+<FORM METHOD="POST" >
+<INPUT TYPE="submit" VALUE="Next">
+ <P>
+<INPUT TYPE="submit" VALUE="Previous">
+ <P>
+<INPUT TYPE="submit" VALUE="Up">
+ <P>
+<INPUT TYPE="submit" VALUE="Next Group">
+ <P>
+<INPUT TYPE="submit" VALUE="Previous Group">
+ <P>
+<INPUT TYPE="submit" VALUE="Contents">
+ <P>
+<INPUT TYPE="submit" VALUE="Index">
+ <P>
+<INPUT TYPE="submit" VALUE=" New ">
+ <P>
+<INPUT TYPE="submit" VALUE=" Deleted ">
+ <P>
+<INPUT TYPE="submit" VALUE="Browse">
+ <P>
+<INPUT TYPE="submit" VALUE="Search">
+ <P>
+<INPUT TYPE="submit" VALUE="Home">
+ <P>
+<INPUT TYPE="submit" VALUE="Image">
+ <P>
+<INPUT TYPE="submit" VALUE="a">
+
+ <P>
+
+<INPUT TYPE="checkbox" NAME="xx" VALUE="nil">
+<INPUT TYPE="checkbox" NAME="xx" VALUE="nil">
+<INPUT TYPE="checkbox" NAME="xx" VALUE="nil">
+
+
+</FORM>
+
+<IMG ALIGN=MIDDLE SRC="changebegin.gif" ALT="changeend"><P>
+
+<P><IMG ALIGN=MIDDLE SRC="changeend.gif" ALT="changeend">
diff --git a/docs/html/images/image.gif b/docs/html/images/image.gif
new file mode 100644
index 0000000..7e6cb1a
--- /dev/null
+++ b/docs/html/images/image.gif
Binary files differ
diff --git a/docs/html/images/index_motif.gif b/docs/html/images/index_motif.gif
new file mode 100644
index 0000000..b9b3108
--- /dev/null
+++ b/docs/html/images/index_motif.gif
Binary files differ
diff --git a/docs/html/images/invis_anchor.xbm b/docs/html/images/invis_anchor.xbm
new file mode 100644
index 0000000..cc208a3
--- /dev/null
+++ b/docs/html/images/invis_anchor.xbm
@@ -0,0 +1,4 @@
+#define dot_anchor_width 1
+#define dot_anchor_height 1
+static char dot_anchor_bits[] = {
+ 0xfe};
diff --git a/docs/html/images/j2j.gif b/docs/html/images/j2j.gif
new file mode 100644
index 0000000..a07021d
--- /dev/null
+++ b/docs/html/images/j2j.gif
Binary files differ
diff --git a/docs/html/images/jarswebsearch.gif b/docs/html/images/jarswebsearch.gif
new file mode 100644
index 0000000..0ec9e0b
--- /dev/null
+++ b/docs/html/images/jarswebsearch.gif
Binary files differ
diff --git a/docs/html/images/next_group_motif.gif b/docs/html/images/next_group_motif.gif
new file mode 100644
index 0000000..833af4d
--- /dev/null
+++ b/docs/html/images/next_group_motif.gif
Binary files differ
diff --git a/docs/html/images/next_group_motif_gr.gif b/docs/html/images/next_group_motif_gr.gif
new file mode 100644
index 0000000..c04fec3
--- /dev/null
+++ b/docs/html/images/next_group_motif_gr.gif
Binary files differ
diff --git a/docs/html/images/next_motif.gif b/docs/html/images/next_motif.gif
new file mode 100644
index 0000000..7a2dbe9
--- /dev/null
+++ b/docs/html/images/next_motif.gif
Binary files differ
diff --git a/docs/html/images/next_motif_gr.gif b/docs/html/images/next_motif_gr.gif
new file mode 100644
index 0000000..1416b1c
--- /dev/null
+++ b/docs/html/images/next_motif_gr.gif
Binary files differ
diff --git a/docs/html/images/ogl.gif b/docs/html/images/ogl.gif
new file mode 100644
index 0000000..db9fb17
--- /dev/null
+++ b/docs/html/images/ogl.gif
Binary files differ
diff --git a/docs/html/images/ogl_sm.gif b/docs/html/images/ogl_sm.gif
new file mode 100644
index 0000000..27d60ce
--- /dev/null
+++ b/docs/html/images/ogl_sm.gif
Binary files differ
diff --git a/docs/html/images/ogla.gif b/docs/html/images/ogla.gif
new file mode 100644
index 0000000..060d3a8
--- /dev/null
+++ b/docs/html/images/ogla.gif
Binary files differ
diff --git a/docs/html/images/ogla_sm.gif b/docs/html/images/ogla_sm.gif
new file mode 100644
index 0000000..efe1236
--- /dev/null
+++ b/docs/html/images/ogla_sm.gif
Binary files differ
diff --git a/docs/html/images/orangeball.gif b/docs/html/images/orangeball.gif
new file mode 100644
index 0000000..e757cd0
--- /dev/null
+++ b/docs/html/images/orangeball.gif
Binary files differ
diff --git a/docs/html/images/pinkball.gif b/docs/html/images/pinkball.gif
new file mode 100644
index 0000000..43e843b
--- /dev/null
+++ b/docs/html/images/pinkball.gif
Binary files differ
diff --git a/docs/html/images/previous_group_motif.gif b/docs/html/images/previous_group_motif.gif
new file mode 100644
index 0000000..03ea0dc
--- /dev/null
+++ b/docs/html/images/previous_group_motif.gif
Binary files differ
diff --git a/docs/html/images/previous_group_motif_gr.gif b/docs/html/images/previous_group_motif_gr.gif
new file mode 100644
index 0000000..c7a1e2b
--- /dev/null
+++ b/docs/html/images/previous_group_motif_gr.gif
Binary files differ
diff --git a/docs/html/images/previous_motif.gif b/docs/html/images/previous_motif.gif
new file mode 100644
index 0000000..aef90f1
--- /dev/null
+++ b/docs/html/images/previous_motif.gif
Binary files differ
diff --git a/docs/html/images/previous_motif_gr.gif b/docs/html/images/previous_motif_gr.gif
new file mode 100644
index 0000000..c6acaab
--- /dev/null
+++ b/docs/html/images/previous_motif_gr.gif
Binary files differ
diff --git a/docs/html/images/purpleball.gif b/docs/html/images/purpleball.gif
new file mode 100644
index 0000000..4836265
--- /dev/null
+++ b/docs/html/images/purpleball.gif
Binary files differ
diff --git a/docs/html/images/redball.gif b/docs/html/images/redball.gif
new file mode 100644
index 0000000..b1a9580
--- /dev/null
+++ b/docs/html/images/redball.gif
Binary files differ
diff --git a/docs/html/images/smi.logo.gif b/docs/html/images/smi.logo.gif
new file mode 100644
index 0000000..e21231d
--- /dev/null
+++ b/docs/html/images/smi.logo.gif
Binary files differ
diff --git a/docs/html/images/up_motif.gif b/docs/html/images/up_motif.gif
new file mode 100644
index 0000000..3d1aebf
--- /dev/null
+++ b/docs/html/images/up_motif.gif
Binary files differ
diff --git a/docs/html/images/up_motif_gr.gif b/docs/html/images/up_motif_gr.gif
new file mode 100644
index 0000000..a8b463a
--- /dev/null
+++ b/docs/html/images/up_motif_gr.gif
Binary files differ
diff --git a/docs/html/images/whiteball.gif b/docs/html/images/whiteball.gif
new file mode 100644
index 0000000..4a90ea1
--- /dev/null
+++ b/docs/html/images/whiteball.gif
Binary files differ
diff --git a/docs/html/images/yellowball.gif b/docs/html/images/yellowball.gif
new file mode 100644
index 0000000..c6ba6b1
--- /dev/null
+++ b/docs/html/images/yellowball.gif
Binary files differ
diff --git a/docs/images/baby-gnu.png b/docs/images/baby-gnu.png
new file mode 100644
index 0000000..f694e76
--- /dev/null
+++ b/docs/images/baby-gnu.png
Binary files differ
diff --git a/docs/images/gleeson_head.png b/docs/images/gleeson_head.png
new file mode 100644
index 0000000..8eb5ba6
--- /dev/null
+++ b/docs/images/gleeson_head.png
Binary files differ
diff --git a/docs/images/gnu-and-penguin-color-300x276.png b/docs/images/gnu-and-penguin-color-300x276.png
new file mode 100644
index 0000000..430e8ac
--- /dev/null
+++ b/docs/images/gnu-and-penguin-color-300x276.png
Binary files differ
diff --git a/docs/images/gnu-type.png b/docs/images/gnu-type.png
new file mode 100644
index 0000000..c689b06
--- /dev/null
+++ b/docs/images/gnu-type.png
Binary files differ
diff --git a/docs/images/gnubanner.jpg b/docs/images/gnubanner.jpg
new file mode 100644
index 0000000..6e1c7ad
--- /dev/null
+++ b/docs/images/gnubanner.jpg
Binary files differ
diff --git a/docs/images/jaulogo-hp-300x80.png b/docs/images/jaulogo-hp-300x80.png
new file mode 100644
index 0000000..1c7c4a9
--- /dev/null
+++ b/docs/images/jaulogo-hp-300x80.png
Binary files differ
diff --git a/docs/images/overviewA.fig b/docs/images/overviewA.fig
new file mode 100644
index 0000000..8973522
--- /dev/null
+++ b/docs/images/overviewA.fig
@@ -0,0 +1,118 @@
+#FIG 3.2
+Portrait
+Center
+Inches
+Letter
+100.00
+Single
+-2
+1200 2
+0 32 #8e8e8e
+0 33 #444444
+0 34 #e6e6ff
+0 35 #444444
+0 36 #8e8e8e
+0 37 #444444
+0 38 #8e8e8e
+0 39 #444444
+0 40 #8e8e8e
+0 41 #444444
+0 42 #8e8e8e
+0 43 #444444
+0 44 #8e8e8e
+0 45 #444444
+0 46 #8e8f8e
+0 47 #8e8f8e
+0 48 #8e8f8e
+0 49 #8e8f8e
+0 50 #8e8f8e
+0 51 #8e8f8e
+0 52 #8e8f8e
+0 53 #8e8f8e
+0 54 #8e8f8e
+0 55 #8e8f8e
+0 56 #8e8f8e
+0 57 #8e8f8e
+0 58 #8e8f8e
+0 59 #8e8f8e
+0 60 #8e8e8e
+0 61 #444444
+0 62 #8e8e8e
+0 63 #444444
+0 64 #8e8e8e
+0 65 #444444
+0 66 #8e8e8e
+0 67 #444444
+0 68 #e6e6ff
+0 69 #e6e6ff
+0 70 #e6e6ff
+0 71 #e6e6ff
+0 72 #e6e6ff
+0 73 #e6e6ff
+0 74 #e6e6ff
+6 6600 6900 8100 7500
+2 4 0 1 0 7 100 0 -1 0.000 0 0 7 0 0 5
+ 8100 7500 8100 6900 6600 6900 6600 7500 8100 7500
+4 0 0 100 0 0 18 0.0000 4 255 990 6825 7275 OpenGL\001
+-6
+6 3300 6900 6375 7500
+6 3300 6900 4500 7500
+2 4 0 1 0 7 100 0 -1 0.000 0 0 7 0 0 5
+ 4500 7500 4500 6900 3300 6900 3300 7500 4500 7500
+4 0 0 100 0 0 18 0.0000 4 165 390 3675 7275 etc.\001
+-6
+6 4800 6900 6375 7500
+2 4 0 1 0 7 100 0 -1 0.000 0 0 7 0 0 5
+ 6375 7500 6375 6900 4800 6900 4800 7500 6375 7500
+4 0 0 100 0 0 18 0.0000 4 255 1290 4950 7275 Windowing\001
+-6
+-6
+6 4200 375 7200 1575
+2 2 0 1 0 7 100 0 -1 0.000 0 0 -1 0 0 5
+ 4200 375 7200 375 7200 1575 4200 1575 4200 375
+4 0 0 100 0 0 18 0.0000 4 255 2100 4725 1125 Apple/Application\001
+4 0 0 100 0 0 18 0.0000 4 195 990 5175 825 GL4Java\001
+-6
+6 5400 1725 6000 2325
+2 3 0 1 0 0 0 0 -1 0.000 0 0 -1 0 0 4
+ 5400 1725 6000 1725 5701 2325 5400 1725
+-6
+6 4200 5250 4800 5850
+2 3 0 1 0 0 0 0 -1 0.000 0 0 -1 0 0 4
+ 4200 5250 4800 5250 4501 5850 4200 5250
+-6
+6 6900 5250 7500 5850
+2 3 0 1 0 0 0 0 -1 0.000 0 0 -1 0 0 4
+ 6900 5250 7500 5250 7201 5850 6900 5250
+-6
+2 2 0 1 0 7 100 0 -1 0.000 0 0 -1 0 0 5
+ 3000 2400 8400 2400 8400 4800 3000 4800 3000 2400
+2 2 0 1 0 7 100 0 -1 0.000 0 0 -1 0 0 5
+ 3000 2400 5700 2400 5700 3600 3000 3600 3000 2400
+2 2 0 1 0 7 100 0 -1 0.000 0 0 -1 0 0 3
+ 5700 3600 8400 3600 5700 3600
+2 2 0 1 0 7 100 0 -1 0.000 0 0 -1 0 0 5
+ 3000 6300 8400 6300 8400 7800 3000 7800 3000 6300
+2 2 0 1 0 7 100 0 -1 0.000 0 0 -1 0 0 5
+ 3000 3600 5700 3600 5700 4800 3000 4800 3000 3600
+3 3 0 1 0 7 100 0 -1 0.000 0 0 0 19
+ 4350 150 2775 675 1425 375 900 1350 1500 2475 2250 3000
+ 2175 3750 2325 4725 3975 5400 5850 5175 6300 4200 7800 4275
+ 8925 4050 9150 3300 9075 2400 9150 1500 8025 1275 8100 300
+ 6225 150
+ -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000
+ -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000
+ -1.000 -1.000 -1.000
+4 0 0 100 0 0 18 0.0000 4 195 1515 3600 2700 Java Runtime\001
+4 0 0 100 0 0 18 0.0000 4 195 1005 3900 4500 Libraries\001
+4 0 0 100 0 0 18 0.0000 4 195 1005 6600 4500 Libraries\001
+4 0 0 100 0 0 18 0.0000 4 195 2175 6000 2700 GL4Java Extension\001
+4 0 0 100 0 0 20 0.0000 4 195 2505 1350 900 Java Virtual Machine\001
+4 0 0 100 0 0 18 0.0000 4 255 750 2100 1200 (JVM)\001
+4 0 0 100 0 0 18 0.0000 4 255 4035 3900 6600 Native Machine / Operation System \001
+4 0 0 100 0 0 18 0.0000 4 195 2175 6000 4050 GL4Java Extension\001
+4 0 0 100 0 0 18 0.0000 4 195 1515 3600 4050 Java Runtime\001
+4 0 0 100 0 0 18 0.0000 4 195 810 3900 3150 Classes\001
+4 0 0 100 0 0 18 0.0000 4 195 810 6600 3150 Classes\001
+4 1 0 100 0 1 18 0.0000 4 195 375 7125 3675 JNI\001
+4 1 0 100 0 1 18 0.0000 4 195 375 4350 3675 JNI\001
diff --git a/docs/images/overviewA.png b/docs/images/overviewA.png
new file mode 100644
index 0000000..a592f28
--- /dev/null
+++ b/docs/images/overviewA.png
Binary files differ
diff --git a/docs/images/philosophical-gnu-sm.png b/docs/images/philosophical-gnu-sm.png
new file mode 100644
index 0000000..2c29ff8
--- /dev/null
+++ b/docs/images/philosophical-gnu-sm.png
Binary files differ
diff --git a/docs/images/reiss-head.jpg b/docs/images/reiss-head.jpg
new file mode 100644
index 0000000..6409db6
--- /dev/null
+++ b/docs/images/reiss-head.jpg
Binary files differ
diff --git a/docs/images/whats-gnu.png b/docs/images/whats-gnu.png
new file mode 100644
index 0000000..958e24b
--- /dev/null
+++ b/docs/images/whats-gnu.png
Binary files differ
diff --git a/docs/index.html b/docs/index.html
new file mode 100644
index 0000000..3ee89a3
--- /dev/null
+++ b/docs/index.html
@@ -0,0 +1,36 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta http-equiv="CONTENT-TYPE" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.75 [en] (X11; U; Linux 2.4.0-test4 i686) [Netscape]">
+ <meta name="CREATED" content="20000807;19074400">
+ <meta name="CHANGED" content="16010101;0">
+</head>
+<body text="#000000" bgcolor="#E6E6FF" link="#0000EF" vlink="#51188E" alink="#FF0000">
+&nbsp;
+<center>
+<h1>
+<font size=+4><a href="http://www.jausoft.com/gl4java/">GL4Java</a> / Docs</font></h1></center>
+
+<center><font size=+1>OpenGL Language Mapping For Java</font>
+<p><br>
+<p><font size=+1><a href="./introduction/index.html">Introduction</a></font>
+<br><font size=+1><a href="./html/GL4Java.html">Manual</a></font>
+<br><font size=+1><a href="./html/index.html">API</a></font>
+<br>&nbsp;
+<br><font size=+1><a href="../demos/MiscDemos/PerformanceLogs/">Performance Measurement Log-Files</a></font>
+<br>&nbsp;
+<p><a href="http://www.gnu.org"><img SRC="images/gleeson_head.png" NAME="Graphic1" BORDER=0 height=146 width=207 align=BOTTOM></a>
+<br>&nbsp;
+<p><a href="http://www.gnu.org/copyleft/lgpl.html">GL4Java is licensed
+under the &acute;GNU Library General Public License (LGPL)&acute; !</a>
+<br>&nbsp;
+<br>&nbsp;
+<br>&nbsp;
+<p><a href="http://www.jausoft.com"><img SRC="images/jaulogo-hp-300x80.png" NOSAVE BORDER=0 height=80 width=300></a></center>
+
+<ul>&nbsp;</ul>
+
+</body>
+</html>
diff --git a/docs/introduction/Overview.sda b/docs/introduction/Overview.sda
new file mode 100644
index 0000000..1cc7e85
--- /dev/null
+++ b/docs/introduction/Overview.sda
Binary files differ
diff --git a/docs/introduction/architecture.html b/docs/introduction/architecture.html
new file mode 100644
index 0000000..6337fc4
--- /dev/null
+++ b/docs/introduction/architecture.html
@@ -0,0 +1,47 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.73 [en] (X11; I; Linux 2.4.0-test5 ppc) [Netscape]">
+</head>
+<body text="#000000" bgcolor="#E6E6FF" link="#0000EF" vlink="#51188E" alink="#FF0000">
+
+<center>
+<h2>
+GL4Java / Intro / Architecture</h2></center>
+
+<center>
+<h2>
+The Integration</h2></center>
+
+<ul>
+<li>
+GL4Java uses the Java Native Interface (JNI) to pass all OpenGL calls from
+Java to the machines native OpenGL library.</li>
+
+<ul>&nbsp;
+<br>GL4Java has two layers:
+<ul>
+<li>
+Java-Classes</li>
+
+<li>
+Native-Library</li>
+</ul>
+
+<p><br>Both layers are connected via JNI, where the native library is platform
+dependend
+<br>and must be ported and compiled for each platform.
+<p><img SRC="images/overviewA.png" NOSAVE height=565 width=610 align=TEXTTOP>
+<br>&nbsp;</ul>
+</ul>
+
+<center><img SRC="images/gnu-and-penguin-color-300x276.png" NOSAVE height=276 width=300></center>
+
+<ul>
+<ul>&nbsp;
+<br>&nbsp;</ul>
+</ul>
+
+</body>
+</html>
diff --git a/docs/introduction/benefits.html b/docs/introduction/benefits.html
new file mode 100644
index 0000000..8cf3de6
--- /dev/null
+++ b/docs/introduction/benefits.html
@@ -0,0 +1,147 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.73 [en] (X11; I; Linux 2.4.0-test5 ppc) [Netscape]">
+</head>
+<body text="#000000" bgcolor="#E6E6FF" link="#0000EF" vlink="#51188E" alink="#FF0000">
+
+<center>
+<h2>
+GL4Java / Intro / <font size=+1>Benefits</font></h2></center>
+
+<center>
+<h2>
+<font size=+1>The Features Of GL4Java</font></h2></center>
+
+<ul>
+<li>
+Open Standard in the meaning of the GNU community.</li>
+
+<ul>&nbsp;
+<br>GL4Java is licensed under the <a href="http://www.gnu.org/copyleft/lgpl.html">&acute;GNU
+Library General Public License (LGPL)&acute; !</a>
+<br>People can use it freely and can contribute code and ideas into this
+living project.
+<br>The API, of course, should being left stable. Changes should not affect
+the current usage
+<br>and should made compatible.
+<p>Because the API and its implementation is free,
+<br>there is no reason of being afraid that GL4Java will stop existing.
+<br>The worst case is, that you must maintain GL4Java by yourself, if nobody
+other does.
+<br>But you are allowed to do so and everything you need is freely avaiable
+!
+<br>&nbsp;</ul>
+
+<li>
+It is avaiable for different OS / architectures.</li>
+
+<ul>&nbsp;
+<br>GL4Java can be seen as an Java extension, which has a native and a
+java part.
+<br>The native part is prepared for:
+<ul>
+<ul>
+<li>
+Unices</li>
+
+<ul>
+<li>
+GNU/Linux + XFree86 3.Y.Z - 4.Y.Z</li>
+
+<li>
+Solaris</li>
+
+<li>
+Irix</li>
+
+<li>
+...</li>
+</ul>
+
+<li>
+Windows 9x-NT</li>
+
+<li>
+Macintosh OS 9.Y.Z</li>
+</ul>
+</ul>
+
+<p><br>The number of&nbsp; precompiled libraries for the different OS is
+growing.
+<br>Currently the most Unices, Windows and Macintosh is supported with
+precompiled libs.
+<br>&nbsp;</ul>
+
+<li>
+GL4Java Applets can run with Netscape (Unices+Windows) and with MS-IE (Windows)</li>
+</ul>
+
+<ul>
+<li>
+Can be installed via the WWW with a browser and the Installer-Applet.</li>
+</ul>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+The Installer-Applet can be used for a local installation also.
+<ul>
+<li>
+Supports Java with a complete OpenGL 1.2 and GLU native library mapping.</li>
+
+<ul>&nbsp;
+<br>Any modifications and extensions to the OpenGL library will be followed.
+<p>Uses true hardware accelerated (if supported by the OS) for AWT-Canvas
+components,
+<br>and currently offscreen rendered (may be hardware accelerated) Swing
+components.
+<br>&nbsp;</ul>
+
+<li>
+Supports a Java written <b><i><a href="http://reality.sgi.com/opengl/glut3/glut3.html">glut</a></i></b>implementation
+(subset), included the glut-fonts.</li>
+
+<ul>&nbsp;</ul>
+
+<li>
+Offers convinient classes and functions to:</li>
+
+<ul>
+<li>
+Access OpenGL/GLU with a C like API.</li>
+
+<li>
+Bind the OpenGL context to the native Java window, or to an offscreen Image.</li>
+
+<li>
+Base classes to provide the user with basic Canvas features for still and
+animation rendering, like <b><i><a href="http://reality.sgi.com/opengl/glut3/glut3.html">glut</a></i></b>.</li>
+
+<ul>
+<li>
+Complete event handling for window refresh, etc.</li>
+
+<li>
+OpenGL context creation and binding</li>
+
+<li>
+Multi-Threading handling for animation</li>
+
+<li>
+Texture loading / saving in different formats: TGA, PNG, JPG, ...</li>
+
+<li>
+Applet integration and test classes</li>
+
+<li>
+Creating snapshots and displaying images</li>
+
+<li>
+...</li>
+</ul>
+</ul>
+</ul>
+
+<center><img SRC="images/reiss-head.jpg" NOSAVE height=253 width=259></center>
+
+</body>
+</html>
diff --git a/docs/introduction/competitors.html b/docs/introduction/competitors.html
new file mode 100644
index 0000000..6e037c4
--- /dev/null
+++ b/docs/introduction/competitors.html
@@ -0,0 +1,51 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.73 [en] (X11; I; Linux 2.4.0-test5 ppc) [Netscape]">
+</head>
+<body text="#000000" bgcolor="#E6E6FF" link="#0000EF" vlink="#51188E" alink="#FF0000">
+
+<center>
+<h2>
+GL4Java / Intro / <font size=+1>Competitors</font></h2></center>
+
+<center>
+<h2>
+<font size=+1>The Other OpenGL and 3D API's For Java ?</font></h2></center>
+
+<center><i><font size=-1>(There is no competition :o)</font></i>
+<p><font size=-1>GL4Java itself is 1st released in 04/1997, its 1st prerequisites
+is 1st released in 01/1996 !</font></center>
+
+<ul>
+<li>
+Magician ( -> <a href="http://arcana.symbolstone.org/products/magician/">http://arcana.symbolstone.org/products/magician/</a>
+)</li>
+
+<p><br>Magician is a commercial closed source product, and it is therefor
+a proprietary product ( -> GNU ).
+<p>It has a nice documentation. People who has switched from Magician to
+GL4Java,
+<br>because its Magician's proprietary approach, missed nothing, but the
+open source standard.
+<p>Well, I gave Magician no try, because of the license - thats it.
+<p>Ron Cemer, a GL4Java participant, just stated about the Magician approach,
+<br>that he is not willing to spend time and energy in bug finding for
+an closed and proprietary product.
+<br>So do I.
+<p>1st Release on 09/1997.
+<br>&nbsp;
+<li>
+JSparrow ( -> <a href="http://www.pfu.co.jp/jsparrow/">http://www.pfu.co.jp/jsparrow/</a>
+)</li>
+
+<p><br>Another commercial closed source product.
+<p>See above !
+<p>1st Release on 09/1998.
+<br>&nbsp;</ul>
+
+<center><img SRC="images/philosophical-gnu-sm.png" NOSAVE height=200 width=160></center>
+
+</body>
+</html>
diff --git a/docs/introduction/future.html b/docs/introduction/future.html
new file mode 100644
index 0000000..9d01986
--- /dev/null
+++ b/docs/introduction/future.html
@@ -0,0 +1,80 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.73 [en] (X11; I; Linux 2.4.0-test5 ppc) [Netscape]">
+</head>
+<body text="#000000" bgcolor="#E6E6FF" link="#0000EF" vlink="#51188E" alink="#FF0000">
+
+<center>
+<h2>
+GL4Java / Intro / Future</h2></center>
+
+<center>
+<h2>
+<font size=+1>Plans, Projects, Help, Participation</font></h2></center>
+
+<p><br>We - the GL4Java developer/users - are looking for further support
+&amp;&nbsp;sponsoring:
+<ul>
+<li>
+LGPL'ed code</li>
+
+<li>
+Machines to creating precompiled libs for /&nbsp;or people who does it</li>
+
+<li>
+Testers</li>
+
+<li>
+Application and Companies, which announces GL4Java</li>
+
+<li>
+Anything else :o)</li>
+</ul>
+
+<p><br>In the future, the following is planed - or should be added on:
+<ul>
+<li>
+More precompiled binaries ...</li>
+</ul>
+
+<ul>
+<li>
+Stabilisation ...</li>
+</ul>
+
+<ul>
+<li>
+Improved performance for offscreen rendering and swing integration !</li>
+</ul>
+
+<ul>
+<li>
+Scene-Graph API and implementation, which uses GL4Java</li>
+
+<ul>
+<li>
+VRML97 reader /&nbsp;writer</li>
+
+<li>
+3DES, DFX, ... reader /&nbsp;writer</li>
+</ul>
+
+<li>
+Game engines ...</li>
+</ul>
+
+<ul>
+<li>
+What do you want ?&nbsp;Tell us or/and implement it.</li>
+</ul>
+
+<center><img SRC="images/baby-gnu.png" NOSAVE height=233 width=175></center>
+
+<ul>
+<ul><font size=-1></font>&nbsp;</ul>
+</ul>
+
+</body>
+</html>
diff --git a/docs/introduction/gleeson_head.png b/docs/introduction/gleeson_head.png
new file mode 100644
index 0000000..8eb5ba6
--- /dev/null
+++ b/docs/introduction/gleeson_head.png
Binary files differ
diff --git a/docs/introduction/history.html b/docs/introduction/history.html
new file mode 100644
index 0000000..1571feb
--- /dev/null
+++ b/docs/introduction/history.html
@@ -0,0 +1,84 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.73 [en] (X11; I; Linux 2.4.0-test5 ppc) [Netscape]">
+</head>
+<body text="#000000" bgcolor="#E6E6FF" link="#0000EF" vlink="#51188E" alink="#FF0000">
+
+<center>
+<h2>
+GL4Java / Intro / Historie</h2></center>
+
+<center>
+<h2>
+<font size=+1>The Pre-GL4Java OpenGL Language Mappings</font></h2></center>
+
+<center>
+<p><br><b><i>01/1996</i></b></center>
+
+<p>The OpenGL interface for Java work was started by Leo Chan<a href="ftp://ftp.cgl.uwaterloo.ca/pub/software/meta/OpenGL4java.html">
+[ftp://ftp.cgl.uwaterloo.ca/pub/software/meta/OpenGL4java.html]</a>.
+<br>He implemented the library for Java 1.0.2 with its pre JNI native mechanism.
+<br>The native and the java glue for OpenGL was written by hand and so,
+it wasn't complete.
+<br>&nbsp;
+<br>&nbsp;
+<br>
+<center>
+<p><b><i>1997</i></b></center>
+
+<p>Leo Chan's works was continued by Adam King[<a href="http://www.magma.ca/%7Eaking/java">OpenGL4Java</a>].
+<br>This version was able to be compiled with Java 1.1 and the
+<br>OpenGL-Rendering is done in the callers Java-Frame.
+<br>The native and java glue for OpenGL was still implemented by hand and
+used the pre JNI mechanism.
+<br>&nbsp;
+<br>&nbsp;
+<br>
+<center>
+<p><b><i>(about) 04/1997 - 12/1997</i></b></center>
+
+<p>Tommy Reilly[<a href="http://www.pajato.com/jogl">Jogl</a>] participated
+to Adam King's work and the project's title changed to Jogl. Jogl's big
+points lies in it's
+<br>powerfull autoconfig and in it's improved X-Window System functions
+- so mostly all Unices are supported. Another point is
+<br>the Win32 support. Sources and a precompiled dll were distributed.
+<br>Jogl uses the new Java 1.1 JNI mechnism, the native and java glue for
+OpenGL was still implemented by hand.
+<br>Like the prerequisite versions, Jogl's API differs from the "C" OpenGL
+naming convention.
+<br>&nbsp;
+<br>&nbsp;
+<br>
+<center>
+<p><b><i>03/1997 - Today</i></b></center>
+
+<p><a href="http://www.jausoft.com/gl4java/">GL4Java</a> is based upon
+Leo Chan's work and is developed parallel to Jogl.
+<br>It uses - as Jogl does - the JDK 1.1. JNI mechanism.
+<br>After getting in touch with Tommy Reilly, Jogl and GL4Java shared a
+few ressources.
+<br>The further development of Jogl&nbsp; stops, so GL4Java is the only
+active remaining successor of the first original approach.
+<br>GL4Java extends / differs from all the above implementations:
+<ul>
+<li>
+Using the "C" OpenGL API / naming convention</li>
+
+<li>
+Using a compiler to create the complete OpenGL/GLU native and java glue
+code</li>
+
+<li>
+Is Netscape &amp; MS-IE Browser enabled.</li>
+
+<li>
+...</li>
+</ul>
+
+<center><img SRC="images/whats-gnu.png" NOSAVE height=256 width=276></center>
+
+</body>
+</html>
diff --git a/docs/introduction/index.html b/docs/introduction/index.html
new file mode 100644
index 0000000..71d32a2
--- /dev/null
+++ b/docs/introduction/index.html
@@ -0,0 +1,70 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta http-equiv="CONTENT-TYPE" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.73 [en] (X11; I; Linux 2.4.0-test5 ppc) [Netscape]">
+ <meta name="CREATED" content="20000807;19074400">
+ <meta name="CHANGED" content="16010101;0">
+</head>
+<body text="#000000" bgcolor="#E6E6FF" link="#0000EF" vlink="#51188E" alink="#FF0000">
+&nbsp;
+<center>
+<h1>
+<font size=+4><a href="http://www.jausoft.com/gl4java/">GL4Java</a> / Introduction</font></h1></center>
+
+<center><font size=+1>OpenGL Language Mapping For Java</font></center>
+
+<p><br>
+<ul>
+<ul>
+<ul>
+<ul>
+<li>
+<font size=+1><a href="motivation.html">Motivation: 3D in Java Applications/Applets/WebSites</a></font></li>
+
+<li>
+<font size=+1><a href="purpose.html">Purpose: Accessing Native OpenGL From
+The Java Side</a></font></li>
+
+<li>
+<font size=+1><a href="architecture.html">Architecture: The Integration</a></font></li>
+
+<li>
+<font size=+1><a href="benefits.html">Benefits: The Features Of GL4Java</a></font></li>
+
+<li>
+<font size=+1><a href="history.html">History: The Pre-GL4Java OpenGL Language
+Mappings</a></font></li>
+
+<li>
+<font size=+1><a href="competitors.html">Competitors: The Other OpenGL
+and 3D API's For Java ?</a></font></li>
+
+<li>
+<font size=+1><a href="future.html">Future: Plans, Projects, Help, Participation</a></font></li>
+
+<li>
+<font size=+1><a href="thanxs.html">Thanxs</a></font></li>
+
+<li>
+<font size=+1><a href="../../demos/MiscDemos/PerformanceLogs/">Performance Measurement Log-Files</a></font></li>
+</ul>
+</ul>
+</ul>
+</ul>
+
+<center><a href="http://www.gnu.org"><img SRC="images/gleeson_head.png" NAME="Graphic1" BORDER=0 height=146 width=207 align=BOTTOM></a>
+<br>&nbsp;
+<p><a href="http://www.gnu.org/copyleft/lgpl.html">GL4Java is licensed
+under the &acute;GNU Library General Public License (LGPL)&acute; !</a>
+<br>&nbsp;
+<br>&nbsp;
+<br>&nbsp;
+<p><a href="http://www.jausoft.com"><img SRC="images/jaulogo-hp-300x80.png" NOSAVE BORDER=0 height=80 width=300></a></center>
+
+
+<ul>&nbsp;</ul>
+
+</body>
+</html>
diff --git a/docs/introduction/motivation.html b/docs/introduction/motivation.html
new file mode 100644
index 0000000..7b1b098
--- /dev/null
+++ b/docs/introduction/motivation.html
@@ -0,0 +1,134 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.75 [en] (X11; U; Linux 2.4.0-test4 i686) [Netscape]">
+</head>
+<body text="#000000" bgcolor="#E6E6FF" link="#0000EF" vlink="#51188E" alink="#FF0000">
+
+<center>
+<h2>
+GL4Java / Intro / Motivation</h2></center>
+
+<center>
+<h2>
+3D in Java Applications/Applets/WebSites</h2></center>
+
+<ul>
+<li>
+Todays usage of 3D in serious applications, as well as in games and web
+pages is rapidly growing.</li>
+
+<li>
+Many existing technologies exits for using 3D in the Web:</li>
+
+<ul>
+<li>
+Metastream ( -> <a href="http://www.metastream.com">http://www.metastream.com
+</a>)</li>
+</ul>
+
+<ul>&nbsp;
+<br>A 3D Object visualisation toolkit / viewer !
+<br>Metastream objects can be rotated, zoomed and moved by the user/viewer.
+<br>Further interactions are not foreseen.
+<br>Big points are:
+<ul>
+<ul>
+<li>
+High compression rate of the image data</li>
+
+<li>
+Integrates perfect in HTML pages (background, shadows, ...)</li>
+
+<li>
+High quality texture mapping</li>
+</ul>
+</ul>
+</ul>
+</ul>
+
+<ul>
+<ul>
+<li>
+VRML (1.0-97), X3D (-> <a href="http://www.web3d.org">http://www.web3d.org</a>
+)</li>
+
+<ul>
+<li>
+Scene-Graph&nbsp; organisation / structure</li>
+
+<li>
+Interaction / Manipulation via:</li>
+
+<ul>
+<li>
+Interpolatiors</li>
+
+<li>
+Timers</li>
+
+<li>
+Sensors (Collision, Proximity, Time, Touch, Visibility, ...)</li>
+
+<li>
+Java Interface</li>
+</ul>
+</ul>
+A VRML World can interactive, so you can walk around and have some actions.
+<br>The World itself, inclusive the interaction codes can resides within
+one compressed VRML file.
+<br>Many current browsers usually have an VRML viewer, but as a restriction,
+<br>the GNU/Linux machines are not supported by default.
+<br>&nbsp;
+<li>
+Java3D ( -> <a href="http://www.javasoft.com/products/java-media/3D/index.html">http://www.javasoft.com/products/java-media/3D/index.html
+)</a></li>
+</ul>
+</ul>
+
+<ul>
+<ul>Java3D is a high level 3D API for Java. It may use OpenGL, Direct3D
+or anything else.
+<br>Many features and algorythms of Java3D are implemented in Java itself,
+<br>so the performance is not comparable with a native implementation which
+may also
+<br>include geometric hardware unit.
+<br>Java3D has a VRML reader/writer, and like VRML, a 3D scene-graph API
+!</ul>
+</ul>
+
+<ul>
+<ul>&nbsp;
+<li>
+OpenGL language mappings for Java</li>
+</ul>
+</ul>
+
+<ul>
+<ul>Like GL4Java, there exists many OpenGL language mappings for Java (
+-> <a href="historie.html">historie </a>) !
+<p>All features of the OpenGL language and the Java language are combined
+in one solution:
+<ul>
+<ul>
+<li>
+OpenGL's industry standard</li>
+
+<li>
+Using todays hardware accelerated graphic cards techniques directly</li>
+
+<li>
+Having platform independed high perfomance 3D solutions</li>
+
+<li>
+Combining Java's usability and its high amount of API's with 3D</li>
+</ul>
+</ul>
+</ul>
+</ul>
+
+<center><img SRC="images/gnubanner.jpg" NOSAVE height=60 width=468></center>
+
+</body>
+</html>
diff --git a/docs/introduction/purpose.html b/docs/introduction/purpose.html
new file mode 100644
index 0000000..32f7850
--- /dev/null
+++ b/docs/introduction/purpose.html
@@ -0,0 +1,101 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.75 [en] (X11; U; Linux 2.4.0-test4 i686) [Netscape]">
+</head>
+<body text="#000000" bgcolor="#E6E6FF" link="#0000EF" vlink="#51188E" alink="#FF0000">
+
+<center>
+<h2>
+GL4Java / Intro / Purpose</h2></center>
+
+<center>
+<h2>
+Accessing Native OpenGL From The Java Side</h2></center>
+
+<ul>
+<li>
+OpenGL is the industry standard 3D API originally created by SGI (->
+<a href="http://www.opengl.org/">http://www.opengl.org</a>
+).</li>
+
+<ul>&nbsp;
+<br>OpenGL is known as the standard 3D API for serious CAD development,
+creation &amp; visualisation.
+<p>Today, also games does use OpenGL as its underlying 3D renderer machine,
+<br>because of its reliability and the existing consumer graphic cards
+with OpenGL hardware acceleration.
+<p>The benefits of OpenGL are described under:
+<a href="http://www.opengl.org/About/About.html">http://www.opengl.org/About/About.html</a>
+.
+<br>&nbsp;</ul>
+
+<li>
+GL4Java adds native OpenGL access to the Java Virtual Machine (JVM).</li>
+
+<ul>&nbsp;
+<br>Applications as well as Applets can use OpenGL,
+<br>if the GL4Java-Extension is installed on the users machine.
+<p>Currently the following JVM's are supported
+<br>&nbsp;
+<ul>
+<li>
+Sun's JVM (all types of: Blackdown, IBM, ...)</li>
+
+<ul>
+<li>
+GNU/Linux</li>
+
+<li>
+Other Unices (Solaris, Irix, ..)</li>
+
+<li>
+Win9x, WinNT, ...</li>
+
+<li>
+Macintosh ...</li>
+</ul>
+
+<li>
+MS-JVM (build >=3186 )</li>
+</ul>
+
+<p><br>The Installation can be made via the GL4Java-Installer,
+<br>which can be start from a Web-Browser and installs GL4Java on the fly
+from the Web,
+<br>or runs as a standalone application from your local harddisk.
+<br>&nbsp;</ul>
+
+<li>
+The performance of GL4Java applications depends on:</li>
+</ul>
+
+<ul>
+<ul>
+<li>
+The underlying JVM implementation (Native Threads/JIT/Hotspot/...)</li>
+
+<li>
+The underlying OpenGL implementation (Hardware Accelerated vs Software
+Rendering)</li>
+</ul>
+
+<br>&nbsp;
+<ul><font size=-1>With new world JVM's and OpenGL graphic cards and their
+libraries,</font>
+<br><font size=-1>you can expect a very usable performance - nearly high
+as the native applications.</font>
+<br><font size=-1>The biggest performance difference is the algorythm part</font>
+<br><font size=-1>of your GL4Java application, which you might use and
+need for geometric calculations,</font>
+<br><font size=-1>game logic, etc. The OpenGL glue in the GL4Java-Extension,
+which makes the connection</font>
+<br><font size=-1>to the native OpenGL library, is as small as it can be
+!</font></ul>
+</ul>
+
+<center><img SRC="images/gnubanner.jpg" NOSAVE height=60 width=468></center>
+
+</body>
+</html>
diff --git a/docs/introduction/thanxs.html b/docs/introduction/thanxs.html
new file mode 100644
index 0000000..a4982d4
--- /dev/null
+++ b/docs/introduction/thanxs.html
@@ -0,0 +1,61 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.73 [en] (X11; I; Linux 2.4.0-test5 ppc) [Netscape]">
+</head>
+<body text="#000000" bgcolor="#E6E6FF" link="#0000EF" vlink="#51188E" alink="#FF0000">
+
+<center>
+<h2>
+GL4Java / Intro / Thanxs</h2></center>
+
+<center>
+<h2>
+<font size=+1>Thanxs</font></h2></center>
+
+<center><font size=+1>The GNU &amp; GNU/Linux community, and all the brave
+folks, who</font>
+<br><font size=+1>wrote open sourced free (L)GPL'ed software.</font>
+<br><font size=+1>Without them, a project like this is impossible !</font>
+<p><font size=+1>Leo Chan for porting the OpenGL library to java the first
+time !</font>
+<p><font size=+1>Adam King for porting Leo Changs version to integrate</font>
+<br><font size=+1>the OpenGL-Rendering into the Java-Frame !</font>
+<p><font size=+1>Tommy Reilly for participating and much improvements</font>
+<p><font size=+1>Atilla Kolac for participating in GL4Java while his and
+mine</font>
+<br><font size=+1>diploma thesis work.</font>
+<p><font size=+1>Leung Yau Wai for debugging Win32 !</font>
+<p><font size=+1>Eloi Maduell for keeping me working on the Netscape support</font>
+<br><font size=+1>and his texture examples.</font>
+<p><font size=+1>Lee Elson &amp; Odell Reynolds (both NASA)</font>
+<br><font size=+1>for makeing the source code more compatible</font>
+<br><font size=+1>and creating binaries for other unices.</font>
+<p><font size=+1>Gerard Ziemski for porting GL4Java to the MACintosh !</font>
+<p><font size=+1>Ron Cemer (www.3dstockcharts.com)</font>
+<br><font size=+1>for start porting GL4Java to the MS-JVM</font>
+<br><font size=+1>and writing the 1st version of the INSTALLER !</font>
+<p><font size=+1>Pontus Lidman (Mathcore) for adding</font>
+<br><font size=+1>GLUT Font support for GL4Java !</font>
+<p><font size=+1>www.desys.com for paying me a fee,</font>
+<br><font size=+1>to support offscreen rendering and swing integration
+!</font>
+<p><font size=+1>Max Gilead, for maintaining the FAQ and answering so many</font>
+<br><font size=+1>questions in the mailinglist, and ...</font>
+<p><font size=+1>Ervin Vervaet (Java MD3 Viewer), Max Gilead (Fictor),</font>
+<br><font size=+1>Aetius (SurfaceGL), Jean-Yves BRUD, and many others</font>
+<br><font size=+1>- for helping being GL4Java bug clean.</font>
+<p><font size=+1>E3Futura &amp; TeatreSoft for inviting me to the www.campus-party.org
+(2k)</font>
+<br><font size=+1>and makes my appearance to it possible.</font>
+<p><font size=+1>And all the many others, who are not named here !</font>
+<br>&nbsp;
+<p><a href="http://www.jausoft.com"><img SRC="images/jaulogo-hp-300x80.png" NOSAVE BORDER=0 height=80 width=300></a></center>
+
+<ul>
+<ul>&nbsp;</ul>
+</ul>
+
+</body>
+</html>
diff --git a/docs/introduction/trademarks.html b/docs/introduction/trademarks.html
new file mode 100644
index 0000000..3dbd58b
--- /dev/null
+++ b/docs/introduction/trademarks.html
@@ -0,0 +1,64 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.73 [en] (X11; I; Linux 2.4.0-test5 ppc) [Netscape]">
+</head>
+<body text="#000000" bgcolor="#E6E6FF" link="#0000EE" vlink="#551A8B" alink="#FF0000">
+&nbsp;
+<center>
+<h2>
+Trademarks</h2></center>
+
+<ul>
+<ul>
+<li>
+<font face="Arial,Helvetica"><font size=+1>Linux is a trademark of Linus
+Torvald</font></font></li>
+
+<li>
+<font face="Arial,Helvetica"><font size=+1>Java and all Java-based trademarks
+and logos are trademarks or registered trademarks of Sun Microsystems,Inc.
+in the United States and other countries.</font></font></li>
+
+<li>
+<font face="Arial,Helvetica"><font size=+1>Solaris is trademark of Sun
+Microsystems,Inc.</font></font></li>
+
+<li>
+<font face="Arial,Helvetica"><font size=+1>OpenGL is a registered trademark
+of SGI.</font></font></li>
+
+<li>
+<font face="Arial,Helvetica"><font size=+1>Windows and Windows NT are registered
+trademarks of Microsoft Corporation.</font></font></li>
+
+<li>
+<font face="Arial,Helvetica"><font size=+1>IRIX is a registerd trademark
+of SGI in the United States and other countries.</font></font></li>
+
+<li>
+<font face="Arial,Helvetica"><font size=+1>Mac is a registered trademark
+of Apple Computer, Inc.</font></font></li>
+
+<li>
+<font face="Arial,Helvetica"><font size=+1>Netscape is a trademark of Netscape
+Communications Corp.</font></font></li>
+
+<li>
+<font face="Arial,Helvetica"><font size=+1>The names of products and corporations
+are trademarks or registered trademarks of respective corporation.</font></font></li>
+</ul>
+</ul>
+
+<div STYLE="margin-left: 2cm">
+<center><b><i>GL4Java has no relationship with the Java trademark registered
+by Sun Microsystems, Inc.</i></b></center>
+</div>
+
+<br>&nbsp;
+<br>&nbsp;
+<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GL4Java has no
+relationship with the Java trademark registered by Sun Microsystems, Inc.
+</body>
+</html>
diff --git a/gl4java.html b/gl4java.html
new file mode 100644
index 0000000..41d1034
--- /dev/null
+++ b/gl4java.html
@@ -0,0 +1,89 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+<HEAD>
+ <TITLE></TITLE>
+ <META NAME="GENERATOR" CONTENT="StarOffice/5.0 (Unix)">
+ <META NAME="CREATED" CONTENT="19990115;3183800">
+ <META NAME="CHANGEDBY" CONTENT="sven goethel">
+ <META NAME="CHANGED" CONTENT="19990115;3311300">
+ <STYLE>
+ <!--
+ -->
+ </STYLE>
+</HEAD>
+<BODY bgcolor="#e6e6ff">
+<HR>
+<P ALIGN=CENTER><B><U>Some places ....</U></B>
+</P>
+<P ALIGN=CENTER><FONT COLOR="#000080"><A HREF="http://java.sun.com/"><FONT COLOR="#000080"><IMG SRC="docs/html/images/j2j.gif" NAME="Grafik1" ALT="Jump2Java" ALIGN=BOTTOM HSPACE=20 WIDTH=80 HEIGHT=80 BORDER=1></FONT></A></FONT>
+<FONT COLOR="#000080">
+<A HREF="http://www.opengl.org/"><FONT COLOR="#000080"><IMG SRC="docs/html/images/ogla.gif" NAME="Grafik2" ALT="OpenGL" ALIGN=BOTTOM HSPACE=20 WIDTH=140 HEIGHT=80 BORDER=1></FONT></A></FONT>
+<FONT COLOR="#000080">
+<A HREF="http://www.gamelan.com/"><FONT COLOR="#000080"><IMG SRC="docs/html/images/gamelanbutton.gif" NAME="Grafik3" ALT="Gamelan" ALIGN=BOTTOM HSPACE=20 WIDTH=197 HEIGHT=43 BORDER=1></FONT></A></FONT>
+<FONT COLOR="#000080">
+<A HREF="http://jars.developer.com/jarssearch.html"><FONT COLOR="#800000"><IMG SRC="docs/html/images/jarswebsearch.gif" NAME="Grafik4" ALT="JARS" ALIGN=BOTTOM HSPACE=20 WIDTH=75 HEIGHT=38 BORDER=1></FONT></A></FONT>
+
+</P>
+<HR>
+<P ALIGN=CENTER><B><U>Some Java OpenGL places ...</U></B>
+</P>
+<P>GL4Java
+</P>
+<P><A HREF="http://www.jausoft.com/gl4java.html">http://www.jausoft.com/gl4java.html</A></P>
+
+</P>
+<P><A HREF="http://members.home.net/gziemski/pages/projects/GL4Java.html">http://members.home.net/gziemski/pages/projects/GL4Java.html
+<SPAN STYLE="text-decoration: none">(Macintosh port of GL4Java)</SPAN></A></P>
+<P><A HREF="http://www.jausoft.com/Files/Java/1.1.X/GL4JavaApps">http://www.jausoft.com/Files/Java/1.1.X/GL4JavaApps</A><SPAN STYLE="text-decoration: none"><A HREF="http://members.home.net/gziemski/pages/projects/GL4Java.html">
+ (<SPAN STYLE="text-decoration: none"> GL4Java-Applications:
+</SPAN></A>GLLandScape<A HREF="http://members.home.net/gziemski/pages/projects/GL4Java.html">)
+</A></SPAN><BR>&nbsp;
+</P>
+<P>Jogl
+</P>
+<P><A HREF="http://www.pajato.com/jogl">http://www.pajato.com/jogl</A>
+<BR>&nbsp;
+</P>
+<P>OpenGL4Java
+</P>
+<P><A HREF="http://www.magma.ca/%7Eaking/java">http://www.magma.ca/%7Eaking/java</A>
+
+</P>
+<P><A HREF="http://ftp.cgl.uwaterloo.ca/pub/software/meta/OpenGL4java.html">http://ftp.cgl.uwaterloo.ca/pub/software/meta/OpenGL4java.html</A>
+<BR>&nbsp;
+</P>
+<P ALIGN=CENTER><B><U>Some OpenGL places ....</U></B>
+</P>
+<P>Gateway to OpenGL Info
+</P>
+<P><A HREF="http://reality.sgi.com/mjk_asd/opengl-links.html">http://reality.sgi.com/mjk_asd/opengl-links.html</A>
+<BR>&nbsp;
+</P>
+<P>glx Specification
+</P>
+<P><A HREF="http://reality.sgi.com/mjk_asd/glxspec/glxspec.html">http://reality.sgi.com/mjk_asd/glxspec/glxspec.html</A>
+<BR>&nbsp;
+</P>
+<P>OpenGL WWW Center
+</P>
+<P><A HREF="http://www.sgi.com/Technology/openGL">http://www.sgi.com/Technology/openGL</A>
+
+</P>
+<P>OpenGL
+</P>
+<P><A HREF="http://www.opengl.org/">http://www.opengl.org</A>
+</P>
+<P>MESA 3.0 (includes glut now)</P>
+<P><A HREF="http://www.ssec.wisc.edu/~brianp/Mesa.html">http://www.ssec.wisc.edu/~brianp/Mesa.html</A>
+
+</P>
+<P>GLUT 3.5
+</P>
+<P><A HREF="http://reality.sgi.com/employees/mjk_asd/glut3/glut3.html">http://reality.sgi.com/employees/mjk_asd/glut3/glut3.html</A>
+<BR>&nbsp;
+</P>
+<P ALIGN=CENTER STYLE="margin-bottom: 0.00cm">... hope that helps
+;-)) !
+</P>
+</BODY>
+</HTML>
diff --git a/gl4java/GL4JavaInitException.java b/gl4java/GL4JavaInitException.java
new file mode 100644
index 0000000..93975fc
--- /dev/null
+++ b/gl4java/GL4JavaInitException.java
@@ -0,0 +1,10 @@
+
+package gl4java;
+
+
+public class GL4JavaInitException extends Exception
+{
+
+ public GL4JavaInitException ()
+ { super(); }
+}
diff --git a/gl4java/GL4JavaReflections.java b/gl4java/GL4JavaReflections.java
new file mode 100644
index 0000000..79969bf
--- /dev/null
+++ b/gl4java/GL4JavaReflections.java
@@ -0,0 +1,163 @@
+
+/**
+ * @(#) GL4JavaReflections.java
+ */
+
+package gl4java;
+
+import java.lang.System;
+import java.lang.String;
+import java.lang.reflect.*;
+
+/**
+ * The function-declaration holder !
+ *
+ * @see CFuncVariable
+ * @version 1.00, 12. Novemeber 1999
+ * @author Sven Goethel
+ *
+ */
+public class GL4JavaReflections
+ implements Cloneable
+{
+ public Object methodClassInstance=null;
+ public Class type=null;
+ public String methodName=null;
+ public Class[] argList=null;
+
+ public GL4JavaReflections ( Object methodClassInstance,
+ Class type, String methodName,
+ Class[] argList )
+ {
+ this.methodClassInstance=methodClassInstance;
+ this.type=type;
+ this.methodName=methodName;
+ this.argList=argList;
+ }
+
+ protected Object clone()
+ throws CloneNotSupportedException
+ {
+ int i;
+ Class[] args = new Class[argList.length];
+
+ for(i=0; i<argList.length; i++)
+ args[i] = argList[i];
+
+ GL4JavaReflections nobj =
+ new GL4JavaReflections(methodClassInstance,
+ type, methodName, args);
+
+
+ return nobj;
+ }
+
+ public String getMethodSignature()
+ {
+ return getMethodSignature(argList, type);
+ }
+
+ public static String patchJvmSigType(String s)
+ {
+ if(s==null)
+ return null;
+
+ if(s.startsWith("["))
+ return s;
+
+ if(s.equals("boolean"))
+ return "Z";
+ if(s.equals("byte"))
+ return "B";
+ if(s.equals("char"))
+ return "C";
+ if(s.equals("short"))
+ return "S";
+ if(s.equals("int"))
+ return "I";
+ if(s.equals("long"))
+ return "J";
+ if(s.equals("float"))
+ return "F";
+ if(s.equals("double"))
+ return "D";
+ if(s.equals("void"))
+ return "V";
+
+ return s;
+ }
+
+ public static String getMethodSignature(Class[] args, Class type)
+ {
+ String res = new String();
+ String helper = null;
+ int i,j;
+
+ res += "(";
+
+ for (i=0; i<args.length; i++)
+ {
+ res += patchJvmSigType(args[i].getName());
+ }
+ res += ")"+patchJvmSigType(type.getName());
+ return res;
+ }
+
+ public static GL4JavaReflections findMethod(Object methodClassInstance,
+ String methodName,
+ String signature)
+ {
+ Method[] methods = null;
+ try {
+ methods =
+ methodClassInstance.getClass().getDeclaredMethods();
+ } catch (Exception ex) {
+ System.out.println("ERROR: GL4JavaReflections.findMethod");
+ ex.printStackTrace();
+ return null;
+ }
+
+ GL4JavaReflections res=null;
+ Method method = null;
+ String name = null;
+ Class[] args = null;
+ Class t = null;
+
+ for(int i=0; i<methods.length; i++)
+ {
+ method = methods[i];
+ name = method.getName();
+ if(name.equals(methodName))
+ {
+ args = method.getParameterTypes();
+ t = method.getReturnType();
+ if(signature==null ||
+ signature.equals(getMethodSignature(args, t))
+ )
+ {
+ res = new GL4JavaReflections(
+ methodClassInstance,
+ method.getReturnType(),
+ methodName,
+ args);
+ return res;
+ }
+ }
+ }
+ System.out.println("GL4JavaReflections.findMethod: could not find method: "+methodName+" "+signature);
+
+ return null;
+ }
+
+ public static String findMethodSignature (Object methodClassInstance,
+ String methodName,
+ String signature)
+ {
+ GL4JavaReflections ref =
+ findMethod(methodClassInstance, methodName, signature);
+ if(ref==null) return null;
+ return ref.getMethodSignature();
+ }
+}
+
+
diff --git a/gl4java/GLContext.java.skel b/gl4java/GLContext.java.skel
new file mode 100644
index 0000000..c91e4f6
--- /dev/null
+++ b/gl4java/GLContext.java.skel
@@ -0,0 +1,2251 @@
+/**
+ * @(#) GLContext.java
+ */
+
+
+package gl4java;
+
+import gl4java.jau.awt.WinHandleAccess;
+
+import java.awt.*;
+import java.applet.Applet;
+import java.awt.event.*;
+import java.lang.reflect.*;
+
+/**
+ * The base manager class for the OpenGL language mapping for Java !
+ *
+ * <p>
+ * If you are interessting in further Documentation and/or
+ * the history of GL4Java follow the following link.
+ *
+ * <pre>
+ <a href="../GL4Java.html">The GL4Java Documentation</a>
+ * </pre>
+ * <p>
+ *
+ * All native libraries and GLFunc* and GLUFunc* implementations
+ * can/should be loaded right here !
+ *
+ * <pre>
+ <a href="GLContext.html#loadNativeLibraries(java.lang.String, java.lang.String, java.lang.String)">loadNativeLibraries</a>
+ <a href="GLContext.html#createGLFunc(java.lang.String)">createGLFunc</a>
+ <a href="GLContext.html#createGLUFunc(java.lang.String)">createGLUFunc</a>
+ <p>
+ To check the library versions, you can start the
+ <a href="GLContext.html#main(java.lang.String[])">main</a>
+ function with <code>java gl4java.GLContext</code>
+ * </pre>
+ *
+ * <p>
+ *
+ * This class creates a GLContext in the constructor which fits to the native Window
+ * of the given Component !
+ *
+ * <pre>
+ <a href="GLContext.html#GLContext(java.awt.Component, gl4java.GLFunc, gl4java.GLUFunc>
+ * </pre>
+ *
+ * <p>
+ *
+ * If you want to port any OpenGL program to GL4Java,
+ * you can use 'glc2glj'. This easy kornshell-sed script converts
+ * many types and Math function calls ;-). E.g.: All C double constant literals
+ * will be changed to floats (0.0 -> 0.0f) and all sin, cos, .. functions
+ * will get the '(float)Math.' prefix !
+ *
+ * <pre>
+ <a href="../../../demos/glc2glj">glc2glj - A simple c to java converter for C- and GL-types</a>
+ * </pre>
+ * <p>
+ *
+ * The native libraries are plattform depended.
+ *
+ * <pre>
+ The default native library for Win32 and Unice's is :
+ <p>
+ GLContext: GL4JavaJauGljJNI
+ GLFuncJauJNI: GL4JavaJauGLJNI
+ GLUFuncJauJNI: GL4JavaJauGLUJNI
+ <p>
+ Note:
+ <p>
+ The default native library for Macintosh is :
+ <p>
+ GLContext: GL4JavaMacGZGljJNI
+ GLFuncJauJNI: GL4JavaMacGZGLJNI
+ GLUFuncJauJNI: GL4JavaMacGZGLUJNI
+ <p>
+ <p>
+ To check wich version and vendors are currently used,
+ just call while a GLContext is created :
+ <p>
+ <a href="GLContext.html#gljShowVersions()">gljShowVersions</a>
+ <p>
+ Where an own Frame is opened !
+ * </pre>
+ *
+ * Make sure that this library is installed in your library path.
+ * The library path is for Unices one path of the environment
+ * variable �LD_LIBRARY_PATH� and for Windows 32
+ * �c:/winnt/system32� (WinNT) or 'c:/windows/system' (Windows 95) .
+ * Or it should be installed in the 'jre/bin' or
+ * 'Netscape/communicator/Program/java/bin' path !
+ *
+ * <p>
+ *
+ * To have a convinient usage, e.g. automatic resizing, GLContext
+ * and painting/gl-rendering, some classes in the package gl4java.awt
+ * may help you.
+ *
+ * <pre>
+ E.g.: <a href="awt/GLCanvas.html">gl4java.awt.GLCanvas</a>
+ <p>
+ <a href="awt/GLCanvas.html#init()">init</a> to create the java-stuff and GL-inits
+ <a href="awt/GLCanvas.html#display()">display</a> to render one frame, called by paint
+ <a href="awt/GLCanvas.html#reshape(int, int)">reshape</a> to reshape (window resize)
+ <p>
+ Or look for animation at
+ <a href="awt/GLAnimCanvas.html">gl4java.awt.GLAnimCanvas</a> !
+ * </pre>
+ *
+ * <p>
+ *
+ * IF you remove/release a The component which is binded to this GLContext,
+ * you have to release the GLContext also - while calling:
+ *
+ * <pre>
+ <a href="GLContext.html#gljDestroy()">gljDestroy</a>
+ * </pre>
+ *
+ * before releasing/dispose it�s Window !
+ *
+ * <p>
+ *
+ * We also define our own OpenGL extension. This extension functions
+ * start with the prefix glj like you can see here:
+ *
+ * <pre>
+ THIS FUNCTIONS ARE FOR USERS PURPOSES:
+ ======================================
+
+ <a href="GLContext.html#loadNativeLibraries(java.lang.String, java.lang.String, java.lang.String)">loadNativeLibraries</a>
+ <a href="GLContext.html#createGLFunc(java.lang.String)">createGLFunc</a>
+ <a href="GLContext.html#createGLUFunc(java.lang.String)">createGLUFunc</a>
+ <a href="GLContext.html#gljGetNativeLibVersion()">gljGetNativeLibVersion</a>
+ <a href="GLContext.html#gljGetClassVersion()">gljGetClassVersion</a>
+ <a href="GLContext.html#gljShowVersions()">gljShowVersions</a>
+ <a href="GLContext.html#gljCheckGL()">gljCheckGL</a>
+ <a href="GLContext.html#gljCheckGLTypes()">gljCheckGLTypes</a>
+ <a href="GLContext.html#gljResize(int, int)">gljResize</a>
+ <a href="GLContext.html#gljSwap()">gljSwap</a>
+ <a href="GLContext.html#gljIsInit()">gljIsInit</a>
+ <a href="GLContext.html#gljMakeCurrent(boolean)">gljMakeCurrent</a>
+ <a href="GLContext.html#gljDestroy()">gljDestroy</a>
+ <a href="GLContext.html#gljFree()">gljFree</a>
+
+ * </pre>
+ * <p>
+ *
+ * You can see our example demo sources:
+ * <pre>
+ <a href="../../../demos/olympicCvs.java">olympicCvs.java as java source</a>
+ <a href="../../../demos/glLogoCvs.java">glLogoCvs.java as java source</a>
+ <a href="../../../demos/glDemosCvs.java">glDemosCvs.java as java source</a>
+ * </pre>
+ * <p>
+ *
+ * If you are interessting in further Documentation, downloading the latest
+ * version, and/or the history of GL4Java click on the following link.
+ *
+ * <pre>
+ <a href="http://www.jausoft.com/gl4java.html">The GL4Java Homepage</a>
+ * </pre>
+ * <p>
+ *
+ * @see WinDataAccess
+ * @version 2.00, 21. April 1999
+ * @author Sven Goethel
+ *
+ */
+public class GLContext extends Object
+ implements Runnable
+{
+
+ protected boolean isInitialized = false;
+
+ /**
+ * Flag is the native library is loaded.
+ * The native library is loaded at startup.
+ * If we failed loading the lib.,
+ * gljMakeCurrent and gljIsInit will return false.
+ *
+ * @see GLContext#gljMakeCurrent
+ * @see GLContext#gljIsInit
+ */
+ protected static boolean libsLoaded = false;
+
+ /**
+ * The default GLContext native library for Windows 95/NT && MS-JVM
+ *
+ */
+ public static final String defGljMSWinLib = "GL4JavaGljMSJDirect" ;
+
+ /**
+ * The default GLContext native library for all
+ *
+ */
+ public static final String defGljLib = "GL4JavaJauGljJNI" ;
+
+ /**
+ * The default GLFunc implementation
+ *
+ */
+ public static final String defGLFuncClass = "GLFuncJauJNI" ;
+
+ /**
+ * The default GLFunc native library for all
+ */
+ public static final String defGLFuncLib = "GL4JavaJauGLJNI" ;
+
+ /**
+ * The default GLUFunc implementation
+ *
+ */
+ public static final String defGLUFuncClass = "GLUFuncJauJNI" ;
+
+ /**
+ * The default GLUFunc native library for all
+ */
+ public static final String defGLUFuncLib = "GL4JavaJauGLUJNI" ;
+
+
+ /**
+ * the version of this java-class
+ *
+ * <Major>.<Minor>.<BugFix>.<Release>
+ *
+ * Each <Value> is dezimal !
+ */
+ public static final String version = __SED_CLASS_VERSION__ ;
+
+ /**
+ * Flag's to enable/disable verbose Information.
+ * Usually for debugging.
+ */
+ public static boolean gljClassDebug = false;
+ public static boolean gljNativeDebug = false;
+
+ /**
+ * We will store the GL Context right here.
+ *
+ * @see GLContext#createGLContext
+ * @see GLContext#gljInit
+ */
+ protected int glContext=0;
+
+ /**
+ * The context with witch display lists and textures will be shared.
+ *
+ * @see GLContext#createGLContext
+ * @see GLContext#gljInit
+ */
+ protected GLContext sharedGLContext;
+ protected int sharedGLContextNative= 0; // No sharing by default.
+
+ /**
+ * Xwindow data AND Windows data for the widget
+ *
+ * @see GLContext#createGLContext
+ * @see GLContext#gljInit
+ */
+ protected int pixmapHandle=0; // unique handle for the Pixmap
+ protected int windowHandle=0; // unique handle for this widget's window
+ protected int displayHandle=0; // unqiue handle to the display
+
+ /**
+ * MS-JDirect-Window data for the MS-JVM interface
+ *
+ * @see GLContext#createGLContext
+ * @see GLContext#gljInit
+ */
+ private int createwinx;
+ private int createwiny;
+ private int createwinw;
+ private int createwinh;
+ private boolean threadRunning = false;
+ private boolean destroyWindow = false;
+ protected Container containerWindow = null;
+
+ /**
+ * The custom set offscreen Size
+ *
+ * If this is set to != null,
+ * the offscreen pixmap is used in this size,
+ * not in the components-size (-> faster if smaller)
+ *
+ * Must be set via createOffScreenCtx
+ *
+ * @see GLJPanel#paint
+ * @see GLJPanel#createOffScreenCtx
+ */
+ protected Dimension offScrnSize = null;
+
+ /**
+ * Windows data AND flag is Window-Handel is read (for X11 also) !
+ *
+ * @see GLContext#createGLContext
+ * @see GLContext#gljInit
+ */
+ int pData = 0; // stores the pointer structure that holds windows info
+
+ /**
+ * Flag to check, if the OpenGL-Context is active !
+ *
+ * @see GLCanvas#gljIsEnabled
+ * @see GLCanvas#gljSetEnabled
+ */
+ protected boolean glEnabled = true;
+
+ /**
+ * Do we use offscreen rendering
+ * X11: pixmap eq window-ressources,
+ * window eq. GLXPixmap a GLXDrawable
+ * glContext eq. GLXContext
+ *
+ * This is set via the constructor !
+ *
+ * @see GLContext#GLContext
+ */
+ protected boolean offScreenRenderer = false;
+
+ /**
+ * Do we use doubleBuffer - of course !
+ * This is the default visual property ... !
+ *
+ * This is set via the constructor !
+ *
+ * @see GLContext#isDoubleBuffer
+ * @see GLContext#GLContext
+ */
+ protected boolean doubleBuffer = true;
+
+ /**
+ * Visual pre-set for stencil-bit number, default: 0
+ *
+ * @see GLContext#GLContext
+ */
+ protected int stencilBits = 0;
+
+ /**
+ * Visual pre-set for accumulator-size number, default: 0
+ *
+ * This value has a special behavior.
+ * For input - within the contructor,
+ * it is the value for each component !
+ *
+ * The output value, after the constructor returns,
+ * it is the summary of all accumulation bits of all components !
+ *
+ * @see GLContext#GLContext
+ */
+ protected int accumSize = 0;
+
+ /**
+ * Do we use stereoView - not yet ;-) !
+ * This is the default visual property ... !
+ *
+ * This is set via the constructor !
+ *
+ * @see GLContext#isStereoView
+ * @see GLContext#GLContext
+ */
+ protected boolean stereoView = false;
+
+ /**
+ * Do we use True-Color RGBA - of course ;-) !
+ * This is the default visual property ... !
+ *
+ * This is set via the constructor !
+ *
+ * @see GLContext#isRGBA
+ * @see GLContext#GLContext
+ */
+ protected boolean rgba = true;
+
+ /**
+ * We normally do not have to create an own Window !
+ * This is the default visual property ... !
+ * But some machines, like SGI's Irix,
+ * must use an own created overlapped window !
+ * For these machines, a compiler flag is set,
+ * so that this value is alsways set to true !
+ *
+ * This is set via the constructor !
+ *
+ * @see GLContext#isOwnWindowCreated
+ * @see GLContext#GLContext
+ */
+ protected boolean createOwnWindow = false;
+
+ /**
+ * The resize flag, which indicates a resize for the next paint function !
+ * This flag will bes set in 'componentResized'
+ * and will be cleared after resize (glViewport) in sDisplay !!
+ *
+ * @see gl4java.awt.GLCanvas#sDisplay
+ */
+ protected boolean mustResize = false;
+
+ protected Dimension size = null;
+
+ /**
+ * the light- or heavy component
+ * where GL commands should be drawn
+ */
+ protected Component _comp = null;
+
+ /**
+ * the heavy component
+ * where GL commands should be drawn
+ *
+ * if the _comp component is a swing (light)
+ * component, this component contains its heavy parent !
+ */
+ protected Component _compHeavy = null;
+
+ /**
+ * Variable to tell is where windows or not (X11)
+ * Usally X11 ;-))
+ *
+ * Ok - lets give one to the Max :-)
+ */
+ public static final int
+ OsWindoof = -1,
+ OsUnknown = 0,
+ OsX11 = 1,
+ OsMac = 2; // for Gerard Ziemski's port
+
+ private static int osType=OsUnknown;
+
+ private static boolean isNetscapeJvm = false;
+ private static boolean isMicrosoftJvm = false;
+ private static boolean useMSJDirect = false;
+ private static String jvmVendor = null;
+ private static String jvmVersion = null;
+ private static int jvmVersionMajor = 1; // min. defaults
+ private static int jvmVersionMinor = 1; // min. defaults
+ private static String osName = null;
+
+ /**
+ * Get the native GL Context !
+ *
+ * @see GLContext#glContext
+ */
+ public final long getNativeGLContext() { return (long)glContext; }
+
+ /**
+ * Get the native Window Handle !
+ *
+ * @see GLContext#windowHandle
+ */
+ public final long getNativeWindoHandle() { return (long)windowHandle; }
+
+ /**
+ * Get the optional shared GL Context !
+ *
+ * @see GLContext#sharedGLContext
+ */
+ public final GLContext getSharedGLContext() { return sharedGLContext; }
+
+ /**
+ * Get the native OS-Type !
+ *
+ * @see GLContext#osType
+ * @see GLContext#OsWindoof
+ * @see GLContext#OsUnknown
+ * @see GLContext#OsX11
+ * @see GLContext#OsMac
+ */
+ public final int getNativeOSType() { return osType; }
+
+ /**
+ * Query the visual property ... !
+ *
+ * After a GLContext is created, this property can be queried !
+ *
+ * @see GLContext#doubleBuffer
+ * @see GLContext#GLContext
+ */
+ public final boolean isDoubleBuffer() { return doubleBuffer; }
+
+ /**
+ * Query the visual property ... !
+ *
+ * After a GLContext is created, this property can be queried !
+ *
+ * @see GLContext#stereoView
+ * @see GLContext#GLContext
+ */
+ public final int getStencilBitNumber() { return stencilBits; }
+
+ /**
+ * Query the visual property ... !
+ *
+ * After a GLContext is created, this property can be queried !
+ *
+ * @see GLContext#GLContext
+ */
+ public final int getAccumSize() { return accumSize; }
+
+ /**
+ * Query the visual property ... !
+ *
+ * After a GLContext is created, this property can be queried !
+ *
+ * @see GLContext#stereoView
+ * @see GLContext#GLContext
+ */
+ public final boolean isStereoView() { return stereoView; }
+
+ /**
+ * Query the visual property ... !
+ *
+ * After a GLContext is created, this property can be queried !
+ *
+ * @see GLContext#rgba
+ * @see GLContext#GLContext
+ */
+ public final boolean isRGBA() { return rgba; }
+
+ /**
+ * Query the visual property ... !
+ *
+ * After a GLContext is created, this property can be queried !
+ *
+ * @see GLContext#createOwnWindow
+ * @see GLContext#GLContext
+ */
+ public final boolean isOwnWindowCreated() { return createOwnWindow; }
+
+ /**
+ * Support of loading the native library seperatly.
+ *
+ * Link with the native OpenGL library. If we cannot link, an exception
+ * is thrown.
+ * The name of the library is named e.g.: "GL4JavaJauGljJNI" at the
+ * Java level, or "libGL4JavaJauGljJNI.so" at the solaris level,
+ * or "GL4JavaJauGljJNI.dll" at the win32 level :-).
+ *
+ * @param gljLibName The name of the GLContex native library.
+ * If gljLibName==null, the default library will be used !
+ *
+ * @param glLibName The name of the GLFunc native library.
+ * If glLibName==null, the default library will be used !
+ *
+ * @param gluLibName The name of the GLUFunc native library.
+ * If gluLibName==null, the default library will be used !
+ *
+ * @return boolean, true if succesfull !
+ *
+ * @see GLContext#defGljLib
+ *
+ * @see GLContext#defGLFuncLib
+ *
+ * @see GLContext#defGLUFuncLib
+ */
+ public static boolean loadNativeLibraries ( String gljLibName,
+ String glLibName,
+ String gluLibName
+ )
+ {
+ if(libsLoaded) return true;
+
+ String libNames[] = null;
+
+ jvmVendor = java.lang.System.getProperty("java.vendor");
+ jvmVersion = java.lang.System.getProperty("java.version");
+
+ if(gljClassDebug)
+ {
+ System.out.println("jvm vendor: "+jvmVendor);
+ System.out.println("jvm version: "+jvmVersion);
+ }
+
+ int i0 = 0;
+ int i1 = jvmVersion.indexOf(".", i0);
+ String strhlp = null;
+ if(i1>0)
+ {
+ strhlp = jvmVersion.substring(i0,i1);
+ try {
+ jvmVersionMajor = Integer.valueOf(strhlp).intValue();
+ } catch (Exception e)
+ {System.out.println("Not a number: "+strhlp+" ("+jvmVersion+")");}
+ }
+ i0 = i1+1;
+ i1 = jvmVersion.indexOf(".", i0);
+ if( i1 < 0 )
+ i1 = jvmVersion.length(); // no 2nd dot, no bug version number
+
+ if( 0<i0 && i0<i1 )
+ {
+ strhlp = jvmVersion.substring(i0,i1);
+ try {
+ jvmVersionMinor = Integer.valueOf(strhlp).intValue();
+ } catch (Exception e)
+ {System.out.println("Not a number: "+strhlp+" ("+jvmVersion+")");}
+ }
+
+ if(gljClassDebug)
+ {
+ System.out.println("jvm version (parsed): "+
+ "major: "+jvmVersionMajor+
+ ", minor: "+jvmVersionMinor);
+ }
+
+ isNetscapeJvm = jvmVendor!=null && jvmVendor.indexOf("Netscape")>=0 ;
+ isMicrosoftJvm = jvmVendor!=null && jvmVendor.indexOf("Microsoft")>=0 ;
+
+ // Determine the OS
+ osName = System.getProperty( "os.name" );
+ if( osName.startsWith( "Wind" ) )
+ osType = OsWindoof;
+ else if( osName.startsWith( "Mac OS" ) )
+ osType = OsMac;
+ else /* oops - lets guess unix/x11 :-) */
+ osType = OsX11;
+
+ String jniEXTsuff = "";
+
+ if( jvmVersionMajor>=2 ||
+ ( jvmVersionMajor==1 && jvmVersionMinor>=2 )
+ )
+ {
+ jniEXTsuff = "12";
+ }
+
+ if(gljLibName==null)
+ gljLibName = defGljLib+jniEXTsuff;
+ if(glLibName==null)
+ glLibName = defGLFuncLib+jniEXTsuff;
+ if(gluLibName==null)
+ gluLibName = defGLUFuncLib+jniEXTsuff;
+
+ if ( (osType==OsWindoof) && (isMicrosoftJvm) )
+ {
+ // JDirect loads the GL libraries automatically,
+ // so we don't have to.
+ libNames = new String[4];
+ libNames[0]= gljLibName;
+ libNames[1]= glLibName;
+ libNames[2]= gluLibName;
+ libNames[3]= defGljMSWinLib;
+ useMSJDirect = true;
+ } else {
+ /* For MAC, Win32+SunJVM, Unices ...
+ */
+ libNames = new String[3];
+ libNames[0]= gljLibName;
+ libNames[1]= glLibName;
+ libNames[2]= gluLibName;
+ useMSJDirect = false;
+ }
+
+ if(isNetscapeJvm)
+ {
+ System.out.println("Netscape JVM try to get Privileges");
+ try {
+ Class privmgr =
+ Class.forName("netscape.security.PrivilegeManager");
+ Class[] parameterTypes = new Class[1];
+ parameterTypes[0] = Class.forName("java.lang.String");
+ Method m = privmgr.getMethod("enablePrivilege",parameterTypes);
+ Object args[] = new Object[1];
+ args[0] = (Object)(new String("UniversalLinkAccess"));
+ m.invoke(privmgr,args);
+ /*
+ netscape.security.PrivilegeManager.enablePrivilege
+ ("UniversalLinkAccess");
+ */
+ System.out.println("Netscape-Privilege: enabled UniversalLinkAccess priv.");
+ } catch (Exception ex)
+ {
+ System.out.println("Not enabled Netscape-Privilege: UniversalLinkAccess priv.");
+ }
+ }
+
+ /* load libs */
+ int libNumber = 0;
+ String _libName = null ;
+ boolean libLoaded[] = new boolean[libNames.length];
+
+ for(libNumber=0; libNumber<libNames.length; libNumber++)
+ libLoaded[libNumber]=false;
+
+ for(libNumber=0; libNumber<libNames.length; libNumber++)
+ {
+ do {
+ try {
+ System.loadLibrary( libNames[libNumber] );
+ libLoaded[libNumber]=true;
+ if(gljClassDebug)
+ {
+ System.out.println("loaded native library: "+
+ libNames[libNumber]);
+ }
+ } catch ( UnsatisfiedLinkError e) {
+ System.out.println
+ ( "Sorry, can't find the library: "+
+ libNames[libNumber]+"\n"+e );
+
+ libNames[libNumber]=null; // stop trying ... :-(
+ }
+ } while( libLoaded[libNumber]==false &&
+ libNames[libNumber]!=null );
+ }
+
+ for(libNumber=0; libNumber<libNames.length; libNumber++)
+ {
+ if(libLoaded[libNumber]==false) break;
+ }
+ if(libNumber==libNames.length)
+ {
+ libsLoaded=true;
+ }
+
+ return libsLoaded;
+ }
+
+ /**
+ * no no no .. the user has to choose !
+ *
+ * The user must call loadNativeLibrary !
+ *
+ * @see GLContext#loadNativeLibrary
+ *
+ * static {
+ * if(!libLoaded)
+ * loadNativeLibrares(null, null, null);
+ * }
+ */
+
+ /**
+ * Test to load the native library, GLFunc and GLUFunc implementation !
+ * If succesfull, a Frame will created and the GL-Infos (vendor, ...)
+ * are shown in it !
+ *
+ * @param args, a list of args,
+ *
+ * -gljlib <glj-libname> gl4java-glj-lib native library
+ * -gllib <gl-libname> gl4java-gl-lib native library
+ * -glulib <glu-libname> gl4java-glu-lib native library
+ * -glclass <gl-class> gl4java-gl-class java GLFunc implementation
+ * -gluclass <glu-class> gl4java-glu-class java GLUFunc implementation
+ * -info creates a GLContext and prints all avaiable information of GL/GLU and GL4Java
+ * -infotxt like -info, but exits straight after -info !
+ *
+ * without any arguments, a help screen is shown
+ */
+ public static void main( String args[] )
+ {
+ String gljLibName = null;
+ String glLibName = null;
+ String gluLibName = null;
+ String glName = defGLFuncClass;
+ String gluName = defGLUFuncClass;
+ boolean info=false;
+ boolean exitImmediatly=false;
+ int i = 0;
+ boolean ok=true;
+
+ if(args.length==0)
+ {
+ System.out.println("usage: java gl4java.GLContext <options>, where options can be: ");
+ System.out.println(" -gljlib <glj-libname> \t choose a custom the gl4java-glj-lib native library (default: GL4JavaJauGljJNI)");
+ System.out.println(" -gllib <gl-libname> \t choose a custom the gl4java-gl-lib native library (default: GL4JavaJauGLJNI)");
+ System.out.println(" -glulib <glu-libname> \t choose a custom the gl4java-glu-lib native library (default: GL4JavaJauGLUJNI");
+ System.out.println(" -glclass <gl-class> \t choose a custom the gl4java-gl-class java GLFunc implementation (default: GLFuncJauJNI)");
+ System.out.println(" -gluclass <glu-class> \t choose a custom the gl4java-glu-class java GLUFunc implementation (default: GLUFuncJauJNI)");
+ System.out.println(" -info \t creates a GLContext and prints all avaiable information of GL/GLU and GL4Java");
+ System.out.println(" -infotxt \t like -info, but exits straight after -info !");
+ System.exit(0);
+ }
+
+ while(args.length>i)
+ {
+ if(args[i].equals("-gljlib")) {
+ if(args.length>++i) gljLibName=args[i];
+ } else if(args[i].equals("-gllib")) {
+ if(args.length>++i) glLibName=args[i];
+ } else if(args[i].equals("-glulib")) {
+ if(args.length>++i) gluLibName=args[i];
+ } else if(args[i].equals("-glclass")) {
+ if(args.length>++i) glName=args[i];
+ } else if(args[i].equals("-gluclass")) {
+ if(args.length>++i) gluName=args[i];
+ } else if(args[i].equals("-info")) {
+ info=true;
+ } else if(args[i].equals("-infotxt")) {
+ info=true;
+ exitImmediatly=true;
+ } else {
+ System.out.println("illegal arg "+i+": "+args[i]);
+ ok=false;
+ }
+ i++;
+ }
+
+ GLContext.gljNativeDebug = true;
+ GLContext.gljClassDebug = true;
+
+ GLFunc gl = null;
+ GLUFunc glu = null;
+
+ if(GLContext.loadNativeLibraries(gljLibName, glLibName, gluLibName))
+ System.out.println("native Libraries loaded succesfull");
+ else {
+ System.out.println("native library NOT loaded complete");
+ ok=false;
+ }
+
+ if( (gl=GLContext.createGLFunc(glName)) !=null)
+ System.out.println("GLFunc implementation "+glName+" created succesfull");
+ else {
+ System.out.println("GLFunc implementation "+glName+" not created");
+ ok=false;
+ }
+ if( (glu=GLContext.createGLUFunc(gluName)) !=null)
+ System.out.println("GLUFunc implementation "+gluName+" created succesfull");
+ else {
+ System.out.println("GLUFunc implementation "+gluName+" not created");
+ ok=false;
+ }
+
+ if( info && ok==true) {
+ Frame f = new Frame("GL4Java Info");
+ f.setSize(10, 10);
+
+ f.pack();
+ f.setVisible(true);
+
+ GLContext glj = new GLContext(f, gl, glu);
+
+ Frame fInfo = glj.gljShowVersions();
+
+ fInfo.addWindowListener
+ ( new WindowAdapter()
+ {
+ public void windowClosed(WindowEvent e)
+ {
+ // button exit
+ System.exit(0);
+ }
+ }
+ );
+
+ glj.gljDestroy();
+
+ if(exitImmediatly)
+ System.exit(0);
+ }
+ }
+
+ public static String getJVMVendor() { return jvmVendor; }
+ public static boolean isNetscapeJVM() { return isNetscapeJvm; }
+ public static boolean isMicrosoftJVM() { return isMicrosoftJvm; }
+
+ /**
+ * Used to hold the user given GLFunc implementation
+ */
+ private GLFunc gl = null;
+
+ /**
+ * Used to hold the user given GLUFunc implementation
+ */
+ private GLUFunc glu = null;
+
+ /**
+ *
+ * Constructor
+ *
+ * This privat constructor is for all possible
+ * compinations and is called from the customized
+ * constructors.
+ *
+ * First the GLContext is fetched from the Component itself !
+ * To do so, the Component is set visible if it is not !
+ *
+ * If a GLContext is fetched, it is current !
+ *
+ * @param comp the users component for the gl-context
+ * @param glf the users selected GLFunc implementation
+ * @param glf the users selected GLUFunc implementation
+ * @param _createOwnWindow the flag for the visual property
+ * @param _offScreenRenderer the flag for the visual property
+ * @param _doubleBuffer the flag for the visual property
+ * @param _stereoView the flag for the visual property
+ * @param _rgba the flag for the visual property
+ * @param _stencilBits the flag for the visual property
+ * @param _accumSize the flag for the visual property
+ * @param _sharedGLContext the shared GLContext
+ * @param _offScrnSize the fixed offscreen pixmap size
+ *
+ */
+ protected GLContext( Component comp, GLFunc glf, GLUFunc gluf,
+ boolean _createOwnWindow, boolean _offScreenRenderer,
+ boolean _doubleBuffer, boolean _stereoView,
+ boolean _rgba,
+ int _stencilBits,
+ int _accumSize,
+ GLContext _sharedGLContext,
+ Dimension _offScrnSize
+ )
+ {
+ super( );
+
+ _comp = comp ; // the light- or heavy component
+ gl = glf ;
+ glu = gluf ;
+ createOwnWindow = _createOwnWindow;
+ offScreenRenderer = _offScreenRenderer;
+ doubleBuffer=_doubleBuffer;
+ stereoView=_stereoView;
+ rgba=_rgba;
+ stencilBits=_stencilBits;
+ accumSize=_accumSize;
+ offScrnSize= _offScrnSize;
+
+ this.sharedGLContext = _sharedGLContext;
+ if(sharedGLContext != null)
+ sharedGLContextNative =
+ (int)sharedGLContext.getNativeGLContext();
+
+ // fetch the heavy peer component in temporary var. comp
+ while(comp!=null &&
+ (comp.getPeer() instanceof java.awt.peer.LightweightPeer)
+ )
+ comp=comp.getParent();
+
+ _compHeavy = comp ; // the heavy component
+
+ Graphics _gr = null;
+
+ if(_compHeavy!=null)
+ {
+ if( ! _comp.isVisible() )
+ setVisible(true); // use our own ...
+
+
+ _gr = _compHeavy.getGraphics();
+ if(_gr==null)
+ System.out.println("got empty Graphics");
+ } else
+ System.out.println("got empty Component");
+
+ if(_comp!=null && _gr!=null)
+ {
+ int i = 0;
+ do {
+ createGLContext(_gr); // uses _comp
+ if(gljIsInit()==false)
+ {
+ try
+ {
+ Thread.sleep( 100 );
+ }
+ catch( Exception e )
+ { }
+ }
+ i++;
+ } while(gljIsInit()==false && i<5) ;
+ }
+
+ if(gljClassDebug)
+ {
+ if(gljIsInit())
+ System.out.println(">>> GLContext() succeded");
+ else
+ System.out.println(">>> GLContext() failed");
+ }
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * First the GLContext is fetched from the Component itself !
+ * To do so, the Component is set visible if it is not !
+ *
+ * If a GLContext is fetched, it is current !
+ *
+ * @param comp the users component for the gl-context
+ * @param glf the users selected GLFunc implementation
+ * @param glf the users selected GLUFunc implementation
+ * @param _createOwnWindow the flag for the visual property
+ * @param _doubleBuffer the flag for the visual property
+ * @param _stereoView the flag for the visual property
+ * @param _rgba the flag for the visual property
+ * @param _stencilBits the flag for the visual property
+ * @param _accumSize the flag for the visual property
+ * @param _sharedGLContext the shared GLContext
+ *
+ */
+ public GLContext( Component comp, GLFunc glf, GLUFunc gluf,
+ boolean _createOwnWindow,
+ boolean _doubleBuffer, boolean _stereoView,
+ boolean _rgba,
+ int _stencilBits,
+ int _accumSize,
+ GLContext _sharedGLContext
+ )
+ {
+ this(comp, glf, gluf,
+ _createOwnWindow, false /* offscreen renderer */,
+ _doubleBuffer,
+ _stereoView,
+ _rgba,
+ _stencilBits,
+ _accumSize,
+ _sharedGLContext,
+ null /* offscreen size */
+ );
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * First the GLContext is fetched from the Component itself !
+ * To do so, the Component is set visible if it is not !
+ *
+ * If a GLContext is fetched, it is current !
+ *
+ * @param comp the users component for the gl-context
+ * @param glf the users selected GLFunc implementation
+ * @param glf the users selected GLUFunc implementation
+ * @param _createOwnWindow the flag for the visual property
+ * @param _doubleBuffer the flag for the visual property
+ * @param _stereoView the flag for the visual property
+ * @param _rgba the flag for the visual property
+ * @param _stencilBits the flag for the visual property
+ * @param _accumSize the flag for the visual property
+ *
+ */
+ public GLContext( Component comp, GLFunc glf, GLUFunc gluf,
+ boolean _createOwnWindow,
+ boolean _doubleBuffer, boolean _stereoView,
+ boolean _rgba,
+ int _stencilBits,
+ int _accumSize
+ )
+ {
+ this(comp, glf, gluf,
+ _createOwnWindow, false /* offscreen renderer */,
+ _doubleBuffer,
+ _stereoView,
+ _rgba,
+ _stencilBits,
+ _accumSize,
+ null /* sharedGLContext */,
+ null /* offscreen size */
+ );
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * First the GLContext is fetched from the Component itself !
+ * To do so, the Component is set visible if it is not !
+ *
+ * If a GLContext is fetched, it is current !
+ *
+ * @param comp the users component for the gl-context
+ * @param glf the users selected GLFunc implementation
+ * @param glf the users selected GLUFunc implementation
+ * @param _createOwnWindow the flag for the visual property
+ * @param _doubleBuffer the flag for the visual property
+ * @param _stereoView the flag for the visual property
+ * @param _rgba the flag for the visual property
+ * @param _stencilBits the flag for the visual property
+ *
+ */
+ public GLContext( Component comp, GLFunc glf, GLUFunc gluf,
+ boolean _createOwnWindow,
+ boolean _doubleBuffer, boolean _stereoView,
+ boolean _rgba,
+ int _stencilBits
+ )
+ {
+ this(comp, glf, gluf,
+ _createOwnWindow, false /* offscreen renderer */,
+ _doubleBuffer,
+ _stereoView,
+ _rgba,
+ _stencilBits,
+ 0 /* accumSize */,
+ null /* sharedGLContext */,
+ null /* offscreen size */
+ );
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * First the GLContext is fetched from the Component itself !
+ * To do so, the Component is set visible if it is not !
+ *
+ * If a GLContext is fetched, it is current !
+ *
+ * @param comp the users component for the gl-context
+ * @param glf the users selected GLFunc implementation
+ * @param glf the users selected GLUFunc implementation
+ * @param _doubleBuffer the flag for the visual property
+ * @param _stereoView the flag for the visual property
+ * @param _rgba the flag for the visual property
+ * @param _stencilBits the flag for the visual property
+ *
+ */
+ public GLContext( Component comp, GLFunc glf, GLUFunc gluf,
+ boolean _doubleBuffer, boolean _stereoView,
+ boolean _rgba,
+ int _stencilBits,
+ int _accumSize
+ )
+ {
+ this(comp, glf, gluf,
+ false /* ownWindow */, false /* offscreen renderer */,
+ _doubleBuffer,
+ _stereoView,
+ _rgba,
+ _stencilBits,
+ _accumSize,
+ null /* sharedGLContext */,
+ null /* offscreen size */
+ );
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * First the GLContext is fetched from the Component itself !
+ * To do so, the Component is set visible if it is not !
+ *
+ * If a GLContext is fetched, it is current !
+ *
+ * @param comp the users component for the gl-context
+ * @param glf the users selected GLFunc implementation
+ * @param glf the users selected GLUFunc implementation
+ * @param _doubleBuffer the flag for the visual property
+ * @param _stereoView the flag for the visual property
+ * @param _rgba the flag for the visual property
+ * @param _stencilBits the flag for the visual property
+ *
+ */
+ public GLContext( Component comp, GLFunc glf, GLUFunc gluf,
+ boolean _doubleBuffer, boolean _stereoView,
+ boolean _rgba,
+ int _stencilBits
+ )
+ {
+ this(comp, glf, gluf,
+ false /* ownWindow */, false /* offscreen renderer */,
+ _doubleBuffer,
+ _stereoView,
+ _rgba,
+ _stencilBits,
+ 0 /* accumSize */,
+ null /* sharedGLContext */,
+ null /* offscreen size */
+ );
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * First the GLContext is fetched from the Component itself !
+ * To do so, the Component is set visible if it is not !
+ *
+ * If a GLContext is fetched, it is current !
+ *
+ * @param comp the users component for the gl-context
+ * @param glf the users selected GLFunc implementation
+ * @param glf the users selected GLUFunc implementation
+ * @param _doubleBuffer the flag for the visual property
+ * @param _stereoView the flag for the visual property
+ * @param _rgba the flag for the visual property
+ * @param _stencilBits the flag for the visual property
+ *
+ */
+ public GLContext( Component comp, GLFunc glf, GLUFunc gluf,
+ boolean _doubleBuffer, boolean _stereoView,
+ boolean _rgba
+ )
+ {
+ this(comp, glf, gluf,
+ false /* ownWindow */, false /* offscreen renderer */,
+ _doubleBuffer,
+ _stereoView,
+ _rgba,
+ 0, /* _stencilBits */
+ 0 /* accumSize */,
+ null /* sharedGLContext */,
+ null /* offscreen size */
+ );
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * First the GLContext is fetched from the Component itself !
+ * To do so, the Component is set visible if it is not !
+ *
+ * If a GLContext is fetched, it is current !
+ *
+ * ! WARNING ! This flag is just for testing purpose !!!
+ *
+ * @param comp the users component for the gl-context
+ * @param glf the users selected GLFunc implementation
+ * @param glf the users selected GLUFunc implementation
+ * @param _doubleBuffer the flag for the visual property
+ * @param _stereoView the flag for the visual property
+ *
+ */
+ public GLContext( Component comp, GLFunc glf, GLUFunc gluf,
+ boolean _doubleBuffer, boolean _stereoView
+ )
+ {
+ this(comp, glf, gluf,
+ false /* ownWindow */, false /* offscreen renderer */,
+ _doubleBuffer,
+ _stereoView,
+ true /* _rgba */,
+ 0, /* _stencilBits */
+ 0 /* accumSize */,
+ null /* sharedGLContext */,
+ null /* offscreen size */
+ );
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * First the GLContext is fetched from the Component itself !
+ * To do so, the Component is set visible if it is not !
+ *
+ * We use a visual with doubleBuffer and NO stereoView !
+ * Do not force a new native window !
+ *
+ * If a GLContext is fetched, it is current !
+ *
+ * @param comp the users component for the gl-context
+ * @param glf the users selected GLFunc implementation
+ * @param glf the users selected GLUFunc implementation
+ */
+ public GLContext( Component comp, GLFunc glf, GLUFunc gluf )
+ {
+ this(comp, glf, gluf,
+ false /* ownWindow */, false /* offscreen renderer */,
+ true /* _doubleBuffer */,
+ false /* _stereoView */,
+ true /* _rgba */,
+ 0, /* _stencilBits */
+ 0 /* accumSize */,
+ null /* sharedGLContext */,
+ null /* offscreen size */
+ );
+ }
+
+ /**
+ *
+ * Constructor Function for offscreen rendering !
+ *
+ * First the GLContext is fetched from the Component itself !
+ * To do so, the Component is set visible if it is not !
+ *
+ * If a GLContext is fetched, it is current !
+ *
+ * @param comp the users component for the gl-context
+ * @param glf the users selected GLFunc implementation
+ * @param glf the users selected GLUFunc implementation
+ * @param _stereoView the flag for the visual property
+ * @param _rgba the flag for the visual property
+ * @param _stencilBits the flag for the visual property
+ * @param _sharedGLContext the shared GLContext
+ *
+ * @return the created offscreen context
+ */
+ public static final GLContext createOffScreenCtx
+ ( Component comp, GLFunc glf, GLUFunc gluf,
+ boolean _stereoView,
+ boolean _rgba,
+ int _stencilBits,
+ int _accumSize,
+ GLContext _sharedGLContext
+ )
+ {
+ return new GLContext(comp, glf, gluf,
+ false /* _createOwnWindow */,
+ true /* offscreen renderer */,
+ false /* _doubleBuffer */,
+ _stereoView,
+ _rgba,
+ _stencilBits,
+ _accumSize,
+ _sharedGLContext,
+ null
+ );
+ }
+
+ /**
+ *
+ * Constructor Function for offscreen rendering !
+ *
+ * First the GLContext is fetched from the Component itself !
+ * To do so, the Component is set visible if it is not !
+ *
+ * If a GLContext is fetched, it is current !
+ *
+ * @param comp the users component for the gl-context
+ * @param glf the users selected GLFunc implementation
+ * @param glf the users selected GLUFunc implementation
+ * @param _stereoView the flag for the visual property
+ * @param _rgba the flag for the visual property
+ * @param _stencilBits the flag for the visual property
+ * @param _sharedGLContext the shared GLContext
+ * @param _offScrnSize the fixed offscreen pixmap size
+ *
+ * @return the created offscreen context
+ */
+ public static final GLContext createOffScreenCtx
+ ( Component comp, GLFunc glf, GLUFunc gluf,
+ boolean _stereoView,
+ boolean _rgba,
+ int _stencilBits,
+ int _accumSize,
+ GLContext _sharedGLContext,
+ Dimension _offScrnSize
+ )
+ {
+ return new GLContext(comp, glf, gluf,
+ false /* _createOwnWindow */,
+ true /* offscreen renderer */,
+ false /* _doubleBuffer */,
+ _stereoView,
+ _rgba,
+ _stencilBits,
+ _accumSize,
+ _sharedGLContext,
+ _offScrnSize
+ );
+ }
+
+ /**
+ * Used to set the user given GLFunc implementation
+ */
+ public final void setGLFunc(GLFunc _gl) { gl = _gl; }
+
+ /**
+ * Used to set the user given GLUFunc implementation
+ */
+ public final void setGLUFunc(GLUFunc _glu) { glu = _glu; }
+
+ /**
+ * Used to return the user given GLFunc implementation
+ */
+ public final GLFunc getGLFunc() { return gl; }
+
+ /**
+ * Used to return the user given GLUFunc implementation
+ */
+ public final GLUFunc getGLUFunc() { return glu; }
+
+ /**
+ * Support of loading a vendors GLFunc implementation
+ *
+ * Try to load the Class, if succesfull we do return the instance of it.
+ * Else null is returned !
+ *
+ * The Class-Name is: "GL4Java." + vendorClass + ".class" !
+ *
+ * @param vendorClass The name of the GLFunc implementation.
+ * If vendorSuffix==null, the default implementation
+ * "GLFuncJauJNI" (-> GL4Java.GLFuncJauJNI.class )
+ * will be used !
+ *
+ * @return GLFunc, the implementation's instance if exists
+ * and valid, or null
+ *
+ * @see GLContext#defGLFuncClass
+ */
+ public static final GLFunc createGLFunc(String vendorClass)
+ {
+ String access_name = "gl4java.";
+ GLFunc gl = null;
+ Object clazz = null;
+
+ if(vendorClass==null)
+ {
+ vendorClass = defGLFuncClass ;
+ }
+
+ String clazzName = access_name + vendorClass ;
+
+ try {
+ clazz = Class.forName(clazzName).newInstance();
+ } catch (Exception ex) {
+ // thats ok :-)
+ System.out.println("could not create instance of: "+ clazzName);
+ }
+ if(clazz !=null && (clazz instanceof GLFunc))
+ gl = (GLFunc) clazz;
+ else
+ System.out.println("Not a GLFunc implementation: "+ clazzName);
+
+ return gl;
+ }
+
+ /**
+ * Support of loading a vendors GLUFunc implementation
+ *
+ * Try to load the Class, if succesfull we do return the instance of it.
+ * Else null is returned !
+ *
+ * The Class-Name is: "GL4Java." + vendorClass + ".class" !
+ *
+ * @param vendorClass The name of the GLUFunc implementation.
+ * If vendorSuffix==null, the default implementation
+ * "GLUFuncJauJNI" (-> GL4Java.GLUFuncJauJNI.class )
+ * will be used !
+ *
+ * @return GLUFunc, the implementation's instance if exists
+ * and valid, or null
+ *
+ * @see GLContext#defGLUFuncClass
+ */
+ public static final GLUFunc createGLUFunc(String vendorClass)
+ {
+ String access_name = "gl4java.";
+ GLUFunc glu = null;
+ Object clazz = null;
+
+ if(vendorClass==null)
+ {
+ vendorClass = defGLUFuncClass ;
+ }
+
+
+ String clazzName = access_name + vendorClass ;
+
+ try {
+ clazz = Class.forName(clazzName).newInstance();
+ } catch (Exception ex) {
+ // thats ok :-)
+ System.out.println("could not create instance of: "+ clazzName);
+ }
+ if(clazz!=null && (clazz instanceof GLUFunc))
+ glu = (GLUFunc) clazz;
+ else
+ System.out.println("Not a GLUFunc implementation: "+ clazzName);
+
+
+ return glu;
+ }
+
+ /**
+ *
+ * Own setVisible
+ * This one set's us visible - and wait's for that result !
+ *
+ * @param visible boolean: visible==true, hide==false
+ * @return void
+ */
+ public void setVisible( boolean visible )
+ {
+ int i= 0;
+
+ _comp.setVisible( visible );
+
+ while( _comp.isVisible() != visible && i<5)
+ {
+ _comp.setVisible( visible );
+
+ try
+ {
+ Thread.sleep( 100 );
+ }
+ catch( Exception e )
+ {
+ System.out.println( "GLContext:setVisible: Error - " + e );
+ }
+ i++;
+ }
+ if(i>=5)
+ System.out.println( "GLContext:setVisible: Error, could not set to "+visible);
+ }
+
+ /**
+ *
+ * createGLContext gets the window handle and calls gljInit,
+ * so the gl-context will be initialised here.
+ *
+ * this method will be invoked by the constructor
+ *
+ * this method is left public - this time,
+ * to allow the user to to it again later - if it was not succesfull !
+ *
+ * @param g the graphics reference,
+ * where we will get the native window handle from.
+ *
+ * @return void
+ *
+ * @see GLContext#GLContext
+ */
+ public final void createGLContext(Graphics g)
+ {
+ String access_name = "gl4java.jau.awt.";
+ WinHandleAccess win_access = null;
+
+ try {
+ if(gljClassDebug)
+ System.out.println(">>> createGLContext");
+
+ if(pData == 0)
+ {
+ if ( useMSJDirect )
+ {
+ if(gljClassDebug)
+ System.out.println("using MSJDirect ...");
+
+ win_access = (WinHandleAccess)
+ Class.forName(access_name + "windows.MSWin32HandleAccess").newInstance();
+ /* _comp should be a subclass of Canvas, and its parent
+ class should be of type Panel, Frame or Window. If not,
+ this all falls apart. */
+
+ /* This part is now rewritten,
+ to respect direkt Windows (Frames and Dialogs)
+ and Applets .. */
+
+ Component ob = _comp;
+
+ while ( (ob instanceof Window)==false &&
+ (ob instanceof Applet)==false
+ )
+ {
+ ob = ob.getParent();
+ }
+
+ containerWindow = (Container)ob;
+
+ /* refetch the Graphics component */
+ g = ob.getGraphics();
+ if(g==null)
+ System.out.println("GL4Java-MSJVM: got empty Graphics");
+
+ pData = (int)win_access.getWinHandle(ob,g);
+
+ if (pData != 0)
+ {
+ Point p1;
+ try
+ {
+ p1 = _comp.getLocationOnScreen();
+ }
+ catch (Exception e)
+ {
+ p1 = _comp.getLocation();
+ Point p2 = containerWindow.getLocation();
+ p1.x += p2.x;
+ p1.y += p2.y;
+ Insets is = containerWindow.getInsets();
+ p1.x += is.left;
+ p1.y += is.top;
+ }
+ Rectangle r = _comp.getBounds();
+ createwinx = p1.x;
+ createwiny = p1.y;
+ createwinw = r.width;
+ createwinh = r.height;
+ windowHandle = 0;
+ threadRunning = true;
+ destroyWindow = false;
+ Thread th = new Thread(this);
+ th.start();
+ while ( (windowHandle == 0) && (threadRunning) )
+ {
+ try
+ {
+ Thread.currentThread().sleep(100);
+ }
+ catch( Exception e )
+ { }
+ }
+ }
+ } else if(osType==OsWindoof)
+ {
+ win_access = (WinHandleAccess)
+ Class.forName(access_name + "windows.Win32HandleAccess").newInstance();
+ pData = (int) win_access.getWinHandle(_compHeavy, g);
+ windowHandle = pData;
+ }
+ else if(osType==OsMac)
+ {
+ win_access = (WinHandleAccess)
+ Class.forName(access_name + "macintosh.MacHandleAccess").newInstance();
+ pData = (int) win_access.getWinHandle(_compHeavy, g);
+ windowHandle = pData;
+ }
+ else /* X11 */
+ {
+ win_access = (WinHandleAccess)
+ Class.forName(access_name + "motif.X11HandleAccess").newInstance();
+ pData = (int) win_access.getWinHandle(_compHeavy, g);
+ windowHandle = pData;
+ }
+ }
+
+ if(offScrnSize!=null)
+ {
+ createwinw = offScrnSize.width;
+ createwinh = offScrnSize.height;
+ } else {
+ Rectangle r = _comp.getBounds();
+ createwinw = r.width;
+ createwinh = r.height;
+ }
+
+ /* try to establish a context to OpenGL */
+ try
+ {
+ gljInit();
+ }
+ catch( GL4JavaInitException e )
+ {
+ System.out.println( "can't create a GL context\n");
+ }
+
+ } catch (Exception e) {
+ System.out.println( "An exception is thrown, while creating a GL context\n");
+ System.out.println(e);
+ e.printStackTrace();
+ }
+ }
+
+ /* glj* stuff */
+
+ /**
+ *
+ * Initializes the gl-context.
+ * gljInit is called by createGLContext (which is calles by the first paint)!
+ *
+ * Also gljInit will call the init method after GL initialisation,
+ * so the user can override �init� to initialize his own stuff !
+ *
+ * @return void
+ * @exception GL4Java.GL4JavaInitException
+ * this class throws an exception
+ * if the native call to create a OpenGL context failed.
+ * @see GLContext#createGLContext
+ * @see gl4java.awt.GLCanvas#paint
+ * @see gl4java.awt.GLCanvas#init
+ */
+ protected final synchronized void gljInit()
+ throws GL4JavaInitException
+ {
+ if( libsLoaded==false ) return ;
+
+ if(pData==0 && !offScreenRenderer)
+ {
+ System.out.println("could not open a GL widget -- Win CONTEXT");
+ throw new GL4JavaInitException ();
+ }
+
+ if(gljClassDebug)
+ System.out.println(">>> gljInit");
+
+ if( openOpenGLNative() == false )
+ {
+ if ( useMSJDirect )
+ {
+ destroyWindow = true;
+ while (threadRunning)
+ {
+ try
+ {
+ Thread.currentThread().sleep(100);
+ }
+ catch( Exception e )
+ { }
+ }
+ pData = 0;
+ windowHandle = 0;
+ }
+ System.out.println("could not open a GL widget -- GL CONTEXT");
+ throw new GL4JavaInitException ();
+ } else {
+ isInitialized = true;
+ }
+ }
+
+ /**
+ * For MSJVM Only !
+ *
+ * This functions fetches the window-handle within a special thread !
+ */
+ public void run()
+ {
+ if ( !useMSJDirect )
+ {
+ System.err.println("GL4Java-MSJVM-Run: INTERNAL ERROR");
+ System.exit(0);
+ }
+
+ pData = gl4java.system.GljMSJDirect.createOGLWindowNative(
+ pData,
+ createwinx,createwiny,
+ createwinw,createwinh);
+ if (pData != 0)
+ {
+ windowHandle = pData;
+ while (!destroyWindow)
+ {
+ gl4java.system.GljMSJDirect.OGLWindowMsgPump();
+ try
+ {
+ Thread.currentThread().sleep(10);
+ }
+ catch( Exception e )
+ { }
+ }
+ destroyWindow = false;
+ gl4java.system.GljMSJDirect.destroyOGLWindowNative(
+ windowHandle);
+ windowHandle = 0;
+ pData = 0;
+ gl4java.system.GljMSJDirect.OGLWindowMsgPump();
+ }
+ threadRunning = false;
+ }
+
+ /**
+ *
+ * Checks if the gl-context is Initializes
+ * If returns true,
+ * gljInit is allready called and a valid gl-context is achieved.
+ *
+ * No glMakeCurrent is done -
+ * like gljMakeCurrent (important for more gl-context) !
+ *
+ * <p>
+ *
+ * The user can use this method to check if he can start rendering
+ * and to be sure his initialisation (init) is done !
+ *
+ * <p>
+ *
+ * If you use gl4java.awt.GLCanvas, you should use the cvsIsInit
+ * method !
+ * <p>
+ *
+ * @return boolean
+ * @see GLContext#gljInit
+ * @see gl4java.awt.GLCanvas#cvsIsInit
+ */
+ public final boolean gljIsInit()
+ {
+ return isInitialized;
+ }
+
+ /**
+ * Resizes the gl-viewport
+ *
+ * Should be called, if the component is resized.
+ * The user should take advantage of this functionality.
+ *
+ * Be sure to resize not within the event-method of the
+ * ComponentHandler, you better resize while normal painting.
+ * This can be done while using a boolean flag ;-)
+ *
+ * Look at GLComponent !
+ */
+ public final void gljResize(int width, int height)
+ {
+ if ( ! isInitialized || !glEnabled ) return;
+
+ if(offScreenRenderer)
+ {
+ //JAU: TODO
+ return;
+ }
+
+ if ( useMSJDirect )
+ {
+ try
+ {
+ Point p = _comp.getLocationOnScreen();
+ gl4java.system.GljMSJDirect.moveOGLWindowNative(
+ windowHandle,p.x,p.y,width,height);
+ }
+ catch (Exception e)
+ { }
+ }
+ else
+ gljResizeNative( createOwnWindow,
+ displayHandle, windowHandle,
+ width,height);
+ }
+
+ private final native void gljResizeNative( boolean isOwnWindow,
+ int disp, int thisWin,
+ int width, int height );
+
+ /**
+ * native C function to open the OpenGLwidget
+ */
+ protected final native boolean openOpenGLNative();
+
+ /**
+ * native C function to check the gl types.
+ * At this time, all GL* types will be checked if they fit's
+ * in the used java JNI types.
+ *
+ * this checks is allready performed, while the GL context is
+ * fetched with gljInit !
+ *
+ * BUT we used this function, to perform a check without an
+ * X11-connection to our AIX host ;-))
+ * So a call to this function is not needed !
+ */
+ public static final boolean gljCheckGLTypes()
+ {
+ return gljCheckGLTypesNative();
+ }
+
+ private static final native boolean gljCheckGLTypesNative();
+
+ public final boolean gljCheckGL()
+ {
+ int ec = gl.glGetError();
+
+ if(ec!=GLFunc.GL_NO_ERROR)
+ {
+ String errStr = glu.gluErrorString(ec);
+
+ try
+ {
+ throw new Exception();
+ }
+ catch (Exception e)
+ {
+ System.out.println("GL ERROR : "+errStr);
+ System.out.println("GL ERROR : "+ec+" == 0x"+Integer.toHexString(ec));
+ e.printStackTrace();
+ System.out.println();
+ System.out.flush();
+ }
+
+ return false;
+ }
+ return true;
+ }
+
+ /**
+ *
+ * gljMakeCurrent checks whether GL4Java is initializes
+ * AND makes the GL-Context current for this thread.
+ *
+ * It's more save to use �gljMakeCurrent�, instead of
+ * �gljMakeCurrentNative�, because we do check if GL is initalised !
+ *
+ * @return boolean
+ */
+ public final boolean gljMakeCurrent()
+ {
+ if ( ! isInitialized || !glEnabled )
+ return false;
+
+ return gljMakeCurrentNative( displayHandle,
+ windowHandle,
+ glContext);
+ }
+
+
+ /**
+ *
+ * gljMakeCurrent checks whether GL4Java is initializes
+ * AND makes the GL-Context current for this thread.
+ *
+ * It's more save to use �gljMakeCurrent�, instead of
+ * �gljMakeCurrentNative�, because we do check if GL is initalised !
+ *
+ * @param freeContextFirst is obsolete !
+ *
+ * @return boolean
+ *
+ * @deprecated The argument freeContextFirst is obsolete !
+ */
+ public final boolean gljMakeCurrent(boolean freeContextFirst)
+ {
+ if ( ! isInitialized || !glEnabled )
+ return false;
+
+ return gljMakeCurrentNative( displayHandle,
+ windowHandle,
+ glContext);
+ }
+
+ private static final native boolean gljMakeCurrentNative(
+ int disp,
+ int thisWin,
+ int glContext);
+
+ /**
+ *
+ * gljGetCurrentContext fetches the current native
+ * GL-Context, which is attached to this _native_ thread !
+ *
+ * @return int
+ */
+ public static final native int gljGetCurrentContext();
+
+ /**
+ *
+ * gljDestroy free�s AND destroy�s the GL Context
+ *
+ * This function should be called when removing
+ * a GLContext !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ *
+ * @return void
+ *
+ * @see GLContext#gljMakeCurrent
+ * @see GLContext#gljSwap
+ */
+ public final synchronized boolean gljDestroy()
+ {
+ boolean result = true;
+
+ if (!gljDestroyNative())
+ result = false;
+
+ windowHandle = 0;
+ glContext = 0;
+ pixmapHandle = 0;
+
+
+ if ( useMSJDirect )
+ {
+ destroyWindow = false;
+ gl4java.system.GljMSJDirect.destroyOGLWindowNative( pData );
+ windowHandle = 0;
+ gl4java.system.GljMSJDirect.OGLWindowMsgPump();
+ }
+
+ pData = 0;
+
+ return result;
+ }
+
+ private final native boolean gljDestroyNative();
+
+ /**
+ *
+ * gljFree free�s the GL Context
+ *
+ * This could be called after at last in your display function,
+ * if you have GC problems ....
+ *
+ * @return void
+ *
+ * @see GLContext#gljMakeCurrent
+ * @see GLContext#gljSwap
+ * @see gl4java.awt.GLCanvas#sDisplay
+ */
+ public final boolean gljFree()
+ {
+ if ( ! isInitialized ) return false;
+
+ return gljFreeNative ( displayHandle,
+ windowHandle,
+ glContext);
+ }
+
+ private static final native boolean gljFreeNative( int disp,
+ int thisWin,
+ int glContext );
+
+ /**
+ * swap method are for double buffering
+ */
+ public final boolean gljSwap()
+ {
+ if ( ! isInitialized ) return false;
+
+ return gljSwapNative( displayHandle,
+ windowHandle,
+ glContext,
+ doubleBuffer);
+ }
+
+ private static final native boolean gljSwapNative( int disp,
+ int thisWin,
+ int glContext,
+ boolean doubleBuffer );
+
+ /**
+ * This function enables, disables the GL-Context !
+ * If false is given, the openGL renderer/context is
+ * disabled and disconected (gljFree is called, if initialized) !
+ *
+ * If disabled, gljMakeCurrent returns always false !
+ *
+ * @return boolean
+ *
+ * @see GLContext#gljIsEnabled
+ * @see GLContext#gljMakeCurrent
+ */
+ public void setEnabled(boolean b)
+ {
+ glEnabled = b;
+ if ( b==false && isInitialized )
+ gljFree();
+ }
+
+ /**
+ * This function queries, if the GL-Context is enabled !
+ *
+ * @return boolean
+ *
+ * @see GLContext#setEnabled
+ * @see GLContext#gljMakeCurrent
+ */
+ public boolean isEnabled()
+ {
+ return glEnabled;
+ }
+
+ /**
+ * This functions checks the existence of
+ * the GL functions !
+ */
+ public final static native boolean gljTestGLProc
+ ( String name, boolean verbose );
+
+ /**
+ * This functions reads the pixel from the GL frame
+ * and puts it into the pixelDest array,
+ * while converting them correctly to the AWT pixel format,
+ * using GL_RGB[A] and BufferedImage.TYPE_INT[A]RGB !
+ */
+ public final static native void gljReadPixelGL2AWT (
+ int x, int y, int width, int height,
+ int format, int type, int bufferName,
+ byte[] pixelGL, int[] pixelDest);
+
+ /**
+ * Experimental Code, not done yet !
+ * This one is to upspeed the Offscreen rendering engine for e.g. Swing !
+ *
+ * This functions reads the pixel from the GL frame
+ * and puts it into the pixelDest array,
+ * while using hardware correct AWT and GL pixel format,
+ * using GL_BGR[A]_EXT and BufferedImage.TYPE_[34]BYTE_[A]BGR !
+ *
+ * ATTENTION: This functions runs only if hardware supports this,
+ * e.g. on Win32 platforms !!!
+ */
+ public final static native void gljReadPixelGL2AWT (
+ int x, int y, int width, int height,
+ int format, int type, int bufferName,
+ byte[] pixelGLDest);
+
+ /**
+ * Experimental Code, not done yet !
+ * This one is to upspeed the Offscreen rendering engine for e.g. Swing !
+ */
+ public final native void gljCpyOffScrnImg2Buffer(int width, int height, int format, byte[] pixelDest);
+
+ /**
+ * Experimental Code, not done yet !
+ * This one is to upspeed the Offscreen rendering engine for e.g. Swing !
+ */
+ public final native void gljCpyOffScrnImg2Buffer(int width, int height, int format, int[] pixelDest);
+
+ /**
+ * native C function to achieve the native lib vendor !
+ *
+ * now it is possible to check the native-lib at runtime !
+ */
+ public final static String gljGetNativeLibVendor()
+ {
+ return gljGetNativeLibVendorNative();
+ }
+
+ private final static native String gljGetNativeLibVendorNative();
+
+ /**
+ * native C function to achieve the native lib version !
+ *
+ * now it is possible to check the native-lib at runtime !
+ */
+ public final static String gljGetNativeLibVersion()
+ {
+ return gljGetNativeLibVersionNative();
+ }
+
+ private final static native String gljGetNativeLibVersionNative();
+
+ /**
+ * function to achieve the java-class version !
+ *
+ * now it is possible to check the java-class at runtime !
+ */
+ public final static String gljGetClassVersion()
+ { return version; }
+
+ /**
+ * function to achieve the java-class vendor !
+ *
+ * now it is possible to check the java-class at runtime !
+ */
+ public final static String gljGetClassVendor()
+ { return "Jausoft - Sven Goethel Software Development"; }
+
+ /**
+ * function to achieve complete version info
+ *
+ * Be sure that the native library must be loaded !
+ */
+ public final String gljGetVersions()
+ {
+ return gljGetVersions(false);
+ }
+
+ public final String gljGetVersions(boolean verbose)
+ {
+ if(libsLoaded==false || gl==null || glu==null || !gljIsInit())
+ return null;
+
+ String info1= "GL4Java - LGPL-Version" + "\n" +
+ "-------------------------------------------------\n" +
+ "-------------------------------------------------\n" +
+ "Java-Class : GL4Java.GLContext \n" +
+ " : Version: "+gljGetClassVersion() + "\n" +
+ " Vendor : "+gljGetClassVendor() + "\n" +
+ "Native-Library : GL4Java.GLContext \n" +
+ " Version: "+gljGetNativeLibVersion()+"\n" +
+ " Vendor : "+gljGetNativeLibVendor() +"\n" +
+ "-------------------------------------------------\n" +
+ "Java-Class : GL4Java.GLFunc impl. \n" +
+ " : Version: "+gl.getClassVersion() + "\n" +
+ " Vendor : "+gl.getClassVendor() + "\n" +
+ "Native-Library : GL4Java.GLFunc impl. \n" +
+ " Version: "+gl.getNativeVersion() + "\n" +
+ " Vendor : "+gl.getNativeVendor() + "\n" +
+ "-------------------------------------------------\n" +
+ "Java-Class : GL4Java.GLUFunc impl. \n" +
+ " : Version: "+glu.getClassVersion() + "\n" +
+ " Vendor : "+glu.getClassVendor() + "\n" +
+ "Native-Library : GL4Java.GLUFunc impl. \n" +
+ " Version: "+glu.getNativeVersion() + "\n" +
+ " Vendor : "+glu.getNativeVendor() + "\n" +
+ "-------------------------------------------------\n" +
+ "\n" ;
+
+ String glVen = gl.glGetString(GLFunc.GL_VENDOR);
+ String glRen = gl.glGetString(GLFunc.GL_RENDERER);
+ String glVer = gl.glGetString(GLFunc.GL_VERSION);
+ String glExt = gl.glGetString(GLFunc.GL_EXTENSIONS);
+ String gluVer = glu.gluGetString(GLUFunc.GLU_VERSION);
+ String gluExt = glu.gluGetString(GLUFunc.GLU_EXTENSIONS);
+
+ String info2= "OpenGL - Versions \n" +
+ "-----------------------------------------------\n" +
+ "GL VENDOR: "+glVen+"\n"+
+ "GL RENDERER: "+glRen+"\n"+
+ "GL VERSION: "+glVer+"\n"+
+ "GL EXTENSIONS: "+glExt+"\n"+
+ "GLU VERSION: "+gluVer+"\n"+
+ "GLU EXTENSIONS: "+gluExt+"\n"+"\n" ;
+
+ String info3= "OpenGL - Function Test ("+
+ GLFunc.GL_PROC_NAMES.length +" Functions) \n" +
+ "-----------------------------------------------\n";
+
+ if(verbose)
+ {
+ System.out.println(info1);
+ System.out.println(info2);
+ System.out.println(info3);
+ }
+
+ String h;
+ String tmp;
+
+ for(int i=0; i<GLFunc.GL_PROC_NAMES.length; i++)
+ {
+ h=GLFunc.GL_PROC_NAMES[i];
+ if(h==null) break;
+
+ if(gljTestGLProc (h, verbose))
+ tmp= "OK : "+h+"\n";
+ else
+ tmp= "NOPE: "+h+"\n";
+
+ info3 += tmp;
+ }
+
+ return info1+"\n"+info2+"\n"+info3;
+ }
+
+ /**
+ * function to show complete version info into an extra Frame
+ *
+ * Be sure that the native library must be loaded !
+ */
+ public final Frame gljShowVersions()
+ {
+ Frame f = new Frame("GL4Java Version");
+ TextArea info= new TextArea(25, 80);
+ info.setEditable(false);
+ f.add(info);
+ f.setSize(600, 400);
+
+ f.pack();
+ f.setVisible(true);
+
+ String str = "null string";
+ if( gljMakeCurrent(true) == false )
+ {
+ str="problem in use() method\n";
+ } else {
+ str=gljGetVersions(gljNativeDebug);
+ if(str==null)
+ str="could not get versions";
+ System.out.println(str);
+ gljFree();
+ }
+ info.append(str);
+
+ f.addWindowListener
+ ( new WindowAdapter()
+ {
+ public void windowClosing(WindowEvent e)
+ {
+ // button window menu ... :-)
+ e.getWindow().dispose();
+ }
+ }
+ );
+
+ return f;
+ }
+
+}
+
diff --git a/gl4java/GLEnum.java b/gl4java/GLEnum.java
new file mode 100644
index 0000000..b331159
--- /dev/null
+++ b/gl4java/GLEnum.java
@@ -0,0 +1,1347 @@
+/* WARNING ! WARNING *** THIS FILE IS GENERATED BY C2J !!!
+
+ DO NOT MAKE ANY CHANGES *** MAKE CHANGES IN THE SKELETON FILES !!!
+*/
+
+
+/**
+ * @(#) GLEnum.java
+ */
+
+
+package gl4java;
+
+/**
+ * The base interface for OpenGL enumerates,
+ * which provides you all the C-API style enumerates
+ *
+ * @version 2.01, 15. November 1999
+ * @author Sven Goethel
+ */
+public interface GLEnum
+{
+
+ public static final boolean GL_FALSE = false;
+ public static final boolean GL_TRUE = true;
+
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: gl-enum-auto.orig . . .
+ * Destination-Class: gl4java_GLEnum !
+ */
+
+ public static final int GL_1PASS_ARB = 0x80A1;
+ public static final int GL_1PASS_SGIS = 0x80A1;
+ public static final int GL_2D = 0x0600;
+ public static final int GL_2PASS_0_ARB = 0x80A2;
+ public static final int GL_2PASS_0_SGIS = 0x80A2;
+ public static final int GL_2PASS_1_ARB = 0x80A3;
+ public static final int GL_2PASS_1_SGIS = 0x80A3;
+ public static final int GL_2_BYTES = 0x1407;
+ public static final int GL_3D = 0x0601;
+ public static final int GL_3D_COLOR = 0x0602;
+ public static final int GL_3D_COLOR_TEXTURE = 0x0603;
+ public static final int GL_3_BYTES = 0x1408;
+ public static final int GL_422_AVERAGE_EXT = 0x80CE;
+ public static final int GL_422_EXT = 0x80CC;
+ public static final int GL_422_REV_AVERAGE_EXT = 0x80CF;
+ public static final int GL_422_REV_EXT = 0x80CD;
+ public static final int GL_4D_COLOR_TEXTURE = 0x0604;
+ public static final int GL_4PASS_0_ARB = 0x80A4;
+ public static final int GL_4PASS_0_SGIS = 0x80A4;
+ public static final int GL_4PASS_1_ARB = 0x80A5;
+ public static final int GL_4PASS_1_SGIS = 0x80A5;
+ public static final int GL_4PASS_2_ARB = 0x80A6;
+ public static final int GL_4PASS_2_SGIS = 0x80A6;
+ public static final int GL_4PASS_3_ARB = 0x80A7;
+ public static final int GL_4PASS_3_SGIS = 0x80A7;
+ public static final int GL_4_BYTES = 0x1409;
+ public static final int GL_ABGR_EXT = 0x8000;
+ public static final int GL_ACCUM = 0x0100;
+ public static final int GL_ACCUM_ALPHA_BITS = 0x0D5B;
+ public static final int GL_ACCUM_BLUE_BITS = 0x0D5A;
+ public static final int GL_ACCUM_BUFFER_BIT = 0x00000200;
+ public static final int GL_ACCUM_CLEAR_VALUE = 0x0B80;
+ public static final int GL_ACCUM_GREEN_BITS = 0x0D59;
+ public static final int GL_ACCUM_RED_BITS = 0x0D58;
+ public static final int GL_ACTIVE_TEXTURE_ARB = 0x84E0;
+ public static final int GL_ADD = 0x0104;
+ public static final int GL_ADD_SIGNED_EXT = 0x8574;
+ public static final int GL_ALIASED_LINE_WIDTH_RANGE = 0x846E;
+ public static final int GL_ALIASED_POINT_SIZE_RANGE = 0x846D;
+ public static final int GL_ALLOW_DRAW_FRG_HINT_PGI = 107024;
+ public static final int GL_ALLOW_DRAW_MEM_HINT_PGI = 107025;
+ public static final int GL_ALLOW_DRAW_OBJ_HINT_PGI = 107022;
+ public static final int GL_ALLOW_DRAW_WIN_HINT_PGI = 107023;
+ public static final int GL_ALL_ATTRIB_BITS = 0x000FFFFF;
+ public static final int GL_ALL_STATIC_DATA_IBM = 0x19294;
+ public static final int GL_ALPHA = 0x1906;
+ public static final int GL_ALPHA12 = 0x803D;
+ public static final int GL_ALPHA12_EXT = 0x803D;
+ public static final int GL_ALPHA16 = 0x803E;
+ public static final int GL_ALPHA16_EXT = 0x803E;
+ public static final int GL_ALPHA4 = 0x803B;
+ public static final int GL_ALPHA4_EXT = 0x803B;
+ public static final int GL_ALPHA8 = 0x803C;
+ public static final int GL_ALPHA8_EXT = 0x803C;
+ public static final int GL_ALPHA_BIAS = 0x0D1D;
+ public static final int GL_ALPHA_BITS = 0x0D55;
+ public static final int GL_ALPHA_MAX_CLAMP_INGR = 0x8567;
+ public static final int GL_ALPHA_MIN_CLAMP_INGR = 0x8563;
+ public static final int GL_ALPHA_SCALE = 0x0D1C;
+ public static final int GL_ALPHA_TEST = 0x0BC0;
+ public static final int GL_ALPHA_TEST_FUNC = 0x0BC1;
+ public static final int GL_ALPHA_TEST_REF = 0x0BC2;
+ public static final int GL_ALWAYS = 0x0207;
+ public static final int GL_ALWAYS_FAST_HINT_PGI = 107020;
+ public static final int GL_ALWAYS_SOFT_HINT_PGI = 107021;
+ public static final int GL_AMBIENT = 0x1200;
+ public static final int GL_AMBIENT_AND_DIFFUSE = 0x1602;
+ public static final int GL_AND = 0x1501;
+ public static final int GL_AND_INVERTED = 0x1504;
+ public static final int GL_AND_REVERSE = 0x1502;
+ public static final int GL_ARRAY_ELEMENT_LOCK_COUNT_EXT = 0x81A9;
+ public static final int GL_ARRAY_ELEMENT_LOCK_FIRST_EXT = 0x81A8;
+ public static final int GL_ATTENUATION_EXT = 0x834D;
+ public static final int GL_ATTRIB_STACK_DEPTH = 0x0BB0;
+ public static final int GL_AUTO_NORMAL = 0x0D80;
+ public static final int GL_AUX0 = 0x0409;
+ public static final int GL_AUX1 = 0x040A;
+ public static final int GL_AUX2 = 0x040B;
+ public static final int GL_AUX3 = 0x040C;
+ public static final int GL_AUX_BUFFERS = 0x0C00;
+ public static final int GL_AVERAGE_EXT = 0x8335;
+ public static final int GL_BACK = 0x0405;
+ public static final int GL_BACK_LEFT = 0x0402;
+ public static final int GL_BACK_NORMALS_HINT_PGI = 107043;
+ public static final int GL_BACK_RIGHT = 0x0403;
+ public static final int GL_BGR = 0x80E0;
+ public static final int GL_BGRA = 0x80E1;
+ public static final int GL_BGRA_EXT = 0x80E1;
+ public static final int GL_BGR_EXT = 0x80E0;
+ public static final int GL_BIAS_BY_NEGATIVE_ONE_HALF_NV = 0x8541;
+ public static final int GL_BINORMAL_ARRAY_EXT = 0x843A;
+ public static final int GL_BINORMAL_ARRAY_POINTER_EXT = 0x8443;
+ public static final int GL_BINORMAL_ARRAY_STRIDE_EXT = 0x8441;
+ public static final int GL_BINORMAL_ARRAY_TYPE_EXT = 0x8440;
+ public static final int GL_BITMAP = 0x1A00;
+ public static final int GL_BITMAP_TOKEN = 0x0704;
+ public static final int GL_BLEND = 0x0BE2;
+ public static final int GL_BLEND_COLOR_EXT = 0x8005;
+ public static final int GL_BLEND_DST = 0x0BE0;
+ public static final int GL_BLEND_DST_ALPHA_EXT = 0x80CA;
+ public static final int GL_BLEND_DST_ALPHA_INGR = 0x80CA;
+ public static final int GL_BLEND_DST_RGB_EXT = 0x80C8;
+ public static final int GL_BLEND_DST_RGB_INGR = 0x80C8;
+ public static final int GL_BLEND_EQUATION = 0x8009;
+ public static final int GL_BLEND_EQUATION_EXT = 0x8009;
+ public static final int GL_BLEND_SRC = 0x0BE1;
+ public static final int GL_BLEND_SRC_ALPHA_EXT = 0x80CB;
+ public static final int GL_BLEND_SRC_ALPHA_INGR = 0x80CB;
+ public static final int GL_BLEND_SRC_RGB_EXT = 0x80C9;
+ public static final int GL_BLEND_SRC_RGB_INGR = 0x80C9;
+ public static final int GL_BLUE = 0x1905;
+ public static final int GL_BLUE_BIAS = 0x0D1B;
+ public static final int GL_BLUE_BITS = 0x0D54;
+ public static final int GL_BLUE_MAX_CLAMP_INGR = 0x8566;
+ public static final int GL_BLUE_MIN_CLAMP_INGR = 0x8562;
+ public static final int GL_BLUE_SCALE = 0x0D1A;
+ public static final int GL_BYTE = 0x1400;
+ public static final int GL_C3F_V3F = 0x2A24;
+ public static final int GL_C4F_N3F_V3F = 0x2A26;
+ public static final int GL_C4UB_V2F = 0x2A22;
+ public static final int GL_C4UB_V3F = 0x2A23;
+ public static final int GL_CCW = 0x0901;
+ public static final int GL_CLAMP = 0x2900;
+ public static final int GL_CLAMP_TO_BORDER_SGIS = 0x812D;
+ public static final int GL_CLAMP_TO_EDGE = 0x812F;
+ public static final int GL_CLAMP_TO_EDGE_SGIS = 0x812F;
+ public static final int GL_CLEAR = 0x1500;
+ public static final int GL_CLIENT_ACTIVE_TEXTURE_ARB = 0x84E1;
+ public static final int GL_CLIENT_ALL_ATTRIB_BITS = 0xFFFFFFFF;
+ public static final int GL_CLIENT_ATTRIB_STACK_DEPTH = 0x0BB1;
+ public static final int GL_CLIENT_PIXEL_STORE_BIT = 0x00000001;
+ public static final int GL_CLIENT_VERTEX_ARRAY_BIT = 0x00000002;
+ public static final int GL_CLIP_FAR_HINT_PGI = 107041;
+ public static final int GL_CLIP_NEAR_HINT_PGI = 107040;
+ public static final int GL_CLIP_PLANE0 = 0x3000;
+ public static final int GL_CLIP_PLANE1 = 0x3001;
+ public static final int GL_CLIP_PLANE2 = 0x3002;
+ public static final int GL_CLIP_PLANE3 = 0x3003;
+ public static final int GL_CLIP_PLANE4 = 0x3004;
+ public static final int GL_CLIP_PLANE5 = 0x3005;
+ public static final int GL_CLIP_VOLUME_CLIPPING_HINT_EXT = 0x80F;
+ public static final int GL_CMYKA_EXT = 0x800D;
+ public static final int GL_CMYK_EXT = 0x800C;
+ public static final int GL_COEFF = 0x0A00;
+ public static final int GL_COLOR = 0x1800;
+ public static final int GL_COLOR_ARRAY = 0x8076;
+ public static final int GL_COLOR_ARRAY_COUNT_EXT = 0x8084;
+ public static final int GL_COLOR_ARRAY_EXT = 0x8076;
+ public static final int GL_COLOR_ARRAY_POINTER = 0x8090;
+ public static final int GL_COLOR_ARRAY_POINTER_EXT = 0x8090;
+ public static final int GL_COLOR_ARRAY_SIZE = 0x8081;
+ public static final int GL_COLOR_ARRAY_SIZE_EXT = 0x8081;
+ public static final int GL_COLOR_ARRAY_STRIDE = 0x8083;
+ public static final int GL_COLOR_ARRAY_STRIDE_EXT = 0x8083;
+ public static final int GL_COLOR_ARRAY_TYPE = 0x8082;
+ public static final int GL_COLOR_ARRAY_TYPE_EXT = 0x8082;
+ public static final int GL_COLOR_BUFFER_BIT = 0x00004000;
+ public static final int GL_COLOR_CLEAR_VALUE = 0x0C22;
+ public static final int GL_COLOR_INDEX = 0x1900;
+ public static final int GL_COLOR_INDEX12_EXT = 0x80E6;
+ public static final int GL_COLOR_INDEX16_EXT = 0x80E7;
+ public static final int GL_COLOR_INDEX1_EXT = 0x80E2;
+ public static final int GL_COLOR_INDEX2_EXT = 0x80E3;
+ public static final int GL_COLOR_INDEX4_EXT = 0x80E4;
+ public static final int GL_COLOR_INDEX8_EXT = 0x80E5;
+ public static final int GL_COLOR_INDEXES = 0x1603;
+ public static final int GL_COLOR_LOGIC_OP = 0x0BF2;
+ public static final int GL_COLOR_MATERIAL = 0x0B57;
+ public static final int GL_COLOR_MATERIAL_FACE = 0x0B55;
+ public static final int GL_COLOR_MATERIAL_PARAMETER = 0x0B56;
+ public static final int GL_COLOR_MATRIX = 0x80B1;
+ public static final int GL_COLOR_MATRIX_SGI = 0x80B1;
+ public static final int GL_COLOR_MATRIX_STACK_DEPTH = 0x80B2;
+ public static final int GL_COLOR_MATRIX_STACK_DEPTH_SGI = 0x80B2;
+ public static final int GL_COLOR_SUM_CLAMP_NV = 0x854F;
+ public static final int GL_COLOR_SUM_EXT = 0x8458;
+ public static final int GL_COLOR_TABLE = 0x80D0;
+ public static final int GL_COLOR_TABLE_ALPHA_SIZE = 0x80DD;
+ public static final int GL_COLOR_TABLE_ALPHA_SIZE_EXT = 0x80DD;
+ public static final int GL_COLOR_TABLE_ALPHA_SIZE_SGI = 0x80DD;
+ public static final int GL_COLOR_TABLE_BIAS = 0x80D7;
+ public static final int GL_COLOR_TABLE_BIAS_SGI = 0x80D7;
+ public static final int GL_COLOR_TABLE_BLUE_SIZE = 0x80DC;
+ public static final int GL_COLOR_TABLE_BLUE_SIZE_EXT = 0x80DC;
+ public static final int GL_COLOR_TABLE_BLUE_SIZE_SGI = 0x80DC;
+ public static final int GL_COLOR_TABLE_FORMAT = 0x80D8;
+ public static final int GL_COLOR_TABLE_FORMAT_EXT = 0x80D8;
+ public static final int GL_COLOR_TABLE_FORMAT_SGI = 0x80D8;
+ public static final int GL_COLOR_TABLE_GREEN_SIZE = 0x80DB;
+ public static final int GL_COLOR_TABLE_GREEN_SIZE_EXT = 0x80DB;
+ public static final int GL_COLOR_TABLE_GREEN_SIZE_SGI = 0x80DB;
+ public static final int GL_COLOR_TABLE_INTENSITY_SIZE = 0x80DF;
+ public static final int GL_COLOR_TABLE_INTENSITY_SIZE_EXT = 0x80DF;
+ public static final int GL_COLOR_TABLE_INTENSITY_SIZE_SGI = 0x80DF;
+ public static final int GL_COLOR_TABLE_LUMINANCE_SIZE = 0x80DE;
+ public static final int GL_COLOR_TABLE_LUMINANCE_SIZE_EXT = 0x80DE;
+ public static final int GL_COLOR_TABLE_LUMINANCE_SIZE_SGI = 0x80DE;
+ public static final int GL_COLOR_TABLE_RED_SIZE = 0x80DA;
+ public static final int GL_COLOR_TABLE_RED_SIZE_EXT = 0x80DA;
+ public static final int GL_COLOR_TABLE_RED_SIZE_SGI = 0x80DA;
+ public static final int GL_COLOR_TABLE_SCALE = 0x80D6;
+ public static final int GL_COLOR_TABLE_SCALE_SGI = 0x80D6;
+ public static final int GL_COLOR_TABLE_SGI = 0x80D0;
+ public static final int GL_COLOR_TABLE_SGI_80BC = 0x80BC;
+ public static final int GL_COLOR_TABLE_WIDTH = 0x80D9;
+ public static final int GL_COLOR_TABLE_WIDTH_EXT = 0x80D9;
+ public static final int GL_COLOR_TABLE_WIDTH_SGI = 0x80D9;
+ public static final int GL_COLOR_WRITEMASK = 0x0C23;
+ public static final int GL_COMBINE4_NV = 0x8503;
+ public static final int GL_COMBINER0_NV = 0x8550;
+ public static final int GL_COMBINER1_NV = 0x8551;
+ public static final int GL_COMBINER2_NV = 0x8552;
+ public static final int GL_COMBINER3_NV = 0x8553;
+ public static final int GL_COMBINER4_NV = 0x8554;
+ public static final int GL_COMBINER5_NV = 0x8555;
+ public static final int GL_COMBINER6_NV = 0x8556;
+ public static final int GL_COMBINER7_NV = 0x8557;
+ public static final int GL_COMBINER_AB_DOT_PRODUCT_NV = 0x8545;
+ public static final int GL_COMBINER_AB_OUTPUT_NV = 0x854A;
+ public static final int GL_COMBINER_BIAS_NV = 0x8549;
+ public static final int GL_COMBINER_CD_DOT_PRODUCT_NV = 0x8546;
+ public static final int GL_COMBINER_CD_OUTPUT_NV = 0x854B;
+ public static final int GL_COMBINER_COMPONENT_USAGE_NV = 0x8544;
+ public static final int GL_COMBINER_INPUT_NV = 0x8542;
+ public static final int GL_COMBINER_MAPPING_NV = 0x8543;
+ public static final int GL_COMBINER_MUX_SUM_NV = 0x8547;
+ public static final int GL_COMBINER_SCALE_NV = 0x8548;
+ public static final int GL_COMBINER_SUM_OUTPUT_NV = 0x854C;
+ public static final int GL_COMBINE_ALPHA_EXT = 0x8572;
+ public static final int GL_COMBINE_EXT = 0x8570;
+ public static final int GL_COMBINE_RGB_EXT = 0x8571;
+ public static final int GL_COMPILE = 0x1300;
+ public static final int GL_COMPILE_AND_EXECUTE = 0x1301;
+ public static final int GL_COMPRESSED_ALPHA_ARB = 0x84E9;
+ public static final int GL_COMPRESSED_INTENSITY_ARB = 0x84EC;
+ public static final int GL_COMPRESSED_LUMINANCE_ALPHA_ARB = 0x84EB;
+ public static final int GL_COMPRESSED_LUMINANCE_ARB = 0x84EA;
+ public static final int GL_COMPRESSED_RGBA_ARB = 0x84EE;
+ public static final int GL_COMPRESSED_RGB_ARB = 0x84ED;
+ public static final int GL_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A3;
+ public static final int GL_CONSERVE_MEMORY_HINT_PGI = 107005;
+ public static final int GL_CONSTANT_ALPHA = 0x8003;
+ public static final int GL_CONSTANT_ALPHA_EXT = 0x8003;
+ public static final int GL_CONSTANT_ATTENUATION = 0x1207;
+ public static final int GL_CONSTANT_BORDER = 0x8151;
+ public static final int GL_CONSTANT_COLOR = 0x8001;
+ public static final int GL_CONSTANT_COLOR0_NV = 0x852A;
+ public static final int GL_CONSTANT_COLOR1_NV = 0x852B;
+ public static final int GL_CONSTANT_COLOR_EXT = 0x8001;
+ public static final int GL_CONSTANT_EXT = 0x8576;
+ public static final int GL_CONVOLUTION_1D = 0x8010;
+ public static final int GL_CONVOLUTION_1D_EXT = 0x8010;
+ public static final int GL_CONVOLUTION_2D = 0x8011;
+ public static final int GL_CONVOLUTION_2D_EXT = 0x8011;
+ public static final int GL_CONVOLUTION_BORDER_COLOR = 0x8154;
+ public static final int GL_CONVOLUTION_BORDER_MODE = 0x8013;
+ public static final int GL_CONVOLUTION_BORDER_MODE_EXT = 0x8013;
+ public static final int GL_CONVOLUTION_FILTER_BIAS = 0x8015;
+ public static final int GL_CONVOLUTION_FILTER_BIAS_EXT = 0x8015;
+ public static final int GL_CONVOLUTION_FILTER_SCALE = 0x8014;
+ public static final int GL_CONVOLUTION_FILTER_SCALE_EXT = 0x8014;
+ public static final int GL_CONVOLUTION_FORMAT = 0x8017;
+ public static final int GL_CONVOLUTION_FORMAT_EXT = 0x8017;
+ public static final int GL_CONVOLUTION_HEIGHT = 0x8019;
+ public static final int GL_CONVOLUTION_HEIGHT_EXT = 0x8019;
+ public static final int GL_CONVOLUTION_WIDTH = 0x8018;
+ public static final int GL_CONVOLUTION_WIDTH_EXT = 0x8018;
+ public static final int GL_COPY = 0x1503;
+ public static final int GL_COPY_INVERTED = 0x150C;
+ public static final int GL_COPY_PIXEL_TOKEN = 0x0706;
+ public static final int GL_CUBIC_EXT = 0x8334;
+ public static final int GL_CULL_FACE = 0x0B44;
+ public static final int GL_CULL_FACE_MODE = 0x0B45;
+ public static final int GL_CULL_VERTEX_EXT = 0x81AA;
+ public static final int GL_CULL_VERTEX_EYE_POSITION_EXT = 0x81AB;
+ public static final int GL_CULL_VERTEX_IBM = 0x1928A;
+ public static final int GL_CULL_VERTEX_OBJECT_POSITION_EXT = 0x81AC;
+ public static final int GL_CURRENT_BINORMAL_EXT = 0x843C;
+ public static final int GL_CURRENT_BIT = 0x00000001;
+ public static final int GL_CURRENT_COLOR = 0x0B00;
+ public static final int GL_CURRENT_FOG_COORDINATE_EXT = 0x8453;
+ public static final int GL_CURRENT_INDEX = 0x0B01;
+ public static final int GL_CURRENT_NORMAL = 0x0B02;
+ public static final int GL_CURRENT_RASTER_COLOR = 0x0B04;
+ public static final int GL_CURRENT_RASTER_DISTANCE = 0x0B09;
+ public static final int GL_CURRENT_RASTER_INDEX = 0x0B05;
+ public static final int GL_CURRENT_RASTER_POSITION = 0x0B07;
+ public static final int GL_CURRENT_RASTER_POSITION_VALID = 0x0B08;
+ public static final int GL_CURRENT_RASTER_TEXTURE_COORDS = 0x0B06;
+ public static final int GL_CURRENT_SECONDARY_COLOR_EXT = 0x8459;
+ public static final int GL_CURRENT_TANGENT_EXT = 0x843B;
+ public static final int GL_CURRENT_TEXTURE_COORDS = 0x0B03;
+ public static final int GL_CURRENT_VERTEX_WEIGHT_EXT = 0x850B;
+ public static final int GL_CW = 0x0900;
+ public static final int GL_DECAL = 0x2101;
+ public static final int GL_DECR = 0x1E03;
+ public static final int GL_DECR_WRAP_EXT = 0x8508;
+ public static final int GL_DEPTH = 0x1801;
+ public static final int GL_DEPTH_BIAS = 0x0D1F;
+ public static final int GL_DEPTH_BITS = 0x0D56;
+ public static final int GL_DEPTH_BUFFER_BIT = 0x00000100;
+ public static final int GL_DEPTH_CLEAR_VALUE = 0x0B73;
+ public static final int GL_DEPTH_COMPONENT = 0x1902;
+ public static final int GL_DEPTH_COMPONENT16_SGIX = 0x81A5;
+ public static final int GL_DEPTH_COMPONENT24_SGIX = 0x81A6;
+ public static final int GL_DEPTH_COMPONENT32_SGIX = 0x81A7;
+ public static final int GL_DEPTH_FUNC = 0x0B74;
+ public static final int GL_DEPTH_RANGE = 0x0B70;
+ public static final int GL_DEPTH_SCALE = 0x0D1E;
+ public static final int GL_DEPTH_TEST = 0x0B71;
+ public static final int GL_DEPTH_WRITEMASK = 0x0B72;
+ public static final int GL_DETAIL_TEXTURE_2D_BINDING_SGIS = 0x8096;
+ public static final int GL_DETAIL_TEXTURE_2D_SGIS = 0x8095;
+ public static final int GL_DETAIL_TEXTURE_LEVEL_SGIS = 0x809A;
+ public static final int GL_DETAIL_TEXTURE_MODE_SGIS = 0x809B;
+ public static final int GL_DIFFUSE = 0x1201;
+ public static final int GL_DISCARD_NV = 0x8530;
+ public static final int GL_DISTANCE_ATTENUATION_EXT = 0x8129;
+ public static final int GL_DITHER = 0x0BD0;
+ public static final int GL_DOMAIN = 0x0A02;
+ public static final int GL_DONT_CARE = 0x1100;
+ public static final int GL_DOUBLE = 0x140A;
+ public static final int GL_DOUBLEBUFFER = 0x0C32;
+ public static final int GL_DRAW_BUFFER = 0x0C01;
+ public static final int GL_DRAW_PIXEL_TOKEN = 0x0705;
+ public static final int GL_DST_ALPHA = 0x0304;
+ public static final int GL_DST_COLOR = 0x0306;
+ public static final int GL_DUAL_ALPHA12_SGIS = 0x8112;
+ public static final int GL_DUAL_ALPHA16_SGIS = 0x8113;
+ public static final int GL_DUAL_ALPHA4_SGIS = 0x8110;
+ public static final int GL_DUAL_ALPHA8_SGIS = 0x8111;
+ public static final int GL_DUAL_INTENSITY12_SGIS = 0x811A;
+ public static final int GL_DUAL_INTENSITY16_SGIS = 0x811B;
+ public static final int GL_DUAL_INTENSITY4_SGIS = 0x8118;
+ public static final int GL_DUAL_INTENSITY8_SGIS = 0x8119;
+ public static final int GL_DUAL_LUMINANCE12_SGIS = 0x8116;
+ public static final int GL_DUAL_LUMINANCE16_SGIS = 0x8117;
+ public static final int GL_DUAL_LUMINANCE4_SGIS = 0x8114;
+ public static final int GL_DUAL_LUMINANCE8_SGIS = 0x8115;
+ public static final int GL_DUAL_LUMINANCE_ALPHA4_SGIS = 0x811C;
+ public static final int GL_DUAL_LUMINANCE_ALPHA8_SGIS = 0x811D;
+ public static final int GL_DUAL_TEXTURE_SELECT_SGIS = 0x8124;
+ public static final int GL_EDGE_FLAG = 0x0B43;
+ public static final int GL_EDGE_FLAG_ARRAY = 0x8079;
+ public static final int GL_EDGE_FLAG_ARRAY_COUNT_EXT = 0x808D;
+ public static final int GL_EDGE_FLAG_ARRAY_EXT = 0x8079;
+ public static final int GL_EDGE_FLAG_ARRAY_POINTER = 0x8093;
+ public static final int GL_EDGE_FLAG_ARRAY_POINTER_EXT = 0x8093;
+ public static final int GL_EDGE_FLAG_ARRAY_STRIDE = 0x808C;
+ public static final int GL_EDGE_FLAG_ARRAY_STRIDE_EXT = 0x808C;
+ public static final int GL_EMBOSS_CONSTANT_NV = 0x855E;
+ public static final int GL_EMBOSS_LIGHT_NV = 0x855D;
+ public static final int GL_EMBOSS_MAP_NV = 0x855F;
+ public static final int GL_EMISSION = 0x1600;
+ public static final int GL_ENABLE_BIT = 0x00002000;
+ public static final int GL_EQUAL = 0x0202;
+ public static final int GL_EQUIV = 0x1509;
+ public static final int GL_EVAL_BIT = 0x00010000;
+ public static final int GL_EXP = 0x0800;
+ public static final int GL_EXP2 = 0x0801;
+ public static final int GL_EXPAND_NEGATE_NV = 0x8539;
+ public static final int GL_EXPAND_NORMAL_NV = 0x8538;
+ public static final int GL_EXTENSIONS = 0x1F03;
+ public static final int GL_EYE_LINEAR = 0x2400;
+ public static final int GL_EYE_PLANE = 0x2502;
+ public static final int GL_EYE_PLANE_ABSOLUTE_NV = 0x855C;
+ public static final int GL_EYE_RADIAL_NV = 0x855B;
+ public static final int GL_E_TIMES_F_NV = 0x8531;
+ public static final int GL_FASTEST = 0x1101;
+ public static final int GL_FEEDBACK = 0x1C01;
+ public static final int GL_FEEDBACK_BUFFER_POINTER = 0x0DF0;
+ public static final int GL_FEEDBACK_BUFFER_SIZE = 0x0DF1;
+ public static final int GL_FEEDBACK_BUFFER_TYPE = 0x0DF2;
+ public static final int GL_FILL = 0x1B02;
+ public static final int GL_FILTER4_SGIS = 0x8146;
+ public static final int GL_FLAT = 0x1D00;
+ public static final int GL_FLOAT = 0x1406;
+ public static final int GL_FOG = 0x0B60;
+ public static final int GL_FOG_BIT = 0x00000080;
+ public static final int GL_FOG_COLOR = 0x0B66;
+ public static final int GL_FOG_COORDINATE_ARRAY_EXT = 0x8457;
+ public static final int GL_FOG_COORDINATE_ARRAY_POINTER_EXT = 0x8456;
+ public static final int GL_FOG_COORDINATE_ARRAY_STRIDE_EXT = 0x8455;
+ public static final int GL_FOG_COORDINATE_ARRAY_TYPE_EXT = 0x8454;
+ public static final int GL_FOG_COORDINATE_EXT = 0x8451;
+ public static final int GL_FOG_COORDINATE_SOURCE_EXT = 0x8450;
+ public static final int GL_FOG_DENSITY = 0x0B62;
+ public static final int GL_FOG_DISTANCE_MODE_NV = 0x855A;
+ public static final int GL_FOG_END = 0x0B64;
+ public static final int GL_FOG_FUNC_POINTS_SGIS = 0x812B;
+ public static final int GL_FOG_FUNC_SGIS = 0x812A;
+ public static final int GL_FOG_HINT = 0x0C54;
+ public static final int GL_FOG_INDEX = 0x0B61;
+ public static final int GL_FOG_MODE = 0x0B65;
+ public static final int GL_FOG_OFFSET_SGIX = 0x8198;
+ public static final int GL_FOG_OFFSET_VALUE_SGIX = 0x8199;
+ public static final int GL_FOG_SPECULAR_TEXTURE_WIN = 0x80EC;
+ public static final int GL_FOG_START = 0x0B63;
+ public static final int GL_FRAGMENT_COLOR_EXT = 0x834C;
+ public static final int GL_FRAGMENT_DEPTH_EXT = 0x8452;
+ public static final int GL_FRAGMENT_DEPTH_EXT_834B = 0x834B;
+ public static final int GL_FRAGMENT_MATERIAL_EXT = 0x8349;
+ public static final int GL_FRAGMENT_NORMAL_EXT = 0x834A;
+ public static final int GL_FRAMEZOOM_FACTOR_SGIX = 0x818C;
+ public static final int GL_FRAMEZOOM_SGIX = 0x818B;
+ public static final int GL_FRONT = 0x0404;
+ public static final int GL_FRONT_AND_BACK = 0x0408;
+ public static final int GL_FRONT_FACE = 0x0B46;
+ public static final int GL_FRONT_LEFT = 0x0400;
+ public static final int GL_FRONT_RIGHT = 0x0401;
+ public static final int GL_FULL_STIPPLE_HINT_PGI = 107033;
+ public static final int GL_FUNC_ADD = 0x8006;
+ public static final int GL_FUNC_ADD_EXT = 0x8006;
+ public static final int GL_FUNC_REVERSE_SUBTRACT = 0x800B;
+ public static final int GL_FUNC_REVERSE_SUBTRACT_EXT = 0x800B;
+ public static final int GL_FUNC_SUBTRACT = 0x800A;
+ public static final int GL_FUNC_SUBTRACT_EXT = 0x800A;
+ public static final int GL_GENERATE_MIPMAP_HINT_SGIS = 0x8192;
+ public static final int GL_GENERATE_MIPMAP_SGIS = 0x8191;
+ public static final int GL_GEQUAL = 0x0206;
+ public static final int GL_GLEXT_VERSION_EXT = 8;
+ public static final int GL_GLOBAL_ALPHA_FACTOR_SUN = 0x81DA;
+ public static final int GL_GLOBAL_ALPHA_SUN = 0x81D9;
+ public static final int GL_GREATER = 0x0204;
+ public static final int GL_GREEN = 0x1904;
+ public static final int GL_GREEN_BIAS = 0x0D19;
+ public static final int GL_GREEN_BITS = 0x0D53;
+ public static final int GL_GREEN_MAX_CLAMP_INGR = 0x8565;
+ public static final int GL_GREEN_MIN_CLAMP_INGR = 0x8561;
+ public static final int GL_GREEN_SCALE = 0x0D18;
+ public static final int GL_HALF_BIAS_NEGATE_NV = 0x853B;
+ public static final int GL_HALF_BIAS_NORMAL_NV = 0x853A;
+ public static final int GL_HINT_BIT = 0x00008000;
+ public static final int GL_HISTOGRAM = 0x8024;
+ public static final int GL_HISTOGRAM_ALPHA_SIZE = 0x802B;
+ public static final int GL_HISTOGRAM_ALPHA_SIZE_EXT = 0x802B;
+ public static final int GL_HISTOGRAM_BLUE_SIZE = 0x802A;
+ public static final int GL_HISTOGRAM_BLUE_SIZE_EXT = 0x802A;
+ public static final int GL_HISTOGRAM_EXT = 0x8024;
+ public static final int GL_HISTOGRAM_FORMAT = 0x8027;
+ public static final int GL_HISTOGRAM_FORMAT_EXT = 0x8027;
+ public static final int GL_HISTOGRAM_GREEN_SIZE = 0x8029;
+ public static final int GL_HISTOGRAM_GREEN_SIZE_EXT = 0x8029;
+ public static final int GL_HISTOGRAM_LUMINANCE_SIZE = 0x802C;
+ public static final int GL_HISTOGRAM_LUMINANCE_SIZE_EXT = 0x802C;
+ public static final int GL_HISTOGRAM_RED_SIZE = 0x8028;
+ public static final int GL_HISTOGRAM_RED_SIZE_EXT = 0x8028;
+ public static final int GL_HISTOGRAM_SINK = 0x802D;
+ public static final int GL_HISTOGRAM_SINK_EXT = 0x802D;
+ public static final int GL_HISTOGRAM_WIDTH = 0x8026;
+ public static final int GL_HISTOGRAM_WIDTH_EXT = 0x8026;
+ public static final int GL_INCR = 0x1E02;
+ public static final int GL_INCR_WRAP_EXT = 0x8507;
+ public static final int GL_INDEX_ARRAY = 0x8077;
+ public static final int GL_INDEX_ARRAY_COUNT_EXT = 0x8087;
+ public static final int GL_INDEX_ARRAY_EXT = 0x8077;
+ public static final int GL_INDEX_ARRAY_POINTER = 0x8091;
+ public static final int GL_INDEX_ARRAY_POINTER_EXT = 0x8091;
+ public static final int GL_INDEX_ARRAY_STRIDE = 0x8086;
+ public static final int GL_INDEX_ARRAY_STRIDE_EXT = 0x8086;
+ public static final int GL_INDEX_ARRAY_TYPE = 0x8085;
+ public static final int GL_INDEX_ARRAY_TYPE_EXT = 0x8085;
+ public static final int GL_INDEX_BITS = 0x0D51;
+ public static final int GL_INDEX_CLEAR_VALUE = 0x0C20;
+ public static final int GL_INDEX_LOGIC_OP = 0x0BF1;
+ public static final int GL_INDEX_MODE = 0x0C30;
+ public static final int GL_INDEX_OFFSET = 0x0D13;
+ public static final int GL_INDEX_SHIFT = 0x0D12;
+ public static final int GL_INDEX_WRITEMASK = 0x0C21;
+ public static final int GL_INSTRUMENT_BUFFER_POINTER_SGIX = 0x8180;
+ public static final int GL_INSTRUMENT_MEASUREMENTS_SGIX = 0x8181;
+ public static final int GL_INT = 0x1404;
+ public static final int GL_INTENSITY = 0x8049;
+ public static final int GL_INTENSITY12 = 0x804C;
+ public static final int GL_INTENSITY12_EXT = 0x804C;
+ public static final int GL_INTENSITY16 = 0x804D;
+ public static final int GL_INTENSITY16_EXT = 0x804D;
+ public static final int GL_INTENSITY4 = 0x804A;
+ public static final int GL_INTENSITY4_EXT = 0x804A;
+ public static final int GL_INTENSITY8 = 0x804B;
+ public static final int GL_INTENSITY8_EXT = 0x804B;
+ public static final int GL_INTENSITY_EXT = 0x8049;
+ public static final int GL_INTERLACE_READ_INGR = 0x8568;
+ public static final int GL_INTERLACE_SGIX = 0x8094;
+ public static final int GL_INTERPOLATE_EXT = 0x8575;
+ public static final int GL_INVALID_ENUM = 0x0500;
+ public static final int GL_INVALID_OPERATION = 0x0502;
+ public static final int GL_INVALID_VALUE = 0x0501;
+ public static final int GL_INVERT = 0x150A;
+ public static final int GL_INVERTED_SCREEN_W_REND = 0x8491;
+ public static final int GL_IR_INSTRUMENT1_SGIX = 0x817F;
+ public static final int GL_KEEP = 0x1E00;
+ public static final int GL_LEFT = 0x0406;
+ public static final int GL_LEQUAL = 0x0203;
+ public static final int GL_LESS = 0x0201;
+ public static final int GL_LIGHT0 = 0x4000;
+ public static final int GL_LIGHT1 = 0x4001;
+ public static final int GL_LIGHT2 = 0x4002;
+ public static final int GL_LIGHT3 = 0x4003;
+ public static final int GL_LIGHT4 = 0x4004;
+ public static final int GL_LIGHT5 = 0x4005;
+ public static final int GL_LIGHT6 = 0x4006;
+ public static final int GL_LIGHT7 = 0x4007;
+ public static final int GL_LIGHTING = 0x0B50;
+ public static final int GL_LIGHTING_BIT = 0x00000040;
+ public static final int GL_LIGHT_MODEL_AMBIENT = 0x0B53;
+ public static final int GL_LIGHT_MODEL_COLOR_CONTROL = 0x81F8;
+ public static final int GL_LIGHT_MODEL_COLOR_CONTROL_EXT = 0x81F8;
+ public static final int GL_LIGHT_MODEL_LOCAL_VIEWER = 0x0B51;
+ public static final int GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE = 0x85B0;
+ public static final int GL_LIGHT_MODEL_TWO_SIDE = 0x0B52;
+ public static final int GL_LINE = 0x1B01;
+ public static final int GL_LINEAR = 0x2601;
+ public static final int GL_LINEAR_ATTENUATION = 0x1208;
+ public static final int GL_LINEAR_CLIPMAP_LINEAR_SGIX = 0x8170;
+ public static final int GL_LINEAR_DETAIL_ALPHA_SGIS = 0x8098;
+ public static final int GL_LINEAR_DETAIL_COLOR_SGIS = 0x8099;
+ public static final int GL_LINEAR_DETAIL_SGIS = 0x8097;
+ public static final int GL_LINEAR_MIPMAP_LINEAR = 0x2703;
+ public static final int GL_LINEAR_MIPMAP_NEAREST = 0x2701;
+ public static final int GL_LINEAR_SHARPEN_ALPHA_SGIS = 0x80AE;
+ public static final int GL_LINEAR_SHARPEN_COLOR_SGIS = 0x80AF;
+ public static final int GL_LINEAR_SHARPEN_SGIS = 0x80AD;
+ public static final int GL_LINES = 0x0001;
+ public static final int GL_LINE_BIT = 0x00000004;
+ public static final int GL_LINE_LOOP = 0x0002;
+ public static final int GL_LINE_RESET_TOKEN = 0x0707;
+ public static final int GL_LINE_SMOOTH = 0x0B20;
+ public static final int GL_LINE_SMOOTH_HINT = 0x0C52;
+ public static final int GL_LINE_STIPPLE = 0x0B24;
+ public static final int GL_LINE_STIPPLE_PATTERN = 0x0B25;
+ public static final int GL_LINE_STIPPLE_REPEAT = 0x0B26;
+ public static final int GL_LINE_STRIP = 0x0003;
+ public static final int GL_LINE_TOKEN = 0x0702;
+ public static final int GL_LINE_WIDTH = 0x0B21;
+ public static final int GL_LINE_WIDTH_GRANULARITY = 0x0B23;
+ public static final int GL_LINE_WIDTH_RANGE = 0x0B22;
+ public static final int GL_LIST_BASE = 0x0B32;
+ public static final int GL_LIST_BIT = 0x00020000;
+ public static final int GL_LIST_INDEX = 0x0B33;
+ public static final int GL_LIST_MODE = 0x0B30;
+ public static final int GL_LIST_PRIORITY_SGIX = 0x8182;
+ public static final int GL_LOAD = 0x0101;
+ public static final int GL_LOGIC_OP = 0x0BF1;
+ public static final int GL_LOGIC_OP_MODE = 0x0BF0;
+ public static final int GL_LUMINANCE = 0x1909;
+ public static final int GL_LUMINANCE12 = 0x8041;
+ public static final int GL_LUMINANCE12_ALPHA12 = 0x8047;
+ public static final int GL_LUMINANCE12_ALPHA12_EXT = 0x8047;
+ public static final int GL_LUMINANCE12_ALPHA4 = 0x8046;
+ public static final int GL_LUMINANCE12_ALPHA4_EXT = 0x8046;
+ public static final int GL_LUMINANCE12_EXT = 0x8041;
+ public static final int GL_LUMINANCE16 = 0x8042;
+ public static final int GL_LUMINANCE16_ALPHA16 = 0x8048;
+ public static final int GL_LUMINANCE16_ALPHA16_EXT = 0x8048;
+ public static final int GL_LUMINANCE16_EXT = 0x8042;
+ public static final int GL_LUMINANCE4 = 0x803F;
+ public static final int GL_LUMINANCE4_ALPHA4 = 0x8043;
+ public static final int GL_LUMINANCE4_ALPHA4_EXT = 0x8043;
+ public static final int GL_LUMINANCE4_EXT = 0x803F;
+ public static final int GL_LUMINANCE6_ALPHA2 = 0x8044;
+ public static final int GL_LUMINANCE6_ALPHA2_EXT = 0x8044;
+ public static final int GL_LUMINANCE8 = 0x8040;
+ public static final int GL_LUMINANCE8_ALPHA8 = 0x8045;
+ public static final int GL_LUMINANCE8_ALPHA8_EXT = 0x8045;
+ public static final int GL_LUMINANCE8_EXT = 0x8040;
+ public static final int GL_LUMINANCE_ALPHA = 0x190A;
+ public static final int GL_MAP1_BINORMAL_EXT = 0x8446;
+ public static final int GL_MAP1_COLOR_4 = 0x0D90;
+ public static final int GL_MAP1_GRID_DOMAIN = 0x0DD0;
+ public static final int GL_MAP1_GRID_SEGMENTS = 0x0DD1;
+ public static final int GL_MAP1_INDEX = 0x0D91;
+ public static final int GL_MAP1_NORMAL = 0x0D92;
+ public static final int GL_MAP1_TANGENT_EXT = 0x8444;
+ public static final int GL_MAP1_TEXTURE_COORD_1 = 0x0D93;
+ public static final int GL_MAP1_TEXTURE_COORD_2 = 0x0D94;
+ public static final int GL_MAP1_TEXTURE_COORD_3 = 0x0D95;
+ public static final int GL_MAP1_TEXTURE_COORD_4 = 0x0D96;
+ public static final int GL_MAP1_VERTEX_3 = 0x0D97;
+ public static final int GL_MAP1_VERTEX_4 = 0x0D98;
+ public static final int GL_MAP2_BINORMAL_EXT = 0x8447;
+ public static final int GL_MAP2_COLOR_4 = 0x0DB0;
+ public static final int GL_MAP2_GRID_DOMAIN = 0x0DD2;
+ public static final int GL_MAP2_GRID_SEGMENTS = 0x0DD3;
+ public static final int GL_MAP2_INDEX = 0x0DB1;
+ public static final int GL_MAP2_NORMAL = 0x0DB2;
+ public static final int GL_MAP2_TANGENT_EXT = 0x8445;
+ public static final int GL_MAP2_TEXTURE_COORD_1 = 0x0DB3;
+ public static final int GL_MAP2_TEXTURE_COORD_2 = 0x0DB4;
+ public static final int GL_MAP2_TEXTURE_COORD_3 = 0x0DB5;
+ public static final int GL_MAP2_TEXTURE_COORD_4 = 0x0DB6;
+ public static final int GL_MAP2_VERTEX_3 = 0x0DB7;
+ public static final int GL_MAP2_VERTEX_4 = 0x0DB8;
+ public static final int GL_MAP_COLOR = 0x0D10;
+ public static final int GL_MAP_STENCIL = 0x0D11;
+ public static final int GL_MATRIX_MODE = 0x0BA0;
+ public static final int GL_MAX = 0x8008;
+ public static final int GL_MAX_3D_TEXTURE_SIZE = 0x8073;
+ public static final int GL_MAX_3D_TEXTURE_SIZE_EXT = 0x8073;
+ public static final int GL_MAX_4D_TEXTURE_SIZE_SGIS = 0x8138;
+ public static final int GL_MAX_ATTRIB_STACK_DEPTH = 0x0D35;
+ public static final int GL_MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B;
+ public static final int GL_MAX_CLIPMAP_DEPTH_SGIX = 0x8177;
+ public static final int GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX = 0x8178;
+ public static final int GL_MAX_CLIP_PLANES = 0x0D32;
+ public static final int GL_MAX_COLOR_MATRIX_STACK_DEPTH = 0x80B3;
+ public static final int GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI = 0x80B3;
+ public static final int GL_MAX_CONVOLUTION_HEIGHT = 0x801B;
+ public static final int GL_MAX_CONVOLUTION_HEIGHT_EXT = 0x801B;
+ public static final int GL_MAX_CONVOLUTION_WIDTH = 0x801A;
+ public static final int GL_MAX_CONVOLUTION_WIDTH_EXT = 0x801A;
+ public static final int GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT = 0x851C;
+ public static final int GL_MAX_ELEMENTS_INDICES = 0x80E9;
+ public static final int GL_MAX_ELEMENTS_INDICES_EXT = 0x80E9;
+ public static final int GL_MAX_ELEMENTS_VERTICES = 0x80E8;
+ public static final int GL_MAX_ELEMENTS_VERTICES_EXT = 0x80E8;
+ public static final int GL_MAX_EVAL_ORDER = 0x0D30;
+ public static final int GL_MAX_EXT = 0x8008;
+ public static final int GL_MAX_FOG_FUNC_POINTS_SGIS = 0x812C;
+ public static final int GL_MAX_FRAMEZOOM_FACTOR_SGIX = 0x818D;
+ public static final int GL_MAX_GENERAL_COMBINERS_NV = 0x854D;
+ public static final int GL_MAX_LIGHTS = 0x0D31;
+ public static final int GL_MAX_LIST_NESTING = 0x0B31;
+ public static final int GL_MAX_MODELVIEW_STACK_DEPTH = 0x0D36;
+ public static final int GL_MAX_NAME_STACK_DEPTH = 0x0D37;
+ public static final int GL_MAX_PIXEL_MAP_TABLE = 0x0D34;
+ public static final int GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT = 0x8337;
+ public static final int GL_MAX_PROJECTION_STACK_DEPTH = 0x0D38;
+ public static final int GL_MAX_SHININESS_NV = 0x8507;
+ public static final int GL_MAX_SPOT_EXPONENT_NV = 0x8508;
+ public static final int GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;
+ public static final int GL_MAX_TEXTURE_SIZE = 0x0D33;
+ public static final int GL_MAX_TEXTURE_STACK_DEPTH = 0x0D39;
+ public static final int GL_MAX_TEXTURE_UNITS_ARB = 0x84E2;
+ public static final int GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV = 0x8520;
+ public static final int GL_MAX_VIEWPORT_DIMS = 0x0D3A;
+ public static final int GL_MIN = 0x8007;
+ public static final int GL_MINMAX = 0x802E;
+ public static final int GL_MINMAX_FORMAT = 0x802F;
+ public static final int GL_MINMAX_SINK = 0x8030;
+ public static final int GL_MIN_EXT = 0x8007;
+ public static final int GL_MIRRORED_REPEAT_IBM = 0x8370;
+ public static final int GL_MODELVIEW = 0x1700;
+ public static final int GL_MODELVIEW0_EXT = 0x1700;
+ public static final int GL_MODELVIEW0_STACK_DEPTH_EXT = 0x0BA3;
+ public static final int GL_MODELVIEW1_EXT = 0x850A;
+ public static final int GL_MODELVIEW1_STACK_DEPTH_EXT = 0x8502;
+ public static final int GL_MODELVIEW_MATRIX = 0x0BA6;
+ public static final int GL_MODELVIEW_STACK_DEPTH = 0x0BA3;
+ public static final int GL_MODULATE = 0x2100;
+ public static final int GL_MULT = 0x0103;
+ public static final int GL_MULTISAMPLE_ARBfunda = 0x809D;
+ public static final int GL_MULTISAMPLE_BIT_ARB = 0x20000000;
+ public static final int GL_MULTISAMPLE_BIT_EXT = 0x20000000;
+ public static final int GL_MULTISAMPLE_SGIS = 0x809D;
+ public static final int GL_N3F_V3F = 0x2A25;
+ public static final int GL_NAME_STACK_DEPTH = 0x0D70;
+ public static final int GL_NAND = 0x150E;
+ public static final int GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI = 107011;
+ public static final int GL_NATIVE_GRAPHICS_END_HINT_PGI = 107012;
+ public static final int GL_NATIVE_GRAPHICS_HANDLE_PGI = 107010;
+ public static final int GL_NEAREST = 0x2600;
+ public static final int GL_NEAREST_MIPMAP_LINEAR = 0x2702;
+ public static final int GL_NEAREST_MIPMAP_NEAREST = 0x2700;
+ public static final int GL_NEVER = 0x0200;
+ public static final int GL_NICEST = 0x1102;
+ public static final int GL_NONE = 0x0;
+ public static final int GL_NOOP = 0x1505;
+ public static final int GL_NOR = 0x1508;
+ public static final int GL_NORMALIZE = 0x0BA1;
+ public static final int GL_NORMAL_ARRAY = 0x8075;
+ public static final int GL_NORMAL_ARRAY_COUNT_EXT = 0x8080;
+ public static final int GL_NORMAL_ARRAY_EXT = 0x8075;
+ public static final int GL_NORMAL_ARRAY_POINTER = 0x808F;
+ public static final int GL_NORMAL_ARRAY_POINTER_EXT = 0x808F;
+ public static final int GL_NORMAL_ARRAY_STRIDE = 0x807F;
+ public static final int GL_NORMAL_ARRAY_STRIDE_EXT = 0x807F;
+ public static final int GL_NORMAL_ARRAY_TYPE = 0x807E;
+ public static final int GL_NORMAL_ARRAY_TYPE_EXT = 0x807E;
+ public static final int GL_NORMAL_MAP_EXT = 0x8511;
+ public static final int GL_NORMAL_MAP_NV = 0x8511;
+ public static final int GL_NOTEQUAL = 0x0205;
+ public static final int GL_NO_ERROR = 0x0;
+ public static final int GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A2;
+ public static final int GL_NUM_GENERAL_COMBINERS_NV = 0x854E;
+ public static final int GL_OBJECT_LINEAR = 0x2401;
+ public static final int GL_OBJECT_PLANE = 0x2501;
+ public static final int GL_OCCLUSION_TEST_HP = 0x8165;
+ public static final int GL_OCCLUSION_TEST_RESULT_HP = 0x8166;
+ public static final int GL_ONE = 0x1;
+ public static final int GL_ONE_MINUS_CONSTANT_ALPHA = 0x8004;
+ public static final int GL_ONE_MINUS_CONSTANT_ALPHA_EXT = 0x8004;
+ public static final int GL_ONE_MINUS_CONSTANT_COLOR = 0x8002;
+ public static final int GL_ONE_MINUS_CONSTANT_COLOR_EXT = 0x8002;
+ public static final int GL_ONE_MINUS_DST_ALPHA = 0x0305;
+ public static final int GL_ONE_MINUS_DST_COLOR = 0x0307;
+ public static final int GL_ONE_MINUS_SRC_ALPHA = 0x0303;
+ public static final int GL_ONE_MINUS_SRC_COLOR = 0x0301;
+ public static final int GL_OPERAND0_ALPHA_EXT = 0x8598;
+ public static final int GL_OPERAND0_RGB_EXT = 0x8590;
+ public static final int GL_OPERAND1_ALPHA_EXT = 0x8599;
+ public static final int GL_OPERAND1_RGB_EXT = 0x8591;
+ public static final int GL_OPERAND2_ALPHA_EXT = 0x859A;
+ public static final int GL_OPERAND2_RGB_EXT = 0x8592;
+ public static final int GL_OPERAND3_ALPHA_NV = 0x859B;
+ public static final int GL_OPERAND3_RGB_NV = 0x8593;
+ public static final int GL_OR = 0x1507;
+ public static final int GL_ORDER = 0x0A01;
+ public static final int GL_OR_INVERTED = 0x150D;
+ public static final int GL_OR_REVERSE = 0x150B;
+ public static final int GL_OUT_OF_MEMORY = 0x0505;
+ public static final int GL_PACK_ALIGNMENT = 0x0D05;
+ public static final int GL_PACK_CMYK_HINT_EXT = 0x800E;
+ public static final int GL_PACK_IMAGE_DEPTH_SGIS = 0x8131;
+ public static final int GL_PACK_IMAGE_HEIGHT = 0x806C;
+ public static final int GL_PACK_IMAGE_HEIGHT_EXT = 0x806C;
+ public static final int GL_PACK_LSB_FIRST = 0x0D01;
+ public static final int GL_PACK_ROW_LENGTH = 0x0D02;
+ public static final int GL_PACK_SKIP_IMAGES = 0x806B;
+ public static final int GL_PACK_SKIP_IMAGES_EXT = 0x806B;
+ public static final int GL_PACK_SKIP_PIXELS = 0x0D04;
+ public static final int GL_PACK_SKIP_ROWS = 0x0D03;
+ public static final int GL_PACK_SKIP_VOLUMES_SGIS = 0x8130;
+ public static final int GL_PACK_SWAP_BYTES = 0x0D00;
+ public static final int GL_PASS_THROUGH_TOKEN = 0x0700;
+ public static final int GL_PERSPECTIVE_CORRECTION_HINT = 0x0C50;
+ public static final int GL_PERTURB_EXT = 0x85AE;
+ public static final int GL_PHONG_HINT_WIN = 0x80EB;
+ public static final int GL_PHONG_WIN = 0x80EA;
+ public static final int GL_PIXEL_CUBIC_WEIGHT_EXT = 0x8333;
+ public static final int GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS = 0x1002;
+ public static final int GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS = 0x1001;
+ public static final int GL_PIXEL_GROUP_COLOR_SGIS = 0x1003;
+ public static final int GL_PIXEL_MAG_FILTER_EXT = 0x8331;
+ public static final int GL_PIXEL_MAP_A_TO_A = 0x0C79;
+ public static final int GL_PIXEL_MAP_A_TO_A_SIZE = 0x0CB9;
+ public static final int GL_PIXEL_MAP_B_TO_B = 0x0C78;
+ public static final int GL_PIXEL_MAP_B_TO_B_SIZE = 0x0CB8;
+ public static final int GL_PIXEL_MAP_G_TO_G = 0x0C77;
+ public static final int GL_PIXEL_MAP_G_TO_G_SIZE = 0x0CB7;
+ public static final int GL_PIXEL_MAP_I_TO_A = 0x0C75;
+ public static final int GL_PIXEL_MAP_I_TO_A_SIZE = 0x0CB5;
+ public static final int GL_PIXEL_MAP_I_TO_B = 0x0C74;
+ public static final int GL_PIXEL_MAP_I_TO_B_SIZE = 0x0CB4;
+ public static final int GL_PIXEL_MAP_I_TO_G = 0x0C73;
+ public static final int GL_PIXEL_MAP_I_TO_G_SIZE = 0x0CB3;
+ public static final int GL_PIXEL_MAP_I_TO_I = 0x0C70;
+ public static final int GL_PIXEL_MAP_I_TO_I_SIZE = 0x0CB0;
+ public static final int GL_PIXEL_MAP_I_TO_R = 0x0C72;
+ public static final int GL_PIXEL_MAP_I_TO_R_SIZE = 0x0CB2;
+ public static final int GL_PIXEL_MAP_R_TO_R = 0x0C76;
+ public static final int GL_PIXEL_MAP_R_TO_R_SIZE = 0x0CB6;
+ public static final int GL_PIXEL_MAP_S_TO_S = 0x0C71;
+ public static final int GL_PIXEL_MAP_S_TO_S_SIZE = 0x0CB1;
+ public static final int GL_PIXEL_MIN_FILTER_EXT = 0x8332;
+ public static final int GL_PIXEL_MODE_BIT = 0x00000020;
+ public static final int GL_PIXEL_TEXTURE_SGIS = 0x1000;
+ public static final int GL_PIXEL_TEX_GEN_MODE_SGIX = 0x832B;
+ public static final int GL_PIXEL_TEX_GEN_SGIX = 0x8139;
+ public static final int GL_PIXEL_TRANSFORM_2D_EXT = 0x8330;
+ public static final int GL_PIXEL_TRANSFORM_2D_MATRIX_EXT = 0x8338;
+ public static final int GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT = 0x8336;
+ public static final int GL_POINT = 0x1B00;
+ public static final int GL_POINTS = 0x0000;
+ public static final int GL_POINT_BIT = 0x00000002;
+ public static final int GL_POINT_FADE_THRESHOLD_SIZE_EXT = 0x8128;
+ public static final int GL_POINT_SIZE = 0x0B11;
+ public static final int GL_POINT_SIZE_GRANULARITY = 0x0B13;
+ public static final int GL_POINT_SIZE_MAX_EXT = 0x8127;
+ public static final int GL_POINT_SIZE_MIN_EXT = 0x8126;
+ public static final int GL_POINT_SIZE_RANGE = 0x0B12;
+ public static final int GL_POINT_SMOOTH = 0x0B10;
+ public static final int GL_POINT_SMOOTH_HINT = 0x0C51;
+ public static final int GL_POINT_TOKEN = 0x0701;
+ public static final int GL_POLYGON = 0x0009;
+ public static final int GL_POLYGON_BIT = 0x00000008;
+ public static final int GL_POLYGON_MODE = 0x0B40;
+ public static final int GL_POLYGON_OFFSET_BIAS_EXT = 0x8039;
+ public static final int GL_POLYGON_OFFSET_EXT = 0x8037;
+ public static final int GL_POLYGON_OFFSET_FACTOR = 0x8038;
+ public static final int GL_POLYGON_OFFSET_FACTOR_EXT = 0x8038;
+ public static final int GL_POLYGON_OFFSET_FILL = 0x8037;
+ public static final int GL_POLYGON_OFFSET_LINE = 0x2A02;
+ public static final int GL_POLYGON_OFFSET_POINT = 0x2A01;
+ public static final int GL_POLYGON_OFFSET_UNITS = 0x2A00;
+ public static final int GL_POLYGON_SMOOTH = 0x0B41;
+ public static final int GL_POLYGON_SMOOTH_HINT = 0x0C53;
+ public static final int GL_POLYGON_STIPPLE = 0x0B42;
+ public static final int GL_POLYGON_STIPPLE_BIT = 0x00000010;
+ public static final int GL_POLYGON_TOKEN = 0x0703;
+ public static final int GL_POSITION = 0x1203;
+ public static final int GL_POST_COLOR_MATRIX_ALPHA_BIAS = 0x80BB;
+ public static final int GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI = 0x80BB;
+ public static final int GL_POST_COLOR_MATRIX_ALPHA_SCALE = 0x80B7;
+ public static final int GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI = 0x80B7;
+ public static final int GL_POST_COLOR_MATRIX_BLUE_BIAS = 0x80BA;
+ public static final int GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI = 0x80BA;
+ public static final int GL_POST_COLOR_MATRIX_BLUE_SCALE = 0x80B6;
+ public static final int GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI = 0x80B6;
+ public static final int GL_POST_COLOR_MATRIX_COLOR_TABLE = 0x80D2;
+ public static final int GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI = 0x80D2;
+ public static final int GL_POST_COLOR_MATRIX_GREEN_BIAS = 0x80B9;
+ public static final int GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI = 0x80B9;
+ public static final int GL_POST_COLOR_MATRIX_GREEN_SCALE = 0x80B5;
+ public static final int GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI = 0x80B5;
+ public static final int GL_POST_COLOR_MATRIX_RED_BIAS = 0x80B8;
+ public static final int GL_POST_COLOR_MATRIX_RED_BIAS_SGI = 0x80B8;
+ public static final int GL_POST_COLOR_MATRIX_RED_SCALE = 0x80B4;
+ public static final int GL_POST_COLOR_MATRIX_RED_SCALE_SGI = 0x80B4;
+ public static final int GL_POST_CONVOLUTION_ALPHA_BIAS = 0x8023;
+ public static final int GL_POST_CONVOLUTION_ALPHA_BIAS_EXT = 0x8023;
+ public static final int GL_POST_CONVOLUTION_ALPHA_SCALE = 0x801F;
+ public static final int GL_POST_CONVOLUTION_ALPHA_SCALE_EXT = 0x801F;
+ public static final int GL_POST_CONVOLUTION_BLUE_BIAS = 0x8022;
+ public static final int GL_POST_CONVOLUTION_BLUE_BIAS_EXT = 0x8022;
+ public static final int GL_POST_CONVOLUTION_BLUE_SCALE = 0x801E;
+ public static final int GL_POST_CONVOLUTION_BLUE_SCALE_EXT = 0x801E;
+ public static final int GL_POST_CONVOLUTION_COLOR_TABLE = 0x80D1;
+ public static final int GL_POST_CONVOLUTION_COLOR_TABLE_SGI = 0x80D1;
+ public static final int GL_POST_CONVOLUTION_GREEN_BIAS = 0x8021;
+ public static final int GL_POST_CONVOLUTION_GREEN_BIAS_EXT = 0x8021;
+ public static final int GL_POST_CONVOLUTION_GREEN_SCALE = 0x801D;
+ public static final int GL_POST_CONVOLUTION_GREEN_SCALE_EXT = 0x801D;
+ public static final int GL_POST_CONVOLUTION_RED_BIAS = 0x8020;
+ public static final int GL_POST_CONVOLUTION_RED_BIAS_EXT = 0x8020;
+ public static final int GL_POST_CONVOLUTION_RED_SCALE = 0x801C;
+ public static final int GL_POST_CONVOLUTION_RED_SCALE_EXT = 0x801C;
+ public static final int GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX = 0x817B;
+ public static final int GL_POST_TEXTURE_FILTER_BIAS_SGIX = 0x8179;
+ public static final int GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX = 0x817C;
+ public static final int GL_POST_TEXTURE_FILTER_SCALE_SGIX = 0x817A;
+ public static final int GL_PREFER_DOUBLEBUFFER_HINT_PGI = 107000;
+ public static final int GL_PREVIOUS_EXT = 0x8578;
+ public static final int GL_PRIMARY_COLOR_EXT = 0x8577;
+ public static final int GL_PRIMARY_COLOR_NV = 0x852C;
+ public static final int GL_PROJECTION = 0x1701;
+ public static final int GL_PROJECTION_MATRIX = 0x0BA7;
+ public static final int GL_PROJECTION_STACK_DEPTH = 0x0BA4;
+ public static final int GL_PROXY_COLOR_TABLE = 0x80D3;
+ public static final int GL_PROXY_COLOR_TABLE_SGI = 0x80D3;
+ public static final int GL_PROXY_HISTOGRAM = 0x8025;
+ public static final int GL_PROXY_HISTOGRAM_EXT = 0x8025;
+ public static final int GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE = 0x80D5;
+ public static final int GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI = 0x80D5;
+ public static final int GL_PROXY_POST_CONVOLUTION_COLOR_TABLE = 0x80D4;
+ public static final int GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI = 0x80D4;
+ public static final int GL_PROXY_TEXTURE_1D = 0x8063;
+ public static final int GL_PROXY_TEXTURE_1D_EXT = 0x8063;
+ public static final int GL_PROXY_TEXTURE_2D = 0x8064;
+ public static final int GL_PROXY_TEXTURE_2D_EXT = 0x8064;
+ public static final int GL_PROXY_TEXTURE_3D = 0x8070;
+ public static final int GL_PROXY_TEXTURE_3D_EXT = 0x8070;
+ public static final int GL_PROXY_TEXTURE_4D_SGIS = 0x8135;
+ public static final int GL_PROXY_TEXTURE_COLOR_TABLE_SGI = 0x80BD;
+ public static final int GL_PROXY_TEXTURE_CUBE_MAP_EXT = 0x851B;
+ public static final int GL_Q = 0x2003;
+ public static final int GL_QUADRATIC_ATTENUATION = 0x1209;
+ public static final int GL_QUADS = 0x0007;
+ public static final int GL_QUAD_ALPHA4_SGIS = 0x811E;
+ public static final int GL_QUAD_ALPHA8_SGIS = 0x811F;
+ public static final int GL_QUAD_INTENSITY4_SGIS = 0x8122;
+ public static final int GL_QUAD_INTENSITY8_SGIS = 0x8123;
+ public static final int GL_QUAD_LUMINANCE4_SGIS0 = 0x8120;
+ public static final int GL_QUAD_LUMINANCE8_SGIS = 0x8121;
+ public static final int GL_QUAD_STRIP = 0x0008;
+ public static final int GL_QUAD_TEXTURE_SELECT_SGIS = 0x8125;
+ public static final int GL_R = 0x2002;
+ public static final int GL_R1UI_C3F_V3F_SUN = 0x85C6;
+ public static final int GL_R1UI_C4F_N3F_V3F_SUN = 0x85C8;
+ public static final int GL_R1UI_C4UB_V3F_SUN = 0x85C5;
+ public static final int GL_R1UI_N3F_V3F_SUN = 0x85C7;
+ public static final int GL_R1UI_T2F_C4F_N3F_V3F_SUN = 0x85CB;
+ public static final int GL_R1UI_T2F_N3F_V3F_SUN = 0x85CA;
+ public static final int GL_R1UI_T2F_V3F_SUN = 0x85C9;
+ public static final int GL_R1UI_V3F_SUN = 0x85C4;
+ public static final int GL_R3_G3_B2 = 0x2A10;
+ public static final int GL_READ_BUFFER = 0x0C02;
+ public static final int GL_RECLAIM_MEMORY_HINT_PGI = 107006;
+ public static final int GL_RED = 0x1903;
+ public static final int GL_REDUCE = 0x8016;
+ public static final int GL_REDUCE_EXT = 0x8016;
+ public static final int GL_RED_BIAS = 0x0D15;
+ public static final int GL_RED_BITS = 0x0D52;
+ public static final int GL_RED_MAX_CLAMP_INGR = 0x8564;
+ public static final int GL_RED_MIN_CLAMP_INGR = 0x8560;
+ public static final int GL_RED_SCALE = 0x0D14;
+ public static final int GL_REFERENCE_PLANE_EQUATION_SGIX = 0x817E;
+ public static final int GL_REFERENCE_PLANE_SGIX = 0x817D;
+ public static final int GL_REFLECTION_MAP_EXT = 0x8512;
+ public static final int GL_REFLECTION_MAP_NV = 0x8512;
+ public static final int GL_REGISTER_COMBINERS_NV = 0x8522;
+ public static final int GL_RENDER = 0x1C00;
+ public static final int GL_RENDERER = 0x1F01;
+ public static final int GL_RENDER_MODE = 0x0C40;
+ public static final int GL_REPEAT = 0x2901;
+ public static final int GL_REPLACE = 0x1E01;
+ public static final int GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN = 0x85C3;
+ public static final int GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN = 0x85C2;
+ public static final int GL_REPLACEMENT_CODE_ARRAY_SUN = 0x85C0;
+ public static final int GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN = 0x85C1;
+ public static final int GL_REPLACEMENT_CODE_SUN = 0x81D8;
+ public static final int GL_REPLACE_EXT = 0x8062;
+ public static final int GL_REPLACE_MIDDLE_SUN = 0x02;
+ public static final int GL_REPLACE_OLDEST_SUN = 0x03;
+ public static final int GL_REPLICATE_BORDER = 0x8153;
+ public static final int GL_RESCALE_NORMAL = 0x803A;
+ public static final int GL_RESCALE_NORMAL_EXT = 0x803A;
+ public static final int GL_RESTART_SUN = 0x01;
+ public static final int GL_RETURN = 0x0102;
+ public static final int GL_RGB = 0x1907;
+ public static final int GL_RGB10 = 0x8052;
+ public static final int GL_RGB10_A2 = 0x8059;
+ public static final int GL_RGB10_A2_EXT = 0x8059;
+ public static final int GL_RGB10_EXT = 0x8052;
+ public static final int GL_RGB12 = 0x8053;
+ public static final int GL_RGB12_EXT = 0x8053;
+ public static final int GL_RGB16 = 0x8054;
+ public static final int GL_RGB16_EXT = 0x8054;
+ public static final int GL_RGB2_EXT = 0x804E;
+ public static final int GL_RGB4 = 0x804F;
+ public static final int GL_RGB4_EXT = 0x804F;
+ public static final int GL_RGB5 = 0x8050;
+ public static final int GL_RGB5_A1 = 0x8057;
+ public static final int GL_RGB5_A1_EXT = 0x8057;
+ public static final int GL_RGB5_EXT = 0x8050;
+ public static final int GL_RGB8 = 0x8051;
+ public static final int GL_RGB8_EXT = 0x8051;
+ public static final int GL_RGBA = 0x1908;
+ public static final int GL_RGBA12 = 0x805A;
+ public static final int GL_RGBA12_EXT = 0x805A;
+ public static final int GL_RGBA16 = 0x805B;
+ public static final int GL_RGBA16_EXT = 0x805B;
+ public static final int GL_RGBA2 = 0x8055;
+ public static final int GL_RGBA2_EXT = 0x8055;
+ public static final int GL_RGBA4 = 0x8056;
+ public static final int GL_RGBA4_EXT = 0x8056;
+ public static final int GL_RGBA8 = 0x8058;
+ public static final int GL_RGBA8_EXT = 0x8058;
+ public static final int GL_RGBA_MODE = 0x0C31;
+ public static final int GL_RGB_SCALE_EXT = 0x8573;
+ public static final int GL_RIGHT = 0x0407;
+ public static final int GL_S = 0x2000;
+ public static final int GL_SAMPLES_ARB = 0x80A9;
+ public static final int GL_SAMPLES_SGIS = 0x80A9;
+ public static final int GL_SAMPLE_ALPHA_TO_COVERAGE_ARB = 0x809E;
+ public static final int GL_SAMPLE_ALPHA_TO_MASK_SGIS = 0x809E;
+ public static final int GL_SAMPLE_ALPHA_TO_ONE_ARB = 0x809F;
+ public static final int GL_SAMPLE_ALPHA_TO_ONE_SGIS = 0x809F;
+ public static final int GL_SAMPLE_BUFFERS_ARB = 0x80A8;
+ public static final int GL_SAMPLE_BUFFERS_SGIS = 0x80A8;
+ public static final int GL_SAMPLE_COVERAGE_ARB = 0x80A0;
+ public static final int GL_SAMPLE_COVERAGE_INVERT_ARB = 0x80AB;
+ public static final int GL_SAMPLE_COVERAGE_VALUE_ARB = 0x80AA;
+ public static final int GL_SAMPLE_MASK_INVERT_SGIS = 0x80AB;
+ public static final int GL_SAMPLE_MASK_SGIS = 0x80A0;
+ public static final int GL_SAMPLE_MASK_VALUE_SGIS = 0x80AA;
+ public static final int GL_SAMPLE_MAX_PASSES_ARB = 0x84E7;
+ public static final int GL_SAMPLE_PASS_ARB = 0x84E8;
+ public static final int GL_SAMPLE_PATTERN_SGIS = 0x80AC;
+ public static final int GL_SCALE_BY_FOUR_NV = 0x853F;
+ public static final int GL_SCALE_BY_ONE_HALF_NV = 0x8540;
+ public static final int GL_SCALE_BY_TWO_NV = 0x853E;
+ public static final int GL_SCISSOR_BIT = 0x00080000;
+ public static final int GL_SCISSOR_BOX = 0x0C10;
+ public static final int GL_SCISSOR_TEST = 0x0C11;
+ public static final int GL_SCREEN_COORDINATES_REND = 0x8490;
+ public static final int GL_SECONDARY_COLOR_ARRAY_EXT = 0x845E;
+ public static final int GL_SECONDARY_COLOR_ARRAY_POINTER_EXT = 0x845D;
+ public static final int GL_SECONDARY_COLOR_ARRAY_SIZE_EXT = 0x845A;
+ public static final int GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT = 0x845C;
+ public static final int GL_SECONDARY_COLOR_ARRAY_TYPE_EXT = 0x845B;
+ public static final int GL_SECONDARY_COLOR_NV = 0x852D;
+ public static final int GL_SELECT = 0x1C02;
+ public static final int GL_SELECTION_BUFFER_POINTER = 0x0DF3;
+ public static final int GL_SELECTION_BUFFER_SIZE = 0x0DF4;
+ public static final int GL_SEPARABLE_2D = 0x8012;
+ public static final int GL_SEPARABLE_2D_EXT = 0x8012;
+ public static final int GL_SEPARATE_SPECULAR_COLOR = 0x81FA;
+ public static final int GL_SEPARATE_SPECULAR_COLOR_EXT = 0x81FA;
+ public static final int GL_SET = 0x150F;
+ public static final int GL_SHADE_MODEL = 0x0B54;
+ public static final int GL_SHADOW_ATTENUATION_EXT = 0x834E;
+ public static final int GL_SHARED_TEXTURE_PALETTE_EXT = 0x81FB;
+ public static final int GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS = 0x80B0;
+ public static final int GL_SHININESS = 0x1601;
+ public static final int GL_SHORT = 0x1402;
+ public static final int GL_SIGNED_IDENTITY_NV = 0x853C;
+ public static final int GL_SIGNED_NEGATE_NV = 0x853D;
+ public static final int GL_SINGLE_COLOR = 0x81F9;
+ public static final int GL_SINGLE_COLOR_EXT = 0x81F9;
+ public static final int GL_SMOOTH = 0x1D01;
+ public static final int GL_SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23;
+ public static final int GL_SMOOTH_LINE_WIDTH_RANGE = 0x0B22;
+ public static final int GL_SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13;
+ public static final int GL_SMOOTH_POINT_SIZE_RANGE = 0x0B12;
+ public static final int GL_SOURCE0_ALPHA_EXT = 0x8588;
+ public static final int GL_SOURCE0_RGB_EXT = 0x8580;
+ public static final int GL_SOURCE1_ALPHA_EXT = 0x8589;
+ public static final int GL_SOURCE1_RGB_EXT = 0x8581;
+ public static final int GL_SOURCE2_ALPHA_EXT = 0x858A;
+ public static final int GL_SOURCE2_RGB_EXT = 0x8582;
+ public static final int GL_SOURCE3_ALPHA_NV = 0x858B;
+ public static final int GL_SOURCE3_RGB_NV = 0x8583;
+ public static final int GL_SPARE0_NV = 0x852E;
+ public static final int GL_SPARE0_PLUS_SECONDARY_COLOR_NV = 0x8532;
+ public static final int GL_SPARE1_NV = 0x852F;
+ public static final int GL_SPECULAR = 0x1202;
+ public static final int GL_SPHERE_MAP = 0x2402;
+ public static final int GL_SPOT_CUTOFF = 0x1206;
+ public static final int GL_SPOT_DIRECTION = 0x1204;
+ public static final int GL_SPOT_EXPONENT = 0x1205;
+ public static final int GL_SPRITE_AXIAL_SGIX = 0x814C;
+ public static final int GL_SPRITE_AXIS_SGIX = 0x814A;
+ public static final int GL_SPRITE_EYE_ALIGNED_SGIX = 0x814E;
+ public static final int GL_SPRITE_MODE_SGIX = 0x8149;
+ public static final int GL_SPRITE_OBJECT_ALIGNED_SGIX = 0x814D;
+ public static final int GL_SPRITE_SGIX = 0x8148;
+ public static final int GL_SPRITE_TRANSLATION_SGIX = 0x814B;
+ public static final int GL_SRC_ALPHA = 0x0302;
+ public static final int GL_SRC_ALPHA_SATURATE = 0x0308;
+ public static final int GL_SRC_COLOR = 0x0300;
+ public static final int GL_STACK_OVERFLOW = 0x0503;
+ public static final int GL_STACK_UNDERFLOW = 0x0504;
+ public static final int GL_STATIC_VERTEX_ARRAY_IBM = 0x19295;
+ public static final int GL_STENCIL = 0x1802;
+ public static final int GL_STENCIL_BITS = 0x0D57;
+ public static final int GL_STENCIL_BUFFER_BIT = 0x00000400;
+ public static final int GL_STENCIL_CLEAR_VALUE = 0x0B91;
+ public static final int GL_STENCIL_FAIL = 0x0B94;
+ public static final int GL_STENCIL_FUNC = 0x0B92;
+ public static final int GL_STENCIL_INDEX = 0x1901;
+ public static final int GL_STENCIL_PASS_DEPTH_FAIL = 0x0B95;
+ public static final int GL_STENCIL_PASS_DEPTH_PASS = 0x0B96;
+ public static final int GL_STENCIL_REF = 0x0B97;
+ public static final int GL_STENCIL_TEST = 0x0B90;
+ public static final int GL_STENCIL_VALUE_MASK = 0x0B93;
+ public static final int GL_STENCIL_WRITEMASK = 0x0B98;
+ public static final int GL_STEREO = 0x0C33;
+ public static final int GL_STRICT_DEPTHFUNC_HINT_PGI = 107030;
+ public static final int GL_STRICT_LIGHTING_HINT_PGI = 107031;
+ public static final int GL_STRICT_SCISSOR_HINT_PGI = 107032;
+ public static final int GL_SUBPIXEL_BITS = 0x0D50;
+ public static final int GL_T = 0x2001;
+ public static final int GL_T2F_C3F_V3F = 0x2A2A;
+ public static final int GL_T2F_C4F_N3F_V3F = 0x2A2C;
+ public static final int GL_T2F_C4UB_V3F = 0x2A29;
+ public static final int GL_T2F_N3F_V3F = 0x2A2B;
+ public static final int GL_T2F_V3F = 0x2A27;
+ public static final int GL_T4F_C4F_N3F_V4F = 0x2A2D;
+ public static final int GL_T4F_V4F = 0x2A28;
+ public static final int GL_TABLE_TOO_LARGE = 0x8031;
+ public static final int GL_TABLE_TOO_LARGE_EXT = 0x8031;
+ public static final int GL_TANGENT_ARRAY_EXT = 0x8439;
+ public static final int GL_TANGENT_ARRAY_POINTER_EXT = 0x8442;
+ public static final int GL_TANGENT_ARRAY_STRIDE_EXT = 0x843F;
+ public static final int GL_TANGENT_ARRAY_TYPE_EXT = 0x843E;
+ public static final int GL_TEXTURE = 0x1702;
+ public static final int GL_TEXTURE0_ARB = 0x84C0;
+ public static final int GL_TEXTURE10_ARB = 0x84CA;
+ public static final int GL_TEXTURE11_ARB = 0x84CB;
+ public static final int GL_TEXTURE12_ARB = 0x84CC;
+ public static final int GL_TEXTURE13_ARB = 0x84CD;
+ public static final int GL_TEXTURE14_ARB = 0x84CE;
+ public static final int GL_TEXTURE15_ARB = 0x84CF;
+ public static final int GL_TEXTURE16_ARB = 0x84D0;
+ public static final int GL_TEXTURE17_ARB = 0x84D1;
+ public static final int GL_TEXTURE18_ARB = 0x84D2;
+ public static final int GL_TEXTURE19_ARB = 0x84D3;
+ public static final int GL_TEXTURE1_ARB = 0x84C1;
+ public static final int GL_TEXTURE20_ARB = 0x84D4;
+ public static final int GL_TEXTURE21_ARB = 0x84D5;
+ public static final int GL_TEXTURE22_ARB = 0x84D6;
+ public static final int GL_TEXTURE23_ARB = 0x84D7;
+ public static final int GL_TEXTURE24_ARB = 0x84D8;
+ public static final int GL_TEXTURE25_ARB = 0x84D9;
+ public static final int GL_TEXTURE26_ARB = 0x84DA;
+ public static final int GL_TEXTURE27_ARB = 0x84DB;
+ public static final int GL_TEXTURE28_ARB = 0x84DC;
+ public static final int GL_TEXTURE29_ARB = 0x84DD;
+ public static final int GL_TEXTURE2_ARB = 0x84C2;
+ public static final int GL_TEXTURE30_ARB = 0x84DE;
+ public static final int GL_TEXTURE31_ARB = 0x84DF;
+ public static final int GL_TEXTURE3_ARB = 0x84C3;
+ public static final int GL_TEXTURE4_ARB = 0x84C4;
+ public static final int GL_TEXTURE5_ARB = 0x84C5;
+ public static final int GL_TEXTURE6_ARB = 0x84C6;
+ public static final int GL_TEXTURE7_ARB = 0x84C7;
+ public static final int GL_TEXTURE8_ARB = 0x84C8;
+ public static final int GL_TEXTURE9_ARB = 0x84C9;
+ public static final int GL_TEXTURE_1D = 0x0DE0;
+ public static final int GL_TEXTURE_1D_BINDING_EXT = 0x8068;
+ public static final int GL_TEXTURE_2D = 0x0DE1;
+ public static final int GL_TEXTURE_2D_BINDING_EXT = 0x8069;
+ public static final int GL_TEXTURE_3D = 0x806F;
+ public static final int GL_TEXTURE_3D_BINDING_EXT = 0x806A;
+ public static final int GL_TEXTURE_3D_EXT = 0x806F;
+ public static final int GL_TEXTURE_4DSIZE_SGIS = 0x8136;
+ public static final int GL_TEXTURE_4D_BINDING_SGIS = 0x814F;
+ public static final int GL_TEXTURE_4D_SGIS = 0x8134;
+ public static final int GL_TEXTURE_ALPHA_SIZE = 0x805F;
+ public static final int GL_TEXTURE_ALPHA_SIZE_EXT = 0x805F;
+ public static final int GL_TEXTURE_APPLICATION_MODE_EXT = 0x834F;
+ public static final int GL_TEXTURE_BASE_LEVEL = 0x813C;
+ public static final int GL_TEXTURE_BASE_LEVEL_SGIS = 0x813C;
+ public static final int GL_TEXTURE_BINDING_1D = 0x8068;
+ public static final int GL_TEXTURE_BINDING_2D = 0x8069;
+ public static final int GL_TEXTURE_BINDING_3D = 0x806A;
+ public static final int GL_TEXTURE_BINDING_CUBE_MAP_EXT = 0x8514;
+ public static final int GL_TEXTURE_BIT = 0x00040000;
+ public static final int GL_TEXTURE_BLUE_SIZE = 0x805E;
+ public static final int GL_TEXTURE_BLUE_SIZE_EXT = 0x805E;
+ public static final int GL_TEXTURE_BORDER = 0x1005;
+ public static final int GL_TEXTURE_BORDER_COLOR = 0x1004;
+ public static final int GL_TEXTURE_CLIPMAP_CENTER_SGIX = 0x8171;
+ public static final int GL_TEXTURE_CLIPMAP_DEPTH_SGIX = 0x8176;
+ public static final int GL_TEXTURE_CLIPMAP_FRAME_SGIX = 0x8172;
+ public static final int GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX = 0x8175;
+ public static final int GL_TEXTURE_CLIPMAP_OFFSET_SGIX = 0x8173;
+ public static final int GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX = 0x8174;
+ public static final int GL_TEXTURE_COMPARE_OPERATOR_SGIX = 0x819B;
+ public static final int GL_TEXTURE_COMPARE_SGIX = 0x819A;
+ public static final int GL_TEXTURE_COMPONENTS = 0x1003;
+ public static final int GL_TEXTURE_COMPRESSED_ARB = 0x86A1;
+ public static final int GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB = 0x86A0;
+ public static final int GL_TEXTURE_COMPRESSION_HINT_ARB = 0x84EF;
+ public static final int GL_TEXTURE_CONSTANT_DATA_SUNX = 0x81D6;
+ public static final int GL_TEXTURE_COORD_ARRAY = 0x8078;
+ public static final int GL_TEXTURE_COORD_ARRAY_COUNT_EXT = 0x808B;
+ public static final int GL_TEXTURE_COORD_ARRAY_EXT = 0x8078;
+ public static final int GL_TEXTURE_COORD_ARRAY_POINTER = 0x8092;
+ public static final int GL_TEXTURE_COORD_ARRAY_POINTER_EXT = 0x8092;
+ public static final int GL_TEXTURE_COORD_ARRAY_SIZE = 0x8088;
+ public static final int GL_TEXTURE_COORD_ARRAY_SIZE_EXT = 0x8088;
+ public static final int GL_TEXTURE_COORD_ARRAY_STRIDE = 0x808A;
+ public static final int GL_TEXTURE_COORD_ARRAY_STRIDE_EXT = 0x808A;
+ public static final int GL_TEXTURE_COORD_ARRAY_TYPE = 0x8089;
+ public static final int GL_TEXTURE_COORD_ARRAY_TYPE_EXT = 0x8089;
+ public static final int GL_TEXTURE_CUBE_MAP_EXT = 0x8513;
+ public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT = 0x8516;
+ public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT = 0x8518;
+ public static final int GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT = 0x851A;
+ public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT = 0x8515;
+ public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT = 0x8517;
+ public static final int GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT = 0x8519;
+ public static final int GL_TEXTURE_DEPTH = 0x8071;
+ public static final int GL_TEXTURE_DEPTH_EXT = 0x8071;
+ public static final int GL_TEXTURE_ENV = 0x2300;
+ public static final int GL_TEXTURE_ENV_BIAS_SGIX = 0x80BE;
+ public static final int GL_TEXTURE_ENV_COLOR = 0x2201;
+ public static final int GL_TEXTURE_ENV_MODE = 0x2200;
+ public static final int GL_TEXTURE_FILTER4_SIZE_SGIS = 0x8147;
+ public static final int GL_TEXTURE_FILTER_CONTROL_EXT = 0x8500;
+ public static final int GL_TEXTURE_GEN_MODE = 0x2500;
+ public static final int GL_TEXTURE_GEN_Q = 0x0C63;
+ public static final int GL_TEXTURE_GEN_R = 0x0C62;
+ public static final int GL_TEXTURE_GEN_S = 0x0C60;
+ public static final int GL_TEXTURE_GEN_T = 0x0C61;
+ public static final int GL_TEXTURE_GEQUAL_R_SGIX = 0x819D;
+ public static final int GL_TEXTURE_GREEN_SIZE = 0x805D;
+ public static final int GL_TEXTURE_GREEN_SIZE_EXT = 0x805D;
+ public static final int GL_TEXTURE_HEIGHT = 0x1001;
+ public static final int GL_TEXTURE_INDEX_SIZE_EXT = 0x80ED;
+ public static final int GL_TEXTURE_INTENSITY_SIZE = 0x8061;
+ public static final int GL_TEXTURE_INTENSITY_SIZE_EXT = 0x8061;
+ public static final int GL_TEXTURE_INTERNAL_FORMAT = 0x1003;
+ public static final int GL_TEXTURE_LEQUAL_R_SGIX = 0x819C;
+ public static final int GL_TEXTURE_LIGHT_EXT = 0x8350;
+ public static final int GL_TEXTURE_LOD_BIAS_EXT = 0x8501;
+ public static final int GL_TEXTURE_LOD_BIAS_R_SGIX = 0x8190;
+ public static final int GL_TEXTURE_LOD_BIAS_S_SGIX = 0x818E;
+ public static final int GL_TEXTURE_LOD_BIAS_T_SGIX = 0x818F;
+ public static final int GL_TEXTURE_LUMINANCE_SIZE = 0x8060;
+ public static final int GL_TEXTURE_LUMINANCE_SIZE_EXT = 0x8060;
+ public static final int GL_TEXTURE_MAG_FILTER = 0x2800;
+ public static final int GL_TEXTURE_MATERIAL_FACE_EXT = 0x8351;
+ public static final int GL_TEXTURE_MATERIAL_PARAMETER_EXT = 0x8352;
+ public static final int GL_TEXTURE_MATRIX = 0x0BA8;
+ public static final int GL_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
+ public static final int GL_TEXTURE_MAX_LEVEL = 0x813D;
+ public static final int GL_TEXTURE_MAX_LEVEL_SGIS = 0x813D;
+ public static final int GL_TEXTURE_MAX_LOD = 0x813B;
+ public static final int GL_TEXTURE_MAX_LOD_SGIS = 0x813B;
+ public static final int GL_TEXTURE_MIN_FILTER = 0x2801;
+ public static final int GL_TEXTURE_MIN_LOD = 0x813A;
+ public static final int GL_TEXTURE_MIN_LOD_SGIS = 0x813A;
+ public static final int GL_TEXTURE_NORMAL_EXT = 0x85AF;
+ public static final int GL_TEXTURE_PRIORITY = 0x8066;
+ public static final int GL_TEXTURE_PRIORITY_EXT = 0x8066;
+ public static final int GL_TEXTURE_RED_SIZE = 0x805C;
+ public static final int GL_TEXTURE_RED_SIZE_EXT = 0x805C;
+ public static final int GL_TEXTURE_RESIDENT = 0x8067;
+ public static final int GL_TEXTURE_RESIDENT_EXT = 0x8067;
+ public static final int GL_TEXTURE_STACK_DEPTH = 0x0BA5;
+ public static final int GL_TEXTURE_WIDTH = 0x1000;
+ public static final int GL_TEXTURE_WRAP_Q_SGIS = 0x8137;
+ public static final int GL_TEXTURE_WRAP_R = 0x8072;
+ public static final int GL_TEXTURE_WRAP_R_EXT = 0x8072;
+ public static final int GL_TEXTURE_WRAP_S = 0x2802;
+ public static final int GL_TEXTURE_WRAP_T = 0x2803;
+ public static final int GL_TRANSFORM_BIT = 0x00001000;
+ public static final int GL_TRANSFORM_HINT_APPLE = 0x85B1;
+ public static final int GL_TRANSPOSE_COLOR_MATRIX_ARB = 0x84E6;
+ public static final int GL_TRANSPOSE_MODELVIEW_MATRIX_ARB = 0x84E3;
+ public static final int GL_TRANSPOSE_PROJECTION_MATRIX_ARB = 0x84E4;
+ public static final int GL_TRANSPOSE_TEXTURE_MATRIX_ARB = 0x84E5;
+ public static final int GL_TRIANGLES = 0x0004;
+ public static final int GL_TRIANGLE_FAN = 0x0006;
+ public static final int GL_TRIANGLE_LIST_SUN = 0x81D7;
+ public static final int GL_TRIANGLE_STRIP = 0x0005;
+ public static final int GL_UNPACK_ALIGNMENT = 0x0CF5;
+ public static final int GL_UNPACK_CMYK_HINT_EXT = 0x800F;
+ public static final int GL_UNPACK_CONSTANT_DATA_SUNX = 0x81D5;
+ public static final int GL_UNPACK_IMAGE_DEPTH_SGIS = 0x8133;
+ public static final int GL_UNPACK_IMAGE_HEIGHT = 0x806E;
+ public static final int GL_UNPACK_IMAGE_HEIGHT_EXT = 0x806E;
+ public static final int GL_UNPACK_LSB_FIRST = 0x0CF1;
+ public static final int GL_UNPACK_ROW_LENGTH = 0x0CF2;
+ public static final int GL_UNPACK_SKIP_IMAGES = 0x806D;
+ public static final int GL_UNPACK_SKIP_IMAGES_EXT = 0x806D;
+ public static final int GL_UNPACK_SKIP_PIXELS = 0x0CF4;
+ public static final int GL_UNPACK_SKIP_ROWS = 0x0CF3;
+ public static final int GL_UNPACK_SKIP_VOLUMES_SGIS = 0x8132;
+ public static final int GL_UNPACK_SWAP_BYTES = 0x0CF0;
+ public static final int GL_UNSIGNED_BYTE = 0x1401;
+ public static final int GL_UNSIGNED_BYTE_2_3_3_REV = 0x8362;
+ public static final int GL_UNSIGNED_BYTE_3_3_2 = 0x8032;
+ public static final int GL_UNSIGNED_BYTE_3_3_2_EXT = 0x8032;
+ public static final int GL_UNSIGNED_IDENTITY_NV = 0x8536;
+ public static final int GL_UNSIGNED_INT = 0x1405;
+ public static final int GL_UNSIGNED_INT_10_10_10_2 = 0x8036;
+ public static final int GL_UNSIGNED_INT_10_10_10_2_EXT = 0x8036;
+ public static final int GL_UNSIGNED_INT_2_10_10_10_REV = 0x8368;
+ public static final int GL_UNSIGNED_INT_8_8_8_8 = 0x8035;
+ public static final int GL_UNSIGNED_INT_8_8_8_8_EXT = 0x8035;
+ public static final int GL_UNSIGNED_INT_8_8_8_8_REV = 0x8367;
+ public static final int GL_UNSIGNED_INVERT_NV = 0x8537;
+ public static final int GL_UNSIGNED_SHORT = 0x1403;
+ public static final int GL_UNSIGNED_SHORT_1_5_5_5_REV = 0x8366;
+ public static final int GL_UNSIGNED_SHORT_4_4_4_4 = 0x8033;
+ public static final int GL_UNSIGNED_SHORT_4_4_4_4_EXT = 0x8033;
+ public static final int GL_UNSIGNED_SHORT_4_4_4_4_REV = 0x8365;
+ public static final int GL_UNSIGNED_SHORT_5_5_5_1 = 0x8034;
+ public static final int GL_UNSIGNED_SHORT_5_5_5_1_EXT = 0x8034;
+ public static final int GL_UNSIGNED_SHORT_5_6_5 = 0x8363;
+ public static final int GL_UNSIGNED_SHORT_5_6_5_REV = 0x8364;
+ public static final int GL_V2F = 0x2A20;
+ public static final int GL_V3F = 0x2A21;
+ public static final int GL_VARIABLE_A_NV = 0x8523;
+ public static final int GL_VARIABLE_B_NV = 0x8524;
+ public static final int GL_VARIABLE_C_NV = 0x8525;
+ public static final int GL_VARIABLE_D_NV = 0x8526;
+ public static final int GL_VARIABLE_E_NV = 0x8527;
+ public static final int GL_VARIABLE_F_NV = 0x8528;
+ public static final int GL_VARIABLE_G_NV = 0x8529;
+ public static final int GL_VATERIAL_SIDE_HINT_PGI = 107052;
+ public static final int GL_VAT_AMBIENT_AND_DIFFUSE_BIT_PGI = 0x00200000;
+ public static final int GL_VAT_AMBIENT_BIT_PGI = 0x00100000;
+ public static final int GL_VAT_COLOR_INDEXES_BIT_PGI = 0x01000000;
+ public static final int GL_VAT_DIFFUSE_BIT_PGI = 0x00400000;
+ public static final int GL_VAT_EMISSION_BIT_PGI = 0x00800000;
+ public static final int GL_VAT_SHININESS_BIT_PGI = 0x02000000;
+ public static final int GL_VAT_SPECULAR_BIT_PGI = 0x04000000;
+ public static final int GL_VAX_VERTEX_HINT_PGI = 107053;
+ public static final int GL_VDGEFLAG_BIT_PGI = 0x00040000;
+ public static final int GL_VENDOR = 0x1F00;
+ public static final int GL_VERSION = 0x1F02;
+ public static final int GL_VERTEX23_BIT_PGI = 0x00000004;
+ public static final int GL_VERTEX4_BIT_PGI = 0x00000008;
+ public static final int GL_VERTEX_ARRAY = 0x8074;
+ public static final int GL_VERTEX_ARRAY_COUNT_EXT = 0x807D;
+ public static final int GL_VERTEX_ARRAY_EXT = 0x8074;
+ public static final int GL_VERTEX_ARRAY_POINTER = 0x808E;
+ public static final int GL_VERTEX_ARRAY_POINTER_EXT = 0x808E;
+ public static final int GL_VERTEX_ARRAY_RANGE_LENGTH_NV = 0x851E;
+ public static final int GL_VERTEX_ARRAY_RANGE_NV = 0x851D;
+ public static final int GL_VERTEX_ARRAY_RANGE_POINTER_NV = 0x8521;
+ public static final int GL_VERTEX_ARRAY_RANGE_VALID_NV = 0x851F;
+ public static final int GL_VERTEX_ARRAY_SIZE = 0x807A;
+ public static final int GL_VERTEX_ARRAY_SIZE_EXT = 0x807A;
+ public static final int GL_VERTEX_ARRAY_STRIDE = 0x807C;
+ public static final int GL_VERTEX_ARRAY_STRIDE_EXT = 0x807C;
+ public static final int GL_VERTEX_ARRAY_TYPE = 0x807B;
+ public static final int GL_VERTEX_ARRAY_TYPE_EXT = 0x807B;
+ public static final int GL_VERTEX_CONSISTENT_HINT_PGI = 107051;
+ public static final int GL_VERTEX_DATA_HINT_PGI = 107050;
+ public static final int GL_VERTEX_WEIGHTING_EXT = 0x8509;
+ public static final int GL_VERTEX_WEIGHT_ARRAY_EXT = 0x850C;
+ public static final int GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT = 0x8510;
+ public static final int GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT = 0x850D;
+ public static final int GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT = 0x850F;
+ public static final int GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT = 0x850E;
+ public static final int GL_VEXCOORD1_BIT_PGI = 0x10000000;
+ public static final int GL_VEXCOORD2_BIT_PGI = 0x20000000;
+ public static final int GL_VEXCOORD3_BIT_PGI = 0x40000000;
+ public static final int GL_VEXCOORD4_BIT_PGI = 0x80000000;
+ public static final int GL_VIEWPORT = 0x0BA2;
+ public static final int GL_VIEWPORT_BIT = 0x00000800;
+ public static final int GL_VNDEX_BIT_PGI = 0x00080000;
+ public static final int GL_VOLOR3_BIT_PGI = 0x00010000;
+ public static final int GL_VOLOR4_BIT_PGI = 0x00020000;
+ public static final int GL_VORMAL_BIT_PGI = 0x08000000;
+ public static final int GL_WIDE_LINE_HINT_PGI = 107042;
+ public static final int GL_WRAP_BORDER_SUN = 0x81D4;
+ public static final int GL_XOR = 0x1506;
+ public static final int GL_YCRCB_422_SGIX = 0x81BB;
+ public static final int GL_YCRCB_444_SGIX = 0x81BC;
+ public static final int GL_ZERO = 0x0;
+ public static final int GL_ZOOM_X = 0x0D16;
+ public static final int GL_ZOOM_Y = 0x0D17;
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
+
+
+}
+
diff --git a/gl4java/GLFunc.java b/gl4java/GLFunc.java
new file mode 100644
index 0000000..e80d9da
--- /dev/null
+++ b/gl4java/GLFunc.java
@@ -0,0 +1,7438 @@
+/* WARNING ! WARNING *** THIS FILE IS GENERATED BY C2J !!!
+
+ DO NOT MAKE ANY CHANGES *** MAKE CHANGES IN THE SKELETON FILES !!!
+*/
+
+
+/**
+ * @(#) GLFunc.java
+ */
+
+
+package gl4java;
+
+/**
+ * The base interface for OpenGL native function mapping
+ *
+ * @version 2.00, 21. April 1999
+ * @author Sven Goethel
+ */
+public interface GLFunc
+ extends GLEnum
+{
+
+public String glGetString ( int name ) ;
+
+public String getNativeVendor ( ) ;
+public String getNativeVersion ( ) ;
+
+public String getClassVendor ( ) ;
+public String getClassVersion ( ) ;
+
+public static final String[] GL_PROC_NAMES = {
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: gl-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLFuncJauJNI !
+ */
+
+ "glClearIndex",
+ "glClearColor",
+ "glClear",
+ "glIndexMask",
+ "glColorMask",
+ "glAlphaFunc",
+ "glBlendFunc",
+ "glLogicOp",
+ "glCullFace",
+ "glFrontFace",
+ "glPointSize",
+ "glLineWidth",
+ "glLineStipple",
+ "glPolygonMode",
+ "glPolygonOffset",
+ "glPolygonStipple",
+ "glGetPolygonStipple",
+ "glEdgeFlag",
+ "glEdgeFlagv",
+ "glScissor",
+ "glClipPlane",
+ "glGetClipPlane",
+ "glDrawBuffer",
+ "glReadBuffer",
+ "glEnable",
+ "glDisable",
+ "glIsEnabled",
+ "glEnableClientState",
+ "glDisableClientState",
+ "glGetBooleanv",
+ "glGetDoublev",
+ "glGetFloatv",
+ "glGetIntegerv",
+ "glPushAttrib",
+ "glPopAttrib",
+ "glPushClientAttrib",
+ "glPopClientAttrib",
+ "glRenderMode",
+ "glGetError",
+ "glFinish",
+ "glFlush",
+ "glHint",
+ "glClearDepth",
+ "glDepthFunc",
+ "glDepthMask",
+ "glDepthRange",
+ "glClearAccum",
+ "glAccum",
+ "glMatrixMode",
+ "glOrtho",
+ "glFrustum",
+ "glViewport",
+ "glPushMatrix",
+ "glPopMatrix",
+ "glLoadIdentity",
+ "glLoadMatrixd",
+ "glLoadMatrixf",
+ "glMultMatrixd",
+ "glMultMatrixf",
+ "glRotated",
+ "glRotatef",
+ "glScaled",
+ "glScalef",
+ "glTranslated",
+ "glTranslatef",
+ "glIsList",
+ "glDeleteLists",
+ "glGenLists",
+ "glNewList",
+ "glEndList",
+ "glCallList",
+ "glCallLists",
+ "glListBase",
+ "glBegin",
+ "glEnd",
+ "glVertex2d",
+ "glVertex2f",
+ "glVertex2i",
+ "glVertex2s",
+ "glVertex3d",
+ "glVertex3f",
+ "glVertex3i",
+ "glVertex3s",
+ "glVertex4d",
+ "glVertex4f",
+ "glVertex4i",
+ "glVertex4s",
+ "glVertex2dv",
+ "glVertex2fv",
+ "glVertex2iv",
+ "glVertex2sv",
+ "glVertex3dv",
+ "glVertex3fv",
+ "glVertex3iv",
+ "glVertex3sv",
+ "glVertex4dv",
+ "glVertex4fv",
+ "glVertex4iv",
+ "glVertex4sv",
+ "glNormal3b",
+ "glNormal3d",
+ "glNormal3f",
+ "glNormal3i",
+ "glNormal3s",
+ "glNormal3bv",
+ "glNormal3dv",
+ "glNormal3fv",
+ "glNormal3iv",
+ "glNormal3sv",
+ "glIndexd",
+ "glIndexf",
+ "glIndexi",
+ "glIndexs",
+ "glIndexub",
+ "glIndexdv",
+ "glIndexfv",
+ "glIndexiv",
+ "glIndexsv",
+ "glIndexubv",
+ "glColor3b",
+ "glColor3d",
+ "glColor3f",
+ "glColor3i",
+ "glColor3s",
+ "glColor3ub",
+ "glColor3ui",
+ "glColor3us",
+ "glColor4b",
+ "glColor4d",
+ "glColor4f",
+ "glColor4i",
+ "glColor4s",
+ "glColor4ub",
+ "glColor4ui",
+ "glColor4us",
+ "glColor3bv",
+ "glColor3dv",
+ "glColor3fv",
+ "glColor3iv",
+ "glColor3sv",
+ "glColor3ubv",
+ "glColor3uiv",
+ "glColor3usv",
+ "glColor4bv",
+ "glColor4dv",
+ "glColor4fv",
+ "glColor4iv",
+ "glColor4sv",
+ "glColor4ubv",
+ "glColor4uiv",
+ "glColor4usv",
+ "glTexCoord1d",
+ "glTexCoord1f",
+ "glTexCoord1i",
+ "glTexCoord1s",
+ "glTexCoord2d",
+ "glTexCoord2f",
+ "glTexCoord2i",
+ "glTexCoord2s",
+ "glTexCoord3d",
+ "glTexCoord3f",
+ "glTexCoord3i",
+ "glTexCoord3s",
+ "glTexCoord4d",
+ "glTexCoord4f",
+ "glTexCoord4i",
+ "glTexCoord4s",
+ "glTexCoord1dv",
+ "glTexCoord1fv",
+ "glTexCoord1iv",
+ "glTexCoord1sv",
+ "glTexCoord2dv",
+ "glTexCoord2fv",
+ "glTexCoord2iv",
+ "glTexCoord2sv",
+ "glTexCoord3dv",
+ "glTexCoord3fv",
+ "glTexCoord3iv",
+ "glTexCoord3sv",
+ "glTexCoord4dv",
+ "glTexCoord4fv",
+ "glTexCoord4iv",
+ "glTexCoord4sv",
+ "glRasterPos2d",
+ "glRasterPos2f",
+ "glRasterPos2i",
+ "glRasterPos2s",
+ "glRasterPos3d",
+ "glRasterPos3f",
+ "glRasterPos3i",
+ "glRasterPos3s",
+ "glRasterPos4d",
+ "glRasterPos4f",
+ "glRasterPos4i",
+ "glRasterPos4s",
+ "glRasterPos2dv",
+ "glRasterPos2fv",
+ "glRasterPos2iv",
+ "glRasterPos2sv",
+ "glRasterPos3dv",
+ "glRasterPos3fv",
+ "glRasterPos3iv",
+ "glRasterPos3sv",
+ "glRasterPos4dv",
+ "glRasterPos4fv",
+ "glRasterPos4iv",
+ "glRasterPos4sv",
+ "glRectd",
+ "glRectf",
+ "glRecti",
+ "glRects",
+ "glRectdv",
+ "glRectfv",
+ "glRectiv",
+ "glRectsv",
+ "glVertexPointer",
+ "glNormalPointer",
+ "glColorPointer",
+ "glIndexPointer",
+ "glTexCoordPointer",
+ "glEdgeFlagPointer",
+ "glGetPointerv",
+ "glArrayElement",
+ "glDrawArrays",
+ "glDrawElements",
+ "glInterleavedArrays",
+ "glShadeModel",
+ "glLightf",
+ "glLighti",
+ "glLightfv",
+ "glLightiv",
+ "glGetLightfv",
+ "glGetLightiv",
+ "glLightModelf",
+ "glLightModeli",
+ "glLightModelfv",
+ "glLightModeliv",
+ "glMaterialf",
+ "glMateriali",
+ "glMaterialfv",
+ "glMaterialiv",
+ "glGetMaterialfv",
+ "glGetMaterialiv",
+ "glColorMaterial",
+ "glPixelZoom",
+ "glPixelStoref",
+ "glPixelStorei",
+ "glPixelTransferf",
+ "glPixelTransferi",
+ "glPixelMapfv",
+ "glPixelMapuiv",
+ "glPixelMapusv",
+ "glGetPixelMapfv",
+ "glGetPixelMapuiv",
+ "glGetPixelMapusv",
+ "glBitmap",
+ "glReadPixels",
+ "glDrawPixels",
+ "glCopyPixels",
+ "glStencilFunc",
+ "glStencilMask",
+ "glStencilOp",
+ "glClearStencil",
+ "glTexGend",
+ "glTexGenf",
+ "glTexGeni",
+ "glTexGendv",
+ "glTexGenfv",
+ "glTexGeniv",
+ "glGetTexGendv",
+ "glGetTexGenfv",
+ "glGetTexGeniv",
+ "glTexEnvf",
+ "glTexEnvi",
+ "glTexEnvfv",
+ "glTexEnviv",
+ "glGetTexEnvfv",
+ "glGetTexEnviv",
+ "glTexParameterf",
+ "glTexParameteri",
+ "glTexParameterfv",
+ "glTexParameteriv",
+ "glGetTexParameterfv",
+ "glGetTexParameteriv",
+ "glGetTexLevelParameterfv",
+ "glGetTexLevelParameteriv",
+ "glTexImage1D",
+ "glTexImage2D",
+ "glGetTexImage",
+ "glGenTextures",
+ "glDeleteTextures",
+ "glBindTexture",
+ "glPrioritizeTextures",
+ "glAreTexturesResident",
+ "glIsTexture",
+ "glTexSubImage1D",
+ "glTexSubImage2D",
+ "glCopyTexImage1D",
+ "glCopyTexImage2D",
+ "glCopyTexSubImage1D",
+ "glCopyTexSubImage2D",
+ "glMap1d",
+ "glMap1f",
+ "glMap2d",
+ "glMap2f",
+ "glGetMapdv",
+ "glGetMapfv",
+ "glGetMapiv",
+ "glEvalCoord1d",
+ "glEvalCoord1f",
+ "glEvalCoord1dv",
+ "glEvalCoord1fv",
+ "glEvalCoord2d",
+ "glEvalCoord2f",
+ "glEvalCoord2dv",
+ "glEvalCoord2fv",
+ "glMapGrid1d",
+ "glMapGrid1f",
+ "glMapGrid2d",
+ "glMapGrid2f",
+ "glEvalPoint1",
+ "glEvalPoint2",
+ "glEvalMesh1",
+ "glEvalMesh2",
+ "glFogf",
+ "glFogi",
+ "glFogfv",
+ "glFogiv",
+ "glFeedbackBuffer",
+ "glPassThrough",
+ "glSelectBuffer",
+ "glInitNames",
+ "glLoadName",
+ "glPushName",
+ "glPopName",
+ "glDrawRangeElements",
+ "glTexImage3D",
+ "glTexSubImage3D",
+ "glCopyTexSubImage3D",
+ "glColorTable",
+ "glColorSubTable",
+ "glColorTableParameteriv",
+ "glColorTableParameterfv",
+ "glCopyColorSubTable",
+ "glCopyColorTable",
+ "glGetColorTable",
+ "glGetColorTableParameterfv",
+ "glGetColorTableParameteriv",
+ "glBlendEquation",
+ "glBlendColor",
+ "glHistogram",
+ "glResetHistogram",
+ "glGetHistogram",
+ "glGetHistogramParameterfv",
+ "glGetHistogramParameteriv",
+ "glMinmax",
+ "glResetMinmax",
+ "glGetMinmax",
+ "glGetMinmaxParameterfv",
+ "glGetMinmaxParameteriv",
+ "glConvolutionFilter1D",
+ "glConvolutionFilter2D",
+ "glConvolutionParameterf",
+ "glConvolutionParameterfv",
+ "glConvolutionParameteri",
+ "glConvolutionParameteriv",
+ "glCopyConvolutionFilter1D",
+ "glCopyConvolutionFilter2D",
+ "glGetConvolutionFilter",
+ "glGetConvolutionParameterfv",
+ "glGetConvolutionParameteriv",
+ "glSeparableFilter2D",
+ "glGetSeparableFilter",
+ "glBlendColorEXT",
+ "glPolygonOffsetEXT",
+ "glTexImage3DEXT",
+ "glTexSubImage3DEXT",
+ "glCopyTexSubImage3DEXT",
+ "glGenTexturesEXT",
+ "glDeleteTexturesEXT",
+ "glBindTextureEXT",
+ "glPrioritizeTexturesEXT",
+ "glAreTexturesResidentEXT",
+ "glIsTextureEXT",
+ "glVertexPointerEXT",
+ "glNormalPointerEXT",
+ "glColorPointerEXT",
+ "glIndexPointerEXT",
+ "glTexCoordPointerEXT",
+ "glEdgeFlagPointerEXT",
+ "glGetPointervEXT",
+ "glArrayElementEXT",
+ "glDrawArraysEXT",
+ "glBlendEquationEXT",
+ "glPointParameterfEXT",
+ "glPointParameterfvEXT",
+ "glColorTableEXT",
+ "glColorSubTableEXT",
+ "glGetColorTableEXT",
+ "glGetColorTableParameterfvEXT",
+ "glGetColorTableParameterivEXT",
+ "glLockArraysEXT",
+ "glUnlockArraysEXT",
+ "glActiveTextureARB",
+ "glClientActiveTextureARB",
+ "glMultiTexCoord1dARB",
+ "glMultiTexCoord1dvARB",
+ "glMultiTexCoord1fARB",
+ "glMultiTexCoord1fvARB",
+ "glMultiTexCoord1iARB",
+ "glMultiTexCoord1ivARB",
+ "glMultiTexCoord1sARB",
+ "glMultiTexCoord1svARB",
+ "glMultiTexCoord2dARB",
+ "glMultiTexCoord2dvARB",
+ "glMultiTexCoord2fARB",
+ "glMultiTexCoord2fvARB",
+ "glMultiTexCoord2iARB",
+ "glMultiTexCoord2ivARB",
+ "glMultiTexCoord2sARB",
+ "glMultiTexCoord2svARB",
+ "glMultiTexCoord3dARB",
+ "glMultiTexCoord3dvARB",
+ "glMultiTexCoord3fARB",
+ "glMultiTexCoord3fvARB",
+ "glMultiTexCoord3iARB",
+ "glMultiTexCoord3ivARB",
+ "glMultiTexCoord3sARB",
+ "glMultiTexCoord3svARB",
+ "glMultiTexCoord4dARB",
+ "glMultiTexCoord4dvARB",
+ "glMultiTexCoord4fARB",
+ "glMultiTexCoord4fvARB",
+ "glMultiTexCoord4iARB",
+ "glMultiTexCoord4ivARB",
+ "glMultiTexCoord4sARB",
+ "glMultiTexCoord4svARB",
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
+ null
+};
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: gl-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearIndex ( GLfloat c ) ;
+ * </pre>
+ */
+ public void glClearIndex (
+ float c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ public void glClearColor (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClear ( GLbitfield mask ) ;
+ * </pre>
+ */
+ public void glClear (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexMask ( GLuint mask ) ;
+ * </pre>
+ */
+ public void glIndexMask (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMask ( GLboolean red , GLboolean green , GLboolean blue , GLboolean alpha ) ;
+ * </pre>
+ */
+ public void glColorMask (
+ boolean red,
+ boolean green,
+ boolean blue,
+ boolean alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAlphaFunc ( GLenum func , GLclampf ref ) ;
+ * </pre>
+ */
+ public void glAlphaFunc (
+ int func,
+ float ref
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendFunc ( GLenum sfactor , GLenum dfactor ) ;
+ * </pre>
+ */
+ public void glBlendFunc (
+ int sfactor,
+ int dfactor
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLogicOp ( GLenum opcode ) ;
+ * </pre>
+ */
+ public void glLogicOp (
+ int opcode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCullFace ( GLenum mode ) ;
+ * </pre>
+ */
+ public void glCullFace (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrontFace ( GLenum mode ) ;
+ * </pre>
+ */
+ public void glFrontFace (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointSize ( GLfloat size ) ;
+ * </pre>
+ */
+ public void glPointSize (
+ float size
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineWidth ( GLfloat width ) ;
+ * </pre>
+ */
+ public void glLineWidth (
+ float width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineStipple ( GLint factor , GLushort pattern ) ;
+ * </pre>
+ */
+ public void glLineStipple (
+ int factor,
+ short pattern
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonMode ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ public void glPolygonMode (
+ int face,
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffset ( GLfloat factor , GLfloat units ) ;
+ * </pre>
+ */
+ public void glPolygonOffset (
+ float factor,
+ float units
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonStipple ( const GLubyte * mask ) ;
+ * </pre>
+ */
+ public void glPolygonStipple (
+ byte[] mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPolygonStipple ( GLubyte * mask ) ;
+ * </pre>
+ */
+ public void glGetPolygonStipple (
+ byte[] mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlag ( GLboolean flag ) ;
+ * </pre>
+ */
+ public void glEdgeFlag (
+ boolean flag
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagv ( const GLboolean * flag ) ;
+ * </pre>
+ */
+ public void glEdgeFlagv (
+ boolean[] flag
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScissor ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public void glScissor (
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClipPlane ( GLenum plane , const GLdouble * equation ) ;
+ * </pre>
+ */
+ public void glClipPlane (
+ int plane,
+ double[] equation
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetClipPlane ( GLenum plane , GLdouble * equation ) ;
+ * </pre>
+ */
+ public void glGetClipPlane (
+ int plane,
+ double[] equation
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ public void glDrawBuffer (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ public void glReadBuffer (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnable ( GLenum cap ) ;
+ * </pre>
+ */
+ public void glEnable (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisable ( GLenum cap ) ;
+ * </pre>
+ */
+ public void glDisable (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsEnabled ( GLenum cap ) ;
+ * </pre>
+ */
+ public boolean glIsEnabled (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ public void glEnableClientState (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ public void glDisableClientState (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetBooleanv ( GLenum pname , GLboolean * params ) ;
+ * </pre>
+ */
+ public void glGetBooleanv (
+ int pname,
+ boolean[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetDoublev ( GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ public void glGetDoublev (
+ int pname,
+ double[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetFloatv ( GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetFloatv (
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetIntegerv ( GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetIntegerv (
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ public void glPushAttrib (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopAttrib ( void ) ;
+ * </pre>
+ */
+ public void glPopAttrib (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushClientAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ public void glPushClientAttrib (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopClientAttrib ( void ) ;
+ * </pre>
+ */
+ public void glPopClientAttrib (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint glRenderMode ( GLenum mode ) ;
+ * </pre>
+ */
+ public int glRenderMode (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLenum glGetError ( void ) ;
+ * </pre>
+ */
+ public int glGetError (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFinish ( void ) ;
+ * </pre>
+ */
+ public void glFinish (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFlush ( void ) ;
+ * </pre>
+ */
+ public void glFlush (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHint ( GLenum target , GLenum mode ) ;
+ * </pre>
+ */
+ public void glHint (
+ int target,
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearDepth ( GLclampd depth ) ;
+ * </pre>
+ */
+ public void glClearDepth (
+ double depth
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthFunc ( GLenum func ) ;
+ * </pre>
+ */
+ public void glDepthFunc (
+ int func
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthMask ( GLboolean flag ) ;
+ * </pre>
+ */
+ public void glDepthMask (
+ boolean flag
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthRange ( GLclampd near_val , GLclampd far_val ) ;
+ * </pre>
+ */
+ public void glDepthRange (
+ double near_val,
+ double far_val
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearAccum ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ public void glClearAccum (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAccum ( GLenum op , GLfloat value ) ;
+ * </pre>
+ */
+ public void glAccum (
+ int op,
+ float value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMatrixMode ( GLenum mode ) ;
+ * </pre>
+ */
+ public void glMatrixMode (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glOrtho ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ public void glOrtho (
+ double left,
+ double right,
+ double bottom,
+ double top,
+ double near_val,
+ double far_val
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrustum ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ public void glFrustum (
+ double left,
+ double right,
+ double bottom,
+ double top,
+ double near_val,
+ double far_val
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glViewport ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public void glViewport (
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushMatrix ( void ) ;
+ * </pre>
+ */
+ public void glPushMatrix (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopMatrix ( void ) ;
+ * </pre>
+ */
+ public void glPopMatrix (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadIdentity ( void ) ;
+ * </pre>
+ */
+ public void glLoadIdentity (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ public void glLoadMatrixd (
+ double[] m
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ public void glLoadMatrixf (
+ float[] m
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ public void glMultMatrixd (
+ double[] m
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ public void glMultMatrixf (
+ float[] m
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotated ( GLdouble angle , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public void glRotated (
+ double angle,
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotatef ( GLfloat angle , GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public void glRotatef (
+ float angle,
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScaled ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public void glScaled (
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScalef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public void glScalef (
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslated ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public void glTranslated (
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslatef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public void glTranslatef (
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsList ( GLuint list ) ;
+ * </pre>
+ */
+ public boolean glIsList (
+ int list
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteLists ( GLuint list , GLsizei range ) ;
+ * </pre>
+ */
+ public void glDeleteLists (
+ int list,
+ int range
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLuint glGenLists ( GLsizei range ) ;
+ * </pre>
+ */
+ public int glGenLists (
+ int range
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNewList ( GLuint list , GLenum mode ) ;
+ * </pre>
+ */
+ public void glNewList (
+ int list,
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEndList ( void ) ;
+ * </pre>
+ */
+ public void glEndList (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallList ( GLuint list ) ;
+ * </pre>
+ */
+ public void glCallList (
+ int list
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallLists ( GLsizei n , GLenum type , const GLvoid * lists ) ;
+ * </pre>
+ */
+ public void glCallLists (
+ int n,
+ int type,
+ byte[] lists
+ ) ;
+ public void glCallLists (
+ int n,
+ int type,
+ short[] lists
+ ) ;
+ public void glCallLists (
+ int n,
+ int type,
+ int[] lists
+ ) ;
+ public void glCallLists (
+ int n,
+ int type,
+ float[] lists
+ ) ;
+ public void glCallLists (
+ int n,
+ int type,
+ double[] lists
+ ) ;
+ public void glCallLists (
+ int n,
+ int type,
+ boolean[] lists
+ ) ;
+ public void glCallLists (
+ int n,
+ int type,
+ long[] lists
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glListBase ( GLuint base ) ;
+ * </pre>
+ */
+ public void glListBase (
+ int base
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBegin ( GLenum mode ) ;
+ * </pre>
+ */
+ public void glBegin (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnd ( void ) ;
+ * </pre>
+ */
+ public void glEnd (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ public void glVertex2d (
+ double x,
+ double y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ public void glVertex2f (
+ float x,
+ float y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ public void glVertex2i (
+ int x,
+ int y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ public void glVertex2s (
+ short x,
+ short y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public void glVertex3d (
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public void glVertex3f (
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ public void glVertex3i (
+ int x,
+ int y,
+ int z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ public void glVertex3s (
+ short x,
+ short y,
+ short z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ public void glVertex4d (
+ double x,
+ double y,
+ double z,
+ double w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ public void glVertex4f (
+ float x,
+ float y,
+ float z,
+ float w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ public void glVertex4i (
+ int x,
+ int y,
+ int z,
+ int w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ public void glVertex4s (
+ short x,
+ short y,
+ short z,
+ short w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glVertex2dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glVertex2fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glVertex2iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glVertex2sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glVertex3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glVertex3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glVertex3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glVertex3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glVertex4dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glVertex4fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glVertex4iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glVertex4sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3b ( GLbyte nx , GLbyte ny , GLbyte nz ) ;
+ * </pre>
+ */
+ public void glNormal3b (
+ byte nx,
+ byte ny,
+ byte nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3d ( GLdouble nx , GLdouble ny , GLdouble nz ) ;
+ * </pre>
+ */
+ public void glNormal3d (
+ double nx,
+ double ny,
+ double nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3f ( GLfloat nx , GLfloat ny , GLfloat nz ) ;
+ * </pre>
+ */
+ public void glNormal3f (
+ float nx,
+ float ny,
+ float nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3i ( GLint nx , GLint ny , GLint nz ) ;
+ * </pre>
+ */
+ public void glNormal3i (
+ int nx,
+ int ny,
+ int nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3s ( GLshort nx , GLshort ny , GLshort nz ) ;
+ * </pre>
+ */
+ public void glNormal3s (
+ short nx,
+ short ny,
+ short nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ public void glNormal3bv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glNormal3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glNormal3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glNormal3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glNormal3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexd ( GLdouble c ) ;
+ * </pre>
+ */
+ public void glIndexd (
+ double c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexf ( GLfloat c ) ;
+ * </pre>
+ */
+ public void glIndexf (
+ float c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexi ( GLint c ) ;
+ * </pre>
+ */
+ public void glIndexi (
+ int c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexs ( GLshort c ) ;
+ * </pre>
+ */
+ public void glIndexs (
+ short c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexub ( GLubyte c ) ;
+ * </pre>
+ */
+ public void glIndexub (
+ byte c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexdv ( const GLdouble * c ) ;
+ * </pre>
+ */
+ public void glIndexdv (
+ double[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexfv ( const GLfloat * c ) ;
+ * </pre>
+ */
+ public void glIndexfv (
+ float[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexiv ( const GLint * c ) ;
+ * </pre>
+ */
+ public void glIndexiv (
+ int[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexsv ( const GLshort * c ) ;
+ * </pre>
+ */
+ public void glIndexsv (
+ short[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexubv ( const GLubyte * c ) ;
+ * </pre>
+ */
+ public void glIndexubv (
+ byte[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3b ( GLbyte red , GLbyte green , GLbyte blue ) ;
+ * </pre>
+ */
+ public void glColor3b (
+ byte red,
+ byte green,
+ byte blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3d ( GLdouble red , GLdouble green , GLdouble blue ) ;
+ * </pre>
+ */
+ public void glColor3d (
+ double red,
+ double green,
+ double blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3f ( GLfloat red , GLfloat green , GLfloat blue ) ;
+ * </pre>
+ */
+ public void glColor3f (
+ float red,
+ float green,
+ float blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3i ( GLint red , GLint green , GLint blue ) ;
+ * </pre>
+ */
+ public void glColor3i (
+ int red,
+ int green,
+ int blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3s ( GLshort red , GLshort green , GLshort blue ) ;
+ * </pre>
+ */
+ public void glColor3s (
+ short red,
+ short green,
+ short blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ub ( GLubyte red , GLubyte green , GLubyte blue ) ;
+ * </pre>
+ */
+ public void glColor3ub (
+ byte red,
+ byte green,
+ byte blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ui ( GLuint red , GLuint green , GLuint blue ) ;
+ * </pre>
+ */
+ public void glColor3ui (
+ int red,
+ int green,
+ int blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3us ( GLushort red , GLushort green , GLushort blue ) ;
+ * </pre>
+ */
+ public void glColor3us (
+ short red,
+ short green,
+ short blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4b ( GLbyte red , GLbyte green , GLbyte blue , GLbyte alpha ) ;
+ * </pre>
+ */
+ public void glColor4b (
+ byte red,
+ byte green,
+ byte blue,
+ byte alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4d ( GLdouble red , GLdouble green , GLdouble blue , GLdouble alpha ) ;
+ * </pre>
+ */
+ public void glColor4d (
+ double red,
+ double green,
+ double blue,
+ double alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4f ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ public void glColor4f (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4i ( GLint red , GLint green , GLint blue , GLint alpha ) ;
+ * </pre>
+ */
+ public void glColor4i (
+ int red,
+ int green,
+ int blue,
+ int alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4s ( GLshort red , GLshort green , GLshort blue , GLshort alpha ) ;
+ * </pre>
+ */
+ public void glColor4s (
+ short red,
+ short green,
+ short blue,
+ short alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ub ( GLubyte red , GLubyte green , GLubyte blue , GLubyte alpha ) ;
+ * </pre>
+ */
+ public void glColor4ub (
+ byte red,
+ byte green,
+ byte blue,
+ byte alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ui ( GLuint red , GLuint green , GLuint blue , GLuint alpha ) ;
+ * </pre>
+ */
+ public void glColor4ui (
+ int red,
+ int green,
+ int blue,
+ int alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4us ( GLushort red , GLushort green , GLushort blue , GLushort alpha ) ;
+ * </pre>
+ */
+ public void glColor4us (
+ short red,
+ short green,
+ short blue,
+ short alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ public void glColor3bv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glColor3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glColor3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glColor3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glColor3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ public void glColor3ubv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ public void glColor3uiv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ public void glColor3usv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ public void glColor4bv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glColor4dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glColor4fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glColor4iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glColor4sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ public void glColor4ubv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ public void glColor4uiv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ public void glColor4usv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1d ( GLdouble s ) ;
+ * </pre>
+ */
+ public void glTexCoord1d (
+ double s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1f ( GLfloat s ) ;
+ * </pre>
+ */
+ public void glTexCoord1f (
+ float s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1i ( GLint s ) ;
+ * </pre>
+ */
+ public void glTexCoord1i (
+ int s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1s ( GLshort s ) ;
+ * </pre>
+ */
+ public void glTexCoord1s (
+ short s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2d ( GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ public void glTexCoord2d (
+ double s,
+ double t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2f ( GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ public void glTexCoord2f (
+ float s,
+ float t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2i ( GLint s , GLint t ) ;
+ * </pre>
+ */
+ public void glTexCoord2i (
+ int s,
+ int t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2s ( GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ public void glTexCoord2s (
+ short s,
+ short t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3d ( GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ public void glTexCoord3d (
+ double s,
+ double t,
+ double r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3f ( GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ public void glTexCoord3f (
+ float s,
+ float t,
+ float r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3i ( GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ public void glTexCoord3i (
+ int s,
+ int t,
+ int r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3s ( GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ public void glTexCoord3s (
+ short s,
+ short t,
+ short r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4d ( GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ public void glTexCoord4d (
+ double s,
+ double t,
+ double r,
+ double q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4f ( GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ public void glTexCoord4f (
+ float s,
+ float t,
+ float r,
+ float q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4i ( GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ public void glTexCoord4i (
+ int s,
+ int t,
+ int r,
+ int q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4s ( GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ public void glTexCoord4s (
+ short s,
+ short t,
+ short r,
+ short q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glTexCoord1dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glTexCoord1fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glTexCoord1iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glTexCoord1sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glTexCoord2dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glTexCoord2fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glTexCoord2iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glTexCoord2sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glTexCoord3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glTexCoord3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glTexCoord3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glTexCoord3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glTexCoord4dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glTexCoord4fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glTexCoord4iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glTexCoord4sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ public void glRasterPos2d (
+ double x,
+ double y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ public void glRasterPos2f (
+ float x,
+ float y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ public void glRasterPos2i (
+ int x,
+ int y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ public void glRasterPos2s (
+ short x,
+ short y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public void glRasterPos3d (
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public void glRasterPos3f (
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ public void glRasterPos3i (
+ int x,
+ int y,
+ int z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ public void glRasterPos3s (
+ short x,
+ short y,
+ short z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ public void glRasterPos4d (
+ double x,
+ double y,
+ double z,
+ double w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ public void glRasterPos4f (
+ float x,
+ float y,
+ float z,
+ float w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ public void glRasterPos4i (
+ int x,
+ int y,
+ int z,
+ int w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ public void glRasterPos4s (
+ short x,
+ short y,
+ short z,
+ short w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glRasterPos2dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glRasterPos2fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glRasterPos2iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glRasterPos2sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glRasterPos3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glRasterPos3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glRasterPos3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glRasterPos3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glRasterPos4dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glRasterPos4fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public void glRasterPos4iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public void glRasterPos4sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectd ( GLdouble x1 , GLdouble y1 , GLdouble x2 , GLdouble y2 ) ;
+ * </pre>
+ */
+ public void glRectd (
+ double x1,
+ double y1,
+ double x2,
+ double y2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectf ( GLfloat x1 , GLfloat y1 , GLfloat x2 , GLfloat y2 ) ;
+ * </pre>
+ */
+ public void glRectf (
+ float x1,
+ float y1,
+ float x2,
+ float y2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRecti ( GLint x1 , GLint y1 , GLint x2 , GLint y2 ) ;
+ * </pre>
+ */
+ public void glRecti (
+ int x1,
+ int y1,
+ int x2,
+ int y2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRects ( GLshort x1 , GLshort y1 , GLshort x2 , GLshort y2 ) ;
+ * </pre>
+ */
+ public void glRects (
+ short x1,
+ short y1,
+ short x2,
+ short y2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectdv ( const GLdouble * v1 , const GLdouble * v2 ) ;
+ * </pre>
+ */
+ public void glRectdv (
+ double[] v1,
+ double[] v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectfv ( const GLfloat * v1 , const GLfloat * v2 ) ;
+ * </pre>
+ */
+ public void glRectfv (
+ float[] v1,
+ float[] v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectiv ( const GLint * v1 , const GLint * v2 ) ;
+ * </pre>
+ */
+ public void glRectiv (
+ int[] v1,
+ int[] v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectsv ( const GLshort * v1 , const GLshort * v2 ) ;
+ * </pre>
+ */
+ public void glRectsv (
+ short[] v1,
+ short[] v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public void glNormalPointer (
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public void glNormalPointer (
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public void glNormalPointer (
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public void glNormalPointer (
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public void glNormalPointer (
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public void glNormalPointer (
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public void glNormalPointer (
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public void glIndexPointer (
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public void glIndexPointer (
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public void glIndexPointer (
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public void glIndexPointer (
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public void glIndexPointer (
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public void glIndexPointer (
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public void glIndexPointer (
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointer ( GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public void glEdgeFlagPointer (
+ int stride,
+ byte[] ptr
+ ) ;
+ public void glEdgeFlagPointer (
+ int stride,
+ short[] ptr
+ ) ;
+ public void glEdgeFlagPointer (
+ int stride,
+ int[] ptr
+ ) ;
+ public void glEdgeFlagPointer (
+ int stride,
+ float[] ptr
+ ) ;
+ public void glEdgeFlagPointer (
+ int stride,
+ double[] ptr
+ ) ;
+ public void glEdgeFlagPointer (
+ int stride,
+ boolean[] ptr
+ ) ;
+ public void glEdgeFlagPointer (
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointerv ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ public void glGetPointerv (
+ int pname,
+ byte[][] params
+ ) ;
+ public void glGetPointerv (
+ int pname,
+ short[][] params
+ ) ;
+ public void glGetPointerv (
+ int pname,
+ int[][] params
+ ) ;
+ public void glGetPointerv (
+ int pname,
+ float[][] params
+ ) ;
+ public void glGetPointerv (
+ int pname,
+ double[][] params
+ ) ;
+ public void glGetPointerv (
+ int pname,
+ boolean[][] params
+ ) ;
+ public void glGetPointerv (
+ int pname,
+ long[][] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElement ( GLint i ) ;
+ * </pre>
+ */
+ public void glArrayElement (
+ int i
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArrays ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ public void glDrawArrays (
+ int mode,
+ int first,
+ int count
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawElements ( GLenum mode , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ public void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ byte[] indices
+ ) ;
+ public void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ short[] indices
+ ) ;
+ public void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ int[] indices
+ ) ;
+ public void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ float[] indices
+ ) ;
+ public void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ double[] indices
+ ) ;
+ public void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ boolean[] indices
+ ) ;
+ public void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ long[] indices
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInterleavedArrays ( GLenum format , GLsizei stride , const GLvoid * pointer ) ;
+ * </pre>
+ */
+ public void glInterleavedArrays (
+ int format,
+ int stride,
+ byte[] pointer
+ ) ;
+ public void glInterleavedArrays (
+ int format,
+ int stride,
+ short[] pointer
+ ) ;
+ public void glInterleavedArrays (
+ int format,
+ int stride,
+ int[] pointer
+ ) ;
+ public void glInterleavedArrays (
+ int format,
+ int stride,
+ float[] pointer
+ ) ;
+ public void glInterleavedArrays (
+ int format,
+ int stride,
+ double[] pointer
+ ) ;
+ public void glInterleavedArrays (
+ int format,
+ int stride,
+ boolean[] pointer
+ ) ;
+ public void glInterleavedArrays (
+ int format,
+ int stride,
+ long[] pointer
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glShadeModel ( GLenum mode ) ;
+ * </pre>
+ */
+ public void glShadeModel (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightf ( GLenum light , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public void glLightf (
+ int light,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLighti ( GLenum light , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public void glLighti (
+ int light,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightfv ( GLenum light , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public void glLightfv (
+ int light,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightiv ( GLenum light , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public void glLightiv (
+ int light,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightfv ( GLenum light , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetLightfv (
+ int light,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightiv ( GLenum light , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetLightiv (
+ int light,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public void glLightModelf (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeli ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public void glLightModeli (
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public void glLightModelfv (
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeliv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public void glLightModeliv (
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialf ( GLenum face , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public void glMaterialf (
+ int face,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMateriali ( GLenum face , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public void glMateriali (
+ int face,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialfv ( GLenum face , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public void glMaterialfv (
+ int face,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialiv ( GLenum face , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public void glMaterialiv (
+ int face,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialfv ( GLenum face , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetMaterialfv (
+ int face,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialiv ( GLenum face , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetMaterialiv (
+ int face,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMaterial ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ public void glColorMaterial (
+ int face,
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelZoom ( GLfloat xfactor , GLfloat yfactor ) ;
+ * </pre>
+ */
+ public void glPixelZoom (
+ float xfactor,
+ float yfactor
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStoref ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public void glPixelStoref (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStorei ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public void glPixelStorei (
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public void glPixelTransferf (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public void glPixelTransferi (
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapfv ( GLenum map , GLint mapsize , const GLfloat * values ) ;
+ * </pre>
+ */
+ public void glPixelMapfv (
+ int map,
+ int mapsize,
+ float[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapuiv ( GLenum map , GLint mapsize , const GLuint * values ) ;
+ * </pre>
+ */
+ public void glPixelMapuiv (
+ int map,
+ int mapsize,
+ int[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapusv ( GLenum map , GLint mapsize , const GLushort * values ) ;
+ * </pre>
+ */
+ public void glPixelMapusv (
+ int map,
+ int mapsize,
+ short[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapfv ( GLenum map , GLfloat * values ) ;
+ * </pre>
+ */
+ public void glGetPixelMapfv (
+ int map,
+ float[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapuiv ( GLenum map , GLuint * values ) ;
+ * </pre>
+ */
+ public void glGetPixelMapuiv (
+ int map,
+ int[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapusv ( GLenum map , GLushort * values ) ;
+ * </pre>
+ */
+ public void glGetPixelMapusv (
+ int map,
+ short[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBitmap ( GLsizei width , GLsizei height , GLfloat xorig , GLfloat yorig , GLfloat xmove , GLfloat ymove , const GLubyte * bitmap ) ;
+ * </pre>
+ */
+ public void glBitmap (
+ int width,
+ int height,
+ float xorig,
+ float yorig,
+ float xmove,
+ float ymove,
+ byte[] bitmap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ public void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawPixels ( GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum type ) ;
+ * </pre>
+ */
+ public void glCopyPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilFunc ( GLenum func , GLint ref , GLuint mask ) ;
+ * </pre>
+ */
+ public void glStencilFunc (
+ int func,
+ int ref,
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilMask ( GLuint mask ) ;
+ * </pre>
+ */
+ public void glStencilMask (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilOp ( GLenum fail , GLenum zfail , GLenum zpass ) ;
+ * </pre>
+ */
+ public void glStencilOp (
+ int fail,
+ int zfail,
+ int zpass
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearStencil ( GLint s ) ;
+ * </pre>
+ */
+ public void glClearStencil (
+ int s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGend ( GLenum coord , GLenum pname , GLdouble param ) ;
+ * </pre>
+ */
+ public void glTexGend (
+ int coord,
+ int pname,
+ double param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenf ( GLenum coord , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public void glTexGenf (
+ int coord,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeni ( GLenum coord , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public void glTexGeni (
+ int coord,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGendv ( GLenum coord , GLenum pname , const GLdouble * params ) ;
+ * </pre>
+ */
+ public void glTexGendv (
+ int coord,
+ int pname,
+ double[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenfv ( GLenum coord , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public void glTexGenfv (
+ int coord,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeniv ( GLenum coord , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public void glTexGeniv (
+ int coord,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGendv ( GLenum coord , GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ public void glGetTexGendv (
+ int coord,
+ int pname,
+ double[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGenfv ( GLenum coord , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetTexGenfv (
+ int coord,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGeniv ( GLenum coord , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetTexGeniv (
+ int coord,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public void glTexEnvf (
+ int target,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvi ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public void glTexEnvi (
+ int target,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public void glTexEnvfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnviv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public void glTexEnviv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnvfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetTexEnvfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnviv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetTexEnviv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public void glTexParameterf (
+ int target,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteri ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public void glTexParameteri (
+ int target,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public void glTexParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public void glTexParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetTexParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetTexParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameterfv ( GLenum target , GLint level , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetTexLevelParameterfv (
+ int target,
+ int level,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameteriv ( GLenum target , GLint level , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetTexLevelParameteriv (
+ int target,
+ int level,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage1D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage2D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexImage ( GLenum target , GLint level , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ public void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTextures ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ public void glGenTextures (
+ int n,
+ int[] textures
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTextures ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ public void glDeleteTextures (
+ int n,
+ int[] textures
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTexture ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ public void glBindTexture (
+ int target,
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTextures ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ public void glPrioritizeTextures (
+ int n,
+ int[] textures,
+ float[] priorities
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResident ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ public boolean glAreTexturesResident (
+ int n,
+ int[] textures,
+ boolean[] residences
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTexture ( GLuint texture ) ;
+ * </pre>
+ */
+ public boolean glIsTexture (
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLsizei width , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage1D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLint border ) ;
+ * </pre>
+ */
+ public void glCopyTexImage1D (
+ int target,
+ int level,
+ int internalformat,
+ int x,
+ int y,
+ int width,
+ int border
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage2D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height , GLint border ) ;
+ * </pre>
+ */
+ public void glCopyTexImage2D (
+ int target,
+ int level,
+ int internalformat,
+ int x,
+ int y,
+ int width,
+ int height,
+ int border
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ public void glCopyTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int x,
+ int y,
+ int width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public void glCopyTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint stride , GLint order , const GLdouble * points ) ;
+ * </pre>
+ */
+ public void glMap1d (
+ int target,
+ double u1,
+ double u2,
+ int stride,
+ int order,
+ double[] points
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint stride , GLint order , const GLfloat * points ) ;
+ * </pre>
+ */
+ public void glMap1f (
+ int target,
+ float u1,
+ float u2,
+ int stride,
+ int order,
+ float[] points
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint ustride , GLint uorder , GLdouble v1 , GLdouble v2 , GLint vstride , GLint vorder , const GLdouble * points ) ;
+ * </pre>
+ */
+ public void glMap2d (
+ int target,
+ double u1,
+ double u2,
+ int ustride,
+ int uorder,
+ double v1,
+ double v2,
+ int vstride,
+ int vorder,
+ double[] points
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint ustride , GLint uorder , GLfloat v1 , GLfloat v2 , GLint vstride , GLint vorder , const GLfloat * points ) ;
+ * </pre>
+ */
+ public void glMap2f (
+ int target,
+ float u1,
+ float u2,
+ int ustride,
+ int uorder,
+ float v1,
+ float v2,
+ int vstride,
+ int vorder,
+ float[] points
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapdv ( GLenum target , GLenum query , GLdouble * v ) ;
+ * </pre>
+ */
+ public void glGetMapdv (
+ int target,
+ int query,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapfv ( GLenum target , GLenum query , GLfloat * v ) ;
+ * </pre>
+ */
+ public void glGetMapfv (
+ int target,
+ int query,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapiv ( GLenum target , GLenum query , GLint * v ) ;
+ * </pre>
+ */
+ public void glGetMapiv (
+ int target,
+ int query,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1d ( GLdouble u ) ;
+ * </pre>
+ */
+ public void glEvalCoord1d (
+ double u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1f ( GLfloat u ) ;
+ * </pre>
+ */
+ public void glEvalCoord1f (
+ float u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ public void glEvalCoord1dv (
+ double[] u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ public void glEvalCoord1fv (
+ float[] u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2d ( GLdouble u , GLdouble v ) ;
+ * </pre>
+ */
+ public void glEvalCoord2d (
+ double u,
+ double v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2f ( GLfloat u , GLfloat v ) ;
+ * </pre>
+ */
+ public void glEvalCoord2f (
+ float u,
+ float v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ public void glEvalCoord2dv (
+ double[] u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ public void glEvalCoord2fv (
+ float[] u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1d ( GLint un , GLdouble u1 , GLdouble u2 ) ;
+ * </pre>
+ */
+ public void glMapGrid1d (
+ int un,
+ double u1,
+ double u2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1f ( GLint un , GLfloat u1 , GLfloat u2 ) ;
+ * </pre>
+ */
+ public void glMapGrid1f (
+ int un,
+ float u1,
+ float u2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2d ( GLint un , GLdouble u1 , GLdouble u2 , GLint vn , GLdouble v1 , GLdouble v2 ) ;
+ * </pre>
+ */
+ public void glMapGrid2d (
+ int un,
+ double u1,
+ double u2,
+ int vn,
+ double v1,
+ double v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2f ( GLint un , GLfloat u1 , GLfloat u2 , GLint vn , GLfloat v1 , GLfloat v2 ) ;
+ * </pre>
+ */
+ public void glMapGrid2f (
+ int un,
+ float u1,
+ float u2,
+ int vn,
+ float v1,
+ float v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint1 ( GLint i ) ;
+ * </pre>
+ */
+ public void glEvalPoint1 (
+ int i
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint2 ( GLint i , GLint j ) ;
+ * </pre>
+ */
+ public void glEvalPoint2 (
+ int i,
+ int j
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh1 ( GLenum mode , GLint i1 , GLint i2 ) ;
+ * </pre>
+ */
+ public void glEvalMesh1 (
+ int mode,
+ int i1,
+ int i2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh2 ( GLenum mode , GLint i1 , GLint i2 , GLint j1 , GLint j2 ) ;
+ * </pre>
+ */
+ public void glEvalMesh2 (
+ int mode,
+ int i1,
+ int i2,
+ int j1,
+ int j2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public void glFogf (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public void glFogi (
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public void glFogfv (
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogiv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public void glFogiv (
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFeedbackBuffer ( GLsizei size , GLenum type , GLfloat * buffer ) ;
+ * </pre>
+ */
+ public void glFeedbackBuffer (
+ int size,
+ int type,
+ float[] buffer
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPassThrough ( GLfloat token ) ;
+ * </pre>
+ */
+ public void glPassThrough (
+ float token
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSelectBuffer ( GLsizei size , GLuint * buffer ) ;
+ * </pre>
+ */
+ public void glSelectBuffer (
+ int size,
+ int[] buffer
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInitNames ( void ) ;
+ * </pre>
+ */
+ public void glInitNames (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadName ( GLuint name ) ;
+ * </pre>
+ */
+ public void glLoadName (
+ int name
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushName ( GLuint name ) ;
+ * </pre>
+ */
+ public void glPushName (
+ int name
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopName ( void ) ;
+ * </pre>
+ */
+ public void glPopName (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawRangeElements ( GLenum mode , GLuint start , GLuint end , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ public void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ byte[] indices
+ ) ;
+ public void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ short[] indices
+ ) ;
+ public void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ int[] indices
+ ) ;
+ public void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ float[] indices
+ ) ;
+ public void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ double[] indices
+ ) ;
+ public void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ boolean[] indices
+ ) ;
+ public void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ long[] indices
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public void glCopyTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTable ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ public void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ byte[] table
+ ) ;
+ public void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ short[] table
+ ) ;
+ public void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ int[] table
+ ) ;
+ public void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ float[] table
+ ) ;
+ public void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ double[] table
+ ) ;
+ public void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ boolean[] table
+ ) ;
+ public void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ long[] table
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTable ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ public void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ byte[] data
+ ) ;
+ public void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ short[] data
+ ) ;
+ public void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ int[] data
+ ) ;
+ public void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ float[] data
+ ) ;
+ public void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ double[] data
+ ) ;
+ public void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ boolean[] data
+ ) ;
+ public void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ long[] data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public void glColorTableParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public void glColorTableParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorSubTable ( GLenum target , GLsizei start , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ public void glCopyColorSubTable (
+ int target,
+ int start,
+ int x,
+ int y,
+ int width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorTable ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ public void glCopyColorTable (
+ int target,
+ int internalformat,
+ int x,
+ int y,
+ int width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTable ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ public void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ byte[] table
+ ) ;
+ public void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ short[] table
+ ) ;
+ public void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ int[] table
+ ) ;
+ public void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ float[] table
+ ) ;
+ public void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ double[] table
+ ) ;
+ public void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ boolean[] table
+ ) ;
+ public void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ long[] table
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetColorTableParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetColorTableParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquation ( GLenum mode ) ;
+ * </pre>
+ */
+ public void glBlendEquation (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ public void glBlendColor (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHistogram ( GLenum target , GLsizei width , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ public void glHistogram (
+ int target,
+ int width,
+ int internalformat,
+ boolean sink
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetHistogram ( GLenum target ) ;
+ * </pre>
+ */
+ public void glResetHistogram (
+ int target
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogram ( GLenum target , GLboolean reset , GLenum format , GLenum type , GLvoid * values ) ;
+ * </pre>
+ */
+ public void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ byte[] values
+ ) ;
+ public void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ short[] values
+ ) ;
+ public void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ int[] values
+ ) ;
+ public void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ float[] values
+ ) ;
+ public void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ double[] values
+ ) ;
+ public void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ boolean[] values
+ ) ;
+ public void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ long[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetHistogramParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetHistogramParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMinmax ( GLenum target , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ public void glMinmax (
+ int target,
+ int internalformat,
+ boolean sink
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetMinmax ( GLenum target ) ;
+ * </pre>
+ */
+ public void glResetMinmax (
+ int target
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmax ( GLenum target , GLboolean reset , GLenum format , GLenum types , GLvoid * values ) ;
+ * </pre>
+ */
+ public void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ byte[] values
+ ) ;
+ public void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ short[] values
+ ) ;
+ public void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ int[] values
+ ) ;
+ public void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ float[] values
+ ) ;
+ public void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ double[] values
+ ) ;
+ public void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ boolean[] values
+ ) ;
+ public void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ long[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetMinmaxParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetMinmaxParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter1D ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ public void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ byte[] image
+ ) ;
+ public void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ short[] image
+ ) ;
+ public void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ int[] image
+ ) ;
+ public void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ float[] image
+ ) ;
+ public void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ double[] image
+ ) ;
+ public void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ boolean[] image
+ ) ;
+ public void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ long[] image
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ public void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] image
+ ) ;
+ public void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] image
+ ) ;
+ public void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] image
+ ) ;
+ public void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] image
+ ) ;
+ public void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] image
+ ) ;
+ public void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] image
+ ) ;
+ public void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] image
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterf ( GLenum target , GLenum pname , GLfloat params ) ;
+ * </pre>
+ */
+ public void glConvolutionParameterf (
+ int target,
+ int pname,
+ float params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public void glConvolutionParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteri ( GLenum target , GLenum pname , GLint params ) ;
+ * </pre>
+ */
+ public void glConvolutionParameteri (
+ int target,
+ int pname,
+ int params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public void glConvolutionParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter1D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ public void glCopyConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int x,
+ int y,
+ int width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter2D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public void glCopyConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionFilter ( GLenum target , GLenum format , GLenum type , GLvoid * image ) ;
+ * </pre>
+ */
+ public void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ byte[] image
+ ) ;
+ public void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ short[] image
+ ) ;
+ public void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ int[] image
+ ) ;
+ public void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ float[] image
+ ) ;
+ public void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ double[] image
+ ) ;
+ public void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ boolean[] image
+ ) ;
+ public void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ long[] image
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetConvolutionParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetConvolutionParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSeparableFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * row , const GLvoid * column ) ;
+ * </pre>
+ */
+ public void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] row,
+ byte[] column
+ ) ;
+ public void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] row,
+ short[] column
+ ) ;
+ public void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] row,
+ int[] column
+ ) ;
+ public void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] row,
+ float[] column
+ ) ;
+ public void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] row,
+ double[] column
+ ) ;
+ public void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] row,
+ boolean[] column
+ ) ;
+ public void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] row,
+ long[] column
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetSeparableFilter ( GLenum target , GLenum format , GLenum type , GLvoid * row , GLvoid * column , GLvoid * span ) ;
+ * </pre>
+ */
+ public void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ byte[] row,
+ byte[] column,
+ byte[] span
+ ) ;
+ public void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ short[] row,
+ short[] column,
+ short[] span
+ ) ;
+ public void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ int[] row,
+ int[] column,
+ int[] span
+ ) ;
+ public void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ float[] row,
+ float[] column,
+ float[] span
+ ) ;
+ public void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ double[] row,
+ double[] column,
+ double[] span
+ ) ;
+ public void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ boolean[] row,
+ boolean[] column,
+ boolean[] span
+ ) ;
+ public void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ long[] row,
+ long[] column,
+ long[] span
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColorEXT ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ public void glBlendColorEXT (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffsetEXT ( GLfloat factor , GLfloat bias ) ;
+ * </pre>
+ */
+ public void glPolygonOffsetEXT (
+ float factor,
+ float bias
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3DEXT ( GLenum target , GLint level , GLenum internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public void glCopyTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTexturesEXT ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ public void glGenTexturesEXT (
+ int n,
+ int[] textures
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTexturesEXT ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ public void glDeleteTexturesEXT (
+ int n,
+ int[] textures
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTextureEXT ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ public void glBindTextureEXT (
+ int target,
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTexturesEXT ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ public void glPrioritizeTexturesEXT (
+ int n,
+ int[] textures,
+ float[] priorities
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResidentEXT ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ public boolean glAreTexturesResidentEXT (
+ int n,
+ int[] textures,
+ boolean[] residences
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTextureEXT ( GLuint texture ) ;
+ * </pre>
+ */
+ public boolean glIsTextureEXT (
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointerEXT ( GLsizei stride , GLsizei count , const GLboolean * ptr ) ;
+ * </pre>
+ */
+ public void glEdgeFlagPointerEXT (
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointervEXT ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ public void glGetPointervEXT (
+ int pname,
+ byte[][] params
+ ) ;
+ public void glGetPointervEXT (
+ int pname,
+ short[][] params
+ ) ;
+ public void glGetPointervEXT (
+ int pname,
+ int[][] params
+ ) ;
+ public void glGetPointervEXT (
+ int pname,
+ float[][] params
+ ) ;
+ public void glGetPointervEXT (
+ int pname,
+ double[][] params
+ ) ;
+ public void glGetPointervEXT (
+ int pname,
+ boolean[][] params
+ ) ;
+ public void glGetPointervEXT (
+ int pname,
+ long[][] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElementEXT ( GLint i ) ;
+ * </pre>
+ */
+ public void glArrayElementEXT (
+ int i
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArraysEXT ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ public void glDrawArraysEXT (
+ int mode,
+ int first,
+ int count
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquationEXT ( GLenum mode ) ;
+ * </pre>
+ */
+ public void glBlendEquationEXT (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfEXT ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public void glPointParameterfEXT (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfvEXT ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public void glPointParameterfvEXT (
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableEXT ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ public void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ byte[] table
+ ) ;
+ public void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ short[] table
+ ) ;
+ public void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ int[] table
+ ) ;
+ public void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ float[] table
+ ) ;
+ public void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ double[] table
+ ) ;
+ public void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ boolean[] table
+ ) ;
+ public void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ long[] table
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTableEXT ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ public void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ byte[] data
+ ) ;
+ public void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ short[] data
+ ) ;
+ public void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ int[] data
+ ) ;
+ public void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ float[] data
+ ) ;
+ public void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ double[] data
+ ) ;
+ public void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ boolean[] data
+ ) ;
+ public void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ long[] data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableEXT ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ public void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ byte[] table
+ ) ;
+ public void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ short[] table
+ ) ;
+ public void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ int[] table
+ ) ;
+ public void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ float[] table
+ ) ;
+ public void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ double[] table
+ ) ;
+ public void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ boolean[] table
+ ) ;
+ public void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ long[] table
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfvEXT ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public void glGetColorTableParameterfvEXT (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterivEXT ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public void glGetColorTableParameterivEXT (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLockArraysEXT ( GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ public void glLockArraysEXT (
+ int first,
+ int count
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glUnlockArraysEXT ( void ) ;
+ * </pre>
+ */
+ public void glUnlockArraysEXT (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ public void glActiveTextureARB (
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClientActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ public void glClientActiveTextureARB (
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dARB ( GLenum target , GLdouble s ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord1dARB (
+ int target,
+ double s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord1dvARB (
+ int target,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fARB ( GLenum target , GLfloat s ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord1fARB (
+ int target,
+ float s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord1fvARB (
+ int target,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1iARB ( GLenum target , GLint s ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord1iARB (
+ int target,
+ int s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord1ivARB (
+ int target,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1sARB ( GLenum target , GLshort s ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord1sARB (
+ int target,
+ short s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord1svARB (
+ int target,
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dARB ( GLenum target , GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord2dARB (
+ int target,
+ double s,
+ double t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord2dvARB (
+ int target,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fARB ( GLenum target , GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord2fARB (
+ int target,
+ float s,
+ float t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord2fvARB (
+ int target,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2iARB ( GLenum target , GLint s , GLint t ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord2iARB (
+ int target,
+ int s,
+ int t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord2ivARB (
+ int target,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2sARB ( GLenum target , GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord2sARB (
+ int target,
+ short s,
+ short t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord2svARB (
+ int target,
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord3dARB (
+ int target,
+ double s,
+ double t,
+ double r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord3dvARB (
+ int target,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord3fARB (
+ int target,
+ float s,
+ float t,
+ float r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord3fvARB (
+ int target,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3iARB ( GLenum target , GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord3iARB (
+ int target,
+ int s,
+ int t,
+ int r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord3ivARB (
+ int target,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3sARB ( GLenum target , GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord3sARB (
+ int target,
+ short s,
+ short t,
+ short r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord3svARB (
+ int target,
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord4dARB (
+ int target,
+ double s,
+ double t,
+ double r,
+ double q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord4dvARB (
+ int target,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord4fARB (
+ int target,
+ float s,
+ float t,
+ float r,
+ float q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord4fvARB (
+ int target,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4iARB ( GLenum target , GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord4iARB (
+ int target,
+ int s,
+ int t,
+ int r,
+ int q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord4ivARB (
+ int target,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4sARB ( GLenum target , GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord4sARB (
+ int target,
+ short s,
+ short t,
+ short r,
+ short q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ public void glMultiTexCoord4svARB (
+ int target,
+ short[] v
+ ) ;
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
+
+
+}
+
diff --git a/gl4java/GLFuncJauJNI.java b/gl4java/GLFuncJauJNI.java
new file mode 100644
index 0000000..0293576
--- /dev/null
+++ b/gl4java/GLFuncJauJNI.java
@@ -0,0 +1,6997 @@
+/* WARNING ! WARNING *** THIS FILE IS GENERATED BY C2J !!!
+
+ DO NOT MAKE ANY CHANGES *** MAKE CHANGES IN THE SKELETON FILES !!!
+*/
+
+
+/**
+ * @(#) GLFuncJauJNI.java
+ */
+
+
+package gl4java;
+
+/**
+ * The default implementation class for OpenGL native function mapping
+ *
+ * @version 2.00, 21. April 1999
+ * @author Sven Goethel
+ */
+public class GLFuncJauJNI
+ implements GLFunc
+{
+
+
+
+public final native String glGetString ( int name ) ;
+
+public final native String getNativeVendor ( ) ;
+public final native String getNativeVersion ( ) ;
+
+public final String getClassVendor ( )
+{ return "Jausoft - Sven Goethel Software Development"; }
+
+public final String getClassVersion ( )
+{ return "2.4.1.0"; }
+
+
+
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: gl-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearIndex ( GLfloat c ) ;
+ * </pre>
+ */
+ public final native void glClearIndex (
+ float c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ public final native void glClearColor (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClear ( GLbitfield mask ) ;
+ * </pre>
+ */
+ public final native void glClear (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexMask ( GLuint mask ) ;
+ * </pre>
+ */
+ public final native void glIndexMask (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMask ( GLboolean red , GLboolean green , GLboolean blue , GLboolean alpha ) ;
+ * </pre>
+ */
+ public final native void glColorMask (
+ boolean red,
+ boolean green,
+ boolean blue,
+ boolean alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAlphaFunc ( GLenum func , GLclampf ref ) ;
+ * </pre>
+ */
+ public final native void glAlphaFunc (
+ int func,
+ float ref
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendFunc ( GLenum sfactor , GLenum dfactor ) ;
+ * </pre>
+ */
+ public final native void glBlendFunc (
+ int sfactor,
+ int dfactor
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLogicOp ( GLenum opcode ) ;
+ * </pre>
+ */
+ public final native void glLogicOp (
+ int opcode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCullFace ( GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glCullFace (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrontFace ( GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glFrontFace (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointSize ( GLfloat size ) ;
+ * </pre>
+ */
+ public final native void glPointSize (
+ float size
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineWidth ( GLfloat width ) ;
+ * </pre>
+ */
+ public final native void glLineWidth (
+ float width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineStipple ( GLint factor , GLushort pattern ) ;
+ * </pre>
+ */
+ public final native void glLineStipple (
+ int factor,
+ short pattern
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonMode ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glPolygonMode (
+ int face,
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffset ( GLfloat factor , GLfloat units ) ;
+ * </pre>
+ */
+ public final native void glPolygonOffset (
+ float factor,
+ float units
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonStipple ( const GLubyte * mask ) ;
+ * </pre>
+ */
+ public final native void glPolygonStipple (
+ byte[] mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPolygonStipple ( GLubyte * mask ) ;
+ * </pre>
+ */
+ public final native void glGetPolygonStipple (
+ byte[] mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlag ( GLboolean flag ) ;
+ * </pre>
+ */
+ public final native void glEdgeFlag (
+ boolean flag
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagv ( const GLboolean * flag ) ;
+ * </pre>
+ */
+ public final native void glEdgeFlagv (
+ boolean[] flag
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScissor ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public final native void glScissor (
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClipPlane ( GLenum plane , const GLdouble * equation ) ;
+ * </pre>
+ */
+ public final native void glClipPlane (
+ int plane,
+ double[] equation
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetClipPlane ( GLenum plane , GLdouble * equation ) ;
+ * </pre>
+ */
+ public final native void glGetClipPlane (
+ int plane,
+ double[] equation
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glDrawBuffer (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glReadBuffer (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnable ( GLenum cap ) ;
+ * </pre>
+ */
+ public final native void glEnable (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisable ( GLenum cap ) ;
+ * </pre>
+ */
+ public final native void glDisable (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsEnabled ( GLenum cap ) ;
+ * </pre>
+ */
+ public final native boolean glIsEnabled (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ public final native void glEnableClientState (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ public final native void glDisableClientState (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetBooleanv ( GLenum pname , GLboolean * params ) ;
+ * </pre>
+ */
+ public final native void glGetBooleanv (
+ int pname,
+ boolean[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetDoublev ( GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ public final native void glGetDoublev (
+ int pname,
+ double[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetFloatv ( GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetFloatv (
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetIntegerv ( GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetIntegerv (
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ public final native void glPushAttrib (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopAttrib ( void ) ;
+ * </pre>
+ */
+ public final native void glPopAttrib (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushClientAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ public final native void glPushClientAttrib (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopClientAttrib ( void ) ;
+ * </pre>
+ */
+ public final native void glPopClientAttrib (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint glRenderMode ( GLenum mode ) ;
+ * </pre>
+ */
+ public final native int glRenderMode (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLenum glGetError ( void ) ;
+ * </pre>
+ */
+ public final native int glGetError (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFinish ( void ) ;
+ * </pre>
+ */
+ public final native void glFinish (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFlush ( void ) ;
+ * </pre>
+ */
+ public final native void glFlush (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHint ( GLenum target , GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glHint (
+ int target,
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearDepth ( GLclampd depth ) ;
+ * </pre>
+ */
+ public final native void glClearDepth (
+ double depth
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthFunc ( GLenum func ) ;
+ * </pre>
+ */
+ public final native void glDepthFunc (
+ int func
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthMask ( GLboolean flag ) ;
+ * </pre>
+ */
+ public final native void glDepthMask (
+ boolean flag
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthRange ( GLclampd near_val , GLclampd far_val ) ;
+ * </pre>
+ */
+ public final native void glDepthRange (
+ double near_val,
+ double far_val
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearAccum ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ public final native void glClearAccum (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAccum ( GLenum op , GLfloat value ) ;
+ * </pre>
+ */
+ public final native void glAccum (
+ int op,
+ float value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMatrixMode ( GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glMatrixMode (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glOrtho ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ public final native void glOrtho (
+ double left,
+ double right,
+ double bottom,
+ double top,
+ double near_val,
+ double far_val
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrustum ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ public final native void glFrustum (
+ double left,
+ double right,
+ double bottom,
+ double top,
+ double near_val,
+ double far_val
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glViewport ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public final native void glViewport (
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushMatrix ( void ) ;
+ * </pre>
+ */
+ public final native void glPushMatrix (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopMatrix ( void ) ;
+ * </pre>
+ */
+ public final native void glPopMatrix (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadIdentity ( void ) ;
+ * </pre>
+ */
+ public final native void glLoadIdentity (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ public final native void glLoadMatrixd (
+ double[] m
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ public final native void glLoadMatrixf (
+ float[] m
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ public final native void glMultMatrixd (
+ double[] m
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ public final native void glMultMatrixf (
+ float[] m
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotated ( GLdouble angle , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public final native void glRotated (
+ double angle,
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotatef ( GLfloat angle , GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public final native void glRotatef (
+ float angle,
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScaled ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public final native void glScaled (
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScalef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public final native void glScalef (
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslated ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public final native void glTranslated (
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslatef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public final native void glTranslatef (
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsList ( GLuint list ) ;
+ * </pre>
+ */
+ public final native boolean glIsList (
+ int list
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteLists ( GLuint list , GLsizei range ) ;
+ * </pre>
+ */
+ public final native void glDeleteLists (
+ int list,
+ int range
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLuint glGenLists ( GLsizei range ) ;
+ * </pre>
+ */
+ public final native int glGenLists (
+ int range
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNewList ( GLuint list , GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glNewList (
+ int list,
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEndList ( void ) ;
+ * </pre>
+ */
+ public final native void glEndList (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallList ( GLuint list ) ;
+ * </pre>
+ */
+ public final native void glCallList (
+ int list
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallLists ( GLsizei n , GLenum type , const GLvoid * lists ) ;
+ * </pre>
+ */
+ public final native void glCallLists (
+ int n,
+ int type,
+ byte[] lists
+ ) ;
+ public final native void glCallLists (
+ int n,
+ int type,
+ short[] lists
+ ) ;
+ public final native void glCallLists (
+ int n,
+ int type,
+ int[] lists
+ ) ;
+ public final native void glCallLists (
+ int n,
+ int type,
+ float[] lists
+ ) ;
+ public final native void glCallLists (
+ int n,
+ int type,
+ double[] lists
+ ) ;
+ public final native void glCallLists (
+ int n,
+ int type,
+ boolean[] lists
+ ) ;
+ public final native void glCallLists (
+ int n,
+ int type,
+ long[] lists
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glListBase ( GLuint base ) ;
+ * </pre>
+ */
+ public final native void glListBase (
+ int base
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBegin ( GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glBegin (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnd ( void ) ;
+ * </pre>
+ */
+ public final native void glEnd (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ public final native void glVertex2d (
+ double x,
+ double y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ public final native void glVertex2f (
+ float x,
+ float y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ public final native void glVertex2i (
+ int x,
+ int y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ public final native void glVertex2s (
+ short x,
+ short y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public final native void glVertex3d (
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public final native void glVertex3f (
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ public final native void glVertex3i (
+ int x,
+ int y,
+ int z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ public final native void glVertex3s (
+ short x,
+ short y,
+ short z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ public final native void glVertex4d (
+ double x,
+ double y,
+ double z,
+ double w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ public final native void glVertex4f (
+ float x,
+ float y,
+ float z,
+ float w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ public final native void glVertex4i (
+ int x,
+ int y,
+ int z,
+ int w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ public final native void glVertex4s (
+ short x,
+ short y,
+ short z,
+ short w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glVertex2dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glVertex2fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glVertex2iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glVertex2sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glVertex3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glVertex3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glVertex3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glVertex3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glVertex4dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glVertex4fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glVertex4iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glVertex4sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3b ( GLbyte nx , GLbyte ny , GLbyte nz ) ;
+ * </pre>
+ */
+ public final native void glNormal3b (
+ byte nx,
+ byte ny,
+ byte nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3d ( GLdouble nx , GLdouble ny , GLdouble nz ) ;
+ * </pre>
+ */
+ public final native void glNormal3d (
+ double nx,
+ double ny,
+ double nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3f ( GLfloat nx , GLfloat ny , GLfloat nz ) ;
+ * </pre>
+ */
+ public final native void glNormal3f (
+ float nx,
+ float ny,
+ float nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3i ( GLint nx , GLint ny , GLint nz ) ;
+ * </pre>
+ */
+ public final native void glNormal3i (
+ int nx,
+ int ny,
+ int nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3s ( GLshort nx , GLshort ny , GLshort nz ) ;
+ * </pre>
+ */
+ public final native void glNormal3s (
+ short nx,
+ short ny,
+ short nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ public final native void glNormal3bv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glNormal3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glNormal3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glNormal3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glNormal3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexd ( GLdouble c ) ;
+ * </pre>
+ */
+ public final native void glIndexd (
+ double c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexf ( GLfloat c ) ;
+ * </pre>
+ */
+ public final native void glIndexf (
+ float c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexi ( GLint c ) ;
+ * </pre>
+ */
+ public final native void glIndexi (
+ int c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexs ( GLshort c ) ;
+ * </pre>
+ */
+ public final native void glIndexs (
+ short c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexub ( GLubyte c ) ;
+ * </pre>
+ */
+ public final native void glIndexub (
+ byte c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexdv ( const GLdouble * c ) ;
+ * </pre>
+ */
+ public final native void glIndexdv (
+ double[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexfv ( const GLfloat * c ) ;
+ * </pre>
+ */
+ public final native void glIndexfv (
+ float[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexiv ( const GLint * c ) ;
+ * </pre>
+ */
+ public final native void glIndexiv (
+ int[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexsv ( const GLshort * c ) ;
+ * </pre>
+ */
+ public final native void glIndexsv (
+ short[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexubv ( const GLubyte * c ) ;
+ * </pre>
+ */
+ public final native void glIndexubv (
+ byte[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3b ( GLbyte red , GLbyte green , GLbyte blue ) ;
+ * </pre>
+ */
+ public final native void glColor3b (
+ byte red,
+ byte green,
+ byte blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3d ( GLdouble red , GLdouble green , GLdouble blue ) ;
+ * </pre>
+ */
+ public final native void glColor3d (
+ double red,
+ double green,
+ double blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3f ( GLfloat red , GLfloat green , GLfloat blue ) ;
+ * </pre>
+ */
+ public final native void glColor3f (
+ float red,
+ float green,
+ float blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3i ( GLint red , GLint green , GLint blue ) ;
+ * </pre>
+ */
+ public final native void glColor3i (
+ int red,
+ int green,
+ int blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3s ( GLshort red , GLshort green , GLshort blue ) ;
+ * </pre>
+ */
+ public final native void glColor3s (
+ short red,
+ short green,
+ short blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ub ( GLubyte red , GLubyte green , GLubyte blue ) ;
+ * </pre>
+ */
+ public final native void glColor3ub (
+ byte red,
+ byte green,
+ byte blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ui ( GLuint red , GLuint green , GLuint blue ) ;
+ * </pre>
+ */
+ public final native void glColor3ui (
+ int red,
+ int green,
+ int blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3us ( GLushort red , GLushort green , GLushort blue ) ;
+ * </pre>
+ */
+ public final native void glColor3us (
+ short red,
+ short green,
+ short blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4b ( GLbyte red , GLbyte green , GLbyte blue , GLbyte alpha ) ;
+ * </pre>
+ */
+ public final native void glColor4b (
+ byte red,
+ byte green,
+ byte blue,
+ byte alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4d ( GLdouble red , GLdouble green , GLdouble blue , GLdouble alpha ) ;
+ * </pre>
+ */
+ public final native void glColor4d (
+ double red,
+ double green,
+ double blue,
+ double alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4f ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ public final native void glColor4f (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4i ( GLint red , GLint green , GLint blue , GLint alpha ) ;
+ * </pre>
+ */
+ public final native void glColor4i (
+ int red,
+ int green,
+ int blue,
+ int alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4s ( GLshort red , GLshort green , GLshort blue , GLshort alpha ) ;
+ * </pre>
+ */
+ public final native void glColor4s (
+ short red,
+ short green,
+ short blue,
+ short alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ub ( GLubyte red , GLubyte green , GLubyte blue , GLubyte alpha ) ;
+ * </pre>
+ */
+ public final native void glColor4ub (
+ byte red,
+ byte green,
+ byte blue,
+ byte alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ui ( GLuint red , GLuint green , GLuint blue , GLuint alpha ) ;
+ * </pre>
+ */
+ public final native void glColor4ui (
+ int red,
+ int green,
+ int blue,
+ int alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4us ( GLushort red , GLushort green , GLushort blue , GLushort alpha ) ;
+ * </pre>
+ */
+ public final native void glColor4us (
+ short red,
+ short green,
+ short blue,
+ short alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ public final native void glColor3bv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glColor3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glColor3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glColor3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glColor3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ public final native void glColor3ubv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ public final native void glColor3uiv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ public final native void glColor3usv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ public final native void glColor4bv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glColor4dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glColor4fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glColor4iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glColor4sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ public final native void glColor4ubv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ public final native void glColor4uiv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ public final native void glColor4usv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1d ( GLdouble s ) ;
+ * </pre>
+ */
+ public final native void glTexCoord1d (
+ double s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1f ( GLfloat s ) ;
+ * </pre>
+ */
+ public final native void glTexCoord1f (
+ float s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1i ( GLint s ) ;
+ * </pre>
+ */
+ public final native void glTexCoord1i (
+ int s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1s ( GLshort s ) ;
+ * </pre>
+ */
+ public final native void glTexCoord1s (
+ short s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2d ( GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ public final native void glTexCoord2d (
+ double s,
+ double t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2f ( GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ public final native void glTexCoord2f (
+ float s,
+ float t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2i ( GLint s , GLint t ) ;
+ * </pre>
+ */
+ public final native void glTexCoord2i (
+ int s,
+ int t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2s ( GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ public final native void glTexCoord2s (
+ short s,
+ short t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3d ( GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ public final native void glTexCoord3d (
+ double s,
+ double t,
+ double r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3f ( GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ public final native void glTexCoord3f (
+ float s,
+ float t,
+ float r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3i ( GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ public final native void glTexCoord3i (
+ int s,
+ int t,
+ int r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3s ( GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ public final native void glTexCoord3s (
+ short s,
+ short t,
+ short r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4d ( GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ public final native void glTexCoord4d (
+ double s,
+ double t,
+ double r,
+ double q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4f ( GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ public final native void glTexCoord4f (
+ float s,
+ float t,
+ float r,
+ float q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4i ( GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ public final native void glTexCoord4i (
+ int s,
+ int t,
+ int r,
+ int q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4s ( GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ public final native void glTexCoord4s (
+ short s,
+ short t,
+ short r,
+ short q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord1dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord1fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord1iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord1sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord2dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord2fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord2iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord2sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord4dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord4fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord4iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glTexCoord4sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ public final native void glRasterPos2d (
+ double x,
+ double y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ public final native void glRasterPos2f (
+ float x,
+ float y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ public final native void glRasterPos2i (
+ int x,
+ int y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ public final native void glRasterPos2s (
+ short x,
+ short y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public final native void glRasterPos3d (
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public final native void glRasterPos3f (
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ public final native void glRasterPos3i (
+ int x,
+ int y,
+ int z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ public final native void glRasterPos3s (
+ short x,
+ short y,
+ short z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ public final native void glRasterPos4d (
+ double x,
+ double y,
+ double z,
+ double w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ public final native void glRasterPos4f (
+ float x,
+ float y,
+ float z,
+ float w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ public final native void glRasterPos4i (
+ int x,
+ int y,
+ int z,
+ int w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ public final native void glRasterPos4s (
+ short x,
+ short y,
+ short z,
+ short w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos2dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos2fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos2iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos2sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos4dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos4fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos4iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glRasterPos4sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectd ( GLdouble x1 , GLdouble y1 , GLdouble x2 , GLdouble y2 ) ;
+ * </pre>
+ */
+ public final native void glRectd (
+ double x1,
+ double y1,
+ double x2,
+ double y2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectf ( GLfloat x1 , GLfloat y1 , GLfloat x2 , GLfloat y2 ) ;
+ * </pre>
+ */
+ public final native void glRectf (
+ float x1,
+ float y1,
+ float x2,
+ float y2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRecti ( GLint x1 , GLint y1 , GLint x2 , GLint y2 ) ;
+ * </pre>
+ */
+ public final native void glRecti (
+ int x1,
+ int y1,
+ int x2,
+ int y2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRects ( GLshort x1 , GLshort y1 , GLshort x2 , GLshort y2 ) ;
+ * </pre>
+ */
+ public final native void glRects (
+ short x1,
+ short y1,
+ short x2,
+ short y2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectdv ( const GLdouble * v1 , const GLdouble * v2 ) ;
+ * </pre>
+ */
+ public final native void glRectdv (
+ double[] v1,
+ double[] v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectfv ( const GLfloat * v1 , const GLfloat * v2 ) ;
+ * </pre>
+ */
+ public final native void glRectfv (
+ float[] v1,
+ float[] v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectiv ( const GLint * v1 , const GLint * v2 ) ;
+ * </pre>
+ */
+ public final native void glRectiv (
+ int[] v1,
+ int[] v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectsv ( const GLshort * v1 , const GLshort * v2 ) ;
+ * </pre>
+ */
+ public final native void glRectsv (
+ short[] v1,
+ short[] v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public final native void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public final native void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public final native void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public final native void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public final native void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public final native void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public final native void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public final native void glNormalPointer (
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public final native void glNormalPointer (
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public final native void glNormalPointer (
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public final native void glNormalPointer (
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public final native void glNormalPointer (
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public final native void glNormalPointer (
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public final native void glNormalPointer (
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public final native void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public final native void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public final native void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public final native void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public final native void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public final native void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public final native void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public final native void glIndexPointer (
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public final native void glIndexPointer (
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public final native void glIndexPointer (
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public final native void glIndexPointer (
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public final native void glIndexPointer (
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public final native void glIndexPointer (
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public final native void glIndexPointer (
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public final native void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public final native void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public final native void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public final native void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public final native void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public final native void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public final native void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointer ( GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public final native void glEdgeFlagPointer (
+ int stride,
+ byte[] ptr
+ ) ;
+ public final native void glEdgeFlagPointer (
+ int stride,
+ short[] ptr
+ ) ;
+ public final native void glEdgeFlagPointer (
+ int stride,
+ int[] ptr
+ ) ;
+ public final native void glEdgeFlagPointer (
+ int stride,
+ float[] ptr
+ ) ;
+ public final native void glEdgeFlagPointer (
+ int stride,
+ double[] ptr
+ ) ;
+ public final native void glEdgeFlagPointer (
+ int stride,
+ boolean[] ptr
+ ) ;
+ public final native void glEdgeFlagPointer (
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointerv ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ public final native void glGetPointerv (
+ int pname,
+ byte[][] params
+ ) ;
+ public final native void glGetPointerv (
+ int pname,
+ short[][] params
+ ) ;
+ public final native void glGetPointerv (
+ int pname,
+ int[][] params
+ ) ;
+ public final native void glGetPointerv (
+ int pname,
+ float[][] params
+ ) ;
+ public final native void glGetPointerv (
+ int pname,
+ double[][] params
+ ) ;
+ public final native void glGetPointerv (
+ int pname,
+ boolean[][] params
+ ) ;
+ public final native void glGetPointerv (
+ int pname,
+ long[][] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElement ( GLint i ) ;
+ * </pre>
+ */
+ public final native void glArrayElement (
+ int i
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArrays ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ public final native void glDrawArrays (
+ int mode,
+ int first,
+ int count
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawElements ( GLenum mode , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ public final native void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ byte[] indices
+ ) ;
+ public final native void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ short[] indices
+ ) ;
+ public final native void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ int[] indices
+ ) ;
+ public final native void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ float[] indices
+ ) ;
+ public final native void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ double[] indices
+ ) ;
+ public final native void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ boolean[] indices
+ ) ;
+ public final native void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ long[] indices
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInterleavedArrays ( GLenum format , GLsizei stride , const GLvoid * pointer ) ;
+ * </pre>
+ */
+ public final native void glInterleavedArrays (
+ int format,
+ int stride,
+ byte[] pointer
+ ) ;
+ public final native void glInterleavedArrays (
+ int format,
+ int stride,
+ short[] pointer
+ ) ;
+ public final native void glInterleavedArrays (
+ int format,
+ int stride,
+ int[] pointer
+ ) ;
+ public final native void glInterleavedArrays (
+ int format,
+ int stride,
+ float[] pointer
+ ) ;
+ public final native void glInterleavedArrays (
+ int format,
+ int stride,
+ double[] pointer
+ ) ;
+ public final native void glInterleavedArrays (
+ int format,
+ int stride,
+ boolean[] pointer
+ ) ;
+ public final native void glInterleavedArrays (
+ int format,
+ int stride,
+ long[] pointer
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glShadeModel ( GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glShadeModel (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightf ( GLenum light , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public final native void glLightf (
+ int light,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLighti ( GLenum light , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public final native void glLighti (
+ int light,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightfv ( GLenum light , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glLightfv (
+ int light,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightiv ( GLenum light , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public final native void glLightiv (
+ int light,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightfv ( GLenum light , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetLightfv (
+ int light,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightiv ( GLenum light , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetLightiv (
+ int light,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public final native void glLightModelf (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeli ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public final native void glLightModeli (
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glLightModelfv (
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeliv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public final native void glLightModeliv (
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialf ( GLenum face , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public final native void glMaterialf (
+ int face,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMateriali ( GLenum face , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public final native void glMateriali (
+ int face,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialfv ( GLenum face , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glMaterialfv (
+ int face,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialiv ( GLenum face , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public final native void glMaterialiv (
+ int face,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialfv ( GLenum face , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetMaterialfv (
+ int face,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialiv ( GLenum face , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetMaterialiv (
+ int face,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMaterial ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glColorMaterial (
+ int face,
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelZoom ( GLfloat xfactor , GLfloat yfactor ) ;
+ * </pre>
+ */
+ public final native void glPixelZoom (
+ float xfactor,
+ float yfactor
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStoref ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public final native void glPixelStoref (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStorei ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public final native void glPixelStorei (
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public final native void glPixelTransferf (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public final native void glPixelTransferi (
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapfv ( GLenum map , GLint mapsize , const GLfloat * values ) ;
+ * </pre>
+ */
+ public final native void glPixelMapfv (
+ int map,
+ int mapsize,
+ float[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapuiv ( GLenum map , GLint mapsize , const GLuint * values ) ;
+ * </pre>
+ */
+ public final native void glPixelMapuiv (
+ int map,
+ int mapsize,
+ int[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapusv ( GLenum map , GLint mapsize , const GLushort * values ) ;
+ * </pre>
+ */
+ public final native void glPixelMapusv (
+ int map,
+ int mapsize,
+ short[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapfv ( GLenum map , GLfloat * values ) ;
+ * </pre>
+ */
+ public final native void glGetPixelMapfv (
+ int map,
+ float[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapuiv ( GLenum map , GLuint * values ) ;
+ * </pre>
+ */
+ public final native void glGetPixelMapuiv (
+ int map,
+ int[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapusv ( GLenum map , GLushort * values ) ;
+ * </pre>
+ */
+ public final native void glGetPixelMapusv (
+ int map,
+ short[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBitmap ( GLsizei width , GLsizei height , GLfloat xorig , GLfloat yorig , GLfloat xmove , GLfloat ymove , const GLubyte * bitmap ) ;
+ * </pre>
+ */
+ public final native void glBitmap (
+ int width,
+ int height,
+ float xorig,
+ float yorig,
+ float xmove,
+ float ymove,
+ byte[] bitmap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ public final native void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public final native void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public final native void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public final native void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public final native void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public final native void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public final native void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawPixels ( GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public final native void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public final native void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public final native void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public final native void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public final native void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public final native void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public final native void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum type ) ;
+ * </pre>
+ */
+ public final native void glCopyPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilFunc ( GLenum func , GLint ref , GLuint mask ) ;
+ * </pre>
+ */
+ public final native void glStencilFunc (
+ int func,
+ int ref,
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilMask ( GLuint mask ) ;
+ * </pre>
+ */
+ public final native void glStencilMask (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilOp ( GLenum fail , GLenum zfail , GLenum zpass ) ;
+ * </pre>
+ */
+ public final native void glStencilOp (
+ int fail,
+ int zfail,
+ int zpass
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearStencil ( GLint s ) ;
+ * </pre>
+ */
+ public final native void glClearStencil (
+ int s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGend ( GLenum coord , GLenum pname , GLdouble param ) ;
+ * </pre>
+ */
+ public final native void glTexGend (
+ int coord,
+ int pname,
+ double param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenf ( GLenum coord , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public final native void glTexGenf (
+ int coord,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeni ( GLenum coord , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public final native void glTexGeni (
+ int coord,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGendv ( GLenum coord , GLenum pname , const GLdouble * params ) ;
+ * </pre>
+ */
+ public final native void glTexGendv (
+ int coord,
+ int pname,
+ double[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenfv ( GLenum coord , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glTexGenfv (
+ int coord,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeniv ( GLenum coord , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public final native void glTexGeniv (
+ int coord,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGendv ( GLenum coord , GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ public final native void glGetTexGendv (
+ int coord,
+ int pname,
+ double[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGenfv ( GLenum coord , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetTexGenfv (
+ int coord,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGeniv ( GLenum coord , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetTexGeniv (
+ int coord,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public final native void glTexEnvf (
+ int target,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvi ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public final native void glTexEnvi (
+ int target,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glTexEnvfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnviv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public final native void glTexEnviv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnvfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetTexEnvfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnviv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetTexEnviv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public final native void glTexParameterf (
+ int target,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteri ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public final native void glTexParameteri (
+ int target,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glTexParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public final native void glTexParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetTexParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetTexParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameterfv ( GLenum target , GLint level , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetTexLevelParameterfv (
+ int target,
+ int level,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameteriv ( GLenum target , GLint level , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetTexLevelParameteriv (
+ int target,
+ int level,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage1D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public final native void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public final native void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public final native void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public final native void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public final native void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public final native void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public final native void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage2D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public final native void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public final native void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public final native void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public final native void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public final native void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public final native void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public final native void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexImage ( GLenum target , GLint level , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ public final native void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public final native void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public final native void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public final native void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public final native void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public final native void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public final native void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTextures ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ public final native void glGenTextures (
+ int n,
+ int[] textures
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTextures ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ public final native void glDeleteTextures (
+ int n,
+ int[] textures
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTexture ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ public final native void glBindTexture (
+ int target,
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTextures ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ public final native void glPrioritizeTextures (
+ int n,
+ int[] textures,
+ float[] priorities
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResident ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ public final native boolean glAreTexturesResident (
+ int n,
+ int[] textures,
+ boolean[] residences
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTexture ( GLuint texture ) ;
+ * </pre>
+ */
+ public final native boolean glIsTexture (
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLsizei width , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public final native void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public final native void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public final native void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public final native void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public final native void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public final native void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public final native void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public final native void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public final native void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public final native void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public final native void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public final native void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public final native void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public final native void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage1D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLint border ) ;
+ * </pre>
+ */
+ public final native void glCopyTexImage1D (
+ int target,
+ int level,
+ int internalformat,
+ int x,
+ int y,
+ int width,
+ int border
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage2D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height , GLint border ) ;
+ * </pre>
+ */
+ public final native void glCopyTexImage2D (
+ int target,
+ int level,
+ int internalformat,
+ int x,
+ int y,
+ int width,
+ int height,
+ int border
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ public final native void glCopyTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int x,
+ int y,
+ int width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public final native void glCopyTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint stride , GLint order , const GLdouble * points ) ;
+ * </pre>
+ */
+ public final native void glMap1d (
+ int target,
+ double u1,
+ double u2,
+ int stride,
+ int order,
+ double[] points
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint stride , GLint order , const GLfloat * points ) ;
+ * </pre>
+ */
+ public final native void glMap1f (
+ int target,
+ float u1,
+ float u2,
+ int stride,
+ int order,
+ float[] points
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint ustride , GLint uorder , GLdouble v1 , GLdouble v2 , GLint vstride , GLint vorder , const GLdouble * points ) ;
+ * </pre>
+ */
+ public final native void glMap2d (
+ int target,
+ double u1,
+ double u2,
+ int ustride,
+ int uorder,
+ double v1,
+ double v2,
+ int vstride,
+ int vorder,
+ double[] points
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint ustride , GLint uorder , GLfloat v1 , GLfloat v2 , GLint vstride , GLint vorder , const GLfloat * points ) ;
+ * </pre>
+ */
+ public final native void glMap2f (
+ int target,
+ float u1,
+ float u2,
+ int ustride,
+ int uorder,
+ float v1,
+ float v2,
+ int vstride,
+ int vorder,
+ float[] points
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapdv ( GLenum target , GLenum query , GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glGetMapdv (
+ int target,
+ int query,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapfv ( GLenum target , GLenum query , GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glGetMapfv (
+ int target,
+ int query,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapiv ( GLenum target , GLenum query , GLint * v ) ;
+ * </pre>
+ */
+ public final native void glGetMapiv (
+ int target,
+ int query,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1d ( GLdouble u ) ;
+ * </pre>
+ */
+ public final native void glEvalCoord1d (
+ double u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1f ( GLfloat u ) ;
+ * </pre>
+ */
+ public final native void glEvalCoord1f (
+ float u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ public final native void glEvalCoord1dv (
+ double[] u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ public final native void glEvalCoord1fv (
+ float[] u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2d ( GLdouble u , GLdouble v ) ;
+ * </pre>
+ */
+ public final native void glEvalCoord2d (
+ double u,
+ double v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2f ( GLfloat u , GLfloat v ) ;
+ * </pre>
+ */
+ public final native void glEvalCoord2f (
+ float u,
+ float v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ public final native void glEvalCoord2dv (
+ double[] u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ public final native void glEvalCoord2fv (
+ float[] u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1d ( GLint un , GLdouble u1 , GLdouble u2 ) ;
+ * </pre>
+ */
+ public final native void glMapGrid1d (
+ int un,
+ double u1,
+ double u2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1f ( GLint un , GLfloat u1 , GLfloat u2 ) ;
+ * </pre>
+ */
+ public final native void glMapGrid1f (
+ int un,
+ float u1,
+ float u2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2d ( GLint un , GLdouble u1 , GLdouble u2 , GLint vn , GLdouble v1 , GLdouble v2 ) ;
+ * </pre>
+ */
+ public final native void glMapGrid2d (
+ int un,
+ double u1,
+ double u2,
+ int vn,
+ double v1,
+ double v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2f ( GLint un , GLfloat u1 , GLfloat u2 , GLint vn , GLfloat v1 , GLfloat v2 ) ;
+ * </pre>
+ */
+ public final native void glMapGrid2f (
+ int un,
+ float u1,
+ float u2,
+ int vn,
+ float v1,
+ float v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint1 ( GLint i ) ;
+ * </pre>
+ */
+ public final native void glEvalPoint1 (
+ int i
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint2 ( GLint i , GLint j ) ;
+ * </pre>
+ */
+ public final native void glEvalPoint2 (
+ int i,
+ int j
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh1 ( GLenum mode , GLint i1 , GLint i2 ) ;
+ * </pre>
+ */
+ public final native void glEvalMesh1 (
+ int mode,
+ int i1,
+ int i2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh2 ( GLenum mode , GLint i1 , GLint i2 , GLint j1 , GLint j2 ) ;
+ * </pre>
+ */
+ public final native void glEvalMesh2 (
+ int mode,
+ int i1,
+ int i2,
+ int j1,
+ int j2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public final native void glFogf (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public final native void glFogi (
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glFogfv (
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogiv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public final native void glFogiv (
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFeedbackBuffer ( GLsizei size , GLenum type , GLfloat * buffer ) ;
+ * </pre>
+ */
+ public final native void glFeedbackBuffer (
+ int size,
+ int type,
+ float[] buffer
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPassThrough ( GLfloat token ) ;
+ * </pre>
+ */
+ public final native void glPassThrough (
+ float token
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSelectBuffer ( GLsizei size , GLuint * buffer ) ;
+ * </pre>
+ */
+ public final native void glSelectBuffer (
+ int size,
+ int[] buffer
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInitNames ( void ) ;
+ * </pre>
+ */
+ public final native void glInitNames (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadName ( GLuint name ) ;
+ * </pre>
+ */
+ public final native void glLoadName (
+ int name
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushName ( GLuint name ) ;
+ * </pre>
+ */
+ public final native void glPushName (
+ int name
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopName ( void ) ;
+ * </pre>
+ */
+ public final native void glPopName (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawRangeElements ( GLenum mode , GLuint start , GLuint end , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ public final native void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ byte[] indices
+ ) ;
+ public final native void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ short[] indices
+ ) ;
+ public final native void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ int[] indices
+ ) ;
+ public final native void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ float[] indices
+ ) ;
+ public final native void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ double[] indices
+ ) ;
+ public final native void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ boolean[] indices
+ ) ;
+ public final native void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ long[] indices
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public final native void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public final native void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public final native void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public final native void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public final native void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public final native void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public final native void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public final native void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public final native void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public final native void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public final native void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public final native void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public final native void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public final native void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public final native void glCopyTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTable ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ public final native void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ byte[] table
+ ) ;
+ public final native void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ short[] table
+ ) ;
+ public final native void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ int[] table
+ ) ;
+ public final native void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ float[] table
+ ) ;
+ public final native void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ double[] table
+ ) ;
+ public final native void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ boolean[] table
+ ) ;
+ public final native void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ long[] table
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTable ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ public final native void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ byte[] data
+ ) ;
+ public final native void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ short[] data
+ ) ;
+ public final native void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ int[] data
+ ) ;
+ public final native void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ float[] data
+ ) ;
+ public final native void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ double[] data
+ ) ;
+ public final native void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ boolean[] data
+ ) ;
+ public final native void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ long[] data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public final native void glColorTableParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glColorTableParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorSubTable ( GLenum target , GLsizei start , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ public final native void glCopyColorSubTable (
+ int target,
+ int start,
+ int x,
+ int y,
+ int width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorTable ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ public final native void glCopyColorTable (
+ int target,
+ int internalformat,
+ int x,
+ int y,
+ int width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTable ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ public final native void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ byte[] table
+ ) ;
+ public final native void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ short[] table
+ ) ;
+ public final native void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ int[] table
+ ) ;
+ public final native void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ float[] table
+ ) ;
+ public final native void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ double[] table
+ ) ;
+ public final native void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ boolean[] table
+ ) ;
+ public final native void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ long[] table
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetColorTableParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetColorTableParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquation ( GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glBlendEquation (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ public final native void glBlendColor (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHistogram ( GLenum target , GLsizei width , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ public final native void glHistogram (
+ int target,
+ int width,
+ int internalformat,
+ boolean sink
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetHistogram ( GLenum target ) ;
+ * </pre>
+ */
+ public final native void glResetHistogram (
+ int target
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogram ( GLenum target , GLboolean reset , GLenum format , GLenum type , GLvoid * values ) ;
+ * </pre>
+ */
+ public final native void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ byte[] values
+ ) ;
+ public final native void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ short[] values
+ ) ;
+ public final native void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ int[] values
+ ) ;
+ public final native void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ float[] values
+ ) ;
+ public final native void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ double[] values
+ ) ;
+ public final native void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ boolean[] values
+ ) ;
+ public final native void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ long[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetHistogramParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetHistogramParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMinmax ( GLenum target , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ public final native void glMinmax (
+ int target,
+ int internalformat,
+ boolean sink
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetMinmax ( GLenum target ) ;
+ * </pre>
+ */
+ public final native void glResetMinmax (
+ int target
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmax ( GLenum target , GLboolean reset , GLenum format , GLenum types , GLvoid * values ) ;
+ * </pre>
+ */
+ public final native void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ byte[] values
+ ) ;
+ public final native void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ short[] values
+ ) ;
+ public final native void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ int[] values
+ ) ;
+ public final native void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ float[] values
+ ) ;
+ public final native void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ double[] values
+ ) ;
+ public final native void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ boolean[] values
+ ) ;
+ public final native void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ long[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetMinmaxParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetMinmaxParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter1D ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ public final native void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ byte[] image
+ ) ;
+ public final native void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ short[] image
+ ) ;
+ public final native void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ int[] image
+ ) ;
+ public final native void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ float[] image
+ ) ;
+ public final native void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ double[] image
+ ) ;
+ public final native void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ boolean[] image
+ ) ;
+ public final native void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ long[] image
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ public final native void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] image
+ ) ;
+ public final native void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] image
+ ) ;
+ public final native void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] image
+ ) ;
+ public final native void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] image
+ ) ;
+ public final native void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] image
+ ) ;
+ public final native void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] image
+ ) ;
+ public final native void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] image
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterf ( GLenum target , GLenum pname , GLfloat params ) ;
+ * </pre>
+ */
+ public final native void glConvolutionParameterf (
+ int target,
+ int pname,
+ float params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glConvolutionParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteri ( GLenum target , GLenum pname , GLint params ) ;
+ * </pre>
+ */
+ public final native void glConvolutionParameteri (
+ int target,
+ int pname,
+ int params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public final native void glConvolutionParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter1D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ public final native void glCopyConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int x,
+ int y,
+ int width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter2D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public final native void glCopyConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionFilter ( GLenum target , GLenum format , GLenum type , GLvoid * image ) ;
+ * </pre>
+ */
+ public final native void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ byte[] image
+ ) ;
+ public final native void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ short[] image
+ ) ;
+ public final native void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ int[] image
+ ) ;
+ public final native void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ float[] image
+ ) ;
+ public final native void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ double[] image
+ ) ;
+ public final native void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ boolean[] image
+ ) ;
+ public final native void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ long[] image
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetConvolutionParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetConvolutionParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSeparableFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * row , const GLvoid * column ) ;
+ * </pre>
+ */
+ public final native void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] row,
+ byte[] column
+ ) ;
+ public final native void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] row,
+ short[] column
+ ) ;
+ public final native void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] row,
+ int[] column
+ ) ;
+ public final native void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] row,
+ float[] column
+ ) ;
+ public final native void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] row,
+ double[] column
+ ) ;
+ public final native void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] row,
+ boolean[] column
+ ) ;
+ public final native void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] row,
+ long[] column
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetSeparableFilter ( GLenum target , GLenum format , GLenum type , GLvoid * row , GLvoid * column , GLvoid * span ) ;
+ * </pre>
+ */
+ public final native void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ byte[] row,
+ byte[] column,
+ byte[] span
+ ) ;
+ public final native void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ short[] row,
+ short[] column,
+ short[] span
+ ) ;
+ public final native void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ int[] row,
+ int[] column,
+ int[] span
+ ) ;
+ public final native void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ float[] row,
+ float[] column,
+ float[] span
+ ) ;
+ public final native void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ double[] row,
+ double[] column,
+ double[] span
+ ) ;
+ public final native void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ boolean[] row,
+ boolean[] column,
+ boolean[] span
+ ) ;
+ public final native void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ long[] row,
+ long[] column,
+ long[] span
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColorEXT ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ public final native void glBlendColorEXT (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffsetEXT ( GLfloat factor , GLfloat bias ) ;
+ * </pre>
+ */
+ public final native void glPolygonOffsetEXT (
+ float factor,
+ float bias
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3DEXT ( GLenum target , GLint level , GLenum internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public final native void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public final native void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public final native void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public final native void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public final native void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public final native void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public final native void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public final native void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public final native void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public final native void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public final native void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public final native void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public final native void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public final native void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public final native void glCopyTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTexturesEXT ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ public final native void glGenTexturesEXT (
+ int n,
+ int[] textures
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTexturesEXT ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ public final native void glDeleteTexturesEXT (
+ int n,
+ int[] textures
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTextureEXT ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ public final native void glBindTextureEXT (
+ int target,
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTexturesEXT ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ public final native void glPrioritizeTexturesEXT (
+ int n,
+ int[] textures,
+ float[] priorities
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResidentEXT ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ public final native boolean glAreTexturesResidentEXT (
+ int n,
+ int[] textures,
+ boolean[] residences
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTextureEXT ( GLuint texture ) ;
+ * </pre>
+ */
+ public final native boolean glIsTextureEXT (
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public final native void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public final native void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public final native void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public final native void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public final native void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public final native void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public final native void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public final native void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public final native void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public final native void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public final native void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public final native void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public final native void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public final native void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public final native void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public final native void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public final native void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public final native void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public final native void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public final native void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public final native void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public final native void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public final native void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public final native void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public final native void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public final native void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public final native void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public final native void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public final native void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public final native void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public final native void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public final native void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public final native void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public final native void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public final native void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointerEXT ( GLsizei stride , GLsizei count , const GLboolean * ptr ) ;
+ * </pre>
+ */
+ public final native void glEdgeFlagPointerEXT (
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointervEXT ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ public final native void glGetPointervEXT (
+ int pname,
+ byte[][] params
+ ) ;
+ public final native void glGetPointervEXT (
+ int pname,
+ short[][] params
+ ) ;
+ public final native void glGetPointervEXT (
+ int pname,
+ int[][] params
+ ) ;
+ public final native void glGetPointervEXT (
+ int pname,
+ float[][] params
+ ) ;
+ public final native void glGetPointervEXT (
+ int pname,
+ double[][] params
+ ) ;
+ public final native void glGetPointervEXT (
+ int pname,
+ boolean[][] params
+ ) ;
+ public final native void glGetPointervEXT (
+ int pname,
+ long[][] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElementEXT ( GLint i ) ;
+ * </pre>
+ */
+ public final native void glArrayElementEXT (
+ int i
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArraysEXT ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ public final native void glDrawArraysEXT (
+ int mode,
+ int first,
+ int count
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquationEXT ( GLenum mode ) ;
+ * </pre>
+ */
+ public final native void glBlendEquationEXT (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfEXT ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public final native void glPointParameterfEXT (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfvEXT ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glPointParameterfvEXT (
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableEXT ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ public final native void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ byte[] table
+ ) ;
+ public final native void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ short[] table
+ ) ;
+ public final native void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ int[] table
+ ) ;
+ public final native void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ float[] table
+ ) ;
+ public final native void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ double[] table
+ ) ;
+ public final native void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ boolean[] table
+ ) ;
+ public final native void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ long[] table
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTableEXT ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ public final native void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ byte[] data
+ ) ;
+ public final native void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ short[] data
+ ) ;
+ public final native void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ int[] data
+ ) ;
+ public final native void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ float[] data
+ ) ;
+ public final native void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ double[] data
+ ) ;
+ public final native void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ boolean[] data
+ ) ;
+ public final native void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ long[] data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableEXT ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ public final native void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ byte[] table
+ ) ;
+ public final native void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ short[] table
+ ) ;
+ public final native void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ int[] table
+ ) ;
+ public final native void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ float[] table
+ ) ;
+ public final native void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ double[] table
+ ) ;
+ public final native void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ boolean[] table
+ ) ;
+ public final native void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ long[] table
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfvEXT ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public final native void glGetColorTableParameterfvEXT (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterivEXT ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public final native void glGetColorTableParameterivEXT (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLockArraysEXT ( GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ public final native void glLockArraysEXT (
+ int first,
+ int count
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glUnlockArraysEXT ( void ) ;
+ * </pre>
+ */
+ public final native void glUnlockArraysEXT (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ public final native void glActiveTextureARB (
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClientActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ public final native void glClientActiveTextureARB (
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dARB ( GLenum target , GLdouble s ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord1dARB (
+ int target,
+ double s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord1dvARB (
+ int target,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fARB ( GLenum target , GLfloat s ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord1fARB (
+ int target,
+ float s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord1fvARB (
+ int target,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1iARB ( GLenum target , GLint s ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord1iARB (
+ int target,
+ int s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord1ivARB (
+ int target,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1sARB ( GLenum target , GLshort s ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord1sARB (
+ int target,
+ short s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord1svARB (
+ int target,
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dARB ( GLenum target , GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord2dARB (
+ int target,
+ double s,
+ double t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord2dvARB (
+ int target,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fARB ( GLenum target , GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord2fARB (
+ int target,
+ float s,
+ float t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord2fvARB (
+ int target,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2iARB ( GLenum target , GLint s , GLint t ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord2iARB (
+ int target,
+ int s,
+ int t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord2ivARB (
+ int target,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2sARB ( GLenum target , GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord2sARB (
+ int target,
+ short s,
+ short t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord2svARB (
+ int target,
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord3dARB (
+ int target,
+ double s,
+ double t,
+ double r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord3dvARB (
+ int target,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord3fARB (
+ int target,
+ float s,
+ float t,
+ float r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord3fvARB (
+ int target,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3iARB ( GLenum target , GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord3iARB (
+ int target,
+ int s,
+ int t,
+ int r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord3ivARB (
+ int target,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3sARB ( GLenum target , GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord3sARB (
+ int target,
+ short s,
+ short t,
+ short r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord3svARB (
+ int target,
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord4dARB (
+ int target,
+ double s,
+ double t,
+ double r,
+ double q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord4dvARB (
+ int target,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord4fARB (
+ int target,
+ float s,
+ float t,
+ float r,
+ float q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord4fvARB (
+ int target,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4iARB ( GLenum target , GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord4iARB (
+ int target,
+ int s,
+ int t,
+ int r,
+ int q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord4ivARB (
+ int target,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4sARB ( GLenum target , GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord4sARB (
+ int target,
+ short s,
+ short t,
+ short r,
+ short q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ public final native void glMultiTexCoord4svARB (
+ int target,
+ short[] v
+ ) ;
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
+
+
+}
+
diff --git a/gl4java/GLFuncJauJNInf.java b/gl4java/GLFuncJauJNInf.java
new file mode 100644
index 0000000..7ef0155
--- /dev/null
+++ b/gl4java/GLFuncJauJNInf.java
@@ -0,0 +1,6997 @@
+/* WARNING ! WARNING *** THIS FILE IS GENERATED BY C2J !!!
+
+ DO NOT MAKE ANY CHANGES *** MAKE CHANGES IN THE SKELETON FILES !!!
+*/
+
+
+/**
+ * @(#) GLFuncJauJNInf.java
+ */
+
+
+package gl4java;
+
+/**
+ * The default implementation class for OpenGL native function mapping
+ *
+ * @version 2.00, 21. April 1999
+ * @author Sven Goethel
+ */
+public class GLFuncJauJNInf
+ implements GLFunc
+{
+
+
+
+public native String glGetString ( int name ) ;
+
+public native String getNativeVendor ( ) ;
+public native String getNativeVersion ( ) ;
+
+public String getClassVendor ( )
+{ return "Jausoft - Sven Goethel Software Development"; }
+
+public String getClassVersion ( )
+{ return "2.4.1.0"; }
+
+
+
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: gl-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLFuncJauJNInf !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearIndex ( GLfloat c ) ;
+ * </pre>
+ */
+ public native void glClearIndex (
+ float c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ public native void glClearColor (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClear ( GLbitfield mask ) ;
+ * </pre>
+ */
+ public native void glClear (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexMask ( GLuint mask ) ;
+ * </pre>
+ */
+ public native void glIndexMask (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMask ( GLboolean red , GLboolean green , GLboolean blue , GLboolean alpha ) ;
+ * </pre>
+ */
+ public native void glColorMask (
+ boolean red,
+ boolean green,
+ boolean blue,
+ boolean alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAlphaFunc ( GLenum func , GLclampf ref ) ;
+ * </pre>
+ */
+ public native void glAlphaFunc (
+ int func,
+ float ref
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendFunc ( GLenum sfactor , GLenum dfactor ) ;
+ * </pre>
+ */
+ public native void glBlendFunc (
+ int sfactor,
+ int dfactor
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLogicOp ( GLenum opcode ) ;
+ * </pre>
+ */
+ public native void glLogicOp (
+ int opcode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCullFace ( GLenum mode ) ;
+ * </pre>
+ */
+ public native void glCullFace (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrontFace ( GLenum mode ) ;
+ * </pre>
+ */
+ public native void glFrontFace (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointSize ( GLfloat size ) ;
+ * </pre>
+ */
+ public native void glPointSize (
+ float size
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineWidth ( GLfloat width ) ;
+ * </pre>
+ */
+ public native void glLineWidth (
+ float width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLineStipple ( GLint factor , GLushort pattern ) ;
+ * </pre>
+ */
+ public native void glLineStipple (
+ int factor,
+ short pattern
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonMode ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ public native void glPolygonMode (
+ int face,
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffset ( GLfloat factor , GLfloat units ) ;
+ * </pre>
+ */
+ public native void glPolygonOffset (
+ float factor,
+ float units
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonStipple ( const GLubyte * mask ) ;
+ * </pre>
+ */
+ public native void glPolygonStipple (
+ byte[] mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPolygonStipple ( GLubyte * mask ) ;
+ * </pre>
+ */
+ public native void glGetPolygonStipple (
+ byte[] mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlag ( GLboolean flag ) ;
+ * </pre>
+ */
+ public native void glEdgeFlag (
+ boolean flag
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagv ( const GLboolean * flag ) ;
+ * </pre>
+ */
+ public native void glEdgeFlagv (
+ boolean[] flag
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScissor ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public native void glScissor (
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClipPlane ( GLenum plane , const GLdouble * equation ) ;
+ * </pre>
+ */
+ public native void glClipPlane (
+ int plane,
+ double[] equation
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetClipPlane ( GLenum plane , GLdouble * equation ) ;
+ * </pre>
+ */
+ public native void glGetClipPlane (
+ int plane,
+ double[] equation
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ public native void glDrawBuffer (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadBuffer ( GLenum mode ) ;
+ * </pre>
+ */
+ public native void glReadBuffer (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnable ( GLenum cap ) ;
+ * </pre>
+ */
+ public native void glEnable (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisable ( GLenum cap ) ;
+ * </pre>
+ */
+ public native void glDisable (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsEnabled ( GLenum cap ) ;
+ * </pre>
+ */
+ public native boolean glIsEnabled (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ public native void glEnableClientState (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDisableClientState ( GLenum cap ) ;
+ * </pre>
+ */
+ public native void glDisableClientState (
+ int cap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetBooleanv ( GLenum pname , GLboolean * params ) ;
+ * </pre>
+ */
+ public native void glGetBooleanv (
+ int pname,
+ boolean[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetDoublev ( GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ public native void glGetDoublev (
+ int pname,
+ double[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetFloatv ( GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public native void glGetFloatv (
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetIntegerv ( GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public native void glGetIntegerv (
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ public native void glPushAttrib (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopAttrib ( void ) ;
+ * </pre>
+ */
+ public native void glPopAttrib (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushClientAttrib ( GLbitfield mask ) ;
+ * </pre>
+ */
+ public native void glPushClientAttrib (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopClientAttrib ( void ) ;
+ * </pre>
+ */
+ public native void glPopClientAttrib (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint glRenderMode ( GLenum mode ) ;
+ * </pre>
+ */
+ public native int glRenderMode (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLenum glGetError ( void ) ;
+ * </pre>
+ */
+ public native int glGetError (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFinish ( void ) ;
+ * </pre>
+ */
+ public native void glFinish (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFlush ( void ) ;
+ * </pre>
+ */
+ public native void glFlush (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHint ( GLenum target , GLenum mode ) ;
+ * </pre>
+ */
+ public native void glHint (
+ int target,
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearDepth ( GLclampd depth ) ;
+ * </pre>
+ */
+ public native void glClearDepth (
+ double depth
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthFunc ( GLenum func ) ;
+ * </pre>
+ */
+ public native void glDepthFunc (
+ int func
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthMask ( GLboolean flag ) ;
+ * </pre>
+ */
+ public native void glDepthMask (
+ boolean flag
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDepthRange ( GLclampd near_val , GLclampd far_val ) ;
+ * </pre>
+ */
+ public native void glDepthRange (
+ double near_val,
+ double far_val
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearAccum ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ public native void glClearAccum (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glAccum ( GLenum op , GLfloat value ) ;
+ * </pre>
+ */
+ public native void glAccum (
+ int op,
+ float value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMatrixMode ( GLenum mode ) ;
+ * </pre>
+ */
+ public native void glMatrixMode (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glOrtho ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ public native void glOrtho (
+ double left,
+ double right,
+ double bottom,
+ double top,
+ double near_val,
+ double far_val
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFrustum ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top , GLdouble near_val , GLdouble far_val ) ;
+ * </pre>
+ */
+ public native void glFrustum (
+ double left,
+ double right,
+ double bottom,
+ double top,
+ double near_val,
+ double far_val
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glViewport ( GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public native void glViewport (
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushMatrix ( void ) ;
+ * </pre>
+ */
+ public native void glPushMatrix (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopMatrix ( void ) ;
+ * </pre>
+ */
+ public native void glPopMatrix (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadIdentity ( void ) ;
+ * </pre>
+ */
+ public native void glLoadIdentity (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ public native void glLoadMatrixd (
+ double[] m
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ public native void glLoadMatrixf (
+ float[] m
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixd ( const GLdouble * m ) ;
+ * </pre>
+ */
+ public native void glMultMatrixd (
+ double[] m
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultMatrixf ( const GLfloat * m ) ;
+ * </pre>
+ */
+ public native void glMultMatrixf (
+ float[] m
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotated ( GLdouble angle , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public native void glRotated (
+ double angle,
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRotatef ( GLfloat angle , GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public native void glRotatef (
+ float angle,
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScaled ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public native void glScaled (
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glScalef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public native void glScalef (
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslated ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public native void glTranslated (
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTranslatef ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public native void glTranslatef (
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsList ( GLuint list ) ;
+ * </pre>
+ */
+ public native boolean glIsList (
+ int list
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteLists ( GLuint list , GLsizei range ) ;
+ * </pre>
+ */
+ public native void glDeleteLists (
+ int list,
+ int range
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLuint glGenLists ( GLsizei range ) ;
+ * </pre>
+ */
+ public native int glGenLists (
+ int range
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNewList ( GLuint list , GLenum mode ) ;
+ * </pre>
+ */
+ public native void glNewList (
+ int list,
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEndList ( void ) ;
+ * </pre>
+ */
+ public native void glEndList (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallList ( GLuint list ) ;
+ * </pre>
+ */
+ public native void glCallList (
+ int list
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCallLists ( GLsizei n , GLenum type , const GLvoid * lists ) ;
+ * </pre>
+ */
+ public native void glCallLists (
+ int n,
+ int type,
+ byte[] lists
+ ) ;
+ public native void glCallLists (
+ int n,
+ int type,
+ short[] lists
+ ) ;
+ public native void glCallLists (
+ int n,
+ int type,
+ int[] lists
+ ) ;
+ public native void glCallLists (
+ int n,
+ int type,
+ float[] lists
+ ) ;
+ public native void glCallLists (
+ int n,
+ int type,
+ double[] lists
+ ) ;
+ public native void glCallLists (
+ int n,
+ int type,
+ boolean[] lists
+ ) ;
+ public native void glCallLists (
+ int n,
+ int type,
+ long[] lists
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glListBase ( GLuint base ) ;
+ * </pre>
+ */
+ public native void glListBase (
+ int base
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBegin ( GLenum mode ) ;
+ * </pre>
+ */
+ public native void glBegin (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEnd ( void ) ;
+ * </pre>
+ */
+ public native void glEnd (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ public native void glVertex2d (
+ double x,
+ double y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ public native void glVertex2f (
+ float x,
+ float y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ public native void glVertex2i (
+ int x,
+ int y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ public native void glVertex2s (
+ short x,
+ short y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public native void glVertex3d (
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public native void glVertex3f (
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ public native void glVertex3i (
+ int x,
+ int y,
+ int z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ public native void glVertex3s (
+ short x,
+ short y,
+ short z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ public native void glVertex4d (
+ double x,
+ double y,
+ double z,
+ double w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ public native void glVertex4f (
+ float x,
+ float y,
+ float z,
+ float w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ public native void glVertex4i (
+ int x,
+ int y,
+ int z,
+ int w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ public native void glVertex4s (
+ short x,
+ short y,
+ short z,
+ short w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public native void glVertex2dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public native void glVertex2fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public native void glVertex2iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public native void glVertex2sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public native void glVertex3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public native void glVertex3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public native void glVertex3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public native void glVertex3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public native void glVertex4dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public native void glVertex4fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public native void glVertex4iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertex4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public native void glVertex4sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3b ( GLbyte nx , GLbyte ny , GLbyte nz ) ;
+ * </pre>
+ */
+ public native void glNormal3b (
+ byte nx,
+ byte ny,
+ byte nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3d ( GLdouble nx , GLdouble ny , GLdouble nz ) ;
+ * </pre>
+ */
+ public native void glNormal3d (
+ double nx,
+ double ny,
+ double nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3f ( GLfloat nx , GLfloat ny , GLfloat nz ) ;
+ * </pre>
+ */
+ public native void glNormal3f (
+ float nx,
+ float ny,
+ float nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3i ( GLint nx , GLint ny , GLint nz ) ;
+ * </pre>
+ */
+ public native void glNormal3i (
+ int nx,
+ int ny,
+ int nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3s ( GLshort nx , GLshort ny , GLshort nz ) ;
+ * </pre>
+ */
+ public native void glNormal3s (
+ short nx,
+ short ny,
+ short nz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ public native void glNormal3bv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public native void glNormal3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public native void glNormal3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public native void glNormal3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormal3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public native void glNormal3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexd ( GLdouble c ) ;
+ * </pre>
+ */
+ public native void glIndexd (
+ double c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexf ( GLfloat c ) ;
+ * </pre>
+ */
+ public native void glIndexf (
+ float c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexi ( GLint c ) ;
+ * </pre>
+ */
+ public native void glIndexi (
+ int c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexs ( GLshort c ) ;
+ * </pre>
+ */
+ public native void glIndexs (
+ short c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexub ( GLubyte c ) ;
+ * </pre>
+ */
+ public native void glIndexub (
+ byte c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexdv ( const GLdouble * c ) ;
+ * </pre>
+ */
+ public native void glIndexdv (
+ double[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexfv ( const GLfloat * c ) ;
+ * </pre>
+ */
+ public native void glIndexfv (
+ float[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexiv ( const GLint * c ) ;
+ * </pre>
+ */
+ public native void glIndexiv (
+ int[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexsv ( const GLshort * c ) ;
+ * </pre>
+ */
+ public native void glIndexsv (
+ short[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexubv ( const GLubyte * c ) ;
+ * </pre>
+ */
+ public native void glIndexubv (
+ byte[] c
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3b ( GLbyte red , GLbyte green , GLbyte blue ) ;
+ * </pre>
+ */
+ public native void glColor3b (
+ byte red,
+ byte green,
+ byte blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3d ( GLdouble red , GLdouble green , GLdouble blue ) ;
+ * </pre>
+ */
+ public native void glColor3d (
+ double red,
+ double green,
+ double blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3f ( GLfloat red , GLfloat green , GLfloat blue ) ;
+ * </pre>
+ */
+ public native void glColor3f (
+ float red,
+ float green,
+ float blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3i ( GLint red , GLint green , GLint blue ) ;
+ * </pre>
+ */
+ public native void glColor3i (
+ int red,
+ int green,
+ int blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3s ( GLshort red , GLshort green , GLshort blue ) ;
+ * </pre>
+ */
+ public native void glColor3s (
+ short red,
+ short green,
+ short blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ub ( GLubyte red , GLubyte green , GLubyte blue ) ;
+ * </pre>
+ */
+ public native void glColor3ub (
+ byte red,
+ byte green,
+ byte blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ui ( GLuint red , GLuint green , GLuint blue ) ;
+ * </pre>
+ */
+ public native void glColor3ui (
+ int red,
+ int green,
+ int blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3us ( GLushort red , GLushort green , GLushort blue ) ;
+ * </pre>
+ */
+ public native void glColor3us (
+ short red,
+ short green,
+ short blue
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4b ( GLbyte red , GLbyte green , GLbyte blue , GLbyte alpha ) ;
+ * </pre>
+ */
+ public native void glColor4b (
+ byte red,
+ byte green,
+ byte blue,
+ byte alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4d ( GLdouble red , GLdouble green , GLdouble blue , GLdouble alpha ) ;
+ * </pre>
+ */
+ public native void glColor4d (
+ double red,
+ double green,
+ double blue,
+ double alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4f ( GLfloat red , GLfloat green , GLfloat blue , GLfloat alpha ) ;
+ * </pre>
+ */
+ public native void glColor4f (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4i ( GLint red , GLint green , GLint blue , GLint alpha ) ;
+ * </pre>
+ */
+ public native void glColor4i (
+ int red,
+ int green,
+ int blue,
+ int alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4s ( GLshort red , GLshort green , GLshort blue , GLshort alpha ) ;
+ * </pre>
+ */
+ public native void glColor4s (
+ short red,
+ short green,
+ short blue,
+ short alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ub ( GLubyte red , GLubyte green , GLubyte blue , GLubyte alpha ) ;
+ * </pre>
+ */
+ public native void glColor4ub (
+ byte red,
+ byte green,
+ byte blue,
+ byte alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ui ( GLuint red , GLuint green , GLuint blue , GLuint alpha ) ;
+ * </pre>
+ */
+ public native void glColor4ui (
+ int red,
+ int green,
+ int blue,
+ int alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4us ( GLushort red , GLushort green , GLushort blue , GLushort alpha ) ;
+ * </pre>
+ */
+ public native void glColor4us (
+ short red,
+ short green,
+ short blue,
+ short alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ public native void glColor3bv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public native void glColor3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public native void glColor3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public native void glColor3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public native void glColor3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ public native void glColor3ubv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ public native void glColor3uiv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor3usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ public native void glColor3usv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4bv ( const GLbyte * v ) ;
+ * </pre>
+ */
+ public native void glColor4bv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public native void glColor4dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public native void glColor4fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public native void glColor4iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public native void glColor4sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4ubv ( const GLubyte * v ) ;
+ * </pre>
+ */
+ public native void glColor4ubv (
+ byte[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4uiv ( const GLuint * v ) ;
+ * </pre>
+ */
+ public native void glColor4uiv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColor4usv ( const GLushort * v ) ;
+ * </pre>
+ */
+ public native void glColor4usv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1d ( GLdouble s ) ;
+ * </pre>
+ */
+ public native void glTexCoord1d (
+ double s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1f ( GLfloat s ) ;
+ * </pre>
+ */
+ public native void glTexCoord1f (
+ float s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1i ( GLint s ) ;
+ * </pre>
+ */
+ public native void glTexCoord1i (
+ int s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1s ( GLshort s ) ;
+ * </pre>
+ */
+ public native void glTexCoord1s (
+ short s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2d ( GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ public native void glTexCoord2d (
+ double s,
+ double t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2f ( GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ public native void glTexCoord2f (
+ float s,
+ float t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2i ( GLint s , GLint t ) ;
+ * </pre>
+ */
+ public native void glTexCoord2i (
+ int s,
+ int t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2s ( GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ public native void glTexCoord2s (
+ short s,
+ short t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3d ( GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ public native void glTexCoord3d (
+ double s,
+ double t,
+ double r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3f ( GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ public native void glTexCoord3f (
+ float s,
+ float t,
+ float r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3i ( GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ public native void glTexCoord3i (
+ int s,
+ int t,
+ int r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3s ( GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ public native void glTexCoord3s (
+ short s,
+ short t,
+ short r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4d ( GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ public native void glTexCoord4d (
+ double s,
+ double t,
+ double r,
+ double q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4f ( GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ public native void glTexCoord4f (
+ float s,
+ float t,
+ float r,
+ float q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4i ( GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ public native void glTexCoord4i (
+ int s,
+ int t,
+ int r,
+ int q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4s ( GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ public native void glTexCoord4s (
+ short s,
+ short t,
+ short r,
+ short q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public native void glTexCoord1dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public native void glTexCoord1fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public native void glTexCoord1iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord1sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public native void glTexCoord1sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public native void glTexCoord2dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public native void glTexCoord2fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public native void glTexCoord2iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public native void glTexCoord2sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public native void glTexCoord3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public native void glTexCoord3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public native void glTexCoord3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public native void glTexCoord3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public native void glTexCoord4dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public native void glTexCoord4fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public native void glTexCoord4iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoord4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public native void glTexCoord4sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2d ( GLdouble x , GLdouble y ) ;
+ * </pre>
+ */
+ public native void glRasterPos2d (
+ double x,
+ double y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2f ( GLfloat x , GLfloat y ) ;
+ * </pre>
+ */
+ public native void glRasterPos2f (
+ float x,
+ float y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2i ( GLint x , GLint y ) ;
+ * </pre>
+ */
+ public native void glRasterPos2i (
+ int x,
+ int y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2s ( GLshort x , GLshort y ) ;
+ * </pre>
+ */
+ public native void glRasterPos2s (
+ short x,
+ short y
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3d ( GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public native void glRasterPos3d (
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3f ( GLfloat x , GLfloat y , GLfloat z ) ;
+ * </pre>
+ */
+ public native void glRasterPos3f (
+ float x,
+ float y,
+ float z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3i ( GLint x , GLint y , GLint z ) ;
+ * </pre>
+ */
+ public native void glRasterPos3i (
+ int x,
+ int y,
+ int z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3s ( GLshort x , GLshort y , GLshort z ) ;
+ * </pre>
+ */
+ public native void glRasterPos3s (
+ short x,
+ short y,
+ short z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4d ( GLdouble x , GLdouble y , GLdouble z , GLdouble w ) ;
+ * </pre>
+ */
+ public native void glRasterPos4d (
+ double x,
+ double y,
+ double z,
+ double w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4f ( GLfloat x , GLfloat y , GLfloat z , GLfloat w ) ;
+ * </pre>
+ */
+ public native void glRasterPos4f (
+ float x,
+ float y,
+ float z,
+ float w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4i ( GLint x , GLint y , GLint z , GLint w ) ;
+ * </pre>
+ */
+ public native void glRasterPos4i (
+ int x,
+ int y,
+ int z,
+ int w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4s ( GLshort x , GLshort y , GLshort z , GLshort w ) ;
+ * </pre>
+ */
+ public native void glRasterPos4s (
+ short x,
+ short y,
+ short z,
+ short w
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public native void glRasterPos2dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public native void glRasterPos2fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public native void glRasterPos2iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos2sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public native void glRasterPos2sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public native void glRasterPos3dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public native void glRasterPos3fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public native void glRasterPos3iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos3sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public native void glRasterPos3sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4dv ( const GLdouble * v ) ;
+ * </pre>
+ */
+ public native void glRasterPos4dv (
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4fv ( const GLfloat * v ) ;
+ * </pre>
+ */
+ public native void glRasterPos4fv (
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4iv ( const GLint * v ) ;
+ * </pre>
+ */
+ public native void glRasterPos4iv (
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRasterPos4sv ( const GLshort * v ) ;
+ * </pre>
+ */
+ public native void glRasterPos4sv (
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectd ( GLdouble x1 , GLdouble y1 , GLdouble x2 , GLdouble y2 ) ;
+ * </pre>
+ */
+ public native void glRectd (
+ double x1,
+ double y1,
+ double x2,
+ double y2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectf ( GLfloat x1 , GLfloat y1 , GLfloat x2 , GLfloat y2 ) ;
+ * </pre>
+ */
+ public native void glRectf (
+ float x1,
+ float y1,
+ float x2,
+ float y2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRecti ( GLint x1 , GLint y1 , GLint x2 , GLint y2 ) ;
+ * </pre>
+ */
+ public native void glRecti (
+ int x1,
+ int y1,
+ int x2,
+ int y2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRects ( GLshort x1 , GLshort y1 , GLshort x2 , GLshort y2 ) ;
+ * </pre>
+ */
+ public native void glRects (
+ short x1,
+ short y1,
+ short x2,
+ short y2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectdv ( const GLdouble * v1 , const GLdouble * v2 ) ;
+ * </pre>
+ */
+ public native void glRectdv (
+ double[] v1,
+ double[] v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectfv ( const GLfloat * v1 , const GLfloat * v2 ) ;
+ * </pre>
+ */
+ public native void glRectfv (
+ float[] v1,
+ float[] v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectiv ( const GLint * v1 , const GLint * v2 ) ;
+ * </pre>
+ */
+ public native void glRectiv (
+ int[] v1,
+ int[] v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glRectsv ( const GLshort * v1 , const GLshort * v2 ) ;
+ * </pre>
+ */
+ public native void glRectsv (
+ short[] v1,
+ short[] v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public native void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public native void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public native void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public native void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public native void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public native void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public native void glVertexPointer (
+ int size,
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public native void glNormalPointer (
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public native void glNormalPointer (
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public native void glNormalPointer (
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public native void glNormalPointer (
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public native void glNormalPointer (
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public native void glNormalPointer (
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public native void glNormalPointer (
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public native void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public native void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public native void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public native void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public native void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public native void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public native void glColorPointer (
+ int size,
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointer ( GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public native void glIndexPointer (
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public native void glIndexPointer (
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public native void glIndexPointer (
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public native void glIndexPointer (
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public native void glIndexPointer (
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public native void glIndexPointer (
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public native void glIndexPointer (
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointer ( GLint size , GLenum type , GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public native void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ byte[] ptr
+ ) ;
+ public native void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ short[] ptr
+ ) ;
+ public native void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ int[] ptr
+ ) ;
+ public native void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ float[] ptr
+ ) ;
+ public native void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ double[] ptr
+ ) ;
+ public native void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ boolean[] ptr
+ ) ;
+ public native void glTexCoordPointer (
+ int size,
+ int type,
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointer ( GLsizei stride , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public native void glEdgeFlagPointer (
+ int stride,
+ byte[] ptr
+ ) ;
+ public native void glEdgeFlagPointer (
+ int stride,
+ short[] ptr
+ ) ;
+ public native void glEdgeFlagPointer (
+ int stride,
+ int[] ptr
+ ) ;
+ public native void glEdgeFlagPointer (
+ int stride,
+ float[] ptr
+ ) ;
+ public native void glEdgeFlagPointer (
+ int stride,
+ double[] ptr
+ ) ;
+ public native void glEdgeFlagPointer (
+ int stride,
+ boolean[] ptr
+ ) ;
+ public native void glEdgeFlagPointer (
+ int stride,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointerv ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ public native void glGetPointerv (
+ int pname,
+ byte[][] params
+ ) ;
+ public native void glGetPointerv (
+ int pname,
+ short[][] params
+ ) ;
+ public native void glGetPointerv (
+ int pname,
+ int[][] params
+ ) ;
+ public native void glGetPointerv (
+ int pname,
+ float[][] params
+ ) ;
+ public native void glGetPointerv (
+ int pname,
+ double[][] params
+ ) ;
+ public native void glGetPointerv (
+ int pname,
+ boolean[][] params
+ ) ;
+ public native void glGetPointerv (
+ int pname,
+ long[][] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElement ( GLint i ) ;
+ * </pre>
+ */
+ public native void glArrayElement (
+ int i
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArrays ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ public native void glDrawArrays (
+ int mode,
+ int first,
+ int count
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawElements ( GLenum mode , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ public native void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ byte[] indices
+ ) ;
+ public native void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ short[] indices
+ ) ;
+ public native void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ int[] indices
+ ) ;
+ public native void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ float[] indices
+ ) ;
+ public native void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ double[] indices
+ ) ;
+ public native void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ boolean[] indices
+ ) ;
+ public native void glDrawElements (
+ int mode,
+ int count,
+ int type,
+ long[] indices
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInterleavedArrays ( GLenum format , GLsizei stride , const GLvoid * pointer ) ;
+ * </pre>
+ */
+ public native void glInterleavedArrays (
+ int format,
+ int stride,
+ byte[] pointer
+ ) ;
+ public native void glInterleavedArrays (
+ int format,
+ int stride,
+ short[] pointer
+ ) ;
+ public native void glInterleavedArrays (
+ int format,
+ int stride,
+ int[] pointer
+ ) ;
+ public native void glInterleavedArrays (
+ int format,
+ int stride,
+ float[] pointer
+ ) ;
+ public native void glInterleavedArrays (
+ int format,
+ int stride,
+ double[] pointer
+ ) ;
+ public native void glInterleavedArrays (
+ int format,
+ int stride,
+ boolean[] pointer
+ ) ;
+ public native void glInterleavedArrays (
+ int format,
+ int stride,
+ long[] pointer
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glShadeModel ( GLenum mode ) ;
+ * </pre>
+ */
+ public native void glShadeModel (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightf ( GLenum light , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public native void glLightf (
+ int light,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLighti ( GLenum light , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public native void glLighti (
+ int light,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightfv ( GLenum light , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public native void glLightfv (
+ int light,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightiv ( GLenum light , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public native void glLightiv (
+ int light,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightfv ( GLenum light , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public native void glGetLightfv (
+ int light,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetLightiv ( GLenum light , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public native void glGetLightiv (
+ int light,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public native void glLightModelf (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeli ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public native void glLightModeli (
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModelfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public native void glLightModelfv (
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLightModeliv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public native void glLightModeliv (
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialf ( GLenum face , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public native void glMaterialf (
+ int face,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMateriali ( GLenum face , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public native void glMateriali (
+ int face,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialfv ( GLenum face , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public native void glMaterialfv (
+ int face,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMaterialiv ( GLenum face , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public native void glMaterialiv (
+ int face,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialfv ( GLenum face , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public native void glGetMaterialfv (
+ int face,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMaterialiv ( GLenum face , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public native void glGetMaterialiv (
+ int face,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorMaterial ( GLenum face , GLenum mode ) ;
+ * </pre>
+ */
+ public native void glColorMaterial (
+ int face,
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelZoom ( GLfloat xfactor , GLfloat yfactor ) ;
+ * </pre>
+ */
+ public native void glPixelZoom (
+ float xfactor,
+ float yfactor
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStoref ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public native void glPixelStoref (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelStorei ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public native void glPixelStorei (
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public native void glPixelTransferf (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelTransferi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public native void glPixelTransferi (
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapfv ( GLenum map , GLint mapsize , const GLfloat * values ) ;
+ * </pre>
+ */
+ public native void glPixelMapfv (
+ int map,
+ int mapsize,
+ float[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapuiv ( GLenum map , GLint mapsize , const GLuint * values ) ;
+ * </pre>
+ */
+ public native void glPixelMapuiv (
+ int map,
+ int mapsize,
+ int[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPixelMapusv ( GLenum map , GLint mapsize , const GLushort * values ) ;
+ * </pre>
+ */
+ public native void glPixelMapusv (
+ int map,
+ int mapsize,
+ short[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapfv ( GLenum map , GLfloat * values ) ;
+ * </pre>
+ */
+ public native void glGetPixelMapfv (
+ int map,
+ float[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapuiv ( GLenum map , GLuint * values ) ;
+ * </pre>
+ */
+ public native void glGetPixelMapuiv (
+ int map,
+ int[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPixelMapusv ( GLenum map , GLushort * values ) ;
+ * </pre>
+ */
+ public native void glGetPixelMapusv (
+ int map,
+ short[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBitmap ( GLsizei width , GLsizei height , GLfloat xorig , GLfloat yorig , GLfloat xmove , GLfloat ymove , const GLubyte * bitmap ) ;
+ * </pre>
+ */
+ public native void glBitmap (
+ int width,
+ int height,
+ float xorig,
+ float yorig,
+ float xmove,
+ float ymove,
+ byte[] bitmap
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glReadPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ public native void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public native void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public native void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public native void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public native void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public native void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public native void glReadPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawPixels ( GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public native void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public native void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public native void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public native void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public native void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public native void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public native void glDrawPixels (
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyPixels ( GLint x , GLint y , GLsizei width , GLsizei height , GLenum type ) ;
+ * </pre>
+ */
+ public native void glCopyPixels (
+ int x,
+ int y,
+ int width,
+ int height,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilFunc ( GLenum func , GLint ref , GLuint mask ) ;
+ * </pre>
+ */
+ public native void glStencilFunc (
+ int func,
+ int ref,
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilMask ( GLuint mask ) ;
+ * </pre>
+ */
+ public native void glStencilMask (
+ int mask
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glStencilOp ( GLenum fail , GLenum zfail , GLenum zpass ) ;
+ * </pre>
+ */
+ public native void glStencilOp (
+ int fail,
+ int zfail,
+ int zpass
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClearStencil ( GLint s ) ;
+ * </pre>
+ */
+ public native void glClearStencil (
+ int s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGend ( GLenum coord , GLenum pname , GLdouble param ) ;
+ * </pre>
+ */
+ public native void glTexGend (
+ int coord,
+ int pname,
+ double param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenf ( GLenum coord , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public native void glTexGenf (
+ int coord,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeni ( GLenum coord , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public native void glTexGeni (
+ int coord,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGendv ( GLenum coord , GLenum pname , const GLdouble * params ) ;
+ * </pre>
+ */
+ public native void glTexGendv (
+ int coord,
+ int pname,
+ double[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGenfv ( GLenum coord , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public native void glTexGenfv (
+ int coord,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexGeniv ( GLenum coord , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public native void glTexGeniv (
+ int coord,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGendv ( GLenum coord , GLenum pname , GLdouble * params ) ;
+ * </pre>
+ */
+ public native void glGetTexGendv (
+ int coord,
+ int pname,
+ double[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGenfv ( GLenum coord , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public native void glGetTexGenfv (
+ int coord,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexGeniv ( GLenum coord , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public native void glGetTexGeniv (
+ int coord,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public native void glTexEnvf (
+ int target,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvi ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public native void glTexEnvi (
+ int target,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnvfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public native void glTexEnvfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexEnviv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public native void glTexEnviv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnvfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public native void glGetTexEnvfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexEnviv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public native void glGetTexEnviv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterf ( GLenum target , GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public native void glTexParameterf (
+ int target,
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteri ( GLenum target , GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public native void glTexParameteri (
+ int target,
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public native void glTexParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public native void glTexParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public native void glGetTexParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public native void glGetTexParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameterfv ( GLenum target , GLint level , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public native void glGetTexLevelParameterfv (
+ int target,
+ int level,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexLevelParameteriv ( GLenum target , GLint level , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public native void glGetTexLevelParameteriv (
+ int target,
+ int level,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage1D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public native void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public native void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public native void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public native void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public native void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public native void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public native void glTexImage1D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int border,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage2D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public native void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public native void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public native void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public native void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public native void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public native void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public native void glTexImage2D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int border,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetTexImage ( GLenum target , GLint level , GLenum format , GLenum type , GLvoid * pixels ) ;
+ * </pre>
+ */
+ public native void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public native void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public native void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public native void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public native void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public native void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public native void glGetTexImage (
+ int target,
+ int level,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTextures ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ public native void glGenTextures (
+ int n,
+ int[] textures
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTextures ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ public native void glDeleteTextures (
+ int n,
+ int[] textures
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTexture ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ public native void glBindTexture (
+ int target,
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTextures ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ public native void glPrioritizeTextures (
+ int n,
+ int[] textures,
+ float[] priorities
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResident ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ public native boolean glAreTexturesResident (
+ int n,
+ int[] textures,
+ boolean[] residences
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTexture ( GLuint texture ) ;
+ * </pre>
+ */
+ public native boolean glIsTexture (
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLsizei width , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public native void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public native void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public native void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public native void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public native void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public native void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public native void glTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int width,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public native void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public native void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public native void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public native void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public native void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public native void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public native void glTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage1D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLint border ) ;
+ * </pre>
+ */
+ public native void glCopyTexImage1D (
+ int target,
+ int level,
+ int internalformat,
+ int x,
+ int y,
+ int width,
+ int border
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexImage2D ( GLenum target , GLint level , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height , GLint border ) ;
+ * </pre>
+ */
+ public native void glCopyTexImage2D (
+ int target,
+ int level,
+ int internalformat,
+ int x,
+ int y,
+ int width,
+ int height,
+ int border
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage1D ( GLenum target , GLint level , GLint xoffset , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ public native void glCopyTexSubImage1D (
+ int target,
+ int level,
+ int xoffset,
+ int x,
+ int y,
+ int width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage2D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public native void glCopyTexSubImage2D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint stride , GLint order , const GLdouble * points ) ;
+ * </pre>
+ */
+ public native void glMap1d (
+ int target,
+ double u1,
+ double u2,
+ int stride,
+ int order,
+ double[] points
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap1f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint stride , GLint order , const GLfloat * points ) ;
+ * </pre>
+ */
+ public native void glMap1f (
+ int target,
+ float u1,
+ float u2,
+ int stride,
+ int order,
+ float[] points
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2d ( GLenum target , GLdouble u1 , GLdouble u2 , GLint ustride , GLint uorder , GLdouble v1 , GLdouble v2 , GLint vstride , GLint vorder , const GLdouble * points ) ;
+ * </pre>
+ */
+ public native void glMap2d (
+ int target,
+ double u1,
+ double u2,
+ int ustride,
+ int uorder,
+ double v1,
+ double v2,
+ int vstride,
+ int vorder,
+ double[] points
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMap2f ( GLenum target , GLfloat u1 , GLfloat u2 , GLint ustride , GLint uorder , GLfloat v1 , GLfloat v2 , GLint vstride , GLint vorder , const GLfloat * points ) ;
+ * </pre>
+ */
+ public native void glMap2f (
+ int target,
+ float u1,
+ float u2,
+ int ustride,
+ int uorder,
+ float v1,
+ float v2,
+ int vstride,
+ int vorder,
+ float[] points
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapdv ( GLenum target , GLenum query , GLdouble * v ) ;
+ * </pre>
+ */
+ public native void glGetMapdv (
+ int target,
+ int query,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapfv ( GLenum target , GLenum query , GLfloat * v ) ;
+ * </pre>
+ */
+ public native void glGetMapfv (
+ int target,
+ int query,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMapiv ( GLenum target , GLenum query , GLint * v ) ;
+ * </pre>
+ */
+ public native void glGetMapiv (
+ int target,
+ int query,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1d ( GLdouble u ) ;
+ * </pre>
+ */
+ public native void glEvalCoord1d (
+ double u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1f ( GLfloat u ) ;
+ * </pre>
+ */
+ public native void glEvalCoord1f (
+ float u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ public native void glEvalCoord1dv (
+ double[] u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord1fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ public native void glEvalCoord1fv (
+ float[] u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2d ( GLdouble u , GLdouble v ) ;
+ * </pre>
+ */
+ public native void glEvalCoord2d (
+ double u,
+ double v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2f ( GLfloat u , GLfloat v ) ;
+ * </pre>
+ */
+ public native void glEvalCoord2f (
+ float u,
+ float v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2dv ( const GLdouble * u ) ;
+ * </pre>
+ */
+ public native void glEvalCoord2dv (
+ double[] u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalCoord2fv ( const GLfloat * u ) ;
+ * </pre>
+ */
+ public native void glEvalCoord2fv (
+ float[] u
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1d ( GLint un , GLdouble u1 , GLdouble u2 ) ;
+ * </pre>
+ */
+ public native void glMapGrid1d (
+ int un,
+ double u1,
+ double u2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid1f ( GLint un , GLfloat u1 , GLfloat u2 ) ;
+ * </pre>
+ */
+ public native void glMapGrid1f (
+ int un,
+ float u1,
+ float u2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2d ( GLint un , GLdouble u1 , GLdouble u2 , GLint vn , GLdouble v1 , GLdouble v2 ) ;
+ * </pre>
+ */
+ public native void glMapGrid2d (
+ int un,
+ double u1,
+ double u2,
+ int vn,
+ double v1,
+ double v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMapGrid2f ( GLint un , GLfloat u1 , GLfloat u2 , GLint vn , GLfloat v1 , GLfloat v2 ) ;
+ * </pre>
+ */
+ public native void glMapGrid2f (
+ int un,
+ float u1,
+ float u2,
+ int vn,
+ float v1,
+ float v2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint1 ( GLint i ) ;
+ * </pre>
+ */
+ public native void glEvalPoint1 (
+ int i
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalPoint2 ( GLint i , GLint j ) ;
+ * </pre>
+ */
+ public native void glEvalPoint2 (
+ int i,
+ int j
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh1 ( GLenum mode , GLint i1 , GLint i2 ) ;
+ * </pre>
+ */
+ public native void glEvalMesh1 (
+ int mode,
+ int i1,
+ int i2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEvalMesh2 ( GLenum mode , GLint i1 , GLint i2 , GLint j1 , GLint j2 ) ;
+ * </pre>
+ */
+ public native void glEvalMesh2 (
+ int mode,
+ int i1,
+ int i2,
+ int j1,
+ int j2
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogf ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public native void glFogf (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogi ( GLenum pname , GLint param ) ;
+ * </pre>
+ */
+ public native void glFogi (
+ int pname,
+ int param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogfv ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public native void glFogfv (
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFogiv ( GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public native void glFogiv (
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glFeedbackBuffer ( GLsizei size , GLenum type , GLfloat * buffer ) ;
+ * </pre>
+ */
+ public native void glFeedbackBuffer (
+ int size,
+ int type,
+ float[] buffer
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPassThrough ( GLfloat token ) ;
+ * </pre>
+ */
+ public native void glPassThrough (
+ float token
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSelectBuffer ( GLsizei size , GLuint * buffer ) ;
+ * </pre>
+ */
+ public native void glSelectBuffer (
+ int size,
+ int[] buffer
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glInitNames ( void ) ;
+ * </pre>
+ */
+ public native void glInitNames (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLoadName ( GLuint name ) ;
+ * </pre>
+ */
+ public native void glLoadName (
+ int name
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPushName ( GLuint name ) ;
+ * </pre>
+ */
+ public native void glPushName (
+ int name
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPopName ( void ) ;
+ * </pre>
+ */
+ public native void glPopName (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawRangeElements ( GLenum mode , GLuint start , GLuint end , GLsizei count , GLenum type , const GLvoid * indices ) ;
+ * </pre>
+ */
+ public native void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ byte[] indices
+ ) ;
+ public native void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ short[] indices
+ ) ;
+ public native void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ int[] indices
+ ) ;
+ public native void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ float[] indices
+ ) ;
+ public native void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ double[] indices
+ ) ;
+ public native void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ boolean[] indices
+ ) ;
+ public native void glDrawRangeElements (
+ int mode,
+ int start,
+ int end,
+ int count,
+ int type,
+ long[] indices
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3D ( GLenum target , GLint level , GLint internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public native void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public native void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public native void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public native void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public native void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public native void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public native void glTexImage3D (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public native void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public native void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public native void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public native void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public native void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public native void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public native void glTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3D ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public native void glCopyTexSubImage3D (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTable ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ public native void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ byte[] table
+ ) ;
+ public native void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ short[] table
+ ) ;
+ public native void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ int[] table
+ ) ;
+ public native void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ float[] table
+ ) ;
+ public native void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ double[] table
+ ) ;
+ public native void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ boolean[] table
+ ) ;
+ public native void glColorTable (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ long[] table
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTable ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ public native void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ byte[] data
+ ) ;
+ public native void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ short[] data
+ ) ;
+ public native void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ int[] data
+ ) ;
+ public native void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ float[] data
+ ) ;
+ public native void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ double[] data
+ ) ;
+ public native void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ boolean[] data
+ ) ;
+ public native void glColorSubTable (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ long[] data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public native void glColorTableParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public native void glColorTableParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorSubTable ( GLenum target , GLsizei start , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ public native void glCopyColorSubTable (
+ int target,
+ int start,
+ int x,
+ int y,
+ int width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyColorTable ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ public native void glCopyColorTable (
+ int target,
+ int internalformat,
+ int x,
+ int y,
+ int width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTable ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ public native void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ byte[] table
+ ) ;
+ public native void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ short[] table
+ ) ;
+ public native void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ int[] table
+ ) ;
+ public native void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ float[] table
+ ) ;
+ public native void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ double[] table
+ ) ;
+ public native void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ boolean[] table
+ ) ;
+ public native void glGetColorTable (
+ int target,
+ int format,
+ int type,
+ long[] table
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public native void glGetColorTableParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public native void glGetColorTableParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquation ( GLenum mode ) ;
+ * </pre>
+ */
+ public native void glBlendEquation (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColor ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ public native void glBlendColor (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glHistogram ( GLenum target , GLsizei width , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ public native void glHistogram (
+ int target,
+ int width,
+ int internalformat,
+ boolean sink
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetHistogram ( GLenum target ) ;
+ * </pre>
+ */
+ public native void glResetHistogram (
+ int target
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogram ( GLenum target , GLboolean reset , GLenum format , GLenum type , GLvoid * values ) ;
+ * </pre>
+ */
+ public native void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ byte[] values
+ ) ;
+ public native void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ short[] values
+ ) ;
+ public native void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ int[] values
+ ) ;
+ public native void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ float[] values
+ ) ;
+ public native void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ double[] values
+ ) ;
+ public native void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ boolean[] values
+ ) ;
+ public native void glGetHistogram (
+ int target,
+ boolean reset,
+ int format,
+ int type,
+ long[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public native void glGetHistogramParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetHistogramParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public native void glGetHistogramParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMinmax ( GLenum target , GLenum internalformat , GLboolean sink ) ;
+ * </pre>
+ */
+ public native void glMinmax (
+ int target,
+ int internalformat,
+ boolean sink
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glResetMinmax ( GLenum target ) ;
+ * </pre>
+ */
+ public native void glResetMinmax (
+ int target
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmax ( GLenum target , GLboolean reset , GLenum format , GLenum types , GLvoid * values ) ;
+ * </pre>
+ */
+ public native void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ byte[] values
+ ) ;
+ public native void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ short[] values
+ ) ;
+ public native void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ int[] values
+ ) ;
+ public native void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ float[] values
+ ) ;
+ public native void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ double[] values
+ ) ;
+ public native void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ boolean[] values
+ ) ;
+ public native void glGetMinmax (
+ int target,
+ boolean reset,
+ int format,
+ int types,
+ long[] values
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public native void glGetMinmaxParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetMinmaxParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public native void glGetMinmaxParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter1D ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ public native void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ byte[] image
+ ) ;
+ public native void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ short[] image
+ ) ;
+ public native void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ int[] image
+ ) ;
+ public native void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ float[] image
+ ) ;
+ public native void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ double[] image
+ ) ;
+ public native void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ boolean[] image
+ ) ;
+ public native void glConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ long[] image
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * image ) ;
+ * </pre>
+ */
+ public native void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] image
+ ) ;
+ public native void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] image
+ ) ;
+ public native void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] image
+ ) ;
+ public native void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] image
+ ) ;
+ public native void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] image
+ ) ;
+ public native void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] image
+ ) ;
+ public native void glConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] image
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterf ( GLenum target , GLenum pname , GLfloat params ) ;
+ * </pre>
+ */
+ public native void glConvolutionParameterf (
+ int target,
+ int pname,
+ float params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameterfv ( GLenum target , GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public native void glConvolutionParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteri ( GLenum target , GLenum pname , GLint params ) ;
+ * </pre>
+ */
+ public native void glConvolutionParameteri (
+ int target,
+ int pname,
+ int params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glConvolutionParameteriv ( GLenum target , GLenum pname , const GLint * params ) ;
+ * </pre>
+ */
+ public native void glConvolutionParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter1D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width ) ;
+ * </pre>
+ */
+ public native void glCopyConvolutionFilter1D (
+ int target,
+ int internalformat,
+ int x,
+ int y,
+ int width
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyConvolutionFilter2D ( GLenum target , GLenum internalformat , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public native void glCopyConvolutionFilter2D (
+ int target,
+ int internalformat,
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionFilter ( GLenum target , GLenum format , GLenum type , GLvoid * image ) ;
+ * </pre>
+ */
+ public native void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ byte[] image
+ ) ;
+ public native void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ short[] image
+ ) ;
+ public native void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ int[] image
+ ) ;
+ public native void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ float[] image
+ ) ;
+ public native void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ double[] image
+ ) ;
+ public native void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ boolean[] image
+ ) ;
+ public native void glGetConvolutionFilter (
+ int target,
+ int format,
+ int type,
+ long[] image
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameterfv ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public native void glGetConvolutionParameterfv (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetConvolutionParameteriv ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public native void glGetConvolutionParameteriv (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glSeparableFilter2D ( GLenum target , GLenum internalformat , GLsizei width , GLsizei height , GLenum format , GLenum type , const GLvoid * row , const GLvoid * column ) ;
+ * </pre>
+ */
+ public native void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] row,
+ byte[] column
+ ) ;
+ public native void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] row,
+ short[] column
+ ) ;
+ public native void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] row,
+ int[] column
+ ) ;
+ public native void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] row,
+ float[] column
+ ) ;
+ public native void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] row,
+ double[] column
+ ) ;
+ public native void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] row,
+ boolean[] column
+ ) ;
+ public native void glSeparableFilter2D (
+ int target,
+ int internalformat,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] row,
+ long[] column
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetSeparableFilter ( GLenum target , GLenum format , GLenum type , GLvoid * row , GLvoid * column , GLvoid * span ) ;
+ * </pre>
+ */
+ public native void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ byte[] row,
+ byte[] column,
+ byte[] span
+ ) ;
+ public native void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ short[] row,
+ short[] column,
+ short[] span
+ ) ;
+ public native void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ int[] row,
+ int[] column,
+ int[] span
+ ) ;
+ public native void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ float[] row,
+ float[] column,
+ float[] span
+ ) ;
+ public native void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ double[] row,
+ double[] column,
+ double[] span
+ ) ;
+ public native void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ boolean[] row,
+ boolean[] column,
+ boolean[] span
+ ) ;
+ public native void glGetSeparableFilter (
+ int target,
+ int format,
+ int type,
+ long[] row,
+ long[] column,
+ long[] span
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendColorEXT ( GLclampf red , GLclampf green , GLclampf blue , GLclampf alpha ) ;
+ * </pre>
+ */
+ public native void glBlendColorEXT (
+ float red,
+ float green,
+ float blue,
+ float alpha
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPolygonOffsetEXT ( GLfloat factor , GLfloat bias ) ;
+ * </pre>
+ */
+ public native void glPolygonOffsetEXT (
+ float factor,
+ float bias
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexImage3DEXT ( GLenum target , GLint level , GLenum internalFormat , GLsizei width , GLsizei height , GLsizei depth , GLint border , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public native void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public native void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public native void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public native void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public native void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public native void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public native void glTexImage3DEXT (
+ int target,
+ int level,
+ int internalFormat,
+ int width,
+ int height,
+ int depth,
+ int border,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLsizei width , GLsizei height , GLsizei depth , GLenum format , GLenum type , const GLvoid * pixels ) ;
+ * </pre>
+ */
+ public native void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ byte[] pixels
+ ) ;
+ public native void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ short[] pixels
+ ) ;
+ public native void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ int[] pixels
+ ) ;
+ public native void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ float[] pixels
+ ) ;
+ public native void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ double[] pixels
+ ) ;
+ public native void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ boolean[] pixels
+ ) ;
+ public native void glTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int width,
+ int height,
+ int depth,
+ int format,
+ int type,
+ long[] pixels
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glCopyTexSubImage3DEXT ( GLenum target , GLint level , GLint xoffset , GLint yoffset , GLint zoffset , GLint x , GLint y , GLsizei width , GLsizei height ) ;
+ * </pre>
+ */
+ public native void glCopyTexSubImage3DEXT (
+ int target,
+ int level,
+ int xoffset,
+ int yoffset,
+ int zoffset,
+ int x,
+ int y,
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGenTexturesEXT ( GLsizei n , GLuint * textures ) ;
+ * </pre>
+ */
+ public native void glGenTexturesEXT (
+ int n,
+ int[] textures
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDeleteTexturesEXT ( GLsizei n , const GLuint * textures ) ;
+ * </pre>
+ */
+ public native void glDeleteTexturesEXT (
+ int n,
+ int[] textures
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBindTextureEXT ( GLenum target , GLuint texture ) ;
+ * </pre>
+ */
+ public native void glBindTextureEXT (
+ int target,
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPrioritizeTexturesEXT ( GLsizei n , const GLuint * textures , const GLclampf * priorities ) ;
+ * </pre>
+ */
+ public native void glPrioritizeTexturesEXT (
+ int n,
+ int[] textures,
+ float[] priorities
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glAreTexturesResidentEXT ( GLsizei n , const GLuint * textures , GLboolean * residences ) ;
+ * </pre>
+ */
+ public native boolean glAreTexturesResidentEXT (
+ int n,
+ int[] textures,
+ boolean[] residences
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLboolean glIsTextureEXT ( GLuint texture ) ;
+ * </pre>
+ */
+ public native boolean glIsTextureEXT (
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glVertexPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public native void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public native void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public native void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public native void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public native void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public native void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public native void glVertexPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glNormalPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public native void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public native void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public native void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public native void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public native void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public native void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public native void glNormalPointerEXT (
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public native void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public native void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public native void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public native void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public native void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public native void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public native void glColorPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glIndexPointerEXT ( GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public native void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public native void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public native void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public native void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public native void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public native void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public native void glIndexPointerEXT (
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glTexCoordPointerEXT ( GLint size , GLenum type , GLsizei stride , GLsizei count , const GLvoid * ptr ) ;
+ * </pre>
+ */
+ public native void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ byte[] ptr
+ ) ;
+ public native void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ short[] ptr
+ ) ;
+ public native void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ int[] ptr
+ ) ;
+ public native void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ float[] ptr
+ ) ;
+ public native void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ double[] ptr
+ ) ;
+ public native void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+ public native void glTexCoordPointerEXT (
+ int size,
+ int type,
+ int stride,
+ int count,
+ long[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glEdgeFlagPointerEXT ( GLsizei stride , GLsizei count , const GLboolean * ptr ) ;
+ * </pre>
+ */
+ public native void glEdgeFlagPointerEXT (
+ int stride,
+ int count,
+ boolean[] ptr
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetPointervEXT ( GLenum pname , void * * params ) ;
+ * </pre>
+ */
+ public native void glGetPointervEXT (
+ int pname,
+ byte[][] params
+ ) ;
+ public native void glGetPointervEXT (
+ int pname,
+ short[][] params
+ ) ;
+ public native void glGetPointervEXT (
+ int pname,
+ int[][] params
+ ) ;
+ public native void glGetPointervEXT (
+ int pname,
+ float[][] params
+ ) ;
+ public native void glGetPointervEXT (
+ int pname,
+ double[][] params
+ ) ;
+ public native void glGetPointervEXT (
+ int pname,
+ boolean[][] params
+ ) ;
+ public native void glGetPointervEXT (
+ int pname,
+ long[][] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glArrayElementEXT ( GLint i ) ;
+ * </pre>
+ */
+ public native void glArrayElementEXT (
+ int i
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glDrawArraysEXT ( GLenum mode , GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ public native void glDrawArraysEXT (
+ int mode,
+ int first,
+ int count
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glBlendEquationEXT ( GLenum mode ) ;
+ * </pre>
+ */
+ public native void glBlendEquationEXT (
+ int mode
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfEXT ( GLenum pname , GLfloat param ) ;
+ * </pre>
+ */
+ public native void glPointParameterfEXT (
+ int pname,
+ float param
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glPointParameterfvEXT ( GLenum pname , const GLfloat * params ) ;
+ * </pre>
+ */
+ public native void glPointParameterfvEXT (
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorTableEXT ( GLenum target , GLenum internalformat , GLsizei width , GLenum format , GLenum type , const GLvoid * table ) ;
+ * </pre>
+ */
+ public native void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ byte[] table
+ ) ;
+ public native void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ short[] table
+ ) ;
+ public native void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ int[] table
+ ) ;
+ public native void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ float[] table
+ ) ;
+ public native void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ double[] table
+ ) ;
+ public native void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ boolean[] table
+ ) ;
+ public native void glColorTableEXT (
+ int target,
+ int internalformat,
+ int width,
+ int format,
+ int type,
+ long[] table
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glColorSubTableEXT ( GLenum target , GLsizei start , GLsizei count , GLenum format , GLenum type , const GLvoid * data ) ;
+ * </pre>
+ */
+ public native void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ byte[] data
+ ) ;
+ public native void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ short[] data
+ ) ;
+ public native void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ int[] data
+ ) ;
+ public native void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ float[] data
+ ) ;
+ public native void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ double[] data
+ ) ;
+ public native void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ boolean[] data
+ ) ;
+ public native void glColorSubTableEXT (
+ int target,
+ int start,
+ int count,
+ int format,
+ int type,
+ long[] data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableEXT ( GLenum target , GLenum format , GLenum type , GLvoid * table ) ;
+ * </pre>
+ */
+ public native void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ byte[] table
+ ) ;
+ public native void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ short[] table
+ ) ;
+ public native void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ int[] table
+ ) ;
+ public native void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ float[] table
+ ) ;
+ public native void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ double[] table
+ ) ;
+ public native void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ boolean[] table
+ ) ;
+ public native void glGetColorTableEXT (
+ int target,
+ int format,
+ int type,
+ long[] table
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterfvEXT ( GLenum target , GLenum pname , GLfloat * params ) ;
+ * </pre>
+ */
+ public native void glGetColorTableParameterfvEXT (
+ int target,
+ int pname,
+ float[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glGetColorTableParameterivEXT ( GLenum target , GLenum pname , GLint * params ) ;
+ * </pre>
+ */
+ public native void glGetColorTableParameterivEXT (
+ int target,
+ int pname,
+ int[] params
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glLockArraysEXT ( GLint first , GLsizei count ) ;
+ * </pre>
+ */
+ public native void glLockArraysEXT (
+ int first,
+ int count
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glUnlockArraysEXT ( void ) ;
+ * </pre>
+ */
+ public native void glUnlockArraysEXT (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ public native void glActiveTextureARB (
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glClientActiveTextureARB ( GLenum texture ) ;
+ * </pre>
+ */
+ public native void glClientActiveTextureARB (
+ int texture
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dARB ( GLenum target , GLdouble s ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord1dARB (
+ int target,
+ double s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord1dvARB (
+ int target,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fARB ( GLenum target , GLfloat s ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord1fARB (
+ int target,
+ float s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord1fvARB (
+ int target,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1iARB ( GLenum target , GLint s ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord1iARB (
+ int target,
+ int s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord1ivARB (
+ int target,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1sARB ( GLenum target , GLshort s ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord1sARB (
+ int target,
+ short s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord1svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord1svARB (
+ int target,
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dARB ( GLenum target , GLdouble s , GLdouble t ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord2dARB (
+ int target,
+ double s,
+ double t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord2dvARB (
+ int target,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fARB ( GLenum target , GLfloat s , GLfloat t ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord2fARB (
+ int target,
+ float s,
+ float t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord2fvARB (
+ int target,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2iARB ( GLenum target , GLint s , GLint t ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord2iARB (
+ int target,
+ int s,
+ int t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord2ivARB (
+ int target,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2sARB ( GLenum target , GLshort s , GLshort t ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord2sARB (
+ int target,
+ short s,
+ short t
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord2svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord2svARB (
+ int target,
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord3dARB (
+ int target,
+ double s,
+ double t,
+ double r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord3dvARB (
+ int target,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord3fARB (
+ int target,
+ float s,
+ float t,
+ float r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord3fvARB (
+ int target,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3iARB ( GLenum target , GLint s , GLint t , GLint r ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord3iARB (
+ int target,
+ int s,
+ int t,
+ int r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord3ivARB (
+ int target,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3sARB ( GLenum target , GLshort s , GLshort t , GLshort r ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord3sARB (
+ int target,
+ short s,
+ short t,
+ short r
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord3svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord3svARB (
+ int target,
+ short[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dARB ( GLenum target , GLdouble s , GLdouble t , GLdouble r , GLdouble q ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord4dARB (
+ int target,
+ double s,
+ double t,
+ double r,
+ double q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4dvARB ( GLenum target , const GLdouble * v ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord4dvARB (
+ int target,
+ double[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fARB ( GLenum target , GLfloat s , GLfloat t , GLfloat r , GLfloat q ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord4fARB (
+ int target,
+ float s,
+ float t,
+ float r,
+ float q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4fvARB ( GLenum target , const GLfloat * v ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord4fvARB (
+ int target,
+ float[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4iARB ( GLenum target , GLint s , GLint t , GLint r , GLint q ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord4iARB (
+ int target,
+ int s,
+ int t,
+ int r,
+ int q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4ivARB ( GLenum target , const GLint * v ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord4ivARB (
+ int target,
+ int[] v
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4sARB ( GLenum target , GLshort s , GLshort t , GLshort r , GLshort q ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord4sARB (
+ int target,
+ short s,
+ short t,
+ short r,
+ short q
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void glMultiTexCoord4svARB ( GLenum target , const GLshort * v ) ;
+ * </pre>
+ */
+ public native void glMultiTexCoord4svARB (
+ int target,
+ short[] v
+ ) ;
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
+
+
+}
+
diff --git a/gl4java/GLUEnum.java b/gl4java/GLUEnum.java
new file mode 100644
index 0000000..accda94
--- /dev/null
+++ b/gl4java/GLUEnum.java
@@ -0,0 +1,141 @@
+/* WARNING ! WARNING *** THIS FILE IS GENERATED BY C2J !!!
+
+ DO NOT MAKE ANY CHANGES *** MAKE CHANGES IN THE SKELETON FILES !!!
+*/
+
+
+/**
+ * @(#) GLUEnum.java
+ */
+
+
+package gl4java;
+
+/**
+ * The base interface for GLU enumerates,
+ * which provides you all the C-API style enumerates
+ *
+ * @version 2.00, 21. April 1999
+ * @author Sven Goethel
+ */
+public interface GLUEnum
+{
+
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: glu-enum-auto.orig . . .
+ * Destination-Class: gl4java_GLUEnum !
+ */
+
+ public static final int GLU_AUTO_LOAD_MATRIX = 100200;
+ public static final int GLU_CCW = 100121;
+ public static final int GLU_CULLING = 100201;
+ public static final int GLU_CW = 100120;
+ public static final int GLU_DISPLAY_MODE = 100204;
+ public static final int GLU_DOMAIN_DISTANCE = 100217;
+ public static final int GLU_EXTENSIONS = 100801;
+ public static final int GLU_EXTERIOR = 100123;
+ public static final int GLU_FALSE = 0;
+ public static final int GLU_FILL = 100012;
+ public static final int GLU_FLAT = 100001;
+ public static final int GLU_INCOMPATIBLE_GL_VERSION = 100903;
+ public static final int GLU_INSIDE = 100021;
+ public static final int GLU_INTERIOR = 100122;
+ public static final int GLU_INVALID_ENUM = 100900;
+ public static final int GLU_INVALID_VALUE = 100901;
+ public static final int GLU_LINE = 100011;
+ public static final int GLU_MAP1_TRIM_2 = 100210;
+ public static final int GLU_MAP1_TRIM_3 = 100211;
+ public static final int GLU_NONE = 100002;
+ public static final int GLU_NURBS_ERROR1 = 100251;
+ public static final int GLU_NURBS_ERROR10 = 100260;
+ public static final int GLU_NURBS_ERROR11 = 100261;
+ public static final int GLU_NURBS_ERROR12 = 100262;
+ public static final int GLU_NURBS_ERROR13 = 100263;
+ public static final int GLU_NURBS_ERROR14 = 100264;
+ public static final int GLU_NURBS_ERROR15 = 100265;
+ public static final int GLU_NURBS_ERROR16 = 100266;
+ public static final int GLU_NURBS_ERROR17 = 100267;
+ public static final int GLU_NURBS_ERROR18 = 100268;
+ public static final int GLU_NURBS_ERROR19 = 100269;
+ public static final int GLU_NURBS_ERROR2 = 100252;
+ public static final int GLU_NURBS_ERROR20 = 100270;
+ public static final int GLU_NURBS_ERROR21 = 100271;
+ public static final int GLU_NURBS_ERROR22 = 100272;
+ public static final int GLU_NURBS_ERROR23 = 100273;
+ public static final int GLU_NURBS_ERROR24 = 100274;
+ public static final int GLU_NURBS_ERROR25 = 100275;
+ public static final int GLU_NURBS_ERROR26 = 100276;
+ public static final int GLU_NURBS_ERROR27 = 100277;
+ public static final int GLU_NURBS_ERROR28 = 100278;
+ public static final int GLU_NURBS_ERROR29 = 100279;
+ public static final int GLU_NURBS_ERROR3 = 100253;
+ public static final int GLU_NURBS_ERROR30 = 100280;
+ public static final int GLU_NURBS_ERROR31 = 100281;
+ public static final int GLU_NURBS_ERROR32 = 100282;
+ public static final int GLU_NURBS_ERROR33 = 100283;
+ public static final int GLU_NURBS_ERROR34 = 100284;
+ public static final int GLU_NURBS_ERROR35 = 100285;
+ public static final int GLU_NURBS_ERROR36 = 100286;
+ public static final int GLU_NURBS_ERROR37 = 100287;
+ public static final int GLU_NURBS_ERROR4 = 100254;
+ public static final int GLU_NURBS_ERROR5 = 100255;
+ public static final int GLU_NURBS_ERROR6 = 100256;
+ public static final int GLU_NURBS_ERROR7 = 100257;
+ public static final int GLU_NURBS_ERROR8 = 100258;
+ public static final int GLU_NURBS_ERROR9 = 100259;
+ public static final int GLU_OUTLINE_PATCH = 100241;
+ public static final int GLU_OUTLINE_POLYGON = 100240;
+ public static final int GLU_OUTSIDE = 100020;
+ public static final int GLU_OUT_OF_MEMORY = 100902;
+ public static final int GLU_PARAMETRIC_ERROR = 100216;
+ public static final int GLU_PARAMETRIC_TOLERANCE = 100202;
+ public static final int GLU_PATH_LENGTH = 100215;
+ public static final int GLU_POINT = 100010;
+ public static final int GLU_SAMPLING_METHOD = 100205;
+ public static final int GLU_SAMPLING_TOLERANCE = 100203;
+ public static final int GLU_SILHOUETTE = 100013;
+ public static final int GLU_SMOOTH = 100000;
+ public static final int GLU_TESS_BEGIN = 100100;
+ public static final int GLU_TESS_BEGIN_DATA = 100106;
+ public static final int GLU_TESS_BOUNDARY_ONLY = 100141;
+ public static final int GLU_TESS_COMBINE = 100105;
+ public static final int GLU_TESS_COMBINE_DATA = 100111;
+ public static final int GLU_TESS_EDGE_FLAG = 100104;
+ public static final int GLU_TESS_EDGE_FLAG_DATA = 100110;
+ public static final int GLU_TESS_END = 100102;
+ public static final int GLU_TESS_END_DATA = 100108;
+ public static final int GLU_TESS_ERROR = 100103;
+ public static final int GLU_TESS_ERROR1 = 100151;
+ public static final int GLU_TESS_ERROR2 = 100152;
+ public static final int GLU_TESS_ERROR3 = 100153;
+ public static final int GLU_TESS_ERROR4 = 100154;
+ public static final int GLU_TESS_ERROR5 = 100155;
+ public static final int GLU_TESS_ERROR6 = 100156;
+ public static final int GLU_TESS_ERROR7 = 100157;
+ public static final int GLU_TESS_ERROR8 = 100158;
+ public static final int GLU_TESS_ERROR_DATA = 100109;
+ public static final int GLU_TESS_TOLERANCE = 100142;
+ public static final int GLU_TESS_VERTEX = 100101;
+ public static final int GLU_TESS_VERTEX_DATA = 100107;
+ public static final int GLU_TESS_WINDING_ABS_GEQ_TWO = 100134;
+ public static final int GLU_TESS_WINDING_NEGATIVE = 100133;
+ public static final int GLU_TESS_WINDING_NONZERO = 100131;
+ public static final int GLU_TESS_WINDING_ODD = 100130;
+ public static final int GLU_TESS_WINDING_POSITIVE = 100132;
+ public static final int GLU_TESS_WINDING_RULE = 100140;
+ public static final int GLU_UNKNOWN = 100124;
+ public static final int GLU_U_STEP = 100206;
+ public static final int GLU_VERSION = 100800;
+ public static final int GLU_V_STEP = 100207;
+ public static final int GLU_VERTEX = GLU_TESS_VERTEX;
+ public static final int GLU_BEGIN = GLU_TESS_BEGIN;
+ public static final int GLU_EDGE_FLAG = GLU_TESS_EDGE_FLAG;
+ public static final int GLU_END = GLU_TESS_END;
+ public static final int GLU_ERROR = GLU_TESS_ERROR;
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
+
+
+}
+
diff --git a/gl4java/GLUFunc.java b/gl4java/GLUFunc.java
new file mode 100644
index 0000000..0232eae
--- /dev/null
+++ b/gl4java/GLUFunc.java
@@ -0,0 +1,774 @@
+/* WARNING ! WARNING *** THIS FILE IS GENERATED BY C2J !!!
+
+ DO NOT MAKE ANY CHANGES *** MAKE CHANGES IN THE SKELETON FILES !!!
+*/
+
+
+/**
+ * @(#) GLUFunc.java
+ */
+
+
+package gl4java;
+
+/**
+ * The base interface for GLU native function mapping
+ *
+ * @version 2.00, 21. April 1999
+ * @author Sven Goethel
+ */
+public interface GLUFunc
+ extends GLUEnum
+{
+
+public String gluErrorString ( int errorCode ) ;
+
+public String gluGetString ( int name ) ;
+
+public String getNativeVendor ( ) ;
+public String getNativeVersion ( ) ;
+
+public String getClassVendor ( ) ;
+public String getClassVersion ( ) ;
+
+public void gluQuadricCallback(
+ int qobj, int which,
+ Object methodClassInstance,
+ String methodName,
+ String signature
+ );
+
+public void gluNurbsCallback(
+ int nobj, int which,
+ Object methodClassInstance,
+ String methodName,
+ String signature
+ );
+
+
+public void gluTessCallback(
+ int tobj, int which,
+ Object methodClassInstance,
+ String methodName,
+ String signature,
+ int voidArrayLen1,
+ int voidArrayLen2,
+ int voidArrayLen3,
+ int voidArrayLen4,
+ int voidArrayLen5
+ );
+
+public void gluDeleteQuadric( int qobj );
+
+public void gluDeleteNurbsRenderer( int nobj );
+
+public void gluDeleteTess( int tobj );
+
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: glu-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLUFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLookAt ( GLdouble eyex , GLdouble eyey , GLdouble eyez , GLdouble centerx , GLdouble centery , GLdouble centerz , GLdouble upx , GLdouble upy , GLdouble upz ) ;
+ * </pre>
+ */
+ public void gluLookAt (
+ double eyex,
+ double eyey,
+ double eyez,
+ double centerx,
+ double centery,
+ double centerz,
+ double upx,
+ double upy,
+ double upz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluOrtho2D ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top ) ;
+ * </pre>
+ */
+ public void gluOrtho2D (
+ double left,
+ double right,
+ double bottom,
+ double top
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPerspective ( GLdouble fovy , GLdouble aspect , GLdouble zNear , GLdouble zFar ) ;
+ * </pre>
+ */
+ public void gluPerspective (
+ double fovy,
+ double aspect,
+ double zNear,
+ double zFar
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPickMatrix ( GLdouble x , GLdouble y , GLdouble width , GLdouble height , GLint * viewport ) ;
+ * </pre>
+ */
+ public void gluPickMatrix (
+ double x,
+ double y,
+ double width,
+ double height,
+ int[] viewport
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluProject ( GLdouble objx , GLdouble objy , GLdouble objz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * winx , GLdouble * winy , GLdouble * winz ) ;
+ * </pre>
+ */
+ public int gluProject (
+ double objx,
+ double objy,
+ double objz,
+ double[] modelMatrix,
+ double[] projMatrix,
+ int[] viewport,
+ double[] winx,
+ double[] winy,
+ double[] winz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluUnProject ( GLdouble winx , GLdouble winy , GLdouble winz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * objx , GLdouble * objy , GLdouble * objz ) ;
+ * </pre>
+ */
+ public int gluUnProject (
+ double winx,
+ double winy,
+ double winz,
+ double[] modelMatrix,
+ double[] projMatrix,
+ int[] viewport,
+ double[] objx,
+ double[] objy,
+ double[] objz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluScaleImage ( GLenum format , GLsizei widthin , GLsizei heightin , GLenum typein , const char * datain , GLsizei widthout , GLsizei heightout , GLenum typeout , char * dataout ) ;
+ * </pre>
+ */
+ public int gluScaleImage (
+ int format,
+ int widthin,
+ int heightin,
+ int typein,
+ byte[] datain,
+ int widthout,
+ int heightout,
+ int typeout,
+ byte[] dataout
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild1DMipmaps ( GLenum target , GLint components , GLint width , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ public int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ byte[] data
+ ) ;
+ public int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ short[] data
+ ) ;
+ public int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ int[] data
+ ) ;
+ public int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ float[] data
+ ) ;
+ public int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ double[] data
+ ) ;
+ public int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ boolean[] data
+ ) ;
+ public int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ long[] data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild2DMipmaps ( GLenum target , GLint components , GLint width , GLint height , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ public int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] data
+ ) ;
+ public int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] data
+ ) ;
+ public int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] data
+ ) ;
+ public int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] data
+ ) ;
+ public int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] data
+ ) ;
+ public int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] data
+ ) ;
+ public int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUquadricObj * gluNewQuadric ( void ) ;
+ * </pre>
+ */
+ public int gluNewQuadric (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricDrawStyle ( GLUquadricObj * quadObject , GLenum drawStyle ) ;
+ * </pre>
+ */
+ public void gluQuadricDrawStyle (
+ int quadObject,
+ int drawStyle
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricOrientation ( GLUquadricObj * quadObject , GLenum orientation ) ;
+ * </pre>
+ */
+ public void gluQuadricOrientation (
+ int quadObject,
+ int orientation
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricNormals ( GLUquadricObj * quadObject , GLenum normals ) ;
+ * </pre>
+ */
+ public void gluQuadricNormals (
+ int quadObject,
+ int normals
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricTexture ( GLUquadricObj * quadObject , GLboolean textureCoords ) ;
+ * </pre>
+ */
+ public void gluQuadricTexture (
+ int quadObject,
+ boolean textureCoords
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluCylinder ( GLUquadricObj * qobj , GLdouble baseRadius , GLdouble topRadius , GLdouble height , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ public void gluCylinder (
+ int qobj,
+ double baseRadius,
+ double topRadius,
+ double height,
+ int slices,
+ int stacks
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluSphere ( GLUquadricObj * qobj , GLdouble radius , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ public void gluSphere (
+ int qobj,
+ double radius,
+ int slices,
+ int stacks
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops ) ;
+ * </pre>
+ */
+ public void gluDisk (
+ int qobj,
+ double innerRadius,
+ double outerRadius,
+ int slices,
+ int loops
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPartialDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops , GLdouble startAngle , GLdouble sweepAngle ) ;
+ * </pre>
+ */
+ public void gluPartialDisk (
+ int qobj,
+ double innerRadius,
+ double outerRadius,
+ int slices,
+ int loops,
+ double startAngle,
+ double sweepAngle
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUnurbsObj * gluNewNurbsRenderer ( void ) ;
+ * </pre>
+ */
+ public int gluNewNurbsRenderer (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLoadSamplingMatrices ( GLUnurbsObj * nobj , const GLfloat modelMatrix [ 16 ] , const GLfloat projMatrix [ 16 ] , const GLint viewport [ 4 ] ) ;
+ * </pre>
+ */
+ public void gluLoadSamplingMatrices (
+ int nobj,
+ float[] modelMatrix,
+ float[] projMatrix,
+ int[] viewport
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat value ) ;
+ * </pre>
+ */
+ public void gluNurbsProperty (
+ int nobj,
+ int property,
+ float value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat * value ) ;
+ * </pre>
+ */
+ public void gluGetNurbsProperty (
+ int nobj,
+ int property,
+ float[] value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public void gluBeginCurve (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public void gluEndCurve (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsCurve ( GLUnurbsObj * nobj , GLint nknots , GLfloat * knot , GLint stride , GLfloat * ctlarray , GLint order , GLenum type ) ;
+ * </pre>
+ */
+ public void gluNurbsCurve (
+ int nobj,
+ int nknots,
+ float[] knot,
+ int stride,
+ float[] ctlarray,
+ int order,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public void gluBeginSurface (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public void gluEndSurface (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsSurface ( GLUnurbsObj * nobj , GLint sknot_count , GLfloat * sknot , GLint tknot_count , GLfloat * tknot , GLint s_stride , GLint t_stride , GLfloat * ctlarray , GLint sorder , GLint torder , GLenum type ) ;
+ * </pre>
+ */
+ public void gluNurbsSurface (
+ int nobj,
+ int sknot_count,
+ float[] sknot,
+ int tknot_count,
+ float[] tknot,
+ int s_stride,
+ int t_stride,
+ float[] ctlarray,
+ int sorder,
+ int torder,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public void gluBeginTrim (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public void gluEndTrim (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPwlCurve ( GLUnurbsObj * nobj , GLint count , GLfloat * array , GLint stride , GLenum type ) ;
+ * </pre>
+ */
+ public void gluPwlCurve (
+ int nobj,
+ int count,
+ float[] array,
+ int stride,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUtesselator * gluNewTess ( void ) ;
+ * </pre>
+ */
+ public int gluNewTess (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginPolygon ( GLUtesselator * tobj , void * polygon_data ) ;
+ * </pre>
+ */
+ public void gluTessBeginPolygon (
+ int tobj,
+ byte[] polygon_data
+ ) ;
+ public void gluTessBeginPolygon (
+ int tobj,
+ short[] polygon_data
+ ) ;
+ public void gluTessBeginPolygon (
+ int tobj,
+ int[] polygon_data
+ ) ;
+ public void gluTessBeginPolygon (
+ int tobj,
+ float[] polygon_data
+ ) ;
+ public void gluTessBeginPolygon (
+ int tobj,
+ double[] polygon_data
+ ) ;
+ public void gluTessBeginPolygon (
+ int tobj,
+ boolean[] polygon_data
+ ) ;
+ public void gluTessBeginPolygon (
+ int tobj,
+ long[] polygon_data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public void gluTessBeginContour (
+ int tobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessVertex ( GLUtesselator * tobj , GLdouble coords [ 3 ] , void * vertex_data ) ;
+ * </pre>
+ */
+ public void gluTessVertex (
+ int tobj,
+ double[] coords,
+ byte[] vertex_data
+ ) ;
+ public void gluTessVertex (
+ int tobj,
+ double[] coords,
+ short[] vertex_data
+ ) ;
+ public void gluTessVertex (
+ int tobj,
+ double[] coords,
+ int[] vertex_data
+ ) ;
+ public void gluTessVertex (
+ int tobj,
+ double[] coords,
+ float[] vertex_data
+ ) ;
+ public void gluTessVertex (
+ int tobj,
+ double[] coords,
+ double[] vertex_data
+ ) ;
+ public void gluTessVertex (
+ int tobj,
+ double[] coords,
+ boolean[] vertex_data
+ ) ;
+ public void gluTessVertex (
+ int tobj,
+ double[] coords,
+ long[] vertex_data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public void gluTessEndContour (
+ int tobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public void gluTessEndPolygon (
+ int tobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble value ) ;
+ * </pre>
+ */
+ public void gluTessProperty (
+ int tobj,
+ int which,
+ double value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessNormal ( GLUtesselator * tobj , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public void gluTessNormal (
+ int tobj,
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble * value ) ;
+ * </pre>
+ */
+ public void gluGetTessProperty (
+ int tobj,
+ int which,
+ double[] value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public void gluBeginPolygon (
+ int tobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNextContour ( GLUtesselator * tobj , GLenum type ) ;
+ * </pre>
+ */
+ public void gluNextContour (
+ int tobj,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public void gluEndPolygon (
+ int tobj
+ ) ;
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
+
+
+}
+
diff --git a/gl4java/GLUFuncJauJNI.java b/gl4java/GLUFuncJauJNI.java
new file mode 100644
index 0000000..12843f7
--- /dev/null
+++ b/gl4java/GLUFuncJauJNI.java
@@ -0,0 +1,848 @@
+/* WARNING ! WARNING *** THIS FILE IS GENERATED BY C2J !!!
+
+ DO NOT MAKE ANY CHANGES *** MAKE CHANGES IN THE SKELETON FILES !!!
+*/
+
+
+/**
+ * @(#) GLUFuncJauJNI.java
+ */
+
+
+package gl4java;
+
+/**
+ * The default implementation class for GLU native function mapping
+ *
+ * @version 2.00, 21. April 1999
+ * @author Sven Goethel
+ */
+public class GLUFuncJauJNI
+ implements GLUFunc
+{
+
+
+public final native String gluErrorString ( int errorCode ) ;
+public final native String gluGetString ( int name ) ;
+
+public final native String getNativeVendor ( ) ;
+public final native String getNativeVersion ( ) ;
+
+public final String getClassVendor ( )
+{ return "Jausoft - Sven Goethel Software Development"; }
+
+public final String getClassVersion ( )
+{ return "2.4.1.0"; }
+
+
+/**
+ * The Callback registry function.
+ * To achieve the signature (internal argument signature)
+ * you can use the "javap -s <classname>" toolkit of the JDK !
+ *
+ * @param qobj the quadratic id, fetch with gluNewQuadric
+ * @param which the id for the callback type
+ * @param methodClassInstance the class instance,
+ * which implements the callback-method
+ * @param methodName the name of the callback-method
+ * @param signature the signature of the callback-method.
+ *
+ * @see GLUFunc#gluNewQuadric
+ */
+public final native void gluQuadricCallback(
+ int qobj, int which,
+ Object methodClassInstance,
+ String methodName,
+ String signature
+ );
+
+/**
+ * The Callback registry function.
+ * To achieve the signature (internal argument signature)
+ * you can use the "javap -s <classname>" toolkit of the JDK !
+ *
+ * @param nobj the nurbs id, fetch with gluNewNurbsRenderer
+ * @param which the id for the callback type
+ * @param methodClassInstance the class instance,
+ * which implements the callback-method
+ * @param methodName the name of the callback-method
+ * @param signature the signature of the callback-method.
+ *
+ * @see GLUFunc#gluNewNurbsRenderer
+ */
+public final native void gluNurbsCallback(
+ int nobj, int which,
+ Object methodClassInstance,
+ String methodName,
+ String signature
+ );
+
+
+/**
+ * The Callback registry function.
+ * To achieve the signature (internal argument signature)
+ * you can use the "javap -s <classname>" toolkit of the JDK !
+ *
+ * @param tobj the tesselation id, fetch with gluNewTess
+ * @param which the id for the callback type
+ * @param methodClassInstance the class instance,
+ * which implements the callback-method
+ * @param methodName the name of the callback-method
+ * @param signature the signature of the callback-method.
+ * @param voidArrayLen1 the optional length of the 1st array
+ * in the callback-methods argument-list
+ * @param voidArrayLen2 the optional length of the 2nd array
+ * in the callback-methods argument-list
+ * @param voidArrayLen3 the optional length of the 3rd array
+ * in the callback-methods argument-list
+ * @param voidArrayLen4 the optional length of the 4th array
+ * in the callback-methods argument-list
+ * @param voidArrayLen5 the optional length of the 5th array
+ * in the callback-methods argument-list
+ *
+ * @see GLUFunc#gluNewTess
+ */
+public final native void gluTessCallback(
+ int tobj, int which,
+ Object methodClassInstance,
+ String methodName,
+ String signature,
+ int voidArrayLen1,
+ int voidArrayLen2,
+ int voidArrayLen3,
+ int voidArrayLen4,
+ int voidArrayLen5
+ );
+
+/**
+ * The Callback de-registry function.
+ *
+ * @param qobj the quadratic id, for which all callback-methods
+ * should be de-registered
+ */
+public final native void gluDeleteQuadric( int qobj );
+
+/**
+ * The Callback de-registry function.
+ *
+ * @param nobj the nurbs id, for which all callback-methods
+ * should be de-registered
+ */
+public final native void gluDeleteNurbsRenderer( int nobj );
+
+/**
+ * The Callback de-registry function.
+ *
+ * @param tobj the tesselation id, for which all callback-methods
+ * should be de-registered
+ */
+public final native void gluDeleteTess( int tobj );
+
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: glu-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLUFuncJauJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLookAt ( GLdouble eyex , GLdouble eyey , GLdouble eyez , GLdouble centerx , GLdouble centery , GLdouble centerz , GLdouble upx , GLdouble upy , GLdouble upz ) ;
+ * </pre>
+ */
+ public final native void gluLookAt (
+ double eyex,
+ double eyey,
+ double eyez,
+ double centerx,
+ double centery,
+ double centerz,
+ double upx,
+ double upy,
+ double upz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluOrtho2D ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top ) ;
+ * </pre>
+ */
+ public final native void gluOrtho2D (
+ double left,
+ double right,
+ double bottom,
+ double top
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPerspective ( GLdouble fovy , GLdouble aspect , GLdouble zNear , GLdouble zFar ) ;
+ * </pre>
+ */
+ public final native void gluPerspective (
+ double fovy,
+ double aspect,
+ double zNear,
+ double zFar
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPickMatrix ( GLdouble x , GLdouble y , GLdouble width , GLdouble height , GLint * viewport ) ;
+ * </pre>
+ */
+ public final native void gluPickMatrix (
+ double x,
+ double y,
+ double width,
+ double height,
+ int[] viewport
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluProject ( GLdouble objx , GLdouble objy , GLdouble objz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * winx , GLdouble * winy , GLdouble * winz ) ;
+ * </pre>
+ */
+ public final native int gluProject (
+ double objx,
+ double objy,
+ double objz,
+ double[] modelMatrix,
+ double[] projMatrix,
+ int[] viewport,
+ double[] winx,
+ double[] winy,
+ double[] winz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluUnProject ( GLdouble winx , GLdouble winy , GLdouble winz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * objx , GLdouble * objy , GLdouble * objz ) ;
+ * </pre>
+ */
+ public final native int gluUnProject (
+ double winx,
+ double winy,
+ double winz,
+ double[] modelMatrix,
+ double[] projMatrix,
+ int[] viewport,
+ double[] objx,
+ double[] objy,
+ double[] objz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluScaleImage ( GLenum format , GLsizei widthin , GLsizei heightin , GLenum typein , const char * datain , GLsizei widthout , GLsizei heightout , GLenum typeout , char * dataout ) ;
+ * </pre>
+ */
+ public final native int gluScaleImage (
+ int format,
+ int widthin,
+ int heightin,
+ int typein,
+ byte[] datain,
+ int widthout,
+ int heightout,
+ int typeout,
+ byte[] dataout
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild1DMipmaps ( GLenum target , GLint components , GLint width , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ public final native int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ byte[] data
+ ) ;
+ public final native int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ short[] data
+ ) ;
+ public final native int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ int[] data
+ ) ;
+ public final native int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ float[] data
+ ) ;
+ public final native int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ double[] data
+ ) ;
+ public final native int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ boolean[] data
+ ) ;
+ public final native int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ long[] data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild2DMipmaps ( GLenum target , GLint components , GLint width , GLint height , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ public final native int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] data
+ ) ;
+ public final native int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] data
+ ) ;
+ public final native int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] data
+ ) ;
+ public final native int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] data
+ ) ;
+ public final native int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] data
+ ) ;
+ public final native int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] data
+ ) ;
+ public final native int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUquadricObj * gluNewQuadric ( void ) ;
+ * </pre>
+ */
+ public final native int gluNewQuadric (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricDrawStyle ( GLUquadricObj * quadObject , GLenum drawStyle ) ;
+ * </pre>
+ */
+ public final native void gluQuadricDrawStyle (
+ int quadObject,
+ int drawStyle
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricOrientation ( GLUquadricObj * quadObject , GLenum orientation ) ;
+ * </pre>
+ */
+ public final native void gluQuadricOrientation (
+ int quadObject,
+ int orientation
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricNormals ( GLUquadricObj * quadObject , GLenum normals ) ;
+ * </pre>
+ */
+ public final native void gluQuadricNormals (
+ int quadObject,
+ int normals
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricTexture ( GLUquadricObj * quadObject , GLboolean textureCoords ) ;
+ * </pre>
+ */
+ public final native void gluQuadricTexture (
+ int quadObject,
+ boolean textureCoords
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluCylinder ( GLUquadricObj * qobj , GLdouble baseRadius , GLdouble topRadius , GLdouble height , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ public final native void gluCylinder (
+ int qobj,
+ double baseRadius,
+ double topRadius,
+ double height,
+ int slices,
+ int stacks
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluSphere ( GLUquadricObj * qobj , GLdouble radius , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ public final native void gluSphere (
+ int qobj,
+ double radius,
+ int slices,
+ int stacks
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops ) ;
+ * </pre>
+ */
+ public final native void gluDisk (
+ int qobj,
+ double innerRadius,
+ double outerRadius,
+ int slices,
+ int loops
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPartialDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops , GLdouble startAngle , GLdouble sweepAngle ) ;
+ * </pre>
+ */
+ public final native void gluPartialDisk (
+ int qobj,
+ double innerRadius,
+ double outerRadius,
+ int slices,
+ int loops,
+ double startAngle,
+ double sweepAngle
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUnurbsObj * gluNewNurbsRenderer ( void ) ;
+ * </pre>
+ */
+ public final native int gluNewNurbsRenderer (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLoadSamplingMatrices ( GLUnurbsObj * nobj , const GLfloat modelMatrix [ 16 ] , const GLfloat projMatrix [ 16 ] , const GLint viewport [ 4 ] ) ;
+ * </pre>
+ */
+ public final native void gluLoadSamplingMatrices (
+ int nobj,
+ float[] modelMatrix,
+ float[] projMatrix,
+ int[] viewport
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat value ) ;
+ * </pre>
+ */
+ public final native void gluNurbsProperty (
+ int nobj,
+ int property,
+ float value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat * value ) ;
+ * </pre>
+ */
+ public final native void gluGetNurbsProperty (
+ int nobj,
+ int property,
+ float[] value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public final native void gluBeginCurve (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public final native void gluEndCurve (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsCurve ( GLUnurbsObj * nobj , GLint nknots , GLfloat * knot , GLint stride , GLfloat * ctlarray , GLint order , GLenum type ) ;
+ * </pre>
+ */
+ public final native void gluNurbsCurve (
+ int nobj,
+ int nknots,
+ float[] knot,
+ int stride,
+ float[] ctlarray,
+ int order,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public final native void gluBeginSurface (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public final native void gluEndSurface (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsSurface ( GLUnurbsObj * nobj , GLint sknot_count , GLfloat * sknot , GLint tknot_count , GLfloat * tknot , GLint s_stride , GLint t_stride , GLfloat * ctlarray , GLint sorder , GLint torder , GLenum type ) ;
+ * </pre>
+ */
+ public final native void gluNurbsSurface (
+ int nobj,
+ int sknot_count,
+ float[] sknot,
+ int tknot_count,
+ float[] tknot,
+ int s_stride,
+ int t_stride,
+ float[] ctlarray,
+ int sorder,
+ int torder,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public final native void gluBeginTrim (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public final native void gluEndTrim (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPwlCurve ( GLUnurbsObj * nobj , GLint count , GLfloat * array , GLint stride , GLenum type ) ;
+ * </pre>
+ */
+ public final native void gluPwlCurve (
+ int nobj,
+ int count,
+ float[] array,
+ int stride,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUtesselator * gluNewTess ( void ) ;
+ * </pre>
+ */
+ public final native int gluNewTess (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginPolygon ( GLUtesselator * tobj , void * polygon_data ) ;
+ * </pre>
+ */
+ public final native void gluTessBeginPolygon (
+ int tobj,
+ byte[] polygon_data
+ ) ;
+ public final native void gluTessBeginPolygon (
+ int tobj,
+ short[] polygon_data
+ ) ;
+ public final native void gluTessBeginPolygon (
+ int tobj,
+ int[] polygon_data
+ ) ;
+ public final native void gluTessBeginPolygon (
+ int tobj,
+ float[] polygon_data
+ ) ;
+ public final native void gluTessBeginPolygon (
+ int tobj,
+ double[] polygon_data
+ ) ;
+ public final native void gluTessBeginPolygon (
+ int tobj,
+ boolean[] polygon_data
+ ) ;
+ public final native void gluTessBeginPolygon (
+ int tobj,
+ long[] polygon_data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public final native void gluTessBeginContour (
+ int tobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessVertex ( GLUtesselator * tobj , GLdouble coords [ 3 ] , void * vertex_data ) ;
+ * </pre>
+ */
+ public final native void gluTessVertex (
+ int tobj,
+ double[] coords,
+ byte[] vertex_data
+ ) ;
+ public final native void gluTessVertex (
+ int tobj,
+ double[] coords,
+ short[] vertex_data
+ ) ;
+ public final native void gluTessVertex (
+ int tobj,
+ double[] coords,
+ int[] vertex_data
+ ) ;
+ public final native void gluTessVertex (
+ int tobj,
+ double[] coords,
+ float[] vertex_data
+ ) ;
+ public final native void gluTessVertex (
+ int tobj,
+ double[] coords,
+ double[] vertex_data
+ ) ;
+ public final native void gluTessVertex (
+ int tobj,
+ double[] coords,
+ boolean[] vertex_data
+ ) ;
+ public final native void gluTessVertex (
+ int tobj,
+ double[] coords,
+ long[] vertex_data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public final native void gluTessEndContour (
+ int tobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public final native void gluTessEndPolygon (
+ int tobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble value ) ;
+ * </pre>
+ */
+ public final native void gluTessProperty (
+ int tobj,
+ int which,
+ double value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessNormal ( GLUtesselator * tobj , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public final native void gluTessNormal (
+ int tobj,
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble * value ) ;
+ * </pre>
+ */
+ public final native void gluGetTessProperty (
+ int tobj,
+ int which,
+ double[] value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public final native void gluBeginPolygon (
+ int tobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNextContour ( GLUtesselator * tobj , GLenum type ) ;
+ * </pre>
+ */
+ public final native void gluNextContour (
+ int tobj,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public final native void gluEndPolygon (
+ int tobj
+ ) ;
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
+
+
+}
+
diff --git a/gl4java/GLUFuncJauJNInf.java b/gl4java/GLUFuncJauJNInf.java
new file mode 100644
index 0000000..51cdbb9
--- /dev/null
+++ b/gl4java/GLUFuncJauJNInf.java
@@ -0,0 +1,848 @@
+/* WARNING ! WARNING *** THIS FILE IS GENERATED BY C2J !!!
+
+ DO NOT MAKE ANY CHANGES *** MAKE CHANGES IN THE SKELETON FILES !!!
+*/
+
+
+/**
+ * @(#) GLUFuncJauJNInf.java
+ */
+
+
+package gl4java;
+
+/**
+ * The default implementation class for GLU native function mapping
+ *
+ * @version 2.00, 21. April 1999
+ * @author Sven Goethel
+ */
+public class GLUFuncJauJNInf
+ implements GLUFunc
+{
+
+
+public native String gluErrorString ( int errorCode ) ;
+public native String gluGetString ( int name ) ;
+
+public native String getNativeVendor ( ) ;
+public native String getNativeVersion ( ) ;
+
+public String getClassVendor ( )
+{ return "Jausoft - Sven Goethel Software Development"; }
+
+public String getClassVersion ( )
+{ return "2.4.1.0"; }
+
+
+/**
+ * The Callback registry function.
+ * To achieve the signature (internal argument signature)
+ * you can use the "javap -s <classname>" toolkit of the JDK !
+ *
+ * @param qobj the quadratic id, fetch with gluNewQuadric
+ * @param which the id for the callback type
+ * @param methodClassInstance the class instance,
+ * which implements the callback-method
+ * @param methodName the name of the callback-method
+ * @param signature the signature of the callback-method.
+ *
+ * @see GLUFunc#gluNewQuadric
+ */
+public native void gluQuadricCallback(
+ int qobj, int which,
+ Object methodClassInstance,
+ String methodName,
+ String signature
+ );
+
+/**
+ * The Callback registry function.
+ * To achieve the signature (internal argument signature)
+ * you can use the "javap -s <classname>" toolkit of the JDK !
+ *
+ * @param nobj the nurbs id, fetch with gluNewNurbsRenderer
+ * @param which the id for the callback type
+ * @param methodClassInstance the class instance,
+ * which implements the callback-method
+ * @param methodName the name of the callback-method
+ * @param signature the signature of the callback-method.
+ *
+ * @see GLUFunc#gluNewNurbsRenderer
+ */
+public native void gluNurbsCallback(
+ int nobj, int which,
+ Object methodClassInstance,
+ String methodName,
+ String signature
+ );
+
+
+/**
+ * The Callback registry function.
+ * To achieve the signature (internal argument signature)
+ * you can use the "javap -s <classname>" toolkit of the JDK !
+ *
+ * @param tobj the tesselation id, fetch with gluNewTess
+ * @param which the id for the callback type
+ * @param methodClassInstance the class instance,
+ * which implements the callback-method
+ * @param methodName the name of the callback-method
+ * @param signature the signature of the callback-method.
+ * @param voidArrayLen1 the optional length of the 1st array
+ * in the callback-methods argument-list
+ * @param voidArrayLen2 the optional length of the 2nd array
+ * in the callback-methods argument-list
+ * @param voidArrayLen3 the optional length of the 3rd array
+ * in the callback-methods argument-list
+ * @param voidArrayLen4 the optional length of the 4th array
+ * in the callback-methods argument-list
+ * @param voidArrayLen5 the optional length of the 5th array
+ * in the callback-methods argument-list
+ *
+ * @see GLUFunc#gluNewTess
+ */
+public native void gluTessCallback(
+ int tobj, int which,
+ Object methodClassInstance,
+ String methodName,
+ String signature,
+ int voidArrayLen1,
+ int voidArrayLen2,
+ int voidArrayLen3,
+ int voidArrayLen4,
+ int voidArrayLen5
+ );
+
+/**
+ * The Callback de-registry function.
+ *
+ * @param qobj the quadratic id, for which all callback-methods
+ * should be de-registered
+ */
+public native void gluDeleteQuadric( int qobj );
+
+/**
+ * The Callback de-registry function.
+ *
+ * @param nobj the nurbs id, for which all callback-methods
+ * should be de-registered
+ */
+public native void gluDeleteNurbsRenderer( int nobj );
+
+/**
+ * The Callback de-registry function.
+ *
+ * @param tobj the tesselation id, for which all callback-methods
+ * should be de-registered
+ */
+public native void gluDeleteTess( int tobj );
+
+/**
+ * C2J Parser Version 1.4 Beta
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: glu-proto-auto.orig . . .
+ * Destination-Class: gl4java_GLUFuncJauJNInf !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLookAt ( GLdouble eyex , GLdouble eyey , GLdouble eyez , GLdouble centerx , GLdouble centery , GLdouble centerz , GLdouble upx , GLdouble upy , GLdouble upz ) ;
+ * </pre>
+ */
+ public native void gluLookAt (
+ double eyex,
+ double eyey,
+ double eyez,
+ double centerx,
+ double centery,
+ double centerz,
+ double upx,
+ double upy,
+ double upz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluOrtho2D ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top ) ;
+ * </pre>
+ */
+ public native void gluOrtho2D (
+ double left,
+ double right,
+ double bottom,
+ double top
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPerspective ( GLdouble fovy , GLdouble aspect , GLdouble zNear , GLdouble zFar ) ;
+ * </pre>
+ */
+ public native void gluPerspective (
+ double fovy,
+ double aspect,
+ double zNear,
+ double zFar
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPickMatrix ( GLdouble x , GLdouble y , GLdouble width , GLdouble height , GLint * viewport ) ;
+ * </pre>
+ */
+ public native void gluPickMatrix (
+ double x,
+ double y,
+ double width,
+ double height,
+ int[] viewport
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluProject ( GLdouble objx , GLdouble objy , GLdouble objz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * winx , GLdouble * winy , GLdouble * winz ) ;
+ * </pre>
+ */
+ public native int gluProject (
+ double objx,
+ double objy,
+ double objz,
+ double[] modelMatrix,
+ double[] projMatrix,
+ int[] viewport,
+ double[] winx,
+ double[] winy,
+ double[] winz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluUnProject ( GLdouble winx , GLdouble winy , GLdouble winz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * objx , GLdouble * objy , GLdouble * objz ) ;
+ * </pre>
+ */
+ public native int gluUnProject (
+ double winx,
+ double winy,
+ double winz,
+ double[] modelMatrix,
+ double[] projMatrix,
+ int[] viewport,
+ double[] objx,
+ double[] objy,
+ double[] objz
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluScaleImage ( GLenum format , GLsizei widthin , GLsizei heightin , GLenum typein , const char * datain , GLsizei widthout , GLsizei heightout , GLenum typeout , char * dataout ) ;
+ * </pre>
+ */
+ public native int gluScaleImage (
+ int format,
+ int widthin,
+ int heightin,
+ int typein,
+ byte[] datain,
+ int widthout,
+ int heightout,
+ int typeout,
+ byte[] dataout
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild1DMipmaps ( GLenum target , GLint components , GLint width , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ public native int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ byte[] data
+ ) ;
+ public native int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ short[] data
+ ) ;
+ public native int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ int[] data
+ ) ;
+ public native int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ float[] data
+ ) ;
+ public native int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ double[] data
+ ) ;
+ public native int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ boolean[] data
+ ) ;
+ public native int gluBuild1DMipmaps (
+ int target,
+ int components,
+ int width,
+ int format,
+ int type,
+ long[] data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLint gluBuild2DMipmaps ( GLenum target , GLint components , GLint width , GLint height , GLenum format , GLenum type , const void * data ) ;
+ * </pre>
+ */
+ public native int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ byte[] data
+ ) ;
+ public native int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ short[] data
+ ) ;
+ public native int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ int[] data
+ ) ;
+ public native int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ float[] data
+ ) ;
+ public native int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ double[] data
+ ) ;
+ public native int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ boolean[] data
+ ) ;
+ public native int gluBuild2DMipmaps (
+ int target,
+ int components,
+ int width,
+ int height,
+ int format,
+ int type,
+ long[] data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUquadricObj * gluNewQuadric ( void ) ;
+ * </pre>
+ */
+ public native int gluNewQuadric (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricDrawStyle ( GLUquadricObj * quadObject , GLenum drawStyle ) ;
+ * </pre>
+ */
+ public native void gluQuadricDrawStyle (
+ int quadObject,
+ int drawStyle
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricOrientation ( GLUquadricObj * quadObject , GLenum orientation ) ;
+ * </pre>
+ */
+ public native void gluQuadricOrientation (
+ int quadObject,
+ int orientation
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricNormals ( GLUquadricObj * quadObject , GLenum normals ) ;
+ * </pre>
+ */
+ public native void gluQuadricNormals (
+ int quadObject,
+ int normals
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluQuadricTexture ( GLUquadricObj * quadObject , GLboolean textureCoords ) ;
+ * </pre>
+ */
+ public native void gluQuadricTexture (
+ int quadObject,
+ boolean textureCoords
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluCylinder ( GLUquadricObj * qobj , GLdouble baseRadius , GLdouble topRadius , GLdouble height , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ public native void gluCylinder (
+ int qobj,
+ double baseRadius,
+ double topRadius,
+ double height,
+ int slices,
+ int stacks
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluSphere ( GLUquadricObj * qobj , GLdouble radius , GLint slices , GLint stacks ) ;
+ * </pre>
+ */
+ public native void gluSphere (
+ int qobj,
+ double radius,
+ int slices,
+ int stacks
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops ) ;
+ * </pre>
+ */
+ public native void gluDisk (
+ int qobj,
+ double innerRadius,
+ double outerRadius,
+ int slices,
+ int loops
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPartialDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops , GLdouble startAngle , GLdouble sweepAngle ) ;
+ * </pre>
+ */
+ public native void gluPartialDisk (
+ int qobj,
+ double innerRadius,
+ double outerRadius,
+ int slices,
+ int loops,
+ double startAngle,
+ double sweepAngle
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUnurbsObj * gluNewNurbsRenderer ( void ) ;
+ * </pre>
+ */
+ public native int gluNewNurbsRenderer (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluLoadSamplingMatrices ( GLUnurbsObj * nobj , const GLfloat modelMatrix [ 16 ] , const GLfloat projMatrix [ 16 ] , const GLint viewport [ 4 ] ) ;
+ * </pre>
+ */
+ public native void gluLoadSamplingMatrices (
+ int nobj,
+ float[] modelMatrix,
+ float[] projMatrix,
+ int[] viewport
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat value ) ;
+ * </pre>
+ */
+ public native void gluNurbsProperty (
+ int nobj,
+ int property,
+ float value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat * value ) ;
+ * </pre>
+ */
+ public native void gluGetNurbsProperty (
+ int nobj,
+ int property,
+ float[] value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public native void gluBeginCurve (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndCurve ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public native void gluEndCurve (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsCurve ( GLUnurbsObj * nobj , GLint nknots , GLfloat * knot , GLint stride , GLfloat * ctlarray , GLint order , GLenum type ) ;
+ * </pre>
+ */
+ public native void gluNurbsCurve (
+ int nobj,
+ int nknots,
+ float[] knot,
+ int stride,
+ float[] ctlarray,
+ int order,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public native void gluBeginSurface (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndSurface ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public native void gluEndSurface (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNurbsSurface ( GLUnurbsObj * nobj , GLint sknot_count , GLfloat * sknot , GLint tknot_count , GLfloat * tknot , GLint s_stride , GLint t_stride , GLfloat * ctlarray , GLint sorder , GLint torder , GLenum type ) ;
+ * </pre>
+ */
+ public native void gluNurbsSurface (
+ int nobj,
+ int sknot_count,
+ float[] sknot,
+ int tknot_count,
+ float[] tknot,
+ int s_stride,
+ int t_stride,
+ float[] ctlarray,
+ int sorder,
+ int torder,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public native void gluBeginTrim (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndTrim ( GLUnurbsObj * nobj ) ;
+ * </pre>
+ */
+ public native void gluEndTrim (
+ int nobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluPwlCurve ( GLUnurbsObj * nobj , GLint count , GLfloat * array , GLint stride , GLenum type ) ;
+ * </pre>
+ */
+ public native void gluPwlCurve (
+ int nobj,
+ int count,
+ float[] array,
+ int stride,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern GLUtesselator * gluNewTess ( void ) ;
+ * </pre>
+ */
+ public native int gluNewTess (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginPolygon ( GLUtesselator * tobj , void * polygon_data ) ;
+ * </pre>
+ */
+ public native void gluTessBeginPolygon (
+ int tobj,
+ byte[] polygon_data
+ ) ;
+ public native void gluTessBeginPolygon (
+ int tobj,
+ short[] polygon_data
+ ) ;
+ public native void gluTessBeginPolygon (
+ int tobj,
+ int[] polygon_data
+ ) ;
+ public native void gluTessBeginPolygon (
+ int tobj,
+ float[] polygon_data
+ ) ;
+ public native void gluTessBeginPolygon (
+ int tobj,
+ double[] polygon_data
+ ) ;
+ public native void gluTessBeginPolygon (
+ int tobj,
+ boolean[] polygon_data
+ ) ;
+ public native void gluTessBeginPolygon (
+ int tobj,
+ long[] polygon_data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public native void gluTessBeginContour (
+ int tobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessVertex ( GLUtesselator * tobj , GLdouble coords [ 3 ] , void * vertex_data ) ;
+ * </pre>
+ */
+ public native void gluTessVertex (
+ int tobj,
+ double[] coords,
+ byte[] vertex_data
+ ) ;
+ public native void gluTessVertex (
+ int tobj,
+ double[] coords,
+ short[] vertex_data
+ ) ;
+ public native void gluTessVertex (
+ int tobj,
+ double[] coords,
+ int[] vertex_data
+ ) ;
+ public native void gluTessVertex (
+ int tobj,
+ double[] coords,
+ float[] vertex_data
+ ) ;
+ public native void gluTessVertex (
+ int tobj,
+ double[] coords,
+ double[] vertex_data
+ ) ;
+ public native void gluTessVertex (
+ int tobj,
+ double[] coords,
+ boolean[] vertex_data
+ ) ;
+ public native void gluTessVertex (
+ int tobj,
+ double[] coords,
+ long[] vertex_data
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndContour ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public native void gluTessEndContour (
+ int tobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public native void gluTessEndPolygon (
+ int tobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble value ) ;
+ * </pre>
+ */
+ public native void gluTessProperty (
+ int tobj,
+ int which,
+ double value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessNormal ( GLUtesselator * tobj , GLdouble x , GLdouble y , GLdouble z ) ;
+ * </pre>
+ */
+ public native void gluTessNormal (
+ int tobj,
+ double x,
+ double y,
+ double z
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluGetTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble * value ) ;
+ * </pre>
+ */
+ public native void gluGetTessProperty (
+ int tobj,
+ int which,
+ double[] value
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluBeginPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public native void gluBeginPolygon (
+ int tobj
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluNextContour ( GLUtesselator * tobj , GLenum type ) ;
+ * </pre>
+ */
+ public native void gluNextContour (
+ int tobj,
+ int type
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluEndPolygon ( GLUtesselator * tobj ) ;
+ * </pre>
+ */
+ public native void gluEndPolygon (
+ int tobj
+ ) ;
+
+/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
+
+
+}
+
diff --git a/gl4java/applet/SimpleGLAnimApplet1.java b/gl4java/applet/SimpleGLAnimApplet1.java
new file mode 100644
index 0000000..db74690
--- /dev/null
+++ b/gl4java/applet/SimpleGLAnimApplet1.java
@@ -0,0 +1,270 @@
+/**
+ * @(#) SimpleGLAnimApplet.java
+ * @(#) author: Sven Goethel
+ */
+
+package gl4java.applet;
+
+/* This program is licensed under the LGPL */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import gl4java.GLContext;
+import gl4java.GLFunc;
+import gl4java.GLUFunc;
+import gl4java.awt.GLAnimCanvas;
+
+public class SimpleGLAnimApplet1 extends Applet
+ implements MouseListener, WindowListener, ActionListener, ItemListener
+{
+ public GLAnimCanvas canvas = null;
+
+ public Button buttonInfo = null;
+ public Button buttonFps = null;
+ public TextField textFps = null;
+ public Checkbox checkUseRepaint = null;
+ public Checkbox checkUseFpsSleep = null;
+ public Button buttonReStart = null;
+
+
+ Frame fInfo = null;
+
+ /* Initialize the applet */
+
+ public void init()
+ {
+ setLayout(new BorderLayout());
+
+ Panel pan = new Panel();
+ pan.setLayout(new GridLayout(2,3));
+
+ buttonInfo = new Button("GL4Java");
+ buttonInfo.addMouseListener(this);
+ pan.add(buttonInfo);
+
+ checkUseRepaint = new Checkbox("repaint", true);
+ checkUseRepaint.addItemListener(this);
+ pan.add(checkUseRepaint);
+
+ checkUseFpsSleep = new Checkbox("fps-sleep", true);
+ checkUseFpsSleep.addItemListener(this);
+ pan.add(checkUseFpsSleep);
+
+ buttonReStart = new Button("start/stop");
+ buttonReStart.addMouseListener(this);
+ pan.add(buttonReStart);
+
+ buttonFps = new Button("fps: ");
+ buttonFps.addMouseListener(this);
+ pan.add(buttonFps);
+
+ textFps=new TextField("0000000000");
+ textFps.addActionListener(this);
+ pan.add(textFps);
+
+ add("South",pan);
+ }
+
+
+ public void start()
+ {
+ checkUseFpsSleep.setState(canvas.getUseFpsSleep());
+ checkUseRepaint.setState(canvas.getUseRepaint());
+ canvas.start();
+ }
+
+
+ public void stop()
+ {
+ canvas.stop();
+ }
+
+
+ public void destroy()
+ {
+ if(fInfo!=null)
+ {
+ fInfo.dispose();
+ fInfo=null;
+ }
+ canvas.stop();
+ canvas.cvsDispose();
+ }
+
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+
+ if( canvas!=null && comp.equals(buttonFps) )
+ {
+ double fps = 0;
+ int a1;
+
+ canvas.stopFpsCounter();
+ fps=canvas.getFps();
+ a1=(int)(fps*100.0);
+ fps=(double)a1/100.0;
+ textFps.setText(String.valueOf(fps));
+ canvas.resetFpsCounter();
+ } else if( comp.equals(buttonInfo) )
+ {
+ if(fInfo==null && canvas!=null && canvas.getGLContext()!=null)
+ fInfo = showGLInfo();
+ }
+ else if( comp.equals(buttonReStart) )
+ {
+ canvas.setSuspended(!canvas.isSuspended(),
+ evt.getClickCount()>1 // -> ReInit
+ );
+ }
+ }
+
+ public void itemStateChanged( ItemEvent evt )
+ {
+ ItemSelectable comp = evt.getItemSelectable();
+
+ if( comp.equals(checkUseRepaint ) )
+ {
+ if(canvas!=null)
+ {
+ canvas.setUseRepaint(checkUseRepaint.getState());
+ System.out.println("canvas uses repaint: "+
+ checkUseRepaint.getState());
+ }
+ }
+ if( comp.equals(checkUseFpsSleep ) )
+ {
+ if(canvas!=null)
+ {
+ canvas.setUseFpsSleep(checkUseFpsSleep.getState());
+ System.out.println("canvas uses fps-sleep: "+
+ checkUseFpsSleep.getState());
+ }
+ }
+ }
+
+ public void actionPerformed(ActionEvent event)
+ {
+ Object source = event.getSource();
+
+ if ( source == textFps)
+ {
+ try {
+ double FramesPerSec=
+ Double.valueOf(textFps.getText()).doubleValue();
+ if(canvas!=null)
+ {
+ canvas.setAnimateFps(FramesPerSec);
+ canvas.setSuspended(false, true);
+ }
+ } catch (NumberFormatException s) {
+ System.out.println("wrong fps format, use float ..");
+ }
+
+ }
+ }
+
+ public void windowOpened(WindowEvent e)
+ {
+ }
+
+ public void windowClosing(WindowEvent e)
+ {
+ Window w = e.getWindow();
+ if(w == fInfo && fInfo!=null)
+ {
+ fInfo.dispose();
+ fInfo=null;
+ }
+ }
+
+ public void windowClosed(WindowEvent e)
+ {
+ Window w = e.getWindow();
+ if(w == fInfo && fInfo!=null)
+ {
+ fInfo.dispose();
+ fInfo=null;
+ }
+ }
+
+ public void windowIconified(WindowEvent e)
+ {
+ }
+
+ public void windowDeiconified(WindowEvent e)
+ {
+ }
+
+ public void windowActivated(WindowEvent e)
+ {
+ }
+
+ public void windowDeactivated(WindowEvent e)
+ {
+ }
+
+ public Frame showGLInfo()
+ {
+ if(canvas==null) return null;
+
+ GLContext glc = canvas.getGLContext();
+ if(glc==null) return null;
+
+ GLFunc gl = glc.getGLFunc();
+ if(gl==null) return null;
+
+ GLUFunc glu = glc.getGLUFunc();
+ if(gl==null) return null;
+
+ canvas.setSuspended(true, false);
+
+ Frame f = new Frame("GL4Java Version");
+ TextArea info= new TextArea(25, 80);
+ info.setEditable(false);
+ f.add(info);
+ f.setSize(600, 400);
+
+ String str = "null string";
+ if( glc.gljMakeCurrent() == false )
+ {
+ str="problem in use() method\n";
+ } else {
+ str=canvas.getGLContext().gljGetVersions();
+ if(str==null)
+ str="could not get versions";
+ System.out.println(str);
+ glc.gljFree();
+ }
+ info.append(str);
+
+ f.addWindowListener(this);
+
+ canvas.setSuspended(false, false);
+
+ f.pack();
+ f.setVisible(true);
+
+ return f;
+ }
+}
diff --git a/gl4java/awt/GLAnimCanvas.java b/gl4java/awt/GLAnimCanvas.java
new file mode 100644
index 0000000..77fd21f
--- /dev/null
+++ b/gl4java/awt/GLAnimCanvas.java
@@ -0,0 +1,686 @@
+/**
+ * @(#) GLAnimCanvas.java
+ */
+
+package gl4java.awt;
+
+import gl4java.GLContext;
+
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.Math;
+
+
+/**
+ * This is meant as an base class writing
+ * Animations. A clean usage of multi-threading compatible
+ * with JAVA2 is implemented here !
+ *
+ * <p>
+ *
+ * If you are interessting in further Documentation and/or
+ * the history of GL4Java follow the following link.
+ *
+ * <pre>
+ <a href="../../GL4Java.html">The GL4Java Documentation</a>
+ * </pre>
+ * <p>
+ *
+ * This code uses repaint() to fire a sDisplay call by the AWT-Event thread !
+ * and sleep to suspend for a given Frames per secounds value as default !!
+ *
+ * To switch this behavior for a better performance, and responsiveness
+ * so that sDisplay is called by the animation thread itself
+ * call:
+ *
+ * <pre>
+ <a href="GLAnimCanvas.html#setUseRepaint(boolean)">setUseRepaint(false)</a>
+ * </pre>
+ * <p>
+ *
+ * This code sleep's for a given Frames per secounds after each frame
+ * as default !!
+ *
+ * To switch this behavior for a better performance,
+ * so that much frames are rendered as the machine can do !
+ * call:
+ *
+ * <pre>
+ <a href="GLAnimCanvas.html#setUseFpsSleep(boolean)">setUseFpsSleep(false)</a>
+ * </pre>
+ * <p>
+ * But be sure, that the other threads may not have enough time or i
+ * may not get the cpu power ...
+ *
+ * The following settings for setUseRepaint and setUseFpsSleep looks fine:
+ *
+ * <pre>
+ <p>
+ A JVM with operating system threads has: <b>native-threads</b>
+ <p>
+ A JVM where all JVM threads runs in one operating-system-thread
+ has: <b>green-threads</b>
+
+ <a name="table">
+ <table border>
+ <tr>
+ <th><th>green-threads<th>native-threads
+ <tr>
+ <td align=center><a href="GLAnimCanvas.html#setUseRepaint(boolean)"><code>setUseRepaint</code></a>
+ <td align=center><code>true</code>
+ <td align=center><code> true & false </code>
+ <tr>
+ <td align=center><a href="GLAnimCanvas.html#setUseFpsSleep(boolean)"><code>setUseFpsSleep</code></a>
+ <td align=center><code>true</code>
+ <td align=center><code> true & false </code>
+
+ </table>
+ </a>
+ * </pre>
+ *
+ * If you play with setUseRepaint or setUseFpsSleep,
+ * be shure to have a Java VM with native-thread support,
+ * because a GL-Context can be shared by many threads,
+ * but one thread can have just one GL-Context !
+ *
+ * (comments welcome)
+ *
+ * <p>
+ * To use real fps settings, the following functions provides you to do so:
+ * <pre>
+ <a href="GLAnimCanvas.html#setAnimateFps(double, int)">setAnimateFps</a>
+ <a href="GLAnimCanvas.html#getMaxFps()">getMaxFps</a>
+ * </pre>
+ * Like the first animation run, this class renders a view frames (default 10)
+ * to subtract the render time from the sleep time !
+ * <p>
+ * You should overwrite the following methods for your needs:
+ * <pre>
+ <a href="GLAnimCanvas.html#init()">init - 1st initialisation</a>
+ <a href="GLAnimCanvas.html#display()">display - render one frame</a>
+ <a href="GLCanvas.html#reshape(int, int)">reshape - to reshape (window resize)</a>
+ <a href="GLAnimCanvas.html#ReInit()">ReInit - ReInitialisation after stop for setSuspended(false)</a>
+ * </pre>
+ *
+ * @see GLCanvas
+ * @version 2.0, 21. April 1999
+ * @author Sven Goethel
+ *
+ */
+public class GLAnimCanvas extends GLCanvas
+ implements Runnable
+{
+ /**
+ * To support frames per scounds,
+ * instead of killing the machine :-)
+ *
+ * A little GUI is supported !
+ *
+ * @see GLAnimCanvas#run
+ */
+ protected double FramesPerSec=20;
+ protected long mSecPerFrame=0;
+
+ /**
+ * the delays ..
+ */
+ protected long dFpsMilli = 0;
+
+ /**
+ * The thread for referencing Thread (Animation)
+ *
+ * @see GLAnimCanvas#stop
+ * @see GLAnimCanvas#start
+ * @see GLAnimCanvas#run
+ */
+ protected Thread killme = null;
+
+ /**
+ * Instead of using suspend (JAVA2)
+ *
+ * @see GLAnimCanvas#run
+ */
+ protected boolean threadSuspended = false;
+
+ static {
+ if(GLContext.loadNativeLibraries(null, null, null)==false)
+ System.out.println("GLAnimCanvas could not load def. native libs.");
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * @see GLCanvas#GLCanvas
+ *
+ */
+ public GLAnimCanvas( int width, int height,
+ String gl_Name,
+ String glu_Name
+ )
+ {
+ super( width, height, gl_Name, glu_Name );
+ setAnimateFps(FramesPerSec);
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * Uses the default GLFunc and GLUFunc implementation !
+ *
+ * @see GLCanvas#GLCanvas
+ *
+ */
+ public GLAnimCanvas( int width, int height )
+ {
+ super( width, height);
+ setAnimateFps(FramesPerSec);
+ }
+
+ /**
+ * init should be overwritten by you,
+ * to enter your initialisation code
+ *
+ */
+ public void init()
+ {
+ /* here we should add and initialize our JAVA components */
+
+ /* ... and furthet OpenGL init's - like you want to */
+
+ glj.gljCheckGL();
+
+ ReInit();
+
+ /* and start our working thread ... */
+ start();
+ }
+
+ /**
+ *
+ * This is the rendering-method called by sDisplay
+ * (and sDisplay is called by paint, or by the thread directly !).
+ * The derived-class (Your Subclass) will redefine this,
+ * to draw it's own animation !
+ *
+ * <p>
+ *
+ * You should set shallWeRender here,
+ * to signalize the animation-loop 'run' to supsend
+ * <p>
+ * To restart the thread, just call setSuspended(false)
+ *
+ * @see GLAnimCanvas#shallWeRender
+ * @see GLAnimCanvas#run
+ * @see GLAnimCanvas#setSuspended
+ * @see GLCanvas#sDisplay
+ * @see GLCanvas#paint
+ */
+ public void display()
+ {
+ int i;
+
+ /* Standard GL4Java Init */
+ if( cvsIsInit()==false )
+ {
+ if(glj.gljClassDebug)
+ System.out.println("GLAnimCanvas not initialized yet ...");
+ return;
+ }
+
+ if( glj.gljMakeCurrent(true) == false )
+ {
+ if(glj.gljClassDebug)
+ System.out.println("GLAnimCanvas problem in gljMakeCurrent() method");
+ return;
+ }
+
+ // ... just render it
+
+ /* For your animation dutys ;-) */
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ /**
+ * ReInit should be overwritten by you,
+ * to enter your re-initialisation within setSuspended(false)
+ *
+ * @see GLAnimCanvas#setSuspended
+ */
+ public void ReInit()
+ {
+ }
+
+ protected boolean useRepaint = true;
+
+ protected boolean useFpsSleep = true;
+
+ /**
+ * The normal behavior is to use 'repaint'
+ * within the AWT-Event Thread to render.
+ * <p>
+ * If you have serious reasons, e.g. measuring performance,
+ * you can change it while invoke this function with 'false'.
+ * In this case, the thread itself calls the sDisplay method !
+ *
+ * On fast good multi-threading machines (native-thread-JVM),
+ * this should increase the performance and the responsiveness !
+ * <p>
+ *
+ * @param b if true, uses repaint (default), otherwise directly sDisplay
+ * @see GLCanvas#sDisplay
+ * @see GLAnimCanvas#setUseFpsSleep
+ */
+ public void setUseRepaint(boolean b)
+ {
+ useRepaint = b;
+ }
+
+ /**
+ * The normal behavior is to use FpsSleep
+ *
+ * But you can overwrite this behavior and
+ * drop the Frame Per Secound sleeps -
+ * so that much frames are rendered as the machine can do !
+ * <p>
+ *
+ * @param b if true, uses Fps sleeping, else not !
+ * @see GLCanvas#sDisplay
+ * @see GLAnimCanvas#setUseRepaint
+ */
+ public void setUseFpsSleep(boolean b)
+ {
+ useFpsSleep = b;
+ }
+
+ public boolean getUseRepaint()
+ {
+ return useRepaint;
+ }
+
+ public boolean getUseFpsSleep()
+ {
+ return useFpsSleep;
+ }
+
+ /**
+ * HERE WE DO HAVE OUR RUNNING THREAD !
+ * WE NEED STUFF LIKE THAT FOR ANIMATION ;-)
+ */
+ public void start()
+ {
+ if(killme == null)
+ {
+ killme = new Thread(this);
+ killme.start();
+
+ resetFpsCounter();
+ }
+ }
+
+ public synchronized void stop()
+ {
+ killme = null;
+ threadSuspended=false;
+ notify();
+ }
+
+ /**
+ * Should be set in display,
+ * whether to render or not while the animation loop
+ * <p>
+ * If shallWeRender is false,
+ * this thread will suspend !
+ *
+ * @see GLAnimCanvas#display
+ * @see GLAnimCanvas#run
+ */
+ protected boolean shallWeRender = true;
+
+ private long _fDelay = 0;
+ private long _fDelay_Frames = 10;
+ private boolean _fDelaySync=true;
+ private boolean _fDelayRun=false;
+
+ /**
+ * The running loop for animations
+ * which initiates the call of display
+ *
+ * @see GLAnimCanvas#shallWeRender
+ * @see GLAnimCanvas#display
+ * @see GLAnimCanvas#diplay
+ */
+ public void run()
+ {
+ Thread thisThread = Thread.currentThread();
+
+
+ while (killme==thisThread)
+ {
+ if(cvsIsInit())
+ {
+ /* DRAW THE TINGS .. */
+ if (shallWeRender)
+ {
+ if(useRepaint)
+ repaint();
+ else
+ sDisplay();
+ } else {
+ // lets sleep ...
+ synchronized (this) {
+ threadSuspended=true;
+ }
+ }
+
+ if(fps_isCounting)
+ fps_frames++;
+
+ }
+
+ try {
+ if(useFpsSleep)
+ {
+ if(useRepaint)
+ {
+ if(mSecPerFrame<_f_dur)
+ dFpsMilli=_f_dur;
+ else
+ dFpsMilli=mSecPerFrame;
+ }
+ else
+ {
+ dFpsMilli= mSecPerFrame - _f_dur;
+ if (dFpsMilli<=0)
+ dFpsMilli= 1;
+ }
+
+ Thread.currentThread().sleep(dFpsMilli, 0 );
+ }
+
+ if (threadSuspended) {
+ stopFpsCounter();
+ synchronized (this) {
+ while (threadSuspended)
+ wait();
+ }
+ }
+ } catch (InterruptedException e)
+ {}
+ }
+ }
+
+ /**
+ * Here we can (re)start or suspend animation ...
+ *
+ * If the thread should be (re)started and is not alive -> killed,
+ * or never be started, it will be started !
+ *
+ * @param suspend if true the thread will be suspended,
+ * if false, the thread will be (re)started
+ *
+ * @see GLAnimCanvas#isAlive
+ * @see GLAnimCanvas#start
+ */
+ public void setSuspended(boolean suspend)
+ {
+ setSuspended(suspend, false);
+ }
+
+ /**
+ * Here we can (re)start or suspend animation ...
+ *
+ * If the thread should be (re)started and is not alive -> killed,
+ * or never be started, it will be started !
+ *
+ * @param suspend if true the thread will be suspended,
+ * if false, the thread will be (re)started
+ *
+ * @param reInit if true the ReInit will be called additionally,
+ * where the user can set additional initialisations
+ *
+ * @see GLAnimCanvas#isAlive
+ * @see GLAnimCanvas#start
+ */
+ public synchronized void setSuspended(boolean suspend, boolean reInit)
+ {
+ if(suspend) {
+ shallWeRender=false;
+ } else if(isAlive()==false) {
+ start();
+ } else {
+ // the thread is alive, but suspended and should be
+ // re-started
+ shallWeRender=true;
+ resetFpsCounter();
+
+ if(reInit)
+ ReInit();
+
+ threadSuspended=false;
+ notify();
+ }
+ }
+
+ /**
+ * is the thread alive, means is started and not died ?
+ *
+ * @see GLAnimCanvas#run
+ * @see GLAnimCanvas#setSuspended
+ * @see GLAnimCanvas#start
+ * @see GLAnimCanvas#stop
+ */
+ public boolean isAlive()
+ {
+ if(killme==null) return false;
+ return killme.isAlive();
+ }
+
+ /**
+ * is the thread suspended, means is started but waiting,
+ * or not alive (ok :-| - but it is practical)
+ *
+ * @see GLAnimCanvas#run
+ * @see GLAnimCanvas#setSuspended
+ * @see GLAnimCanvas#start
+ * @see GLAnimCanvas#stop
+ */
+ public boolean isSuspended()
+ {
+ if(killme==null) return true;
+ return threadSuspended;
+ }
+
+ private double fps=0; // frame-per-sec
+ private long fps_duration =0; // milli-secs
+ private long fps_start=0; // milli-secs
+ private long fps_frames =0; // number of frames
+ private boolean fps_isCounting =true; // shall i count
+ private boolean verboseFps =false; // shall i be verbose
+
+ /**
+ * resets the Fps Counter
+ * <p>
+ * this function is called automatically by
+ * start and setSuspended
+ *
+ * @see GLAnimCanvas#start
+ * @see GLAnimCanvas#setSuspended
+ * @see GLAnimCanvas#resetFpsCounter
+ * @see GLAnimCanvas#stopFpsCounter
+ * @see GLAnimCanvas#getFps
+ * @see GLAnimCanvas#getFpsDuration
+ * @see GLAnimCanvas#getFpsFrames
+ * @see GLAnimCanvas#setVerboseFps
+ */
+ public void resetFpsCounter()
+ {
+ fps=0; // frame-per-sec
+ fps_duration =0; // milli-secs
+ fps_frames =0; // number of frames
+ fps_isCounting =true; // shall i count
+ fps_start=System.currentTimeMillis();
+ }
+
+ /**
+ * stops the Fps Counter and sets all values
+ * fot the getFps* methods
+ * <p>
+ * this function is called automatically by
+ * run, if the thread is suspended via shallWeRender
+ * <p>
+ * All data's are print out on System.out
+ * if verboseFps is set !
+ *
+ * @see GLAnimCanvas#run
+ * @see GLAnimCanvas#shallWeRender
+ * @see GLAnimCanvas#resetFpsCounter
+ * @see GLAnimCanvas#stopFpsCounter
+ * @see GLAnimCanvas#getFps
+ * @see GLAnimCanvas#getFpsDuration
+ * @see GLAnimCanvas#getFpsFrames
+ * @see GLAnimCanvas#setVerboseFps
+ */
+ public void stopFpsCounter()
+ {
+ if(fps_isCounting==true)
+ {
+ long fps_end=System.currentTimeMillis();
+ fps_duration = fps_end-fps_start;
+ double timed= ((double)fps_duration)/1000.0;
+ if(timed==0) timed=1.0;
+ fps = ((double)fps_frames)/timed ;
+ fps_isCounting=false;
+ }
+ if(verboseFps)
+ {
+ System.out.println("\nfps = "+String.valueOf(fps));
+ System.out.println("time = "+String.valueOf(fps_duration)+" ms");
+ System.out.println("frames = "+String.valueOf(fps_frames));
+ if(fps_frames==0) fps_frames=1;
+ System.out.println("time/f = "+String.valueOf(fps_duration/fps_frames)+" ms");
+ }
+ }
+
+ /**
+ * sets if the Fps data shall be printed to System.out
+ * while stopFpsCounter is called !
+ * <p>
+ * verboseFps is set to true by default !
+ *
+ * @see GLAnimCanvas#run
+ * @see GLAnimCanvas#shallWeRender
+ * @see GLAnimCanvas#resetFpsCounter
+ * @see GLAnimCanvas#stopFpsCounter
+ * @see GLAnimCanvas#getFps
+ * @see GLAnimCanvas#getFpsDuration
+ * @see GLAnimCanvas#getFpsFrames
+ * @see GLAnimCanvas#setVerboseFps
+ */
+ public void setVerboseFps(boolean v)
+ {
+ verboseFps=v;
+ }
+
+ /**
+ * returns the calculated frames per secounds
+ * <p>
+ * this data is avaiable after calling stopFpsCounter
+ *
+ * @see GLAnimCanvas#resetFpsCounter
+ * @see GLAnimCanvas#stopFpsCounter
+ * @see GLAnimCanvas#getFps
+ * @see GLAnimCanvas#getFpsDuration
+ * @see GLAnimCanvas#getFpsFrames
+ * @see GLAnimCanvas#setVerboseFps
+ */
+ public double getFps()
+ {
+ return fps;
+ }
+
+ /**
+ * returns the calculated duration in millisecs
+ * <p>
+ * this data is avaiable after calling stopFpsCounter
+ *
+ * @see GLAnimCanvas#resetFpsCounter
+ * @see GLAnimCanvas#stopFpsCounter
+ * @see GLAnimCanvas#getFps
+ * @see GLAnimCanvas#getFpsDuration
+ * @see GLAnimCanvas#getFpsFrames
+ * @see GLAnimCanvas#setVerboseFps
+ */
+ public long getFpsDuration()
+ {
+ return fps_duration;
+ }
+
+ /**
+ * returns the calculated frames number
+ * <p>
+ * this data is avaiable after calling stopFpsCounter
+ *
+ * @see GLAnimCanvas#resetFpsCounter
+ * @see GLAnimCanvas#stopFpsCounter
+ * @see GLAnimCanvas#getFps
+ * @see GLAnimCanvas#getFpsDuration
+ * @see GLAnimCanvas#getFpsFrames
+ * @see GLAnimCanvas#setVerboseFps
+ */
+ public long getFpsFrames()
+ {
+ return fps_frames;
+ }
+
+ /**
+ * Just set the FramePerSecounds for Animation
+ *
+ * @deprecated Now the frames per seconds are allways
+ * calculated, no pre-sync needed.
+ * @see #setAnimateFps(double)
+ */
+ public void setAnimateFps(double fps, int synFrames)
+ {
+ setAnimateFps(fps);
+ }
+
+ /**
+ * Just set the FramePerSecounds for Animation
+ *
+ * @see GLAnimCanvas#getMaxFps
+ */
+ public void setAnimateFps(double fps)
+ {
+ FramesPerSec=fps;
+ mSecPerFrame = (long) ( (1.0/FramesPerSec) * 1000.0 ) ;
+ if(verboseFps)
+ {
+ System.out.println("\nset fps := "+
+ String.valueOf(fps)+
+ " -> "+String.valueOf(mSecPerFrame)+
+ " [ms/frame]"
+ );
+ }
+ resetFpsCounter();
+ }
+
+ /**
+ * Just get the maximum number of Frames per secounds,
+ * which is calculated with the time, one frame needs to render !
+ *
+ * this value is avaiable after the thread is started
+ * and the first frames are rendered !
+ *
+ * @see GLAnimCanvas#setAnimateFps
+ */
+ public double getMaxFps()
+ {
+ return (1.0/(double)_f_dur)*1000.0;
+ }
+
+}
+
diff --git a/gl4java/awt/GLCanvas.java b/gl4java/awt/GLCanvas.java
new file mode 100644
index 0000000..4a537f9
--- /dev/null
+++ b/gl4java/awt/GLCanvas.java
@@ -0,0 +1,695 @@
+/**
+ * @(#) GLCanvas.java
+ */
+
+
+package gl4java.awt;
+
+import gl4java.*;
+
+import java.awt.*;
+import java.awt.event.*;
+
+/**
+ * This is meant as an base class writing
+ * easy render functions. A clean usage of multi-threading compatible
+ * with JAVA2 is implemented in GLAnimCanvas !
+ *
+ * <p>
+ *
+ * If you are interessting in further Documentation and/or
+ * the history of GL4Java follow the following link.
+ *
+ * <pre>
+ <a href="../../GL4Java.html">The GL4Java Documentation</a>
+ * </pre>
+ * <p>
+ *
+ * You should overwrite the following methods for your needs:
+ * <pre>
+ <a href="GLCanvas.html#init()">preInit - initialisation before creating GLContext</a>
+ <a href="GLCanvas.html#init()">init - 1st initialisation after creating GLContext</a>
+ <a href="GLCanvas.html#doCleanup()">doCleanup - OGL cleanup prior to context deletion</a>
+ <a href="GLCanvas.html#display()">display - render your frame</a>
+ <a href="GLCanvas.html#reshape(int, int)">reshape - to reshape (window resize), gljResize() is allready invoked !</a>
+ * </pre>
+ *
+ * To check if you can use the GLContext and GL and GLU methods,
+ * use the function
+ * <pre>
+ <a href="GLCanvas.html#cvsIsInit()">cvsIsInit</a>
+ * </pre>
+ * <p>
+ * IF you remove/release a GLCanvas,
+ * e.g. you want to close/dispose it�s Window (which contains this GLCanvas),
+ * you HAVE TO call:
+ *
+ * <pre>
+ <a href="GLCanvas.html#cvsDispose()">cvsDispose</a>
+ * </pre>
+ * You should call this before releasing/dispose this Window !
+ * Also you can overwrite this class,
+ * to dispose your own elements, e.g. a Frame etc. -
+ * but be shure that you call
+ * cvsDispose implementation call this one !
+ *
+ * <p>
+ * We do override the following Canvas methods.
+ *
+ * <pre>
+ <a href="GLCanvas.html#update(java.awt.Graphics)">update</a>
+ <a href="GLCanvas.html#paint(java.awt.Graphics)">paint</a>
+ * </pre>
+ * <p>
+ *
+ * @see GLAnimCanvas
+ * @version 2.0, 21. April 1999
+ * @author Sven Goethel
+ *
+ */
+public class GLCanvas extends Canvas
+ implements GLEnum, GLUEnum,
+ ComponentListener, WindowListener, MouseListener
+{
+ protected GLContext glj = null;
+ public GLFunc gl = null;
+ public GLUFunc glu = null;
+
+ protected Dimension size = null;
+ protected boolean mustResize = false;
+
+ protected boolean cvsInitialized=false;
+
+ protected boolean needCvsDispose = false;
+
+ /**
+ * Visual pre-set for doubleBuffer, default: true
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLCanvas#preInit
+ * @see GLCanvas#paint
+ */
+ protected boolean doubleBuffer = true;
+
+ /**
+ * Visual pre-set for stencil-bit number, default: 0
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLCanvas#preInit
+ * @see GLCanvas#paint
+ */
+ protected int stencilBits = 0;
+
+ /**
+ * Visual pre-set for accumulator buffer size, default: 0
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * This value has a special behavior.
+ * For input - within the contructor,
+ * it is the value for each component !
+ *
+ * The output value, after the constructor returns,
+ * it is the summary of all accumulation bits of all components !
+ *
+ * @see GLCanvas#preInit
+ * @see GLCanvas#paint
+ */
+ protected int accumSize = 0;
+
+ /**
+ * Visual pre-set for stereoView, default: false
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLCanvas#preInit
+ * @see GLCanvas#paint
+ */
+ protected boolean stereoView = false;
+
+ /**
+ * Visual pre-set for RGBA usage, default: true - of course ;-)
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLCanvas#preInit
+ * @see GLCanvas#paint
+ */
+ protected boolean rgba = true;
+
+ /**
+ * Visual pre-set for RGBA usage, default: true - of course ;-)
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLCanvas#preInit
+ * @see GLCanvas#paint
+ */
+ protected boolean createOwnWindow = false;
+
+ /**
+ * The context with witch display lists and textures will be shared.
+ *
+ * @see GLCanvas#preInit
+ * @see GLCanvas#paint
+ */
+ protected GLContext sharedGLContext;
+
+ static {
+ if(GLContext.loadNativeLibraries(null, null, null)==false)
+ System.out.println("GLCanvas could not load def. native libs.");
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * @param width the canvas initial-prefered width
+ * @param height the canvas initial-prefered height
+ *
+ * @param gl_Name The name of the GLFunc implementation
+ * If gl_Name==null, the default class will be used !
+ *
+ * @param glu_Name The name of the GLUFunc implementation
+ * If gl_LibName==null, the default class will be used !
+ *
+ */
+ public GLCanvas( int width, int height,
+ String gl_Name,
+ String glu_Name
+ )
+ {
+ super( );
+
+ if( (gl=GLContext.createGLFunc(gl_Name)) ==null)
+ {
+ System.out.println("GLFunc implementation "+gl_Name+" not created");
+ }
+ if( (glu=GLContext.createGLUFunc(glu_Name)) ==null)
+ {
+ System.out.println("GLUFunc implementation "+glu_Name+" not created");
+ }
+
+ size = new Dimension(width, height);
+
+ setSize(size);
+
+ /* to be able for RESIZE event's */
+ addComponentListener(this);
+ addMouseListener(this);
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * Uses the default GLFunc and GLUFunc implementation !
+ *
+ * @param width the canvas initial-prefered width
+ * @param height the canvas initial-prefered height
+ *
+ */
+ public GLCanvas( int width, int height )
+ {
+ this(width, height, null, null);
+ }
+
+ /* GLCanvas AWT classes */
+
+ public Dimension getPreferredSize() {
+ return getMinimumSize();
+ }
+
+ public Dimension getMinimumSize() {
+ return size;
+ }
+
+ /**
+ * Used to return the created GLContext
+ */
+ public final GLContext getGLContext() { return glj; }
+
+ /**
+ *
+ * Overridden update
+ * This one only call's the paint method, without clearing
+ * the background - thats hopefully done by OpenGL ;-)
+ *
+ * @param g the Graphics Context
+ * @return void
+ *
+ * @see GLCanvas#paint
+ */
+ public void update(Graphics g)
+ {
+ /* let's let OpenGL clear the background ... */
+ paint(g);
+ }
+
+ /**
+ * Safe the toplevel window
+ */
+ protected Window topLevelWindow = null;
+
+ /**
+ *
+ * This function returns the found TopLevelWindow,
+ * which contains this Canvas ..
+ *
+ * @return void
+ *
+ * @see GLCanvas#paint
+ */
+ public final Window getTopLevelWindow()
+ { return topLevelWindow; }
+
+ /**
+ * this function overrides the Canvas paint method !
+ *
+ * For the first paint,
+ * the user function preInit is called, a GLContext is created
+ * and the user function init is called !
+ *
+ * Also, if a GL Context exist, GLCanvas's sDisplay-method will be called
+ * to do OpenGL-rendering.
+ *
+ * The sDisplay method itself calls the display-method !
+ * sDisplay is needed to be thread-safe, to manage
+ * the resize functionality and to safe the time per frame.
+ *
+ * To define your rendering, you should overwrite the display-method
+ * in your derivation.
+ *
+ * @see gl4java.GLContext#GLContext
+ * @see GLCanvas#cvsIsInit
+ * @see GLCanvas#sDisplay
+ * @see GLCanvas#display
+ * @see GLCanvas#preInit
+ * @see GLCanvas#init
+ */
+ public synchronized final void paint( Graphics g )
+ {
+ if(glj == null )
+ {
+ preInit();
+ glj = new GLContext ( this, gl, glu,
+ createOwnWindow,
+ doubleBuffer, stereoView,
+ rgba, stencilBits, accumSize,
+ sharedGLContext );
+
+ if(glj!=null)
+ {
+ createOwnWindow = glj.isOwnWindowCreated();
+ doubleBuffer = glj.isDoubleBuffer();
+ stencilBits = glj.getStencilBitNumber();
+ accumSize = glj.getAccumSize();
+ stereoView = glj.isStereoView();
+ rgba = glj.isRGBA();
+ }
+
+ init();
+
+ // fetch the top-level window ,
+ // to add us as the windowListener
+ //
+ Container _c = getParent();
+ Container c = null;
+
+ while(_c!=null)
+ {
+ c = _c;
+ _c = _c.getParent();
+ }
+
+ if(c instanceof Window) {
+ topLevelWindow = (Window)c;
+ topLevelWindow.addComponentListener(this);
+ } else {
+ topLevelWindow = null;
+ System.out.println("toplevel is not a Window: "+c);
+ }
+
+ if(topLevelWindow!=null)
+ {
+ topLevelWindow.addWindowListener(this);
+ } else {
+ System.out.println("no parent found for "+getName());
+ System.out.flush();
+ }
+ if(glj!=null && glj.gljIsInit())
+ cvsInitialized=true;
+ }
+ /*
+ if( mustResize ) size = getSize();
+ g.setClip(0, 0, size.width, size.height ) ;
+ */
+ sDisplay();
+ }
+
+ /**
+ *
+ * This is your pre-init method.
+ * preInit is called just BEFORE the GL-Context is created.
+ * You should override preInit, to initialize your visual-stuff,
+ * like the protected vars: doubleBuffer and stereoView
+ *
+ * @return void
+ *
+ * @see GLCanvas#paint
+ * @see GLCanvas#doubleBuffer
+ * @see GLCanvas#stereoView
+ * @see GLCanvas#rgba
+ * @see GLCanvas#stencilBits
+ * @see GLCanvas#accumSize
+ */
+ public void preInit()
+ {
+ }
+
+ /**
+ *
+ * This is your init method.
+ * init is called right after the GL-Context is initialized.
+ * You should override init, to initialize your stuff needed
+ * by OpenGL an Java !
+ *
+ * @return void
+ *
+ * @see GLCanvas#paint
+ */
+ public void init()
+ {
+ }
+
+ /**
+ * This method is used to clean up any OpenGL stuff (delete textures
+ * or whatever) prior to actually deleting the OpenGL context.
+ * You should override this with your own version, if you need to do
+ * any cleanup work at this phase.
+ * This functions is called within cvsDispose
+ *
+ * @return void
+ *
+ * @see GLCanvas#cvsDispose
+ */
+ public void doCleanup()
+ {
+ }
+
+ /**
+ * This function returns, if everything is init: the GLContext,
+ * the and the users init function
+ * This value is set in the paint method!
+ *
+ * @return boolean
+ *
+ * @see GLCanvas#paint
+ * @see GLCanvas#init
+ */
+ public boolean cvsIsInit()
+ {
+ return cvsInitialized;
+ }
+
+ protected long _f_dur = 0;
+
+ /**
+ *
+ * This is the thread save rendering-method called by paint.
+ * The actual thread will be set to highes priority befor calling
+ * 'display'. After 'display' the priority will be reset !
+ *
+ * 'gljFree' will be NOT called after 'display'.
+ *
+ * We tested the above to use multi-threading and
+ * for the demonstration 'glDemos' it works ;-)) !
+ *
+ * BE SURE, if you want to call 'display' by yourself
+ * (e.g. in the run method for animation)
+ * YOU HAVE TO CALL sDisplay -- OR YOU MUST KNOW WHAT YOU ARE DOING THEN !
+ *
+ * @return void
+ *
+ * @see GLCanvas#paint
+ * @see GLCanvas#display
+ */
+ public synchronized final void sDisplay()
+ {
+ boolean ok = true;
+
+ long _s = System.currentTimeMillis();
+
+ if(!cvsIsInit())
+ return;
+
+ if( mustResize )
+ {
+ if( (ok = glj.gljMakeCurrent()) == true )
+ {
+ size = getSize();
+ glj.gljResize( size.width, size.height ) ;
+ reshape(size.width, size.height);
+ mustResize = false;
+ invalidate();
+ repaint(100);
+ }
+ }
+ if(ok)
+ {
+ display();
+ }
+
+ _f_dur = System.currentTimeMillis()-_s;
+ }
+
+ /**
+ *
+ * This is the rendering-method called by sDisplay
+ * (and sDisplay is called by paint !).
+ * The derived-class (Your Subclass) will redefine this, to draw it's own...
+ *
+ * BE SURE, if you want to call 'display' by yourself
+ * (e.g. in the run method for animation)
+ * YOU HAVE TO CALL sDisplay !
+ *
+ * 'sDisplay' manages a semaphore to avoid reentrance of
+ * the display function !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ *
+ * @return void
+ *
+ * @see GLCanvas#sDisplay
+ * @see GLCanvas#paint
+ */
+ public void display()
+ {
+ }
+
+ /**
+ *
+ * This is the reshape-method called by paint.
+ * The derived-class (Your Subclass) will redefine this,
+ * to manage your individual reshape ...
+ *
+ * This �reshape� method will be invoked after the first paint command
+ * after GLCanvas.componentResize is called AND only if �gljUse� was
+ * succesfull (so a call of gljUse is redundant).
+ * �reshape� is not an overloading of java.awt.Component.reshape,
+ * �reshape� is more like �glut�-reshape.
+ *
+ * GLCanvas.reshape allready has a simple default implementation,
+ * which calls �gljResize� and �glViewport� - so you may be can
+ * left this one as it is (no need to overload).
+ * The needed call to �gljResize� is done by hte invoker paint !
+ *
+ * @param width the new width
+ * @param height the new height
+ * @return void
+ *
+ * @see GLCanvas#paint
+ * @see GLCanvas#sDisplay
+ */
+ public void reshape( int width, int height )
+ {
+ gl.glViewport(0,0, width, height);
+ }
+
+ /**
+ *
+ * �componentResized� is the componentListeners event handler.
+ *
+ * This method sets the variable �mustResize� to true,
+ * so the upcoming �paint� method-call will invoke �reshape� !
+ *
+ * This little look-alike complicating thing is done,
+ * to avoid an Exception by using the glContext from more than
+ * one concurrent thread�s !
+ *
+ * You cannot override this implementation, it is final
+ * - override �reshape' instead !
+ *
+ * @param e the element, which is resized
+ * @return void
+ *
+ * @see GLCanvas#paint
+ * @see GLCanvas#reshape
+ */
+ public void componentResized(ComponentEvent e)
+ {
+ if(glj!=null && glj.gljIsInit() && e.getComponent()==this )
+ {
+ mustResize = true;
+ repaint();
+ }
+ }
+
+ public void componentMoved(ComponentEvent e)
+ {
+ if(glj!=null && glj.gljIsInit())
+ {
+ repaint(100);
+ }
+ }
+
+ public void componentShown(ComponentEvent e)
+ {
+ }
+
+ public void componentHidden(ComponentEvent e)
+ { }
+
+ public void mouseClicked(MouseEvent e)
+ {
+ if(glj!=null && glj.gljIsInit())
+ {
+ repaint();
+ }
+ }
+
+ public void mouseEntered(MouseEvent e)
+ { }
+ public void mouseExited(MouseEvent e)
+ {}
+ public void mousePressed(MouseEvent e)
+ {
+ }
+ public void mouseReleased(MouseEvent e)
+ {
+ }
+
+ public void windowOpened(WindowEvent e)
+ {
+ }
+
+ /**
+ *
+ * �windowClosing� is the windowListeners event handler
+ * for the topLevelWindow of this Canvas !
+ *
+ * This methods free�s AND destroy�s
+ * the GL Context with �glj.gljDestroy� !
+ *
+ * @return void
+ *
+ */
+ public void windowClosing(WindowEvent e)
+ {
+ if(e.getComponent().equals(topLevelWindow))
+ {
+ cvsDispose();
+ }
+ }
+
+ /**
+ *
+ * �windowClosed� is the windowListeners event handler.
+ *
+ * @return void
+ *
+ */
+ public void windowClosed(WindowEvent e)
+ {
+ if (needCvsDispose) cvsDispose();
+ }
+
+ public void windowIconified(WindowEvent e)
+ {
+ }
+
+ public void windowDeiconified(WindowEvent e)
+ {
+ }
+
+ public void windowActivated(WindowEvent e)
+ {
+ if(glj!=null && glj.gljIsInit())
+ {
+ repaint(100);
+ }
+ }
+
+ public void windowDeactivated(WindowEvent e)
+ {
+ }
+
+ /**
+ * You should call this before releasing/dispose this Window !
+ * Also you can overwrite this class,
+ * to dispose your own elements, e.g. a Frame etc. -
+ * but be shure that you call
+ * cvsDispose implementation call this one !
+ *
+ * This function calls gljDestroy of GLContext !
+ *
+ * @see gl4java.GLContext#gljDestroy
+ * @see GLCanvas#doCleanup
+ */
+ public void cvsDispose()
+ {
+ cvsInitialized = false;
+ if (glj != null)
+ {
+ if (glj.gljIsInit())
+ {
+ /* Sometimes the Microsoft VM calls the
+ Applet.stop() method but doesn't have
+ permissions to do J/Direct calls, so
+ this whole block of code will throw a
+ security exception. If this happens,
+ however, windowClosing() will still
+ call us again later and we will have
+ another opportunity to shut down the
+ context, so it all works out fine. */
+ try
+ {
+ glj.gljFree();
+ doCleanup();
+ //locks and free's GLContext
+ glj.setEnabled(false);
+ glj.gljDestroy();
+ needCvsDispose = false;
+ }
+ catch (Exception ex)
+ {
+ needCvsDispose = true;
+ }
+ }
+ }
+
+ // Setting glj to null will simply cause paint() to re-initialize.
+ // We don't want that to happen, so we will leave glj non-null.
+ }
+
+ /**
+ * get methods
+ */
+ public final int cvsGetWidth() {
+ return getSize().width;
+ }
+ public final int cvsGetHeight() {
+ return getSize().height;
+ }
+}
+
diff --git a/gl4java/awt/GLImageCanvas.java b/gl4java/awt/GLImageCanvas.java
new file mode 100755
index 0000000..113d589
--- /dev/null
+++ b/gl4java/awt/GLImageCanvas.java
@@ -0,0 +1,402 @@
+/**
+ * @(#) GLImageCanvas.java
+ */
+
+
+package gl4java.awt;
+
+import gl4java.*;
+import gl4java.utils.*;
+import gl4java.utils.textures.*;
+
+import java.awt.*;
+import java.net.*;
+
+/**
+ * This Class provides a simple universal
+ * Image/Texture OpenGL Canvas !
+ *
+ * A special demo/application for this class can be found
+ * in "demos/MiscDemos/GLImageViewerCanvas.java" !
+ *
+ * @see TextureLoader
+ * @author Sven Goethel
+ *
+ */
+public class GLImageCanvas extends GLCanvas
+{
+ int texName[] = {0};
+ TextureLoader txtLoader = null;
+ boolean newText = false;
+ boolean keepAspect = true;
+ boolean zoomImg = true;
+
+ TextureGrabber textGrab4Snapshot = null;
+ String textGrab4SnapshotFName = null;
+ URL textGrab4SnapshotURL = null;
+ String textGrab4SnapshotURI = null;
+
+ public GLImageCanvas(int w, int h)
+ {
+ super(w, h);
+ }
+
+ public void setKeepAspectRatio(boolean v)
+ { keepAspect=v; }
+
+ public boolean getKeepAspectRatio()
+ { return keepAspect; }
+
+ public void setZoomAble(boolean v)
+ { zoomImg = v; }
+
+ public boolean getZoomAble()
+ { return zoomImg; }
+
+ public TextureLoader getTextureLoader()
+ { return txtLoader; }
+
+ public void setOriginalSize()
+ {
+ if(txtLoader!=null && txtLoader.isOk())
+ {
+ internalSetSize( txtLoader.getImageWidth(),
+ txtLoader.getImageHeight() );
+ }
+ }
+
+ /**
+ * Creates a snapshot (save texture/image) of the current
+ * GL-Context !
+ *
+ * The snapshot itself is created delayed,
+ * so no return value is avaiable.
+ * Because this is a non critical path, I hope its enough !
+ *
+ * @param tg The TextureGrabber
+ * @param fname The filename
+ * @see TextureGrabber
+ */
+ public void snapshot(TextureGrabber tg, String fname)
+ {
+ textGrab4Snapshot=tg;
+ textGrab4SnapshotFName=fname;
+ repaint();
+ }
+
+ /**
+ * Creates a snapshot (save texture/image) of the current
+ * GL-Context !
+ *
+ * The snapshot itself is created delayed,
+ * so no return value is avaiable.
+ * Because this is a non critical path, I hope its enough !
+ *
+ * @param tg The TextureGrabber
+ * @param base The base URL
+ * @param uri The additional uri for the base URL
+ * @see TextureGrabber
+ */
+ public void snapshot(TextureGrabber tg, URL base, String uri)
+ {
+ textGrab4Snapshot=tg;
+ textGrab4SnapshotURL = base;
+ textGrab4SnapshotURI = uri;
+ repaint();
+ }
+
+ public Dimension getPreferredSize() {
+ return getMinimumSize();
+ }
+
+ public Dimension getMinimumSize() {
+ return getSize();
+ }
+
+ protected void internalSetSize(int w, int h)
+ {
+ setSize( w, h );
+ invalidate();
+
+ Window holder = Tool.getWindow(this);
+
+ if(holder!=null)
+ {
+ holder.invalidate();
+ holder.pack();
+ holder.repaint();
+ }
+ }
+
+ public void preInit()
+ {
+ // createOwnWindow = true;
+ }
+
+ public void init()
+ {
+ gl.glEnable(GL_TEXTURE_2D);
+
+ gl.glGenTextures(1,texName);
+ gl.glBindTexture(GL_TEXTURE_2D,texName[0]);
+
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL_CLAMP);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,GL_CLAMP);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
+ gl.glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
+ gl.glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
+
+ gl.glShadeModel (GL_SMOOTH);
+
+ gl.glClearColor(0.2f, 0.2f, 0.2f, 1.0f);
+
+ reshape(getSize().width, getSize().height);
+ }
+
+ /**
+ * Loads an Image of the appropiate type,
+ * and renders and resizes the complete window !
+ *
+ * @param fname The filename
+ * @param type The type of file, e.g. TextureLoader is used !
+ * The following types are currently allowed:
+ * "png" for PngTextureLoader,
+ * "ppm" for PPMAsciiTextureLoader,
+ * "tga" for PPMAsciiTextureLoader,
+ * "any" for AWTTextureLoader !
+ */
+ public boolean loadTexture(String fname, String type)
+ {
+ return loadTexture(fname, null, null, type);
+ }
+
+ /**
+ * Loads an Image of the appropiate type,
+ * and renders and resizes the complete window !
+ *
+ * @param base The base URL
+ * @param uri The additional uri for the base URL
+ * @param type The type of file, e.g. TextureLoader is used !
+ * The following types are currently allowed:
+ * "png" for PngTextureLoader,
+ * "ppm" for PPMAsciiTextureLoader,
+ * "tga" for PPMAsciiTextureLoader,
+ * "any" for AWTTextureLoader !
+ */
+ public boolean loadTexture(URL base, String uri, String type)
+ {
+ return loadTexture(null, base, uri, type);
+ }
+
+ protected boolean loadTexture(String fname,
+ URL base, String uri, String type)
+ {
+ boolean ok = true;
+
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("problem in use() method");
+ return false;
+ }
+
+ // texture laden
+ if(type.equals("png"))
+ txtLoader = new PngTextureLoader(gl, glu);
+ else if(type.equals("ppm"))
+ txtLoader = new PPMAsciiTextureLoader(gl, glu);
+ else if(type.equals("tga"))
+ txtLoader = new TGATextureLoader(gl, glu);
+ else if(type.equals("any"))
+ txtLoader = new AWTTextureLoader(this, gl, glu);
+ else {
+ System.out.println("Imagetype: "+type+" is currently not supported !");
+ ok = false;
+ }
+
+ if(ok)
+ {
+ try {
+ if(fname!=null)
+ txtLoader.readTexture(fname);
+ else
+ txtLoader.readTexture(base, uri);
+ } catch (Exception ex) {
+ ex.printStackTrace();
+ }
+ }
+
+ if(ok && txtLoader.isOk())
+ {
+ gl.glEnable(GL_TEXTURE_2D);
+
+ txtLoader.texImage2DNonScaled(true);
+
+ gl.glDisable(GL_TEXTURE_2D);
+ System.out.println("texture succesfully loaded !");
+ System.out.println("texture: "+txtLoader);
+ }
+ glj.gljCheckGL();
+ glj.gljFree();
+ if(ok) {
+ internalSetSize( txtLoader.getImageWidth(),
+ txtLoader.getImageHeight() );
+ }
+ return ok;
+ }
+
+ public void display()
+ {
+ int i;
+
+ /* Standard GL4Java Init */
+ if( glj.gljMakeCurrent() == false )
+ {
+ System.out.println("problem in use() method");
+ return;
+ }
+
+ SetCamera();
+
+ // just render it
+ gl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ DrawObj(false);
+
+ if(textGrab4Snapshot!=null)
+ {
+ textGrab4Snapshot.grabPixels(GL_BACK,
+ 0, 0, cvsGetWidth(), cvsGetHeight());
+ if(textGrab4SnapshotFName!=null)
+ textGrab4Snapshot.write2File(textGrab4SnapshotFName);
+ else
+ textGrab4Snapshot.write2File(textGrab4SnapshotURL,
+ textGrab4SnapshotURI);
+ textGrab4Snapshot =null;
+ textGrab4SnapshotFName=null;
+ textGrab4SnapshotURL =null;
+ textGrab4SnapshotURI =null;
+ }
+
+ /* For your animation dutys ;-) */
+ glj.gljSwap();
+ glj.gljCheckGL();
+ glj.gljFree();
+ }
+
+ /**
+ * to prevent a deadlock in recursive
+ * reshape .. internalSetSize .. pack .. resize -> reshape !
+ */
+ private int reshape_resize_sema = 1;
+
+ public void reshape(int w, int h)
+ {
+ if(reshape_resize_sema>0 &&
+ keepAspect && txtLoader!=null && txtLoader.isOk())
+ {
+ reshape_resize_sema--;
+
+ int rw=w; int rh=h;
+ if(zoomImg)
+ {
+ double iaspect = (double)txtLoader.getImageWidth()/
+ (double)txtLoader.getImageHeight();
+ if(rw<rh)
+ {
+ h = (int) ((rw / iaspect)+0.5);
+ } else {
+ w = (int) ((rh * iaspect)+0.5);
+ }
+ } else {
+ w = txtLoader.getImageWidth();
+ h = txtLoader.getImageHeight();
+ }
+ if(rw!=w || rh!=h)
+ {
+ internalSetSize( w, h );
+ return ; /* the true resize is coming up ... */
+ }
+ }
+ reshape_resize_sema=1;
+ gl.glViewport (0, 0, w, h);
+ SetCamera();
+ }
+
+
+ protected void DrawObj(boolean blend)
+ {
+ gl.glPushMatrix();
+ if(blend)
+ {
+ gl.glEnable(GL_BLEND);
+ gl.glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
+ }
+
+ gl.glColor4f(1f,1f,1f,1f);
+
+ if(txtLoader!=null && txtLoader.isOk())
+ {
+ gl.glEnable(GL_TEXTURE_2D);
+ gl.glBegin(GL_QUADS);
+
+ gl.glNormal3f(0f,0f,1f);
+ gl.glTexCoord2f(0f,0f);
+ gl.glVertex2f(0f, 0f);
+
+ gl.glNormal3f(0f,0f,1f);
+ gl.glTexCoord2f(0f,1f);
+ gl.glVertex2f(0f, 1f);
+
+ gl.glNormal3f(0f,0f,1f);
+ gl.glTexCoord2f(1f,1f);
+ gl.glVertex2f(1f, 1f);
+
+ gl.glNormal3f(0f,0f,1f);
+ gl.glTexCoord2f(1f,0f);
+ gl.glVertex2f(1f, 0f);
+
+ gl.glEnd();
+ gl.glDisable(GL_TEXTURE_2D);
+ }
+
+ if(blend)
+ gl.glDisable(GL_BLEND);
+
+ gl.glPopMatrix();
+ }
+
+ protected void SetCamera()
+ {
+ float imgwidth = 1f;
+ float imgheight = 1f;
+ float txtdx=0f;
+ float txtdy=0f;
+
+ if(txtLoader!=null && txtLoader.isOk())
+ {
+ Dimension idim = new Dimension(txtLoader.getImageWidth(),
+ txtLoader.getImageHeight());
+ Dimension tdim = new Dimension(txtLoader.getTextureWidth(),
+ txtLoader.getTextureHeight());
+
+ imgwidth = (float)idim.width/(float)tdim.width;
+ imgheight = (float)idim.height/(float)tdim.height;
+
+ /*
+ System.out.println("image : "+idim);
+ System.out.println("text : "+tdim);
+ System.out.println("image/text : "+imgwidth+"/"+imgheight);
+ */
+ }
+
+ gl.glMatrixMode (GL_PROJECTION);
+ gl.glLoadIdentity ();
+ glu.gluOrtho2D(0, imgwidth,
+ 0, imgheight);
+
+ gl.glMatrixMode (GL_MODELVIEW);
+ gl.glLoadIdentity ();
+ }
+
+}
+
diff --git a/gl4java/jau/awt/WinHandleAccess.java b/gl4java/jau/awt/WinHandleAccess.java
new file mode 100644
index 0000000..b6e8c87
--- /dev/null
+++ b/gl4java/jau/awt/WinHandleAccess.java
@@ -0,0 +1,21 @@
+/**
+ * @(#) WinHandleAccess.java
+ */
+package gl4java.jau.awt;
+
+import java.awt.Component;
+import java.awt.Graphics;
+
+/**
+ * The base interface for accessing the native window handle
+ *
+ * @version 2.00, 21. April 1999
+ * @author Sven Goethel
+ */
+public interface WinHandleAccess
+{
+ public abstract int getWinHandle(Component component, Graphics g);
+
+ public abstract int getWinDepth(Component component, Graphics g);
+
+}
diff --git a/gl4java/jau/awt/macintosh/MacHandleAccess.java b/gl4java/jau/awt/macintosh/MacHandleAccess.java
new file mode 100644
index 0000000..db1c3ef
--- /dev/null
+++ b/gl4java/jau/awt/macintosh/MacHandleAccess.java
@@ -0,0 +1,89 @@
+/*
+ * @(#) MacHandleAccess.java
+ */
+
+package gl4java.jau.awt.macintosh;
+
+import sun.awt.DrawingSurface;
+import sun.awt.DrawingSurfaceInfo;
+import sun.awt.MacDrawingSurface;
+
+import java.awt.*;
+
+/**
+ * This class has no user servicable parts inside. It is
+ * used internally by GLFrame and by our package spoofed
+ * sun.awt classes that give us internal access to window
+ * variables that we need to set up the OpenGL drawing
+ * context
+ *
+ *
+ * @see WinHandleAccess
+ * @version 0.1, 7. JULY 1998
+ * @author Sven Goethel
+ * @author ported to Mac by gerard ziemski
+ *
+ */
+public class MacHandleAccess implements gl4java.jau.awt.WinHandleAccess
+{
+ protected DrawingSurface ds;
+ protected DrawingSurfaceInfo dsi;
+ protected MacDrawingSurface mds;
+ protected int window,
+ depth;
+
+
+ protected void achieveData(java.awt.Component c, java.awt.Graphics g)
+ {
+ /* outta java3d */
+ dsi = null;
+ mds = null;
+ window = 0;
+ depth = 0;
+
+ ds = ((DrawingSurface)c.getPeer());
+ dsi = ds.getDrawingSurfaceInfo();
+
+ if (dsi != null)
+ {
+ dsi.lock();
+ mds = (MacDrawingSurface)dsi.getSurface();
+ dsi.unlock();
+ }
+
+ if (mds != null)
+ {
+ dsi.lock();
+
+ window = mds.getPort();
+ depth = c.getColorModel().getPixelSize();
+
+ dsi.unlock();
+ }
+
+ if (mds == null)
+ {
+ System.out.println("MacHandleAccess:getWinHandle failed");
+ }
+ }
+
+/**
+ *
+ * gets some structure for windows, and drawable on Mac
+ */
+ public int getWinHandle(java.awt.Component c, java.awt.Graphics g)
+ {
+ achieveData(c, g);
+ return window;
+ }
+
+/**
+ *
+ * gets some structure for windows, and drawable on Mac
+ */
+ public int getWinDepth(java.awt.Component c, java.awt.Graphics g)
+ {
+ achieveData(c, g);
+ return depth;
+ }
+}
diff --git a/gl4java/jau/awt/motif/X11HandleAccess.java b/gl4java/jau/awt/motif/X11HandleAccess.java
new file mode 100644
index 0000000..f07e111
--- /dev/null
+++ b/gl4java/jau/awt/motif/X11HandleAccess.java
@@ -0,0 +1,86 @@
+/*
+ * @(#) X11HandleAccess.java
+ */
+
+package gl4java.jau.awt.motif;
+
+import sun.awt.X11DrawingSurface;
+import sun.awt.DrawingSurface;
+import sun.awt.DrawingSurfaceInfo;
+
+/**
+ * The unix-x11 implementation for accessing the native window handle
+ *
+ * This class has no user servicable parts inside. It is
+ * used internally by GLFrame and by our package spoofed
+ * sun.awt classes that give us internal access to window
+ * variables that we need to set up the OpenGL drawing
+ * ontext
+ *
+ * @see WinHandleAccess
+ * @version 0.1, 7. JULY 1998
+ * @author Sven Goethel
+ *
+ */
+public class X11HandleAccess
+ implements gl4java.jau.awt.WinHandleAccess
+{
+ protected DrawingSurfaceInfo dsi;
+ protected X11DrawingSurface wds;
+ protected int window, depth;
+
+ protected void achieveData(java.awt.Component c, java.awt.Graphics g)
+ {
+ /* outta java3d */
+ dsi=null;
+ wds=null;
+ window=0; depth=0;
+
+ dsi = ((DrawingSurface)(c.getPeer())).getDrawingSurfaceInfo();
+ if(dsi!=null)
+ {
+ dsi.lock();
+ wds = (X11DrawingSurface)dsi.getSurface();
+ dsi.unlock();
+ }
+ if(wds!=null)
+ {
+ dsi.lock();
+ window = wds.getDrawable();
+ depth = wds.getDepth();
+
+ /*
+ System.out.println("wds.Depth ="+wds.getDepth());
+ System.out.println("wds.VisualID ="+wds.getVisualID());
+ System.out.println("wds.Display ="+wds.getDisplay());
+ System.out.println("wds.window ="+window);
+ System.out.println("");
+ */
+
+ dsi.unlock();
+ }
+ if(wds==null)
+ System.out.println("X11HandleAccess.getWinHandle failed, because the given Component is NOT a Motif-Component\n");
+ }
+
+/**
+ *
+ * gets some structure for windows, and drawable on X11
+ */
+ public int getWinHandle(java.awt.Component c, java.awt.Graphics g)
+ {
+ achieveData(c, g);
+ return window;
+ }
+
+/**
+ *
+ * gets some structure for windows, and drawable on X11
+ */
+ public int getWinDepth(java.awt.Component c, java.awt.Graphics g)
+ {
+ achieveData(c, g);
+ return depth;
+ }
+}
+
diff --git a/gl4java/jau/awt/windows/MSWin32HandleAccess.java b/gl4java/jau/awt/windows/MSWin32HandleAccess.java
new file mode 100644
index 0000000..1dd4d93
--- /dev/null
+++ b/gl4java/jau/awt/windows/MSWin32HandleAccess.java
@@ -0,0 +1,60 @@
+/*
+ * @(#) MSWin32HandleAccess.java
+ */
+
+package gl4java.jau.awt.windows;
+
+import java.awt.Component;
+import com.ms.awt.GraphicsX;
+
+/**
+ * The ms-windows implementation for accessing the native window handle
+ *
+ * This class has no user servicable parts inside. It is
+ * used internally by GLFrame and by our package spoofed
+ * sun.awt classes that give us internal access to window
+ * variables that we need to set up the OpenGL drawing
+ * ontext
+ *
+ * @see WinHandleAccess
+ * @version 0.1, 3. JULY 1999
+ * @author Ron Cemer
+ *
+ */
+public class MSWin32HandleAccess
+ implements gl4java.jau.awt.WinHandleAccess
+{
+ protected int window, depth;
+
+ /**
+ * @dll.import("USER32",auto)
+ */
+ private static native int WindowFromDC(int hdc);
+
+ protected void achieveData(java.awt.Component c, java.awt.Graphics g)
+ {
+ window = WindowFromDC(((GraphicsX)g).gdc.pGetDC());
+ depth = c.getColorModel().getPixelSize();
+ }
+
+ /**
+ *
+ * get the window handle
+ */
+ public int getWinHandle(java.awt.Component c, java.awt.Graphics g)
+ {
+ achieveData(c, g);
+ return window;
+ }
+
+ /**
+ *
+ * get the color depth
+ */
+ public int getWinDepth(java.awt.Component c, java.awt.Graphics g)
+ {
+ achieveData(c, g);
+ return depth;
+ }
+}
+
diff --git a/gl4java/jau/awt/windows/Win32HandleAccess.java b/gl4java/jau/awt/windows/Win32HandleAccess.java
new file mode 100644
index 0000000..38b5c93
--- /dev/null
+++ b/gl4java/jau/awt/windows/Win32HandleAccess.java
@@ -0,0 +1,84 @@
+/*
+ * @(#) Win32HandleAccess.java
+ */
+
+package gl4java.jau.awt.windows;
+
+import sun.awt.DrawingSurface;
+import sun.awt.Win32DrawingSurface;
+import sun.awt.DrawingSurfaceInfo;
+
+/**
+ * The ms-windows implementation for accessing the native window handle
+ *
+ * This class has no user servicable parts inside. It is
+ * used internally by GLFrame and by our package spoofed
+ * sun.awt classes that give us internal access to window
+ * variables that we need to set up the OpenGL drawing
+ * ontext
+ *
+ * @see WinHandleAccess
+ * @version 0.1, 7. JULY 1998
+ * @author Sven Goethel
+ *
+ */
+public class Win32HandleAccess
+ implements gl4java.jau.awt.WinHandleAccess
+{
+
+ protected DrawingSurfaceInfo dsi;
+ protected Win32DrawingSurface wds;
+ protected int window, depth;
+
+ protected void achieveData(java.awt.Component c, java.awt.Graphics g)
+ {
+ /* outta java3d */
+ dsi=null;
+ wds=null;
+ window=0; depth=0;
+
+ dsi = ((DrawingSurface)(c.getPeer())).getDrawingSurfaceInfo();
+ if(dsi!=null)
+ {
+ dsi.lock();
+ wds = (Win32DrawingSurface)dsi.getSurface();
+ dsi.unlock();
+ }
+ if(wds!=null)
+ {
+ dsi.lock();
+ window = wds.getHDC();
+ depth = wds.getDepth();
+ /*
+ System.out.println("wds ="+wds);
+ System.out.println("wds.Depth ="+wds.getDepth());
+ System.out.println("wds.HDC ="+wds.getHDC());
+ System.out.println("wds.HWnd ="+wds.getHWnd());
+ */
+ dsi.unlock();
+ }
+ if(wds==null)
+ System.out.println("Win32HandleAccess.getWinHandle failed, because the given Component is NOT a Window-Component\n");
+ }
+
+/**
+ *
+ * gets some structure for windows, and drawable on Win32
+ */
+ public int getWinHandle(java.awt.Component c, java.awt.Graphics g)
+ {
+ achieveData(c, g);
+ return window;
+ }
+
+/**
+ *
+ * gets some structure for windows, and drawable on Win32
+ */
+ public int getWinDepth(java.awt.Component c, java.awt.Graphics g)
+ {
+ achieveData(c, g);
+ return depth;
+ }
+}
+
diff --git a/gl4java/swing/GLAnimJPanel.java b/gl4java/swing/GLAnimJPanel.java
new file mode 100644
index 0000000..e9bdbdf
--- /dev/null
+++ b/gl4java/swing/GLAnimJPanel.java
@@ -0,0 +1,720 @@
+/**
+ * @(#) GLAnimJPanel.java
+ */
+
+package gl4java.swing;
+
+import gl4java.GLContext;
+
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.Math;
+
+
+/**
+ * This is meant as an base class writing
+ * Animations. A clean usage of multi-threading compatible
+ * with JAVA2 is implemented here !
+ *
+ * <p>
+ *
+ * If you are interessting in further Documentation and/or
+ * the history of GL4Java follow the following link.
+ *
+ * <pre>
+ <a href="../../GL4Java.html">The GL4Java Documentation</a>
+ * </pre>
+ * <p>
+ *
+ * This code uses repaint() to fire a sDisplay call by the AWT-Event thread !
+ * and sleep to suspend for a given Frames per secounds value as default !!
+ *
+ * To switch this behavior for a better performance, and responsiveness
+ * so that sDisplay is called by the animation thread itself
+ * call:
+ *
+ * <pre>
+ <a href="GLAnimJPanel.html#setUseRepaint(boolean)">setUseRepaint(false)</a>
+ * </pre>
+ * <p>
+ *
+ * This code sleep's for a given Frames per secounds after each frame
+ * as default !!
+ *
+ * To switch this behavior for a better performance,
+ * so that much frames are rendered as the machine can do !
+ * call:
+ *
+ * <pre>
+ <a href="GLAnimJPanel.html#setUseFpsSleep(boolean)">setUseFpsSleep(false)</a>
+ * </pre>
+ * <p>
+ * But be sure, that the other threads may not have enough time or i
+ * may not get the cpu power ...
+ *
+ * The following settings for setUseRepaint and setUseFpsSleep looks fine:
+ *
+ * <pre>
+ <p>
+ A JVM with operating system threads has: <b>native-threads</b>
+ <p>
+ A JVM where all JVM threads runs in one operating-system-thread
+ has: <b>green-threads</b>
+
+ <a name="table">
+ <table border>
+ <tr>
+ <th><th>green-threads<th>native-threads
+ <tr>
+ <td align=center><a href="GLAnimJPanel.html#setUseRepaint(boolean)"><code>setUseRepaint</code></a>
+ <td align=center><code>true</code>
+ <td align=center><code> true & false </code>
+ <tr>
+ <td align=center><a href="GLAnimJPanel.html#setUseFpsSleep(boolean)"><code>setUseFpsSleep</code></a>
+ <td align=center><code>true</code>
+ <td align=center><code> true & false </code>
+
+ </table>
+ </a>
+ * </pre>
+ *
+ * If you play with setUseRepaint or setUseFpsSleep,
+ * be shure to have a Java VM with native-thread support,
+ * because a GL-Context can be shared by many threads,
+ * but one thread can have just one GL-Context !
+ *
+ * (comments welcome)
+ *
+ * <p>
+ * To use real fps settings, the following functions provides you to do so:
+ * <pre>
+ <a href="GLAnimJPanel.html#setAnimateFps(double, int)">setAnimateFps</a>
+ <a href="GLAnimJPanel.html#getMaxFps()">getMaxFps</a>
+ * </pre>
+ * Like the first animation run, this class renders a view frames (default 10)
+ * to subtract the render time from the sleep time !
+ * <p>
+ * You should overwrite the following methods for your needs:
+ * <pre>
+ <a href="GLAnimJPanel.html#init()">init - 1st initialisation</a>
+ <a href="GLAnimJPanel.html#display()">display - render one frame</a>
+ <a href="GLCanvas.html#reshape(int, int)">reshape - to reshape (window resize)</a>
+ <a href="GLAnimJPanel.html#ReInit()">ReInit - ReInitialisation after stop for setSuspended(false)</a>
+ * </pre>
+ *
+ * @see GLCanvas
+ * @version 2.0, 21. April 1999
+ * @author Sven Goethel
+ *
+ */
+public class GLAnimJPanel extends GLJPanel
+ implements Runnable
+{
+ /**
+ * To support frames per scounds,
+ * instead of killing the machine :-)
+ *
+ * A little GUI is supported !
+ *
+ * @see GLAnimJPanel#run
+ */
+ protected double FramesPerSec=20;
+ protected long mSecPerFrame=0;
+
+ /**
+ * the delays ..
+ */
+ protected long dFpsMilli = 0;
+
+ /**
+ * The thread for referencing Thread (Animation)
+ *
+ * @see GLAnimJPanel#stop
+ * @see GLAnimJPanel#start
+ * @see GLAnimJPanel#run
+ */
+ protected Thread killme = null;
+
+ /**
+ * Instead of using suspend (JAVA2)
+ *
+ * @see GLAnimJPanel#run
+ */
+ protected boolean threadSuspended = false;
+
+ static {
+ if(GLContext.loadNativeLibraries(null, null, null)==false)
+ System.out.println("GLAnimJPanel could not load def. native libs.");
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * @param gl_Name The name of the GLFunc implementation
+ * If gl_Name==null, the default class will be used !
+ *
+ * @param glu_Name The name of the GLUFunc implementation
+ * If gl_LibName==null, the default class will be used !
+ *
+ * @param layout the layout manager
+ * @param isDoubleBuffered the flag indicates,
+ * if double buffer should be used
+ *
+ */
+ public GLAnimJPanel( String gl_Name,
+ String glu_Name,
+ LayoutManager layout, boolean isDoubleBuffered
+ )
+ {
+ super( gl_Name, glu_Name, layout, isDoubleBuffered );
+ setAnimateFps(FramesPerSec);
+
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * @param layout the layout manager
+ * @param isDoubleBuffered the flag indicates,
+ * if double buffer should be used
+ *
+ */
+ public GLAnimJPanel( LayoutManager layout, boolean isDoubleBuffered )
+ {
+ super(layout, isDoubleBuffered);
+ setAnimateFps(FramesPerSec);
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * Uses the default GLFunc and GLUFunc implementation !
+ *
+ * @param isDoubleBuffered the flag indicates,
+ * if double buffer should be used
+ */
+ public GLAnimJPanel( boolean isDoubleBuffered )
+ {
+ super(isDoubleBuffered);
+ setAnimateFps(FramesPerSec);
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * Uses the default GLFunc and GLUFunc implementation !
+ *
+ * @param layout the layout manager
+ */
+ public GLAnimJPanel(LayoutManager layout)
+ {
+ super(layout);
+ setAnimateFps(FramesPerSec);
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * Uses the default GLFunc and GLUFunc implementation !
+ *
+ * @see GLCanvas#GLCanvas
+ *
+ */
+ public GLAnimJPanel( )
+ {
+ super();
+ setAnimateFps(FramesPerSec);
+ }
+
+ /**
+ * init should be overwritten by you,
+ * to enter your initialisation code
+ *
+ */
+ public void init()
+ {
+ /* here we should add and initialize our JAVA components */
+
+ /* ... and furthet OpenGL init's - like you want to */
+
+ glj.gljCheckGL();
+
+ ReInit();
+
+ /* and start our working thread ... */
+ start();
+ }
+
+ /**
+ *
+ * This is the rendering-method called by sDisplay
+ * (and sDisplay is called by paint, or by the thread directly !).
+ * The derived-class (Your Subclass) will redefine this,
+ * to draw it's own animation !
+ *
+ * <p>
+ *
+ * You should set shallWeRender here,
+ * to signalize the animation-loop 'run' to supsend
+ * <p>
+ * To restart the thread, just call setSuspended(false)
+ *
+ * @see GLAnimJPanel#shallWeRender
+ * @see GLAnimJPanel#run
+ * @see GLAnimJPanel#setSuspended
+ * @see GLCanvas#sDisplay
+ * @see GLCanvas#paint
+ */
+ public void display()
+ {
+ int i;
+
+ // ... just render it
+
+ }
+
+ /**
+ * ReInit should be overwritten by you,
+ * to enter your re-initialisation within setSuspended(false)
+ *
+ * @see GLAnimJPanel#setSuspended
+ */
+ public void ReInit()
+ {
+ }
+
+ protected boolean useRepaint = true;
+
+ protected boolean useFpsSleep = true;
+
+ /**
+ * The normal behavior is to use 'repaint'
+ * within the AWT-Event Thread to render.
+ * <p>
+ * If you have serious reasons, e.g. measuring performance,
+ * you can change it while invoke this function with 'false'.
+ * In this case, the thread itself calls the sDisplay method !
+ *
+ * On fast good multi-threading machines (native-thread-JVM),
+ * this should increase the performance and the responsiveness !
+ * <p>
+ *
+ * @param b if true, uses repaint (default), otherwise directly sDisplay
+ * @see GLCanvas#sDisplay
+ * @see GLAnimJPanel#setUseFpsSleep
+ */
+ public void setUseRepaint(boolean b)
+ {
+ useRepaint = b;
+ }
+
+ /**
+ * The normal behavior is to use FpsSleep
+ *
+ * But you can overwrite this behavior and
+ * drop the Frame Per Secound sleeps -
+ * so that much frames are rendered as the machine can do !
+ * <p>
+ *
+ * @param b if true, uses Fps sleeping, else not !
+ * @see GLCanvas#sDisplay
+ * @see GLAnimJPanel#setUseRepaint
+ */
+ public void setUseFpsSleep(boolean b)
+ {
+ useFpsSleep = b;
+ }
+
+ public boolean getUseRepaint()
+ {
+ return useRepaint;
+ }
+
+ public boolean getUseFpsSleep()
+ {
+ return useFpsSleep;
+ }
+
+ /**
+ * HERE WE DO HAVE OUR RUNNING THREAD !
+ * WE NEED STUFF LIKE THAT FOR ANIMATION ;-)
+ */
+ public void start()
+ {
+ if(killme == null)
+ {
+ killme = new Thread(this);
+ killme.start();
+
+ resetFpsCounter();
+ }
+ }
+
+ public synchronized void stop()
+ {
+ killme = null;
+ threadSuspended=false;
+ notify();
+ }
+
+ /**
+ * Should be set in display,
+ * whether to render or not while the animation loop
+ * <p>
+ * If shallWeRender is false,
+ * this thread will suspend !
+ *
+ * @see GLAnimJPanel#display
+ * @see GLAnimJPanel#run
+ */
+ protected boolean shallWeRender = true;
+
+ private long _fDelay = 0;
+ private long _fDelay_Frames = 10;
+ private boolean _fDelaySync=true;
+ private boolean _fDelayRun=false;
+
+ /**
+ * The running loop for animations
+ * which initiates the call of display
+ *
+ * @see GLAnimJPanel#shallWeRender
+ * @see GLAnimJPanel#display
+ * @see GLAnimJPanel#diplay
+ */
+ public void run()
+ {
+ Thread thisThread = Thread.currentThread();
+
+
+ while (killme==thisThread)
+ {
+ if(cvsIsInit())
+ {
+ /* DRAW THE TINGS .. */
+ if (shallWeRender)
+ {
+ if(useRepaint)
+ repaint();
+ else
+ sDisplay();
+ } else {
+ // lets sleep ...
+ synchronized (this) {
+ threadSuspended=true;
+ }
+ }
+
+ if(fps_isCounting)
+ fps_frames++;
+
+ }
+
+ try {
+ if(useFpsSleep)
+ {
+ if(useRepaint)
+ {
+ if(mSecPerFrame<_f_dur_total)
+ dFpsMilli=_f_dur_total;
+ else
+ dFpsMilli=mSecPerFrame;
+ }
+ else
+ {
+ dFpsMilli= mSecPerFrame - _f_dur_total;
+ if (dFpsMilli<=0)
+ dFpsMilli= 1;
+ }
+
+ Thread.currentThread().sleep(dFpsMilli, 0 );
+ }
+
+ if (threadSuspended) {
+ stopFpsCounter();
+ synchronized (this) {
+ while (threadSuspended)
+ wait();
+ }
+ }
+ } catch (InterruptedException e)
+ {}
+ }
+ }
+
+ /**
+ * Here we can (re)start or suspend animation ...
+ *
+ * If the thread should be (re)started and is not alive -> killed,
+ * or never be started, it will be started !
+ *
+ * @param suspend if true the thread will be suspended,
+ * if false, the thread will be (re)started
+ *
+ * @see GLAnimJPanel#isAlive
+ * @see GLAnimJPanel#start
+ */
+ public void setSuspended(boolean suspend)
+ {
+ setSuspended(suspend, false);
+ }
+
+ /**
+ * Here we can (re)start or suspend animation ...
+ *
+ * If the thread should be (re)started and is not alive -> killed,
+ * or never be started, it will be started !
+ *
+ * @param suspend if true the thread will be suspended,
+ * if false, the thread will be (re)started
+ *
+ * @param reInit if true the ReInit will be called additionally,
+ * where the user can set additional initialisations
+ *
+ * @see GLAnimJPanel#isAlive
+ * @see GLAnimJPanel#start
+ */
+ public synchronized void setSuspended(boolean suspend, boolean reInit)
+ {
+ if(suspend) {
+ shallWeRender=false;
+ } else if(isAlive()==false) {
+ start();
+ } else {
+ // the thread is alive, but suspended and should be
+ // re-started
+ shallWeRender=true;
+ resetFpsCounter();
+
+ if(reInit)
+ ReInit();
+
+ threadSuspended=false;
+ notify();
+ }
+ }
+
+ /**
+ * is the thread alive, means is started and not died ?
+ *
+ * @see GLAnimJPanel#run
+ * @see GLAnimJPanel#setSuspended
+ * @see GLAnimJPanel#start
+ * @see GLAnimJPanel#stop
+ */
+ public boolean isAlive()
+ {
+ if(killme==null) return false;
+ return killme.isAlive();
+ }
+
+ /**
+ * is the thread suspended, means is started but waiting,
+ * or not alive (ok :-| - but it is practical)
+ *
+ * @see GLAnimJPanel#run
+ * @see GLAnimJPanel#setSuspended
+ * @see GLAnimJPanel#start
+ * @see GLAnimJPanel#stop
+ */
+ public boolean isSuspended()
+ {
+ if(killme==null) return true;
+ return threadSuspended;
+ }
+
+ private double fps=0; // frame-per-sec
+ private long fps_duration =0; // milli-secs
+ private long fps_start=0; // milli-secs
+ private long fps_frames =0; // number of frames
+ private boolean fps_isCounting =true; // shall i count
+ private boolean verboseFps =true; // shall i be verbose
+
+ /**
+ * resets the Fps Counter
+ * <p>
+ * this function is called automatically by
+ * start and setSuspended
+ *
+ * @see GLAnimJPanel#start
+ * @see GLAnimJPanel#setSuspended
+ * @see GLAnimJPanel#resetFpsCounter
+ * @see GLAnimJPanel#stopFpsCounter
+ * @see GLAnimJPanel#getFps
+ * @see GLAnimJPanel#getFpsDuration
+ * @see GLAnimJPanel#getFpsFrames
+ * @see GLAnimJPanel#setVerboseFps
+ */
+ public void resetFpsCounter()
+ {
+ fps=0; // frame-per-sec
+ fps_duration =0; // milli-secs
+ fps_frames =0; // number of frames
+ fps_isCounting =true; // shall i count
+ fps_start=System.currentTimeMillis();
+ }
+
+ /**
+ * stops the Fps Counter and sets all values
+ * fot the getFps* methods
+ * <p>
+ * this function is called automatically by
+ * run, if the thread is suspended via shallWeRender
+ * <p>
+ * All data's are print out on System.out
+ * if verboseFps is set !
+ *
+ * @see GLAnimJPanel#run
+ * @see GLAnimJPanel#shallWeRender
+ * @see GLAnimJPanel#resetFpsCounter
+ * @see GLAnimJPanel#stopFpsCounter
+ * @see GLAnimJPanel#getFps
+ * @see GLAnimJPanel#getFpsDuration
+ * @see GLAnimJPanel#getFpsFrames
+ * @see GLAnimJPanel#setVerboseFps
+ */
+ public void stopFpsCounter()
+ {
+ if(fps_isCounting==true)
+ {
+ long fps_end=System.currentTimeMillis();
+ fps_duration = fps_end-fps_start;
+ double timed= ((double)fps_duration)/1000.0;
+ if(timed==0) timed=1.0;
+ fps = ((double)fps_frames)/timed ;
+ fps_isCounting=false;
+ }
+ if(verboseFps)
+ {
+ System.out.println("\nfps = "+String.valueOf(fps));
+ System.out.println("time = "+String.valueOf(fps_duration)+" ms");
+ System.out.println("frames = "+String.valueOf(fps_frames));
+ if(fps_frames==0) fps_frames=1;
+ System.out.println("time/f = "+String.valueOf(fps_duration/fps_frames)+" ms");
+ }
+ }
+
+ /**
+ * sets if the Fps data shall be printed to System.out
+ * while stopFpsCounter is called !
+ * <p>
+ * verboseFps is set to true by default !
+ *
+ * @see GLAnimJPanel#run
+ * @see GLAnimJPanel#shallWeRender
+ * @see GLAnimJPanel#resetFpsCounter
+ * @see GLAnimJPanel#stopFpsCounter
+ * @see GLAnimJPanel#getFps
+ * @see GLAnimJPanel#getFpsDuration
+ * @see GLAnimJPanel#getFpsFrames
+ * @see GLAnimJPanel#setVerboseFps
+ */
+ public void setVerboseFps(boolean v)
+ {
+ verboseFps=v;
+ }
+
+ /**
+ * returns the calculated frames per secounds
+ * <p>
+ * this data is avaiable after calling stopFpsCounter
+ *
+ * @see GLAnimJPanel#resetFpsCounter
+ * @see GLAnimJPanel#stopFpsCounter
+ * @see GLAnimJPanel#getFps
+ * @see GLAnimJPanel#getFpsDuration
+ * @see GLAnimJPanel#getFpsFrames
+ * @see GLAnimJPanel#setVerboseFps
+ */
+ public double getFps()
+ {
+ return fps;
+ }
+
+ /**
+ * returns the calculated duration in millisecs
+ * <p>
+ * this data is avaiable after calling stopFpsCounter
+ *
+ * @see GLAnimJPanel#resetFpsCounter
+ * @see GLAnimJPanel#stopFpsCounter
+ * @see GLAnimJPanel#getFps
+ * @see GLAnimJPanel#getFpsDuration
+ * @see GLAnimJPanel#getFpsFrames
+ * @see GLAnimJPanel#setVerboseFps
+ */
+ public long getFpsDuration()
+ {
+ return fps_duration;
+ }
+
+ /**
+ * returns the calculated frames number
+ * <p>
+ * this data is avaiable after calling stopFpsCounter
+ *
+ * @see GLAnimJPanel#resetFpsCounter
+ * @see GLAnimJPanel#stopFpsCounter
+ * @see GLAnimJPanel#getFps
+ * @see GLAnimJPanel#getFpsDuration
+ * @see GLAnimJPanel#getFpsFrames
+ * @see GLAnimJPanel#setVerboseFps
+ */
+ public long getFpsFrames()
+ {
+ return fps_frames;
+ }
+
+ /**
+ * Just set the FramePerSecounds for Animation
+ *
+ * @deprecated Now the frames per seconds are allways
+ * calculated, no pre-sync needed.
+ * @see #setAnimateFps(double)
+ */
+ public void setAnimateFps(double fps, int synFrames)
+ {
+ setAnimateFps(fps);
+ }
+
+ /**
+ * Just set the FramePerSecounds for Animation
+ *
+ * @see GLAnimJPanel#getMaxFps
+ */
+ public void setAnimateFps(double fps)
+ {
+ FramesPerSec=fps;
+ mSecPerFrame = (long) ( (1.0/FramesPerSec) * 1000.0 ) ;
+ if(verboseFps)
+ {
+ System.out.println("\nset fps := "+
+ String.valueOf(fps)+
+ " -> "+String.valueOf(mSecPerFrame)+
+ " [ms/frame]"
+ );
+ }
+ resetFpsCounter();
+ }
+
+ /**
+ * Just get the maximum number of Frames per secounds,
+ * which is calculated with the time, one frame needs to render !
+ *
+ * this value is avaiable after the thread is started
+ * and the first frames are rendered !
+ *
+ * @see GLAnimJPanel#setAnimateFps
+ */
+ public double getMaxFps()
+ {
+ return (1.0/(double)_f_dur_total)*1000.0;
+ }
+
+}
+
diff --git a/gl4java/swing/GLJPanel.java b/gl4java/swing/GLJPanel.java
new file mode 100644
index 0000000..21beb39
--- /dev/null
+++ b/gl4java/swing/GLJPanel.java
@@ -0,0 +1,865 @@
+package gl4java.swing;
+
+import gl4java.*;
+
+import java.awt.*;
+import java.awt.image.*;
+import java.awt.event.*;
+import javax.swing.*;
+
+/**
+ * This is meant as an base class writing
+ * easy render functions. A clean usage of multi-threading compatible
+ * with JAVA2 is implemented in GLAnimJPanel !
+ *
+ * <p>
+ *
+ * If you are interessting in further Documentation and/or
+ * the history of GL4Java follow the following link.
+ *
+ * <pre>
+ <a href="../../GL4Java.html">The GL4Java Documentation</a>
+ * </pre>
+ * <p>
+ *
+ * You should overwrite the following methods for your needs:
+ * <pre>
+ <a href="GLJPanel.html#init()">preInit - initialisation before creating GLContext</a>
+ <a href="GLJPanel.html#init()">init - 1st initialisation after creating GLContext</a>
+ <a href="GLJPanel.html#doCleanup()">doCleanup - OGL cleanup prior to context deletion</a>
+ <a href="GLJPanel.html#display()">display - render your frame</a>
+ <a href="GLJPanel.html#reshape(int, int)">reshape - to reshape (window resize), gljResize() is allready invoked !</a>
+ * </pre>
+ *
+ * To check if you can use the GLContext and GL and GLU methods,
+ * use the function
+ * <pre>
+ <a href="GLJPanel.html#cvsIsInit()">cvsIsInit</a>
+ * </pre>
+ * <p>
+ * IF you remove/release a GLJPanel,
+ * e.g. you want to close/dispose it�s Window (which contains this GLJPanel),
+ * you HAVE TO call:
+ *
+ * <pre>
+ <a href="GLJPanel.html#cvsDispose()">cvsDispose</a>
+ * </pre>
+ * You should call this before releasing/dispose this Window !
+ * Also you can overwrite this class,
+ * to dispose your own elements, e.g. a Frame etc. -
+ * but be shure that you call
+ * cvsDispose implementation call this one !
+ *
+ * <p>
+ * We do override the following Canvas methods.
+ *
+ * <pre>
+ <a href="GLJPanel.html#update(java.awt.Graphics)">update</a>
+ <a href="GLJPanel.html#paint(java.awt.Graphics)">paint</a>
+ * </pre>
+ * <p>
+ *
+ * @see GLAnimJPanel
+ * @version 2.0, 21. April 1999
+ * @author Sven Goethel
+ *
+ */
+public class GLJPanel extends JPanel
+ implements GLEnum, GLUEnum,
+ ComponentListener, WindowListener, MouseListener
+{
+ protected GLContext glj = null;
+ public GLFunc gl = null;
+ public GLUFunc glu = null;
+
+ protected boolean mustResize = false;
+
+ protected boolean cvsInitialized=false;
+
+ protected boolean needCvsDispose = false;
+
+ /**
+ * Visual pre-set for stencil-bit number, default: 0
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLJPanel#preInit
+ * @see GLJPanel#paint
+ */
+ protected int stencilBits = 0;
+
+ /**
+ * Visual pre-set for accumulator buffer size, default: 0
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLJPanel#preInit
+ * @see GLJPanel#paint
+ */
+ protected int accumSize = 0;
+
+ /**
+ * Visual pre-set for stereoView, default: false
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLJPanel#preInit
+ * @see GLJPanel#paint
+ */
+ protected boolean stereoView = false;
+
+ /**
+ * Visual pre-set for RGBA usage, default: true - of course ;-)
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @see GLJPanel#preInit
+ * @see GLJPanel#paint
+ */
+ protected boolean rgba = true;
+
+ /**
+ * The context with witch display lists and textures will be shared.
+ *
+ * @see GLJPanel#preInit
+ * @see GLJPanel#paint
+ */
+ protected GLContext sharedGLContext;
+
+ /**
+ * The data to hold the offscreen pixels on the java side !
+ *
+ * @see GLJPanel#offImagePixels
+ * @see GLJPanel#paint
+ */
+ protected BufferedImage offImage = null;
+
+ /**
+ * The data to hold the offscreen pixels on the GL side !
+ *
+ * @see GLJPanel#offImage
+ * @see GLJPanel#paint
+ */
+ protected byte[] offImagePixels = null;
+
+ /**
+ * The custom set offscreen Size
+ *
+ * If this is set to != null,
+ * the offscreen pixmap is used in this size,
+ * not in the components-size (-> faster if smaller)
+ *
+ * @see GLJPanel#paint
+ * @see GLJPanel#setOffScreenSize
+ * @see GLJPanel#getOffScreenSize
+ */
+ protected Dimension offScrnSize = null;
+ protected boolean customOffScrnSize=false;
+ protected boolean offScrnSizeChanged=false;
+
+ static {
+ if(GLContext.loadNativeLibraries(null, null, null)==false)
+ System.out.println("GLJPanel could not load def. native libs.");
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * @param gl_Name The name of the GLFunc implementation
+ * If gl_Name==null, the default class will be used !
+ *
+ * @param glu_Name The name of the GLUFunc implementation
+ * If gl_LibName==null, the default class will be used !
+ *
+ * @param layout the layout manager
+ * @param isDoubleBuffered the flag indicates,
+ * if double buffer should be used
+ *
+ */
+ public GLJPanel( String gl_Name,
+ String glu_Name,
+ LayoutManager layout, boolean isDoubleBuffered
+ )
+ {
+ super( layout, isDoubleBuffered );
+
+ if( (gl=GLContext.createGLFunc(gl_Name)) ==null)
+ {
+ System.out.println("GLFunc implementation "+gl_Name+" not created");
+ }
+ if( (glu=GLContext.createGLUFunc(glu_Name)) ==null)
+ {
+ System.out.println("GLUFunc implementation "+glu_Name+" not created");
+ }
+
+ /* to be able for RESIZE event's */
+ addComponentListener(this);
+
+ setOpaque(false);
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * @param layout the layout manager
+ * @param isDoubleBuffered the flag indicates,
+ * if double buffer should be used
+ *
+ */
+ public GLJPanel( LayoutManager layout, boolean isDoubleBuffered )
+ {
+ this(null, null, layout, isDoubleBuffered);
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * Uses the default GLFunc and GLUFunc implementation !
+ *
+ * @param isDoubleBuffered the flag indicates,
+ * if double buffer should be used
+ */
+ public GLJPanel( boolean isDoubleBuffered )
+ {
+ this(null, null, new FlowLayout(), isDoubleBuffered);
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * Uses the default GLFunc and GLUFunc implementation !
+ *
+ * @param layout the layout manager
+ */
+ public GLJPanel(LayoutManager layout)
+ {
+ this(null, null, layout, true);
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * Uses the default GLFunc and GLUFunc implementation !
+ *
+ */
+ public GLJPanel( )
+ {
+ this(null, null, new FlowLayout(), true);
+ }
+
+ /**
+ * Used to return the created GLContext
+ */
+ public final GLContext getGLContext() { return glj; }
+
+ /**
+ * Safe the toplevel window
+ */
+ protected Window topLevelWindow = null;
+
+ /**
+ *
+ * This function returns the found TopLevelWindow,
+ * which contains this Canvas ..
+ *
+ * @return void
+ *
+ * @see GLJPanel#paint
+ */
+ public final Window getTopLevelWindow()
+ { return topLevelWindow; }
+
+ /**
+ * The customers offscreen Size
+ *
+ * If this is set,
+ * the offscreen pixmap is used in this size,
+ * not in the components-size (-> faster if smaller)
+ *
+ * @see GLJPanel#offScrnSize
+ * @see GLJPanel#setOffScreenSize
+ */
+ public Dimension getOffScreenSize()
+ { return offScrnSize; }
+
+ /**
+ * The customers offscreen Size
+ *
+ * If this is set,
+ * the offscreen pixmap is used in this size,
+ * not in the components-size (-> faster if smaller)
+ *
+ * @see GLJPanel#offScrnSize
+ * @see GLJPanel#getOffScreenSize
+ */
+ public void setOffScreenSize(Dimension size)
+ {
+ if((size!=null && size.equals(offScrnSize)==false) ||
+ size!=offScrnSize
+ )
+ {
+ offScrnSizeChanged=true;
+ offScrnSize=size;
+ customOffScrnSize=offScrnSize!=null;
+ }
+ }
+
+ /**
+ * this function overrides the Canvas paint method !
+ *
+ * For the first paint,
+ * the user function preInit is called, a GLContext is created
+ * and the user function init is called !
+ *
+ * Also, if a GL Context exist, GLJPanel's sDisplay-method will be called
+ * to do OpenGL-rendering.
+ *
+ * The sDisplay method itself calls the display-method !
+ * sDisplay is needed to be thread-safe, to manage
+ * the resize functionality and to safe the time per frame.
+ *
+ * To define your rendering, you should overwrite the display-method
+ * in your derivation.
+ *
+ * @see gl4java.GLContext#GLContext
+ * @see GLJPanel#cvsIsInit
+ * @see GLJPanel#sDisplay
+ * @see GLJPanel#display
+ * @see GLJPanel#preInit
+ * @see GLJPanel#init
+ */
+ public synchronized final void paintComponent(Graphics g)
+ {
+ if(glj == null ||
+ (mustResize && !customOffScrnSize) || offScrnSizeChanged )
+ {
+ if(mustResize)
+ {
+ cvsDispose();
+ mustResize=false;
+ }
+ preInit();
+ glj = GLContext.createOffScreenCtx ( this, gl, glu,
+ stereoView,
+ rgba, stencilBits, accumSize,
+ sharedGLContext,
+ offScrnSize
+ );
+
+ if(glj!=null)
+ {
+ /*
+ createOwnWindow = glj.isOwnWindowCreated();
+ doubleBuffer = glj.isDoubleBuffer();
+ */
+ stencilBits = glj.getStencilBitNumber();
+ accumSize = glj.getAccumSize();
+ stereoView = glj.isStereoView();
+ rgba = glj.isRGBA();
+ }
+ if(offImage!=null)
+ offImage.flush();
+ offImage=null;
+ offScrnSizeChanged=false;
+
+ init();
+
+ // fetch the top-level window ,
+ // to add us as the windowListener
+ //
+ Container _c = getParent();
+ Container c = null;
+
+ while(_c!=null)
+ {
+ c = _c;
+ _c = _c.getParent();
+ }
+
+ if(c instanceof Window) {
+ topLevelWindow = (Window)c;
+ topLevelWindow.addComponentListener(this);
+ topLevelWindow.addMouseListener(this);
+ } else {
+ topLevelWindow = null;
+ System.out.println("toplevel is not a Window: "+c);
+ }
+
+ if(topLevelWindow!=null)
+ {
+ topLevelWindow.addWindowListener(this);
+ } else {
+ System.out.println("no parent found for "+getName());
+ System.out.flush();
+ }
+ if(glj!=null && glj.gljIsInit())
+ cvsInitialized=true;
+ }
+ /*
+ if( mustResize ) size = getSize();
+ g.setClip(0, 0, size.width, size.height );
+ */
+ //super.paintComponent(g);
+
+ gr = g;
+ sDisplay();
+ }
+
+ Graphics gr = null;
+ DataBufferInt dbInt = null;
+
+ /**
+ *
+ * This is the thread save rendering-method called by paint.
+ * The actual thread will be set to highes priority befor calling
+ * 'display'. After 'display' the priority will be reset !
+ *
+ * 'gljFree' will be NOT called after 'display'.
+ *
+ * We tested the above to use multi-threading and
+ * for the demonstration 'glDemos' it works ;-)) !
+ *
+ * BE SURE, if you want to call 'display' by yourself
+ * (e.g. in the run method for animation)
+ * YOU HAVE TO CALL sDisplay -- OR YOU MUST KNOW WHAT YOU ARE DOING THEN !
+ *
+ * @return void
+ *
+ * @see GLJPanel#paint
+ * @see GLJPanel#display
+ */
+ public synchronized final void sDisplay()
+ {
+ boolean ok = true;
+
+ long _s = System.currentTimeMillis();
+
+ if(!cvsIsInit())
+ return;
+
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("GLJPanel: problem in use() method");
+ return;
+ }
+
+ if(ok)
+ {
+ display();
+ _f_dur_self = System.currentTimeMillis()-_s;
+ if(GLContext.gljClassDebug)
+ {
+ _f_dur_self_sum+=_f_dur_self;
+ glj.gljCheckGL();
+ }
+
+ int glFormat;
+ int glComps;
+ int awtFormat;
+
+ glFormat = (rgba == true)?GL_RGBA:GL_RGB;
+ glComps = (rgba == true)?4:3;
+ awtFormat = (rgba == true)?BufferedImage.TYPE_INT_ARGB:
+ BufferedImage.TYPE_INT_RGB;
+
+ Dimension size = null;
+ if(customOffScrnSize)
+ size=offScrnSize;
+ else
+ size=getSize();
+ int w=size.width;
+ int h=size.height;
+
+ long _s_tst = System.currentTimeMillis();
+
+ if(offImage==null ||
+ offImage.getHeight()!=h || offImage.getWidth()!=w)
+ {
+ if(offImage!=null)
+ offImage.flush();
+ offImage = new BufferedImage(w,h,awtFormat);
+ offImagePixels=new byte[w*h*glComps];
+ dbInt = (DataBufferInt)
+ offImage.getRaster().getDataBuffer();
+
+ if(GLContext.gljClassDebug)
+ {
+ System.out.print("set offImage to size: "+size+
+ "(hw size: "+w+"x"+h+"), type: ");
+ switch(glFormat) {
+ case GL_RGB: System.out.println("RGB"); break;
+ case GL_RGBA: System.out.println("RGBA"); break;
+ case GL_BGR_EXT: System.out.println("BGR"); break;
+ case GL_BGRA_EXT: System.out.println("BGRA"); break;
+ }
+ }
+ }
+
+ glj.gljReadPixelGL2AWT(0,0,w,h,glFormat,GL_UNSIGNED_BYTE,
+ glj.isDoubleBuffer()?GL_BACK:GL_FRONT,
+ offImagePixels, dbInt.getData());
+
+ //glj.gljSwap(); // no true swapping with offscreen buffers ..
+
+ if(GLContext.gljClassDebug)
+ _f_dur_tst_sum+=System.currentTimeMillis()-_s_tst;
+
+ if(GLContext.gljClassDebug)
+ glj.gljCheckGL();
+ glj.gljFree(); // enable ctx for threads ...
+
+ if(!customOffScrnSize)
+ gr.drawImage(offImage, 0, 0, this);
+ else {
+ size=super.getSize();
+ gr.drawImage(offImage, 0, 0, size.width, size.height, this);
+ }
+
+ _f_dur_total = System.currentTimeMillis()-_s;
+ if(GLContext.gljClassDebug)
+ {
+ _f_dur_total_sum+=_f_dur_total;
+ if(++_f_dur_times==100)
+ {
+ System.out.println("self p 100: "+
+ (double)(_f_dur_self_sum/100)/1000.0+" s");
+
+ System.out.println("tst p 100: "+
+ (double)(_f_dur_tst_sum/100)/1000.0+" s");
+
+ System.out.println("gl-bitblit p 100: "+
+ (double)((_f_dur_total_sum-_f_dur_self_sum)/100)/1000.0+" s");
+ System.out.println("total p 100: "+
+ (double)(_f_dur_total_sum/100)/1000.0+" s");
+
+ _f_dur_self_sum=0;
+ _f_dur_tst_sum=0;
+ _f_dur_total_sum=0;
+ _f_dur_times=0;
+ }
+ }
+
+ }
+
+ }
+
+ /**
+ *
+ * This is the rendering-method called by sDisplay
+ * (and sDisplay is called by paint !).
+ * The derived-class (Your Subclass) will redefine this, to draw it's own...
+ *
+ * BE SURE, if you want to call 'display' by yourself
+ * (e.g. in the run method for animation)
+ * YOU HAVE TO CALL sDisplay !
+ *
+ * 'sDisplay' manages a semaphore to avoid reentrance of
+ * the display function !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ *
+ * @return void
+ *
+ * @see GLJPanel#sDisplay
+ * @see GLJPanel#paint
+ */
+ public void display()
+ {
+ }
+
+ /**
+ *
+ * This is your pre-init method.
+ * preInit is called just BEFORE the GL-Context is created.
+ * You should override preInit, to initialize your visual-stuff,
+ * like the protected vars: doubleBuffer and stereoView
+ *
+ * @return void
+ *
+ * @see GLJPanel#paint
+ * @see GLJPanel#doubleBuffer
+ * @see GLJPanel#stereoView
+ * @see GLJPanel#rgba
+ * @see GLJPanel#stencilBits
+ * @see GLJPanel#accumSize
+ */
+ public void preInit()
+ {
+ }
+
+ /**
+ *
+ * This is your init method.
+ * init is called right after the GL-Context is initialized.
+ * You should override init, to initialize your stuff needed
+ * by OpenGL an Java !
+ *
+ * @return void
+ *
+ * @see GLJPanel#paint
+ */
+ public void init()
+ {
+ }
+
+ /**
+ * This method is used to clean up any OpenGL stuff (delete textures
+ * or whatever) prior to actually deleting the OpenGL context.
+ * You should override this with your own version, if you need to do
+ * any cleanup work at this phase.
+ * This functions is called within cvsDispose
+ *
+ * @return void
+ *
+ * @see GLJPanel#cvsDispose
+ */
+ public void doCleanup()
+ {
+ }
+
+ /**
+ * This function returns, if everything is init: the GLContext,
+ * the and the users init function
+ * This value is set in the paint method!
+ *
+ * @return boolean
+ *
+ * @see GLJPanel#paint
+ * @see GLJPanel#init
+ */
+ public boolean cvsIsInit()
+ {
+ return cvsInitialized;
+ }
+
+ protected long _f_dur_self = 0;
+ protected long _f_dur_self_sum = 0;
+ protected long _f_dur_tst_sum = 0;
+ protected long _f_dur_total = 0;
+ protected long _f_dur_total_sum = 0;
+ protected int _f_dur_times = 0;
+
+ /**
+ *
+ * This is the reshape-method called by paint.
+ * The derived-class (Your Subclass) will redefine this,
+ * to manage your individual reshape ...
+ *
+ * This �reshape� method will be invoked after the first paint command
+ * after GLJPanel.componentResize is called AND only if �gljUse� was
+ * succesfull (so a call of gljUse is redundant).
+ * �reshape� is not an overloading of java.awt.Component.reshape,
+ * �reshape� is more like �glut�-reshape.
+ *
+ * GLJPanel.reshape allready has a simple default implementation,
+ * which calls �gljResize� and �glViewport� - so you may be can
+ * left this one as it is (no need to overload).
+ * The needed call to �gljResize� is done by hte invoker paint !
+ *
+ * @param width the new width
+ * @param height the new height
+ * @return void
+ *
+ * @see GLJPanel#paint
+ * @see GLJPanel#sDisplay
+ */
+ public void reshape( int width, int height )
+ {
+ if(GLContext.gljClassDebug)
+ System.out.println("GLJPanel::reshape bounds("+getBounds()+")");
+ gl.glViewport(0,0, width, height);
+ }
+
+ /**
+ *
+ * �componentResized� is the componentListeners event handler.
+ *
+ * This method sets the variable �mustResize� to true,
+ * so the upcoming �paint� method-call will invoke �reshape� !
+ *
+ * This little look-alike complicating thing is done,
+ * to avoid an Exception by using the glContext from more than
+ * one concurrent thread�s !
+ *
+ * You cannot override this implementation, it is final
+ * - override �reshape' instead !
+ *
+ * @param e the element, which is resized
+ * @return void
+ *
+ * @see GLJPanel#paint
+ * @see GLJPanel#reshape
+ */
+ public void componentResized(ComponentEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.println("GLJPanel::componentResized("+e.getComponent()+")");
+ if(glj!=null && glj.gljIsInit() && e.getComponent()==this )
+ {
+ mustResize = true;
+ //repaint();
+ }
+ }
+
+ public void componentMoved(ComponentEvent e)
+ {
+ /*
+ if(GLContext.gljClassDebug)
+ System.out.print("GLJPanel::componentMoved("+e.getComponent()+")");
+ if(e.getComponent().equals(topLevelWindow))
+ {
+ repaint();
+ }
+ */
+ }
+
+ public void componentShown(ComponentEvent e)
+ {
+ }
+
+ public void componentHidden(ComponentEvent e)
+ {
+ }
+
+ public void mouseClicked(MouseEvent e)
+ {
+ }
+ public void mouseEntered(MouseEvent e)
+ {
+ /*
+ if(GLContext.gljClassDebug)
+ System.out.print("GLJPanel::mouseEntered("+e.getComponent()+")");
+ if(e.getComponent().equals(topLevelWindow))
+ {
+ repaint();
+ }
+ */
+ }
+ public void mouseExited(MouseEvent e)
+ {}
+ public void mousePressed(MouseEvent e)
+ {
+ }
+ public void mouseReleased(MouseEvent e)
+ {
+ }
+
+ public void windowOpened(WindowEvent e)
+ {
+ }
+
+ /**
+ *
+ * �windowClosing� is the windowListeners event handler
+ * for the topLevelWindow of this Canvas !
+ *
+ * This methods free�s AND destroy�s
+ * the GL Context with �glj.gljDestroy� !
+ *
+ * @return void
+ *
+ */
+ public void windowClosing(WindowEvent e)
+ {
+ if(e.getComponent().equals(topLevelWindow))
+ {
+ cvsDispose();
+ }
+ }
+
+ /**
+ *
+ * �windowClosed� is the windowListeners event handler.
+ *
+ * @return void
+ *
+ */
+ public void windowClosed(WindowEvent e)
+ {
+ if (needCvsDispose) cvsDispose();
+ }
+
+ public void windowIconified(WindowEvent e)
+ {
+ }
+
+ public void windowDeiconified(WindowEvent e)
+ {
+ }
+
+ public void windowActivated(WindowEvent e)
+ {
+ }
+
+ public void windowDeactivated(WindowEvent e)
+ {
+ }
+
+ /**
+ * You should call this before releasing/dispose this Window !
+ * Also you can overwrite this class,
+ * to dispose your own elements, e.g. a Frame etc. -
+ * but be shure that you call
+ * cvsDispose implementation call this one !
+ *
+ * This function calls gljDestroy of GLContext !
+ *
+ * @see gl4java.GLContext#gljDestroy
+ * @see GLJPanel#doCleanup
+ */
+ public void cvsDispose()
+ {
+ cvsInitialized = false;
+ if (glj != null)
+ {
+ if (glj.gljIsInit())
+ {
+ /* Sometimes the Microsoft VM calls the
+ Applet.stop() method but doesn't have
+ permissions to do J/Direct calls, so
+ this whole block of code will throw a
+ security exception. If this happens,
+ however, windowClosing() will still
+ call us again later and we will have
+ another opportunity to shut down the
+ context, so it all works out fine. */
+ try
+ {
+ glj.gljFree();
+ doCleanup();
+ //locks and free's GLContext
+ glj.setEnabled(false);
+ glj.gljDestroy();
+ needCvsDispose = false;
+ }
+ catch (Exception ex)
+ {
+ needCvsDispose = true;
+ }
+ }
+ }
+
+ // Setting glj to null will simply cause paint() to re-initialize.
+ // We don't want that to happen, so we will leave glj non-null.
+ }
+
+ public Dimension getSize()
+ {
+ if(customOffScrnSize)
+ return offScrnSize;
+ return super.getSize();
+ }
+
+ /**
+ * get methods
+ */
+ public final int cvsGetWidth() {
+ return getSize().width;
+ }
+ public final int cvsGetHeight() {
+ return getSize().height;
+ }
+}
+
diff --git a/gl4java/swing/GLJPanel.java,v b/gl4java/swing/GLJPanel.java,v
new file mode 100644
index 0000000..2d89e6c
--- /dev/null
+++ b/gl4java/swing/GLJPanel.java,v
@@ -0,0 +1,959 @@
+head 1.2;
+access;
+symbols;
+locks; strict;
+comment @# @;
+
+
+1.2
+date 2000.07.19.12.08.58; author sven; state Exp;
+branches;
+next 1.1;
+
+1.1
+date 2000.07.19.12.01.31; author sven; state Exp;
+branches;
+next ;
+
+
+desc
+@the first - with experimental code
+@
+
+
+1.2
+log
+@stabile
+@
+text
+@package gl4java.swing;
+
+import gl4java.*;
+
+import java.awt.*;
+import java.awt.image.*;
+import java.awt.event.*;
+import javax.swing.*;
+
+/**
+ * This is meant as an base class writing
+ * easy render functions. A clean usage of multi-threading compatible
+ * with JAVA2 is implemented in GLAnimJPanel !
+ *
+ * <p>
+ *
+ * If you are interessting in further Documentation and/or
+ * the history of GL4Java follow the following link.
+ *
+ * <pre>
+ <a href="../../GL4Java.html">The GL4Java Documentation</a>
+ * </pre>
+ * <p>
+ *
+ * You should overwrite the following methods for your needs:
+ * <pre>
+ <a href="GLJPanel.html#init()">preInit - initialisation before creating GLContext</a>
+ <a href="GLJPanel.html#init()">init - 1st initialisation after creating GLContext</a>
+ <a href="GLJPanel.html#doCleanup()">doCleanup - OGL cleanup prior to context deletion</a>
+ <a href="GLJPanel.html#display()">display - render your frame</a>
+ <a href="GLJPanel.html#reshape(int, int)">reshape - to reshape (window resize), gljResize() is allready invoked !</a>
+ * </pre>
+ *
+ * To check if you can use the GLContext and GL and GLU methods,
+ * use the function
+ * <pre>
+ <a href="GLJPanel.html#cvsIsInit()">cvsIsInit</a>
+ * </pre>
+ * <p>
+ * IF you remove/release a GLJPanel,
+ * e.g. you want to close/dispose it�s Window (which contains this GLJPanel),
+ * you HAVE TO call:
+ *
+ * <pre>
+ <a href="GLJPanel.html#cvsDispose()">cvsDispose</a>
+ * </pre>
+ * You should call this before releasing/dispose this Window !
+ * Also you can overwrite this class,
+ * to dispose your own elements, e.g. a Frame etc. -
+ * but be shure that you call
+ * cvsDispose implementation call this one !
+ *
+ * <p>
+ * We do override the following Canvas methods.
+ *
+ * <pre>
+ <a href="GLJPanel.html#update(java.awt.Graphics)">update</a>
+ <a href="GLJPanel.html#paint(java.awt.Graphics)">paint</a>
+ * </pre>
+ * <p>
+ *
+ * @@see GLAnimJPanel
+ * @@version 2.0, 21. April 1999
+ * @@author Sven Goethel
+ *
+ */
+public class GLJPanel extends JPanel
+ implements GLEnum, GLUEnum,
+ ComponentListener, WindowListener, MouseListener
+{
+ protected GLContext glj = null;
+ public GLFunc gl = null;
+ public GLUFunc glu = null;
+
+ protected boolean mustResize = false;
+
+ protected boolean cvsInitialized=false;
+
+ protected boolean needCvsDispose = false;
+
+ /**
+ * Visual pre-set for stencil-bit number, default: 0
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @@see GLJPanel#preInit
+ * @@see GLJPanel#paint
+ */
+ protected int stencilBits = 0;
+
+ /**
+ * Visual pre-set for accumulator buffer size, default: 0
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @@see GLJPanel#preInit
+ * @@see GLJPanel#paint
+ */
+ protected int accumSize = 0;
+
+ /**
+ * Visual pre-set for stereoView, default: false
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @@see GLJPanel#preInit
+ * @@see GLJPanel#paint
+ */
+ protected boolean stereoView = false;
+
+ /**
+ * Visual pre-set for RGBA usage, default: true - of course ;-)
+ * This value is updated after a GLContext is created with the
+ * original updated value of GLContext !
+ *
+ * @@see GLJPanel#preInit
+ * @@see GLJPanel#paint
+ */
+ protected boolean rgba = true;
+
+ /**
+ * The context with witch display lists and textures will be shared.
+ *
+ * @@see GLJPanel#preInit
+ * @@see GLJPanel#paint
+ */
+ protected GLContext sharedGLContext;
+
+ /**
+ * The data to hold the offscreen pixels on the java side !
+ *
+ * @@see GLJPanel#offImagePixels
+ * @@see GLJPanel#paint
+ */
+ protected BufferedImage offImage = null;
+
+ /**
+ * The data to hold the offscreen pixels on the GL side !
+ *
+ * @@see GLJPanel#offImage
+ * @@see GLJPanel#paint
+ */
+ protected byte[] offImagePixels = null;
+
+ /**
+ * The custom set offscreen Size
+ *
+ * If this is set to != null,
+ * the offscreen pixmap is used in this size,
+ * not in the components-size (-> faster if smaller)
+ *
+ * @@see GLJPanel#paint
+ * @@see GLJPanel#setOffScreenSize
+ * @@see GLJPanel#getOffScreenSize
+ */
+ protected Dimension offScrnSize = null;
+ protected boolean customOffScrnSize=false;
+ protected boolean offScrnSizeChanged=false;
+
+ static {
+ if(GLContext.loadNativeLibraries(null, null, null)==false)
+ System.out.println("GLJPanel could not load def. native libs.");
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * @@param gl_Name The name of the GLFunc implementation
+ * If gl_Name==null, the default class will be used !
+ *
+ * @@param glu_Name The name of the GLUFunc implementation
+ * If gl_LibName==null, the default class will be used !
+ *
+ * @@param layout the layout manager
+ * @@param isDoubleBuffered the flag indicates,
+ * if double buffer should be used
+ *
+ */
+ public GLJPanel( String gl_Name,
+ String glu_Name,
+ LayoutManager layout, boolean isDoubleBuffered
+ )
+ {
+ super( layout, isDoubleBuffered );
+
+ if( (gl=GLContext.createGLFunc(gl_Name)) ==null)
+ {
+ System.out.println("GLFunc implementation "+gl_Name+" not created");
+ }
+ if( (glu=GLContext.createGLUFunc(glu_Name)) ==null)
+ {
+ System.out.println("GLUFunc implementation "+glu_Name+" not created");
+ }
+
+ /* to be able for RESIZE event's */
+ addComponentListener(this);
+
+ setOpaque(false);
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * @@param layout the layout manager
+ * @@param isDoubleBuffered the flag indicates,
+ * if double buffer should be used
+ *
+ */
+ public GLJPanel( LayoutManager layout, boolean isDoubleBuffered )
+ {
+ this(null, null, layout, isDoubleBuffered);
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * Uses the default GLFunc and GLUFunc implementation !
+ *
+ * @@param isDoubleBuffered the flag indicates,
+ * if double buffer should be used
+ */
+ public GLJPanel( boolean isDoubleBuffered )
+ {
+ this(null, null, new FlowLayout(), isDoubleBuffered);
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * Uses the default GLFunc and GLUFunc implementation !
+ *
+ * @@param layout the layout manager
+ */
+ public GLJPanel(LayoutManager layout)
+ {
+ this(null, null, layout, true);
+ }
+
+ /**
+ *
+ * Constructor
+ *
+ * Uses the default GLFunc and GLUFunc implementation !
+ *
+ */
+ public GLJPanel( )
+ {
+ this(null, null, new FlowLayout(), true);
+ }
+
+ /**
+ * Used to return the created GLContext
+ */
+ public final GLContext getGLContext() { return glj; }
+
+ /**
+ * Safe the toplevel window
+ */
+ protected Window topLevelWindow = null;
+
+ /**
+ *
+ * This function returns the found TopLevelWindow,
+ * which contains this Canvas ..
+ *
+ * @@return void
+ *
+ * @@see GLJPanel#paint
+ */
+ public final Window getTopLevelWindow()
+ { return topLevelWindow; }
+
+ /**
+ * The customers offscreen Size
+ *
+ * If this is set,
+ * the offscreen pixmap is used in this size,
+ * not in the components-size (-> faster if smaller)
+ *
+ * @@see GLJPanel#offScrnSize
+ * @@see GLJPanel#setOffScreenSize
+ */
+ public Dimension getOffScreenSize()
+ { return offScrnSize; }
+
+ /**
+ * The customers offscreen Size
+ *
+ * If this is set,
+ * the offscreen pixmap is used in this size,
+ * not in the components-size (-> faster if smaller)
+ *
+ * @@see GLJPanel#offScrnSize
+ * @@see GLJPanel#getOffScreenSize
+ */
+ public void setOffScreenSize(Dimension size)
+ {
+ if((size!=null && size.equals(offScrnSize)==false) ||
+ size!=offScrnSize
+ )
+ {
+ offScrnSizeChanged=true;
+ offScrnSize=size;
+ customOffScrnSize=offScrnSize!=null;
+ }
+ }
+
+ /**
+ * this function overrides the Canvas paint method !
+ *
+ * For the first paint,
+ * the user function preInit is called, a GLContext is created
+ * and the user function init is called !
+ *
+ * Also, if a GL Context exist, GLJPanel's sDisplay-method will be called
+ * to do OpenGL-rendering.
+ *
+ * The sDisplay method itself calls the display-method !
+ * sDisplay is needed to be thread-safe, to manage
+ * the resize functionality and to safe the time per frame.
+ *
+ * To define your rendering, you should overwrite the display-method
+ * in your derivation.
+ *
+ * @@see gl4java.GLContext#GLContext
+ * @@see GLJPanel#cvsIsInit
+ * @@see GLJPanel#sDisplay
+ * @@see GLJPanel#display
+ * @@see GLJPanel#preInit
+ * @@see GLJPanel#init
+ */
+ public synchronized final void paintComponent(Graphics g)
+ {
+ if(glj == null ||
+ (mustResize && !customOffScrnSize) || offScrnSizeChanged )
+ {
+ if(mustResize)
+ {
+ cvsDispose();
+ mustResize=false;
+ }
+ preInit();
+ glj = GLContext.createOffScreenCtx ( this, gl, glu,
+ stereoView,
+ rgba, stencilBits, accumSize,
+ sharedGLContext,
+ offScrnSize
+ );
+
+ if(glj!=null)
+ {
+ /*
+ createOwnWindow = glj.isOwnWindowCreated();
+ doubleBuffer = glj.isDoubleBuffer();
+ */
+ stencilBits = glj.getStencilBitNumber();
+ accumSize = glj.getAccumSize();
+ stereoView = glj.isStereoView();
+ rgba = glj.isRGBA();
+ }
+ if(offImage!=null)
+ offImage.flush();
+ offImage=null;
+ offScrnSizeChanged=false;
+
+ init();
+
+ // fetch the top-level window ,
+ // to add us as the windowListener
+ //
+ Container _c = getParent();
+ Container c = null;
+
+ while(_c!=null)
+ {
+ c = _c;
+ _c = _c.getParent();
+ }
+
+ if(c instanceof Window) {
+ topLevelWindow = (Window)c;
+ topLevelWindow.addComponentListener(this);
+ topLevelWindow.addMouseListener(this);
+ } else {
+ topLevelWindow = null;
+ System.out.println("toplevel is not a Window: "+c);
+ }
+
+ if(topLevelWindow!=null)
+ {
+ topLevelWindow.addWindowListener(this);
+ } else {
+ System.out.println("no parent found for "+getName());
+ System.out.flush();
+ }
+ if(glj!=null && glj.gljIsInit())
+ cvsInitialized=true;
+ }
+ /*
+ if( mustResize ) size = getSize();
+ g.setClip(0, 0, size.width, size.height );
+ */
+ //super.paintComponent(g);
+
+ gr = g;
+ sDisplay();
+ }
+
+ Graphics gr = null;
+ DataBufferInt dbInt = null;
+
+ /**
+ *
+ * This is the thread save rendering-method called by paint.
+ * The actual thread will be set to highes priority befor calling
+ * 'display'. After 'display' the priority will be reset !
+ *
+ * 'gljFree' will be NOT called after 'display'.
+ *
+ * We tested the above to use multi-threading and
+ * for the demonstration 'glDemos' it works ;-)) !
+ *
+ * BE SURE, if you want to call 'display' by yourself
+ * (e.g. in the run method for animation)
+ * YOU HAVE TO CALL sDisplay -- OR YOU MUST KNOW WHAT YOU ARE DOING THEN !
+ *
+ * @@return void
+ *
+ * @@see GLJPanel#paint
+ * @@see GLJPanel#display
+ */
+ public synchronized final void sDisplay()
+ {
+ boolean ok = true;
+
+ long _s = System.currentTimeMillis();
+
+ if(!cvsIsInit())
+ return;
+
+ if( glj.gljMakeCurrent() == false ) {
+ System.out.println("GLJPanel: problem in use() method");
+ return;
+ }
+
+ if(ok)
+ {
+ display();
+ _f_dur_self = System.currentTimeMillis()-_s;
+ if(GLContext.gljClassDebug)
+ {
+ _f_dur_self_sum+=_f_dur_self;
+ glj.gljCheckGL();
+ }
+
+ int glFormat;
+ int glComps;
+ int awtFormat;
+
+ glFormat = (rgba == true)?GL_RGBA:GL_RGB;
+ glComps = (rgba == true)?4:3;
+ awtFormat = (rgba == true)?BufferedImage.TYPE_INT_ARGB:
+ BufferedImage.TYPE_INT_RGB;
+
+ Dimension size = null;
+ if(customOffScrnSize)
+ size=offScrnSize;
+ else
+ size=getSize();
+ int w=size.width;
+ int h=size.height;
+
+ long _s_tst = System.currentTimeMillis();
+
+ if(offImage==null ||
+ offImage.getHeight()!=h || offImage.getWidth()!=w)
+ {
+ if(offImage!=null)
+ offImage.flush();
+ offImage = new BufferedImage(w,h,awtFormat);
+ offImagePixels=new byte[w*h*glComps];
+ dbInt = (DataBufferInt)
+ offImage.getRaster().getDataBuffer();
+
+ if(GLContext.gljClassDebug)
+ {
+ System.out.print("set offImage to size: "+size+
+ "(hw size: "+w+"x"+h+"), type: ");
+ switch(glFormat) {
+ case GL_RGB: System.out.println("RGB"); break;
+ case GL_RGBA: System.out.println("RGBA"); break;
+ case GL_BGR_EXT: System.out.println("BGR"); break;
+ case GL_BGRA_EXT: System.out.println("BGRA"); break;
+ }
+ }
+ }
+
+ glj.gljReadPixelGL2AWT(0,0,w,h,glFormat,GL_UNSIGNED_BYTE,
+ glj.isDoubleBuffer()?GL_BACK:GL_FRONT,
+ offImagePixels, dbInt.getData());
+
+ //glj.gljSwap(); // no true swapping with offscreen buffers ..
+
+ if(GLContext.gljClassDebug)
+ _f_dur_tst_sum+=System.currentTimeMillis()-_s_tst;
+
+ if(GLContext.gljClassDebug)
+ glj.gljCheckGL();
+ glj.gljFree(); // enable ctx for threads ...
+
+ if(!customOffScrnSize)
+ gr.drawImage(offImage, 0, 0, this);
+ else {
+ size=super.getSize();
+ gr.drawImage(offImage, 0, 0, size.width, size.height, this);
+ }
+
+ _f_dur_total = System.currentTimeMillis()-_s;
+ if(GLContext.gljClassDebug)
+ {
+ _f_dur_total_sum+=_f_dur_total;
+ if(++_f_dur_times==100)
+ {
+ System.out.println("self p 100: "+
+ (double)(_f_dur_self_sum/100)/1000.0+" s");
+
+ System.out.println("tst p 100: "+
+ (double)(_f_dur_tst_sum/100)/1000.0+" s");
+
+ System.out.println("gl-bitblit p 100: "+
+ (double)((_f_dur_total_sum-_f_dur_self_sum)/100)/1000.0+" s");
+ System.out.println("total p 100: "+
+ (double)(_f_dur_total_sum/100)/1000.0+" s");
+
+ _f_dur_self_sum=0;
+ _f_dur_tst_sum=0;
+ _f_dur_total_sum=0;
+ _f_dur_times=0;
+ }
+ }
+
+ }
+
+ }
+
+ /**
+ *
+ * This is the rendering-method called by sDisplay
+ * (and sDisplay is called by paint !).
+ * The derived-class (Your Subclass) will redefine this, to draw it's own...
+ *
+ * BE SURE, if you want to call 'display' by yourself
+ * (e.g. in the run method for animation)
+ * YOU HAVE TO CALL sDisplay !
+ *
+ * 'sDisplay' manages a semaphore to avoid reentrance of
+ * the display function !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ *
+ * @@return void
+ *
+ * @@see GLJPanel#sDisplay
+ * @@see GLJPanel#paint
+ */
+ public void display()
+ {
+ }
+
+ /**
+ *
+ * This is your pre-init method.
+ * preInit is called just BEFORE the GL-Context is created.
+ * You should override preInit, to initialize your visual-stuff,
+ * like the protected vars: doubleBuffer and stereoView
+ *
+ * @@return void
+ *
+ * @@see GLJPanel#paint
+ * @@see GLJPanel#doubleBuffer
+ * @@see GLJPanel#stereoView
+ * @@see GLJPanel#rgba
+ * @@see GLJPanel#stencilBits
+ * @@see GLJPanel#accumSize
+ */
+ public void preInit()
+ {
+ }
+
+ /**
+ *
+ * This is your init method.
+ * init is called right after the GL-Context is initialized.
+ * You should override init, to initialize your stuff needed
+ * by OpenGL an Java !
+ *
+ * @@return void
+ *
+ * @@see GLJPanel#paint
+ */
+ public void init()
+ {
+ }
+
+ /**
+ * This method is used to clean up any OpenGL stuff (delete textures
+ * or whatever) prior to actually deleting the OpenGL context.
+ * You should override this with your own version, if you need to do
+ * any cleanup work at this phase.
+ * This functions is called within cvsDispose
+ *
+ * @@return void
+ *
+ * @@see GLJPanel#cvsDispose
+ */
+ public void doCleanup()
+ {
+ }
+
+ /**
+ * This function returns, if everything is init: the GLContext,
+ * the and the users init function
+ * This value is set in the paint method!
+ *
+ * @@return boolean
+ *
+ * @@see GLJPanel#paint
+ * @@see GLJPanel#init
+ */
+ public boolean cvsIsInit()
+ {
+ return cvsInitialized;
+ }
+
+ protected long _f_dur_self = 0;
+ protected long _f_dur_self_sum = 0;
+ protected long _f_dur_tst_sum = 0;
+ protected long _f_dur_total = 0;
+ protected long _f_dur_total_sum = 0;
+ protected int _f_dur_times = 0;
+
+ /**
+ *
+ * This is the reshape-method called by paint.
+ * The derived-class (Your Subclass) will redefine this,
+ * to manage your individual reshape ...
+ *
+ * This �reshape� method will be invoked after the first paint command
+ * after GLJPanel.componentResize is called AND only if �gljUse� was
+ * succesfull (so a call of gljUse is redundant).
+ * �reshape� is not an overloading of java.awt.Component.reshape,
+ * �reshape� is more like �glut�-reshape.
+ *
+ * GLJPanel.reshape allready has a simple default implementation,
+ * which calls �gljResize� and �glViewport� - so you may be can
+ * left this one as it is (no need to overload).
+ * The needed call to �gljResize� is done by hte invoker paint !
+ *
+ * @@param width the new width
+ * @@param height the new height
+ * @@return void
+ *
+ * @@see GLJPanel#paint
+ * @@see GLJPanel#sDisplay
+ */
+ public void reshape( int width, int height )
+ {
+ if(GLContext.gljClassDebug)
+ System.out.println("GLJPanel::reshape bounds("+getBounds()+")");
+ gl.glViewport(0,0, width, height);
+ }
+
+ /**
+ *
+ * �componentResized� is the componentListeners event handler.
+ *
+ * This method sets the variable �mustResize� to true,
+ * so the upcoming �paint� method-call will invoke �reshape� !
+ *
+ * This little look-alike complicating thing is done,
+ * to avoid an Exception by using the glContext from more than
+ * one concurrent thread�s !
+ *
+ * You cannot override this implementation, it is final
+ * - override �reshape' instead !
+ *
+ * @@param e the element, which is resized
+ * @@return void
+ *
+ * @@see GLJPanel#paint
+ * @@see GLJPanel#reshape
+ */
+ public void componentResized(ComponentEvent e)
+ {
+ if(GLContext.gljClassDebug)
+ System.out.println("GLJPanel::componentResized("+e.getComponent()+")");
+ if(glj!=null && glj.gljIsInit() && e.getComponent()==this )
+ {
+ mustResize = true;
+ //repaint();
+ }
+ }
+
+ public void componentMoved(ComponentEvent e)
+ {
+ /*
+ if(GLContext.gljClassDebug)
+ System.out.print("GLJPanel::componentMoved("+e.getComponent()+")");
+ if(e.getComponent().equals(topLevelWindow))
+ {
+ repaint();
+ }
+ */
+ }
+
+ public void componentShown(ComponentEvent e)
+ {
+ }
+
+ public void componentHidden(ComponentEvent e)
+ {
+ }
+
+ public void mouseClicked(MouseEvent e)
+ {
+ }
+ public void mouseEntered(MouseEvent e)
+ {
+ /*
+ if(GLContext.gljClassDebug)
+ System.out.print("GLJPanel::mouseEntered("+e.getComponent()+")");
+ if(e.getComponent().equals(topLevelWindow))
+ {
+ repaint();
+ }
+ */
+ }
+ public void mouseExited(MouseEvent e)
+ {}
+ public void mousePressed(MouseEvent e)
+ {
+ }
+ public void mouseReleased(MouseEvent e)
+ {
+ }
+
+ public void windowOpened(WindowEvent e)
+ {
+ }
+
+ /**
+ *
+ * �windowClosing� is the windowListeners event handler
+ * for the topLevelWindow of this Canvas !
+ *
+ * This methods free�s AND destroy�s
+ * the GL Context with �glj.gljDestroy� !
+ *
+ * @@return void
+ *
+ */
+ public void windowClosing(WindowEvent e)
+ {
+ if(e.getComponent().equals(topLevelWindow))
+ {
+ cvsDispose();
+ }
+ }
+
+ /**
+ *
+ * �windowClosed� is the windowListeners event handler.
+ *
+ * @@return void
+ *
+ */
+ public void windowClosed(WindowEvent e)
+ {
+ if (needCvsDispose) cvsDispose();
+ }
+
+ public void windowIconified(WindowEvent e)
+ {
+ }
+
+ public void windowDeiconified(WindowEvent e)
+ {
+ }
+
+ public void windowActivated(WindowEvent e)
+ {
+ }
+
+ public void windowDeactivated(WindowEvent e)
+ {
+ }
+
+ /**
+ * You should call this before releasing/dispose this Window !
+ * Also you can overwrite this class,
+ * to dispose your own elements, e.g. a Frame etc. -
+ * but be shure that you call
+ * cvsDispose implementation call this one !
+ *
+ * This function calls gljDestroy of GLContext !
+ *
+ * @@see gl4java.GLContext#gljDestroy
+ * @@see GLJPanel#doCleanup
+ */
+ public void cvsDispose()
+ {
+ cvsInitialized = false;
+ if (glj != null)
+ {
+ if (glj.gljIsInit())
+ {
+ /* Sometimes the Microsoft VM calls the
+ Applet.stop() method but doesn't have
+ permissions to do J/Direct calls, so
+ this whole block of code will throw a
+ security exception. If this happens,
+ however, windowClosing() will still
+ call us again later and we will have
+ another opportunity to shut down the
+ context, so it all works out fine. */
+ try
+ {
+ glj.gljFree();
+ doCleanup();
+ //locks and free's GLContext
+ glj.setEnabled(false);
+ glj.gljDestroy();
+ needCvsDispose = false;
+ }
+ catch (Exception ex)
+ {
+ needCvsDispose = true;
+ }
+ }
+ }
+
+ // Setting glj to null will simply cause paint() to re-initialize.
+ // We don't want that to happen, so we will leave glj non-null.
+ }
+
+ public Dimension getSize()
+ {
+ if(customOffScrnSize)
+ return offScrnSize;
+ return super.getSize();
+ }
+
+ /**
+ * get methods
+ */
+ public final int cvsGetWidth() {
+ return getSize().width;
+ }
+ public final int cvsGetHeight() {
+ return getSize().height;
+ }
+}
+
+@
+
+
+1.1
+log
+@Initial revision
+@
+text
+@a414 1
+ DataBufferByte dbByte = null;
+a438 9
+ boolean useBGR = false;
+ boolean useNativeCpy = false;
+
+ /*
+ if(glj.getNativeOSType()==GLContext.OsWindoof)
+ useBGR=true;
+ if(glj.getNativeOSType()==GLContext.OsX11)
+ useNativeCpy=true;
+ */
+d464 3
+a466 10
+ if(useBGR)
+ {
+ glFormat = (rgba == true)?GL_BGRA_EXT:GL_BGR_EXT;
+ glComps = (rgba == true)?4:3;
+ awtFormat = (rgba == true)?BufferedImage.TYPE_4BYTE_ABGR:
+ BufferedImage.TYPE_3BYTE_BGR;
+ } else {
+ glFormat = (rgba == true)?GL_RGBA:GL_RGB;
+ glComps = (rgba == true)?4:3;
+ awtFormat = (rgba == true)?BufferedImage.TYPE_INT_ARGB:
+a467 1
+ }
+d485 4
+a488 15
+ if(useBGR)
+ {
+ offImagePixels=null;
+ dbByte = (DataBufferByte)
+ offImage.getRaster().getDataBuffer();
+ dbInt = null;
+ } else {
+ if(!useNativeCpy)
+ offImagePixels=new byte[w*h*glComps];
+ else
+ offImagePixels=null;
+ dbInt = (DataBufferInt)
+ offImage.getRaster().getDataBuffer();
+ dbByte = null;
+ }
+d502 3
+a504 12
+ if(useBGR)
+ glj.gljReadPixelGL2AWT(0,0,w,h,glFormat,GL_UNSIGNED_BYTE,
+ glj.isDoubleBuffer()?GL_BACK:GL_FRONT,
+ dbByte.getData());
+ else if(useNativeCpy)
+ {
+ glj.gljCpyOffScrnImg2Buffer(w, h, glFormat, dbInt.getData());
+ glj.gljSwap();
+ } else
+ glj.gljReadPixelGL2AWT(0,0,w,h,glFormat,GL_UNSIGNED_BYTE,
+ glj.isDoubleBuffer()?GL_BACK:GL_FRONT,
+ offImagePixels, dbInt.getData());
+@
diff --git a/gl4java/swing/SimpleGLJApplet1.java b/gl4java/swing/SimpleGLJApplet1.java
new file mode 100644
index 0000000..0dc21f4
--- /dev/null
+++ b/gl4java/swing/SimpleGLJApplet1.java
@@ -0,0 +1,292 @@
+/**
+ * @(#) SimpleGLJApplet1.java
+ * @(#) author: Sven Goethel
+ */
+
+package gl4java.swing;
+
+/* This program is licensed under the LGPL */
+
+import java.applet.*;
+import javax.swing.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import gl4java.GLContext;
+import gl4java.GLFunc;
+import gl4java.GLUFunc;
+import gl4java.awt.GLAnimCanvas;
+
+public class SimpleGLJApplet1 extends JApplet
+ implements MouseListener, WindowListener, ActionListener, ItemListener
+{
+ public GLJPanel canvas = null;
+
+ public Button buttonInfo = null;
+ public Button buttonFps = null;
+ public TextField textFps = null;
+ public Checkbox checkUseRepaint = null;
+ public Checkbox checkUseFpsSleep = null;
+ public Button buttonReStart = null;
+
+
+ Frame fInfo = null;
+
+ /* Initialize the applet */
+
+ public void init()
+ {
+ JPanel master = new JPanel (new BorderLayout());
+ setContentPane(master);
+
+ JPanel pan = new JPanel();
+ pan.setLayout(new GridLayout(2,3));
+
+ buttonInfo = new Button("GL4Java");
+ buttonInfo.addMouseListener(this);
+ pan.add(buttonInfo);
+
+ checkUseRepaint = new Checkbox("repaint", true);
+ checkUseRepaint.addItemListener(this);
+ pan.add(checkUseRepaint);
+
+ checkUseFpsSleep = new Checkbox("fps-sleep", true);
+ checkUseFpsSleep.addItemListener(this);
+ pan.add(checkUseFpsSleep);
+
+ buttonReStart = new Button("start/stop");
+ buttonReStart.addMouseListener(this);
+ pan.add(buttonReStart);
+
+ buttonFps = new Button("fps: ");
+ buttonFps.addMouseListener(this);
+ pan.add(buttonFps);
+
+ textFps=new TextField("0000000000");
+ textFps.addActionListener(this);
+ pan.add(textFps);
+
+ master.add("South",pan);
+ }
+
+
+ public void start()
+ {
+ if(canvas instanceof GLAnimJPanel)
+ ((GLAnimJPanel)canvas).start();
+ }
+
+
+ public void stop()
+ {
+ if(canvas instanceof GLAnimJPanel)
+ ((GLAnimJPanel)canvas).stop();
+ }
+
+
+ public void destroy()
+ {
+ if(fInfo!=null)
+ {
+ fInfo.dispose();
+ fInfo=null;
+ }
+ if(canvas instanceof GLAnimJPanel)
+ {
+ ((GLAnimJPanel)canvas).stop();
+ ((GLAnimJPanel)canvas).cvsDispose();
+ }
+ }
+
+
+ // Methods required for the implementation of MouseListener
+ public void mouseEntered( MouseEvent evt )
+ {
+ }
+
+ public void mouseExited( MouseEvent evt )
+ {
+ }
+
+ public void mousePressed( MouseEvent evt )
+ {
+ }
+
+ public void mouseReleased( MouseEvent evt )
+ {
+ }
+
+ public void mouseClicked( MouseEvent evt )
+ {
+ Component comp = evt.getComponent();
+
+ if((canvas instanceof GLAnimJPanel)==false)
+ return;
+
+ GLAnimJPanel canvasAnim = (GLAnimJPanel)canvas;
+
+ if( canvasAnim!=null && comp.equals(buttonFps) )
+ {
+ double fps = 0;
+ int a1;
+
+ canvasAnim.stopFpsCounter();
+ fps=canvasAnim.getFps();
+ a1=(int)(fps*100.0);
+ fps=(double)a1/100.0;
+ textFps.setText(String.valueOf(fps));
+ canvasAnim.resetFpsCounter();
+ } else if( comp.equals(buttonInfo) )
+ {
+ if(fInfo==null && canvasAnim!=null && canvasAnim.getGLContext()!=null)
+ fInfo = showGLInfo();
+ }
+ else if( comp.equals(buttonReStart) )
+ {
+ canvasAnim.setSuspended(!canvasAnim.isSuspended(),
+ evt.getClickCount()>1 // -> ReInit
+ );
+ }
+ }
+
+ public void itemStateChanged( ItemEvent evt )
+ {
+ ItemSelectable comp = evt.getItemSelectable();
+
+ if((canvas instanceof GLAnimJPanel)==false)
+ return;
+
+ GLAnimJPanel canvasAnim = (GLAnimJPanel)canvas;
+
+ if( comp.equals(checkUseRepaint ) )
+ {
+ if(canvasAnim!=null)
+ {
+ canvasAnim.setUseRepaint(checkUseRepaint.getState());
+ System.out.println("canvas uses repaint: "+
+ checkUseRepaint.getState());
+ }
+ }
+ if( comp.equals(checkUseFpsSleep ) )
+ {
+ if(canvasAnim!=null)
+ {
+ canvasAnim.setUseFpsSleep(checkUseFpsSleep.getState());
+ System.out.println("canvas uses fps-sleep: "+
+ checkUseFpsSleep.getState());
+ }
+ }
+ }
+
+ public void actionPerformed(ActionEvent event)
+ {
+ Object source = event.getSource();
+
+ if((canvas instanceof GLAnimJPanel)==false)
+ return;
+
+ GLAnimJPanel canvasAnim = (GLAnimJPanel)canvas;
+
+ if ( source == textFps)
+ {
+ try {
+ double FramesPerSec=
+ Double.valueOf(textFps.getText()).doubleValue();
+ if(canvasAnim!=null)
+ {
+ canvasAnim.setAnimateFps(FramesPerSec);
+ canvasAnim.setSuspended(false, true);
+ }
+ } catch (NumberFormatException s) {
+ System.out.println("wrong fps format, use float ..");
+ }
+
+ }
+ }
+
+ public void windowOpened(WindowEvent e)
+ {
+ }
+
+ public void windowClosing(WindowEvent e)
+ {
+ Window w = e.getWindow();
+ if(w == fInfo && fInfo!=null)
+ {
+ fInfo.dispose();
+ fInfo=null;
+ }
+ }
+
+ public void windowClosed(WindowEvent e)
+ {
+ Window w = e.getWindow();
+ if(w == fInfo && fInfo!=null)
+ {
+ fInfo.dispose();
+ fInfo=null;
+ }
+ }
+
+ public void windowIconified(WindowEvent e)
+ {
+ }
+
+ public void windowDeiconified(WindowEvent e)
+ {
+ }
+
+ public void windowActivated(WindowEvent e)
+ {
+ }
+
+ public void windowDeactivated(WindowEvent e)
+ {
+ }
+
+ public Frame showGLInfo()
+ {
+ if(canvas==null) return null;
+
+ GLContext glc = canvas.getGLContext();
+ if(glc==null) return null;
+
+ GLFunc gl = glc.getGLFunc();
+ if(gl==null) return null;
+
+ GLUFunc glu = glc.getGLUFunc();
+ if(gl==null) return null;
+
+ if((canvas instanceof GLAnimJPanel)==false)
+ ((GLAnimJPanel)canvas).setSuspended(true, false);
+
+ Frame f = new Frame("GL4Java Version");
+ TextArea info= new TextArea(25, 80);
+ info.setEditable(false);
+ f.add(info);
+ f.setSize(600, 400);
+
+ String str = "null string";
+ if( glc.gljMakeCurrent() == false )
+ {
+ str="problem in use() method\n";
+ } else {
+ str=canvas.getGLContext().gljGetVersions();
+ if(str==null)
+ str="could not get versions";
+ System.out.println(str);
+ glc.gljFree();
+ }
+ info.append(str);
+
+ f.addWindowListener(this);
+
+ if((canvas instanceof GLAnimJPanel)==false)
+ ((GLAnimJPanel)canvas).setSuspended(false, false);
+
+ f.pack();
+ f.setVisible(true);
+
+ return f;
+ }
+}
diff --git a/gl4java/system/GljMSJDirect.java b/gl4java/system/GljMSJDirect.java
new file mode 100644
index 0000000..125d5c0
--- /dev/null
+++ b/gl4java/system/GljMSJDirect.java
@@ -0,0 +1,77 @@
+/**
+ * @(#) GljMSJDirect.java
+ */
+
+
+package gl4java.system;
+
+/**
+ * The base toolkit class for MS-JVM JDirect calls !
+ *
+ * The methods in this class are used by gl4java.GLContext !
+ * Because this class MUST compiled with the MS-JVM Java Compiler
+ * I have decided to put it out of gl4java.GLContext,
+ * although this can be a security hole ...
+ * But we must be able to use GL4Java without MS-JVM bytecode.
+ *
+ * The Tag @security(checkDllCalls=off) makes us able to
+ * use these methods outside of these class,
+ * without a security check all the time.
+ * The security check is performed at link-time !
+ *
+ * This is the same for gl4java.GLUFuncMSJDirect
+ * and gl4java.GLFuncMSJDirect !
+ *
+ * @see gl4java.GLContext
+ * @version 1.00
+ * @author Ron Cemer, Sven Goethel
+ *
+ */
+
+/** @security(checkDllCalls=off) */
+public class GljMSJDirect extends Object
+{
+
+ /* JDirect DLL functions */
+
+ public static final void OGLWindowMsgPump()
+ { OGLWindowMsgPumpJDirect(); }
+
+
+ /**
+ * @dll.import("GL4JavaGljMSJDirect")
+ */
+ private static native void OGLWindowMsgPumpJDirect();
+
+ public static final int createOGLWindowNative(int hwndParent,
+ int x, int y,
+ int width,
+ int height)
+ { return createOGLWindowNativeJDirect(hwndParent, x,y, width, height); }
+
+ /**
+ * @dll.import("GL4JavaGljMSJDirect", auto)
+ */
+ private static native int createOGLWindowNativeJDirect(int hwndParent,
+ int x, int y,
+ int width,
+ int height);
+
+ public static final void destroyOGLWindowNative(int hdc)
+ { destroyOGLWindowNativeJDirect(hdc); }
+
+ /**
+ * @dll.import("GL4JavaGljMSJDirect")
+ */
+ private static native void destroyOGLWindowNativeJDirect(int hdc);
+
+ public static final void moveOGLWindowNative(int hdc, int x, int y, int width, int height)
+ { moveOGLWindowNativeJDirect(hdc, x, y, width, height); }
+
+ /**
+ * @dll.import("GL4JavaGljMSJDirect")
+ */
+ private static native void moveOGLWindowNativeJDirect(int hdc, int x, int y, int width, int height);
+
+}
+
diff --git a/gl4java/utils/Test.java b/gl4java/utils/Test.java
new file mode 100644
index 0000000..addc706
--- /dev/null
+++ b/gl4java/utils/Test.java
@@ -0,0 +1,359 @@
+/**
+ * @(#) Test.java
+ * @(#) author: Sven Goethel
+ */
+
+package gl4java.utils;
+
+
+/* This program is free software under the license of LGPL */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import java.util.*;
+import java.io.*;
+import java.util.*;
+import gl4java.GLContext;
+import gl4java.awt.GLCanvas;
+import gl4java.awt.GLAnimCanvas;
+import gl4java.applet.SimpleGLAnimApplet1;
+
+public class Test
+{
+
+ public Test(String name, Object tstObj, int width, int height)
+ {
+ if(tstObj instanceof SimpleGLAnimApplet1)
+ {
+ SimpleGLAnimApplet1 glSAnimApplet = (SimpleGLAnimApplet1)tstObj;
+
+ Frame f = new Frame(name);
+
+ f.addWindowListener( new WindowAdapter()
+ {
+ public void windowClosed(WindowEvent e)
+ {
+ System.exit(0);
+ }
+ public void windowClosing(WindowEvent e)
+ {
+ windowClosed(e);
+ }
+ }
+ );
+
+ f.setLayout(new BorderLayout());
+
+ glSAnimApplet.setSize(width, height);
+ glSAnimApplet.init();
+ glSAnimApplet.start();
+
+ f.add(glSAnimApplet);
+
+ Dimension ps = glSAnimApplet.getPreferredSize();
+ f.setBounds(-100,-100,99,99);
+ f.setVisible(true);
+ f.setVisible(false);
+ Insets i = f.getInsets();
+ f.setBounds(0,0,
+ ps.width+i.left+i.right,
+ ps.height+i.top+i.bottom);
+ f.setVisible(true);
+
+ } else if(tstObj instanceof GLAnimCanvas)
+ {
+ GLAnimCanvas glAnimCvsTest = (GLAnimCanvas)tstObj;
+
+ GLAnimCanvasTest applet = new GLAnimCanvasTest();
+
+ Frame f = new Frame(name);
+
+ f.addWindowListener( new WindowAdapter()
+ {
+ public void windowClosed(WindowEvent e)
+ {
+ System.exit(0);
+ }
+ public void windowClosing(WindowEvent e)
+ {
+ windowClosed(e);
+ }
+ }
+ );
+
+ f.setLayout(new BorderLayout());
+ f.add("Center", applet);
+ applet.setSize(width,height);
+ applet.init(glAnimCvsTest);
+ applet.start();
+ Dimension ps = applet.getPreferredSize();
+ f.setBounds(-100,-100,99,99);
+ f.setVisible(true);
+ f.setVisible(false);
+ Insets i = f.getInsets();
+ f.setBounds(0,0,
+ ps.width+i.left+i.right,
+ ps.height+i.top+i.bottom);
+ f.setVisible(true);
+
+ } else {
+ GLCanvas glCvsTest = (GLCanvas)tstObj;
+
+ GLCanvasTest applet = new GLCanvasTest();
+
+ Frame f = new Frame(name);
+
+ f.addWindowListener( new WindowAdapter()
+ {
+ public void windowClosed(WindowEvent e)
+ {
+ System.exit(0);
+ }
+ public void windowClosing(WindowEvent e)
+ {
+ windowClosed(e);
+ }
+ }
+ );
+
+ f.setLayout(new BorderLayout());
+ f.add("Center", applet);
+ applet.setSize(width,height);
+ applet.init();
+ applet.start();
+ Dimension ps = applet.getPreferredSize();
+ f.setBounds(-100,-100,99,99);
+ f.setVisible(true);
+ f.setVisible(false);
+ Insets i = f.getInsets();
+ f.setBounds(0,0,
+ ps.width+i.left+i.right,
+ ps.height+i.top+i.bottom);
+ f.setVisible(true);
+ }
+ }
+
+ /**
+ * Test to load the native library, GLFunc and GLUFunc implementation !
+ * If succesfull, a Frame will created and the GL-Infos (vendor, ...)
+ * are shown in it !
+ *
+ * @param args, a list of args,
+ *
+ * -gljlib <glj-libname> gl4java-glj-lib native library
+ * -gllib <gl-libname> gl4java-gl-lib native library
+ * -glulib <glu-libname> gl4java-glu-lib native library
+ * -glclass <gl-class> gl4java-gl-class java GLFunc implementation
+ * -gluclass <glu-class> gl4java-glu-class java GLUFunc implementation
+ * -testclass <GLCanvas or SimpleGLAnimApplet1 Implementation Class> A derivation of GLCanvas (GLAnimCanvas also) or SimpleGLAnimApplet1 can be started here for testing purposes !
+ * -w <int> the testclass window width (default 400)
+ * -h <int> the testclass window height (default 250)
+ * -perftest if a derivation of GLAnimCanvas is used as the testclass (see above), the fps-sleep and the use-repaint flags are set to false!
+ *
+ * without any arguments, a help screen is shown
+ */
+ public static void main( String args[] )
+ {
+ String gljLibName = null;
+ String glLibName = null;
+ String gluLibName = null;
+ String glName = GLContext.defGLFuncClass;
+ String gluName = GLContext.defGLUFuncClass;
+ String testClazzName = GLContext.defGLUFuncClass;
+ boolean perftest=false;
+ int width=400, height=250;
+ int i = 0;
+ boolean ok=true;
+
+ if(args.length==0)
+ {
+ System.out.println("usage: java gl4java.GLContext <options>, where options can be: ");
+ System.out.println(" -gljlib <glj-libname> \t\t\t choose a custom the gl4java-glj-lib native library (default: GL4JavaJauGljJNI)");
+ System.out.println(" -gllib <gl-libname> \t\t\t choose a custom the gl4java-gl-lib native library (default: GL4JavaJauGLJNI)");
+ System.out.println(" -glulib <glu-libname> \t\t\t choose a custom the gl4java-glu-lib native library (default: GL4JavaJauGLUJNI");
+ System.out.println(" -glclass <gl-class> \t\t\t choose a custom the gl4java-gl-class java GLFunc implementation (default: GLFuncJauJNI)");
+ System.out.println(" -gluclass <glu-class> \t\t\t choose a custom the gl4java-glu-class java GLUFunc implementation (default: GLUFuncJauJNI)");
+ System.out.println(" -testclass <GLCanvas Implementation Class> \t\t\t a derivation of GLCanvas (GLCanvas or GLAnimCanvas) can be started here for testing purposes !");
+ System.out.println(" -w <int> \t\t\t the testclass window width (default 800) !");
+ System.out.println(" -h <int> \t\t\t the testclass window height (default 600) !");
+ System.out.println(" -perftest \t\t\t if a derivation of GLAnimCanvas is used as the testclass (see above), the fps-sleep and the use-repaint flags are set to false!");
+ System.exit(0);
+ }
+
+ while(args.length>i)
+ {
+ if(args[i].equals("-gljlib")) {
+ if(args.length>++i) gljLibName=args[i];
+ } else if(args[i].equals("-gllib")) {
+ if(args.length>++i) glLibName=args[i];
+ } else if(args[i].equals("-glulib")) {
+ if(args.length>++i) gluLibName=args[i];
+ } else if(args[i].equals("-glclass")) {
+ if(args.length>++i) glName=args[i];
+ } else if(args[i].equals("-gluclass")) {
+ if(args.length>++i) gluName=args[i];
+ } else if(args[i].equals("-testclass")) {
+ if(args.length>++i) testClazzName=args[i];
+ } else if(args[i].equals("-w")) {
+ if(args.length>++i) {
+ try {
+ width = Integer.valueOf(args[i]).intValue();
+ } catch (Exception ex) {
+ System.out.println("invalid width, please insert an integer value !");
+ ok=false;
+ }
+ }
+ } else if(args[i].equals("-h")) {
+ if(args.length>++i) {
+ try {
+ height = Integer.valueOf(args[i]).intValue();
+ } catch (Exception ex) {
+ System.out.println("invalid height, please insert an integer value !");
+ ok=false;
+ }
+ }
+ } else if(args[i].equals("-perftest")) {
+ perftest=true;
+ } else {
+ System.out.println("illegal arg "+i+": "+args[i]);
+ ok=false;
+ }
+ i++;
+ }
+
+ if(!perftest)
+ {
+ GLContext.gljNativeDebug = true;
+ GLContext.gljClassDebug = true;
+ } else {
+ GLContext.gljNativeDebug = false;
+ GLContext.gljClassDebug = false;
+ }
+
+ if(GLContext.loadNativeLibraries(gljLibName, glLibName, gluLibName))
+ System.out.println("native Libraries loaded succesfull");
+ else {
+ System.out.println("native library NOT loaded complete");
+ ok=false;
+ }
+
+ Object tstObj = null;
+
+ if(ok==true)
+ {
+ try {
+ Class canvasClazz =
+ Class.forName("gl4java.awt.GLCanvas");
+ Class animCanvasClazz =
+ Class.forName("gl4java.awt.GLAnimCanvas");
+ Class animAppletCanvasClazz =
+ Class.forName("gl4java.applet.SimpleGLAnimApplet1");
+
+ Class tstClazz =
+ Class.forName(testClazzName);
+
+ if( ! canvasClazz.isAssignableFrom(tstClazz) &&
+ ! animAppletCanvasClazz.isAssignableFrom(tstClazz) )
+ {
+ System.out.println("Your test-clazz is neither derived from gl4java.awt.GLCanvas nor from gl4java.applet.SimpleGLAnimApplet1!");
+ ok=false;
+ throw new Exception();
+ }
+
+ /**
+ * Std. conversion from Integer -> int
+ */
+ Class[] parameterTypes = new Class[4];
+ parameterTypes[0] = Class.forName("java.lang.Integer");
+ parameterTypes[1] = Class.forName("java.lang.Integer");
+ parameterTypes[2] = Class.forName("java.lang.String");
+ parameterTypes[3] = Class.forName("java.lang.String");
+
+ Object[] parameters = null;
+ java.lang.reflect.Constructor tstObjConstr = null;
+
+ try {
+ tstObjConstr = tstClazz.getConstructor(parameterTypes);
+
+ parameters = new Object[4];
+ parameters[0] = new java.lang.Integer(width);
+ parameters[1] = new java.lang.Integer(height);
+ parameters[2] = glName;
+ parameters[3] = gluName;
+
+ } catch (java.lang.NoSuchMethodException nsme) {
+
+ try {
+ parameterTypes = new Class[4];
+ parameterTypes[0] = Class.forName("java.lang.Integer");
+ parameterTypes[1] = Class.forName("java.lang.Integer");
+
+ tstObjConstr = tstClazz.getConstructor(parameterTypes);
+
+ parameters = new Object[4];
+ parameters[0] = new java.lang.Integer(width);
+ parameters[1] = new java.lang.Integer(height);
+
+ } catch (java.lang.NoSuchMethodException nsme2) {
+ tstObj = tstClazz.newInstance();
+ }
+ }
+
+ if(tstObj==null && parameters!=null)
+ tstObj = tstObjConstr.newInstance(parameters);
+
+ } catch (Exception ex) {
+ System.out.println("Instantiation of: "+testClazzName+" failed !");
+ System.out.println(ex);
+ ok =false;
+ }
+
+ ok = tstObj!=null ;
+ }
+
+ if(ok) {
+ // let's do it ...
+ Test test = new Test(testClazzName, tstObj, width, height);
+ }
+ }
+
+ private class GLAnimCanvasTest extends SimpleGLAnimApplet1
+ {
+ public void init(GLAnimCanvas glAnimCanvas)
+ {
+ super.init();
+ Dimension d = getSize();
+ canvas = glAnimCanvas;
+ add("Center", canvas);
+ }
+ }
+
+ private class GLCanvasTest extends Applet
+ {
+ GLCanvas canvas = null;
+
+ /* Initialize the applet */
+
+ public void init(GLCanvas glCanvas)
+ {
+ Dimension d = getSize();
+ setLayout(new BorderLayout());
+ canvas = glCanvas;
+ add("Center", canvas);
+ }
+
+ /* Start the applet */
+
+ public void start()
+ {
+ }
+
+ /* Stop the applet */
+
+ public void stop()
+ {
+ }
+ }
+}
diff --git a/gl4java/utils/Tool.java b/gl4java/utils/Tool.java
new file mode 100644
index 0000000..e4ef7dc
--- /dev/null
+++ b/gl4java/utils/Tool.java
@@ -0,0 +1,158 @@
+/*
+ * @(#) Tool.java
+ *
+ * @author Sven Goethel
+ */
+
+package gl4java.utils;
+
+import java.util.*;
+import java.lang.*;
+import java.net.*;
+import java.io.*;
+import java.awt.*;
+import java.applet.*;
+
+public class Tool {
+
+/**
+ * A few Component methods for Java-VM access
+ */
+
+ public static String getVersion()
+ {
+ String version = null;
+
+ try {
+ version = java.lang.System.getProperty("java.version");
+ }
+ catch ( SecurityException s)
+ {
+ version=(s.getMessage()==null)?s.toString():s.getMessage();
+ System.out.println(version);
+ }
+
+ return version;
+ }
+
+ public static String getVendor()
+ {
+ String vendor = null;
+
+ try {
+ vendor = java.lang.System.getProperty("java.vendor");
+ }
+ catch ( SecurityException s)
+ {
+ vendor=(s.getMessage()==null)?s.toString():s.getMessage();
+ System.out.println(vendor);
+ }
+
+ return vendor;
+
+ }
+
+ public static String getOSName()
+ {
+ String osname = null;
+
+ try {
+ osname = java.lang.System.getProperty("os.name");
+ }
+ catch ( SecurityException s)
+ {
+ osname=(s.getMessage()==null)?s.toString():s.getMessage();
+ System.out.println(osname);
+ }
+
+ return osname;
+
+ }
+
+ public static boolean isNetscapesVM()
+ { String vendor=getVendor();
+ return vendor!=null && vendor.indexOf("Netscape")>=0; }
+
+ public static boolean isSunsVM()
+ { String vendor=getVendor();
+ return vendor!=null && vendor.indexOf("Sun")>=0; }
+
+ public static boolean isMicrosoftsVM()
+ { String vendor=getVendor();
+ return vendor!=null && vendor.indexOf("Microsoft")>=0; }
+
+/****************************************************************************/
+/****************************************************************************/
+/****************************************************************************/
+
+/**
+ * A few Component methods for easy awt-hierarchy querys
+ */
+
+ public static Point getAbsoluteCoord(Component co)
+ {
+ Object obj = co;
+ Point absCoord = co.getLocation();
+ Point p = null;
+
+ while (obj instanceof Component) {
+ Container cont = ((Component)obj).getParent();
+ if( cont != null ) {
+ p = cont.getLocation();
+ absCoord.x+=p.x;
+ absCoord.y+=p.y;
+ }
+ if( cont instanceof Window) {
+ obj=null;
+ } else obj=cont;
+ }
+ return absCoord;
+ }
+
+ public static Window getWindow(Component co)
+ {
+ Window f = null;
+ Object obj = co;
+
+ while (obj instanceof Component) {
+ Container cont = ((Component)obj).getParent();
+ if( cont instanceof Window) {
+ f=(Window)cont;
+ obj=cont; // continue seeking for frame or dialog
+ } else if( cont instanceof Frame) {
+ f=(Window)cont;
+ obj=null;
+ } else if( cont instanceof Dialog) {
+ f=(Window)cont;
+ obj=null;
+ } else obj=cont;
+ }
+ return f;
+ }
+
+/***************************************************************************/
+/***************************************************************************/
+/***************************************************************************/
+
+/**
+ * A few find methods to seek for Component(Shadow)s
+ */
+
+
+ public static boolean isInSameWindow(Component co1, Component co2)
+ {
+ if(co1==null || co2==null ) return false;
+
+ Window f1 = getWindow(co1);
+ Window f2 = getWindow(co2);
+
+ if(f1!=null && f2!=null && f1.equals(f2))
+ return true;
+
+ return false;
+ }
+
+}
+
+
+
diff --git a/gl4java/utils/glut/GLUTEnum.java b/gl4java/utils/glut/GLUTEnum.java
new file mode 100644
index 0000000..fb28a88
--- /dev/null
+++ b/gl4java/utils/glut/GLUTEnum.java
@@ -0,0 +1,40 @@
+
+package gl4java.utils.glut;
+
+public abstract interface GLUTEnum
+{
+
+ static final int GLUT_XLIB_IMPLEMENTATION = 15;
+
+ /* Color index component selection values. */
+ static final int GLUT_RED = 0;
+ static final int GLUT_GREEN = 1;
+ static final int GLUT_BLUE = 2;
+
+ /* Stroke font constants (use these in GLUT program). */
+ static final int GLUT_STROKE_ROMAN = 0;
+ static final int GLUT_STROKE_MONO_ROMAN = 1;
+
+ /* Bitmap font constants (use these in GLUT program). */
+ static final int GLUT_BITMAP_9_BY_15 = 2;
+ static final int GLUT_BITMAP_8_BY_13 = 3;
+ static final int GLUT_BITMAP_TIMES_ROMAN_10 = 4;
+ static final int GLUT_BITMAP_TIMES_ROMAN_24 = 5;
+ static final int GLUT_BITMAP_HELVETICA_10 = 6;
+ static final int GLUT_BITMAP_HELVETICA_12 = 7;
+ static final int GLUT_BITMAP_HELVETICA_18 = 8;
+
+ /* glutVideoResizeGet parameters. */
+ static final int GLUT_VIDEO_RESIZE_POSSIBLE = 900;
+ static final int GLUT_VIDEO_RESIZE_IN_USE = 901;
+ static final int GLUT_VIDEO_RESIZE_X_DELTA = 902;
+ static final int GLUT_VIDEO_RESIZE_Y_DELTA = 903;
+ static final int GLUT_VIDEO_RESIZE_WIDTH_DELTA = 904;
+ static final int GLUT_VIDEO_RESIZE_HEIGHT_DELTA = 905;
+ static final int GLUT_VIDEO_RESIZE_X = 906;
+ static final int GLUT_VIDEO_RESIZE_Y = 907;
+ static final int GLUT_VIDEO_RESIZE_WIDTH = 908;
+ static final int GLUT_VIDEO_RESIZE_HEIGHT = 909;
+}
+
+
diff --git a/gl4java/utils/glut/GLUTFunc.java b/gl4java/utils/glut/GLUTFunc.java
new file mode 100644
index 0000000..fc69d30
--- /dev/null
+++ b/gl4java/utils/glut/GLUTFunc.java
@@ -0,0 +1,54 @@
+
+package gl4java.utils.glut;
+
+import gl4java.GLFunc;
+import gl4java.GLUFunc;
+
+public interface GLUTFunc
+extends GLUTEnum
+{
+ public void init(GLFunc gl, GLUFunc glu);
+
+ public String glutGetFontDescription(int font);
+ public void glutBitmapString(int font, String s);
+ public int glutBitmapWidth(int font, int character);
+ public void glutStrokeString(int font, String s);
+ public int glutStrokeWidth(int font, int character);
+
+ public int glutBitmapLength(int font, String string);
+ public int glutStrokeLength(int font, String string);
+
+ public void glutWireSphere(double radius, int slices, int stacks);
+ public void glutSolidSphere(double radius, int slices, int stacks);
+ public void glutWireCone(double base, double height, int slices, int stacks);
+ public void glutSolidCone(double base, double height, int slices, int stacks);
+ public void glutWireCube(double size);
+ public void glutSolidCube(double size);
+ public void glutWireTorus(double innerRadius, double outerRadius, int sides, int rings);
+ public void glutSolidTorus(double innerRadius, double outerRadius, int sides, int rings);
+ public void glutWireDodecahedron();
+ public void glutSolidDodecahedron();
+ public void glutWireTeapot(double size);
+ public void glutSolidTeapot(double size);
+ public void glutWireOctahedron();
+ public void glutSolidOctahedron();
+ public void glutWireTetrahedron();
+ public void glutSolidTetrahedron();
+ public void glutWireIcosahedron();
+ public void glutSolidIcosahedron();
+
+
+
+ public int glutVideoResizeGet(int param);
+ public void glutSetupVideoResizing();
+ public void glutStopVideoResizing();
+ public void glutVideoResize(int x, int y, int width, int height);
+ public void glutVideoPan(int x, int y, int width, int height);
+
+
+ public void glutReportErrors();
+}
+
+
+
+
diff --git a/gl4java/utils/glut/GLUTFuncLightImpl.java b/gl4java/utils/glut/GLUTFuncLightImpl.java
new file mode 100644
index 0000000..0d75311
--- /dev/null
+++ b/gl4java/utils/glut/GLUTFuncLightImpl.java
@@ -0,0 +1,847 @@
+/* Copyright (c) Mark J. Kilgard, 1994. */
+
+/**
+(c) Copyright 1993, Silicon Graphics, Inc.
+
+ALL RIGHTS RESERVED
+
+Permission to use, copy, modify, and distribute this software
+for any purpose and without fee is hereby granted, provided
+that the above copyright notice appear in all copies and that
+both the copyright notice and this permission notice appear in
+supporting documentation, and that the name of Silicon
+Graphics, Inc. not be used in adverti(float)Math.sing or publicity
+pertaining to distribution of the software without specific,
+written prior permission.
+
+THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU
+"AS-IS" AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR
+OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
+MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO
+EVENT SHALL SILICON GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE
+ELSE FOR ANY DIRECT, SPECIAL, INCIDENTAL, INDIRECT OR
+CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER,
+INCLUDING WITHOUT LIMITATION, LOSS OF PROFIT, LOSS OF USE,
+SAVINGS OR REVENUE, OR THE CLAIMS OF THIRD PARTIES, WHETHER OR
+NOT SILICON GRAPHICS, INC. HAS BEEN ADVISED OF THE POSSIBILITY
+OF SUCH LOSS, HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ARISING OUT OF OR IN CONNECTION WITH THE POSSESSION, USE OR
+PERFORMANCE OF THIS SOFTWARE.
+
+US Government Users Restricted Rights
+
+Use, duplication, or disclosure by the Government is subject to
+restrictions set forth in FAR 52.227f.19(c)(2) or subparagraph
+(c)(1)(ii) of the Rights in Technical Data and Computer
+Software clause at DFARS 252.227f-7013 and/or in similar or
+successor clauses in the FAR or the DOD or NASA FAR
+Supplement. Unpublished-- rights reserved under the copyright
+laws of the United States. Contractor/manufacturer is Silicon
+Graphics, Inc., 2011 N. Shoreline Blvd., Mountain View, CA
+94039-7311.
+
+OpenGL(TM) is a trademark of Silicon Graphics, Inc.
+*/
+
+
+package gl4java.utils.glut;
+
+import gl4java.GLFunc;
+import gl4java.GLEnum;
+import gl4java.GLUFunc;
+import gl4java.GLUEnum;
+
+import java.lang.*;
+
+public class GLUTFuncLightImpl
+implements GLUTFunc, GLEnum, GLUEnum
+{
+ public GLUTFuncLightImpl(GLFunc gl, GLUFunc glu)
+ {
+ init(gl, glu);
+ }
+
+ public void init(GLFunc gl, GLUFunc glu)
+ {
+ this.gl = gl;
+ this.glu = glu;
+ initQuadObj();
+ dodec = new float[20][3];
+ initDodecahedron();
+ initTeapot();
+ }
+
+ public String glutGetFontDescription(int font)
+ {
+ return "GLUTFuncLightImpl: no font support avaiable !";
+ }
+
+ public void glutBitmapString(int font, String s)
+ {
+ System.out.println("GLUTFuncLightImpl: no font support avaiable !");
+ }
+
+ public int glutBitmapWidth(int font, int character)
+ {
+ System.out.println("GLUTFuncLightImpl: no font support avaiable !");
+ return 0;
+ }
+
+ public void glutStrokeString(int font, String s)
+ {
+ System.out.println("GLUTFuncLightImpl: no font support avaiable !");
+ }
+
+
+ public int glutStrokeWidth(int font, int character)
+
+ {
+ System.out.println("GLUTFuncLightImpl: no font support avaiable !");
+ return 0;
+ }
+
+ public int glutBitmapLength(int font, String string)
+ {
+ System.out.println("GLUTFuncLightImpl: no font support avaiable !");
+ return 0;
+ }
+
+ public int glutStrokeLength(int font, String string)
+ {
+ System.out.println("GLUTFuncLightImpl: no font support avaiable !");
+ return 0;
+ }
+
+ public final void glutWireSphere
+ (double radius, int slices, int stacks)
+ {
+ glu.gluQuadricDrawStyle(quadObj, GLU_LINE);
+ glu.gluQuadricNormals(quadObj, GLU_SMOOTH);
+ /* If we ever changed/used the texture or orientation state
+ of quadObj, we'd need to change it to the defaults here
+ with gluQuadricTexture and/or gluQuadricOrientation. */
+ glu.gluSphere(quadObj, radius, slices, stacks);
+ }
+
+ public final void glutSolidSphere
+ (double radius, int slices, int stacks)
+ {
+ glu.gluQuadricDrawStyle(quadObj, GLU_FILL);
+ glu.gluQuadricNormals(quadObj, GLU_SMOOTH);
+ /* If we ever changed/used the texture or orientation state
+ of quadObj, we'd need to change it to the defaults here
+ with gluQuadricTexture and/or gluQuadricOrientation. */
+ glu.gluSphere(quadObj, radius, slices, stacks);
+ }
+
+ public final void glutWireCone
+ (double base, double height, int slices, int stacks)
+ {
+ glu.gluQuadricDrawStyle(quadObj, GLU_LINE);
+ glu.gluQuadricNormals(quadObj, GLU_SMOOTH);
+ /* If we ever changed/used the texture or orientation state
+ of quadObj, we'd need to change it to the defaults here
+ with gluQuadricTexture and/or gluQuadricOrientation. */
+ glu.gluCylinder(quadObj, base, 0.0, height, slices, stacks);
+ }
+
+ public final void glutSolidCone
+ (double base, double height, int slices, int stacks)
+ {
+ glu.gluQuadricDrawStyle(quadObj, GLU_FILL);
+ glu.gluQuadricNormals(quadObj, GLU_SMOOTH);
+ /* If we ever changed/used the texture or orientation state
+ of quadObj, we'd need to change it to the defaults here
+ with gluQuadricTexture and/or gluQuadricOrientation. */
+ glu.gluCylinder(quadObj, base, 0.0, height, slices, stacks);
+ }
+
+ public final void glutWireCube(double size)
+ {
+ drawBox(size, GL_LINE_LOOP);
+ }
+
+ public final void glutSolidCube(double size)
+ {
+ drawBox(size, GL_QUADS);
+ }
+
+ public final void glutWireTorus
+ (double innerRadius, double outerRadius,
+ int sides, int rings)
+ {
+ gl.glPushAttrib(GL_POLYGON_BIT);
+ gl.glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
+ doughnut((float)innerRadius, (float)outerRadius, sides, rings);
+ gl.glPopAttrib();
+ }
+
+ public final void glutSolidTorus
+ (double innerRadius, double outerRadius,
+ int sides, int rings)
+ {
+ doughnut((float)innerRadius, (float)outerRadius, sides, rings);
+ }
+
+ public final void glutWireDodecahedron()
+ {
+ dodecahedron(GL_LINE_LOOP);
+ }
+
+ public final void glutSolidDodecahedron()
+ {
+ dodecahedron(GL_TRIANGLE_FAN);
+ }
+
+ public final void glutWireOctahedron()
+ {
+ octahedron(GL_LINE_LOOP);
+ }
+
+ public final void glutSolidOctahedron()
+ {
+ octahedron(GL_TRIANGLES);
+ }
+
+ public final void glutWireIcosahedron()
+ {
+ icosahedron(GL_LINE_LOOP);
+ }
+
+ public final void glutSolidIcosahedron()
+ {
+ icosahedron(GL_TRIANGLES);
+ }
+
+ public final void glutWireTetrahedron()
+ {
+ tetrahedron(GL_LINE_LOOP);
+ }
+
+ public final void glutSolidTetrahedron()
+ {
+ tetrahedron(GL_TRIANGLES);
+ }
+
+ public final void glutWireTeapot(double size)
+ {
+ teapot(10, size, GL_LINE);
+ }
+
+ public final void glutSolidTeapot(double size)
+ {
+ teapot(14, size, GL_FILL);
+ }
+
+ public final int glutVideoResizeGet(int param)
+ { System.out.println("Not implemented in GLUT light implementation !");
+ return 0;
+ }
+
+ public final void glutSetupVideoResizing()
+ { System.out.println("Not implemented in GLUT light implementation !");
+ }
+
+ public final void glutStopVideoResizing()
+ { System.out.println("Not implemented in GLUT light implementation !");
+ }
+
+ public final void glutVideoResize(int x, int y, int width, int height)
+ { System.out.println("Not implemented in GLUT light implementation !");
+ }
+
+ public final void glutVideoPan(int x, int y, int width, int height)
+ { System.out.println("Not implemented in GLUT light implementation !");
+ }
+
+ public final void glutReportErrors()
+ {
+ int error;
+
+ while ((error = gl.glGetError()) != GL_NO_ERROR)
+ __glutWarning("GL error: "+glu.gluErrorString(error));
+ }
+
+ /***************************************************************/
+
+ protected GLFunc gl = null;
+ protected GLUFunc glu = null;
+
+ protected int quadObj=0;
+
+ protected final void initQuadObj()
+ {
+ if(0==quadObj) quadObj = glu.gluNewQuadric();
+ if (0==quadObj)
+ __glutFatalError("out of memory.");
+ }
+
+ protected static final float n[/*6*/][/*3*/] =
+ {
+ {-1.0f, 0.0f, 0.0f},
+ {0.0f, 1.0f, 0.0f},
+ {1.0f, 0.0f, 0.0f},
+ {0.0f, -1.0f, 0.0f},
+ {0.0f, 0.0f, 1.0f},
+ {0.0f, 0.0f, -1.0f}
+ };
+ protected static final int faces[/*6*/][/*4*/] =
+ {
+ {0, 1, 2, 3},
+ {3, 2, 6, 7},
+ {7, 6, 5, 4},
+ {4, 5, 1, 0},
+ {5, 6, 2, 1},
+ {7, 4, 0, 3}
+ };
+
+ protected final void drawBox(double size, int type)
+ {
+ float v[][] = new float[8][3];
+ float sz = (float)size;
+ int i;
+
+ v[0][0] = v[1][0] = v[2][0] = v[3][0] = -sz / 2.0f;
+ v[4][0] = v[5][0] = v[6][0] = v[7][0] = sz / 2.0f;
+ v[0][1] = v[1][1] = v[4][1] = v[5][1] = -sz / 2.0f;
+ v[2][1] = v[3][1] = v[6][1] = v[7][1] = sz / 2.0f;
+ v[0][2] = v[3][2] = v[4][2] = v[7][2] = -sz / 2.0f;
+ v[1][2] = v[2][2] = v[5][2] = v[6][2] = sz / 2.0f;
+
+ for (i = 5; i >= 0; i--) {
+ gl.glBegin(type);
+ gl.glNormal3fv( n[i] );
+ gl.glVertex3fv( v[ faces[i][0] ] );
+ gl.glVertex3fv( v[ faces[i][1] ] );
+ gl.glVertex3fv( v[ faces[i][2] ] );
+ gl.glVertex3fv( v[ faces[i][3] ] );
+ gl.glEnd();
+ }
+ }
+
+ protected static final float M_PI = 3.14159265358979323846f ;
+
+ protected final void doughnut(float r, float R, int nsides, int rings)
+ {
+ int i, j;
+ float theta, phi, theta1;
+ float cosTheta, sinTheta;
+ float cosTheta1, sinTheta1;
+ float ringDelta, sideDelta;
+
+ ringDelta = 2.0f * M_PI / rings;
+ sideDelta = 2.0f * M_PI / nsides;
+
+ theta = 0.0f;
+ cosTheta = 1.0f;
+ sinTheta = 0.0f;
+ for (i = rings - 1; i >= 0; i--)
+ {
+ theta1 = theta + ringDelta;
+ cosTheta1 = (float)Math.cos(theta1);
+ sinTheta1 = (float)Math.sin(theta1);
+ gl.glBegin(GL_QUAD_STRIP);
+ phi = 0.0f;
+ for (j = nsides; j >= 0; j--) {
+ float cosPhi, sinPhi, dist;
+
+ phi += sideDelta;
+ cosPhi = (float)Math.cos(phi);
+ sinPhi = (float)Math.sin(phi);
+ dist = R + r * cosPhi;
+
+ gl.glNormal3f(cosTheta1 * cosPhi, -sinTheta1 * cosPhi, sinPhi);
+ gl.glVertex3f(cosTheta1 * dist, -sinTheta1 * dist, r * sinPhi);
+ gl.glNormal3f(cosTheta * cosPhi, -sinTheta * cosPhi, sinPhi);
+ gl.glVertex3f(cosTheta * dist, -sinTheta * dist, r * sinPhi);
+ }
+ gl.glEnd();
+ theta = theta1;
+ cosTheta = cosTheta1;
+ sinTheta = sinTheta1;
+ }
+ }
+
+ protected static float dodec[/*20*/][/*3*/] = null;
+
+ protected static int dodec_inited = 0;
+
+ protected static final void initDodecahedron()
+ {
+ if (dodec_inited != 0) {
+ return;
+ }
+
+ dodec_inited = 1;
+ dodec = new float [20][3];
+
+ float alpha, beta;
+
+ alpha = (float)Math.sqrt(2.0f / (3.0f + (float)Math.sqrt(5.0f)));
+ beta = 1.0f + (float)Math.sqrt(6.0f / (3.0f + (float)Math.sqrt(5.0f))
+ -
+ 2.0f + 2.0f * (float)Math.sqrt(2.0f / (3.0f + (float)Math.sqrt(5.0f))));
+ /* *INDENT-OFF* */
+ dodec[0][0] = -alpha; dodec[0][1] = 0; dodec[0][2] = beta;
+ dodec[1][0] = alpha; dodec[1][1] = 0; dodec[1][2] = beta;
+ dodec[2][0] = -1; dodec[2][1] = -1; dodec[2][2] = -1;
+ dodec[3][0] = -1; dodec[3][1] = -1; dodec[3][2] = 1;
+ dodec[4][0] = -1; dodec[4][1] = 1; dodec[4][2] = -1;
+ dodec[5][0] = -1; dodec[5][1] = 1; dodec[5][2] = 1;
+ dodec[6][0] = 1; dodec[6][1] = -1; dodec[6][2] = -1;
+ dodec[7][0] = 1; dodec[7][1] = -1; dodec[7][2] = 1;
+ dodec[8][0] = 1; dodec[8][1] = 1; dodec[8][2] = -1;
+ dodec[9][0] = 1; dodec[9][1] = 1; dodec[9][2] = 1;
+ dodec[10][0] = beta; dodec[10][1] = alpha; dodec[10][2] = 0;
+ dodec[11][0] = beta; dodec[11][1] = -alpha; dodec[11][2] = 0;
+ dodec[12][0] = -beta; dodec[12][1] = alpha; dodec[12][2] = 0;
+ dodec[13][0] = -beta; dodec[13][1] = -alpha; dodec[13][2] = 0;
+ dodec[14][0] = -alpha; dodec[14][1] = 0; dodec[14][2] = -beta;
+ dodec[15][0] = alpha; dodec[15][1] = 0; dodec[15][2] = -beta;
+ dodec[16][0] = 0; dodec[16][1] = beta; dodec[16][2] = alpha;
+ dodec[17][0] = 0; dodec[17][1] = beta; dodec[17][2] = -alpha;
+ dodec[18][0] = 0; dodec[18][1] = -beta; dodec[18][2] = alpha;
+ dodec[19][0] = 0; dodec[19][1] = -beta; dodec[19][2] = -alpha;
+ /* *INDENT-ON* */
+
+ }
+
+ protected static final void DIFF3f(float[] _a, float[] _b, float[] _c)
+ {
+ (_c)[0] = (_a)[0] - (_b)[0];
+ (_c)[1] = (_a)[1] - (_b)[1];
+ (_c)[2] = (_a)[2] - (_b)[2];
+ }
+
+ protected static final void crossprod
+ (float v1[/*3*/], float v2[/*3*/], float prod[/*3*/])
+ {
+ float p[] = new float[3]; /* in case prod == v1 or v2 */
+
+ p[0] = v1[1] * v2[2] - v2[1] * v1[2];
+ p[1] = v1[2] * v2[0] - v2[2] * v1[0];
+ p[2] = v1[0] * v2[1] - v2[0] * v1[1];
+ prod[0] = p[0];
+ prod[1] = p[1];
+ prod[2] = p[2];
+ }
+
+ protected static final void normalize(float v[/*3*/])
+ {
+ float d;
+
+ d = (float)Math.sqrt(v[0] * v[0] + v[1] * v[1] + v[2] * v[2]);
+ if (d == 0.0f) {
+ __glutWarning("normalize: zero length vector");
+ v[0] = d = 1.0f;
+ }
+ d = 1 / d;
+ v[0] *= d;
+ v[1] *= d;
+ v[2] *= d;
+ }
+
+ protected final void
+ pentagon(int a, int b, int c, int d, int e, int shadeType)
+ {
+ float n0[] = new float[3];
+ float d1[] = new float[3];
+ float d2[] = new float[3];
+
+ DIFF3f(dodec[a], dodec[b], d1);
+ DIFF3f(dodec[b], dodec[c], d2);
+ crossprod(d1, d2, n0);
+ normalize(n0);
+
+ gl.glBegin(shadeType);
+ gl.glNormal3fv(n0);
+ gl.glVertex3fv(dodec[a]);
+ gl.glVertex3fv(dodec[b]);
+ gl.glVertex3fv(dodec[c]);
+ gl.glVertex3fv(dodec[d]);
+ gl.glVertex3fv(dodec[e]);
+ gl.glEnd();
+ }
+
+ protected final void dodecahedron(int type)
+ {
+
+ pentagon(0, 1, 9, 16, 5, type);
+ pentagon(1, 0, 3, 18, 7, type);
+ pentagon(1, 7, 11, 10, 9, type);
+ pentagon(11, 7, 18, 19, 6, type);
+ pentagon(8, 17, 16, 9, 10, type);
+ pentagon(2, 14, 15, 6, 19, type);
+ pentagon(2, 13, 12, 4, 14, type);
+ pentagon(2, 19, 18, 3, 13, type);
+ pentagon(3, 0, 5, 12, 13, type);
+ pentagon(6, 15, 8, 10, 11, type);
+ pentagon(4, 17, 8, 15, 14, type);
+ pentagon(4, 12, 5, 16, 17, type);
+ }
+
+ protected final void
+ recorditem(float[] n1, float[] n2, float[] n3, int shadeType)
+ {
+ float q0[] = new float[3];
+ float q1[] = new float[3];
+
+ DIFF3f(n1, n2, q0);
+ DIFF3f(n2, n3, q1);
+ crossprod(q0, q1, q1);
+ normalize(q1);
+
+ gl.glBegin(shadeType);
+ gl.glNormal3fv(q1);
+ gl.glVertex3fv(n1);
+ gl.glVertex3fv(n2);
+ gl.glVertex3fv(n3);
+ gl.glEnd();
+ }
+
+ protected final void
+ subdivide(float[] v0, float[] v1, float[] v2, int shadeType)
+ {
+ int depth;
+ float w0[] = new float[3];
+ float w1[] = new float[3];
+ float w2[] = new float[3];
+ float l;
+ int i, j, k, n;
+
+ depth = 1;
+ for (i = 0; i < depth; i++) {
+ for (j = 0; i + j < depth; j++) {
+ k = depth - i - j;
+ for (n = 0; n < 3; n++) {
+ w0[n] = (i * v0[n] + j * v1[n] + k * v2[n]) / depth;
+ w1[n] = ((i + 1) * v0[n] + j * v1[n] + (k - 1) * v2[n])
+ / depth;
+ w2[n] = (i * v0[n] + (j + 1) * v1[n] + (k - 1) * v2[n])
+ / depth;
+ }
+ l = (float)Math.sqrt(w0[0] * w0[0] + w0[1] * w0[1] + w0[2] * w0[2]);
+ w0[0] /= l;
+ w0[1] /= l;
+ w0[2] /= l;
+ l = (float)Math.sqrt(w1[0] * w1[0] + w1[1] * w1[1] + w1[2] * w1[2]);
+ w1[0] /= l;
+ w1[1] /= l;
+ w1[2] /= l;
+ l = (float)Math.sqrt(w2[0] * w2[0] + w2[1] * w2[1] + w2[2] * w2[2]);
+ w2[0] /= l;
+ w2[1] /= l;
+ w2[2] /= l;
+ recorditem(w1, w0, w2, shadeType);
+ }
+ }
+ }
+
+ protected final void
+ drawtriangle(int i, float data[][/*3*/], int ndx[][/*3*/],
+ int shadeType)
+ {
+ float x0[], x1[], x2[];
+
+ x0 = data[ndx[i][0]];
+ x1 = data[ndx[i][1]];
+ x2 = data[ndx[i][2]];
+ subdivide(x0, x1, x2, shadeType);
+ }
+
+ /* octahedron data: The octahedron produced is centered at the
+ origin and has radius 1.0f */
+ protected static final float odata[/*6*/][/*3*/] =
+ {
+ {1.0f, 0.0f, 0.0f},
+ {-1.0f, 0.0f, 0.0f},
+ {0.0f, 1.0f, 0.0f},
+ {0.0f, -1.0f, 0.0f},
+ {0.0f, 0.0f, 1.0f},
+ {0.0f, 0.0f, -1.0f}
+ };
+
+ protected static final int ondex[/*8*/][/*3*/] =
+ {
+ {0, 4, 2},
+ {1, 2, 4},
+ {0, 3, 4},
+ {1, 4, 3},
+ {0, 2, 5},
+ {1, 5, 2},
+ {0, 5, 3},
+ {1, 3, 5}
+ };
+
+ protected final void
+ octahedron(int shadeType)
+ {
+ int i;
+
+ for (i = 7; i >= 0; i--) {
+ drawtriangle(i, odata, ondex, shadeType);
+ }
+ }
+
+ protected static final float X = .525731112119133606f;
+ protected static final float Z = .850650808352039932f;
+
+ protected static final float idata[/*12*/][/*3*/] =
+ {
+ {-X, 0, Z},
+ {X, 0, Z},
+ {-X, 0, -Z},
+ {X, 0, -Z},
+ {0, Z, X},
+ {0, Z, -X},
+ {0, -Z, X},
+ {0, -Z, -X},
+ {Z, X, 0},
+ {-Z, X, 0},
+ {Z, -X, 0},
+ {-Z, -X, 0}
+ };
+
+ protected static final int index[/*20*/][/*3*/] =
+ {
+ {0, 4, 1},
+ {0, 9, 4},
+ {9, 5, 4},
+ {4, 5, 8},
+ {4, 8, 1},
+ {8, 10, 1},
+ {8, 3, 10},
+ {5, 3, 8},
+ {5, 2, 3},
+ {2, 7, 3},
+ {7, 10, 3},
+ {7, 6, 10},
+ {7, 11, 6},
+ {11, 0, 6},
+ {0, 1, 6},
+ {6, 1, 10},
+ {9, 0, 11},
+ {9, 11, 2},
+ {9, 2, 5},
+ {7, 2, 11},
+ };
+
+ protected final void icosahedron(int shadeType)
+ {
+ int i;
+
+ for (i = 19; i >= 0; i--) {
+ drawtriangle(i, idata, index, shadeType);
+ }
+ }
+
+ protected static final float T = 1.73205080756887729f;
+
+ protected static final float tdata[/*4*/][/*3*/] =
+ {
+ {T, T, T},
+ {T, -T, -T},
+ {-T, T, -T},
+ {-T, -T, T}
+ };
+
+ protected static final int tndex[/*4*/][/*3*/] =
+ {
+ {0, 1, 3},
+ {2, 1, 0},
+ {3, 2, 0},
+ {1, 2, 3}
+ };
+
+ protected final void tetrahedron(int shadeType)
+ {
+ int i;
+
+ for (i = 3; i >= 0; i--)
+ drawtriangle(i, tdata, tndex, shadeType);
+ }
+
+ /**
+ * The Teapot
+ */
+
+ /* Rim, body, lid, and bottom data must be reflected in x and
+ y; handle and spout data across the y axis only. */
+ private static final int patchdata[][] =
+ {
+ /* rim */
+ {102, 103, 104, 105, 4, 5, 6, 7, 8, 9, 10, 11,
+ 12, 13, 14, 15},
+ /* body */
+ {12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27},
+ {24, 25, 26, 27, 29, 30, 31, 32, 33, 34, 35, 36,
+ 37, 38, 39, 40},
+ /* lid */
+ {96, 96, 96, 96, 97, 98, 99, 100, 101, 101, 101,
+ 101, 0, 1, 2, 3,},
+ {0, 1, 2, 3, 106, 107, 108, 109, 110, 111, 112,
+ 113, 114, 115, 116, 117},
+ /* bottom */
+ {118, 118, 118, 118, 124, 122, 119, 121, 123, 126,
+ 125, 120, 40, 39, 38, 37},
+ /* handle */
+ {41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
+ 53, 54, 55, 56},
+ {53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
+ 28, 65, 66, 67},
+ /* spout */
+ {68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
+ 80, 81, 82, 83},
+ {80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91,
+ 92, 93, 94, 95}
+ };
+ private static final float cpdata[][] =
+ {
+ {0.2f, 0.0f, 2.7f}, {0.2f, -0.112f, 2.7f}, {0.112f, -0.2f, 2.7f}, {0.0f,
+ -0.2f, 2.7f}, {1.3375f, 0.0f, 2.53125f}, {1.3375f, -0.749f, 2.53125f},
+ {0.749f, -1.3375f, 2.53125f}, {0.0f, -1.3375f, 2.53125f}, {1.4375f,
+ 0.0f, 2.53125f}, {1.4375f, -0.805f, 2.53125f}, {0.805f, -1.4375f,
+ 2.53125f}, {0.0f, -1.4375f, 2.53125f}, {1.5f, 0.0f, 2.4f}, {1.5f, -0.84f,
+ 2.4f}, {0.84f, -1.5f, 2.4f}, {0.0f, -1.5f, 2.4f}, {1.75f, 0.0f, 1.875f},
+ {1.75f, -0.98f, 1.875f}, {0.98f, -1.75f, 1.875f}, {0.0f, -1.75f,
+ 1.875f}, {2f, 0.0f, 1.35f}, {2f, -1.12f, 1.35f}, {1.12f, -2f, 1.35f},
+ {0.0f, -2f, 1.35f}, {2f, 0.0f, 0.9f}, {2f, -1.12f, 0.9f}, {1.12f, -2f,
+ 0.9f}, {0.0f, -2f, 0.9f}, {-2f, 0.0f, 0.9f}, {2f, 0.0f, 0.45f}, {2f, -1.12f,
+ 0.45f}, {1.12f, -2f, 0.45f}, {0.0f, -2f, 0.45f}, {1.5f, 0.0f, 0.225f},
+ {1.5f, -0.84f, 0.225f}, {0.84f, -1.5f, 0.225f}, {0.0f, -1.5f, 0.225f},
+ {1.5f, 0.0f, 0.15f}, {1.5f, -0.84f, 0.15f}, {0.84f, -1.5f, 0.15f}, {0.0f,
+ -1.5f, 0.15f}, {-1.6f, 0.0f, 2.025f}, {-1.6f, -0.3f, 2.025f}, {-1.5f,
+ -0.3f, 2.25f}, {-1.5f, 0.0f, 2.25f}, {-2.3f, 0.0f, 2.025f}, {-2.3f, -0.3f,
+ 2.025f}, {-2.5f, -0.3f, 2.25f}, {-2.5f, 0.0f, 2.25f}, {-2.7f, 0.0f,
+ 2.025f}, {-2.7f, -0.3f, 2.025f}, {-3f, -0.3f, 2.25f}, {-3f, 0.0f,
+ 2.25f}, {-2.7f, 0.0f, 1.8f}, {-2.7f, -0.3f, 1.8f}, {-3f, -0.3f, 1.8f},
+ {-3f, 0.0f, 1.8f}, {-2.7f, 0.0f, 1.575f}, {-2.7f, -0.3f, 1.575f}, {-3f,
+ -0.3f, 1.35f}, {-3f, 0.0f, 1.35f}, {-2.5f, 0.0f, 1.125f}, {-2.5f, -0.3f,
+ 1.125f}, {-2.65f, -0.3f, 0.9375f}, {-2.65f, 0.0f, 0.9375f}, {-2f,
+ -0.3f, 0.9f}, {-1.9f, -0.3f, 0.6f}, {-1.9f, 0.0f, 0.6f}, {1.7f, 0.0f,
+ 1.425f}, {1.7f, -0.66f, 1.425f}, {1.7f, -0.66f, 0.6f}, {1.7f, 0.0f,
+ 0.6f}, {2.6f, 0.0f, 1.425f}, {2.6f, -0.66f, 1.425f}, {3.1f, -0.66f,
+ 0.825f}, {3.1f, 0.0f, 0.825f}, {2.3f, 0.0f, 2.1f}, {2.3f, -0.25f, 2.1f},
+ {2.4f, -0.25f, 2.025f}, {2.4f, 0.0f, 2.025f}, {2.7f, 0.0f, 2.4f}, {2.7f,
+ -0.25f, 2.4f}, {3.3f, -0.25f, 2.4f}, {3.3f, 0.0f, 2.4f}, {2.8f, 0.0f,
+ 2.475f}, {2.8f, -0.25f, 2.475f}, {3.525f, -0.25f, 2.49375f},
+ {3.525f, 0.0f, 2.49375f}, {2.9f, 0.0f, 2.475f}, {2.9f, -0.15f, 2.475f},
+ {3.45f, -0.15f, 2.5125f}, {3.45f, 0.0f, 2.5125f}, {2.8f, 0.0f, 2.4f},
+ {2.8f, -0.15f, 2.4f}, {3.2f, -0.15f, 2.4f}, {3.2f, 0.0f, 2.4f}, {0.0f, 0.0f,
+ 3.15f}, {0.8f, 0.0f, 3.15f}, {0.8f, -0.45f, 3.15f}, {0.45f, -0.8f,
+ 3.15f}, {0.0f, -0.8f, 3.15f}, {0.0f, 0.0f, 2.85f}, {1.4f, 0.0f, 2.4f}, {1.4f,
+ -0.784f, 2.4f}, {0.784f, -1.4f, 2.4f}, {0.0f, -1.4f, 2.4f}, {0.4f, 0.0f,
+ 2.55f}, {0.4f, -0.224f, 2.55f}, {0.224f, -0.4f, 2.55f}, {0.0f, -0.4f,
+ 2.55f}, {1.3f, 0.0f, 2.55f}, {1.3f, -0.728f, 2.55f}, {0.728f, -1.3f,
+ 2.55f}, {0.0f, -1.3f, 2.55f}, {1.3f, 0.0f, 2.4f}, {1.3f, -0.728f, 2.4f},
+ {0.728f, -1.3f, 2.4f}, {0.0f, -1.3f, 2.4f}, {0.0f, 0.0f, 0.0f}, {1.425f,
+ -0.798f, 0.0f}, {1.5f, 0.0f, 0.075f}, {1.425f, 0.0f, 0.0f}, {0.798f, -1.425f,
+ 0.0f}, {0.0f, -1.5f, 0.075f}, {0.0f, -1.425f, 0.0f}, {1.5f, -0.84f, 0.075f},
+ {0.84f, -1.5f, 0.075f}
+ };
+ private static final float tex[] =
+ {
+ 0.0f, 0.0f,
+ 1.0f, 0.0f,
+ 0.0f, 1.0f,
+ 1.0f, 1.0f
+ };
+
+ boolean _tp_init = false;
+ float _tp_p[] = null;
+ float _tp_q[] = null;
+ float _tp_r[] = null;
+ float _tp_s[] = null;
+
+ private final void initTeapot()
+ {
+ if(_tp_init==true)
+ return;
+
+ _tp_p = new float[4*4*3];
+ _tp_q = new float[4*4*3];
+ _tp_r = new float[4*4*3];
+ _tp_s = new float[4*4*3];
+ }
+
+ // Imported from glut.
+ private final void teapot(int grid, double scale, int type)
+ {
+ float sc = (float)(0.5*scale);
+
+ gl.glPushAttrib(GL_ENABLE_BIT | GL_EVAL_BIT);
+ gl.glEnable(GL_AUTO_NORMAL);
+ gl.glEnable(GL_NORMALIZE);
+ gl.glEnable(GL_MAP2_VERTEX_3);
+ gl.glEnable(GL_MAP2_TEXTURE_COORD_2);
+ gl.glPushMatrix();
+ gl.glRotatef(270.0f, 1.0f, 0.0f, 0.0f);
+ gl.glScalef(sc, sc, sc);
+ gl.glTranslatef(0.0f, 0.0f, -1.5f);
+ for (int i = 0; i < 10; i++)
+ {
+ for (int j = 0; j < 4; j++)
+ {
+ for (int k = 0; k < 4; k++)
+ {
+ for (int l = 0; l < 3; l++)
+ {
+ _tp_p[(j*12)+(k*3)+l] = cpdata[patchdata[i][j * 4 + k]][l];
+ _tp_q[(j*12)+(k*3)+l] = cpdata[patchdata[i][j * 4 + (3 - k)]][l];
+ if (l == 1)
+ _tp_q[(j*12)+(k*3)+l] *= -1.0f;
+ if (i < 6)
+ {
+ _tp_r[(j*12)+(k*3)+l] =
+ cpdata[patchdata[i][j * 4 + (3 - k)]][l];
+ if (l == 0)
+ _tp_r[(j*12)+(k*3)+l] *= -1.0f;
+ _tp_s[(j*12)+(k*3)+l] =
+ cpdata[patchdata[i][j * 4 + k]][l];
+ if (l == 0)
+ _tp_s[(j*12)+(k*3)+l] *= -1.0f;
+ if (l == 1)
+ _tp_s[(j*12)+(k*3)+l] *= -1.0f;
+ }
+ }
+ }
+ }
+ gl.glMap2f
+ (GL_MAP2_TEXTURE_COORD_2, 0, 1, 2, 2, 0, 1, 4, 2, tex);
+ gl.glMap2f
+ (GL_MAP2_VERTEX_3, 0, 1, 3, 4, 0, 1, 12, 4, _tp_p);
+ gl.glMapGrid2f(grid, 0.0f, 1.0f, grid, 0.0f, 1.0f);
+ gl.glEvalMesh2(type, 0, grid, 0, grid);
+ gl.glMap2f(GL_MAP2_VERTEX_3, 0, 1, 3, 4, 0, 1, 12, 4, _tp_q);
+ gl.glEvalMesh2(type, 0, grid, 0, grid);
+ if (i < 6)
+ {
+ gl.glMap2f(GL_MAP2_VERTEX_3, 0, 1, 3, 4, 0, 1, 12, 4, _tp_r);
+ gl.glEvalMesh2(type, 0, grid, 0, grid);
+ gl.glMap2f(GL_MAP2_VERTEX_3, 0, 1, 3, 4, 0, 1, 12, 4, _tp_s);
+ gl.glEvalMesh2(type, 0, grid, 0, grid);
+ }
+ }
+ gl.glPopMatrix();
+ gl.glPopAttrib();
+ }
+
+ protected static final void __glutWarning(String str)
+ {
+ System.out.println("GLUT: Warning in (unamed): "+str+"\n");
+ }
+
+ protected static final void __glutFatalError(String str)
+ {
+ System.out.println("GLUT: Fatal Error in (unamed): "+str+"\n");
+ Exception ex = new Exception();
+ ex.printStackTrace();
+ System.exit(1);
+ }
+
+}
+
+
+
+
diff --git a/gl4java/utils/glut/fonts/BitmapCharRec.java b/gl4java/utils/glut/fonts/BitmapCharRec.java
new file mode 100644
index 0000000..b23cd23
--- /dev/null
+++ b/gl4java/utils/glut/fonts/BitmapCharRec.java
@@ -0,0 +1,28 @@
+// Bitmap Character Record
+// by Pontus Lidman
+// based on GLUT 3.7 glutbitmap.h
+// this file Copyright 2000 MathCore AB
+//
+// This file/package is licensed under the terms of the LPGL
+// with the permission of Pontus Lidman / Mathcore !
+//
+
+package gl4java.utils.glut.fonts;
+
+public class BitmapCharRec {
+ public int width=0;
+ public int height=0;
+ public float xorig=0;
+ public float yorig=0;
+ public float advance=0;
+ public byte[] bitmap=null;
+
+ public BitmapCharRec(int w,int h, float xo, float yo, float adv, byte[] bm) {
+ width=w;
+ height=h;
+ xorig=xo;
+ yorig=yo;
+ advance=adv;
+ bitmap=bm;
+ }
+}
diff --git a/gl4java/utils/glut/fonts/BitmapFontRec.java b/gl4java/utils/glut/fonts/BitmapFontRec.java
new file mode 100644
index 0000000..f4db5d1
--- /dev/null
+++ b/gl4java/utils/glut/fonts/BitmapFontRec.java
@@ -0,0 +1,24 @@
+// Bitmap Font Record
+// by Pontus Lidman
+// based on GLUT 3.7 glutbitmap.h
+// this file Copyright 2000 MathCore AB
+//
+// This file/package is licensed under the terms of the LPGL
+// with the permission of Pontus Lidman / Mathcore !
+//
+
+package gl4java.utils.glut.fonts;
+
+public class BitmapFontRec {
+ public String name=null;
+ public int num_chars=0;
+ public int first=0;
+ public BitmapCharRec[] ch=null;
+
+ public BitmapFontRec(String n,int num,int f,BitmapCharRec[] recs) {
+ name=n;
+ num_chars=num;
+ first=f;
+ ch=recs;
+ }
+}
diff --git a/gl4java/utils/glut/fonts/CoordRec.java b/gl4java/utils/glut/fonts/CoordRec.java
new file mode 100644
index 0000000..cadd5c0
--- /dev/null
+++ b/gl4java/utils/glut/fonts/CoordRec.java
@@ -0,0 +1,19 @@
+// Coordinate Record
+// by Pontus Lidman
+// based on GLUT 3.7 glutstroke.h
+// this file Copyright 2000 MathCore AB
+//
+// This file/package is licensed under the terms of the LPGL
+// with the permission of Pontus Lidman / Mathcore !
+//
+
+package gl4java.utils.glut.fonts;
+
+public class CoordRec {
+ public float x;
+ public float y;
+ public CoordRec(float x, float y) {
+ this.x=x;
+ this.y=y;
+ }
+}
diff --git a/gl4java/utils/glut/fonts/GLUTBitmapFont.java b/gl4java/utils/glut/fonts/GLUTBitmapFont.java
new file mode 100644
index 0000000..37922be
--- /dev/null
+++ b/gl4java/utils/glut/fonts/GLUTBitmapFont.java
@@ -0,0 +1,12 @@
+// Intended to be an interface for GLUT font structures
+// by Pontus Lidman
+// Copyright 2000 MathCore AB
+//
+// This file/package is licensed under the terms of the LPGL
+// with the permission of Pontus Lidman / Mathcore !
+//
+
+package gl4java.utils.glut.fonts;
+
+public interface GLUTBitmapFont {
+}
diff --git a/gl4java/utils/glut/fonts/GLUTFuncLightImplWithFonts.java b/gl4java/utils/glut/fonts/GLUTFuncLightImplWithFonts.java
new file mode 100644
index 0000000..ce9ca5e
--- /dev/null
+++ b/gl4java/utils/glut/fonts/GLUTFuncLightImplWithFonts.java
@@ -0,0 +1,300 @@
+/* Copyright (c) Mark J. Kilgard, 1994. */
+
+/**
+(c) Copyright 1993, Silicon Graphics, Inc.
+
+ALL RIGHTS RESERVED
+
+Permission to use, copy, modify, and distribute this software
+for any purpose and without fee is hereby granted, provided
+that the above copyright notice appear in all copies and that
+both the copyright notice and this permission notice appear in
+supporting documentation, and that the name of Silicon
+Graphics, Inc. not be used in adverti(float)Math.sing or publicity
+pertaining to distribution of the software without specific,
+written prior permission.
+
+THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU
+"AS-IS" AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR
+OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
+MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO
+EVENT SHALL SILICON GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE
+ELSE FOR ANY DIRECT, SPECIAL, INCIDENTAL, INDIRECT OR
+CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER,
+INCLUDING WITHOUT LIMITATION, LOSS OF PROFIT, LOSS OF USE,
+SAVINGS OR REVENUE, OR THE CLAIMS OF THIRD PARTIES, WHETHER OR
+NOT SILICON GRAPHICS, INC. HAS BEEN ADVISED OF THE POSSIBILITY
+OF SUCH LOSS, HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ARISING OUT OF OR IN CONNECTION WITH THE POSSESSION, USE OR
+PERFORMANCE OF THIS SOFTWARE.
+
+US Government Users Restricted Rights
+
+Use, duplication, or disclosure by the Government is subject to
+restrictions set forth in FAR 52.227f.19(c)(2) or subparagraph
+(c)(1)(ii) of the Rights in Technical Data and Computer
+Software clause at DFARS 252.227f-7013 and/or in similar or
+successor clauses in the FAR or the DOD or NASA FAR
+Supplement. Unpublished-- rights reserved under the copyright
+laws of the United States. Contractor/manufacturer is Silicon
+Graphics, Inc., 2011 N. Shoreline Blvd., Mountain View, CA
+94039-7311.
+
+OpenGL(TM) is a trademark of Silicon Graphics, Inc.
+*/
+
+
+package gl4java.utils.glut.fonts;
+
+import gl4java.utils.glut.*;
+import gl4java.utils.glut.fonts.data.*;
+
+import gl4java.GLFunc;
+import gl4java.GLEnum;
+import gl4java.GLUFunc;
+import gl4java.GLUEnum;
+
+import java.lang.*;
+
+public class GLUTFuncLightImplWithFonts extends GLUTFuncLightImpl
+implements GLEnum, GLUEnum
+{
+ public GLUTFuncLightImplWithFonts(GLFunc gl, GLUFunc glu)
+ {
+ super(gl, glu);
+ }
+
+ public final String glutGetFontDescription(int font)
+ {
+ switch(font) {
+ case GLUT_STROKE_ROMAN:
+ return "stroke roman";
+ case GLUT_STROKE_MONO_ROMAN:
+ return "stroke roman mono";
+ case GLUT_BITMAP_9_BY_15:
+ return "bitmap 9x15";
+ case GLUT_BITMAP_8_BY_13:
+ return "bitmap 8x13";
+ case GLUT_BITMAP_TIMES_ROMAN_10:
+ return "bitmap roman 10";
+ case GLUT_BITMAP_TIMES_ROMAN_24:
+ return "bitmap roman 24";
+ case GLUT_BITMAP_HELVETICA_10:
+ return "bitmap helvetica 10";
+ case GLUT_BITMAP_HELVETICA_12:
+ return "bitmap helvetica 12";
+ case GLUT_BITMAP_HELVETICA_18:
+ return "bitmap helvetica 18";
+ }
+ return "unknown font enumeration: "+font;
+ }
+
+ private final BitmapFontRec getFontInfo(int font) {
+ try {
+ switch(font) {
+ case GLUT_BITMAP_HELVETICA_10:
+ return glutBitmapHelvetica10.getBitmapFontRec();
+ case GLUT_BITMAP_HELVETICA_12:
+ return glutBitmapHelvetica12.getBitmapFontRec();
+ case GLUT_BITMAP_HELVETICA_18:
+ return glutBitmapHelvetica12.getBitmapFontRec();
+ case GLUT_BITMAP_8_BY_13:
+ return glutBitmap8By13.getBitmapFontRec();
+ case GLUT_BITMAP_9_BY_15:
+ return glutBitmap9By15.getBitmapFontRec();
+ case GLUT_BITMAP_TIMES_ROMAN_10:
+ return glutBitmapTimesRoman10.getBitmapFontRec();
+ case GLUT_BITMAP_TIMES_ROMAN_24:
+ return glutBitmapTimesRoman24.getBitmapFontRec();
+ }
+ } catch (Exception ex) {
+ System.out.println("Font not supported: "+ glutGetFontDescription(font));
+ }
+ return null;
+ }
+
+ private final StrokeFontRec getStrokeFontInfo(int font) {
+ try {
+ switch(font) {
+ case GLUT_STROKE_MONO_ROMAN:
+ return glutStrokeMonoRoman.getStrokeFontRec();
+ case GLUT_STROKE_ROMAN:
+ return glutStrokeRoman.getStrokeFontRec();
+ }
+ } catch (Exception ex) {
+ System.out.println("Font not supported: "+ glutGetFontDescription(font));
+ }
+ return null;
+ }
+
+ public final void glutBitmapString(int font, String s)
+ {
+ BitmapCharRec ch;
+ BitmapFontRec fontinfo;
+
+ int[] swapbytes=new int[1];
+ int[] lsbfirst=new int[1];
+ int[] rowlength=new int[1];
+ int[] skiprows=new int[1];
+ int[] skippixels=new int[1];
+ int[] alignment=new int[1];
+
+ fontinfo=getFontInfo(font);
+
+ byte[] bytes=s.getBytes();
+ int character;
+
+ /* Save current modes. */
+ gl.glGetIntegerv(GL_UNPACK_SWAP_BYTES, swapbytes);
+ gl.glGetIntegerv(GL_UNPACK_LSB_FIRST, lsbfirst);
+ gl.glGetIntegerv(GL_UNPACK_ROW_LENGTH, rowlength);
+ gl.glGetIntegerv(GL_UNPACK_SKIP_ROWS, skiprows);
+ gl.glGetIntegerv(GL_UNPACK_SKIP_PIXELS, skippixels);
+ gl.glGetIntegerv(GL_UNPACK_ALIGNMENT, alignment);
+ /* Little endian machines (DEC Alpha for example) could
+ benefit from setting GL_UNPACK_LSB_FIRST to GL_TRUE
+ instead of GL_FALSE, but this would require changing the
+ generated bitmaps too. */
+ gl.glPixelStorei(GL_UNPACK_SWAP_BYTES, 0); // GL_FALSE
+ gl.glPixelStorei(GL_UNPACK_LSB_FIRST, 0); // GL_FALSE
+ gl.glPixelStorei(GL_UNPACK_ROW_LENGTH, 0);
+ gl.glPixelStorei(GL_UNPACK_SKIP_ROWS, 0);
+ gl.glPixelStorei(GL_UNPACK_SKIP_PIXELS, 0);
+ gl.glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
+
+ for (int i=0; i<s.length(); i++)
+ {
+ character = bytes[i];
+ if (character < fontinfo.first ||
+ character >= fontinfo.first + fontinfo.num_chars)
+ continue;
+ ch = fontinfo.ch[character - fontinfo.first];
+ if (ch == null) continue;
+
+ gl.glBitmap(ch.width, ch.height, ch.xorig, ch.yorig,
+ ch.advance, 0, ch.bitmap);
+ }
+ /* Restore saved modes. */
+ gl.glPixelStorei(GL_UNPACK_SWAP_BYTES, swapbytes[0]);
+ gl.glPixelStorei(GL_UNPACK_LSB_FIRST, lsbfirst[0]);
+ gl.glPixelStorei(GL_UNPACK_ROW_LENGTH, rowlength[0]);
+ gl.glPixelStorei(GL_UNPACK_SKIP_ROWS, skiprows[0]);
+ gl.glPixelStorei(GL_UNPACK_SKIP_PIXELS, skippixels[0]);
+ gl.glPixelStorei(GL_UNPACK_ALIGNMENT, alignment[0]);
+ }
+
+ public final int glutBitmapWidth(int font, int character)
+ {
+
+ BitmapFontRec fontinfo;
+ BitmapCharRec ch;
+
+ fontinfo = getFontInfo(font);
+
+ if ((character < fontinfo.first) || (character >= fontinfo.first + fontinfo.num_chars))
+ return 0;
+ ch = fontinfo.ch[character - fontinfo.first];
+ if (ch != null)
+ return (int) ch.advance;
+ else
+ return 0;
+ }
+
+ public final void glutStrokeString(int font, String s)
+ {
+ StrokeCharRec ch;
+ StrokeRec stroke;
+ CoordRec coord;
+ StrokeFontRec fontinfo;
+ int i, j, k, c;
+ byte[] bytes=s.getBytes();
+
+ fontinfo = getStrokeFontInfo(font);
+
+ for (i=0; i<s.length(); i++)
+ {
+ c = bytes[i];
+ if (c < 0 || c >= fontinfo.num_chars)
+ continue;
+ ch = fontinfo.ch[c];
+ if (ch == null) continue;
+ for (j=0; j< ch.num_strokes; j++) {
+ stroke=ch.stroke[j];
+ gl.glBegin(GL_LINE_STRIP);
+ for (k = 0; k< stroke.num_coords; k++) {
+ coord = stroke.coord[k];
+ gl.glVertex2f(coord.x, coord.y);
+ }
+ gl.glEnd();
+ }
+ gl.glTranslatef(ch.right, (float) 0.0, (float) 0.0);
+ }
+ }
+
+
+ public final int glutStrokeWidth(int font, int character)
+
+ {
+
+ StrokeFontRec fontinfo;
+ StrokeCharRec ch;
+
+ fontinfo = getStrokeFontInfo(font);
+
+ if (character < 0 || character >= fontinfo.num_chars)
+ return 0;
+ ch = fontinfo.ch[character];
+ if (ch != null)
+ return (int) ch.right;
+ else
+ return 0;
+ }
+
+ public final int glutBitmapLength(int font, String string)
+ {
+ int c;
+ int length;
+ int i;
+ BitmapFontRec fontinfo;
+ BitmapCharRec ch;
+ byte[] bytestring=string.getBytes();
+
+ fontinfo = getFontInfo(font);
+
+ length = 0;
+ for (i=0; i<string.length(); i++) {
+ c = bytestring[i];
+ if ((c >= fontinfo.first) && (c < fontinfo.first + fontinfo.num_chars)) {
+ ch = fontinfo.ch[c - fontinfo.first];
+ if (ch != null)
+ length += ch.advance;
+ }
+ }
+ return length;
+ }
+
+ public final int glutStrokeLength(int font, String string)
+ {
+ int c, length;
+ StrokeFontRec fontinfo;
+ StrokeCharRec ch;
+ byte[] bytestring=string.getBytes();
+
+ fontinfo=getStrokeFontInfo(font);
+
+ length = 0;
+ for (int i=0; i<string.length(); i++) {
+ c = bytestring[i];
+ if (c >= 0 && c < fontinfo.num_chars) {
+ ch = fontinfo.ch[c];
+ if (ch != null)
+ length += ch.right;
+ }
+ }
+ return length;
+ }
+}
+
+
+
+
diff --git a/gl4java/utils/glut/fonts/GLUTStrokeFont.java b/gl4java/utils/glut/fonts/GLUTStrokeFont.java
new file mode 100644
index 0000000..a9c9691
--- /dev/null
+++ b/gl4java/utils/glut/fonts/GLUTStrokeFont.java
@@ -0,0 +1,5 @@
+package gl4java.utils.glut.fonts;
+
+public interface GLUTStrokeFont {
+}
+
diff --git a/gl4java/utils/glut/fonts/LICENSE.txt b/gl4java/utils/glut/fonts/LICENSE.txt
new file mode 100644
index 0000000..6287344
--- /dev/null
+++ b/gl4java/utils/glut/fonts/LICENSE.txt
@@ -0,0 +1,28 @@
+GLUT Font Support for GL4Java !
+
+Author: Pontus Lidman / MathCore (creator and original author)
+ and
+ Sven Goethel / Jausoft (changes for GL4Java packaging and little changes)
+Copyright 2000: MathCore AB & LGPL (see below)
+
+This file/package is licensed under the terms of the LPGL (see below)
+with the permission of Pontus Lidman / Mathcore - THANXS !
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Library General Public
+License as published by the Free Software Foundation; either
+version 2 of the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Library General Public License for more details.
+
+You should have received a copy of the GNU Library General Public
+License along with this library; if not, write to the
+Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA.
+
+You can also check the GNU Library General Public License
+in the internet at http://www.gnu.org/copyleft/lgpl.html !
+
diff --git a/gl4java/utils/glut/fonts/Makefile b/gl4java/utils/glut/fonts/Makefile
new file mode 100644
index 0000000..07fe919
--- /dev/null
+++ b/gl4java/utils/glut/fonts/Makefile
@@ -0,0 +1,110 @@
+# Makefile to generate java classes from X fonts
+# (including compilation of capturexfont.c)
+# by Pontus Lidman
+# Copyright 2000 MathCore AB
+#
+# This file/package is licensed under the terms of the LPGL
+# with the permission of Pontus Lidman / Mathcore !
+#
+
+all: cxf strokegen fonts
+
+cxf: capturexfont.c
+ gcc -g -Wall capturexfont.c -o cxf -L/usr/X11/lib -lX11
+
+strokegen : strokegen.o strokelex.o
+ $(CC) -o $@ $(CFLAGS) strokegen.o strokelex.o
+
+glut_roman.c : Roman.stroke strokegen
+ ./strokegen -s glutStrokeRoman < Roman.stroke > $@
+
+glut_mroman.c : MonoRoman.stroke strokegen
+ ./strokegen -s glutStrokeMonoRoman < MonoRoman.stroke > $@
+
+strokegen.h strokegen.c : strokegen.y
+ $(YACC) -d strokegen.y
+ mv y.tab.c strokegen.c
+ mv y.tab.h strokegen.h
+
+strokelex.c : strokelex.l
+ $(LEX) strokelex.l
+ mv lex.yy.c strokelex.c
+
+fonts: data/glutBitmapHelvetica10.java \
+ data/glutBitmapHelvetica12.java \
+ data/glutBitmapHelvetica18.java \
+ data/glutBitmapTimesRoman10.java \
+ data/glutBitmapTimesRoman24.java \
+ data/glutBitmap8By13.java \
+ data/glutBitmap9By15.java \
+ data/glutStrokeRoman.java \
+ data/glutStrokeMonoRoman.java
+
+data/glutBitmapHelvetica12.java: cxf
+ ./cxf \
+ '-adobe-helvetica-medium-r-*--12-*-*-*-p-*-iso8859-1' \
+ glutBitmapHelvetica12 \
+ >data/glutBitmapHelvetica12.java
+
+data/glutBitmapHelvetica10.java: cxf
+ ./cxf \
+ '-adobe-helvetica-medium-r-*--10-*-*-*-p-*-iso8859-1' \
+ glutBitmapHelvetica10 \
+ >data/glutBitmapHelvetica10.java
+
+data/glutBitmapHelvetica18.java: cxf
+ ./cxf \
+ '-adobe-helvetica-medium-r-*--18-*-*-*-p-*-iso8859-1' \
+ glutBitmapHelvetica18 \
+ >data/glutBitmapHelvetica18.java
+
+data/glutBitmapTimesRoman10.java: cxf
+ ./cxf \
+ '-adobe-times-medium-r-*--10-*-*-*-p-*-iso8859-1' \
+ glutBitmapTimesRoman10 \
+ >data/glutBitmapTimesRoman10.java
+
+data/glutBitmapTimesRoman24.java: cxf
+ ./cxf \
+ '-adobe-times-medium-r-*--24-*-*-*-p-*-iso8859-1' \
+ glutBitmapTimesRoman24 \
+ >data/glutBitmapTimesRoman24.java
+
+data/glutBitmap8By13.java: cxf
+ ./cxf \
+ 8x13 \
+ glutBitmap8By13 \
+ >data/glutBitmap8By13.java
+
+data/glutBitmap9By15.java: cxf
+ ./cxf \
+ 9x15 \
+ glutBitmap9By15 \
+ >data/glutBitmap9By15.java
+
+data/glutStrokeMonoRoman.java: strokegen
+ ./strokegen -s glutStrokeMonoRoman <MonoRoman.stroke >data/glutStrokeMonoRoman.java
+
+data/glutStrokeRoman.java: strokegen
+ ./strokegen -s glutStrokeRoman <Roman.stroke >data/glutStrokeRoman.java
+
+clean:
+ rm -f *.o cxf strokegen \
+ glut_roman.c \
+ glut_mroman.c \
+ strokegen.h \
+ strokegen.c \
+ strokelex.c
+
+cleanall: clean
+ rm -f *.class \
+ data/glutBitmapHelvetica10.java \
+ data/glutBitmapHelvetica12.java \
+ data/glutBitmapHelvetica18.java \
+ data/glutBitmapTimesRoman10.java \
+ data/glutBitmapTimesRoman24.java \
+ data/glutBitmap8By13.java \
+ data/glutBitmap9By15.java \
+ data/glutStrokeRoman.java \
+ data/glutStrokeMonoRoman.java
+
diff --git a/gl4java/utils/glut/fonts/MonoRoman.stroke b/gl4java/utils/glut/fonts/MonoRoman.stroke
new file mode 100644
index 0000000..5bd84f7
--- /dev/null
+++ b/gl4java/utils/glut/fonts/MonoRoman.stroke
@@ -0,0 +1,503 @@
+##
+# $XConsortium: Roman_M.src,v 5.2 91/07/21 16:42:40 rws Exp $
+##
+## Copyright (c) 1989,1990, 1991 by Sun Microsystems, Inc. and the X Consortium.
+##
+## All Rights Reserved
+##
+## Permission to use, copy, modify, and distribute this software and its
+## documentation for any purpose and without fee is hereby granted,
+## provided that the above copyright notice appear in all copies and that
+## both that copyright notice and this permission notice appear in
+## supporting documentation, and that the names of Sun Microsystems,
+## the X Consortium, and MIT not be used in advertising or publicity
+## pertaining to distribution of the software without specific, written
+## prior permission.
+##
+## SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+## INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+## EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+## CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
+## USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+## OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+## PERFORMANCE OF THIS SOFTWARE.
+
+# Mono-spaced version of Roman Simplex font.
+
+ FONTNAME Roman
+ TOP 119.0476
+ BOTTOM -33.3333
+ NUM_CH 128
+ PROPERTIES 3
+
+ (CHARSET_REGISTRY ISO8859)
+ (CHARSET_ENCODING "1")
+ (SPACING M)
+
+INDEX 32 STROKE 0 CENTER 52.3810 RIGHT 104.7619
+INDEX 33 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (52.3810 100.0000) (52.3810 33.3333)
+ OPEN 5 (52.3810 9.5238) (47.6191 4.7619) (52.3810 0.0000)
+ (57.1429 4.7619) (52.3810 9.5238)
+INDEX 34 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (33.3334 100.0000) (33.3334 66.6667)
+ OPEN 2 (71.4286 100.0000) (71.4286 66.6667)
+INDEX 35 STROKE 4 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (54.7619 119.0476) (21.4286 -33.3333)
+ OPEN 2 (83.3334 119.0476) (50.0000 -33.3333)
+ OPEN 2 (21.4286 57.1429) (88.0952 57.1429)
+ OPEN 2 (16.6667 28.5714) (83.3334 28.5714)
+INDEX 36 STROKE 3 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (42.8571 119.0476) (42.8571 -19.0476)
+ OPEN 2 (61.9047 119.0476) (61.9047 -19.0476)
+ OPEN 20 (85.7143 85.7143) (76.1905 95.2381) (61.9047 100.0000)
+ (42.8571 100.0000) (28.5714 95.2381) (19.0476 85.7143) (19.0476 76.1905)
+ (23.8095 66.6667) (28.5714 61.9048) (38.0952 57.1429) (66.6666 47.6190)
+ (76.1905 42.8571) (80.9524 38.0952) (85.7143 28.5714) (85.7143 14.2857)
+ (76.1905 4.7619) (61.9047 0.0000) (42.8571 0.0000) (28.5714 4.7619)
+ (19.0476 14.2857)
+INDEX 37 STROKE 3 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (95.2381 100.0000) (9.5238 0.0000)
+ OPEN 16 (33.3333 100.0000) (42.8571 90.4762) (42.8571 80.9524)
+ (38.0952 71.4286) (28.5714 66.6667) (19.0476 66.6667) (9.5238 76.1905)
+ (9.5238 85.7143) (14.2857 95.2381) (23.8095 100.0000) (33.3333 100.0000)
+ (42.8571 95.2381) (57.1428 90.4762) (71.4286 90.4762) (85.7143 95.2381)
+ (95.2381 100.0000)
+ OPEN 11 (76.1905 33.3333) (66.6667 28.5714) (61.9048 19.0476)
+ (61.9048 9.5238) (71.4286 0.0000) (80.9524 0.0000) (90.4762 4.7619)
+ (95.2381 14.2857) (95.2381 23.8095) (85.7143 33.3333) (76.1905 33.3333)
+INDEX 38 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 34 (100.0000 57.1429) (100.0000 61.9048) (95.2381 66.6667)
+ (90.4762 66.6667) (85.7143 61.9048) (80.9524 52.3810) (71.4286 28.5714)
+ (61.9048 14.2857) (52.3809 4.7619) (42.8571 0.0000) (23.8095 0.0000)
+ (14.2857 4.7619) (9.5238 9.5238) (4.7619 19.0476) (4.7619 28.5714)
+ (9.5238 38.0952) (14.2857 42.8571) (47.6190 61.9048) (52.3809 66.6667)
+ (57.1429 76.1905) (57.1429 85.7143) (52.3809 95.2381) (42.8571 100.0000)
+ (33.3333 95.2381) (28.5714 85.7143) (28.5714 76.1905) (33.3333 61.9048)
+ (42.8571 47.6190) (66.6667 14.2857) (76.1905 4.7619) (85.7143 0.0000)
+ (95.2381 0.0000) (100.0000 4.7619) (100.0000 9.5238)
+INDEX 39 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (52.3810 100.0000) (52.3810 66.6667)
+INDEX 40 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 10 (69.0476 119.0476) (59.5238 109.5238) (50.0000 95.2381)
+ (40.4762 76.1905) (35.7143 52.3810) (35.7143 33.3333) (40.4762 9.5238)
+ (50.0000 -9.5238) (59.5238 -23.8095) (69.0476 -33.3333)
+INDEX 41 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 10 (35.7143 119.0476) (45.2381 109.5238) (54.7619 95.2381)
+ (64.2857 76.1905) (69.0476 52.3810) (69.0476 33.3333) (64.2857 9.5238)
+ (54.7619 -9.5238) (45.2381 -23.8095) (35.7143 -33.3333)
+INDEX 42 STROKE 3 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (52.3810 71.4286) (52.3810 14.2857)
+ OPEN 2 (28.5715 57.1429) (76.1905 28.5714)
+ OPEN 2 (76.1905 57.1429) (28.5715 28.5714)
+INDEX 43 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (52.3809 85.7143) (52.3809 0.0000)
+ OPEN 2 (9.5238 42.8571) (95.2381 42.8571)
+INDEX 44 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 8 (57.1429 4.7619) (52.3810 0.0000) (47.6191 4.7619)
+ (52.3810 9.5238) (57.1429 4.7619) (57.1429 -4.7619) (52.3810 -14.2857)
+ (47.6191 -19.0476)
+INDEX 45 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (9.5238 42.8571) (95.2381 42.8571)
+INDEX 46 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 5 (52.3810 9.5238) (47.6191 4.7619) (52.3810 0.0000)
+ (57.1429 4.7619) (52.3810 9.5238)
+INDEX 47 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (19.0476 -14.2857) (85.7143 100.0000)
+INDEX 48 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 17 (47.6190 100.0000) (33.3333 95.2381) (23.8095 80.9524)
+ (19.0476 57.1429) (19.0476 42.8571) (23.8095 19.0476) (33.3333 4.7619)
+ (47.6190 0.0000) (57.1428 0.0000) (71.4286 4.7619) (80.9524 19.0476)
+ (85.7143 42.8571) (85.7143 57.1429) (80.9524 80.9524) (71.4286 95.2381)
+ (57.1428 100.0000) (47.6190 100.0000)
+INDEX 49 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 4 (40.4762 80.9524) (50.0000 85.7143) (64.2857 100.0000)
+ (64.2857 0.0000)
+INDEX 50 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 14 (23.8095 76.1905) (23.8095 80.9524) (28.5714 90.4762)
+ (33.3333 95.2381) (42.8571 100.0000) (61.9047 100.0000) (71.4286 95.2381)
+ (76.1905 90.4762) (80.9524 80.9524) (80.9524 71.4286) (76.1905 61.9048)
+ (66.6666 47.6190) (19.0476 0.0000) (85.7143 0.0000)
+INDEX 51 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 15 (28.5714 100.0000) (80.9524 100.0000) (52.3809 61.9048)
+ (66.6666 61.9048) (76.1905 57.1429) (80.9524 52.3810) (85.7143 38.0952)
+ (85.7143 28.5714) (80.9524 14.2857) (71.4286 4.7619) (57.1428 0.0000)
+ (42.8571 0.0000) (28.5714 4.7619) (23.8095 9.5238) (19.0476 19.0476)
+INDEX 52 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 3 (64.2857 100.0000) (16.6667 33.3333) (88.0952 33.3333)
+ OPEN 2 (64.2857 100.0000) (64.2857 0.0000)
+INDEX 53 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 17 (76.1905 100.0000) (28.5714 100.0000) (23.8095 57.1429)
+ (28.5714 61.9048) (42.8571 66.6667) (57.1428 66.6667) (71.4286 61.9048)
+ (80.9524 52.3810) (85.7143 38.0952) (85.7143 28.5714) (80.9524 14.2857)
+ (71.4286 4.7619) (57.1428 0.0000) (42.8571 0.0000) (28.5714 4.7619)
+ (23.8095 9.5238) (19.0476 19.0476)
+INDEX 54 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 23 (78.5714 85.7143) (73.8096 95.2381) (59.5238 100.0000)
+ (50.0000 100.0000) (35.7143 95.2381) (26.1905 80.9524) (21.4286 57.1429)
+ (21.4286 33.3333) (26.1905 14.2857) (35.7143 4.7619) (50.0000 0.0000)
+ (54.7619 0.0000) (69.0476 4.7619) (78.5714 14.2857) (83.3334 28.5714)
+ (83.3334 33.3333) (78.5714 47.6190) (69.0476 57.1429) (54.7619 61.9048)
+ (50.0000 61.9048) (35.7143 57.1429) (26.1905 47.6190) (21.4286 33.3333)
+INDEX 55 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (85.7143 100.0000) (38.0952 0.0000)
+ OPEN 2 (19.0476 100.0000) (85.7143 100.0000)
+INDEX 56 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 29 (42.8571 100.0000) (28.5714 95.2381) (23.8095 85.7143)
+ (23.8095 76.1905) (28.5714 66.6667) (38.0952 61.9048) (57.1428 57.1429)
+ (71.4286 52.3810) (80.9524 42.8571) (85.7143 33.3333) (85.7143 19.0476)
+ (80.9524 9.5238) (76.1905 4.7619) (61.9047 0.0000) (42.8571 0.0000)
+ (28.5714 4.7619) (23.8095 9.5238) (19.0476 19.0476) (19.0476 33.3333)
+ (23.8095 42.8571) (33.3333 52.3810) (47.6190 57.1429) (66.6666 61.9048)
+ (76.1905 66.6667) (80.9524 76.1905) (80.9524 85.7143) (76.1905 95.2381)
+ (61.9047 100.0000) (42.8571 100.0000)
+INDEX 57 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 23 (83.3334 66.6667) (78.5714 52.3810) (69.0476 42.8571)
+ (54.7619 38.0952) (50.0000 38.0952) (35.7143 42.8571) (26.1905 52.3810)
+ (21.4286 66.6667) (21.4286 71.4286) (26.1905 85.7143) (35.7143 95.2381)
+ (50.0000 100.0000) (54.7619 100.0000) (69.0476 95.2381) (78.5714 85.7143)
+ (83.3334 66.6667) (83.3334 42.8571) (78.5714 19.0476) (69.0476 4.7619)
+ (54.7619 0.0000) (45.2381 0.0000) (30.9524 4.7619) (26.1905 14.2857)
+INDEX 58 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 5 (52.3810 66.6667) (47.6191 61.9048) (52.3810 57.1429)
+ (57.1429 61.9048) (52.3810 66.6667)
+ OPEN 5 (52.3810 9.5238) (47.6191 4.7619) (52.3810 0.0000)
+ (57.1429 4.7619) (52.3810 9.5238)
+INDEX 59 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 5 (52.3810 66.6667) (47.6191 61.9048) (52.3810 57.1429)
+ (57.1429 61.9048) (52.3810 66.6667)
+ OPEN 8 (57.1429 4.7619) (52.3810 0.0000) (47.6191 4.7619)
+ (52.3810 9.5238) (57.1429 4.7619) (57.1429 -4.7619) (52.3810 -14.2857)
+ (47.6191 -19.0476)
+INDEX 60 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 3 (90.4762 85.7143) (14.2857 42.8571) (90.4762 0.0000)
+INDEX 61 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (9.5238 57.1429) (95.2381 57.1429)
+ OPEN 2 (9.5238 28.5714) (95.2381 28.5714)
+INDEX 62 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 3 (14.2857 85.7143) (90.4762 42.8571) (14.2857 0.0000)
+INDEX 63 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 14 (23.8095 76.1905) (23.8095 80.9524) (28.5714 90.4762)
+ (33.3333 95.2381) (42.8571 100.0000) (61.9047 100.0000) (71.4285 95.2381)
+ (76.1905 90.4762) (80.9524 80.9524) (80.9524 71.4286) (76.1905 61.9048)
+ (71.4285 57.1429) (52.3809 47.6190) (52.3809 33.3333)
+ OPEN 5 (52.3809 9.5238) (47.6190 4.7619) (52.3809 0.0000)
+ (57.1428 4.7619) (52.3809 9.5238)
+INDEX 64 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 8 (64.2857 52.3810) (54.7619 57.1429) (45.2381 57.1429)
+ (40.4762 47.6190) (40.4762 42.8571) (45.2381 33.3333) (54.7619 33.3333)
+ (64.2857 38.0952)
+ OPEN 19 (64.2857 57.1429) (64.2857 38.0952) (69.0476 33.3333)
+ (78.5714 33.3333) (83.3334 42.8571) (83.3334 47.6190) (78.5714 61.9048)
+ (69.0476 71.4286) (54.7619 76.1905) (50.0000 76.1905) (35.7143 71.4286)
+ (26.1905 61.9048) (21.4286 47.6190) (21.4286 42.8571) (26.1905 28.5714)
+ (35.7143 19.0476) (50.0000 14.2857) (54.7619 14.2857) (69.0476 19.0476)
+INDEX 65 STROKE 3 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (52.3809 100.0000) (14.2857 0.0000)
+ OPEN 2 (52.3809 100.0000) (90.4762 0.0000)
+ OPEN 2 (28.5714 33.3333) (76.1905 33.3333)
+INDEX 66 STROKE 3 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (19.0476 100.0000) (19.0476 0.0000)
+ OPEN 9 (19.0476 100.0000) (61.9047 100.0000) (76.1905 95.2381)
+ (80.9524 90.4762) (85.7143 80.9524) (85.7143 71.4286) (80.9524 61.9048)
+ (76.1905 57.1429) (61.9047 52.3810)
+ OPEN 10 (19.0476 52.3810) (61.9047 52.3810) (76.1905 47.6190)
+ (80.9524 42.8571) (85.7143 33.3333) (85.7143 19.0476) (80.9524 9.5238)
+ (76.1905 4.7619) (61.9047 0.0000) (19.0476 0.0000)
+INDEX 67 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 18 (88.0952 76.1905) (83.3334 85.7143) (73.8096 95.2381)
+ (64.2857 100.0000) (45.2381 100.0000) (35.7143 95.2381) (26.1905 85.7143)
+ (21.4286 76.1905) (16.6667 61.9048) (16.6667 38.0952) (21.4286 23.8095)
+ (26.1905 14.2857) (35.7143 4.7619) (45.2381 0.0000) (64.2857 0.0000)
+ (73.8096 4.7619) (83.3334 14.2857) (88.0952 23.8095)
+INDEX 68 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (19.0476 100.0000) (19.0476 0.0000)
+ OPEN 12 (19.0476 100.0000) (52.3809 100.0000) (66.6666 95.2381)
+ (76.1905 85.7143) (80.9524 76.1905) (85.7143 61.9048) (85.7143 38.0952)
+ (80.9524 23.8095) (76.1905 14.2857) (66.6666 4.7619) (52.3809 0.0000)
+ (19.0476 0.0000)
+INDEX 69 STROKE 4 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (21.4286 100.0000) (21.4286 0.0000)
+ OPEN 2 (21.4286 100.0000) (83.3334 100.0000)
+ OPEN 2 (21.4286 52.3810) (59.5238 52.3810)
+ OPEN 2 (21.4286 0.0000) (83.3334 0.0000)
+INDEX 70 STROKE 3 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (21.4286 100.0000) (21.4286 0.0000)
+ OPEN 2 (21.4286 100.0000) (83.3334 100.0000)
+ OPEN 2 (21.4286 52.3810) (59.5238 52.3810)
+INDEX 71 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 19 (88.0952 76.1905) (83.3334 85.7143) (73.8096 95.2381)
+ (64.2857 100.0000) (45.2381 100.0000) (35.7143 95.2381) (26.1905 85.7143)
+ (21.4286 76.1905) (16.6667 61.9048) (16.6667 38.0952) (21.4286 23.8095)
+ (26.1905 14.2857) (35.7143 4.7619) (45.2381 0.0000) (64.2857 0.0000)
+ (73.8096 4.7619) (83.3334 14.2857) (88.0952 23.8095) (88.0952 38.0952)
+ OPEN 2 (64.2857 38.0952) (88.0952 38.0952)
+INDEX 72 STROKE 3 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (19.0476 100.0000) (19.0476 0.0000)
+ OPEN 2 (85.7143 100.0000) (85.7143 0.0000)
+ OPEN 2 (19.0476 52.3810) (85.7143 52.3810)
+INDEX 73 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (52.3810 100.0000) (52.3810 0.0000)
+INDEX 74 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 10 (76.1905 100.0000) (76.1905 23.8095) (71.4286 9.5238)
+ (66.6667 4.7619) (57.1429 0.0000) (47.6191 0.0000) (38.0953 4.7619)
+ (33.3334 9.5238) (28.5715 23.8095) (28.5715 33.3333)
+INDEX 75 STROKE 3 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (19.0476 100.0000) (19.0476 0.0000)
+ OPEN 2 (85.7143 100.0000) (19.0476 33.3333)
+ OPEN 2 (42.8571 57.1429) (85.7143 0.0000)
+INDEX 76 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (23.8095 100.0000) (23.8095 0.0000)
+ OPEN 2 (23.8095 0.0000) (80.9524 0.0000)
+INDEX 77 STROKE 4 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (14.2857 100.0000) (14.2857 0.0000)
+ OPEN 2 (14.2857 100.0000) (52.3809 0.0000)
+ OPEN 2 (90.4762 100.0000) (52.3809 0.0000)
+ OPEN 2 (90.4762 100.0000) (90.4762 0.0000)
+INDEX 78 STROKE 3 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (19.0476 100.0000) (19.0476 0.0000)
+ OPEN 2 (19.0476 100.0000) (85.7143 0.0000)
+ OPEN 2 (85.7143 100.0000) (85.7143 0.0000)
+INDEX 79 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 21 (42.8571 100.0000) (33.3333 95.2381) (23.8095 85.7143)
+ (19.0476 76.1905) (14.2857 61.9048) (14.2857 38.0952) (19.0476 23.8095)
+ (23.8095 14.2857) (33.3333 4.7619) (42.8571 0.0000) (61.9047 0.0000)
+ (71.4286 4.7619) (80.9524 14.2857) (85.7143 23.8095) (90.4762 38.0952)
+ (90.4762 61.9048) (85.7143 76.1905) (80.9524 85.7143) (71.4286 95.2381)
+ (61.9047 100.0000) (42.8571 100.0000)
+INDEX 80 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (19.0476 100.0000) (19.0476 0.0000)
+ OPEN 10 (19.0476 100.0000) (61.9047 100.0000) (76.1905 95.2381)
+ (80.9524 90.4762) (85.7143 80.9524) (85.7143 66.6667) (80.9524 57.1429)
+ (76.1905 52.3810) (61.9047 47.6190) (19.0476 47.6190)
+INDEX 81 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 21 (42.8571 100.0000) (33.3333 95.2381) (23.8095 85.7143)
+ (19.0476 76.1905) (14.2857 61.9048) (14.2857 38.0952) (19.0476 23.8095)
+ (23.8095 14.2857) (33.3333 4.7619) (42.8571 0.0000) (61.9047 0.0000)
+ (71.4286 4.7619) (80.9524 14.2857) (85.7143 23.8095) (90.4762 38.0952)
+ (90.4762 61.9048) (85.7143 76.1905) (80.9524 85.7143) (71.4286 95.2381)
+ (61.9047 100.0000) (42.8571 100.0000)
+ OPEN 2 (57.1428 19.0476) (85.7143 -9.5238)
+INDEX 82 STROKE 3 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (19.0476 100.0000) (19.0476 0.0000)
+ OPEN 10 (19.0476 100.0000) (61.9047 100.0000) (76.1905 95.2381)
+ (80.9524 90.4762) (85.7143 80.9524) (85.7143 71.4286) (80.9524 61.9048)
+ (76.1905 57.1429) (61.9047 52.3810) (19.0476 52.3810)
+ OPEN 2 (52.3809 52.3810) (85.7143 0.0000)
+INDEX 83 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 20 (85.7143 85.7143) (76.1905 95.2381) (61.9047 100.0000)
+ (42.8571 100.0000) (28.5714 95.2381) (19.0476 85.7143) (19.0476 76.1905)
+ (23.8095 66.6667) (28.5714 61.9048) (38.0952 57.1429) (66.6666 47.6190)
+ (76.1905 42.8571) (80.9524 38.0952) (85.7143 28.5714) (85.7143 14.2857)
+ (76.1905 4.7619) (61.9047 0.0000) (42.8571 0.0000) (28.5714 4.7619)
+ (19.0476 14.2857)
+INDEX 84 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (52.3809 100.0000) (52.3809 0.0000)
+ OPEN 2 (19.0476 100.0000) (85.7143 100.0000)
+INDEX 85 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 10 (19.0476 100.0000) (19.0476 28.5714) (23.8095 14.2857)
+ (33.3333 4.7619) (47.6190 0.0000) (57.1428 0.0000) (71.4286 4.7619)
+ (80.9524 14.2857) (85.7143 28.5714) (85.7143 100.0000)
+INDEX 86 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (14.2857 100.0000) (52.3809 0.0000)
+ OPEN 2 (90.4762 100.0000) (52.3809 0.0000)
+INDEX 87 STROKE 4 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (4.7619 100.0000) (28.5714 0.0000)
+ OPEN 2 (52.3809 100.0000) (28.5714 0.0000)
+ OPEN 2 (52.3809 100.0000) (76.1905 0.0000)
+ OPEN 2 (100.0000 100.0000) (76.1905 0.0000)
+INDEX 88 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (19.0476 100.0000) (85.7143 0.0000)
+ OPEN 2 (85.7143 100.0000) (19.0476 0.0000)
+INDEX 89 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 3 (14.2857 100.0000) (52.3809 52.3810) (52.3809 0.0000)
+ OPEN 2 (90.4762 100.0000) (52.3809 52.3810)
+INDEX 90 STROKE 3 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (85.7143 100.0000) (19.0476 0.0000)
+ OPEN 2 (19.0476 100.0000) (85.7143 100.0000)
+ OPEN 2 (19.0476 0.0000) (85.7143 0.0000)
+INDEX 91 STROKE 4 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (35.7143 119.0476) (35.7143 -33.3333)
+ OPEN 2 (40.4762 119.0476) (40.4762 -33.3333)
+ OPEN 2 (35.7143 119.0476) (69.0476 119.0476)
+ OPEN 2 (35.7143 -33.3333) (69.0476 -33.3333)
+INDEX 92 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (19.0476 100.0000) (85.7143 -14.2857)
+INDEX 93 STROKE 4 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (64.2857 119.0476) (64.2857 -33.3333)
+ OPEN 2 (69.0476 119.0476) (69.0476 -33.3333)
+ OPEN 2 (35.7143 119.0476) (69.0476 119.0476)
+ OPEN 2 (35.7143 -33.3333) (69.0476 -33.3333)
+INDEX 94 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (52.3809 109.5238) (14.2857 42.8571)
+ OPEN 2 (52.3809 109.5238) (90.4762 42.8571)
+INDEX 95 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 5 (0.0000 -33.3333) (104.7619 -33.3333) (104.7619 -28.5714)
+ (0.0000 -28.5714) (0.0000 -33.3333)
+INDEX 96 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (42.8572 100.0000) (66.6667 71.4286)
+ OPEN 3 (42.8572 100.0000) (38.0953 95.2381) (66.6667 71.4286)
+INDEX 97 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (80.9524 66.6667) (80.9524 0.0000)
+ OPEN 14 (80.9524 52.3810) (71.4285 61.9048) (61.9047 66.6667)
+ (47.6190 66.6667) (38.0952 61.9048) (28.5714 52.3810) (23.8095 38.0952)
+ (23.8095 28.5714) (28.5714 14.2857) (38.0952 4.7619) (47.6190 0.0000)
+ (61.9047 0.0000) (71.4285 4.7619) (80.9524 14.2857)
+INDEX 98 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (23.8095 100.0000) (23.8095 0.0000)
+ OPEN 14 (23.8095 52.3810) (33.3333 61.9048) (42.8571 66.6667)
+ (57.1428 66.6667) (66.6666 61.9048) (76.1905 52.3810) (80.9524 38.0952)
+ (80.9524 28.5714) (76.1905 14.2857) (66.6666 4.7619) (57.1428 0.0000)
+ (42.8571 0.0000) (33.3333 4.7619) (23.8095 14.2857)
+INDEX 99 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 14 (80.9524 52.3810) (71.4285 61.9048) (61.9047 66.6667)
+ (47.6190 66.6667) (38.0952 61.9048) (28.5714 52.3810) (23.8095 38.0952)
+ (23.8095 28.5714) (28.5714 14.2857) (38.0952 4.7619) (47.6190 0.0000)
+ (61.9047 0.0000) (71.4285 4.7619) (80.9524 14.2857)
+INDEX 100 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (80.9524 100.0000) (80.9524 0.0000)
+ OPEN 14 (80.9524 52.3810) (71.4285 61.9048) (61.9047 66.6667)
+ (47.6190 66.6667) (38.0952 61.9048) (28.5714 52.3810) (23.8095 38.0952)
+ (23.8095 28.5714) (28.5714 14.2857) (38.0952 4.7619) (47.6190 0.0000)
+ (61.9047 0.0000) (71.4285 4.7619) (80.9524 14.2857)
+INDEX 101 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 17 (23.8095 38.0952) (80.9524 38.0952) (80.9524 47.6190)
+ (76.1905 57.1429) (71.4285 61.9048) (61.9047 66.6667) (47.6190 66.6667)
+ (38.0952 61.9048) (28.5714 52.3810) (23.8095 38.0952) (23.8095 28.5714)
+ (28.5714 14.2857) (38.0952 4.7619) (47.6190 0.0000) (61.9047 0.0000)
+ (71.4285 4.7619) (80.9524 14.2857)
+INDEX 102 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 5 (71.4286 100.0000) (61.9048 100.0000) (52.3810 95.2381)
+ (47.6191 80.9524) (47.6191 0.0000)
+ OPEN 2 (33.3334 66.6667) (66.6667 66.6667)
+INDEX 103 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 7 (80.9524 66.6667) (80.9524 -9.5238) (76.1905 -23.8095)
+ (71.4285 -28.5714) (61.9047 -33.3333) (47.6190 -33.3333) (38.0952 -28.5714)
+ OPEN 14 (80.9524 52.3810) (71.4285 61.9048) (61.9047 66.6667)
+ (47.6190 66.6667) (38.0952 61.9048) (28.5714 52.3810) (23.8095 38.0952)
+ (23.8095 28.5714) (28.5714 14.2857) (38.0952 4.7619) (47.6190 0.0000)
+ (61.9047 0.0000) (71.4285 4.7619) (80.9524 14.2857)
+INDEX 104 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (26.1905 100.0000) (26.1905 0.0000)
+ OPEN 7 (26.1905 47.6190) (40.4762 61.9048) (50.0000 66.6667)
+ (64.2857 66.6667) (73.8095 61.9048) (78.5715 47.6190) (78.5715 0.0000)
+INDEX 105 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 5 (47.6191 100.0000) (52.3810 95.2381) (57.1429 100.0000)
+ (52.3810 104.7619) (47.6191 100.0000)
+ OPEN 2 (52.3810 66.6667) (52.3810 0.0000)
+INDEX 106 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 5 (57.1429 100.0000) (61.9048 95.2381) (66.6667 100.0000)
+ (61.9048 104.7619) (57.1429 100.0000)
+ OPEN 5 (61.9048 66.6667) (61.9048 -14.2857) (57.1429 -28.5714)
+ (47.6191 -33.3333) (38.0953 -33.3333)
+INDEX 107 STROKE 3 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (26.1905 100.0000) (26.1905 0.0000)
+ OPEN 2 (73.8095 66.6667) (26.1905 19.0476)
+ OPEN 2 (45.2381 38.0952) (78.5715 0.0000)
+INDEX 108 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (52.3810 100.0000) (52.3810 0.0000)
+INDEX 109 STROKE 3 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (0.0000 66.6667) (0.0000 0.0000)
+ OPEN 7 (0.0000 47.6190) (14.2857 61.9048) (23.8095 66.6667)
+ (38.0952 66.6667) (47.6190 61.9048) (52.3810 47.6190) (52.3810 0.0000)
+ OPEN 7 (52.3810 47.6190) (66.6667 61.9048) (76.1905 66.6667)
+ (90.4762 66.6667) (100.0000 61.9048) (104.7619 47.6190) (104.7619 0.0000)
+INDEX 110 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (26.1905 66.6667) (26.1905 0.0000)
+ OPEN 7 (26.1905 47.6190) (40.4762 61.9048) (50.0000 66.6667)
+ (64.2857 66.6667) (73.8095 61.9048) (78.5715 47.6190) (78.5715 0.0000)
+INDEX 111 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 17 (45.2381 66.6667) (35.7143 61.9048) (26.1905 52.3810)
+ (21.4286 38.0952) (21.4286 28.5714) (26.1905 14.2857) (35.7143 4.7619)
+ (45.2381 0.0000) (59.5238 0.0000) (69.0476 4.7619) (78.5714 14.2857)
+ (83.3334 28.5714) (83.3334 38.0952) (78.5714 52.3810) (69.0476 61.9048)
+ (59.5238 66.6667) (45.2381 66.6667)
+INDEX 112 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (23.8095 66.6667) (23.8095 -33.3333)
+ OPEN 14 (23.8095 52.3810) (33.3333 61.9048) (42.8571 66.6667)
+ (57.1428 66.6667) (66.6666 61.9048) (76.1905 52.3810) (80.9524 38.0952)
+ (80.9524 28.5714) (76.1905 14.2857) (66.6666 4.7619) (57.1428 0.0000)
+ (42.8571 0.0000) (33.3333 4.7619) (23.8095 14.2857)
+INDEX 113 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (80.9524 66.6667) (80.9524 -33.3333)
+ OPEN 14 (80.9524 52.3810) (71.4285 61.9048) (61.9047 66.6667)
+ (47.6190 66.6667) (38.0952 61.9048) (28.5714 52.3810) (23.8095 38.0952)
+ (23.8095 28.5714) (28.5714 14.2857) (38.0952 4.7619) (47.6190 0.0000)
+ (61.9047 0.0000) (71.4285 4.7619) (80.9524 14.2857)
+INDEX 114 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (33.3334 66.6667) (33.3334 0.0000)
+ OPEN 5 (33.3334 38.0952) (38.0953 52.3810) (47.6191 61.9048)
+ (57.1429 66.6667) (71.4286 66.6667)
+INDEX 115 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 17 (78.5715 52.3810) (73.8095 61.9048) (59.5238 66.6667)
+ (45.2381 66.6667) (30.9524 61.9048) (26.1905 52.3810) (30.9524 42.8571)
+ (40.4762 38.0952) (64.2857 33.3333) (73.8095 28.5714) (78.5715 19.0476)
+ (78.5715 14.2857) (73.8095 4.7619) (59.5238 0.0000) (45.2381 0.0000)
+ (30.9524 4.7619) (26.1905 14.2857)
+INDEX 116 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 5 (47.6191 100.0000) (47.6191 19.0476) (52.3810 4.7619)
+ (61.9048 0.0000) (71.4286 0.0000)
+ OPEN 2 (33.3334 66.6667) (66.6667 66.6667)
+INDEX 117 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 7 (26.1905 66.6667) (26.1905 19.0476) (30.9524 4.7619)
+ (40.4762 0.0000) (54.7619 0.0000) (64.2857 4.7619) (78.5715 19.0476)
+ OPEN 2 (78.5715 66.6667) (78.5715 0.0000)
+INDEX 118 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (23.8095 66.6667) (52.3809 0.0000)
+ OPEN 2 (80.9524 66.6667) (52.3809 0.0000)
+INDEX 119 STROKE 4 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (14.2857 66.6667) (33.3333 0.0000)
+ OPEN 2 (52.3809 66.6667) (33.3333 0.0000)
+ OPEN 2 (52.3809 66.6667) (71.4286 0.0000)
+ OPEN 2 (90.4762 66.6667) (71.4286 0.0000)
+INDEX 120 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (26.1905 66.6667) (78.5715 0.0000)
+ OPEN 2 (78.5715 66.6667) (26.1905 0.0000)
+INDEX 121 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (26.1905 66.6667) (54.7619 0.0000)
+ OPEN 6 (83.3334 66.6667) (54.7619 0.0000) (45.2381 -19.0476)
+ (35.7143 -28.5714) (26.1905 -33.3333) (21.4286 -33.3333)
+INDEX 122 STROKE 3 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (78.5715 66.6667) (26.1905 0.0000)
+ OPEN 2 (26.1905 66.6667) (78.5715 66.6667)
+ OPEN 2 (26.1905 0.0000) (78.5715 0.0000)
+INDEX 123 STROKE 3 CENTER 52.3810 RIGHT 104.7619
+ OPEN 10 (64.2857 119.0476) (54.7619 114.2857) (50.0000 109.5238)
+ (45.2381 100.0000) (45.2381 90.4762) (50.0000 80.9524) (54.7619 76.1905)
+ (59.5238 66.6667) (59.5238 57.1429) (50.0000 47.6190)
+ OPEN 17 (54.7619 114.2857) (50.0000 104.7619) (50.0000 95.2381)
+ (54.7619 85.7143) (59.5238 80.9524) (64.2857 71.4286) (64.2857 61.9048)
+ (59.5238 52.3810) (40.4762 42.8571) (59.5238 33.3333) (64.2857 23.8095)
+ (64.2857 14.2857) (59.5238 4.7619) (54.7619 0.0000) (50.0000 -9.5238)
+ (50.0000 -19.0476) (54.7619 -28.5714)
+ OPEN 10 (50.0000 38.0952) (59.5238 28.5714) (59.5238 19.0476)
+ (54.7619 9.5238) (50.0000 4.7619) (45.2381 -4.7619) (45.2381 -14.2857)
+ (50.0000 -23.8095) (54.7619 -28.5714) (64.2857 -33.3333)
+INDEX 124 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (52.3810 119.0476) (52.3810 -33.3333)
+INDEX 125 STROKE 3 CENTER 52.3810 RIGHT 104.7619
+ OPEN 10 (40.4762 119.0476) (50.0000 114.2857) (54.7619 109.5238)
+ (59.5238 100.0000) (59.5238 90.4762) (54.7619 80.9524) (50.0000 76.1905)
+ (45.2381 66.6667) (45.2381 57.1429) (54.7619 47.6190)
+ OPEN 17 (50.0000 114.2857) (54.7619 104.7619) (54.7619 95.2381)
+ (50.0000 85.7143) (45.2381 80.9524) (40.4762 71.4286) (40.4762 61.9048)
+ (45.2381 52.3810) (64.2857 42.8571) (45.2381 33.3333) (40.4762 23.8095)
+ (40.4762 14.2857) (45.2381 4.7619) (50.0000 0.0000) (54.7619 -9.5238)
+ (54.7619 -19.0476) (50.0000 -28.5714)
+ OPEN 10 (54.7619 38.0952) (45.2381 28.5714) (45.2381 19.0476)
+ (50.0000 9.5238) (54.7619 4.7619) (59.5238 -4.7619) (59.5238 -14.2857)
+ (54.7619 -23.8095) (50.0000 -28.5714) (40.4762 -33.3333)
+INDEX 126 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 11 (9.5238 28.5714) (9.5238 38.0952) (14.2857 52.3810)
+ (23.8095 57.1429) (33.3333 57.1429) (42.8571 52.3810) (61.9048 38.0952)
+ (71.4286 33.3333) (80.9524 33.3333) (90.4762 38.0952) (95.2381 47.6190)
+ OPEN 11 (9.5238 38.0952) (14.2857 47.6190) (23.8095 52.3810)
+ (33.3333 52.3810) (42.8571 47.6190) (61.9048 33.3333) (71.4286 28.5714)
+ (80.9524 28.5714) (90.4762 33.3333) (95.2381 47.6190) (95.2381 57.1429)
+INDEX 127 STROKE 2 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (71.4286 100.0000) (33.3333 -33.3333)
+ OPEN 17 (47.6190 66.6667) (33.3333 61.9048) (23.8095 52.3810)
+ (19.0476 38.0952) (19.0476 23.8095) (23.8095 14.2857) (33.3333 4.7619)
+ (47.6190 0.0000) (57.1428 0.0000) (71.4286 4.7619) (80.9524 14.2857)
+ (85.7143 28.5714) (85.7143 42.8571) (80.9524 52.3810) (71.4286 61.9048)
+ (57.1428 66.6667) (47.6190 66.6667)
diff --git a/gl4java/utils/glut/fonts/Roman.stroke b/gl4java/utils/glut/fonts/Roman.stroke
new file mode 100644
index 0000000..d04e957
--- /dev/null
+++ b/gl4java/utils/glut/fonts/Roman.stroke
@@ -0,0 +1,604 @@
+##
+# $XConsortium: Roman.src,v 5.2 91/07/21 16:42:23 rws Exp $
+##
+## Copyright (c) 1989,1990, 1991 by Sun Microsystems, Inc. and the X Consortium.
+##
+## All Rights Reserved
+##
+## Permission to use, copy, modify, and distribute this software and its
+## documentation for any purpose and without fee is hereby granted,
+## provided that the above copyright notice appear in all copies and that
+## both that copyright notice and this permission notice appear in
+## supporting documentation, and that the names of Sun Microsystems,
+## the X Consortium, and MIT not be used in advertising or publicity
+## pertaining to distribution of the software without specific, written
+## prior permission.
+##
+## SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+## INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+## EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+## CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
+## USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+## OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+## PERFORMANCE OF THIS SOFTWARE.
+
+# Roman Simplex font.
+
+ FONTNAME Roman
+ TOP 119.0476
+ BOTTOM -33.3333
+ NUM_CH 128
+ PROPERTIES 3
+
+ (CHARSET_REGISTRY ISO8859)
+ (CHARSET_ENCODING "1")
+ (SPACING P)
+
+INDEX 32 STROKE 0 CENTER 52.3810 RIGHT 104.7619
+INDEX 33 STROKE 2 CENTER 4.7619 RIGHT 9.5238
+ OPEN 2 (4.7619 100.0000) (4.7619 33.3333)
+ OPEN 5 (4.7619 9.5238) (0.0000 4.7619) (4.7619 0.0000)
+ (9.5238 4.7619) (4.7619 9.5238)
+INDEX 34 STROKE 2 CENTER 19.0476 RIGHT 38.0952
+ OPEN 2 (0.0000 100.0000) (0.0000 66.6667)
+ OPEN 2 (38.0952 100.0000) (38.0952 66.6667)
+INDEX 35 STROKE 4 CENTER 33.3333 RIGHT 71.4286
+ OPEN 2 (38.0952 119.0476) (4.7619 -33.3333)
+ OPEN 2 (66.6667 119.0476) (33.3333 -33.3333)
+ OPEN 2 (4.7619 57.1429) (71.4286 57.1429)
+ OPEN 2 (0.0000 28.5714) (66.6667 28.5714)
+INDEX 36 STROKE 3 CENTER 33.3333 RIGHT 66.6667
+ OPEN 2 (23.8095 119.0476) (23.8095 -19.0476)
+ OPEN 2 (42.8571 119.0476) (42.8571 -19.0476)
+ OPEN 20 (66.6667 85.7143) (57.1429 95.2381) (42.8571 100.0000)
+ (23.8095 100.0000) (9.5238 95.2381) (0.0000 85.7143) (0.0000 76.1905)
+ (4.7619 66.6667) (9.5238 61.9048) (19.0476 57.1429) (47.6190 47.6190)
+ (57.1429 42.8571) (61.9048 38.0952) (66.6667 28.5714) (66.6667 14.2857)
+ (57.1429 4.7619) (42.8571 0.0000) (23.8095 0.0000) (9.5238 4.7619)
+ (0.0000 14.2857)
+INDEX 37 STROKE 3 CENTER 42.8571 RIGHT 85.7143
+ OPEN 2 (85.7143 100.0000) (0.0000 0.0000)
+ OPEN 16 (23.8095 100.0000) (33.3333 90.4762) (33.3333 80.9524)
+ (28.5714 71.4286) (19.0476 66.6667) (9.5238 66.6667) (0.0000 76.1905)
+ (0.0000 85.7143) (4.7619 95.2381) (14.2857 100.0000) (23.8095 100.0000)
+ (33.3333 95.2381) (47.6190 90.4762) (61.9048 90.4762) (76.1905 95.2381)
+ (85.7143 100.0000)
+ OPEN 11 (66.6667 33.3333) (57.1429 28.5714) (52.3810 19.0476)
+ (52.3810 9.5238) (61.9048 0.0000) (71.4286 0.0000) (80.9524 4.7619)
+ (85.7143 14.2857) (85.7143 23.8095) (76.1905 33.3333) (66.6667 33.3333)
+INDEX 38 STROKE 1 CENTER 47.6190 RIGHT 95.2381
+ OPEN 34 (95.2381 57.1429) (95.2381 61.9048) (90.4762 66.6667)
+ (85.7143 66.6667) (80.9524 61.9048) (76.1905 52.3810) (66.6667 28.5714)
+ (57.1429 14.2857) (47.6190 4.7619) (38.0952 0.0000) (19.0476 0.0000)
+ (9.5238 4.7619) (4.7619 9.5238) (0.0000 19.0476) (0.0000 28.5714)
+ (4.7619 38.0952) (9.5238 42.8571) (42.8571 61.9048) (47.6190 66.6667)
+ (52.3810 76.1905) (52.3810 85.7143) (47.6190 95.2381) (38.0952 100.0000)
+ (28.5714 95.2381) (23.8095 85.7143) (23.8095 76.1905) (28.5714 61.9048)
+ (38.0952 47.6190) (61.9048 14.2857) (71.4286 4.7619) (80.9524 0.0000)
+ (90.4762 0.0000) (95.2381 4.7619) (95.2381 9.5238)
+INDEX 39 STROKE 1 CENTER 0.0000 RIGHT 0.0000
+ OPEN 2 (0.0000 100.0000) (0.0000 66.6667)
+INDEX 40 STROKE 1 CENTER 14.2857 RIGHT 33.3333
+ OPEN 10 (33.3333 119.0476) (23.8095 109.5238) (14.2857 95.2381)
+ (4.7619 76.1905) (0.0000 52.3810) (0.0000 33.3333) (4.7619 9.5238)
+ (14.2857 -9.5238) (23.8095 -23.8095) (33.3333 -33.3333)
+INDEX 41 STROKE 1 CENTER 19.0476 RIGHT 33.3333
+ OPEN 10 (0.0000 119.0476) (9.5238 109.5238) (19.0476 95.2381)
+ (28.5714 76.1905) (33.3333 52.3810) (33.3333 33.3333) (28.5714 9.5238)
+ (19.0476 -9.5238) (9.5238 -23.8095) (0.0000 -33.3333)
+INDEX 42 STROKE 3 CENTER 23.8095 RIGHT 47.6190
+ OPEN 2 (23.8095 71.4286) (23.8095 14.2857)
+ OPEN 2 (0.0000 57.1429) (47.6190 28.5714)
+ OPEN 2 (47.6190 57.1429) (0.0000 28.5714)
+INDEX 43 STROKE 2 CENTER 42.8571 RIGHT 85.7143
+ OPEN 2 (42.8571 85.7143) (42.8571 0.0000)
+ OPEN 2 (0.0000 42.8571) (85.7143 42.8571)
+INDEX 44 STROKE 1 CENTER 4.7619 RIGHT 9.5238
+ OPEN 8 (9.5238 4.7619) (4.7619 0.0000) (0.0000 4.7619)
+ (4.7619 9.5238) (9.5238 4.7619) (9.5238 -4.7619) (4.7619 -14.2857)
+ (0.0000 -19.0476)
+INDEX 45 STROKE 1 CENTER 42.8571 RIGHT 85.7143
+ OPEN 2 (0.0000 42.8571) (85.7143 42.8571)
+INDEX 46 STROKE 1 CENTER 4.7619 RIGHT 9.5238
+ OPEN 5 (4.7619 9.5238) (0.0000 4.7619) (4.7619 0.0000)
+ (9.5238 4.7619) (4.7619 9.5238)
+INDEX 47 STROKE 1 CENTER 33.3333 RIGHT 66.6667
+ OPEN 2 (0.0000 -14.2857) (66.6667 100.0000)
+INDEX 48 STROKE 1 CENTER 33.3333 RIGHT 66.6667
+ OPEN 17 (28.5714 100.0000) (14.2857 95.2381) (4.7619 80.9524)
+ (0.0000 57.1429) (0.0000 42.8571) (4.7619 19.0476) (14.2857 4.7619)
+ (28.5714 0.0000) (38.0952 0.0000) (52.3810 4.7619) (61.9048 19.0476)
+ (66.6667 42.8571) (66.6667 57.1429) (61.9048 80.9524) (52.3810 95.2381)
+ (38.0952 100.0000) (28.5714 100.0000)
+INDEX 49 STROKE 1 CENTER 19.0476 RIGHT 23.8095
+ OPEN 4 (0.0000 80.9524) (9.5238 85.7143) (23.8095 100.0000)
+ (23.8095 0.0000)
+INDEX 50 STROKE 1 CENTER 33.3333 RIGHT 66.6667
+ OPEN 14 (4.7619 76.1905) (4.7619 80.9524) (9.5238 90.4762)
+ (14.2857 95.2381) (23.8095 100.0000) (42.8571 100.0000) (52.3810 95.2381)
+ (57.1429 90.4762) (61.9048 80.9524) (61.9048 71.4286) (57.1429 61.9048)
+ (47.6190 47.6190) (0.0000 0.0000) (66.6667 0.0000)
+INDEX 51 STROKE 1 CENTER 33.3333 RIGHT 66.6667
+ OPEN 15 (9.5238 100.0000) (61.9048 100.0000) (33.3333 61.9048)
+ (47.6190 61.9048) (57.1429 57.1429) (61.9048 52.3810) (66.6667 38.0952)
+ (66.6667 28.5714) (61.9048 14.2857) (52.3810 4.7619) (38.0952 0.0000)
+ (23.8095 0.0000) (9.5238 4.7619) (4.7619 9.5238) (0.0000 19.0476)
+INDEX 52 STROKE 2 CENTER 33.3333 RIGHT 71.4286
+ OPEN 3 (47.6190 100.0000) (0.0000 33.3333) (71.4286 33.3333)
+ OPEN 2 (47.6190 100.0000) (47.6190 0.0000)
+INDEX 53 STROKE 1 CENTER 33.3333 RIGHT 66.6667
+ OPEN 17 (57.1429 100.0000) (9.5238 100.0000) (4.7619 57.1429)
+ (9.5238 61.9048) (23.8095 66.6667) (38.0952 66.6667) (52.3810 61.9048)
+ (61.9048 52.3810) (66.6667 38.0952) (66.6667 28.5714) (61.9048 14.2857)
+ (52.3810 4.7619) (38.0952 0.0000) (23.8095 0.0000) (9.5238 4.7619)
+ (4.7619 9.5238) (0.0000 19.0476)
+INDEX 54 STROKE 1 CENTER 28.5714 RIGHT 61.9048
+ OPEN 23 (57.1429 85.7143) (52.3810 95.2381) (38.0952 100.0000)
+ (28.5714 100.0000) (14.2857 95.2381) (4.7619 80.9524) (0.0000 57.1429)
+ (0.0000 33.3333) (4.7619 14.2857) (14.2857 4.7619) (28.5714 0.0000)
+ (33.3333 0.0000) (47.6190 4.7619) (57.1429 14.2857) (61.9048 28.5714)
+ (61.9048 33.3333) (57.1429 47.6190) (47.6190 57.1429) (33.3333 61.9048)
+ (28.5714 61.9048) (14.2857 57.1429) (4.7619 47.6190) (0.0000 33.3333)
+INDEX 55 STROKE 2 CENTER 33.3333 RIGHT 66.6667
+ OPEN 2 (66.6667 100.0000) (19.0476 0.0000)
+ OPEN 2 (0.0000 100.0000) (66.6667 100.0000)
+INDEX 56 STROKE 1 CENTER 33.3333 RIGHT 66.6667
+ OPEN 29 (23.8095 100.0000) (9.5238 95.2381) (4.7619 85.7143)
+ (4.7619 76.1905) (9.5238 66.6667) (19.0476 61.9048) (38.0952 57.1429)
+ (52.3810 52.3810) (61.9048 42.8571) (66.6667 33.3333) (66.6667 19.0476)
+ (61.9048 9.5238) (57.1429 4.7619) (42.8571 0.0000) (23.8095 0.0000)
+ (9.5238 4.7619) (4.7619 9.5238) (0.0000 19.0476) (0.0000 33.3333)
+ (4.7619 42.8571) (14.2857 52.3810) (28.5714 57.1429) (47.6190 61.9048)
+ (57.1429 66.6667) (61.9048 76.1905) (61.9048 85.7143) (57.1429 95.2381)
+ (42.8571 100.0000) (23.8095 100.0000)
+INDEX 57 STROKE 1 CENTER 33.3333 RIGHT 61.9048
+ OPEN 23 (61.9048 66.6667) (57.1429 52.3810) (47.6190 42.8571)
+ (33.3333 38.0952) (28.5714 38.0952) (14.2857 42.8571) (4.7619 52.3810)
+ (0.0000 66.6667) (0.0000 71.4286) (4.7619 85.7143) (14.2857 95.2381)
+ (28.5714 100.0000) (33.3333 100.0000) (47.6190 95.2381) (57.1429 85.7143)
+ (61.9048 66.6667) (61.9048 42.8571) (57.1429 19.0476) (47.6190 4.7619)
+ (33.3333 0.0000) (23.8095 0.0000) (9.5238 4.7619) (4.7619 14.2857)
+INDEX 58 STROKE 2 CENTER 4.7619 RIGHT 9.5238
+ OPEN 5 (4.7619 66.6667) (0.0000 61.9048) (4.7619 57.1429)
+ (9.5238 61.9048) (4.7619 66.6667)
+ OPEN 5 (4.7619 9.5238) (0.0000 4.7619) (4.7619 0.0000)
+ (9.5238 4.7619) (4.7619 9.5238)
+INDEX 59 STROKE 2 CENTER 4.7619 RIGHT 9.5238
+ OPEN 5 (4.7619 66.6667) (0.0000 61.9048) (4.7619 57.1429)
+ (9.5238 61.9048) (4.7619 66.6667)
+ OPEN 8 (9.5238 4.7619) (4.7619 0.0000) (0.0000 4.7619)
+ (4.7619 9.5238) (9.5238 4.7619) (9.5238 -4.7619) (4.7619 -14.2857)
+ (0.0000 -19.0476)
+INDEX 60 STROKE 1 CENTER 38.0952 RIGHT 76.1905
+ OPEN 3 (76.1905 85.7143) (0.0000 42.8571) (76.1905 0.0000)
+INDEX 61 STROKE 2 CENTER 42.8571 RIGHT 85.7143
+ OPEN 2 (0.0000 57.1429) (85.7143 57.1429)
+ OPEN 2 (0.0000 28.5714) (85.7143 28.5714)
+INDEX 62 STROKE 1 CENTER 38.0952 RIGHT 76.1905
+ OPEN 3 (0.0000 85.7143) (76.1905 42.8571) (0.0000 0.0000)
+INDEX 63 STROKE 2 CENTER 28.5714 RIGHT 57.1429
+ OPEN 14 (0.0000 76.1905) (0.0000 80.9524) (4.7619 90.4762)
+ (9.5238 95.2381) (19.0476 100.0000) (38.0952 100.0000) (47.6190 95.2381)
+ (52.3810 90.4762) (57.1429 80.9524) (57.1429 71.4286) (52.3810 61.9048)
+ (47.6190 57.1429) (28.5714 47.6190) (28.5714 33.3333)
+ OPEN 5 (28.5714 9.5238) (23.8095 4.7619) (28.5714 0.0000)
+ (33.3333 4.7619) (28.5714 9.5238)
+INDEX 64 STROKE 2 CENTER 28.5714 RIGHT 61.9048
+ OPEN 8 (42.8571 52.3810) (33.3333 57.1429) (23.8095 57.1429)
+ (19.0476 47.6190) (19.0476 42.8571) (23.8095 33.3333) (33.3333 33.3333)
+ (42.8571 38.0952)
+ OPEN 19 (42.8571 57.1429) (42.8571 38.0952) (47.6190 33.3333)
+ (57.1429 33.3333) (61.9048 42.8571) (61.9048 47.6190) (57.1429 61.9048)
+ (47.6190 71.4286) (33.3333 76.1905) (28.5714 76.1905) (14.2857 71.4286)
+ (4.7619 61.9048) (0.0000 47.6190) (0.0000 42.8571) (4.7619 28.5714)
+ (14.2857 19.0476) (28.5714 14.2857) (33.3333 14.2857) (47.6190 19.0476)
+INDEX 65 STROKE 3 CENTER 38.0952 RIGHT 76.1905
+ OPEN 2 (38.0952 100.0000) (0.0000 0.0000)
+ OPEN 2 (38.0952 100.0000) (76.1905 0.0000)
+ OPEN 2 (14.2857 33.3333) (61.9048 33.3333)
+INDEX 66 STROKE 3 CENTER 33.3333 RIGHT 66.6667
+ OPEN 2 (0.0000 100.0000) (0.0000 0.0000)
+ OPEN 9 (0.0000 100.0000) (42.8571 100.0000) (57.1429 95.2381)
+ (61.9048 90.4762) (66.6667 80.9524) (66.6667 71.4286) (61.9048 61.9048)
+ (57.1429 57.1429) (42.8571 52.3810)
+ OPEN 10 (0.0000 52.3810) (42.8571 52.3810) (57.1429 47.6190)
+ (61.9048 42.8571) (66.6667 33.3333) (66.6667 19.0476) (61.9048 9.5238)
+ (57.1429 4.7619) (42.8571 0.0000) (0.0000 0.0000)
+INDEX 67 STROKE 1 CENTER 33.3333 RIGHT 71.4286
+ OPEN 18 (71.4286 76.1905) (66.6667 85.7143) (57.1429 95.2381)
+ (47.6190 100.0000) (28.5714 100.0000) (19.0476 95.2381) (9.5238 85.7143)
+ (4.7619 76.1905) (0.0000 61.9048) (0.0000 38.0952) (4.7619 23.8095)
+ (9.5238 14.2857) (19.0476 4.7619) (28.5714 0.0000) (47.6190 0.0000)
+ (57.1429 4.7619) (66.6667 14.2857) (71.4286 23.8095)
+INDEX 68 STROKE 2 CENTER 33.3333 RIGHT 66.6667
+ OPEN 2 (0.0000 100.0000) (0.0000 0.0000)
+ OPEN 12 (0.0000 100.0000) (33.3333 100.0000) (47.6190 95.2381)
+ (57.1429 85.7143) (61.9048 76.1905) (66.6667 61.9048) (66.6667 38.0952)
+ (61.9048 23.8095) (57.1429 14.2857) (47.6190 4.7619) (33.3333 0.0000)
+ (0.0000 0.0000)
+INDEX 69 STROKE 4 CENTER 28.5714 RIGHT 61.9048
+ OPEN 2 (0.0000 100.0000) (0.0000 0.0000)
+ OPEN 2 (0.0000 100.0000) (61.9048 100.0000)
+ OPEN 2 (0.0000 52.3810) (38.0952 52.3810)
+ OPEN 2 (0.0000 0.0000) (61.9048 0.0000)
+INDEX 70 STROKE 3 CENTER 28.5714 RIGHT 61.9048
+ OPEN 2 (0.0000 100.0000) (0.0000 0.0000)
+ OPEN 2 (0.0000 100.0000) (61.9048 100.0000)
+ OPEN 2 (0.0000 52.3810) (38.0952 52.3810)
+INDEX 71 STROKE 2 CENTER 33.3333 RIGHT 71.4286
+ OPEN 19 (71.4286 76.1905) (66.6667 85.7143) (57.1429 95.2381)
+ (47.6190 100.0000) (28.5714 100.0000) (19.0476 95.2381) (9.5238 85.7143)
+ (4.7619 76.1905) (0.0000 61.9048) (0.0000 38.0952) (4.7619 23.8095)
+ (9.5238 14.2857) (19.0476 4.7619) (28.5714 0.0000) (47.6190 0.0000)
+ (57.1429 4.7619) (66.6667 14.2857) (71.4286 23.8095) (71.4286 38.0952)
+ OPEN 2 (47.6190 38.0952) (71.4286 38.0952)
+INDEX 72 STROKE 3 CENTER 33.3333 RIGHT 66.6667
+ OPEN 2 (0.0000 100.0000) (0.0000 0.0000)
+ OPEN 2 (66.6667 100.0000) (66.6667 0.0000)
+ OPEN 2 (0.0000 52.3810) (66.6667 52.3810)
+INDEX 73 STROKE 1 CENTER 0.0000 RIGHT 0.0000
+ OPEN 2 (0.0000 100.0000) (0.0000 0.0000)
+INDEX 74 STROKE 1 CENTER 28.5714 RIGHT 47.6190
+ OPEN 10 (47.6190 100.0000) (47.6190 23.8095) (42.8571 9.5238)
+ (38.0952 4.7619) (28.5714 0.0000) (19.0476 0.0000) (9.5238 4.7619)
+ (4.7619 9.5238) (0.0000 23.8095) (0.0000 33.3333)
+INDEX 75 STROKE 3 CENTER 33.3333 RIGHT 66.6667
+ OPEN 2 (0.0000 100.0000) (0.0000 0.0000)
+ OPEN 2 (66.6667 100.0000) (0.0000 33.3333)
+ OPEN 2 (23.8095 57.1429) (66.6667 0.0000)
+INDEX 76 STROKE 2 CENTER 28.5714 RIGHT 57.1429
+ OPEN 2 (0.0000 100.0000) (0.0000 0.0000)
+ OPEN 2 (0.0000 0.0000) (57.1429 0.0000)
+INDEX 77 STROKE 4 CENTER 38.0952 RIGHT 76.1905
+ OPEN 2 (0.0000 100.0000) (0.0000 0.0000)
+ OPEN 2 (0.0000 100.0000) (38.0952 0.0000)
+ OPEN 2 (76.1905 100.0000) (38.0952 0.0000)
+ OPEN 2 (76.1905 100.0000) (76.1905 0.0000)
+INDEX 78 STROKE 3 CENTER 33.3333 RIGHT 66.6667
+ OPEN 2 (0.0000 100.0000) (0.0000 0.0000)
+ OPEN 2 (0.0000 100.0000) (66.6667 0.0000)
+ OPEN 2 (66.6667 100.0000) (66.6667 0.0000)
+INDEX 79 STROKE 1 CENTER 38.0952 RIGHT 76.1905
+ OPEN 21 (28.5714 100.0000) (19.0476 95.2381) (9.5238 85.7143)
+ (4.7619 76.1905) (0.0000 61.9048) (0.0000 38.0952) (4.7619 23.8095)
+ (9.5238 14.2857) (19.0476 4.7619) (28.5714 0.0000) (47.6190 0.0000)
+ (57.1429 4.7619) (66.6667 14.2857) (71.4286 23.8095) (76.1905 38.0952)
+ (76.1905 61.9048) (71.4286 76.1905) (66.6667 85.7143) (57.1429 95.2381)
+ (47.6190 100.0000) (28.5714 100.0000)
+INDEX 80 STROKE 2 CENTER 33.3333 RIGHT 66.6667
+ OPEN 2 (0.0000 100.0000) (0.0000 0.0000)
+ OPEN 10 (0.0000 100.0000) (42.8571 100.0000) (57.1429 95.2381)
+ (61.9048 90.4762) (66.6667 80.9524) (66.6667 66.6667) (61.9048 57.1429)
+ (57.1429 52.3810) (42.8571 47.6190) (0.0000 47.6190)
+INDEX 81 STROKE 2 CENTER 38.0952 RIGHT 76.1905
+ OPEN 21 (28.5714 100.0000) (19.0476 95.2381) (9.5238 85.7143)
+ (4.7619 76.1905) (0.0000 61.9048) (0.0000 38.0952) (4.7619 23.8095)
+ (9.5238 14.2857) (19.0476 4.7619) (28.5714 0.0000) (47.6190 0.0000)
+ (57.1429 4.7619) (66.6667 14.2857) (71.4286 23.8095) (76.1905 38.0952)
+ (76.1905 61.9048) (71.4286 76.1905) (66.6667 85.7143) (57.1429 95.2381)
+ (47.6190 100.0000) (28.5714 100.0000)
+ OPEN 2 (42.8571 19.0476) (71.4286 -9.5238)
+INDEX 82 STROKE 3 CENTER 33.3333 RIGHT 66.6667
+ OPEN 2 (0.0000 100.0000) (0.0000 0.0000)
+ OPEN 10 (0.0000 100.0000) (42.8571 100.0000) (57.1429 95.2381)
+ (61.9048 90.4762) (66.6667 80.9524) (66.6667 71.4286) (61.9048 61.9048)
+ (57.1429 57.1429) (42.8571 52.3810) (0.0000 52.3810)
+ OPEN 2 (33.3333 52.3810) (66.6667 0.0000)
+INDEX 83 STROKE 1 CENTER 33.3333 RIGHT 66.6667
+ OPEN 20 (66.6667 85.7143) (57.1429 95.2381) (42.8571 100.0000)
+ (23.8095 100.0000) (9.5238 95.2381) (0.0000 85.7143) (0.0000 76.1905)
+ (4.7619 66.6667) (9.5238 61.9048) (19.0476 57.1429) (47.6190 47.6190)
+ (57.1429 42.8571) (61.9048 38.0952) (66.6667 28.5714) (66.6667 14.2857)
+ (57.1429 4.7619) (42.8571 0.0000) (23.8095 0.0000) (9.5238 4.7619)
+ (0.0000 14.2857)
+INDEX 84 STROKE 2 CENTER 33.3333 RIGHT 66.6667
+ OPEN 2 (33.3333 100.0000) (33.3333 0.0000)
+ OPEN 2 (0.0000 100.0000) (66.6667 100.0000)
+INDEX 85 STROKE 1 CENTER 33.3333 RIGHT 66.6667
+ OPEN 10 (0.0000 100.0000) (0.0000 28.5714) (4.7619 14.2857)
+ (14.2857 4.7619) (28.5714 0.0000) (38.0952 0.0000) (52.3810 4.7619)
+ (61.9048 14.2857) (66.6667 28.5714) (66.6667 100.0000)
+INDEX 86 STROKE 2 CENTER 38.0952 RIGHT 76.1905
+ OPEN 2 (0.0000 100.0000) (38.0952 0.0000)
+ OPEN 2 (76.1905 100.0000) (38.0952 0.0000)
+INDEX 87 STROKE 4 CENTER 47.6190 RIGHT 95.2381
+ OPEN 2 (0.0000 100.0000) (23.8095 0.0000)
+ OPEN 2 (47.6190 100.0000) (23.8095 0.0000)
+ OPEN 2 (47.6190 100.0000) (71.4286 0.0000)
+ OPEN 2 (95.2381 100.0000) (71.4286 0.0000)
+INDEX 88 STROKE 2 CENTER 33.3333 RIGHT 66.6667
+ OPEN 2 (0.0000 100.0000) (66.6667 0.0000)
+ OPEN 2 (66.6667 100.0000) (0.0000 0.0000)
+INDEX 89 STROKE 2 CENTER 38.0952 RIGHT 76.1905
+ OPEN 3 (0.0000 100.0000) (38.0952 52.3810) (38.0952 0.0000)
+ OPEN 2 (76.1905 100.0000) (38.0952 52.3810)
+INDEX 90 STROKE 3 CENTER 33.3333 RIGHT 66.6667
+ OPEN 2 (66.6667 100.0000) (0.0000 0.0000)
+ OPEN 2 (0.0000 100.0000) (66.6667 100.0000)
+ OPEN 2 (0.0000 0.0000) (66.6667 0.0000)
+INDEX 91 STROKE 4 CENTER 14.2857 RIGHT 33.3333
+ OPEN 2 (0.0000 119.0476) (0.0000 -33.3333)
+ OPEN 2 (4.7619 119.0476) (4.7619 -33.3333)
+ OPEN 2 (0.0000 119.0476) (33.3333 119.0476)
+ OPEN 2 (0.0000 -33.3333) (33.3333 -33.3333)
+INDEX 92 STROKE 1 CENTER 33.3333 RIGHT 66.6667
+ OPEN 2 (0.0000 100.0000) (66.6667 -14.2857)
+INDEX 93 STROKE 4 CENTER 19.0476 RIGHT 33.3333
+ OPEN 2 (28.5714 119.0476) (28.5714 -33.3333)
+ OPEN 2 (33.3333 119.0476) (33.3333 -33.3333)
+ OPEN 2 (0.0000 119.0476) (33.3333 119.0476)
+ OPEN 2 (0.0000 -33.3333) (33.3333 -33.3333)
+INDEX 94 STROKE 2 CENTER 38.0952 RIGHT 76.1905
+ OPEN 2 (38.0952 109.5238) (0.0000 42.8571)
+ OPEN 2 (38.0952 109.5238) (76.1905 42.8571)
+INDEX 95 STROKE 1 CENTER 52.3810 RIGHT 104.7619
+ OPEN 5 (0.0000 -33.3333) (104.7619 -33.3333) (104.7619 -28.5714)
+ (0.0000 -28.5714) (0.0000 -33.3333)
+INDEX 96 STROKE 2 CENTER 14.2857 RIGHT 28.5714
+ OPEN 2 (4.7619 100.0000) (28.5714 71.4286)
+ OPEN 3 (4.7619 100.0000) (0.0000 95.2381) (28.5714 71.4286)
+INDEX 97 STROKE 2 CENTER 28.5714 RIGHT 57.1429
+ OPEN 2 (57.1429 66.6667) (57.1429 0.0000)
+ OPEN 14 (57.1429 52.3810) (47.6190 61.9048) (38.0952 66.6667)
+ (23.8095 66.6667) (14.2857 61.9048) (4.7619 52.3810) (0.0000 38.0952)
+ (0.0000 28.5714) (4.7619 14.2857) (14.2857 4.7619) (23.8095 0.0000)
+ (38.0952 0.0000) (47.6190 4.7619) (57.1429 14.2857)
+INDEX 98 STROKE 2 CENTER 28.5714 RIGHT 57.1429
+ OPEN 2 (0.0000 100.0000) (0.0000 0.0000)
+ OPEN 14 (0.0000 52.3810) (9.5238 61.9048) (19.0476 66.6667)
+ (33.3333 66.6667) (42.8571 61.9048) (52.3810 52.3810) (57.1429 38.0952)
+ (57.1429 28.5714) (52.3810 14.2857) (42.8571 4.7619) (33.3333 0.0000)
+ (19.0476 0.0000) (9.5238 4.7619) (0.0000 14.2857)
+INDEX 99 STROKE 1 CENTER 28.5714 RIGHT 57.1429
+ OPEN 14 (57.1429 52.3810) (47.6190 61.9048) (38.0952 66.6667)
+ (23.8095 66.6667) (14.2857 61.9048) (4.7619 52.3810) (0.0000 38.0952)
+ (0.0000 28.5714) (4.7619 14.2857) (14.2857 4.7619) (23.8095 0.0000)
+ (38.0952 0.0000) (47.6190 4.7619) (57.1429 14.2857)
+INDEX 100 STROKE 2 CENTER 28.5714 RIGHT 57.1429
+ OPEN 2 (57.1429 100.0000) (57.1429 0.0000)
+ OPEN 14 (57.1429 52.3810) (47.6190 61.9048) (38.0952 66.6667)
+ (23.8095 66.6667) (14.2857 61.9048) (4.7619 52.3810) (0.0000 38.0952)
+ (0.0000 28.5714) (4.7619 14.2857) (14.2857 4.7619) (23.8095 0.0000)
+ (38.0952 0.0000) (47.6190 4.7619) (57.1429 14.2857)
+INDEX 101 STROKE 1 CENTER 28.5714 RIGHT 57.1429
+ OPEN 17 (0.0000 38.0952) (57.1429 38.0952) (57.1429 47.6190)
+ (52.3810 57.1429) (47.6190 61.9048) (38.0952 66.6667) (23.8095 66.6667)
+ (14.2857 61.9048) (4.7619 52.3810) (0.0000 38.0952) (0.0000 28.5714)
+ (4.7619 14.2857) (14.2857 4.7619) (23.8095 0.0000) (38.0952 0.0000)
+ (47.6190 4.7619) (57.1429 14.2857)
+INDEX 102 STROKE 2 CENTER 14.2857 RIGHT 38.0952
+ OPEN 5 (38.0952 100.0000) (28.5714 100.0000) (19.0476 95.2381)
+ (14.2857 80.9524) (14.2857 0.0000)
+ OPEN 2 (0.0000 66.6667) (33.3333 66.6667)
+INDEX 103 STROKE 2 CENTER 28.5714 RIGHT 57.1429
+ OPEN 7 (57.1429 66.6667) (57.1429 -9.5238) (52.3810 -23.8095)
+ (47.6190 -28.5714) (38.0952 -33.3333) (23.8095 -33.3333) (14.2857 -28.5714)
+ OPEN 14 (57.1429 52.3810) (47.6190 61.9048) (38.0952 66.6667)
+ (23.8095 66.6667) (14.2857 61.9048) (4.7619 52.3810) (0.0000 38.0952)
+ (0.0000 28.5714) (4.7619 14.2857) (14.2857 4.7619) (23.8095 0.0000)
+ (38.0952 0.0000) (47.6190 4.7619) (57.1429 14.2857)
+INDEX 104 STROKE 2 CENTER 23.8095 RIGHT 52.3810
+ OPEN 2 (0.0000 100.0000) (0.0000 0.0000)
+ OPEN 7 (0.0000 47.6190) (14.2857 61.9048) (23.8095 66.6667)
+ (38.0952 66.6667) (47.6190 61.9048) (52.3810 47.6190) (52.3810 0.0000)
+INDEX 105 STROKE 2 CENTER 4.7619 RIGHT 9.5238
+ OPEN 5 (0.0000 100.0000) (4.7619 95.2381) (9.5238 100.0000)
+ (4.7619 104.7619) (0.0000 100.0000)
+ OPEN 2 (4.7619 66.6667) (4.7619 0.0000)
+INDEX 106 STROKE 2 CENTER 19.0476 RIGHT 28.5714
+ OPEN 5 (19.0476 100.0000) (23.8095 95.2381) (28.5714 100.0000)
+ (23.8095 104.7619) (19.0476 100.0000)
+ OPEN 5 (23.8095 66.6667) (23.8095 -14.2857) (19.0476 -28.5714)
+ (9.5238 -33.3333) (0.0000 -33.3333)
+INDEX 107 STROKE 3 CENTER 23.8095 RIGHT 52.3810
+ OPEN 2 (0.0000 100.0000) (0.0000 0.0000)
+ OPEN 2 (47.6190 66.6667) (0.0000 19.0476)
+ OPEN 2 (19.0476 38.0952) (52.3810 0.0000)
+INDEX 108 STROKE 1 CENTER 0.0000 RIGHT 0.0000
+ OPEN 2 (0.0000 100.0000) (0.0000 0.0000)
+INDEX 109 STROKE 3 CENTER 52.3810 RIGHT 104.7619
+ OPEN 2 (0.0000 66.6667) (0.0000 0.0000)
+ OPEN 7 (0.0000 47.6190) (14.2857 61.9048) (23.8095 66.6667)
+ (38.0952 66.6667) (47.6190 61.9048) (52.3810 47.6190) (52.3810 0.0000)
+ OPEN 7 (52.3810 47.6190) (66.6667 61.9048) (76.1905 66.6667)
+ (90.4762 66.6667) (100.0000 61.9048) (104.7619 47.6190) (104.7619 0.0000)
+INDEX 110 STROKE 2 CENTER 23.8095 RIGHT 52.3810
+ OPEN 2 (0.0000 66.6667) (0.0000 0.0000)
+ OPEN 7 (0.0000 47.6190) (14.2857 61.9048) (23.8095 66.6667)
+ (38.0952 66.6667) (47.6190 61.9048) (52.3810 47.6190) (52.3810 0.0000)
+INDEX 111 STROKE 1 CENTER 28.5714 RIGHT 61.9048
+ OPEN 17 (23.8095 66.6667) (14.2857 61.9048) (4.7619 52.3810)
+ (0.0000 38.0952) (0.0000 28.5714) (4.7619 14.2857) (14.2857 4.7619)
+ (23.8095 0.0000) (38.0952 0.0000) (47.6190 4.7619) (57.1429 14.2857)
+ (61.9048 28.5714) (61.9048 38.0952) (57.1429 52.3810) (47.6190 61.9048)
+ (38.0952 66.6667) (23.8095 66.6667)
+INDEX 112 STROKE 2 CENTER 28.5714 RIGHT 57.1429
+ OPEN 2 (0.0000 66.6667) (0.0000 -33.3333)
+ OPEN 14 (0.0000 52.3810) (9.5238 61.9048) (19.0476 66.6667)
+ (33.3333 66.6667) (42.8571 61.9048) (52.3810 52.3810) (57.1429 38.0952)
+ (57.1429 28.5714) (52.3810 14.2857) (42.8571 4.7619) (33.3333 0.0000)
+ (19.0476 0.0000) (9.5238 4.7619) (0.0000 14.2857)
+INDEX 113 STROKE 2 CENTER 28.5714 RIGHT 57.1429
+ OPEN 2 (57.1429 66.6667) (57.1429 -33.3333)
+ OPEN 14 (57.1429 52.3810) (47.6190 61.9048) (38.0952 66.6667)
+ (23.8095 66.6667) (14.2857 61.9048) (4.7619 52.3810) (0.0000 38.0952)
+ (0.0000 28.5714) (4.7619 14.2857) (14.2857 4.7619) (23.8095 0.0000)
+ (38.0952 0.0000) (47.6190 4.7619) (57.1429 14.2857)
+INDEX 114 STROKE 2 CENTER 14.2857 RIGHT 38.0952
+ OPEN 2 (0.0000 66.6667) (0.0000 0.0000)
+ OPEN 5 (0.0000 38.0952) (4.7619 52.3810) (14.2857 61.9048)
+ (23.8095 66.6667) (38.0952 66.6667)
+INDEX 115 STROKE 1 CENTER 23.8095 RIGHT 52.3810
+ OPEN 17 (52.3810 52.3810) (47.6190 61.9048) (33.3333 66.6667)
+ (19.0476 66.6667) (4.7619 61.9048) (0.0000 52.3810) (4.7619 42.8571)
+ (14.2857 38.0952) (38.0952 33.3333) (47.6190 28.5714) (52.3810 19.0476)
+ (52.3810 14.2857) (47.6190 4.7619) (33.3333 0.0000) (19.0476 0.0000)
+ (4.7619 4.7619) (0.0000 14.2857)
+INDEX 116 STROKE 2 CENTER 14.2857 RIGHT 38.0952
+ OPEN 5 (14.2857 100.0000) (14.2857 19.0476) (19.0476 4.7619)
+ (28.5714 0.0000) (38.0952 0.0000)
+ OPEN 2 (0.0000 66.6667) (33.3333 66.6667)
+INDEX 117 STROKE 2 CENTER 23.8095 RIGHT 52.3810
+ OPEN 7 (0.0000 66.6667) (0.0000 19.0476) (4.7619 4.7619)
+ (14.2857 0.0000) (28.5714 0.0000) (38.0952 4.7619) (52.3810 19.0476)
+ OPEN 2 (52.3810 66.6667) (52.3810 0.0000)
+INDEX 118 STROKE 2 CENTER 28.5714 RIGHT 57.1429
+ OPEN 2 (0.0000 66.6667) (28.5714 0.0000)
+ OPEN 2 (57.1429 66.6667) (28.5714 0.0000)
+INDEX 119 STROKE 4 CENTER 38.0952 RIGHT 76.1905
+ OPEN 2 (0.0000 66.6667) (19.0476 0.0000)
+ OPEN 2 (38.0952 66.6667) (19.0476 0.0000)
+ OPEN 2 (38.0952 66.6667) (57.1429 0.0000)
+ OPEN 2 (76.1905 66.6667) (57.1429 0.0000)
+INDEX 120 STROKE 2 CENTER 23.8095 RIGHT 52.3810
+ OPEN 2 (0.0000 66.6667) (52.3810 0.0000)
+ OPEN 2 (52.3810 66.6667) (0.0000 0.0000)
+INDEX 121 STROKE 2 CENTER 33.3333 RIGHT 61.9048
+ OPEN 2 (4.7619 66.6667) (33.3333 0.0000)
+ OPEN 6 (61.9048 66.6667) (33.3333 0.0000) (23.8095 -19.0476)
+ (14.2857 -28.5714) (4.7619 -33.3333) (0.0000 -33.3333)
+INDEX 122 STROKE 3 CENTER 23.8095 RIGHT 52.3810
+ OPEN 2 (52.3810 66.6667) (0.0000 0.0000)
+ OPEN 2 (0.0000 66.6667) (52.3810 66.6667)
+ OPEN 2 (0.0000 0.0000) (52.3810 0.0000)
+INDEX 123 STROKE 3 CENTER 14.2857 RIGHT 23.8095
+ OPEN 10 (23.8095 119.0476) (14.2857 114.2857) (9.5238 109.5238)
+ (4.7619 100.0000) (4.7619 90.4762) (9.5238 80.9524) (14.2857 76.1905)
+ (19.0476 66.6667) (19.0476 57.1429) (9.5238 47.6190)
+ OPEN 17 (14.2857 114.2857) (9.5238 104.7619) (9.5238 95.2381)
+ (14.2857 85.7143) (19.0476 80.9524) (23.8095 71.4286) (23.8095 61.9048)
+ (19.0476 52.3810) (0.0000 42.8571) (19.0476 33.3333) (23.8095 23.8095)
+ (23.8095 14.2857) (19.0476 4.7619) (14.2857 0.0000) (9.5238 -9.5238)
+ (9.5238 -19.0476) (14.2857 -28.5714)
+ OPEN 10 (9.5238 38.0952) (19.0476 28.5714) (19.0476 19.0476)
+ (14.2857 9.5238) (9.5238 4.7619) (4.7619 -4.7619) (4.7619 -14.2857)
+ (9.5238 -23.8095) (14.2857 -28.5714) (23.8095 -33.3333)
+INDEX 124 STROKE 1 CENTER 0.0000 RIGHT 0.0000
+ OPEN 2 (0.0000 119.0476) (0.0000 -33.3333)
+INDEX 125 STROKE 3 CENTER 9.5238 RIGHT 23.8095
+ OPEN 10 (0.0000 119.0476) (9.5238 114.2857) (14.2857 109.5238)
+ (19.0476 100.0000) (19.0476 90.4762) (14.2857 80.9524) (9.5238 76.1905)
+ (4.7619 66.6667) (4.7619 57.1429) (14.2857 47.6190)
+ OPEN 17 (9.5238 114.2857) (14.2857 104.7619) (14.2857 95.2381)
+ (9.5238 85.7143) (4.7619 80.9524) (0.0000 71.4286) (0.0000 61.9048)
+ (4.7619 52.3810) (23.8095 42.8571) (4.7619 33.3333) (0.0000 23.8095)
+ (0.0000 14.2857) (4.7619 4.7619) (9.5238 0.0000) (14.2857 -9.5238)
+ (14.2857 -19.0476) (9.5238 -28.5714)
+ OPEN 10 (14.2857 38.0952) (4.7619 28.5714) (4.7619 19.0476)
+ (9.5238 9.5238) (14.2857 4.7619) (19.0476 -4.7619) (19.0476 -14.2857)
+ (14.2857 -23.8095) (9.5238 -28.5714) (0.0000 -33.3333)
+INDEX 126 STROKE 2 CENTER 42.8571 RIGHT 85.7143
+ OPEN 11 (0.0000 28.5714) (0.0000 38.0952) (4.7619 52.3810)
+ (14.2857 57.1429) (23.8095 57.1429) (33.3333 52.3810) (52.3810 38.0952)
+ (61.9048 33.3333) (71.4286 33.3333) (80.9524 38.0952) (85.7143 47.6190)
+ OPEN 11 (0.0000 38.0952) (4.7619 47.6190) (14.2857 52.3810)
+ (23.8095 52.3810) (33.3333 47.6190) (52.3810 33.3333) (61.9048 28.5714)
+ (71.4286 28.5714) (80.9524 33.3333) (85.7143 47.6190) (85.7143 57.1429)
+INDEX 127 STROKE 2 CENTER 33.3333 RIGHT 66.6667
+ OPEN 2 (52.3810 100.0000) (14.2857 -33.3333)
+ OPEN 17 (28.5714 66.6667) (14.2857 61.9048) (4.7619 52.3810)
+ (0.0000 38.0952) (0.0000 23.8095) (4.7619 14.2857) (14.2857 4.7619)
+ (28.5714 0.0000) (38.0952 0.0000) (52.3810 4.7619) (61.9048 14.2857)
+ (66.6667 28.5714) (66.6667 42.8571) (61.9048 52.3810) (52.3810 61.9048)
+ (38.0952 66.6667) (28.5714 66.6667)
+
+
+
+#/* NCGA GRAFNET:SANS-SERIF NORMAL*/
+
+BEARING 32 L_SPACE 0.0 WIDTH 20.0 R_SPACE 0.0
+BEARING 33 L_SPACE 8.62 WIDTH 13.64 R_SPACE 8.48
+BEARING 34 L_SPACE 4.02 WIDTH 32.86 R_SPACE 9.32
+BEARING 35 L_SPACE 3.2 WIDTH 68.94 R_SPACE 4.86
+BEARING 36 L_SPACE 4.82 WIDTH 67.44 R_SPACE 4.72
+BEARING 37 L_SPACE 6.36 WIDTH 112.38 R_SPACE 4.5
+BEARING 38 L_SPACE 5.98 WIDTH 82.02 R_SPACE 0.54
+BEARING 39 L_SPACE 4.44 WIDTH 13.36 R_SPACE 9.18
+BEARING 40 L_SPACE 7.58 WIDTH 24.72 R_SPACE 6.26
+BEARING 41 L_SPACE 5.28 WIDTH 24.34 R_SPACE 8.92
+BEARING 42 L_SPACE 6.96 WIDTH 42.06 R_SPACE 4.86
+BEARING 43 L_SPACE 5.98 WIDTH 96.36 R_SPACE 5.56
+BEARING 44 L_SPACE 8.76 WIDTH 14.2 R_SPACE 7.78
+BEARING 45 L_SPACE 7.38 WIDTH 38.84 R_SPACE 7.66
+BEARING 46 L_SPACE 8.34 WIDTH 13.78 R_SPACE 8.62
+BEARING 47 L_SPACE 7.24 WIDTH 38.44 R_SPACE 8.2
+BEARING 48 L_SPACE 4.98 WIDTH 66.58 R_SPACE 5.42
+BEARING 49 L_SPACE 11.82 WIDTH 34.26 R_SPACE 30.9
+BEARING 50 L_SPACE 5.42 WIDTH 66.0 R_SPACE 5.56
+BEARING 51 L_SPACE 5.0 WIDTH 66.62 R_SPACE 5.38
+BEARING 52 L_SPACE 3.88 WIDTH 68.24 R_SPACE 4.86
+BEARING 53 L_SPACE 4.86 WIDTH 65.96 R_SPACE 6.16
+BEARING 54 L_SPACE 5.58 WIDTH 65.08 R_SPACE 6.32
+BEARING 55 L_SPACE 5.56 WIDTH 66.42 R_SPACE 5.0
+BEARING 56 L_SPACE 5.6 WIDTH 65.98 R_SPACE 5.4
+BEARING 57 L_SPACE 6.6 WIDTH 64.82 R_SPACE 5.56
+BEARING 58 L_SPACE 9.32 WIDTH 14.06 R_SPACE 7.38
+BEARING 59 L_SPACE 8.2 WIDTH 13.96 R_SPACE 8.58
+BEARING 60 L_SPACE 3.06 WIDTH 102.5 R_SPACE 2.36
+BEARING 61 L_SPACE 5.7 WIDTH 96.36 R_SPACE 5.84
+BEARING 62 L_SPACE 2.78 WIDTH 102.5 R_SPACE 2.64
+BEARING 63 L_SPACE 8.42 WIDTH 60.22 R_SPACE 8.34
+BEARING 64 L_SPACE 6.36 WIDTH 126.24 R_SPACE 6.1
+BEARING 65 L_SPACE 2.5 WIDTH 88.16 R_SPACE 1.8
+BEARING 66 L_SPACE 11.42 WIDTH 75.5 R_SPACE 5.54
+BEARING 67 L_SPACE 6.66 WIDTH 87.06 R_SPACE 6.4
+BEARING 68 L_SPACE 11.96 WIDTH 81.48 R_SPACE 6.66
+BEARING 69 L_SPACE 11.42 WIDTH 72.28 R_SPACE 4.86
+BEARING 70 L_SPACE 11.42 WIDTH 67.96 R_SPACE 5.42
+BEARING 71 L_SPACE 7.06 WIDTH 89.56 R_SPACE 11.28
+BEARING 72 L_SPACE 11.42 WIDTH 77.7 R_SPACE 11.0
+BEARING 73 L_SPACE 10.86 WIDTH 13.36 R_SPACE 10.44
+BEARING 74 L_SPACE 2.5 WIDTH 56.96 R_SPACE 9.88
+BEARING 75 L_SPACE 11.28 WIDTH 79.8 R_SPACE 1.38
+BEARING 76 L_SPACE 11.68 WIDTH 62.8 R_SPACE 2.5
+BEARING 77 L_SPACE 10.86 WIDTH 94.56 R_SPACE 10.16
+BEARING 78 L_SPACE 11.14 WIDTH 77.98 R_SPACE 11.0
+BEARING 79 L_SPACE 6.24 WIDTH 95.28 R_SPACE 6.4
+BEARING 80 L_SPACE 12.1 WIDTH 73.44 R_SPACE 6.9
+BEARING 81 L_SPACE 5.3 WIDTH 96.0 R_SPACE 6.6
+BEARING 82 L_SPACE 11.68 WIDTH 80.64 R_SPACE 4.02
+BEARING 83 L_SPACE 8.0 WIDTH 78.28 R_SPACE 6.16
+BEARING 84 L_SPACE 2.36 WIDTH 79.52 R_SPACE 2.92
+BEARING 85 L_SPACE 11.54 WIDTH 77.28 R_SPACE 11.28
+BEARING 86 L_SPACE 2.36 WIDTH 87.04 R_SPACE 3.06
+BEARING 87 L_SPACE 2.22 WIDTH 125.76 R_SPACE 3.06
+BEARING 88 L_SPACE 2.5 WIDTH 86.76 R_SPACE 3.2
+BEARING 89 L_SPACE 1.52 WIDTH 88.98 R_SPACE 1.94
+BEARING 90 L_SPACE 2.5 WIDTH 77.7 R_SPACE 4.58
+BEARING 91 L_SPACE 7.78 WIDTH 25.76 R_SPACE 5.0
+BEARING 92 L_SPACE 5.84 WIDTH 73.24 R_SPACE 5.7
+BEARING 93 L_SPACE 4.44 WIDTH 25.48 R_SPACE 8.62
+BEARING 94 L_SPACE 5.98 WIDTH 55.28 R_SPACE 8.06
+BEARING 95 L_SPACE -1.1 WIDTH 70.04 R_SPACE 0.4
+BEARING 96 L_SPACE 28.26 WIDTH 25.9 R_SPACE 26.74
+BEARING 97 L_SPACE 6.68 WIDTH 67.54 R_SPACE 2.78
+BEARING 98 L_SPACE 8.76 WIDTH 63.66 R_SPACE 4.56
+BEARING 99 L_SPACE 5.52 WIDTH 61.46 R_SPACE 6.26
+BEARING 100 L_SPACE 4.64 WIDTH 63.88 R_SPACE 8.48
+BEARING 101 L_SPACE 5.72 WIDTH 65.62 R_SPACE 5.66
+BEARING 102 L_SPACE 0.68 WIDTH 34.12 R_SPACE -0.12
+BEARING 103 L_SPACE 5.36 WIDTH 63.16 R_SPACE 8.48
+BEARING 104 L_SPACE 9.6 WIDTH 58.34 R_SPACE 9.04
+BEARING 105 L_SPACE 10.02 WIDTH 11.42 R_SPACE 9.32
+BEARING 106 L_SPACE -1.66 WIDTH 23.1 R_SPACE 9.32
+BEARING 107 L_SPACE 9.6 WIDTH 59.18 R_SPACE 0.54
+BEARING 108 L_SPACE 10.02 WIDTH 11.42 R_SPACE 9.32
+BEARING 109 L_SPACE 9.6 WIDTH 96.36 R_SPACE 9.6
+BEARING 110 L_SPACE 9.18 WIDTH 58.48 R_SPACE 9.32
+BEARING 111 L_SPACE 4.98 WIDTH 67.14 R_SPACE 4.86
+BEARING 112 L_SPACE 9.46 WIDTH 63.34 R_SPACE 4.2
+BEARING 113 L_SPACE 4.84 WIDTH 63.38 R_SPACE 8.76
+BEARING 114 L_SPACE 9.46 WIDTH 34.8 R_SPACE 1.94
+BEARING 115 L_SPACE 4.7 WIDTH 59.4 R_SPACE 5.24
+BEARING 116 L_SPACE 0.54 WIDTH 33.42 R_SPACE 0.68
+BEARING 117 L_SPACE 9.46 WIDTH 58.2 R_SPACE 9.32
+BEARING 118 L_SPACE 1.8 WIDTH 65.86 R_SPACE 1.66
+BEARING 119 L_SPACE 2.5 WIDTH 95.82 R_SPACE 1.8
+BEARING 120 L_SPACE 1.66 WIDTH 65.32 R_SPACE 2.36
+BEARING 121 L_SPACE 1.8 WIDTH 65.18 R_SPACE 2.36
+BEARING 122 L_SPACE 4.44 WIDTH 59.88 R_SPACE 5.0
+BEARING 123 L_SPACE 7.38 WIDTH 36.06 R_SPACE 10.44
+BEARING 124 L_SPACE 11.54 WIDTH 6.96 R_SPACE 12.24
+BEARING 125 L_SPACE 9.18 WIDTH 36.2 R_SPACE 8.48
+BEARING 126 L_SPACE 2.92 WIDTH 102.36 R_SPACE 2.64
+
diff --git a/gl4java/utils/glut/fonts/StrokeCharRec.java b/gl4java/utils/glut/fonts/StrokeCharRec.java
new file mode 100644
index 0000000..f0fdec2
--- /dev/null
+++ b/gl4java/utils/glut/fonts/StrokeCharRec.java
@@ -0,0 +1,24 @@
+// Stroke Character Record
+// by Pontus Lidman
+// based on GLUT 3.7 glutstroke.h
+// this file Copyright 2000 MathCore AB
+//
+// This file/package is licensed under the terms of the LPGL
+// with the permission of Pontus Lidman / Mathcore !
+//
+
+package gl4java.utils.glut.fonts;
+
+public class StrokeCharRec {
+ public int num_strokes;
+ public StrokeRec[] stroke;
+ public float center;
+ public float right;
+
+ public StrokeCharRec(int n, StrokeRec[] strk, float c, float r) {
+ num_strokes=n;
+ stroke=strk;
+ center=c;
+ right=r;
+ }
+}
diff --git a/gl4java/utils/glut/fonts/StrokeFontRec.java b/gl4java/utils/glut/fonts/StrokeFontRec.java
new file mode 100644
index 0000000..0985da9
--- /dev/null
+++ b/gl4java/utils/glut/fonts/StrokeFontRec.java
@@ -0,0 +1,25 @@
+// Stroke Font Record
+// by Pontus Lidman
+// based on GLUT 3.7 glutstroke.h
+// this file Copyright 2000 MathCore AB
+//
+// This file/package is licensed under the terms of the LPGL
+// with the permission of Pontus Lidman / Mathcore !
+//
+
+package gl4java.utils.glut.fonts;
+
+public class StrokeFontRec {
+ public String name;
+ public int num_chars;
+ public StrokeCharRec[] ch;
+ public float top;
+ public float bottom;
+ public StrokeFontRec(String n, int num, StrokeCharRec[] c,float t, float b) {
+ name=n;
+ num_chars=num;
+ ch=c;
+ top=t;
+ bottom=b;
+ }
+}
diff --git a/gl4java/utils/glut/fonts/StrokeRec.java b/gl4java/utils/glut/fonts/StrokeRec.java
new file mode 100644
index 0000000..9bb4214
--- /dev/null
+++ b/gl4java/utils/glut/fonts/StrokeRec.java
@@ -0,0 +1,20 @@
+// Stroke Record
+// by Pontus Lidman
+// based on GLUT 3.7 glutstroke.h
+// this file Copyright 2000 MathCore AB
+//
+// This file/package is licensed under the terms of the LPGL
+// with the permission of Pontus Lidman / Mathcore !
+//
+
+package gl4java.utils.glut.fonts;
+
+public class StrokeRec {
+ public int num_coords;
+ public CoordRec[] coord;
+
+ public StrokeRec(int num, CoordRec[] c) {
+ num_coords=num;
+ coord=c;
+ }
+}
diff --git a/gl4java/utils/glut/fonts/capturexfont.c b/gl4java/utils/glut/fonts/capturexfont.c
new file mode 100644
index 0000000..4ce3fd4
--- /dev/null
+++ b/gl4java/utils/glut/fonts/capturexfont.c
@@ -0,0 +1,371 @@
+
+/* Copyright (c) Mark J. Kilgard, 1994. */
+
+/* This program is freely distributable without licensing fees
+ and is provided without guarantee or warrantee expressed or
+ implied. This program is -not- in the public domain. */
+
+/* capturexfont.c connects to an X server and downloads a
+ bitmap font from which a C source file is generated,
+ encoding the font for GLUT's use. Example usage:
+ capturexfont.c 9x15 glutBitmap9By15 > glut_9x15.c */
+
+/* Adapted to produce Java output
+ portions copyright 2000 MathCore AB */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <ctype.h>
+#include <GL/gl.h>
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+
+#define MAX_GLYPHS_PER_GRAB 512 /* This is big enough for 2^9
+ glyph character sets */
+
+/* TODO: add command line flag to turn on this (and test it of course) */
+static int win32_bugfix=0;
+
+static void
+outputChar(int num, int width, int height,
+ int xoff, int yoff, int advance, int data)
+{
+ if ((width == 0 || height == 0) && win32_bugfix) {
+ printf(" static final byte[] ch%ddata = { (byte)0x0 };\n", num);
+ printf(" static final BitmapCharRec ch%d = new BitmapCharRec(", num);
+ printf("%d,", 0);
+ printf("%d,", 0);
+ printf("%d,", xoff);
+ printf("%d,", yoff);
+ printf("%d,", advance);
+ printf("ch%ddata", num);
+ printf(");\n");
+ } else {
+ printf(" static final BitmapCharRec ch%d = new BitmapCharRec(", num);
+ printf("%d,", width);
+ printf("%d,", height);
+ printf("%d,", xoff);
+ printf("%d,", yoff);
+ printf("%d,", advance);
+ if (data) {
+ printf("ch%ddata", num);
+ } else {
+ printf("zerodata");
+ }
+ printf(");\n");
+ }
+ printf("\n");
+}
+
+/* Can't just use isprint because it only works for the range
+ of ASCII characters (ie, TRUE for isascii) and capturexfont
+ might be run on 16-bit fonts. */
+#define PRINTABLE(ch) (isascii(ch) ? isprint(ch) : 0)
+
+void
+captureXFont(Display * dpy, Font font, char *xfont, char *name)
+{
+ int first, last, count;
+ int cnt, len;
+ Pixmap offscreen;
+ Window drawable;
+ XFontStruct *fontinfo;
+ XImage *image;
+ GC xgc;
+ XGCValues values;
+ int width, height;
+ int i, j, k;
+ XCharStruct *charinfo;
+ XChar2b character;
+ GLubyte *bitmapData;
+ int x, y;
+ int spanLength;
+ int charWidth, charHeight, maxSpanLength, pixwidth;
+ int grabList[MAX_GLYPHS_PER_GRAB];
+ int glyphsPerGrab = MAX_GLYPHS_PER_GRAB;
+ int numToGrab;
+ int rows, pages, byte1, byte2, index;
+ int nullBitmap;
+
+ drawable = RootWindow(dpy, DefaultScreen(dpy));
+
+ fontinfo = XQueryFont(dpy, font);
+ pages = fontinfo->max_char_or_byte2 - fontinfo->min_char_or_byte2 + 1;
+ first = (fontinfo->min_byte1 << 8) + fontinfo->min_char_or_byte2;
+ last = (fontinfo->max_byte1 << 8) + fontinfo->max_char_or_byte2;
+ count = last - first + 1;
+
+ width = fontinfo->max_bounds.rbearing -
+ fontinfo->min_bounds.lbearing;
+ height = fontinfo->max_bounds.ascent +
+ fontinfo->max_bounds.descent;
+ /* 16-bit fonts have more than one row; indexing into
+ per_char is trickier. */
+ rows = fontinfo->max_byte1 - fontinfo->min_byte1 + 1;
+
+ maxSpanLength = (width + 7) / 8;
+ /* For portability reasons we don't use alloca for
+ bitmapData, but we could. */
+ bitmapData = malloc(height * maxSpanLength);
+ /* Be careful determining the width of the pixmap; the X
+ protocol allows pixmaps of width 2^16-1 (unsigned short
+ size) but drawing coordinates max out at 2^15-1 (signed
+ short size). If the width is too large, we need to limit
+ the glyphs per grab. */
+ if ((glyphsPerGrab * 8 * maxSpanLength) >= (1 << 15)) {
+ glyphsPerGrab = (1 << 15) / (8 * maxSpanLength);
+ }
+ pixwidth = glyphsPerGrab * 8 * maxSpanLength;
+ offscreen = XCreatePixmap(dpy, drawable, pixwidth, height, 1);
+
+ values.font = font;
+ values.background = 0;
+ values.foreground = 0;
+ xgc = XCreateGC(dpy, offscreen,
+ GCFont | GCBackground | GCForeground, &values);
+ XFillRectangle(dpy, offscreen, xgc, 0, 0,
+ 8 * maxSpanLength * glyphsPerGrab, height);
+ XSetForeground(dpy, xgc, 1);
+
+ numToGrab = 0;
+ if (fontinfo->per_char == NULL) {
+ charinfo = &(fontinfo->min_bounds);
+ charWidth = charinfo->rbearing - charinfo->lbearing;
+ charHeight = charinfo->ascent + charinfo->descent;
+ spanLength = (charWidth + 7) / 8;
+ }
+ printf("\n// GENERATED FILE -- DO NOT MODIFY\n\n");
+ printf("package gl4java.utils.glut.fonts.data;\n\n");
+ printf("import gl4java.utils.glut.fonts.*;\n\n");
+ /* printf("#include \"glutbitmap.h\"\n\n"); */
+
+ if (win32_bugfix) {
+ printf("// This file is generated with the WIN32 bug workaround:\n");
+ printf("// Microsoft OpenGL 1.1 bug where glBitmap with\n");
+ printf("// a height or width of zero does not advance the raster position\n");
+ printf("// as specified by OpenGL. (Cosmo OpenGL does not have this bug.)\n");
+ }
+
+ printf("\npublic class %s implements GLUTBitmapFont {\n",name);
+
+ printf(" private static byte[] zerodata={ 0 };\n");
+
+ for (i = first; count; i++, count--) {
+ int undefined;
+ if (rows == 1) {
+ undefined = (fontinfo->min_char_or_byte2 > i ||
+ fontinfo->max_char_or_byte2 < i);
+ } else {
+ byte2 = i & 0xff;
+ byte1 = i >> 8;
+ undefined = (fontinfo->min_char_or_byte2 > byte2 ||
+ fontinfo->max_char_or_byte2 < byte2 ||
+ fontinfo->min_byte1 > byte1 ||
+ fontinfo->max_byte1 < byte1);
+
+ }
+ if (undefined) {
+ goto PossiblyDoGrab;
+ }
+ if (fontinfo->per_char != NULL) {
+ if (rows == 1) {
+ index = i - fontinfo->min_char_or_byte2;
+ } else {
+ byte2 = i & 0xff;
+ byte1 = i >> 8;
+ index =
+ (byte1 - fontinfo->min_byte1) * pages +
+ (byte2 - fontinfo->min_char_or_byte2);
+ }
+ charinfo = &(fontinfo->per_char[index]);
+ charWidth = charinfo->rbearing - charinfo->lbearing;
+ charHeight = charinfo->ascent + charinfo->descent;
+ if (charWidth == 0 || charHeight == 0) {
+ if (charinfo->width != 0) {
+ /* Still must move raster pos even if empty character
+
+ */
+ outputChar(i, 0, 0, 0, 0, charinfo->width, 0);
+ }
+ goto PossiblyDoGrab;
+ }
+ }
+ grabList[numToGrab] = i;
+ character.byte2 = i & 255;
+ character.byte1 = i >> 8;
+
+ /* XXX We could use XDrawImageString16 which would also
+ paint the backing rectangle but X server bugs in some
+ scalable font rasterizers makes it more effective to do
+ XFillRectangles to clear the pixmap and then
+ XDrawImage16 for the text. */
+ XDrawString16(dpy, offscreen, xgc,
+ -charinfo->lbearing + 8 * maxSpanLength * numToGrab,
+ charinfo->ascent, &character, 1);
+
+ numToGrab++;
+
+ PossiblyDoGrab:
+
+ if (numToGrab >= glyphsPerGrab || count == 1) {
+ image = XGetImage(dpy, offscreen,
+ 0, 0, pixwidth, height, 1, XYPixmap);
+ for (j = numToGrab - 1; j >= 0; j--) {
+ if (fontinfo->per_char != NULL) {
+ byte2 = grabList[j] & 0xff;
+ byte1 = grabList[j] >> 8;
+ index =
+ (byte1 - fontinfo->min_byte1) * pages +
+ (byte2 - fontinfo->min_char_or_byte2);
+ charinfo = &(fontinfo->per_char[index]);
+ charWidth = charinfo->rbearing - charinfo->lbearing;
+ charHeight = charinfo->ascent + charinfo->descent;
+ spanLength = (charWidth + 7) / 8;
+ }
+ memset(bitmapData, 0, height * spanLength);
+ for (y = 0; y < charHeight; y++) {
+ for (x = 0; x < charWidth; x++) {
+ if (XGetPixel(image, j * maxSpanLength * 8 + x,
+ charHeight - 1 - y)) {
+ /* Little endian machines (such as DEC Alpha)
+ could benefit from reversing the bit order
+ here and changing the GL_UNPACK_LSB_FIRST
+ parameter in glutBitmapCharacter to GL_TRUE. */
+ bitmapData[y * spanLength + x / 8] |=
+ (1 << (7 - (x & 7)));
+ }
+ }
+ }
+ if (PRINTABLE(grabList[j])) {
+ printf("// char: 0x%x '%c'\n\n",
+ grabList[j], grabList[j]);
+ } else {
+ printf("// char: 0x%x\n\n", grabList[j]);
+ }
+
+ /* Determine if the bitmap is null. */
+ nullBitmap = 1;
+ len = (charinfo->ascent + charinfo->descent) *
+ ((charinfo->rbearing - charinfo->lbearing + 7) / 8);
+ cnt = 0;
+ while (cnt < len) {
+ for (k = 0; k < 16 && cnt < len; k++, cnt++) {
+ if (bitmapData[cnt] != 0) {
+ nullBitmap = 0;
+ }
+ }
+ }
+
+ if (!nullBitmap) {
+ printf(" static final byte[] ch%ddata = {\n ", grabList[j]);
+ len = (charinfo->ascent + charinfo->descent) *
+ ((charinfo->rbearing - charinfo->lbearing + 7) / 8);
+ cnt = 0;
+ while (cnt < len) {
+ for (k = 0; k < 16 && cnt < len; k++, cnt++) {
+ printf("(byte) 0x%x,", bitmapData[cnt]);
+ }
+ printf("\n");
+ }
+ printf(" };\n\n");
+ } else {
+ charWidth = 0;
+ charHeight = 0;
+ }
+
+ outputChar(grabList[j], charWidth, charHeight,
+ -charinfo->lbearing, charinfo->descent,
+ charinfo->width, !nullBitmap);
+ }
+ XDestroyImage(image);
+ numToGrab = 0;
+ if (count > 0) {
+ XSetForeground(dpy, xgc, 0);
+ XFillRectangle(dpy, offscreen, xgc, 0, 0,
+ 8 * maxSpanLength * glyphsPerGrab, height);
+ XSetForeground(dpy, xgc, 1);
+ }
+ }
+ }
+ XFreeGC(dpy, xgc);
+ XFreePixmap(dpy, offscreen);
+ /* For portability reasons we don't use alloca for
+ bitmapData, but we could. */
+ free(bitmapData);
+
+ printf(" static final BitmapCharRec chars[] = {\n");
+ for (i = first; i <= last; i++) {
+ int undefined;
+ byte2 = i & 0xff;
+ byte1 = i >> 8;
+ undefined = (fontinfo->min_char_or_byte2 > byte2 ||
+ fontinfo->max_char_or_byte2 < byte2 ||
+ fontinfo->min_byte1 > byte1 ||
+ fontinfo->max_byte1 < byte1);
+ if (undefined) {
+ printf(" null,\n");
+ } else {
+ if (fontinfo->per_char != NULL) {
+ if (rows == 1) {
+ index = i - fontinfo->min_char_or_byte2;
+ } else {
+ byte2 = i & 0xff;
+ byte1 = i >> 8;
+ index =
+ (byte1 - fontinfo->min_byte1) * pages +
+ (byte2 - fontinfo->min_char_or_byte2);
+ }
+ charinfo = &(fontinfo->per_char[index]);
+ charWidth = charinfo->rbearing - charinfo->lbearing;
+ charHeight = charinfo->ascent + charinfo->descent;
+ if (charWidth == 0 || charHeight == 0) {
+ if (charinfo->width == 0) {
+ printf(" null,\n");
+ continue;
+ }
+ }
+ }
+ printf(" ch%d,\n", i);
+ }
+ }
+ printf(" };\n\n");
+ printf(" static final BitmapFontRec fontinfo = new BitmapFontRec(\n"); // %s , name
+ printf(" \"%s\",\n", xfont);
+ printf(" %d,\n", last - first + 1);
+ printf(" %d,\n", first);
+ printf(" chars\n");
+ printf(" );\n\n");
+
+ printf(" public static BitmapFontRec getBitmapFontRec() {\n");
+ printf(" return fontinfo;\n");
+ printf(" }\n");
+ XFreeFont(dpy, fontinfo);
+
+ printf("} // end of class %s\n",name);
+}
+
+int
+main(int argc, char **argv)
+{
+ Display *dpy;
+ Font font;
+
+ if (argc != 3) {
+ fprintf(stderr, "usage: capturexfont XFONT NAME\n");
+ exit(1);
+ }
+ dpy = XOpenDisplay(NULL);
+ if (dpy == NULL) {
+ fprintf(stderr, "capturexfont: could not open X display\n");
+ exit(1);
+ }
+ font = XLoadFont(dpy, argv[1]);
+ if (font == None) {
+ fprintf(stderr, "capturexfont: bad font\n");
+ exit(1);
+ }
+ captureXFont(dpy, font, argv[1], argv[2]);
+ XCloseDisplay(dpy);
+ return 0;
+}
diff --git a/gl4java/utils/glut/fonts/data/glutBitmap8By13.java b/gl4java/utils/glut/fonts/data/glutBitmap8By13.java
new file mode 100644
index 0000000..5abf8c5
--- /dev/null
+++ b/gl4java/utils/glut/fonts/data/glutBitmap8By13.java
@@ -0,0 +1,2048 @@
+
+// GENERATED FILE -- DO NOT MODIFY
+
+package gl4java.utils.glut.fonts.data;
+
+import gl4java.utils.glut.fonts.*;
+
+
+public class glutBitmap8By13 implements GLUTBitmapFont {
+ private static byte[] zerodata={ 0 };
+ static final BitmapCharRec ch0 = new BitmapCharRec(0,0,0,0,8,zerodata);
+
+ static final BitmapCharRec ch32 = new BitmapCharRec(0,0,0,0,8,zerodata);
+
+ static final BitmapCharRec ch127 = new BitmapCharRec(0,0,0,0,8,zerodata);
+
+ static final BitmapCharRec ch160 = new BitmapCharRec(0,0,0,0,8,zerodata);
+
+// char: 0xff
+
+ static final byte[] ch255data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x4,(byte) 0x74,(byte) 0x8c,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x0,(byte) 0x0,(byte) 0x48,(byte) 0x48,
+ };
+
+ static final BitmapCharRec ch255 = new BitmapCharRec(6,12,-1,2,8,ch255data);
+
+// char: 0xfe
+
+ static final byte[] ch254data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0xb8,(byte) 0xc4,(byte) 0x84,(byte) 0x84,(byte) 0xc4,(byte) 0xb8,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch254 = new BitmapCharRec(6,10,-1,2,8,ch254data);
+
+// char: 0xfd
+
+ static final byte[] ch253data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x4,(byte) 0x74,(byte) 0x8c,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x0,(byte) 0x0,(byte) 0x20,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch253 = new BitmapCharRec(6,12,-1,2,8,ch253data);
+
+// char: 0xfc
+
+ static final byte[] ch252data = {
+ (byte) 0x74,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x0,(byte) 0x0,(byte) 0x48,(byte) 0x48,
+ };
+
+ static final BitmapCharRec ch252 = new BitmapCharRec(6,10,-1,0,8,ch252data);
+
+// char: 0xfb
+
+ static final byte[] ch251data = {
+ (byte) 0x74,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x0,(byte) 0x0,(byte) 0x48,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch251 = new BitmapCharRec(6,10,-1,0,8,ch251data);
+
+// char: 0xfa
+
+ static final byte[] ch250data = {
+ (byte) 0x74,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x0,(byte) 0x0,(byte) 0x20,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch250 = new BitmapCharRec(6,10,-1,0,8,ch250data);
+
+// char: 0xf9
+
+ static final byte[] ch249data = {
+ (byte) 0x74,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x0,(byte) 0x0,(byte) 0x10,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch249 = new BitmapCharRec(6,10,-1,0,8,ch249data);
+
+// char: 0xf8
+
+ static final byte[] ch248data = {
+ (byte) 0x80,(byte) 0x78,(byte) 0xc4,(byte) 0xa4,(byte) 0x94,(byte) 0x8c,(byte) 0x78,(byte) 0x4,
+ };
+
+ static final BitmapCharRec ch248 = new BitmapCharRec(6,8,-1,1,8,ch248data);
+
+// char: 0xf7
+
+ static final byte[] ch247data = {
+ (byte) 0x20,(byte) 0x20,(byte) 0x0,(byte) 0xf8,(byte) 0x0,(byte) 0x20,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch247 = new BitmapCharRec(5,7,-1,-1,8,ch247data);
+
+// char: 0xf6
+
+ static final byte[] ch246data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x78,(byte) 0x0,(byte) 0x0,(byte) 0x48,(byte) 0x48,
+ };
+
+ static final BitmapCharRec ch246 = new BitmapCharRec(6,10,-1,0,8,ch246data);
+
+// char: 0xf5
+
+ static final byte[] ch245data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x78,(byte) 0x0,(byte) 0x0,(byte) 0x50,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch245 = new BitmapCharRec(6,10,-1,0,8,ch245data);
+
+// char: 0xf4
+
+ static final byte[] ch244data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x78,(byte) 0x0,(byte) 0x0,(byte) 0x48,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch244 = new BitmapCharRec(6,10,-1,0,8,ch244data);
+
+// char: 0xf3
+
+ static final byte[] ch243data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x78,(byte) 0x0,(byte) 0x0,(byte) 0x20,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch243 = new BitmapCharRec(6,10,-1,0,8,ch243data);
+
+// char: 0xf2
+
+ static final byte[] ch242data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x78,(byte) 0x0,(byte) 0x0,(byte) 0x10,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch242 = new BitmapCharRec(6,10,-1,0,8,ch242data);
+
+// char: 0xf1
+
+ static final byte[] ch241data = {
+ (byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0xc4,(byte) 0xb8,(byte) 0x0,(byte) 0x0,(byte) 0x50,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch241 = new BitmapCharRec(6,10,-1,0,8,ch241data);
+
+// char: 0xf0
+
+ static final byte[] ch240data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x78,(byte) 0x8,(byte) 0x50,(byte) 0x30,(byte) 0x48,
+ };
+
+ static final BitmapCharRec ch240 = new BitmapCharRec(6,10,-1,0,8,ch240data);
+
+// char: 0xef
+
+ static final byte[] ch239data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x60,(byte) 0x0,(byte) 0x0,(byte) 0x50,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch239 = new BitmapCharRec(5,10,-1,0,8,ch239data);
+
+// char: 0xee
+
+ static final byte[] ch238data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x60,(byte) 0x0,(byte) 0x0,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch238 = new BitmapCharRec(5,10,-1,0,8,ch238data);
+
+// char: 0xed
+
+ static final byte[] ch237data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x60,(byte) 0x0,(byte) 0x0,(byte) 0x40,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch237 = new BitmapCharRec(5,10,-1,0,8,ch237data);
+
+// char: 0xec
+
+ static final byte[] ch236data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x60,(byte) 0x0,(byte) 0x0,(byte) 0x20,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch236 = new BitmapCharRec(5,10,-1,0,8,ch236data);
+
+// char: 0xeb
+
+ static final byte[] ch235data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x80,(byte) 0xfc,(byte) 0x84,(byte) 0x78,(byte) 0x0,(byte) 0x0,(byte) 0x48,(byte) 0x48,
+ };
+
+ static final BitmapCharRec ch235 = new BitmapCharRec(6,10,-1,0,8,ch235data);
+
+// char: 0xea
+
+ static final byte[] ch234data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x80,(byte) 0xfc,(byte) 0x84,(byte) 0x78,(byte) 0x0,(byte) 0x0,(byte) 0x48,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch234 = new BitmapCharRec(6,10,-1,0,8,ch234data);
+
+// char: 0xe9
+
+ static final byte[] ch233data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x80,(byte) 0xfc,(byte) 0x84,(byte) 0x78,(byte) 0x0,(byte) 0x0,(byte) 0x20,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch233 = new BitmapCharRec(6,10,-1,0,8,ch233data);
+
+// char: 0xe8
+
+ static final byte[] ch232data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x80,(byte) 0xfc,(byte) 0x84,(byte) 0x78,(byte) 0x0,(byte) 0x0,(byte) 0x10,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch232 = new BitmapCharRec(6,10,-1,0,8,ch232data);
+
+// char: 0xe7
+
+ static final byte[] ch231data = {
+ (byte) 0x20,(byte) 0x10,(byte) 0x78,(byte) 0x84,(byte) 0x80,(byte) 0x80,(byte) 0x84,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch231 = new BitmapCharRec(6,8,-1,2,8,ch231data);
+
+// char: 0xe6
+
+ static final byte[] ch230data = {
+ (byte) 0x6c,(byte) 0x92,(byte) 0x90,(byte) 0x7c,(byte) 0x12,(byte) 0x6c,
+ };
+
+ static final BitmapCharRec ch230 = new BitmapCharRec(7,6,0,0,8,ch230data);
+
+// char: 0xe5
+
+ static final byte[] ch229data = {
+ (byte) 0x74,(byte) 0x8c,(byte) 0x84,(byte) 0x7c,(byte) 0x4,(byte) 0x78,(byte) 0x0,(byte) 0x30,(byte) 0x48,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch229 = new BitmapCharRec(6,10,-1,0,8,ch229data);
+
+// char: 0xe4
+
+ static final byte[] ch228data = {
+ (byte) 0x74,(byte) 0x8c,(byte) 0x84,(byte) 0x7c,(byte) 0x4,(byte) 0x78,(byte) 0x0,(byte) 0x0,(byte) 0x48,(byte) 0x48,
+ };
+
+ static final BitmapCharRec ch228 = new BitmapCharRec(6,10,-1,0,8,ch228data);
+
+// char: 0xe3
+
+ static final byte[] ch227data = {
+ (byte) 0x74,(byte) 0x8c,(byte) 0x84,(byte) 0x7c,(byte) 0x4,(byte) 0x78,(byte) 0x0,(byte) 0x0,(byte) 0x50,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch227 = new BitmapCharRec(6,10,-1,0,8,ch227data);
+
+// char: 0xe2
+
+ static final byte[] ch226data = {
+ (byte) 0x74,(byte) 0x8c,(byte) 0x84,(byte) 0x7c,(byte) 0x4,(byte) 0x78,(byte) 0x0,(byte) 0x0,(byte) 0x48,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch226 = new BitmapCharRec(6,10,-1,0,8,ch226data);
+
+// char: 0xe1
+
+ static final byte[] ch225data = {
+ (byte) 0x74,(byte) 0x8c,(byte) 0x84,(byte) 0x7c,(byte) 0x4,(byte) 0x78,(byte) 0x0,(byte) 0x0,(byte) 0x20,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch225 = new BitmapCharRec(6,10,-1,0,8,ch225data);
+
+// char: 0xe0
+
+ static final byte[] ch224data = {
+ (byte) 0x74,(byte) 0x8c,(byte) 0x84,(byte) 0x7c,(byte) 0x4,(byte) 0x78,(byte) 0x0,(byte) 0x0,(byte) 0x10,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch224 = new BitmapCharRec(6,10,-1,0,8,ch224data);
+
+// char: 0xdf
+
+ static final byte[] ch223data = {
+ (byte) 0x80,(byte) 0xb8,(byte) 0xc4,(byte) 0x84,(byte) 0x84,(byte) 0xf8,(byte) 0x84,(byte) 0x84,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch223 = new BitmapCharRec(6,9,-1,1,8,ch223data);
+
+// char: 0xde
+
+ static final byte[] ch222data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xf8,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0xf8,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch222 = new BitmapCharRec(6,9,-1,0,8,ch222data);
+
+// char: 0xdd
+
+ static final byte[] ch221data = {
+ (byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x50,(byte) 0x88,(byte) 0x88,(byte) 0x0,(byte) 0x20,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch221 = new BitmapCharRec(5,10,-1,0,8,ch221data);
+
+// char: 0xdc
+
+ static final byte[] ch220data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x0,(byte) 0x48,(byte) 0x48,
+ };
+
+ static final BitmapCharRec ch220 = new BitmapCharRec(6,10,-1,0,8,ch220data);
+
+// char: 0xdb
+
+ static final byte[] ch219data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x0,(byte) 0x48,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch219 = new BitmapCharRec(6,10,-1,0,8,ch219data);
+
+// char: 0xda
+
+ static final byte[] ch218data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x0,(byte) 0x20,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch218 = new BitmapCharRec(6,10,-1,0,8,ch218data);
+
+// char: 0xd9
+
+ static final byte[] ch217data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x0,(byte) 0x10,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch217 = new BitmapCharRec(6,10,-1,0,8,ch217data);
+
+// char: 0xd8
+
+ static final byte[] ch216data = {
+ (byte) 0x80,(byte) 0x78,(byte) 0xc4,(byte) 0xa4,(byte) 0xa4,(byte) 0xa4,(byte) 0x94,(byte) 0x94,(byte) 0x8c,(byte) 0x78,(byte) 0x4,
+ };
+
+ static final BitmapCharRec ch216 = new BitmapCharRec(6,11,-1,1,8,ch216data);
+
+// char: 0xd7
+
+ static final byte[] ch215data = {
+ (byte) 0x84,(byte) 0x48,(byte) 0x30,(byte) 0x30,(byte) 0x48,(byte) 0x84,
+ };
+
+ static final BitmapCharRec ch215 = new BitmapCharRec(6,6,-1,-1,8,ch215data);
+
+// char: 0xd6
+
+ static final byte[] ch214data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x0,(byte) 0x28,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch214 = new BitmapCharRec(7,10,0,0,8,ch214data);
+
+// char: 0xd5
+
+ static final byte[] ch213data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x0,(byte) 0x28,(byte) 0x14,
+ };
+
+ static final BitmapCharRec ch213 = new BitmapCharRec(7,10,0,0,8,ch213data);
+
+// char: 0xd4
+
+ static final byte[] ch212data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x0,(byte) 0x24,(byte) 0x18,
+ };
+
+ static final BitmapCharRec ch212 = new BitmapCharRec(7,10,0,0,8,ch212data);
+
+// char: 0xd3
+
+ static final byte[] ch211data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x0,(byte) 0x10,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch211 = new BitmapCharRec(7,10,0,0,8,ch211data);
+
+// char: 0xd2
+
+ static final byte[] ch210data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x0,(byte) 0x8,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch210 = new BitmapCharRec(7,10,0,0,8,ch210data);
+
+// char: 0xd1
+
+ static final byte[] ch209data = {
+ (byte) 0x82,(byte) 0x86,(byte) 0x8a,(byte) 0x92,(byte) 0xa2,(byte) 0xc2,(byte) 0x82,(byte) 0x0,(byte) 0x28,(byte) 0x14,
+ };
+
+ static final BitmapCharRec ch209 = new BitmapCharRec(7,10,0,0,8,ch209data);
+
+// char: 0xd0
+
+ static final byte[] ch208data = {
+ (byte) 0xfc,(byte) 0x42,(byte) 0x42,(byte) 0x42,(byte) 0xe2,(byte) 0x42,(byte) 0x42,(byte) 0x42,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch208 = new BitmapCharRec(7,9,0,0,8,ch208data);
+
+// char: 0xcf
+
+ static final byte[] ch207data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xf8,(byte) 0x0,(byte) 0x50,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch207 = new BitmapCharRec(5,10,-1,0,8,ch207data);
+
+// char: 0xce
+
+ static final byte[] ch206data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xf8,(byte) 0x0,(byte) 0x48,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch206 = new BitmapCharRec(5,10,-1,0,8,ch206data);
+
+// char: 0xcd
+
+ static final byte[] ch205data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xf8,(byte) 0x0,(byte) 0x20,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch205 = new BitmapCharRec(5,10,-1,0,8,ch205data);
+
+// char: 0xcc
+
+ static final byte[] ch204data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xf8,(byte) 0x0,(byte) 0x10,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch204 = new BitmapCharRec(5,10,-1,0,8,ch204data);
+
+// char: 0xcb
+
+ static final byte[] ch203data = {
+ (byte) 0xfc,(byte) 0x80,(byte) 0x80,(byte) 0xf0,(byte) 0x80,(byte) 0x80,(byte) 0xfc,(byte) 0x0,(byte) 0x48,(byte) 0x48,
+ };
+
+ static final BitmapCharRec ch203 = new BitmapCharRec(6,10,-1,0,8,ch203data);
+
+// char: 0xca
+
+ static final byte[] ch202data = {
+ (byte) 0xfc,(byte) 0x80,(byte) 0x80,(byte) 0xf0,(byte) 0x80,(byte) 0x80,(byte) 0xfc,(byte) 0x0,(byte) 0x48,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch202 = new BitmapCharRec(6,10,-1,0,8,ch202data);
+
+// char: 0xc9
+
+ static final byte[] ch201data = {
+ (byte) 0xfc,(byte) 0x80,(byte) 0x80,(byte) 0xf0,(byte) 0x80,(byte) 0x80,(byte) 0xfc,(byte) 0x0,(byte) 0x20,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch201 = new BitmapCharRec(6,10,-1,0,8,ch201data);
+
+// char: 0xc8
+
+ static final byte[] ch200data = {
+ (byte) 0xfc,(byte) 0x80,(byte) 0x80,(byte) 0xf0,(byte) 0x80,(byte) 0x80,(byte) 0xfc,(byte) 0x0,(byte) 0x10,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch200 = new BitmapCharRec(6,10,-1,0,8,ch200data);
+
+// char: 0xc7
+
+ static final byte[] ch199data = {
+ (byte) 0x20,(byte) 0x10,(byte) 0x78,(byte) 0x84,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x84,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch199 = new BitmapCharRec(6,11,-1,2,8,ch199data);
+
+// char: 0xc6
+
+ static final byte[] ch198data = {
+ (byte) 0x9e,(byte) 0x90,(byte) 0x90,(byte) 0xf0,(byte) 0x9c,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x6e,
+ };
+
+ static final BitmapCharRec ch198 = new BitmapCharRec(7,9,0,0,8,ch198data);
+
+// char: 0xc5
+
+ static final byte[] ch197data = {
+ (byte) 0x84,(byte) 0x84,(byte) 0xfc,(byte) 0x84,(byte) 0x84,(byte) 0x48,(byte) 0x30,(byte) 0x30,(byte) 0x48,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch197 = new BitmapCharRec(6,10,-1,0,8,ch197data);
+
+// char: 0xc4
+
+ static final byte[] ch196data = {
+ (byte) 0x84,(byte) 0x84,(byte) 0xfc,(byte) 0x84,(byte) 0x84,(byte) 0x48,(byte) 0x30,(byte) 0x0,(byte) 0x48,(byte) 0x48,
+ };
+
+ static final BitmapCharRec ch196 = new BitmapCharRec(6,10,-1,0,8,ch196data);
+
+// char: 0xc3
+
+ static final byte[] ch195data = {
+ (byte) 0x84,(byte) 0x84,(byte) 0xfc,(byte) 0x84,(byte) 0x84,(byte) 0x48,(byte) 0x30,(byte) 0x0,(byte) 0x50,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch195 = new BitmapCharRec(6,10,-1,0,8,ch195data);
+
+// char: 0xc2
+
+ static final byte[] ch194data = {
+ (byte) 0x84,(byte) 0x84,(byte) 0xfc,(byte) 0x84,(byte) 0x84,(byte) 0x48,(byte) 0x30,(byte) 0x0,(byte) 0x48,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch194 = new BitmapCharRec(6,10,-1,0,8,ch194data);
+
+// char: 0xc1
+
+ static final byte[] ch193data = {
+ (byte) 0x84,(byte) 0x84,(byte) 0xfc,(byte) 0x84,(byte) 0x84,(byte) 0x48,(byte) 0x30,(byte) 0x0,(byte) 0x20,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch193 = new BitmapCharRec(6,10,-1,0,8,ch193data);
+
+// char: 0xc0
+
+ static final byte[] ch192data = {
+ (byte) 0x84,(byte) 0x84,(byte) 0xfc,(byte) 0x84,(byte) 0x84,(byte) 0x48,(byte) 0x30,(byte) 0x0,(byte) 0x10,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch192 = new BitmapCharRec(6,10,-1,0,8,ch192data);
+
+// char: 0xbf
+
+ static final byte[] ch191data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x80,(byte) 0x40,(byte) 0x20,(byte) 0x20,(byte) 0x0,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch191 = new BitmapCharRec(6,9,-1,0,8,ch191data);
+
+// char: 0xbe
+
+ static final byte[] ch190data = {
+ (byte) 0x6,(byte) 0x1a,(byte) 0x12,(byte) 0xa,(byte) 0x66,(byte) 0x92,(byte) 0x10,(byte) 0x20,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch190 = new BitmapCharRec(7,10,0,0,8,ch190data);
+
+// char: 0xbd
+
+ static final byte[] ch189data = {
+ (byte) 0x1e,(byte) 0x10,(byte) 0xc,(byte) 0x2,(byte) 0xf2,(byte) 0x4c,(byte) 0x40,(byte) 0x40,(byte) 0xc0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch189 = new BitmapCharRec(7,10,0,0,8,ch189data);
+
+// char: 0xbc
+
+ static final byte[] ch188data = {
+ (byte) 0x6,(byte) 0x1a,(byte) 0x12,(byte) 0xa,(byte) 0xe6,(byte) 0x42,(byte) 0x40,(byte) 0x40,(byte) 0xc0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch188 = new BitmapCharRec(7,10,0,0,8,ch188data);
+
+// char: 0xbb
+
+ static final byte[] ch187data = {
+ (byte) 0x90,(byte) 0x48,(byte) 0x24,(byte) 0x12,(byte) 0x24,(byte) 0x48,(byte) 0x90,
+ };
+
+ static final BitmapCharRec ch187 = new BitmapCharRec(7,7,0,-1,8,ch187data);
+
+// char: 0xba
+
+ static final byte[] ch186data = {
+ (byte) 0xf0,(byte) 0x0,(byte) 0x60,(byte) 0x90,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch186 = new BitmapCharRec(4,6,-1,-3,8,ch186data);
+
+// char: 0xb9
+
+ static final byte[] ch185data = {
+ (byte) 0xe0,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xc0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch185 = new BitmapCharRec(3,6,-1,-4,8,ch185data);
+
+// char: 0xb8
+
+ static final byte[] ch184data = {
+ (byte) 0xc0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch184 = new BitmapCharRec(2,2,-3,2,8,ch184data);
+
+// char: 0xb7
+
+ static final byte[] ch183data = {
+ (byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch183 = new BitmapCharRec(2,1,-3,-4,8,ch183data);
+
+// char: 0xb6
+
+ static final byte[] ch182data = {
+ (byte) 0x28,(byte) 0x28,(byte) 0x28,(byte) 0x28,(byte) 0x68,(byte) 0xe8,(byte) 0xe8,(byte) 0xe8,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch182 = new BitmapCharRec(6,9,-1,0,8,ch182data);
+
+// char: 0xb5
+
+ static final byte[] ch181data = {
+ (byte) 0x80,(byte) 0xb4,(byte) 0xcc,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,
+ };
+
+ static final BitmapCharRec ch181 = new BitmapCharRec(6,7,-1,1,8,ch181data);
+
+// char: 0xb4
+
+ static final byte[] ch180data = {
+ (byte) 0x80,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch180 = new BitmapCharRec(2,2,-3,-8,8,ch180data);
+
+// char: 0xb3
+
+ static final byte[] ch179data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x10,(byte) 0x20,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch179 = new BitmapCharRec(4,6,-1,-4,8,ch179data);
+
+// char: 0xb2
+
+ static final byte[] ch178data = {
+ (byte) 0xf0,(byte) 0x80,(byte) 0x60,(byte) 0x10,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch178 = new BitmapCharRec(4,6,-1,-4,8,ch178data);
+
+// char: 0xb1
+
+ static final byte[] ch177data = {
+ (byte) 0xf8,(byte) 0x0,(byte) 0x20,(byte) 0x20,(byte) 0xf8,(byte) 0x20,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch177 = new BitmapCharRec(5,7,-1,-1,8,ch177data);
+
+// char: 0xb0
+
+ static final byte[] ch176data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch176 = new BitmapCharRec(4,4,-2,-5,8,ch176data);
+
+// char: 0xaf
+
+ static final byte[] ch175data = {
+ (byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch175 = new BitmapCharRec(6,1,-1,-8,8,ch175data);
+
+// char: 0xae
+
+ static final byte[] ch174data = {
+ (byte) 0x38,(byte) 0x44,(byte) 0xaa,(byte) 0xb2,(byte) 0xaa,(byte) 0xaa,(byte) 0x92,(byte) 0x44,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch174 = new BitmapCharRec(7,9,0,-1,8,ch174data);
+
+// char: 0xad
+
+ static final byte[] ch173data = {
+ (byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch173 = new BitmapCharRec(6,1,-1,-4,8,ch173data);
+
+// char: 0xac
+
+ static final byte[] ch172data = {
+ (byte) 0x4,(byte) 0x4,(byte) 0x4,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch172 = new BitmapCharRec(6,4,-1,-1,8,ch172data);
+
+// char: 0xab
+
+ static final byte[] ch171data = {
+ (byte) 0x12,(byte) 0x24,(byte) 0x48,(byte) 0x90,(byte) 0x48,(byte) 0x24,(byte) 0x12,
+ };
+
+ static final BitmapCharRec ch171 = new BitmapCharRec(7,7,0,-1,8,ch171data);
+
+// char: 0xaa
+
+ static final byte[] ch170data = {
+ (byte) 0xf8,(byte) 0x0,(byte) 0x78,(byte) 0x88,(byte) 0x78,(byte) 0x8,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch170 = new BitmapCharRec(5,7,-1,-2,8,ch170data);
+
+// char: 0xa9
+
+ static final byte[] ch169data = {
+ (byte) 0x38,(byte) 0x44,(byte) 0x92,(byte) 0xaa,(byte) 0xa2,(byte) 0xaa,(byte) 0x92,(byte) 0x44,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch169 = new BitmapCharRec(7,9,0,-1,8,ch169data);
+
+// char: 0xa8
+
+ static final byte[] ch168data = {
+ (byte) 0xd8,
+ };
+
+ static final BitmapCharRec ch168 = new BitmapCharRec(5,1,-1,-8,8,ch168data);
+
+// char: 0xa7
+
+ static final byte[] ch167data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x10,(byte) 0x60,(byte) 0x90,(byte) 0x90,(byte) 0x60,(byte) 0x80,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch167 = new BitmapCharRec(4,10,-2,0,8,ch167data);
+
+// char: 0xa6
+
+ static final byte[] ch166data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x0,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch166 = new BitmapCharRec(1,9,-3,0,8,ch166data);
+
+// char: 0xa5
+
+ static final byte[] ch165data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0x7c,(byte) 0x10,(byte) 0x7c,(byte) 0x28,(byte) 0x44,(byte) 0x82,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch165 = new BitmapCharRec(7,9,0,0,8,ch165data);
+
+// char: 0xa4
+
+ static final byte[] ch164data = {
+ (byte) 0x84,(byte) 0x78,(byte) 0x48,(byte) 0x48,(byte) 0x78,(byte) 0x84,
+ };
+
+ static final BitmapCharRec ch164 = new BitmapCharRec(6,6,-1,-1,8,ch164data);
+
+// char: 0xa3
+
+ static final byte[] ch163data = {
+ (byte) 0xdc,(byte) 0x62,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x70,(byte) 0x20,(byte) 0x22,(byte) 0x1c,
+ };
+
+ static final BitmapCharRec ch163 = new BitmapCharRec(7,9,0,0,8,ch163data);
+
+// char: 0xa2
+
+ static final byte[] ch162data = {
+ (byte) 0x20,(byte) 0x70,(byte) 0xa8,(byte) 0xa0,(byte) 0xa0,(byte) 0xa8,(byte) 0x70,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch162 = new BitmapCharRec(5,8,-1,-1,8,ch162data);
+
+// char: 0xa1
+
+ static final byte[] ch161data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x0,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch161 = new BitmapCharRec(1,9,-3,0,8,ch161data);
+
+// char: 0x7e '~'
+
+ static final byte[] ch126data = {
+ (byte) 0x90,(byte) 0xa8,(byte) 0x48,
+ };
+
+ static final BitmapCharRec ch126 = new BitmapCharRec(5,3,-1,-6,8,ch126data);
+
+// char: 0x7d '}'
+
+ static final byte[] ch125data = {
+ (byte) 0xe0,(byte) 0x10,(byte) 0x10,(byte) 0x20,(byte) 0x18,(byte) 0x20,(byte) 0x10,(byte) 0x10,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch125 = new BitmapCharRec(5,9,-1,0,8,ch125data);
+
+// char: 0x7c '|'
+
+ static final byte[] ch124data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch124 = new BitmapCharRec(1,9,-3,0,8,ch124data);
+
+// char: 0x7b '{'
+
+ static final byte[] ch123data = {
+ (byte) 0x38,(byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0xc0,(byte) 0x20,(byte) 0x40,(byte) 0x40,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch123 = new BitmapCharRec(5,9,-2,0,8,ch123data);
+
+// char: 0x7a 'z'
+
+ static final byte[] ch122data = {
+ (byte) 0xfc,(byte) 0x40,(byte) 0x20,(byte) 0x10,(byte) 0x8,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch122 = new BitmapCharRec(6,6,-1,0,8,ch122data);
+
+// char: 0x79 'y'
+
+ static final byte[] ch121data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x4,(byte) 0x74,(byte) 0x8c,(byte) 0x84,(byte) 0x84,(byte) 0x84,
+ };
+
+ static final BitmapCharRec ch121 = new BitmapCharRec(6,8,-1,2,8,ch121data);
+
+// char: 0x78 'x'
+
+ static final byte[] ch120data = {
+ (byte) 0x84,(byte) 0x48,(byte) 0x30,(byte) 0x30,(byte) 0x48,(byte) 0x84,
+ };
+
+ static final BitmapCharRec ch120 = new BitmapCharRec(6,6,-1,0,8,ch120data);
+
+// char: 0x77 'w'
+
+ static final byte[] ch119data = {
+ (byte) 0x44,(byte) 0xaa,(byte) 0x92,(byte) 0x92,(byte) 0x82,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch119 = new BitmapCharRec(7,6,0,0,8,ch119data);
+
+// char: 0x76 'v'
+
+ static final byte[] ch118data = {
+ (byte) 0x20,(byte) 0x50,(byte) 0x50,(byte) 0x88,(byte) 0x88,(byte) 0x88,
+ };
+
+ static final BitmapCharRec ch118 = new BitmapCharRec(5,6,-1,0,8,ch118data);
+
+// char: 0x75 'u'
+
+ static final byte[] ch117data = {
+ (byte) 0x74,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,
+ };
+
+ static final BitmapCharRec ch117 = new BitmapCharRec(6,6,-1,0,8,ch117data);
+
+// char: 0x74 't'
+
+ static final byte[] ch116data = {
+ (byte) 0x38,(byte) 0x44,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xf8,(byte) 0x40,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch116 = new BitmapCharRec(6,8,-1,0,8,ch116data);
+
+// char: 0x73 's'
+
+ static final byte[] ch115data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x18,(byte) 0x60,(byte) 0x84,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch115 = new BitmapCharRec(6,6,-1,0,8,ch115data);
+
+// char: 0x72 'r'
+
+ static final byte[] ch114data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x44,(byte) 0xb8,
+ };
+
+ static final BitmapCharRec ch114 = new BitmapCharRec(6,6,-1,0,8,ch114data);
+
+// char: 0x71 'q'
+
+ static final byte[] ch113data = {
+ (byte) 0x4,(byte) 0x4,(byte) 0x4,(byte) 0x74,(byte) 0x8c,(byte) 0x84,(byte) 0x8c,(byte) 0x74,
+ };
+
+ static final BitmapCharRec ch113 = new BitmapCharRec(6,8,-1,2,8,ch113data);
+
+// char: 0x70 'p'
+
+ static final byte[] ch112data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xb8,(byte) 0xc4,(byte) 0x84,(byte) 0xc4,(byte) 0xb8,
+ };
+
+ static final BitmapCharRec ch112 = new BitmapCharRec(6,8,-1,2,8,ch112data);
+
+// char: 0x6f 'o'
+
+ static final byte[] ch111data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch111 = new BitmapCharRec(6,6,-1,0,8,ch111data);
+
+// char: 0x6e 'n'
+
+ static final byte[] ch110data = {
+ (byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0xc4,(byte) 0xb8,
+ };
+
+ static final BitmapCharRec ch110 = new BitmapCharRec(6,6,-1,0,8,ch110data);
+
+// char: 0x6d 'm'
+
+ static final byte[] ch109data = {
+ (byte) 0x82,(byte) 0x92,(byte) 0x92,(byte) 0x92,(byte) 0x92,(byte) 0xec,
+ };
+
+ static final BitmapCharRec ch109 = new BitmapCharRec(7,6,0,0,8,ch109data);
+
+// char: 0x6c 'l'
+
+ static final byte[] ch108data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch108 = new BitmapCharRec(5,9,-1,0,8,ch108data);
+
+// char: 0x6b 'k'
+
+ static final byte[] ch107data = {
+ (byte) 0x84,(byte) 0x88,(byte) 0x90,(byte) 0xe0,(byte) 0x90,(byte) 0x88,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch107 = new BitmapCharRec(6,9,-1,0,8,ch107data);
+
+// char: 0x6a 'j'
+
+ static final byte[] ch106data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x18,(byte) 0x0,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch106 = new BitmapCharRec(5,10,-1,2,8,ch106data);
+
+// char: 0x69 'i'
+
+ static final byte[] ch105data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x60,(byte) 0x0,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch105 = new BitmapCharRec(5,8,-1,0,8,ch105data);
+
+// char: 0x68 'h'
+
+ static final byte[] ch104data = {
+ (byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0xc4,(byte) 0xb8,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch104 = new BitmapCharRec(6,9,-1,0,8,ch104data);
+
+// char: 0x67 'g'
+
+ static final byte[] ch103data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x78,(byte) 0x80,(byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x74,
+ };
+
+ static final BitmapCharRec ch103 = new BitmapCharRec(6,8,-1,2,8,ch103data);
+
+// char: 0x66 'f'
+
+ static final byte[] ch102data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xf8,(byte) 0x40,(byte) 0x40,(byte) 0x44,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch102 = new BitmapCharRec(6,9,-1,0,8,ch102data);
+
+// char: 0x65 'e'
+
+ static final byte[] ch101data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x80,(byte) 0xfc,(byte) 0x84,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch101 = new BitmapCharRec(6,6,-1,0,8,ch101data);
+
+// char: 0x64 'd'
+
+ static final byte[] ch100data = {
+ (byte) 0x74,(byte) 0x8c,(byte) 0x84,(byte) 0x84,(byte) 0x8c,(byte) 0x74,(byte) 0x4,(byte) 0x4,(byte) 0x4,
+ };
+
+ static final BitmapCharRec ch100 = new BitmapCharRec(6,9,-1,0,8,ch100data);
+
+// char: 0x63 'c'
+
+ static final byte[] ch99data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x80,(byte) 0x80,(byte) 0x84,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch99 = new BitmapCharRec(6,6,-1,0,8,ch99data);
+
+// char: 0x62 'b'
+
+ static final byte[] ch98data = {
+ (byte) 0xb8,(byte) 0xc4,(byte) 0x84,(byte) 0x84,(byte) 0xc4,(byte) 0xb8,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch98 = new BitmapCharRec(6,9,-1,0,8,ch98data);
+
+// char: 0x61 'a'
+
+ static final byte[] ch97data = {
+ (byte) 0x74,(byte) 0x8c,(byte) 0x84,(byte) 0x7c,(byte) 0x4,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch97 = new BitmapCharRec(6,6,-1,0,8,ch97data);
+
+// char: 0x60 '`'
+
+ static final byte[] ch96data = {
+ (byte) 0x10,(byte) 0x60,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch96 = new BitmapCharRec(4,3,-2,-6,8,ch96data);
+
+// char: 0x5f '_'
+
+ static final byte[] ch95data = {
+ (byte) 0xfe,
+ };
+
+ static final BitmapCharRec ch95 = new BitmapCharRec(7,1,0,1,8,ch95data);
+
+// char: 0x5e '^'
+
+ static final byte[] ch94data = {
+ (byte) 0x88,(byte) 0x50,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch94 = new BitmapCharRec(5,3,-1,-6,8,ch94data);
+
+// char: 0x5d ']'
+
+ static final byte[] ch93data = {
+ (byte) 0xf0,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch93 = new BitmapCharRec(4,9,-1,0,8,ch93data);
+
+// char: 0x5c '\'
+
+ static final byte[] ch92data = {
+ (byte) 0x2,(byte) 0x2,(byte) 0x4,(byte) 0x8,(byte) 0x10,(byte) 0x20,(byte) 0x40,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch92 = new BitmapCharRec(7,9,0,0,8,ch92data);
+
+// char: 0x5b '['
+
+ static final byte[] ch91data = {
+ (byte) 0xf0,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch91 = new BitmapCharRec(4,9,-2,0,8,ch91data);
+
+// char: 0x5a 'Z'
+
+ static final byte[] ch90data = {
+ (byte) 0xfc,(byte) 0x80,(byte) 0x80,(byte) 0x40,(byte) 0x20,(byte) 0x10,(byte) 0x8,(byte) 0x4,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch90 = new BitmapCharRec(6,9,-1,0,8,ch90data);
+
+// char: 0x59 'Y'
+
+ static final byte[] ch89data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x28,(byte) 0x44,(byte) 0x82,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch89 = new BitmapCharRec(7,9,0,0,8,ch89data);
+
+// char: 0x58 'X'
+
+ static final byte[] ch88data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x44,(byte) 0x28,(byte) 0x10,(byte) 0x28,(byte) 0x44,(byte) 0x82,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch88 = new BitmapCharRec(7,9,0,0,8,ch88data);
+
+// char: 0x57 'W'
+
+ static final byte[] ch87data = {
+ (byte) 0x44,(byte) 0xaa,(byte) 0x92,(byte) 0x92,(byte) 0x92,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch87 = new BitmapCharRec(7,9,0,0,8,ch87data);
+
+// char: 0x56 'V'
+
+ static final byte[] ch86data = {
+ (byte) 0x10,(byte) 0x28,(byte) 0x28,(byte) 0x28,(byte) 0x44,(byte) 0x44,(byte) 0x44,(byte) 0x82,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch86 = new BitmapCharRec(7,9,0,0,8,ch86data);
+
+// char: 0x55 'U'
+
+ static final byte[] ch85data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,
+ };
+
+ static final BitmapCharRec ch85 = new BitmapCharRec(6,9,-1,0,8,ch85data);
+
+// char: 0x54 'T'
+
+ static final byte[] ch84data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0xfe,
+ };
+
+ static final BitmapCharRec ch84 = new BitmapCharRec(7,9,0,0,8,ch84data);
+
+// char: 0x53 'S'
+
+ static final byte[] ch83data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x4,(byte) 0x4,(byte) 0x78,(byte) 0x80,(byte) 0x80,(byte) 0x84,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch83 = new BitmapCharRec(6,9,-1,0,8,ch83data);
+
+// char: 0x52 'R'
+
+ static final byte[] ch82data = {
+ (byte) 0x84,(byte) 0x88,(byte) 0x90,(byte) 0xa0,(byte) 0xf8,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch82 = new BitmapCharRec(6,9,-1,0,8,ch82data);
+
+// char: 0x51 'Q'
+
+ static final byte[] ch81data = {
+ (byte) 0x4,(byte) 0x78,(byte) 0x94,(byte) 0xa4,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch81 = new BitmapCharRec(6,10,-1,1,8,ch81data);
+
+// char: 0x50 'P'
+
+ static final byte[] ch80data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xf8,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch80 = new BitmapCharRec(6,9,-1,0,8,ch80data);
+
+// char: 0x4f 'O'
+
+ static final byte[] ch79data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch79 = new BitmapCharRec(6,9,-1,0,8,ch79data);
+
+// char: 0x4e 'N'
+
+ static final byte[] ch78data = {
+ (byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x8c,(byte) 0x94,(byte) 0xa4,(byte) 0xc4,(byte) 0x84,(byte) 0x84,
+ };
+
+ static final BitmapCharRec ch78 = new BitmapCharRec(6,9,-1,0,8,ch78data);
+
+// char: 0x4d 'M'
+
+ static final byte[] ch77data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x92,(byte) 0x92,(byte) 0xaa,(byte) 0xc6,(byte) 0x82,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch77 = new BitmapCharRec(7,9,0,0,8,ch77data);
+
+// char: 0x4c 'L'
+
+ static final byte[] ch76data = {
+ (byte) 0xfc,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch76 = new BitmapCharRec(6,9,-1,0,8,ch76data);
+
+// char: 0x4b 'K'
+
+ static final byte[] ch75data = {
+ (byte) 0x84,(byte) 0x88,(byte) 0x90,(byte) 0xa0,(byte) 0xc0,(byte) 0xa0,(byte) 0x90,(byte) 0x88,(byte) 0x84,
+ };
+
+ static final BitmapCharRec ch75 = new BitmapCharRec(6,9,-1,0,8,ch75data);
+
+// char: 0x4a 'J'
+
+ static final byte[] ch74data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x3c,
+ };
+
+ static final BitmapCharRec ch74 = new BitmapCharRec(6,9,-1,0,8,ch74data);
+
+// char: 0x49 'I'
+
+ static final byte[] ch73data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch73 = new BitmapCharRec(5,9,-1,0,8,ch73data);
+
+// char: 0x48 'H'
+
+ static final byte[] ch72data = {
+ (byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0xfc,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,
+ };
+
+ static final BitmapCharRec ch72 = new BitmapCharRec(6,9,-1,0,8,ch72data);
+
+// char: 0x47 'G'
+
+ static final byte[] ch71data = {
+ (byte) 0x74,(byte) 0x8c,(byte) 0x84,(byte) 0x9c,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x84,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch71 = new BitmapCharRec(6,9,-1,0,8,ch71data);
+
+// char: 0x46 'F'
+
+ static final byte[] ch70data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xf0,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch70 = new BitmapCharRec(6,9,-1,0,8,ch70data);
+
+// char: 0x45 'E'
+
+ static final byte[] ch69data = {
+ (byte) 0xfc,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xf0,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch69 = new BitmapCharRec(6,9,-1,0,8,ch69data);
+
+// char: 0x44 'D'
+
+ static final byte[] ch68data = {
+ (byte) 0xfc,(byte) 0x42,(byte) 0x42,(byte) 0x42,(byte) 0x42,(byte) 0x42,(byte) 0x42,(byte) 0x42,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch68 = new BitmapCharRec(7,9,0,0,8,ch68data);
+
+// char: 0x43 'C'
+
+ static final byte[] ch67data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x84,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch67 = new BitmapCharRec(6,9,-1,0,8,ch67data);
+
+// char: 0x42 'B'
+
+ static final byte[] ch66data = {
+ (byte) 0xfc,(byte) 0x42,(byte) 0x42,(byte) 0x42,(byte) 0x7c,(byte) 0x42,(byte) 0x42,(byte) 0x42,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch66 = new BitmapCharRec(7,9,0,0,8,ch66data);
+
+// char: 0x41 'A'
+
+ static final byte[] ch65data = {
+ (byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0xfc,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x48,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch65 = new BitmapCharRec(6,9,-1,0,8,ch65data);
+
+// char: 0x40 '@'
+
+ static final byte[] ch64data = {
+ (byte) 0x78,(byte) 0x80,(byte) 0x94,(byte) 0xac,(byte) 0xa4,(byte) 0x9c,(byte) 0x84,(byte) 0x84,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch64 = new BitmapCharRec(6,9,-1,0,8,ch64data);
+
+// char: 0x3f '?'
+
+ static final byte[] ch63data = {
+ (byte) 0x10,(byte) 0x0,(byte) 0x10,(byte) 0x10,(byte) 0x8,(byte) 0x4,(byte) 0x84,(byte) 0x84,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch63 = new BitmapCharRec(6,9,-1,0,8,ch63data);
+
+// char: 0x3e '>'
+
+ static final byte[] ch62data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x20,(byte) 0x10,(byte) 0x8,(byte) 0x10,(byte) 0x20,(byte) 0x40,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch62 = new BitmapCharRec(5,9,-1,0,8,ch62data);
+
+// char: 0x3d '='
+
+ static final byte[] ch61data = {
+ (byte) 0xfc,(byte) 0x0,(byte) 0x0,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch61 = new BitmapCharRec(6,4,-1,-2,8,ch61data);
+
+// char: 0x3c '<'
+
+ static final byte[] ch60data = {
+ (byte) 0x8,(byte) 0x10,(byte) 0x20,(byte) 0x40,(byte) 0x80,(byte) 0x40,(byte) 0x20,(byte) 0x10,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch60 = new BitmapCharRec(5,9,-2,0,8,ch60data);
+
+// char: 0x3b ';'
+
+ static final byte[] ch59data = {
+ (byte) 0x80,(byte) 0x60,(byte) 0x70,(byte) 0x0,(byte) 0x0,(byte) 0x20,(byte) 0x70,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch59 = new BitmapCharRec(4,8,-1,1,8,ch59data);
+
+// char: 0x3a ':'
+
+ static final byte[] ch58data = {
+ (byte) 0x40,(byte) 0xe0,(byte) 0x40,(byte) 0x0,(byte) 0x0,(byte) 0x40,(byte) 0xe0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch58 = new BitmapCharRec(3,8,-2,1,8,ch58data);
+
+// char: 0x39 '9'
+
+ static final byte[] ch57data = {
+ (byte) 0x70,(byte) 0x8,(byte) 0x4,(byte) 0x4,(byte) 0x74,(byte) 0x8c,(byte) 0x84,(byte) 0x84,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch57 = new BitmapCharRec(6,9,-1,0,8,ch57data);
+
+// char: 0x38 '8'
+
+ static final byte[] ch56data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch56 = new BitmapCharRec(6,9,-1,0,8,ch56data);
+
+// char: 0x37 '7'
+
+ static final byte[] ch55data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0x20,(byte) 0x10,(byte) 0x10,(byte) 0x8,(byte) 0x4,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch55 = new BitmapCharRec(6,9,-1,0,8,ch55data);
+
+// char: 0x36 '6'
+
+ static final byte[] ch54data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0xc4,(byte) 0xb8,(byte) 0x80,(byte) 0x80,(byte) 0x40,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch54 = new BitmapCharRec(6,9,-1,0,8,ch54data);
+
+// char: 0x35 '5'
+
+ static final byte[] ch53data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x4,(byte) 0x4,(byte) 0xc4,(byte) 0xb8,(byte) 0x80,(byte) 0x80,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch53 = new BitmapCharRec(6,9,-1,0,8,ch53data);
+
+// char: 0x34 '4'
+
+ static final byte[] ch52data = {
+ (byte) 0x8,(byte) 0x8,(byte) 0xfc,(byte) 0x88,(byte) 0x88,(byte) 0x48,(byte) 0x28,(byte) 0x18,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch52 = new BitmapCharRec(6,9,-1,0,8,ch52data);
+
+// char: 0x33 '3'
+
+ static final byte[] ch51data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x4,(byte) 0x4,(byte) 0x38,(byte) 0x10,(byte) 0x8,(byte) 0x4,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch51 = new BitmapCharRec(6,9,-1,0,8,ch51data);
+
+// char: 0x32 '2'
+
+ static final byte[] ch50data = {
+ (byte) 0xfc,(byte) 0x80,(byte) 0x40,(byte) 0x30,(byte) 0x8,(byte) 0x4,(byte) 0x84,(byte) 0x84,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch50 = new BitmapCharRec(6,9,-1,0,8,ch50data);
+
+// char: 0x31 '1'
+
+ static final byte[] ch49data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xa0,(byte) 0x60,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch49 = new BitmapCharRec(5,9,-1,0,8,ch49data);
+
+// char: 0x30 '0'
+
+ static final byte[] ch48data = {
+ (byte) 0x30,(byte) 0x48,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x48,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch48 = new BitmapCharRec(6,9,-1,0,8,ch48data);
+
+// char: 0x2f '/'
+
+ static final byte[] ch47data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x40,(byte) 0x20,(byte) 0x10,(byte) 0x8,(byte) 0x4,(byte) 0x2,(byte) 0x2,
+ };
+
+ static final BitmapCharRec ch47 = new BitmapCharRec(7,9,0,0,8,ch47data);
+
+// char: 0x2e '.'
+
+ static final byte[] ch46data = {
+ (byte) 0x40,(byte) 0xe0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch46 = new BitmapCharRec(3,3,-2,1,8,ch46data);
+
+// char: 0x2d '-'
+
+ static final byte[] ch45data = {
+ (byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch45 = new BitmapCharRec(6,1,-1,-4,8,ch45data);
+
+// char: 0x2c ','
+
+ static final byte[] ch44data = {
+ (byte) 0x80,(byte) 0x60,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch44 = new BitmapCharRec(4,3,-1,1,8,ch44data);
+
+// char: 0x2b '+'
+
+ static final byte[] ch43data = {
+ (byte) 0x20,(byte) 0x20,(byte) 0xf8,(byte) 0x20,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch43 = new BitmapCharRec(5,5,-1,-2,8,ch43data);
+
+// char: 0x2a '*'
+
+ static final byte[] ch42data = {
+ (byte) 0x48,(byte) 0x30,(byte) 0xfc,(byte) 0x30,(byte) 0x48,
+ };
+
+ static final BitmapCharRec ch42 = new BitmapCharRec(6,5,-1,-2,8,ch42data);
+
+// char: 0x29 ')'
+
+ static final byte[] ch41data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x40,(byte) 0x40,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch41 = new BitmapCharRec(3,9,-2,0,8,ch41data);
+
+// char: 0x28 '('
+
+ static final byte[] ch40data = {
+ (byte) 0x20,(byte) 0x40,(byte) 0x40,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch40 = new BitmapCharRec(3,9,-3,0,8,ch40data);
+
+// char: 0x27 '''
+
+ static final byte[] ch39data = {
+ (byte) 0x80,(byte) 0x60,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch39 = new BitmapCharRec(4,3,-1,-6,8,ch39data);
+
+// char: 0x26 '&'
+
+ static final byte[] ch38data = {
+ (byte) 0x74,(byte) 0x88,(byte) 0x94,(byte) 0x60,(byte) 0x90,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch38 = new BitmapCharRec(6,7,-1,0,8,ch38data);
+
+// char: 0x25 '%'
+
+ static final byte[] ch37data = {
+ (byte) 0x88,(byte) 0x54,(byte) 0x48,(byte) 0x20,(byte) 0x10,(byte) 0x10,(byte) 0x48,(byte) 0xa4,(byte) 0x44,
+ };
+
+ static final BitmapCharRec ch37 = new BitmapCharRec(6,9,-1,0,8,ch37data);
+
+// char: 0x24 '$'
+
+ static final byte[] ch36data = {
+ (byte) 0x20,(byte) 0xf0,(byte) 0x28,(byte) 0x70,(byte) 0xa0,(byte) 0x78,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch36 = new BitmapCharRec(5,7,-1,-1,8,ch36data);
+
+// char: 0x23 '#'
+
+ static final byte[] ch35data = {
+ (byte) 0x48,(byte) 0x48,(byte) 0xfc,(byte) 0x48,(byte) 0xfc,(byte) 0x48,(byte) 0x48,
+ };
+
+ static final BitmapCharRec ch35 = new BitmapCharRec(6,7,-1,-1,8,ch35data);
+
+// char: 0x22 '"'
+
+ static final byte[] ch34data = {
+ (byte) 0x90,(byte) 0x90,(byte) 0x90,
+ };
+
+ static final BitmapCharRec ch34 = new BitmapCharRec(4,3,-2,-6,8,ch34data);
+
+// char: 0x21 '!'
+
+ static final byte[] ch33data = {
+ (byte) 0x80,(byte) 0x0,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch33 = new BitmapCharRec(1,9,-3,0,8,ch33data);
+
+// char: 0x1f
+
+ static final byte[] ch31data = {
+ (byte) 0x80,
+ };
+
+ static final BitmapCharRec ch31 = new BitmapCharRec(1,1,-3,-3,8,ch31data);
+
+// char: 0x1e
+
+ static final byte[] ch30data = {
+ (byte) 0xdc,(byte) 0x62,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x70,(byte) 0x20,(byte) 0x22,(byte) 0x1c,
+ };
+
+ static final BitmapCharRec ch30 = new BitmapCharRec(7,9,0,0,8,ch30data);
+
+// char: 0x1d
+
+ static final byte[] ch29data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0xfe,(byte) 0x10,(byte) 0xfe,(byte) 0x4,(byte) 0x2,
+ };
+
+ static final BitmapCharRec ch29 = new BitmapCharRec(7,7,0,0,8,ch29data);
+
+// char: 0x1c
+
+ static final byte[] ch28data = {
+ (byte) 0x88,(byte) 0x48,(byte) 0x48,(byte) 0x48,(byte) 0x48,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch28 = new BitmapCharRec(6,6,-1,0,8,ch28data);
+
+// char: 0x1b
+
+ static final byte[] ch27data = {
+ (byte) 0xfe,(byte) 0x80,(byte) 0x20,(byte) 0x8,(byte) 0x2,(byte) 0x8,(byte) 0x20,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch27 = new BitmapCharRec(7,8,0,0,8,ch27data);
+
+// char: 0x1a
+
+ static final byte[] ch26data = {
+ (byte) 0xfe,(byte) 0x2,(byte) 0x8,(byte) 0x20,(byte) 0x80,(byte) 0x20,(byte) 0x8,(byte) 0x2,
+ };
+
+ static final BitmapCharRec ch26 = new BitmapCharRec(7,8,0,0,8,ch26data);
+
+// char: 0x19
+
+ static final byte[] ch25data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch25 = new BitmapCharRec(1,13,-3,2,8,ch25data);
+
+// char: 0x18
+
+ static final byte[] ch24data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0xff,
+ };
+
+ static final BitmapCharRec ch24 = new BitmapCharRec(8,6,0,2,8,ch24data);
+
+// char: 0x17
+
+ static final byte[] ch23data = {
+ (byte) 0xff,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch23 = new BitmapCharRec(8,8,0,-3,8,ch23data);
+
+// char: 0x16
+
+ static final byte[] ch22data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0xf0,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch22 = new BitmapCharRec(4,13,0,2,8,ch22data);
+
+// char: 0x15
+
+ static final byte[] ch21data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xf8,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch21 = new BitmapCharRec(5,13,-3,2,8,ch21data);
+
+// char: 0x14
+
+ static final byte[] ch20data = {
+ (byte) 0xff,
+ };
+
+ static final BitmapCharRec ch20 = new BitmapCharRec(8,1,0,1,8,ch20data);
+
+// char: 0x13
+
+ static final byte[] ch19data = {
+ (byte) 0xff,
+ };
+
+ static final BitmapCharRec ch19 = new BitmapCharRec(8,1,0,-1,8,ch19data);
+
+// char: 0x12
+
+ static final byte[] ch18data = {
+ (byte) 0xff,
+ };
+
+ static final BitmapCharRec ch18 = new BitmapCharRec(8,1,0,-3,8,ch18data);
+
+// char: 0x11
+
+ static final byte[] ch17data = {
+ (byte) 0xff,
+ };
+
+ static final BitmapCharRec ch17 = new BitmapCharRec(8,1,0,-5,8,ch17data);
+
+// char: 0x10
+
+ static final byte[] ch16data = {
+ (byte) 0xff,
+ };
+
+ static final BitmapCharRec ch16 = new BitmapCharRec(8,1,0,-7,8,ch16data);
+
+// char: 0xf
+
+ static final byte[] ch15data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0xff,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch15 = new BitmapCharRec(8,13,0,2,8,ch15data);
+
+// char: 0xe
+
+ static final byte[] ch14data = {
+ (byte) 0xf8,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch14 = new BitmapCharRec(5,8,-3,-3,8,ch14data);
+
+// char: 0xd
+
+ static final byte[] ch13data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch13 = new BitmapCharRec(5,6,-3,2,8,ch13data);
+
+// char: 0xc
+
+ static final byte[] ch12data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch12 = new BitmapCharRec(4,6,0,2,8,ch12data);
+
+// char: 0xb
+
+ static final byte[] ch11data = {
+ (byte) 0xf0,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch11 = new BitmapCharRec(4,8,0,-3,8,ch11data);
+
+// char: 0xa
+
+ static final byte[] ch10data = {
+ (byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x3e,(byte) 0x20,(byte) 0x50,(byte) 0x88,(byte) 0x88,
+ };
+
+ static final BitmapCharRec ch10 = new BitmapCharRec(7,9,0,2,8,ch10data);
+
+// char: 0x9
+
+ static final byte[] ch9data = {
+ (byte) 0x3e,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x88,(byte) 0x98,(byte) 0xa8,(byte) 0xc8,(byte) 0x88,
+ };
+
+ static final BitmapCharRec ch9 = new BitmapCharRec(7,9,0,2,8,ch9data);
+
+// char: 0x8
+
+ static final byte[] ch8data = {
+ (byte) 0xfe,(byte) 0x10,(byte) 0x10,(byte) 0xfe,(byte) 0x10,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch8 = new BitmapCharRec(7,6,0,0,8,ch8data);
+
+// char: 0x7
+
+ static final byte[] ch7data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch7 = new BitmapCharRec(5,4,-1,-5,8,ch7data);
+
+// char: 0x6
+
+ static final byte[] ch6data = {
+ (byte) 0x20,(byte) 0x20,(byte) 0x3c,(byte) 0x20,(byte) 0x3e,(byte) 0xf8,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch6 = new BitmapCharRec(7,9,0,2,8,ch6data);
+
+// char: 0x5
+
+ static final byte[] ch5data = {
+ (byte) 0x22,(byte) 0x22,(byte) 0x3c,(byte) 0x22,(byte) 0x3c,(byte) 0x78,(byte) 0x80,(byte) 0x80,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch5 = new BitmapCharRec(7,9,0,2,8,ch5data);
+
+// char: 0x4
+
+ static final byte[] ch4data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0x1c,(byte) 0x10,(byte) 0x9e,(byte) 0x80,(byte) 0xe0,(byte) 0x80,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch4 = new BitmapCharRec(7,9,0,2,8,ch4data);
+
+// char: 0x3
+
+ static final byte[] ch3data = {
+ (byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x3e,(byte) 0x88,(byte) 0x88,(byte) 0xf8,(byte) 0x88,(byte) 0x88,
+ };
+
+ static final BitmapCharRec ch3 = new BitmapCharRec(7,9,0,2,8,ch3data);
+
+// char: 0x2
+
+ static final byte[] ch2data = {
+ (byte) 0x55,(byte) 0xaa,(byte) 0x55,(byte) 0xaa,(byte) 0x55,(byte) 0xaa,(byte) 0x55,(byte) 0xaa,(byte) 0x55,(byte) 0xaa,(byte) 0x55,(byte) 0xaa,
+ };
+
+ static final BitmapCharRec ch2 = new BitmapCharRec(8,12,0,2,8,ch2data);
+
+// char: 0x1
+
+ static final byte[] ch1data = {
+ (byte) 0x10,(byte) 0x38,(byte) 0x7c,(byte) 0xfe,(byte) 0x7c,(byte) 0x38,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch1 = new BitmapCharRec(7,7,0,-1,8,ch1data);
+
+ static final BitmapCharRec chars[] = {
+ ch0,
+ ch1,
+ ch2,
+ ch3,
+ ch4,
+ ch5,
+ ch6,
+ ch7,
+ ch8,
+ ch9,
+ ch10,
+ ch11,
+ ch12,
+ ch13,
+ ch14,
+ ch15,
+ ch16,
+ ch17,
+ ch18,
+ ch19,
+ ch20,
+ ch21,
+ ch22,
+ ch23,
+ ch24,
+ ch25,
+ ch26,
+ ch27,
+ ch28,
+ ch29,
+ ch30,
+ ch31,
+ ch32,
+ ch33,
+ ch34,
+ ch35,
+ ch36,
+ ch37,
+ ch38,
+ ch39,
+ ch40,
+ ch41,
+ ch42,
+ ch43,
+ ch44,
+ ch45,
+ ch46,
+ ch47,
+ ch48,
+ ch49,
+ ch50,
+ ch51,
+ ch52,
+ ch53,
+ ch54,
+ ch55,
+ ch56,
+ ch57,
+ ch58,
+ ch59,
+ ch60,
+ ch61,
+ ch62,
+ ch63,
+ ch64,
+ ch65,
+ ch66,
+ ch67,
+ ch68,
+ ch69,
+ ch70,
+ ch71,
+ ch72,
+ ch73,
+ ch74,
+ ch75,
+ ch76,
+ ch77,
+ ch78,
+ ch79,
+ ch80,
+ ch81,
+ ch82,
+ ch83,
+ ch84,
+ ch85,
+ ch86,
+ ch87,
+ ch88,
+ ch89,
+ ch90,
+ ch91,
+ ch92,
+ ch93,
+ ch94,
+ ch95,
+ ch96,
+ ch97,
+ ch98,
+ ch99,
+ ch100,
+ ch101,
+ ch102,
+ ch103,
+ ch104,
+ ch105,
+ ch106,
+ ch107,
+ ch108,
+ ch109,
+ ch110,
+ ch111,
+ ch112,
+ ch113,
+ ch114,
+ ch115,
+ ch116,
+ ch117,
+ ch118,
+ ch119,
+ ch120,
+ ch121,
+ ch122,
+ ch123,
+ ch124,
+ ch125,
+ ch126,
+ ch127,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ ch160,
+ ch161,
+ ch162,
+ ch163,
+ ch164,
+ ch165,
+ ch166,
+ ch167,
+ ch168,
+ ch169,
+ ch170,
+ ch171,
+ ch172,
+ ch173,
+ ch174,
+ ch175,
+ ch176,
+ ch177,
+ ch178,
+ ch179,
+ ch180,
+ ch181,
+ ch182,
+ ch183,
+ ch184,
+ ch185,
+ ch186,
+ ch187,
+ ch188,
+ ch189,
+ ch190,
+ ch191,
+ ch192,
+ ch193,
+ ch194,
+ ch195,
+ ch196,
+ ch197,
+ ch198,
+ ch199,
+ ch200,
+ ch201,
+ ch202,
+ ch203,
+ ch204,
+ ch205,
+ ch206,
+ ch207,
+ ch208,
+ ch209,
+ ch210,
+ ch211,
+ ch212,
+ ch213,
+ ch214,
+ ch215,
+ ch216,
+ ch217,
+ ch218,
+ ch219,
+ ch220,
+ ch221,
+ ch222,
+ ch223,
+ ch224,
+ ch225,
+ ch226,
+ ch227,
+ ch228,
+ ch229,
+ ch230,
+ ch231,
+ ch232,
+ ch233,
+ ch234,
+ ch235,
+ ch236,
+ ch237,
+ ch238,
+ ch239,
+ ch240,
+ ch241,
+ ch242,
+ ch243,
+ ch244,
+ ch245,
+ ch246,
+ ch247,
+ ch248,
+ ch249,
+ ch250,
+ ch251,
+ ch252,
+ ch253,
+ ch254,
+ ch255,
+ };
+
+ static final BitmapFontRec fontinfo = new BitmapFontRec(
+ "8x13",
+ 256,
+ 0,
+ chars
+ );
+
+ public static BitmapFontRec getBitmapFontRec() {
+ return fontinfo;
+ }
+} // end of class glutBitmap8By13
diff --git a/gl4java/utils/glut/fonts/data/glutBitmap9By15.java b/gl4java/utils/glut/fonts/data/glutBitmap9By15.java
new file mode 100644
index 0000000..4cddc0d
--- /dev/null
+++ b/gl4java/utils/glut/fonts/data/glutBitmap9By15.java
@@ -0,0 +1,2050 @@
+
+// GENERATED FILE -- DO NOT MODIFY
+
+package gl4java.utils.glut.fonts.data;
+
+import gl4java.utils.glut.fonts.*;
+
+
+public class glutBitmap9By15 implements GLUTBitmapFont {
+ private static byte[] zerodata={ 0 };
+ static final BitmapCharRec ch0 = new BitmapCharRec(0,0,0,0,9,zerodata);
+
+ static final BitmapCharRec ch32 = new BitmapCharRec(0,0,0,0,9,zerodata);
+
+ static final BitmapCharRec ch127 = new BitmapCharRec(0,0,0,0,9,zerodata);
+
+ static final BitmapCharRec ch160 = new BitmapCharRec(0,0,0,0,9,zerodata);
+
+// char: 0xff
+
+ static final byte[] ch255data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x4,(byte) 0x74,(byte) 0x8c,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x0,(byte) 0x0,(byte) 0x28,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch255 = new BitmapCharRec(6,14,-1,3,9,ch255data);
+
+// char: 0xfe
+
+ static final byte[] ch254data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xbc,(byte) 0xc2,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0xc2,(byte) 0xbc,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch254 = new BitmapCharRec(7,12,-1,3,9,ch254data);
+
+// char: 0xfd
+
+ static final byte[] ch253data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x4,(byte) 0x74,(byte) 0x8c,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x0,(byte) 0x0,(byte) 0x30,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch253 = new BitmapCharRec(6,14,-1,3,9,ch253data);
+
+// char: 0xfc
+
+ static final byte[] ch252data = {
+ (byte) 0x7a,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x0,(byte) 0x0,(byte) 0x28,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch252 = new BitmapCharRec(7,11,-1,0,9,ch252data);
+
+// char: 0xfb
+
+ static final byte[] ch251data = {
+ (byte) 0x7a,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x0,(byte) 0x0,(byte) 0x44,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch251 = new BitmapCharRec(7,11,-1,0,9,ch251data);
+
+// char: 0xfa
+
+ static final byte[] ch250data = {
+ (byte) 0x7a,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x0,(byte) 0x0,(byte) 0x30,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch250 = new BitmapCharRec(7,11,-1,0,9,ch250data);
+
+// char: 0xf9
+
+ static final byte[] ch249data = {
+ (byte) 0x7a,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x0,(byte) 0x0,(byte) 0x18,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch249 = new BitmapCharRec(7,11,-1,0,9,ch249data);
+
+// char: 0xf8
+
+ static final byte[] ch248data = {
+ (byte) 0x80,(byte) 0x7c,(byte) 0xa2,(byte) 0xa2,(byte) 0x92,(byte) 0x8a,(byte) 0x8a,(byte) 0x7c,(byte) 0x2,
+ };
+
+ static final BitmapCharRec ch248 = new BitmapCharRec(7,9,-1,1,9,ch248data);
+
+// char: 0xf7
+
+ static final byte[] ch247data = {
+ (byte) 0x10,(byte) 0x38,(byte) 0x10,(byte) 0x0,(byte) 0xfe,(byte) 0x0,(byte) 0x10,(byte) 0x38,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch247 = new BitmapCharRec(7,9,-1,0,9,ch247data);
+
+// char: 0xf6
+
+ static final byte[] ch246data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x0,(byte) 0x0,(byte) 0x28,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch246 = new BitmapCharRec(7,11,-1,0,9,ch246data);
+
+// char: 0xf5
+
+ static final byte[] ch245data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x0,(byte) 0x0,(byte) 0x50,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch245 = new BitmapCharRec(7,11,-1,0,9,ch245data);
+
+// char: 0xf4
+
+ static final byte[] ch244data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x0,(byte) 0x0,(byte) 0x44,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch244 = new BitmapCharRec(7,11,-1,0,9,ch244data);
+
+// char: 0xf3
+
+ static final byte[] ch243data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x0,(byte) 0x0,(byte) 0x30,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch243 = new BitmapCharRec(7,11,-1,0,9,ch243data);
+
+// char: 0xf2
+
+ static final byte[] ch242data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x0,(byte) 0x0,(byte) 0x18,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch242 = new BitmapCharRec(7,11,-1,0,9,ch242data);
+
+// char: 0xf1
+
+ static final byte[] ch241data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0xc2,(byte) 0xbc,(byte) 0x0,(byte) 0x0,(byte) 0x50,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch241 = new BitmapCharRec(7,11,-1,0,9,ch241data);
+
+// char: 0xf0
+
+ static final byte[] ch240data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x8,(byte) 0x50,(byte) 0x30,(byte) 0x48,
+ };
+
+ static final BitmapCharRec ch240 = new BitmapCharRec(7,11,-1,0,9,ch240data);
+
+// char: 0xef
+
+ static final byte[] ch239data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xe0,(byte) 0x0,(byte) 0x0,(byte) 0x50,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch239 = new BitmapCharRec(5,11,-2,0,9,ch239data);
+
+// char: 0xee
+
+ static final byte[] ch238data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xe0,(byte) 0x0,(byte) 0x0,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch238 = new BitmapCharRec(5,11,-2,0,9,ch238data);
+
+// char: 0xed
+
+ static final byte[] ch237data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xe0,(byte) 0x0,(byte) 0x0,(byte) 0x60,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch237 = new BitmapCharRec(5,11,-2,0,9,ch237data);
+
+// char: 0xec
+
+ static final byte[] ch236data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xe0,(byte) 0x0,(byte) 0x0,(byte) 0x30,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch236 = new BitmapCharRec(5,11,-2,0,9,ch236data);
+
+// char: 0xeb
+
+ static final byte[] ch235data = {
+ (byte) 0x7c,(byte) 0x80,(byte) 0x80,(byte) 0xfe,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x0,(byte) 0x0,(byte) 0x28,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch235 = new BitmapCharRec(7,11,-1,0,9,ch235data);
+
+// char: 0xea
+
+ static final byte[] ch234data = {
+ (byte) 0x7c,(byte) 0x80,(byte) 0x80,(byte) 0xfe,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x0,(byte) 0x0,(byte) 0x44,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch234 = new BitmapCharRec(7,11,-1,0,9,ch234data);
+
+// char: 0xe9
+
+ static final byte[] ch233data = {
+ (byte) 0x7c,(byte) 0x80,(byte) 0x80,(byte) 0xfe,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x0,(byte) 0x0,(byte) 0x30,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch233 = new BitmapCharRec(7,11,-1,0,9,ch233data);
+
+// char: 0xe8
+
+ static final byte[] ch232data = {
+ (byte) 0x7c,(byte) 0x80,(byte) 0x80,(byte) 0xfe,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x0,(byte) 0x0,(byte) 0x18,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch232 = new BitmapCharRec(7,11,-1,0,9,ch232data);
+
+// char: 0xe7
+
+ static final byte[] ch231data = {
+ (byte) 0x30,(byte) 0x48,(byte) 0x18,(byte) 0x7c,(byte) 0x82,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x82,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch231 = new BitmapCharRec(7,10,-1,3,9,ch231data);
+
+// char: 0xe6
+
+ static final byte[] ch230data = {
+ (byte) 0x6e,(byte) 0x92,(byte) 0x90,(byte) 0x7c,(byte) 0x12,(byte) 0x92,(byte) 0x6c,
+ };
+
+ static final BitmapCharRec ch230 = new BitmapCharRec(7,7,-1,0,9,ch230data);
+
+// char: 0xe5
+
+ static final byte[] ch229data = {
+ (byte) 0x7a,(byte) 0x86,(byte) 0x82,(byte) 0x7e,(byte) 0x2,(byte) 0x2,(byte) 0x7c,(byte) 0x0,(byte) 0x18,(byte) 0x24,(byte) 0x18,
+ };
+
+ static final BitmapCharRec ch229 = new BitmapCharRec(7,11,-1,0,9,ch229data);
+
+// char: 0xe4
+
+ static final byte[] ch228data = {
+ (byte) 0x7a,(byte) 0x86,(byte) 0x82,(byte) 0x7e,(byte) 0x2,(byte) 0x2,(byte) 0x7c,(byte) 0x0,(byte) 0x0,(byte) 0x28,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch228 = new BitmapCharRec(7,11,-1,0,9,ch228data);
+
+// char: 0xe3
+
+ static final byte[] ch227data = {
+ (byte) 0x7a,(byte) 0x86,(byte) 0x82,(byte) 0x7e,(byte) 0x2,(byte) 0x2,(byte) 0x7c,(byte) 0x0,(byte) 0x0,(byte) 0x50,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch227 = new BitmapCharRec(7,11,-1,0,9,ch227data);
+
+// char: 0xe2
+
+ static final byte[] ch226data = {
+ (byte) 0x7a,(byte) 0x86,(byte) 0x82,(byte) 0x7e,(byte) 0x2,(byte) 0x2,(byte) 0x7c,(byte) 0x0,(byte) 0x0,(byte) 0x44,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch226 = new BitmapCharRec(7,11,-1,0,9,ch226data);
+
+// char: 0xe1
+
+ static final byte[] ch225data = {
+ (byte) 0x7a,(byte) 0x86,(byte) 0x82,(byte) 0x7e,(byte) 0x2,(byte) 0x2,(byte) 0x7c,(byte) 0x0,(byte) 0x0,(byte) 0x30,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch225 = new BitmapCharRec(7,11,-1,0,9,ch225data);
+
+// char: 0xe0
+
+ static final byte[] ch224data = {
+ (byte) 0x7a,(byte) 0x86,(byte) 0x82,(byte) 0x7e,(byte) 0x2,(byte) 0x2,(byte) 0x7c,(byte) 0x0,(byte) 0x0,(byte) 0x18,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch224 = new BitmapCharRec(7,11,-1,0,9,ch224data);
+
+// char: 0xdf
+
+ static final byte[] ch223data = {
+ (byte) 0x80,(byte) 0xbc,(byte) 0xc2,(byte) 0x82,(byte) 0x82,(byte) 0xfc,(byte) 0x82,(byte) 0x82,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch223 = new BitmapCharRec(7,9,-1,1,9,ch223data);
+
+// char: 0xde
+
+ static final byte[] ch222data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xfc,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0xfc,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch222 = new BitmapCharRec(7,10,-1,0,9,ch222data);
+
+// char: 0xdd
+
+ static final byte[] ch221data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x28,(byte) 0x44,(byte) 0x82,(byte) 0x82,(byte) 0x0,(byte) 0x30,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch221 = new BitmapCharRec(7,11,-1,0,9,ch221data);
+
+// char: 0xdc
+
+ static final byte[] ch220data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x0,(byte) 0x28,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch220 = new BitmapCharRec(7,11,-1,0,9,ch220data);
+
+// char: 0xdb
+
+ static final byte[] ch219data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x0,(byte) 0x44,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch219 = new BitmapCharRec(7,11,-1,0,9,ch219data);
+
+// char: 0xda
+
+ static final byte[] ch218data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x0,(byte) 0x30,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch218 = new BitmapCharRec(7,11,-1,0,9,ch218data);
+
+// char: 0xd9
+
+ static final byte[] ch217data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x0,(byte) 0x18,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch217 = new BitmapCharRec(7,11,-1,0,9,ch217data);
+
+// char: 0xd8
+
+ static final byte[] ch216data = {
+ (byte) 0x80,(byte) 0x7c,(byte) 0xc2,(byte) 0xa2,(byte) 0xa2,(byte) 0x92,(byte) 0x92,(byte) 0x8a,(byte) 0x8a,(byte) 0x86,(byte) 0x7c,(byte) 0x2,
+ };
+
+ static final BitmapCharRec ch216 = new BitmapCharRec(7,12,-1,1,9,ch216data);
+
+// char: 0xd7
+
+ static final byte[] ch215data = {
+ (byte) 0x82,(byte) 0x44,(byte) 0x28,(byte) 0x10,(byte) 0x28,(byte) 0x44,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch215 = new BitmapCharRec(7,7,-1,-1,9,ch215data);
+
+// char: 0xd6
+
+ static final byte[] ch214data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x0,(byte) 0x28,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch214 = new BitmapCharRec(7,11,-1,0,9,ch214data);
+
+// char: 0xd5
+
+ static final byte[] ch213data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x0,(byte) 0x50,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch213 = new BitmapCharRec(7,11,-1,0,9,ch213data);
+
+// char: 0xd4
+
+ static final byte[] ch212data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x0,(byte) 0x44,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch212 = new BitmapCharRec(7,11,-1,0,9,ch212data);
+
+// char: 0xd3
+
+ static final byte[] ch211data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x0,(byte) 0x30,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch211 = new BitmapCharRec(7,11,-1,0,9,ch211data);
+
+// char: 0xd2
+
+ static final byte[] ch210data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x0,(byte) 0x18,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch210 = new BitmapCharRec(7,11,-1,0,9,ch210data);
+
+// char: 0xd1
+
+ static final byte[] ch209data = {
+ (byte) 0x82,(byte) 0x86,(byte) 0x8a,(byte) 0x92,(byte) 0x92,(byte) 0xa2,(byte) 0xc2,(byte) 0x82,(byte) 0x0,(byte) 0x50,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch209 = new BitmapCharRec(7,11,-1,0,9,ch209data);
+
+// char: 0xd0
+
+ static final byte[] ch208data = {
+ (byte) 0xfc,(byte) 0x42,(byte) 0x42,(byte) 0x42,(byte) 0x42,(byte) 0xf2,(byte) 0x42,(byte) 0x42,(byte) 0x42,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch208 = new BitmapCharRec(7,10,-1,0,9,ch208data);
+
+// char: 0xcf
+
+ static final byte[] ch207data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xf8,(byte) 0x0,(byte) 0x50,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch207 = new BitmapCharRec(5,11,-2,0,9,ch207data);
+
+// char: 0xce
+
+ static final byte[] ch206data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xf8,(byte) 0x0,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch206 = new BitmapCharRec(5,11,-2,0,9,ch206data);
+
+// char: 0xcd
+
+ static final byte[] ch205data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xf8,(byte) 0x0,(byte) 0x60,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch205 = new BitmapCharRec(5,11,-2,0,9,ch205data);
+
+// char: 0xcc
+
+ static final byte[] ch204data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xf8,(byte) 0x0,(byte) 0x30,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch204 = new BitmapCharRec(5,11,-2,0,9,ch204data);
+
+// char: 0xcb
+
+ static final byte[] ch203data = {
+ (byte) 0xfe,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x78,(byte) 0x40,(byte) 0x40,(byte) 0xfe,(byte) 0x0,(byte) 0x28,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch203 = new BitmapCharRec(7,11,-1,0,9,ch203data);
+
+// char: 0xca
+
+ static final byte[] ch202data = {
+ (byte) 0xfe,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x78,(byte) 0x40,(byte) 0x40,(byte) 0xfe,(byte) 0x0,(byte) 0x44,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch202 = new BitmapCharRec(7,11,-1,0,9,ch202data);
+
+// char: 0xc9
+
+ static final byte[] ch201data = {
+ (byte) 0xfe,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x78,(byte) 0x40,(byte) 0x40,(byte) 0xfe,(byte) 0x0,(byte) 0x30,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch201 = new BitmapCharRec(7,11,-1,0,9,ch201data);
+
+// char: 0xc8
+
+ static final byte[] ch200data = {
+ (byte) 0xfe,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x78,(byte) 0x40,(byte) 0x40,(byte) 0xfe,(byte) 0x0,(byte) 0x18,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch200 = new BitmapCharRec(7,11,-1,0,9,ch200data);
+
+// char: 0xc7
+
+ static final byte[] ch199data = {
+ (byte) 0x30,(byte) 0x48,(byte) 0x18,(byte) 0x7c,(byte) 0x82,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x82,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch199 = new BitmapCharRec(7,13,-1,3,9,ch199data);
+
+// char: 0xc6
+
+ static final byte[] ch198data = {
+ (byte) 0x9e,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0xfc,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x6e,
+ };
+
+ static final BitmapCharRec ch198 = new BitmapCharRec(7,10,-1,0,9,ch198data);
+
+// char: 0xc5
+
+ static final byte[] ch197data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0xfe,(byte) 0x82,(byte) 0x82,(byte) 0x44,(byte) 0x38,(byte) 0x10,(byte) 0x28,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch197 = new BitmapCharRec(7,11,-1,0,9,ch197data);
+
+// char: 0xc4
+
+ static final byte[] ch196data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0xfe,(byte) 0x82,(byte) 0x82,(byte) 0x44,(byte) 0x38,(byte) 0x0,(byte) 0x28,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch196 = new BitmapCharRec(7,11,-1,0,9,ch196data);
+
+// char: 0xc3
+
+ static final byte[] ch195data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0xfe,(byte) 0x82,(byte) 0x82,(byte) 0x44,(byte) 0x38,(byte) 0x0,(byte) 0x50,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch195 = new BitmapCharRec(7,11,-1,0,9,ch195data);
+
+// char: 0xc2
+
+ static final byte[] ch194data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0xfe,(byte) 0x82,(byte) 0x82,(byte) 0x44,(byte) 0x38,(byte) 0x0,(byte) 0x44,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch194 = new BitmapCharRec(7,11,-1,0,9,ch194data);
+
+// char: 0xc1
+
+ static final byte[] ch193data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0xfe,(byte) 0x82,(byte) 0x82,(byte) 0x44,(byte) 0x38,(byte) 0x0,(byte) 0x30,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch193 = new BitmapCharRec(7,11,-1,0,9,ch193data);
+
+// char: 0xc0
+
+ static final byte[] ch192data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0xfe,(byte) 0x82,(byte) 0x82,(byte) 0x44,(byte) 0x38,(byte) 0x0,(byte) 0x18,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch192 = new BitmapCharRec(7,11,-1,0,9,ch192data);
+
+// char: 0xbf
+
+ static final byte[] ch191data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x80,(byte) 0x40,(byte) 0x20,(byte) 0x10,(byte) 0x10,(byte) 0x0,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch191 = new BitmapCharRec(7,10,-1,0,9,ch191data);
+
+// char: 0xbe
+
+ static final byte[] ch190data = {
+ (byte) 0x6,(byte) 0x1a,(byte) 0x12,(byte) 0xa,(byte) 0x66,(byte) 0x92,(byte) 0x10,(byte) 0x20,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch190 = new BitmapCharRec(7,10,-1,0,9,ch190data);
+
+// char: 0xbd
+
+ static final byte[] ch189data = {
+ (byte) 0x1e,(byte) 0x10,(byte) 0xc,(byte) 0x2,(byte) 0xf2,(byte) 0x4c,(byte) 0x40,(byte) 0x40,(byte) 0xc0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch189 = new BitmapCharRec(7,10,-1,0,9,ch189data);
+
+// char: 0xbc
+
+ static final byte[] ch188data = {
+ (byte) 0x6,(byte) 0x1a,(byte) 0x12,(byte) 0xa,(byte) 0xe6,(byte) 0x42,(byte) 0x40,(byte) 0x40,(byte) 0xc0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch188 = new BitmapCharRec(7,10,-1,0,9,ch188data);
+
+// char: 0xbb
+
+ static final byte[] ch187data = {
+ (byte) 0x90,(byte) 0x48,(byte) 0x24,(byte) 0x12,(byte) 0x12,(byte) 0x24,(byte) 0x48,(byte) 0x90,
+ };
+
+ static final BitmapCharRec ch187 = new BitmapCharRec(7,8,-1,-1,9,ch187data);
+
+// char: 0xba
+
+ static final byte[] ch186data = {
+ (byte) 0xf8,(byte) 0x0,(byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch186 = new BitmapCharRec(5,6,-1,-5,9,ch186data);
+
+// char: 0xb9
+
+ static final byte[] ch185data = {
+ (byte) 0xe0,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xc0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch185 = new BitmapCharRec(3,6,-1,-4,9,ch185data);
+
+// char: 0xb8
+
+ static final byte[] ch184data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch184 = new BitmapCharRec(4,3,-2,3,9,ch184data);
+
+// char: 0xb7
+
+ static final byte[] ch183data = {
+ (byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch183 = new BitmapCharRec(2,2,-4,-4,9,ch183data);
+
+// char: 0xb6
+
+ static final byte[] ch182data = {
+ (byte) 0xa,(byte) 0xa,(byte) 0xa,(byte) 0xa,(byte) 0xa,(byte) 0x7a,(byte) 0x8a,(byte) 0x8a,(byte) 0x8a,(byte) 0x7e,
+ };
+
+ static final BitmapCharRec ch182 = new BitmapCharRec(7,10,-1,0,9,ch182data);
+
+// char: 0xb5
+
+ static final byte[] ch181data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0xba,(byte) 0xc6,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch181 = new BitmapCharRec(7,9,-1,2,9,ch181data);
+
+// char: 0xb4
+
+ static final byte[] ch180data = {
+ (byte) 0xc0,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch180 = new BitmapCharRec(3,2,-3,-9,9,ch180data);
+
+// char: 0xb3
+
+ static final byte[] ch179data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x10,(byte) 0x20,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch179 = new BitmapCharRec(4,6,-1,-4,9,ch179data);
+
+// char: 0xb2
+
+ static final byte[] ch178data = {
+ (byte) 0xf0,(byte) 0x80,(byte) 0x60,(byte) 0x10,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch178 = new BitmapCharRec(4,6,-1,-4,9,ch178data);
+
+// char: 0xb1
+
+ static final byte[] ch177data = {
+ (byte) 0xfe,(byte) 0x0,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0xfe,(byte) 0x10,(byte) 0x10,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch177 = new BitmapCharRec(7,9,-1,-1,9,ch177data);
+
+// char: 0xb0
+
+ static final byte[] ch176data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch176 = new BitmapCharRec(4,4,-3,-6,9,ch176data);
+
+// char: 0xaf
+
+ static final byte[] ch175data = {
+ (byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch175 = new BitmapCharRec(6,1,-1,-9,9,ch175data);
+
+// char: 0xae
+
+ static final byte[] ch174data = {
+ (byte) 0x3c,(byte) 0x42,(byte) 0xa5,(byte) 0xa9,(byte) 0xbd,(byte) 0xa5,(byte) 0xb9,(byte) 0x42,(byte) 0x3c,
+ };
+
+ static final BitmapCharRec ch174 = new BitmapCharRec(8,9,0,-1,9,ch174data);
+
+// char: 0xad
+
+ static final byte[] ch173data = {
+ (byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch173 = new BitmapCharRec(6,1,-1,-4,9,ch173data);
+
+// char: 0xac
+
+ static final byte[] ch172data = {
+ (byte) 0x4,(byte) 0x4,(byte) 0x4,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch172 = new BitmapCharRec(6,4,-1,-2,9,ch172data);
+
+// char: 0xab
+
+ static final byte[] ch171data = {
+ (byte) 0x12,(byte) 0x24,(byte) 0x48,(byte) 0x90,(byte) 0x90,(byte) 0x48,(byte) 0x24,(byte) 0x12,
+ };
+
+ static final BitmapCharRec ch171 = new BitmapCharRec(7,8,-1,-1,9,ch171data);
+
+// char: 0xaa
+
+ static final byte[] ch170data = {
+ (byte) 0xf8,(byte) 0x0,(byte) 0x78,(byte) 0x90,(byte) 0x70,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch170 = new BitmapCharRec(5,7,-3,-3,9,ch170data);
+
+// char: 0xa9
+
+ static final byte[] ch169data = {
+ (byte) 0x3c,(byte) 0x42,(byte) 0x99,(byte) 0xa5,(byte) 0xa1,(byte) 0xa5,(byte) 0x99,(byte) 0x42,(byte) 0x3c,
+ };
+
+ static final BitmapCharRec ch169 = new BitmapCharRec(8,9,0,-1,9,ch169data);
+
+// char: 0xa8
+
+ static final byte[] ch168data = {
+ (byte) 0xa0,(byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch168 = new BitmapCharRec(3,2,-3,-9,9,ch168data);
+
+// char: 0xa7
+
+ static final byte[] ch167data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x8,(byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x70,(byte) 0x80,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch167 = new BitmapCharRec(5,11,-2,1,9,ch167data);
+
+// char: 0xa6
+
+ static final byte[] ch166data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x0,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch166 = new BitmapCharRec(1,11,-4,1,9,ch166data);
+
+// char: 0xa5
+
+ static final byte[] ch165data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x7c,(byte) 0x10,(byte) 0x7c,(byte) 0x28,(byte) 0x44,(byte) 0x82,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch165 = new BitmapCharRec(7,10,-1,0,9,ch165data);
+
+// char: 0xa4
+
+ static final byte[] ch164data = {
+ (byte) 0x82,(byte) 0x7c,(byte) 0x44,(byte) 0x44,(byte) 0x7c,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch164 = new BitmapCharRec(7,6,-1,-3,9,ch164data);
+
+// char: 0xa3
+
+ static final byte[] ch163data = {
+ (byte) 0x5c,(byte) 0xa2,(byte) 0x60,(byte) 0x20,(byte) 0x20,(byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x22,(byte) 0x1c,
+ };
+
+ static final BitmapCharRec ch163 = new BitmapCharRec(7,10,-1,0,9,ch163data);
+
+// char: 0xa2
+
+ static final byte[] ch162data = {
+ (byte) 0x40,(byte) 0x78,(byte) 0xa4,(byte) 0xa0,(byte) 0x90,(byte) 0x94,(byte) 0x78,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch162 = new BitmapCharRec(6,8,-1,0,9,ch162data);
+
+// char: 0xa1
+
+ static final byte[] ch161data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x0,(byte) 0x0,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch161 = new BitmapCharRec(1,11,-4,0,9,ch161data);
+
+// char: 0x7e '~'
+
+ static final byte[] ch126data = {
+ (byte) 0x8c,(byte) 0x92,(byte) 0x62,
+ };
+
+ static final BitmapCharRec ch126 = new BitmapCharRec(7,3,-1,-7,9,ch126data);
+
+// char: 0x7d '}'
+
+ static final byte[] ch125data = {
+ (byte) 0xe0,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x20,(byte) 0x18,(byte) 0x18,(byte) 0x20,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch125 = new BitmapCharRec(5,12,-1,1,9,ch125data);
+
+// char: 0x7c '|'
+
+ static final byte[] ch124data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch124 = new BitmapCharRec(1,12,-4,1,9,ch124data);
+
+// char: 0x7b '{'
+
+ static final byte[] ch123data = {
+ (byte) 0x38,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0xc0,(byte) 0xc0,(byte) 0x20,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch123 = new BitmapCharRec(5,12,-3,1,9,ch123data);
+
+// char: 0x7a 'z'
+
+ static final byte[] ch122data = {
+ (byte) 0xfe,(byte) 0x40,(byte) 0x20,(byte) 0x10,(byte) 0x8,(byte) 0x4,(byte) 0xfe,
+ };
+
+ static final BitmapCharRec ch122 = new BitmapCharRec(7,7,-1,0,9,ch122data);
+
+// char: 0x79 'y'
+
+ static final byte[] ch121data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x4,(byte) 0x74,(byte) 0x8c,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,
+ };
+
+ static final BitmapCharRec ch121 = new BitmapCharRec(6,10,-1,3,9,ch121data);
+
+// char: 0x78 'x'
+
+ static final byte[] ch120data = {
+ (byte) 0x82,(byte) 0x44,(byte) 0x28,(byte) 0x10,(byte) 0x28,(byte) 0x44,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch120 = new BitmapCharRec(7,7,-1,0,9,ch120data);
+
+// char: 0x77 'w'
+
+ static final byte[] ch119data = {
+ (byte) 0x44,(byte) 0xaa,(byte) 0x92,(byte) 0x92,(byte) 0x92,(byte) 0x82,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch119 = new BitmapCharRec(7,7,-1,0,9,ch119data);
+
+// char: 0x76 'v'
+
+ static final byte[] ch118data = {
+ (byte) 0x10,(byte) 0x28,(byte) 0x28,(byte) 0x44,(byte) 0x44,(byte) 0x82,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch118 = new BitmapCharRec(7,7,-1,0,9,ch118data);
+
+// char: 0x75 'u'
+
+ static final byte[] ch117data = {
+ (byte) 0x7a,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,
+ };
+
+ static final BitmapCharRec ch117 = new BitmapCharRec(7,7,-1,0,9,ch117data);
+
+// char: 0x74 't'
+
+ static final byte[] ch116data = {
+ (byte) 0x1c,(byte) 0x22,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xfc,(byte) 0x20,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch116 = new BitmapCharRec(7,9,-1,0,9,ch116data);
+
+// char: 0x73 's'
+
+ static final byte[] ch115data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x2,(byte) 0x7c,(byte) 0x80,(byte) 0x82,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch115 = new BitmapCharRec(7,7,-1,0,9,ch115data);
+
+// char: 0x72 'r'
+
+ static final byte[] ch114data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x42,(byte) 0x62,(byte) 0x9c,
+ };
+
+ static final BitmapCharRec ch114 = new BitmapCharRec(7,7,-1,0,9,ch114data);
+
+// char: 0x71 'q'
+
+ static final byte[] ch113data = {
+ (byte) 0x2,(byte) 0x2,(byte) 0x2,(byte) 0x7a,(byte) 0x86,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x86,(byte) 0x7a,
+ };
+
+ static final BitmapCharRec ch113 = new BitmapCharRec(7,10,-1,3,9,ch113data);
+
+// char: 0x70 'p'
+
+ static final byte[] ch112data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xbc,(byte) 0xc2,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0xc2,(byte) 0xbc,
+ };
+
+ static final BitmapCharRec ch112 = new BitmapCharRec(7,10,-1,3,9,ch112data);
+
+// char: 0x6f 'o'
+
+ static final byte[] ch111data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch111 = new BitmapCharRec(7,7,-1,0,9,ch111data);
+
+// char: 0x6e 'n'
+
+ static final byte[] ch110data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0xc2,(byte) 0xbc,
+ };
+
+ static final BitmapCharRec ch110 = new BitmapCharRec(7,7,-1,0,9,ch110data);
+
+// char: 0x6d 'm'
+
+ static final byte[] ch109data = {
+ (byte) 0x82,(byte) 0x92,(byte) 0x92,(byte) 0x92,(byte) 0x92,(byte) 0x92,(byte) 0xec,
+ };
+
+ static final BitmapCharRec ch109 = new BitmapCharRec(7,7,-1,0,9,ch109data);
+
+// char: 0x6c 'l'
+
+ static final byte[] ch108data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch108 = new BitmapCharRec(5,10,-2,0,9,ch108data);
+
+// char: 0x6b 'k'
+
+ static final byte[] ch107data = {
+ (byte) 0x82,(byte) 0x8c,(byte) 0xb0,(byte) 0xc0,(byte) 0xb0,(byte) 0x8c,(byte) 0x82,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch107 = new BitmapCharRec(7,10,-1,0,9,ch107data);
+
+// char: 0x6a 'j'
+
+ static final byte[] ch106data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x4,(byte) 0x4,(byte) 0x4,(byte) 0x4,(byte) 0x4,(byte) 0x1c,(byte) 0x0,(byte) 0x0,(byte) 0xc,
+ };
+
+ static final BitmapCharRec ch106 = new BitmapCharRec(6,13,-1,3,9,ch106data);
+
+// char: 0x69 'i'
+
+ static final byte[] ch105data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xe0,(byte) 0x0,(byte) 0x0,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch105 = new BitmapCharRec(5,10,-2,0,9,ch105data);
+
+// char: 0x68 'h'
+
+ static final byte[] ch104data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0xc2,(byte) 0xbc,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch104 = new BitmapCharRec(7,10,-1,0,9,ch104data);
+
+// char: 0x67 'g'
+
+ static final byte[] ch103data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x80,(byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x7a,
+ };
+
+ static final BitmapCharRec ch103 = new BitmapCharRec(7,10,-1,3,9,ch103data);
+
+// char: 0x66 'f'
+
+ static final byte[] ch102data = {
+ (byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x22,(byte) 0x22,(byte) 0x1c,
+ };
+
+ static final BitmapCharRec ch102 = new BitmapCharRec(7,10,-1,0,9,ch102data);
+
+// char: 0x65 'e'
+
+ static final byte[] ch101data = {
+ (byte) 0x7c,(byte) 0x80,(byte) 0x80,(byte) 0xfe,(byte) 0x82,(byte) 0x82,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch101 = new BitmapCharRec(7,7,-1,0,9,ch101data);
+
+// char: 0x64 'd'
+
+ static final byte[] ch100data = {
+ (byte) 0x7a,(byte) 0x86,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x86,(byte) 0x7a,(byte) 0x2,(byte) 0x2,(byte) 0x2,
+ };
+
+ static final BitmapCharRec ch100 = new BitmapCharRec(7,10,-1,0,9,ch100data);
+
+// char: 0x63 'c'
+
+ static final byte[] ch99data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x82,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch99 = new BitmapCharRec(7,7,-1,0,9,ch99data);
+
+// char: 0x62 'b'
+
+ static final byte[] ch98data = {
+ (byte) 0xbc,(byte) 0xc2,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0xc2,(byte) 0xbc,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch98 = new BitmapCharRec(7,10,-1,0,9,ch98data);
+
+// char: 0x61 'a'
+
+ static final byte[] ch97data = {
+ (byte) 0x7a,(byte) 0x86,(byte) 0x82,(byte) 0x7e,(byte) 0x2,(byte) 0x2,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch97 = new BitmapCharRec(7,7,-1,0,9,ch97data);
+
+// char: 0x60 '`'
+
+ static final byte[] ch96data = {
+ (byte) 0x10,(byte) 0x20,(byte) 0x40,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch96 = new BitmapCharRec(4,4,-3,-6,9,ch96data);
+
+// char: 0x5f '_'
+
+ static final byte[] ch95data = {
+ (byte) 0xff,
+ };
+
+ static final BitmapCharRec ch95 = new BitmapCharRec(8,1,0,1,9,ch95data);
+
+// char: 0x5e '^'
+
+ static final byte[] ch94data = {
+ (byte) 0x82,(byte) 0x44,(byte) 0x28,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch94 = new BitmapCharRec(7,4,-1,-6,9,ch94data);
+
+// char: 0x5d ']'
+
+ static final byte[] ch93data = {
+ (byte) 0xf0,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch93 = new BitmapCharRec(4,12,-2,1,9,ch93data);
+
+// char: 0x5c '\'
+
+ static final byte[] ch92data = {
+ (byte) 0x2,(byte) 0x4,(byte) 0x4,(byte) 0x8,(byte) 0x10,(byte) 0x10,(byte) 0x20,(byte) 0x40,(byte) 0x40,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch92 = new BitmapCharRec(7,10,-1,0,9,ch92data);
+
+// char: 0x5b '['
+
+ static final byte[] ch91data = {
+ (byte) 0xf0,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch91 = new BitmapCharRec(4,12,-3,1,9,ch91data);
+
+// char: 0x5a 'Z'
+
+ static final byte[] ch90data = {
+ (byte) 0xfe,(byte) 0x80,(byte) 0x80,(byte) 0x40,(byte) 0x20,(byte) 0x10,(byte) 0x8,(byte) 0x4,(byte) 0x2,(byte) 0xfe,
+ };
+
+ static final BitmapCharRec ch90 = new BitmapCharRec(7,10,-1,0,9,ch90data);
+
+// char: 0x59 'Y'
+
+ static final byte[] ch89data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x28,(byte) 0x44,(byte) 0x82,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch89 = new BitmapCharRec(7,10,-1,0,9,ch89data);
+
+// char: 0x58 'X'
+
+ static final byte[] ch88data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x44,(byte) 0x28,(byte) 0x10,(byte) 0x10,(byte) 0x28,(byte) 0x44,(byte) 0x82,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch88 = new BitmapCharRec(7,10,-1,0,9,ch88data);
+
+// char: 0x57 'W'
+
+ static final byte[] ch87data = {
+ (byte) 0x44,(byte) 0xaa,(byte) 0x92,(byte) 0x92,(byte) 0x92,(byte) 0x92,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch87 = new BitmapCharRec(7,10,-1,0,9,ch87data);
+
+// char: 0x56 'V'
+
+ static final byte[] ch86data = {
+ (byte) 0x10,(byte) 0x28,(byte) 0x28,(byte) 0x28,(byte) 0x44,(byte) 0x44,(byte) 0x44,(byte) 0x82,(byte) 0x82,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch86 = new BitmapCharRec(7,10,-1,0,9,ch86data);
+
+// char: 0x55 'U'
+
+ static final byte[] ch85data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch85 = new BitmapCharRec(7,10,-1,0,9,ch85data);
+
+// char: 0x54 'T'
+
+ static final byte[] ch84data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0xfe,
+ };
+
+ static final BitmapCharRec ch84 = new BitmapCharRec(7,10,-1,0,9,ch84data);
+
+// char: 0x53 'S'
+
+ static final byte[] ch83data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x2,(byte) 0xc,(byte) 0x70,(byte) 0x80,(byte) 0x82,(byte) 0x82,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch83 = new BitmapCharRec(7,10,-1,0,9,ch83data);
+
+// char: 0x52 'R'
+
+ static final byte[] ch82data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x84,(byte) 0x88,(byte) 0x90,(byte) 0xfc,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch82 = new BitmapCharRec(7,10,-1,0,9,ch82data);
+
+// char: 0x51 'Q'
+
+ static final byte[] ch81data = {
+ (byte) 0x6,(byte) 0x8,(byte) 0x7c,(byte) 0x92,(byte) 0xa2,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch81 = new BitmapCharRec(7,12,-1,2,9,ch81data);
+
+// char: 0x50 'P'
+
+ static final byte[] ch80data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xfc,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch80 = new BitmapCharRec(7,10,-1,0,9,ch80data);
+
+// char: 0x4f 'O'
+
+ static final byte[] ch79data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch79 = new BitmapCharRec(7,10,-1,0,9,ch79data);
+
+// char: 0x4e 'N'
+
+ static final byte[] ch78data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x86,(byte) 0x8a,(byte) 0x92,(byte) 0xa2,(byte) 0xc2,(byte) 0x82,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch78 = new BitmapCharRec(7,10,-1,0,9,ch78data);
+
+// char: 0x4d 'M'
+
+ static final byte[] ch77data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x92,(byte) 0x92,(byte) 0xaa,(byte) 0xaa,(byte) 0xc6,(byte) 0x82,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch77 = new BitmapCharRec(7,10,-1,0,9,ch77data);
+
+// char: 0x4c 'L'
+
+ static final byte[] ch76data = {
+ (byte) 0xfe,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch76 = new BitmapCharRec(7,10,-1,0,9,ch76data);
+
+// char: 0x4b 'K'
+
+ static final byte[] ch75data = {
+ (byte) 0x82,(byte) 0x84,(byte) 0x88,(byte) 0x90,(byte) 0xa0,(byte) 0xe0,(byte) 0x90,(byte) 0x88,(byte) 0x84,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch75 = new BitmapCharRec(7,10,-1,0,9,ch75data);
+
+// char: 0x4a 'J'
+
+ static final byte[] ch74data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x4,(byte) 0x4,(byte) 0x4,(byte) 0x4,(byte) 0x4,(byte) 0x4,(byte) 0x4,(byte) 0x1e,
+ };
+
+ static final BitmapCharRec ch74 = new BitmapCharRec(7,10,-1,0,9,ch74data);
+
+// char: 0x49 'I'
+
+ static final byte[] ch73data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch73 = new BitmapCharRec(5,10,-2,0,9,ch73data);
+
+// char: 0x48 'H'
+
+ static final byte[] ch72data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0xfe,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch72 = new BitmapCharRec(7,10,-1,0,9,ch72data);
+
+// char: 0x47 'G'
+
+ static final byte[] ch71data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x8e,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x82,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch71 = new BitmapCharRec(7,10,-1,0,9,ch71data);
+
+// char: 0x46 'F'
+
+ static final byte[] ch70data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x78,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xfe,
+ };
+
+ static final BitmapCharRec ch70 = new BitmapCharRec(7,10,-1,0,9,ch70data);
+
+// char: 0x45 'E'
+
+ static final byte[] ch69data = {
+ (byte) 0xfe,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x78,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xfe,
+ };
+
+ static final BitmapCharRec ch69 = new BitmapCharRec(7,10,-1,0,9,ch69data);
+
+// char: 0x44 'D'
+
+ static final byte[] ch68data = {
+ (byte) 0xfc,(byte) 0x42,(byte) 0x42,(byte) 0x42,(byte) 0x42,(byte) 0x42,(byte) 0x42,(byte) 0x42,(byte) 0x42,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch68 = new BitmapCharRec(7,10,-1,0,9,ch68data);
+
+// char: 0x43 'C'
+
+ static final byte[] ch67data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x82,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch67 = new BitmapCharRec(7,10,-1,0,9,ch67data);
+
+// char: 0x42 'B'
+
+ static final byte[] ch66data = {
+ (byte) 0xfc,(byte) 0x42,(byte) 0x42,(byte) 0x42,(byte) 0x42,(byte) 0x7c,(byte) 0x42,(byte) 0x42,(byte) 0x42,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch66 = new BitmapCharRec(7,10,-1,0,9,ch66data);
+
+// char: 0x41 'A'
+
+ static final byte[] ch65data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0xfe,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x44,(byte) 0x28,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch65 = new BitmapCharRec(7,10,-1,0,9,ch65data);
+
+// char: 0x40 '@'
+
+ static final byte[] ch64data = {
+ (byte) 0x7c,(byte) 0x80,(byte) 0x80,(byte) 0x9a,(byte) 0xa6,(byte) 0xa2,(byte) 0x9e,(byte) 0x82,(byte) 0x82,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch64 = new BitmapCharRec(7,10,-1,0,9,ch64data);
+
+// char: 0x3f '?'
+
+ static final byte[] ch63data = {
+ (byte) 0x10,(byte) 0x0,(byte) 0x10,(byte) 0x10,(byte) 0x8,(byte) 0x4,(byte) 0x2,(byte) 0x82,(byte) 0x82,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch63 = new BitmapCharRec(7,10,-1,0,9,ch63data);
+
+// char: 0x3e '>'
+
+ static final byte[] ch62data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x20,(byte) 0x10,(byte) 0x8,(byte) 0x8,(byte) 0x10,(byte) 0x20,(byte) 0x40,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch62 = new BitmapCharRec(5,10,-2,0,9,ch62data);
+
+// char: 0x3d '='
+
+ static final byte[] ch61data = {
+ (byte) 0xfe,(byte) 0x0,(byte) 0x0,(byte) 0xfe,
+ };
+
+ static final BitmapCharRec ch61 = new BitmapCharRec(7,4,-1,-2,9,ch61data);
+
+// char: 0x3c '<'
+
+ static final byte[] ch60data = {
+ (byte) 0x8,(byte) 0x10,(byte) 0x20,(byte) 0x40,(byte) 0x80,(byte) 0x80,(byte) 0x40,(byte) 0x20,(byte) 0x10,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch60 = new BitmapCharRec(5,10,-2,0,9,ch60data);
+
+// char: 0x3b ';'
+
+ static final byte[] ch59data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0xc0,(byte) 0xc0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch59 = new BitmapCharRec(2,10,-4,3,9,ch59data);
+
+// char: 0x3a ':'
+
+ static final byte[] ch58data = {
+ (byte) 0xc0,(byte) 0xc0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch58 = new BitmapCharRec(2,7,-4,0,9,ch58data);
+
+// char: 0x39 '9'
+
+ static final byte[] ch57data = {
+ (byte) 0x78,(byte) 0x4,(byte) 0x2,(byte) 0x2,(byte) 0x7a,(byte) 0x86,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch57 = new BitmapCharRec(7,10,-1,0,9,ch57data);
+
+// char: 0x38 '8'
+
+ static final byte[] ch56data = {
+ (byte) 0x38,(byte) 0x44,(byte) 0x82,(byte) 0x82,(byte) 0x44,(byte) 0x38,(byte) 0x44,(byte) 0x82,(byte) 0x44,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch56 = new BitmapCharRec(7,10,-1,0,9,ch56data);
+
+// char: 0x37 '7'
+
+ static final byte[] ch55data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0x20,(byte) 0x10,(byte) 0x8,(byte) 0x4,(byte) 0x2,(byte) 0x2,(byte) 0xfe,
+ };
+
+ static final BitmapCharRec ch55 = new BitmapCharRec(7,10,-1,0,9,ch55data);
+
+// char: 0x36 '6'
+
+ static final byte[] ch54data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0xc2,(byte) 0xbc,(byte) 0x80,(byte) 0x80,(byte) 0x40,(byte) 0x3c,
+ };
+
+ static final BitmapCharRec ch54 = new BitmapCharRec(7,10,-1,0,9,ch54data);
+
+// char: 0x35 '5'
+
+ static final byte[] ch53data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x2,(byte) 0x2,(byte) 0x2,(byte) 0xc2,(byte) 0xbc,(byte) 0x80,(byte) 0x80,(byte) 0xfe,
+ };
+
+ static final BitmapCharRec ch53 = new BitmapCharRec(7,10,-1,0,9,ch53data);
+
+// char: 0x34 '4'
+
+ static final byte[] ch52data = {
+ (byte) 0x4,(byte) 0x4,(byte) 0x4,(byte) 0xfe,(byte) 0x84,(byte) 0x44,(byte) 0x24,(byte) 0x14,(byte) 0xc,(byte) 0x4,
+ };
+
+ static final BitmapCharRec ch52 = new BitmapCharRec(7,10,-1,0,9,ch52data);
+
+// char: 0x33 '3'
+
+ static final byte[] ch51data = {
+ (byte) 0x7c,(byte) 0x82,(byte) 0x2,(byte) 0x2,(byte) 0x2,(byte) 0x1c,(byte) 0x8,(byte) 0x4,(byte) 0x2,(byte) 0xfe,
+ };
+
+ static final BitmapCharRec ch51 = new BitmapCharRec(7,10,-1,0,9,ch51data);
+
+// char: 0x32 '2'
+
+ static final byte[] ch50data = {
+ (byte) 0xfe,(byte) 0x80,(byte) 0x40,(byte) 0x30,(byte) 0x8,(byte) 0x4,(byte) 0x2,(byte) 0x82,(byte) 0x82,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch50 = new BitmapCharRec(7,10,-1,0,9,ch50data);
+
+// char: 0x31 '1'
+
+ static final byte[] ch49data = {
+ (byte) 0xfe,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x90,(byte) 0x50,(byte) 0x30,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch49 = new BitmapCharRec(7,10,-1,0,9,ch49data);
+
+// char: 0x30 '0'
+
+ static final byte[] ch48data = {
+ (byte) 0x38,(byte) 0x44,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x44,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch48 = new BitmapCharRec(7,10,-1,0,9,ch48data);
+
+// char: 0x2f '/'
+
+ static final byte[] ch47data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0x10,(byte) 0x10,(byte) 0x8,(byte) 0x4,(byte) 0x4,(byte) 0x2,
+ };
+
+ static final BitmapCharRec ch47 = new BitmapCharRec(7,10,-1,0,9,ch47data);
+
+// char: 0x2e '.'
+
+ static final byte[] ch46data = {
+ (byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch46 = new BitmapCharRec(2,2,-4,0,9,ch46data);
+
+// char: 0x2d '-'
+
+ static final byte[] ch45data = {
+ (byte) 0xfe,
+ };
+
+ static final BitmapCharRec ch45 = new BitmapCharRec(7,1,-1,-4,9,ch45data);
+
+// char: 0x2c ','
+
+ static final byte[] ch44data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch44 = new BitmapCharRec(2,5,-4,3,9,ch44data);
+
+// char: 0x2b '+'
+
+ static final byte[] ch43data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0xfe,(byte) 0x10,(byte) 0x10,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch43 = new BitmapCharRec(7,7,-1,-1,9,ch43data);
+
+// char: 0x2a '*'
+
+ static final byte[] ch42data = {
+ (byte) 0x10,(byte) 0x92,(byte) 0x54,(byte) 0x38,(byte) 0x54,(byte) 0x92,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch42 = new BitmapCharRec(7,7,-1,-1,9,ch42data);
+
+// char: 0x29 ')'
+
+ static final byte[] ch41data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x40,(byte) 0x40,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch41 = new BitmapCharRec(3,12,-3,1,9,ch41data);
+
+// char: 0x28 '('
+
+ static final byte[] ch40data = {
+ (byte) 0x20,(byte) 0x40,(byte) 0x40,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch40 = new BitmapCharRec(3,12,-3,1,9,ch40data);
+
+// char: 0x27 '''
+
+ static final byte[] ch39data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x20,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch39 = new BitmapCharRec(4,4,-3,-6,9,ch39data);
+
+// char: 0x26 '&'
+
+ static final byte[] ch38data = {
+ (byte) 0x62,(byte) 0x94,(byte) 0x88,(byte) 0x94,(byte) 0x62,(byte) 0x60,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch38 = new BitmapCharRec(7,10,-1,0,9,ch38data);
+
+// char: 0x25 '%'
+
+ static final byte[] ch37data = {
+ (byte) 0x84,(byte) 0x4a,(byte) 0x4a,(byte) 0x24,(byte) 0x10,(byte) 0x10,(byte) 0x48,(byte) 0xa4,(byte) 0xa4,(byte) 0x42,
+ };
+
+ static final BitmapCharRec ch37 = new BitmapCharRec(7,10,-1,0,9,ch37data);
+
+// char: 0x24 '$'
+
+ static final byte[] ch36data = {
+ (byte) 0x10,(byte) 0x7c,(byte) 0x92,(byte) 0x12,(byte) 0x12,(byte) 0x14,(byte) 0x38,(byte) 0x50,(byte) 0x90,(byte) 0x92,(byte) 0x7c,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch36 = new BitmapCharRec(7,12,-1,1,9,ch36data);
+
+// char: 0x23 '#'
+
+ static final byte[] ch35data = {
+ (byte) 0x48,(byte) 0x48,(byte) 0xfc,(byte) 0x48,(byte) 0x48,(byte) 0xfc,(byte) 0x48,(byte) 0x48,
+ };
+
+ static final BitmapCharRec ch35 = new BitmapCharRec(6,8,-1,-1,9,ch35data);
+
+// char: 0x22 '"'
+
+ static final byte[] ch34data = {
+ (byte) 0x90,(byte) 0x90,(byte) 0x90,
+ };
+
+ static final BitmapCharRec ch34 = new BitmapCharRec(4,3,-3,-7,9,ch34data);
+
+// char: 0x21 '!'
+
+ static final byte[] ch33data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x0,(byte) 0x0,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch33 = new BitmapCharRec(1,11,-4,0,9,ch33data);
+
+// char: 0x1f
+
+ static final byte[] ch31data = {
+ (byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch31 = new BitmapCharRec(2,2,-4,-2,9,ch31data);
+
+// char: 0x1e
+
+ static final byte[] ch30data = {
+ (byte) 0x5c,(byte) 0xa2,(byte) 0x60,(byte) 0x20,(byte) 0x20,(byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x22,(byte) 0x1c,
+ };
+
+ static final BitmapCharRec ch30 = new BitmapCharRec(7,10,-1,0,9,ch30data);
+
+// char: 0x1d
+
+ static final byte[] ch29data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0xfe,(byte) 0x10,(byte) 0xfe,(byte) 0x4,(byte) 0x2,
+ };
+
+ static final BitmapCharRec ch29 = new BitmapCharRec(7,7,-1,0,9,ch29data);
+
+// char: 0x1c
+
+ static final byte[] ch28data = {
+ (byte) 0x44,(byte) 0x24,(byte) 0x24,(byte) 0x24,(byte) 0x24,(byte) 0x24,(byte) 0xfe,
+ };
+
+ static final BitmapCharRec ch28 = new BitmapCharRec(7,7,-1,0,9,ch28data);
+
+// char: 0x1b
+
+ static final byte[] ch27data = {
+ (byte) 0xfe,(byte) 0x0,(byte) 0x80,(byte) 0x40,(byte) 0x20,(byte) 0x10,(byte) 0x8,(byte) 0x8,(byte) 0x10,(byte) 0x20,(byte) 0x40,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch27 = new BitmapCharRec(7,12,-1,2,9,ch27data);
+
+// char: 0x1a
+
+ static final byte[] ch26data = {
+ (byte) 0xfc,(byte) 0x0,(byte) 0x4,(byte) 0x8,(byte) 0x10,(byte) 0x20,(byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0x10,(byte) 0x8,(byte) 0x4,
+ };
+
+ static final BitmapCharRec ch26 = new BitmapCharRec(6,12,-2,2,9,ch26data);
+
+// char: 0x19
+
+ static final byte[] ch25data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch25 = new BitmapCharRec(1,15,-4,3,9,ch25data);
+
+// char: 0x18
+
+ static final byte[] ch24data = {
+ (byte) 0x8,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0xff,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch24 = new BitmapCharRec(9,7,0,3,9,ch24data);
+
+// char: 0x17
+
+ static final byte[] ch23data = {
+ (byte) 0xff,(byte) 0x80,(byte) 0x8,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x8,(byte) 0x0,
+(byte) 0x8,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch23 = new BitmapCharRec(9,9,0,-3,9,ch23data);
+
+// char: 0x16
+
+ static final byte[] ch22data = {
+ (byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0xf8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch22 = new BitmapCharRec(5,15,0,3,9,ch22data);
+
+// char: 0x15
+
+ static final byte[] ch21data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xf8,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch21 = new BitmapCharRec(5,15,-4,3,9,ch21data);
+
+// char: 0x14
+
+ static final byte[] ch20data = {
+ (byte) 0xff,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch20 = new BitmapCharRec(9,1,0,1,9,ch20data);
+
+// char: 0x13
+
+ static final byte[] ch19data = {
+ (byte) 0xff,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch19 = new BitmapCharRec(9,1,0,-1,9,ch19data);
+
+// char: 0x12
+
+ static final byte[] ch18data = {
+ (byte) 0xff,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch18 = new BitmapCharRec(9,1,0,-3,9,ch18data);
+
+// char: 0x11
+
+ static final byte[] ch17data = {
+ (byte) 0xff,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch17 = new BitmapCharRec(9,1,0,-5,9,ch17data);
+
+// char: 0x10
+
+ static final byte[] ch16data = {
+ (byte) 0xff,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch16 = new BitmapCharRec(9,1,0,-7,9,ch16data);
+
+// char: 0xf
+
+ static final byte[] ch15data = {
+ (byte) 0x8,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0xff,(byte) 0x80,(byte) 0x8,(byte) 0x0,
+(byte) 0x8,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x8,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch15 = new BitmapCharRec(9,15,0,3,9,ch15data);
+
+// char: 0xe
+
+ static final byte[] ch14data = {
+ (byte) 0xf8,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch14 = new BitmapCharRec(5,9,-4,-3,9,ch14data);
+
+// char: 0xd
+
+ static final byte[] ch13data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch13 = new BitmapCharRec(5,7,-4,3,9,ch13data);
+
+// char: 0xc
+
+ static final byte[] ch12data = {
+ (byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch12 = new BitmapCharRec(5,7,0,3,9,ch12data);
+
+// char: 0xb
+
+ static final byte[] ch11data = {
+ (byte) 0xf8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch11 = new BitmapCharRec(5,9,0,-3,9,ch11data);
+
+// char: 0xa
+
+ static final byte[] ch10data = {
+ (byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x3e,(byte) 0x0,(byte) 0x20,(byte) 0x50,(byte) 0x88,(byte) 0x88,
+ };
+
+ static final BitmapCharRec ch10 = new BitmapCharRec(7,10,-1,2,9,ch10data);
+
+// char: 0x9
+
+ static final byte[] ch9data = {
+ (byte) 0x3e,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x88,(byte) 0x98,(byte) 0xa8,(byte) 0xc8,(byte) 0x88,
+ };
+
+ static final BitmapCharRec ch9 = new BitmapCharRec(7,10,-1,2,9,ch9data);
+
+// char: 0x8
+
+ static final byte[] ch8data = {
+ (byte) 0xfe,(byte) 0x10,(byte) 0x10,(byte) 0xfe,(byte) 0x10,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch8 = new BitmapCharRec(7,6,-1,0,9,ch8data);
+
+// char: 0x7
+
+ static final byte[] ch7data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch7 = new BitmapCharRec(5,4,-2,-6,9,ch7data);
+
+// char: 0x6
+
+ static final byte[] ch6data = {
+ (byte) 0x20,(byte) 0x20,(byte) 0x3c,(byte) 0x20,(byte) 0x3e,(byte) 0x0,(byte) 0xf8,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch6 = new BitmapCharRec(7,10,-1,2,9,ch6data);
+
+// char: 0x5
+
+ static final byte[] ch5data = {
+ (byte) 0x22,(byte) 0x22,(byte) 0x3c,(byte) 0x22,(byte) 0x3c,(byte) 0x0,(byte) 0x78,(byte) 0x80,(byte) 0x80,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch5 = new BitmapCharRec(7,10,-1,2,9,ch5data);
+
+// char: 0x4
+
+ static final byte[] ch4data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0x1c,(byte) 0x10,(byte) 0x1e,(byte) 0x80,(byte) 0x80,(byte) 0xe0,(byte) 0x80,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch4 = new BitmapCharRec(7,10,-1,2,9,ch4data);
+
+// char: 0x3
+
+ static final byte[] ch3data = {
+ (byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x3e,(byte) 0x0,(byte) 0x88,(byte) 0x88,(byte) 0xf8,(byte) 0x88,(byte) 0x88,
+ };
+
+ static final BitmapCharRec ch3 = new BitmapCharRec(7,10,-1,2,9,ch3data);
+
+// char: 0x2
+
+ static final byte[] ch2data = {
+ (byte) 0x55,(byte) 0xaa,(byte) 0x55,(byte) 0xaa,(byte) 0x55,(byte) 0xaa,(byte) 0x55,(byte) 0xaa,(byte) 0x55,(byte) 0xaa,(byte) 0x55,(byte) 0xaa,(byte) 0x55,(byte) 0xaa,
+ };
+
+ static final BitmapCharRec ch2 = new BitmapCharRec(8,14,0,3,9,ch2data);
+
+// char: 0x1
+
+ static final byte[] ch1data = {
+ (byte) 0x10,(byte) 0x38,(byte) 0x7c,(byte) 0xfe,(byte) 0x7c,(byte) 0x38,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch1 = new BitmapCharRec(7,7,-1,0,9,ch1data);
+
+ static final BitmapCharRec chars[] = {
+ ch0,
+ ch1,
+ ch2,
+ ch3,
+ ch4,
+ ch5,
+ ch6,
+ ch7,
+ ch8,
+ ch9,
+ ch10,
+ ch11,
+ ch12,
+ ch13,
+ ch14,
+ ch15,
+ ch16,
+ ch17,
+ ch18,
+ ch19,
+ ch20,
+ ch21,
+ ch22,
+ ch23,
+ ch24,
+ ch25,
+ ch26,
+ ch27,
+ ch28,
+ ch29,
+ ch30,
+ ch31,
+ ch32,
+ ch33,
+ ch34,
+ ch35,
+ ch36,
+ ch37,
+ ch38,
+ ch39,
+ ch40,
+ ch41,
+ ch42,
+ ch43,
+ ch44,
+ ch45,
+ ch46,
+ ch47,
+ ch48,
+ ch49,
+ ch50,
+ ch51,
+ ch52,
+ ch53,
+ ch54,
+ ch55,
+ ch56,
+ ch57,
+ ch58,
+ ch59,
+ ch60,
+ ch61,
+ ch62,
+ ch63,
+ ch64,
+ ch65,
+ ch66,
+ ch67,
+ ch68,
+ ch69,
+ ch70,
+ ch71,
+ ch72,
+ ch73,
+ ch74,
+ ch75,
+ ch76,
+ ch77,
+ ch78,
+ ch79,
+ ch80,
+ ch81,
+ ch82,
+ ch83,
+ ch84,
+ ch85,
+ ch86,
+ ch87,
+ ch88,
+ ch89,
+ ch90,
+ ch91,
+ ch92,
+ ch93,
+ ch94,
+ ch95,
+ ch96,
+ ch97,
+ ch98,
+ ch99,
+ ch100,
+ ch101,
+ ch102,
+ ch103,
+ ch104,
+ ch105,
+ ch106,
+ ch107,
+ ch108,
+ ch109,
+ ch110,
+ ch111,
+ ch112,
+ ch113,
+ ch114,
+ ch115,
+ ch116,
+ ch117,
+ ch118,
+ ch119,
+ ch120,
+ ch121,
+ ch122,
+ ch123,
+ ch124,
+ ch125,
+ ch126,
+ ch127,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ ch160,
+ ch161,
+ ch162,
+ ch163,
+ ch164,
+ ch165,
+ ch166,
+ ch167,
+ ch168,
+ ch169,
+ ch170,
+ ch171,
+ ch172,
+ ch173,
+ ch174,
+ ch175,
+ ch176,
+ ch177,
+ ch178,
+ ch179,
+ ch180,
+ ch181,
+ ch182,
+ ch183,
+ ch184,
+ ch185,
+ ch186,
+ ch187,
+ ch188,
+ ch189,
+ ch190,
+ ch191,
+ ch192,
+ ch193,
+ ch194,
+ ch195,
+ ch196,
+ ch197,
+ ch198,
+ ch199,
+ ch200,
+ ch201,
+ ch202,
+ ch203,
+ ch204,
+ ch205,
+ ch206,
+ ch207,
+ ch208,
+ ch209,
+ ch210,
+ ch211,
+ ch212,
+ ch213,
+ ch214,
+ ch215,
+ ch216,
+ ch217,
+ ch218,
+ ch219,
+ ch220,
+ ch221,
+ ch222,
+ ch223,
+ ch224,
+ ch225,
+ ch226,
+ ch227,
+ ch228,
+ ch229,
+ ch230,
+ ch231,
+ ch232,
+ ch233,
+ ch234,
+ ch235,
+ ch236,
+ ch237,
+ ch238,
+ ch239,
+ ch240,
+ ch241,
+ ch242,
+ ch243,
+ ch244,
+ ch245,
+ ch246,
+ ch247,
+ ch248,
+ ch249,
+ ch250,
+ ch251,
+ ch252,
+ ch253,
+ ch254,
+ ch255,
+ };
+
+ static final BitmapFontRec fontinfo = new BitmapFontRec(
+ "9x15",
+ 256,
+ 0,
+ chars
+ );
+
+ public static BitmapFontRec getBitmapFontRec() {
+ return fontinfo;
+ }
+} // end of class glutBitmap9By15
diff --git a/gl4java/utils/glut/fonts/data/glutBitmapHelvetica10.java b/gl4java/utils/glut/fonts/data/glutBitmapHelvetica10.java
new file mode 100644
index 0000000..a83f7b3
--- /dev/null
+++ b/gl4java/utils/glut/fonts/data/glutBitmapHelvetica10.java
@@ -0,0 +1,1769 @@
+
+// GENERATED FILE -- DO NOT MODIFY
+
+package gl4java.utils.glut.fonts.data;
+
+import gl4java.utils.glut.fonts.*;
+
+
+public class glutBitmapHelvetica10 implements GLUTBitmapFont {
+ private static byte[] zerodata={ 0 };
+// char: 0xff
+
+ static final byte[] ch255data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x60,(byte) 0xa0,(byte) 0xa0,(byte) 0x90,(byte) 0x90,(byte) 0x0,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch255 = new BitmapCharRec(4,10,0,2,5,ch255data);
+
+// char: 0xfe
+
+ static final byte[] ch254data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0xb0,(byte) 0xc8,(byte) 0x88,(byte) 0x88,(byte) 0xc8,(byte) 0xb0,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch254 = new BitmapCharRec(5,10,0,2,6,ch254data);
+
+// char: 0xfd
+
+ static final byte[] ch253data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x60,(byte) 0xa0,(byte) 0xa0,(byte) 0x90,(byte) 0x90,(byte) 0x0,(byte) 0x20,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch253 = new BitmapCharRec(4,11,0,2,5,ch253data);
+
+// char: 0xfc
+
+ static final byte[] ch252data = {
+ (byte) 0x70,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x0,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch252 = new BitmapCharRec(4,8,0,0,5,ch252data);
+
+// char: 0xfb
+
+ static final byte[] ch251data = {
+ (byte) 0x70,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x0,(byte) 0x50,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch251 = new BitmapCharRec(4,9,0,0,5,ch251data);
+
+// char: 0xfa
+
+ static final byte[] ch250data = {
+ (byte) 0x70,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x0,(byte) 0x40,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch250 = new BitmapCharRec(4,9,0,0,5,ch250data);
+
+// char: 0xf9
+
+ static final byte[] ch249data = {
+ (byte) 0x70,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x0,(byte) 0x20,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch249 = new BitmapCharRec(4,9,0,0,5,ch249data);
+
+// char: 0xf8
+
+ static final byte[] ch248data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0xc8,(byte) 0xa8,(byte) 0x98,(byte) 0x74,
+ };
+
+ static final BitmapCharRec ch248 = new BitmapCharRec(6,6,0,0,6,ch248data);
+
+// char: 0xf7
+
+ static final byte[] ch247data = {
+ (byte) 0x20,(byte) 0x0,(byte) 0xf8,(byte) 0x0,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch247 = new BitmapCharRec(5,5,0,-1,6,ch247data);
+
+// char: 0xf6
+
+ static final byte[] ch246data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x70,(byte) 0x0,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch246 = new BitmapCharRec(5,8,0,0,6,ch246data);
+
+// char: 0xf5
+
+ static final byte[] ch245data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x70,(byte) 0x0,(byte) 0x50,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch245 = new BitmapCharRec(5,9,0,0,6,ch245data);
+
+// char: 0xf4
+
+ static final byte[] ch244data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x70,(byte) 0x0,(byte) 0x50,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch244 = new BitmapCharRec(5,9,0,0,6,ch244data);
+
+// char: 0xf3
+
+ static final byte[] ch243data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x70,(byte) 0x0,(byte) 0x20,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch243 = new BitmapCharRec(5,9,0,0,6,ch243data);
+
+// char: 0xf2
+
+ static final byte[] ch242data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x70,(byte) 0x0,(byte) 0x20,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch242 = new BitmapCharRec(5,9,0,0,6,ch242data);
+
+// char: 0xf1
+
+ static final byte[] ch241data = {
+ (byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0xe0,(byte) 0x0,(byte) 0xa0,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch241 = new BitmapCharRec(4,9,0,0,5,ch241data);
+
+// char: 0xf0
+
+ static final byte[] ch240data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x78,(byte) 0x90,(byte) 0x60,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch240 = new BitmapCharRec(5,9,0,0,6,ch240data);
+
+// char: 0xef
+
+ static final byte[] ch239data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x0,(byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch239 = new BitmapCharRec(3,8,0,0,2,ch239data);
+
+// char: 0xee
+
+ static final byte[] ch238data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x0,(byte) 0xa0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch238 = new BitmapCharRec(3,9,1,0,2,ch238data);
+
+// char: 0xed
+
+ static final byte[] ch237data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x0,(byte) 0x80,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch237 = new BitmapCharRec(2,9,0,0,2,ch237data);
+
+// char: 0xec
+
+ static final byte[] ch236data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x0,(byte) 0x40,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch236 = new BitmapCharRec(2,9,1,0,2,ch236data);
+
+// char: 0xeb
+
+ static final byte[] ch235data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x80,(byte) 0xf0,(byte) 0x90,(byte) 0x60,(byte) 0x0,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch235 = new BitmapCharRec(4,8,0,0,5,ch235data);
+
+// char: 0xea
+
+ static final byte[] ch234data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x80,(byte) 0xf0,(byte) 0x90,(byte) 0x60,(byte) 0x0,(byte) 0x50,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch234 = new BitmapCharRec(4,9,0,0,5,ch234data);
+
+// char: 0xe9
+
+ static final byte[] ch233data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x80,(byte) 0xf0,(byte) 0x90,(byte) 0x60,(byte) 0x0,(byte) 0x40,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch233 = new BitmapCharRec(4,9,0,0,5,ch233data);
+
+// char: 0xe8
+
+ static final byte[] ch232data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x80,(byte) 0xf0,(byte) 0x90,(byte) 0x60,(byte) 0x0,(byte) 0x20,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch232 = new BitmapCharRec(4,9,0,0,5,ch232data);
+
+// char: 0xe7
+
+ static final byte[] ch231data = {
+ (byte) 0x60,(byte) 0x20,(byte) 0x60,(byte) 0x90,(byte) 0x80,(byte) 0x80,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch231 = new BitmapCharRec(4,8,0,2,5,ch231data);
+
+// char: 0xe6
+
+ static final byte[] ch230data = {
+ (byte) 0x6c,(byte) 0x92,(byte) 0x90,(byte) 0x7e,(byte) 0x12,(byte) 0xec,
+ };
+
+ static final BitmapCharRec ch230 = new BitmapCharRec(7,6,0,0,8,ch230data);
+
+// char: 0xe5
+
+ static final byte[] ch229data = {
+ (byte) 0x68,(byte) 0x90,(byte) 0x90,(byte) 0x70,(byte) 0x10,(byte) 0xe0,(byte) 0x20,(byte) 0x50,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch229 = new BitmapCharRec(5,9,0,0,5,ch229data);
+
+// char: 0xe4
+
+ static final byte[] ch228data = {
+ (byte) 0x68,(byte) 0x90,(byte) 0x90,(byte) 0x70,(byte) 0x10,(byte) 0xe0,(byte) 0x0,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch228 = new BitmapCharRec(5,8,0,0,5,ch228data);
+
+// char: 0xe3
+
+ static final byte[] ch227data = {
+ (byte) 0x68,(byte) 0x90,(byte) 0x90,(byte) 0x70,(byte) 0x10,(byte) 0xe0,(byte) 0x0,(byte) 0xa0,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch227 = new BitmapCharRec(5,9,0,0,5,ch227data);
+
+// char: 0xe2
+
+ static final byte[] ch226data = {
+ (byte) 0x68,(byte) 0x90,(byte) 0x90,(byte) 0x70,(byte) 0x10,(byte) 0xe0,(byte) 0x0,(byte) 0x50,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch226 = new BitmapCharRec(5,9,0,0,5,ch226data);
+
+// char: 0xe1
+
+ static final byte[] ch225data = {
+ (byte) 0x68,(byte) 0x90,(byte) 0x90,(byte) 0x70,(byte) 0x10,(byte) 0xe0,(byte) 0x0,(byte) 0x20,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch225 = new BitmapCharRec(5,9,0,0,5,ch225data);
+
+// char: 0xe0
+
+ static final byte[] ch224data = {
+ (byte) 0x68,(byte) 0x90,(byte) 0x90,(byte) 0x70,(byte) 0x10,(byte) 0xe0,(byte) 0x0,(byte) 0x20,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch224 = new BitmapCharRec(5,9,0,0,5,ch224data);
+
+// char: 0xdf
+
+ static final byte[] ch223data = {
+ (byte) 0xa0,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0xa0,(byte) 0x90,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch223 = new BitmapCharRec(4,8,0,0,5,ch223data);
+
+// char: 0xde
+
+ static final byte[] ch222data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0xf0,(byte) 0x88,(byte) 0x88,(byte) 0xf0,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch222 = new BitmapCharRec(5,8,-1,0,7,ch222data);
+
+// char: 0xdd
+
+ static final byte[] ch221data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x28,(byte) 0x28,(byte) 0x44,(byte) 0x44,(byte) 0x82,(byte) 0x0,(byte) 0x10,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch221 = new BitmapCharRec(7,11,0,0,7,ch221data);
+
+// char: 0xdc
+
+ static final byte[] ch220data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x0,(byte) 0x48,
+ };
+
+ static final BitmapCharRec ch220 = new BitmapCharRec(6,10,-1,0,8,ch220data);
+
+// char: 0xdb
+
+ static final byte[] ch219data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x0,(byte) 0x28,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch219 = new BitmapCharRec(6,11,-1,0,8,ch219data);
+
+// char: 0xda
+
+ static final byte[] ch218data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x0,(byte) 0x20,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch218 = new BitmapCharRec(6,11,-1,0,8,ch218data);
+
+// char: 0xd9
+
+ static final byte[] ch217data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x0,(byte) 0x10,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch217 = new BitmapCharRec(6,11,-1,0,8,ch217data);
+
+// char: 0xd8
+
+ static final byte[] ch216data = {
+ (byte) 0x80,(byte) 0x78,(byte) 0xc4,(byte) 0xa4,(byte) 0xa4,(byte) 0x94,(byte) 0x94,(byte) 0x8c,(byte) 0x78,(byte) 0x4,
+ };
+
+ static final BitmapCharRec ch216 = new BitmapCharRec(6,10,-1,1,8,ch216data);
+
+// char: 0xd7
+
+ static final byte[] ch215data = {
+ (byte) 0x88,(byte) 0x50,(byte) 0x20,(byte) 0x50,(byte) 0x88,
+ };
+
+ static final BitmapCharRec ch215 = new BitmapCharRec(5,5,0,-1,6,ch215data);
+
+// char: 0xd6
+
+ static final byte[] ch214data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x78,(byte) 0x0,(byte) 0x48,
+ };
+
+ static final BitmapCharRec ch214 = new BitmapCharRec(6,10,-1,0,8,ch214data);
+
+// char: 0xd5
+
+ static final byte[] ch213data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x78,(byte) 0x0,(byte) 0x50,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch213 = new BitmapCharRec(6,11,-1,0,8,ch213data);
+
+// char: 0xd4
+
+ static final byte[] ch212data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x78,(byte) 0x0,(byte) 0x28,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch212 = new BitmapCharRec(6,11,-1,0,8,ch212data);
+
+// char: 0xd3
+
+ static final byte[] ch211data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x78,(byte) 0x0,(byte) 0x10,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch211 = new BitmapCharRec(6,11,-1,0,8,ch211data);
+
+// char: 0xd2
+
+ static final byte[] ch210data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x78,(byte) 0x0,(byte) 0x10,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch210 = new BitmapCharRec(6,11,-1,0,8,ch210data);
+
+// char: 0xd1
+
+ static final byte[] ch209data = {
+ (byte) 0x8c,(byte) 0x8c,(byte) 0x94,(byte) 0x94,(byte) 0xa4,(byte) 0xa4,(byte) 0xc4,(byte) 0xc4,(byte) 0x0,(byte) 0x50,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch209 = new BitmapCharRec(6,11,-1,0,8,ch209data);
+
+// char: 0xd0
+
+ static final byte[] ch208data = {
+ (byte) 0x78,(byte) 0x44,(byte) 0x42,(byte) 0x42,(byte) 0xf2,(byte) 0x42,(byte) 0x44,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch208 = new BitmapCharRec(7,8,0,0,8,ch208data);
+
+// char: 0xcf
+
+ static final byte[] ch207data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x0,(byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch207 = new BitmapCharRec(3,10,0,0,3,ch207data);
+
+// char: 0xce
+
+ static final byte[] ch206data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x0,(byte) 0xa0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch206 = new BitmapCharRec(3,11,0,0,3,ch206data);
+
+// char: 0xcd
+
+ static final byte[] ch205data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x0,(byte) 0x80,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch205 = new BitmapCharRec(2,11,-1,0,3,ch205data);
+
+// char: 0xcc
+
+ static final byte[] ch204data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x0,(byte) 0x40,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch204 = new BitmapCharRec(2,11,0,0,3,ch204data);
+
+// char: 0xcb
+
+ static final byte[] ch203data = {
+ (byte) 0xf8,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xf8,(byte) 0x80,(byte) 0x80,(byte) 0xf8,(byte) 0x0,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch203 = new BitmapCharRec(5,10,-1,0,7,ch203data);
+
+// char: 0xca
+
+ static final byte[] ch202data = {
+ (byte) 0xf8,(byte) 0x80,(byte) 0x80,(byte) 0xf8,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xf8,(byte) 0x0,(byte) 0x50,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch202 = new BitmapCharRec(5,11,-1,0,7,ch202data);
+
+// char: 0xc9
+
+ static final byte[] ch201data = {
+ (byte) 0xf8,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xf8,(byte) 0x80,(byte) 0x80,(byte) 0xf8,(byte) 0x0,(byte) 0x20,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch201 = new BitmapCharRec(5,11,-1,0,7,ch201data);
+
+// char: 0xc8
+
+ static final byte[] ch200data = {
+ (byte) 0xf8,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xf8,(byte) 0x80,(byte) 0x80,(byte) 0xf8,(byte) 0x0,(byte) 0x20,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch200 = new BitmapCharRec(5,11,-1,0,7,ch200data);
+
+// char: 0xc7
+
+ static final byte[] ch199data = {
+ (byte) 0x30,(byte) 0x10,(byte) 0x78,(byte) 0x84,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x84,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch199 = new BitmapCharRec(6,10,-1,2,8,ch199data);
+
+// char: 0xc6
+
+ static final byte[] ch198data = {
+ (byte) 0x8f,(byte) 0x80,(byte) 0x88,(byte) 0x0,(byte) 0x78,(byte) 0x0,(byte) 0x48,(byte) 0x0,(byte) 0x2f,(byte) 0x80,(byte) 0x28,(byte) 0x0,(byte) 0x18,(byte) 0x0,(byte) 0x1f,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch198 = new BitmapCharRec(9,8,0,0,10,ch198data);
+
+// char: 0xc5
+
+ static final byte[] ch197data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x44,(byte) 0x28,(byte) 0x28,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x28,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch197 = new BitmapCharRec(7,11,0,0,7,ch197data);
+
+// char: 0xc4
+
+ static final byte[] ch196data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x44,(byte) 0x28,(byte) 0x28,(byte) 0x10,(byte) 0x10,(byte) 0x0,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch196 = new BitmapCharRec(7,10,0,0,7,ch196data);
+
+// char: 0xc3
+
+ static final byte[] ch195data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x44,(byte) 0x28,(byte) 0x28,(byte) 0x10,(byte) 0x10,(byte) 0x0,(byte) 0x28,(byte) 0x14,
+ };
+
+ static final BitmapCharRec ch195 = new BitmapCharRec(7,11,0,0,7,ch195data);
+
+// char: 0xc2
+
+ static final byte[] ch194data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x44,(byte) 0x28,(byte) 0x28,(byte) 0x10,(byte) 0x10,(byte) 0x0,(byte) 0x28,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch194 = new BitmapCharRec(7,11,0,0,7,ch194data);
+
+// char: 0xc1
+
+ static final byte[] ch193data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x44,(byte) 0x28,(byte) 0x28,(byte) 0x10,(byte) 0x10,(byte) 0x0,(byte) 0x10,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch193 = new BitmapCharRec(7,11,0,0,7,ch193data);
+
+// char: 0xc0
+
+ static final byte[] ch192data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x44,(byte) 0x28,(byte) 0x28,(byte) 0x10,(byte) 0x10,(byte) 0x0,(byte) 0x10,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch192 = new BitmapCharRec(7,11,0,0,7,ch192data);
+
+// char: 0xbf
+
+ static final byte[] ch191data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x80,(byte) 0x40,(byte) 0x20,(byte) 0x20,(byte) 0x0,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch191 = new BitmapCharRec(4,8,-1,2,6,ch191data);
+
+// char: 0xbe
+
+ static final byte[] ch190data = {
+ (byte) 0x21,(byte) 0x0,(byte) 0x17,(byte) 0x80,(byte) 0x13,(byte) 0x0,(byte) 0x9,(byte) 0x0,(byte) 0xc8,(byte) 0x0,(byte) 0x24,(byte) 0x0,(byte) 0x44,(byte) 0x0,(byte) 0xe2,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch190 = new BitmapCharRec(9,8,0,0,9,ch190data);
+
+// char: 0xbd
+
+ static final byte[] ch189data = {
+ (byte) 0x27,(byte) 0x12,(byte) 0x15,(byte) 0xb,(byte) 0x48,(byte) 0x44,(byte) 0xc4,(byte) 0x42,
+ };
+
+ static final BitmapCharRec ch189 = new BitmapCharRec(8,8,0,0,9,ch189data);
+
+// char: 0xbc
+
+ static final byte[] ch188data = {
+ (byte) 0x21,(byte) 0x0,(byte) 0x17,(byte) 0x80,(byte) 0x13,(byte) 0x0,(byte) 0x9,(byte) 0x0,(byte) 0x48,(byte) 0x0,(byte) 0x44,(byte) 0x0,(byte) 0xc4,(byte) 0x0,(byte) 0x42,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch188 = new BitmapCharRec(9,8,0,0,9,ch188data);
+
+// char: 0xbb
+
+ static final byte[] ch187data = {
+ (byte) 0xa0,(byte) 0x50,(byte) 0x28,(byte) 0x50,(byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch187 = new BitmapCharRec(5,5,0,0,6,ch187data);
+
+// char: 0xba
+
+ static final byte[] ch186data = {
+ (byte) 0xe0,(byte) 0x0,(byte) 0xe0,(byte) 0xa0,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch186 = new BitmapCharRec(3,5,0,-3,4,ch186data);
+
+// char: 0xb9
+
+ static final byte[] ch185data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0xc0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch185 = new BitmapCharRec(2,4,0,-3,3,ch185data);
+
+// char: 0xb8
+
+ static final byte[] ch184data = {
+ (byte) 0xc0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch184 = new BitmapCharRec(2,2,0,2,3,ch184data);
+
+// char: 0xb7
+
+ static final byte[] ch183data = {
+ (byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch183 = new BitmapCharRec(2,1,0,-3,3,ch183data);
+
+// char: 0xb6
+
+ static final byte[] ch182data = {
+ (byte) 0x28,(byte) 0x28,(byte) 0x28,(byte) 0x28,(byte) 0x28,(byte) 0x68,(byte) 0xe8,(byte) 0xe8,(byte) 0xe8,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch182 = new BitmapCharRec(6,10,0,2,6,ch182data);
+
+// char: 0xb5
+
+ static final byte[] ch181data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0xf0,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x90,
+ };
+
+ static final BitmapCharRec ch181 = new BitmapCharRec(4,8,0,2,5,ch181data);
+
+// char: 0xb4
+
+ static final byte[] ch180data = {
+ (byte) 0x80,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch180 = new BitmapCharRec(2,2,0,-6,3,ch180data);
+
+// char: 0xb3
+
+ static final byte[] ch179data = {
+ (byte) 0xc0,(byte) 0x20,(byte) 0x40,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch179 = new BitmapCharRec(3,4,0,-3,3,ch179data);
+
+// char: 0xb2
+
+ static final byte[] ch178data = {
+ (byte) 0xe0,(byte) 0x40,(byte) 0xa0,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch178 = new BitmapCharRec(3,4,0,-3,3,ch178data);
+
+// char: 0xb1
+
+ static final byte[] ch177data = {
+ (byte) 0xf8,(byte) 0x0,(byte) 0x20,(byte) 0x20,(byte) 0xf8,(byte) 0x20,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch177 = new BitmapCharRec(5,7,0,0,6,ch177data);
+
+// char: 0xb0
+
+ static final byte[] ch176data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch176 = new BitmapCharRec(4,4,0,-3,4,ch176data);
+
+// char: 0xaf
+
+ static final byte[] ch175data = {
+ (byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch175 = new BitmapCharRec(3,1,0,-7,3,ch175data);
+
+// char: 0xae
+
+ static final byte[] ch174data = {
+ (byte) 0x38,(byte) 0x44,(byte) 0xaa,(byte) 0xb2,(byte) 0xba,(byte) 0x44,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch174 = new BitmapCharRec(7,7,-1,0,9,ch174data);
+
+// char: 0xad
+
+ static final byte[] ch173data = {
+ (byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch173 = new BitmapCharRec(3,1,0,-3,4,ch173data);
+
+// char: 0xac
+
+ static final byte[] ch172data = {
+ (byte) 0x8,(byte) 0x8,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch172 = new BitmapCharRec(5,3,-1,-2,7,ch172data);
+
+// char: 0xab
+
+ static final byte[] ch171data = {
+ (byte) 0x28,(byte) 0x50,(byte) 0xa0,(byte) 0x50,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch171 = new BitmapCharRec(5,5,0,0,6,ch171data);
+
+// char: 0xaa
+
+ static final byte[] ch170data = {
+ (byte) 0xe0,(byte) 0x0,(byte) 0xa0,(byte) 0x20,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch170 = new BitmapCharRec(3,5,0,-3,4,ch170data);
+
+// char: 0xa9
+
+ static final byte[] ch169data = {
+ (byte) 0x38,(byte) 0x44,(byte) 0x9a,(byte) 0xa2,(byte) 0x9a,(byte) 0x44,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch169 = new BitmapCharRec(7,7,-1,0,9,ch169data);
+
+// char: 0xa8
+
+ static final byte[] ch168data = {
+ (byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch168 = new BitmapCharRec(3,1,0,-7,3,ch168data);
+
+// char: 0xa7
+
+ static final byte[] ch167data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x18,(byte) 0x70,(byte) 0xc8,(byte) 0x98,(byte) 0x70,(byte) 0xc0,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch167 = new BitmapCharRec(5,10,0,2,6,ch167data);
+
+// char: 0xa6
+
+ static final byte[] ch166data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x0,(byte) 0x0,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch166 = new BitmapCharRec(1,10,-1,2,3,ch166data);
+
+// char: 0xa5
+
+ static final byte[] ch165data = {
+ (byte) 0x20,(byte) 0xf8,(byte) 0x20,(byte) 0xf8,(byte) 0x50,(byte) 0x50,(byte) 0x88,(byte) 0x88,
+ };
+
+ static final BitmapCharRec ch165 = new BitmapCharRec(5,8,0,0,6,ch165data);
+
+// char: 0xa4
+
+ static final byte[] ch164data = {
+ (byte) 0x90,(byte) 0x60,(byte) 0x90,(byte) 0x90,(byte) 0x60,(byte) 0x90,
+ };
+
+ static final BitmapCharRec ch164 = new BitmapCharRec(4,6,0,-1,5,ch164data);
+
+// char: 0xa3
+
+ static final byte[] ch163data = {
+ (byte) 0xb0,(byte) 0x48,(byte) 0x40,(byte) 0x40,(byte) 0xe0,(byte) 0x40,(byte) 0x48,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch163 = new BitmapCharRec(5,8,0,0,6,ch163data);
+
+// char: 0xa2
+
+ static final byte[] ch162data = {
+ (byte) 0x40,(byte) 0x70,(byte) 0xa8,(byte) 0xa0,(byte) 0xa0,(byte) 0xa8,(byte) 0x70,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch162 = new BitmapCharRec(5,8,0,1,6,ch162data);
+
+// char: 0xa1
+
+ static final byte[] ch161data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x0,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch161 = new BitmapCharRec(1,8,-1,2,3,ch161data);
+
+// char: 0xa0
+
+ static final BitmapCharRec ch160 = new BitmapCharRec(0,0,0,0,3,zerodata);
+
+// char: 0x7e '~'
+
+ static final byte[] ch126data = {
+ (byte) 0x98,(byte) 0x64,
+ };
+
+ static final BitmapCharRec ch126 = new BitmapCharRec(6,2,0,-3,7,ch126data);
+
+// char: 0x7d '}'
+
+ static final byte[] ch125data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch125 = new BitmapCharRec(3,10,0,2,3,ch125data);
+
+// char: 0x7c '|'
+
+ static final byte[] ch124data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch124 = new BitmapCharRec(1,10,-1,2,3,ch124data);
+
+// char: 0x7b '{'
+
+ static final byte[] ch123data = {
+ (byte) 0x20,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch123 = new BitmapCharRec(3,10,0,2,3,ch123data);
+
+// char: 0x7a 'z'
+
+ static final byte[] ch122data = {
+ (byte) 0xf0,(byte) 0x80,(byte) 0x40,(byte) 0x20,(byte) 0x10,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch122 = new BitmapCharRec(4,6,0,0,5,ch122data);
+
+// char: 0x79 'y'
+
+ static final byte[] ch121data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x60,(byte) 0xa0,(byte) 0xa0,(byte) 0x90,(byte) 0x90,
+ };
+
+ static final BitmapCharRec ch121 = new BitmapCharRec(4,8,0,2,5,ch121data);
+
+// char: 0x78 'x'
+
+ static final byte[] ch120data = {
+ (byte) 0x88,(byte) 0x88,(byte) 0x50,(byte) 0x20,(byte) 0x50,(byte) 0x88,
+ };
+
+ static final BitmapCharRec ch120 = new BitmapCharRec(5,6,0,0,6,ch120data);
+
+// char: 0x77 'w'
+
+ static final byte[] ch119data = {
+ (byte) 0x28,(byte) 0x28,(byte) 0x54,(byte) 0x54,(byte) 0x92,(byte) 0x92,
+ };
+
+ static final BitmapCharRec ch119 = new BitmapCharRec(7,6,0,0,8,ch119data);
+
+// char: 0x76 'v'
+
+ static final byte[] ch118data = {
+ (byte) 0x20,(byte) 0x20,(byte) 0x50,(byte) 0x50,(byte) 0x88,(byte) 0x88,
+ };
+
+ static final BitmapCharRec ch118 = new BitmapCharRec(5,6,0,0,6,ch118data);
+
+// char: 0x75 'u'
+
+ static final byte[] ch117data = {
+ (byte) 0x70,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x90,
+ };
+
+ static final BitmapCharRec ch117 = new BitmapCharRec(4,6,0,0,5,ch117data);
+
+// char: 0x74 't'
+
+ static final byte[] ch116data = {
+ (byte) 0x60,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xe0,(byte) 0x40,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch116 = new BitmapCharRec(3,8,0,0,4,ch116data);
+
+// char: 0x73 's'
+
+ static final byte[] ch115data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x10,(byte) 0x60,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch115 = new BitmapCharRec(4,6,0,0,5,ch115data);
+
+// char: 0x72 'r'
+
+ static final byte[] ch114data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xc0,(byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch114 = new BitmapCharRec(3,6,0,0,4,ch114data);
+
+// char: 0x71 'q'
+
+ static final byte[] ch113data = {
+ (byte) 0x8,(byte) 0x8,(byte) 0x68,(byte) 0x98,(byte) 0x88,(byte) 0x88,(byte) 0x98,(byte) 0x68,
+ };
+
+ static final BitmapCharRec ch113 = new BitmapCharRec(5,8,0,2,6,ch113data);
+
+// char: 0x70 'p'
+
+ static final byte[] ch112data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0xb0,(byte) 0xc8,(byte) 0x88,(byte) 0x88,(byte) 0xc8,(byte) 0xb0,
+ };
+
+ static final BitmapCharRec ch112 = new BitmapCharRec(5,8,0,2,6,ch112data);
+
+// char: 0x6f 'o'
+
+ static final byte[] ch111data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch111 = new BitmapCharRec(5,6,0,0,6,ch111data);
+
+// char: 0x6e 'n'
+
+ static final byte[] ch110data = {
+ (byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0xc8,(byte) 0xb0,
+ };
+
+ static final BitmapCharRec ch110 = new BitmapCharRec(5,6,0,0,6,ch110data);
+
+// char: 0x6d 'm'
+
+ static final byte[] ch109data = {
+ (byte) 0x92,(byte) 0x92,(byte) 0x92,(byte) 0x92,(byte) 0x92,(byte) 0xec,
+ };
+
+ static final BitmapCharRec ch109 = new BitmapCharRec(7,6,0,0,8,ch109data);
+
+// char: 0x6c 'l'
+
+ static final byte[] ch108data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch108 = new BitmapCharRec(1,8,0,0,2,ch108data);
+
+// char: 0x6b 'k'
+
+ static final byte[] ch107data = {
+ (byte) 0x90,(byte) 0x90,(byte) 0xa0,(byte) 0xc0,(byte) 0xa0,(byte) 0x90,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch107 = new BitmapCharRec(4,8,0,0,5,ch107data);
+
+// char: 0x6a 'j'
+
+ static final byte[] ch106data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x0,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch106 = new BitmapCharRec(1,9,0,1,2,ch106data);
+
+// char: 0x69 'i'
+
+ static final byte[] ch105data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x0,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch105 = new BitmapCharRec(1,8,0,0,2,ch105data);
+
+// char: 0x68 'h'
+
+ static final byte[] ch104data = {
+ (byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0xc8,(byte) 0xb0,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch104 = new BitmapCharRec(5,8,0,0,6,ch104data);
+
+// char: 0x67 'g'
+
+ static final byte[] ch103data = {
+ (byte) 0x70,(byte) 0x8,(byte) 0x68,(byte) 0x98,(byte) 0x88,(byte) 0x88,(byte) 0x98,(byte) 0x68,
+ };
+
+ static final BitmapCharRec ch103 = new BitmapCharRec(5,8,0,2,6,ch103data);
+
+// char: 0x66 'f'
+
+ static final byte[] ch102data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xe0,(byte) 0x40,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch102 = new BitmapCharRec(4,8,0,0,4,ch102data);
+
+// char: 0x65 'e'
+
+ static final byte[] ch101data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x80,(byte) 0xf0,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch101 = new BitmapCharRec(4,6,0,0,5,ch101data);
+
+// char: 0x64 'd'
+
+ static final byte[] ch100data = {
+ (byte) 0x68,(byte) 0x98,(byte) 0x88,(byte) 0x88,(byte) 0x98,(byte) 0x68,(byte) 0x8,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch100 = new BitmapCharRec(5,8,0,0,6,ch100data);
+
+// char: 0x63 'c'
+
+ static final byte[] ch99data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x80,(byte) 0x80,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch99 = new BitmapCharRec(4,6,0,0,5,ch99data);
+
+// char: 0x62 'b'
+
+ static final byte[] ch98data = {
+ (byte) 0xb0,(byte) 0xc8,(byte) 0x88,(byte) 0x88,(byte) 0xc8,(byte) 0xb0,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch98 = new BitmapCharRec(5,8,0,0,6,ch98data);
+
+// char: 0x61 'a'
+
+ static final byte[] ch97data = {
+ (byte) 0x68,(byte) 0x90,(byte) 0x90,(byte) 0x70,(byte) 0x10,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch97 = new BitmapCharRec(5,6,0,0,5,ch97data);
+
+// char: 0x60 '`'
+
+ static final byte[] ch96data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch96 = new BitmapCharRec(2,3,0,-5,3,ch96data);
+
+// char: 0x5f '_'
+
+ static final byte[] ch95data = {
+ (byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch95 = new BitmapCharRec(6,1,0,2,6,ch95data);
+
+// char: 0x5e '^'
+
+ static final byte[] ch94data = {
+ (byte) 0x88,(byte) 0x50,(byte) 0x50,(byte) 0x20,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch94 = new BitmapCharRec(5,5,0,-3,6,ch94data);
+
+// char: 0x5d ']'
+
+ static final byte[] ch93data = {
+ (byte) 0xc0,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch93 = new BitmapCharRec(2,10,0,2,3,ch93data);
+
+// char: 0x5c '\'
+
+ static final byte[] ch92data = {
+ (byte) 0x20,(byte) 0x20,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch92 = new BitmapCharRec(3,8,0,0,3,ch92data);
+
+// char: 0x5b '['
+
+ static final byte[] ch91data = {
+ (byte) 0xc0,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch91 = new BitmapCharRec(2,10,-1,2,3,ch91data);
+
+// char: 0x5a 'Z'
+
+ static final byte[] ch90data = {
+ (byte) 0xf8,(byte) 0x80,(byte) 0x40,(byte) 0x20,(byte) 0x20,(byte) 0x10,(byte) 0x8,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch90 = new BitmapCharRec(5,8,-1,0,7,ch90data);
+
+// char: 0x59 'Y'
+
+ static final byte[] ch89data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x28,(byte) 0x28,(byte) 0x44,(byte) 0x44,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch89 = new BitmapCharRec(7,8,0,0,7,ch89data);
+
+// char: 0x58 'X'
+
+ static final byte[] ch88data = {
+ (byte) 0x88,(byte) 0x88,(byte) 0x50,(byte) 0x50,(byte) 0x20,(byte) 0x50,(byte) 0x88,(byte) 0x88,
+ };
+
+ static final BitmapCharRec ch88 = new BitmapCharRec(5,8,-1,0,7,ch88data);
+
+// char: 0x57 'W'
+
+ static final byte[] ch87data = {
+ (byte) 0x22,(byte) 0x0,(byte) 0x22,(byte) 0x0,(byte) 0x22,(byte) 0x0,(byte) 0x55,(byte) 0x0,(byte) 0x49,(byte) 0x0,(byte) 0x49,(byte) 0x0,(byte) 0x88,(byte) 0x80,(byte) 0x88,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch87 = new BitmapCharRec(9,8,0,0,9,ch87data);
+
+// char: 0x56 'V'
+
+ static final byte[] ch86data = {
+ (byte) 0x10,(byte) 0x28,(byte) 0x28,(byte) 0x44,(byte) 0x44,(byte) 0x44,(byte) 0x82,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch86 = new BitmapCharRec(7,8,0,0,7,ch86data);
+
+// char: 0x55 'U'
+
+ static final byte[] ch85data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,
+ };
+
+ static final BitmapCharRec ch85 = new BitmapCharRec(6,8,-1,0,8,ch85data);
+
+// char: 0x54 'T'
+
+ static final byte[] ch84data = {
+ (byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch84 = new BitmapCharRec(5,8,0,0,5,ch84data);
+
+// char: 0x53 'S'
+
+ static final byte[] ch83data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x8,(byte) 0x70,(byte) 0x80,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch83 = new BitmapCharRec(5,8,-1,0,7,ch83data);
+
+// char: 0x52 'R'
+
+ static final byte[] ch82data = {
+ (byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0xf0,(byte) 0x88,(byte) 0x88,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch82 = new BitmapCharRec(5,8,-1,0,7,ch82data);
+
+// char: 0x51 'Q'
+
+ static final byte[] ch81data = {
+ (byte) 0x2,(byte) 0x7c,(byte) 0x8c,(byte) 0x94,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch81 = new BitmapCharRec(7,9,-1,1,8,ch81data);
+
+// char: 0x50 'P'
+
+ static final byte[] ch80data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xf0,(byte) 0x88,(byte) 0x88,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch80 = new BitmapCharRec(5,8,-1,0,7,ch80data);
+
+// char: 0x4f 'O'
+
+ static final byte[] ch79data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch79 = new BitmapCharRec(6,8,-1,0,8,ch79data);
+
+// char: 0x4e 'N'
+
+ static final byte[] ch78data = {
+ (byte) 0x8c,(byte) 0x8c,(byte) 0x94,(byte) 0x94,(byte) 0xa4,(byte) 0xa4,(byte) 0xc4,(byte) 0xc4,
+ };
+
+ static final BitmapCharRec ch78 = new BitmapCharRec(6,8,-1,0,8,ch78data);
+
+// char: 0x4d 'M'
+
+ static final byte[] ch77data = {
+ (byte) 0x92,(byte) 0x92,(byte) 0x92,(byte) 0xaa,(byte) 0xaa,(byte) 0xc6,(byte) 0xc6,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch77 = new BitmapCharRec(7,8,-1,0,9,ch77data);
+
+// char: 0x4c 'L'
+
+ static final byte[] ch76data = {
+ (byte) 0xf0,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch76 = new BitmapCharRec(4,8,-1,0,6,ch76data);
+
+// char: 0x4b 'K'
+
+ static final byte[] ch75data = {
+ (byte) 0x88,(byte) 0x88,(byte) 0x90,(byte) 0x90,(byte) 0xe0,(byte) 0xa0,(byte) 0x90,(byte) 0x88,
+ };
+
+ static final BitmapCharRec ch75 = new BitmapCharRec(5,8,-1,0,7,ch75data);
+
+// char: 0x4a 'J'
+
+ static final byte[] ch74data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch74 = new BitmapCharRec(4,8,0,0,5,ch74data);
+
+// char: 0x49 'I'
+
+ static final byte[] ch73data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch73 = new BitmapCharRec(1,8,-1,0,3,ch73data);
+
+// char: 0x48 'H'
+
+ static final byte[] ch72data = {
+ (byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0xfc,(byte) 0x84,(byte) 0x84,(byte) 0x84,
+ };
+
+ static final BitmapCharRec ch72 = new BitmapCharRec(6,8,-1,0,8,ch72data);
+
+// char: 0x47 'G'
+
+ static final byte[] ch71data = {
+ (byte) 0x74,(byte) 0x8c,(byte) 0x84,(byte) 0x8c,(byte) 0x80,(byte) 0x80,(byte) 0x84,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch71 = new BitmapCharRec(6,8,-1,0,8,ch71data);
+
+// char: 0x46 'F'
+
+ static final byte[] ch70data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xf0,(byte) 0x80,(byte) 0x80,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch70 = new BitmapCharRec(5,8,-1,0,6,ch70data);
+
+// char: 0x45 'E'
+
+ static final byte[] ch69data = {
+ (byte) 0xf8,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xf8,(byte) 0x80,(byte) 0x80,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch69 = new BitmapCharRec(5,8,-1,0,7,ch69data);
+
+// char: 0x44 'D'
+
+ static final byte[] ch68data = {
+ (byte) 0xf0,(byte) 0x88,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x88,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch68 = new BitmapCharRec(6,8,-1,0,8,ch68data);
+
+// char: 0x43 'C'
+
+ static final byte[] ch67data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x84,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch67 = new BitmapCharRec(6,8,-1,0,8,ch67data);
+
+// char: 0x42 'B'
+
+ static final byte[] ch66data = {
+ (byte) 0xf0,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0xf0,(byte) 0x88,(byte) 0x88,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch66 = new BitmapCharRec(5,8,-1,0,7,ch66data);
+
+// char: 0x41 'A'
+
+ static final byte[] ch65data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x44,(byte) 0x28,(byte) 0x28,(byte) 0x10,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch65 = new BitmapCharRec(7,8,0,0,7,ch65data);
+
+// char: 0x40 '@'
+
+ static final byte[] ch64data = {
+ (byte) 0x3e,(byte) 0x0,(byte) 0x40,(byte) 0x0,(byte) 0x9b,(byte) 0x0,(byte) 0xa4,(byte) 0x80,(byte) 0xa4,(byte) 0x80,(byte) 0xa2,(byte) 0x40,(byte) 0x92,(byte) 0x40,(byte) 0x4d,(byte) 0x40,
+(byte) 0x20,(byte) 0x80,(byte) 0x1f,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch64 = new BitmapCharRec(10,10,0,2,11,ch64data);
+
+// char: 0x3f '?'
+
+ static final byte[] ch63data = {
+ (byte) 0x40,(byte) 0x0,(byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0x10,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch63 = new BitmapCharRec(4,8,-1,0,6,ch63data);
+
+// char: 0x3e '>'
+
+ static final byte[] ch62data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x20,(byte) 0x40,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch62 = new BitmapCharRec(3,5,-1,-1,6,ch62data);
+
+// char: 0x3d '='
+
+ static final byte[] ch61data = {
+ (byte) 0xf0,(byte) 0x0,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch61 = new BitmapCharRec(4,3,0,-2,5,ch61data);
+
+// char: 0x3c '<'
+
+ static final byte[] ch60data = {
+ (byte) 0x20,(byte) 0x40,(byte) 0x80,(byte) 0x40,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch60 = new BitmapCharRec(3,5,-1,-1,6,ch60data);
+
+// char: 0x3b ';'
+
+ static final byte[] ch59data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch59 = new BitmapCharRec(2,8,0,2,3,ch59data);
+
+// char: 0x3a ':'
+
+ static final byte[] ch58data = {
+ (byte) 0x80,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch58 = new BitmapCharRec(1,6,-1,0,3,ch58data);
+
+// char: 0x39 '9'
+
+ static final byte[] ch57data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x8,(byte) 0x68,(byte) 0x98,(byte) 0x88,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch57 = new BitmapCharRec(5,8,0,0,6,ch57data);
+
+// char: 0x38 '8'
+
+ static final byte[] ch56data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch56 = new BitmapCharRec(5,8,0,0,6,ch56data);
+
+// char: 0x37 '7'
+
+ static final byte[] ch55data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0x20,(byte) 0x10,(byte) 0x10,(byte) 0x8,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch55 = new BitmapCharRec(5,8,0,0,6,ch55data);
+
+// char: 0x36 '6'
+
+ static final byte[] ch54data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0xc8,(byte) 0xb0,(byte) 0x80,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch54 = new BitmapCharRec(5,8,0,0,6,ch54data);
+
+// char: 0x35 '5'
+
+ static final byte[] ch53data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x8,(byte) 0x8,(byte) 0xf0,(byte) 0x80,(byte) 0x80,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch53 = new BitmapCharRec(5,8,0,0,6,ch53data);
+
+// char: 0x34 '4'
+
+ static final byte[] ch52data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0xf8,(byte) 0x90,(byte) 0x50,(byte) 0x50,(byte) 0x30,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch52 = new BitmapCharRec(5,8,0,0,6,ch52data);
+
+// char: 0x33 '3'
+
+ static final byte[] ch51data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x8,(byte) 0x8,(byte) 0x30,(byte) 0x8,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch51 = new BitmapCharRec(5,8,0,0,6,ch51data);
+
+// char: 0x32 '2'
+
+ static final byte[] ch50data = {
+ (byte) 0xf8,(byte) 0x80,(byte) 0x40,(byte) 0x30,(byte) 0x8,(byte) 0x8,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch50 = new BitmapCharRec(5,8,0,0,6,ch50data);
+
+// char: 0x31 '1'
+
+ static final byte[] ch49data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xc0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch49 = new BitmapCharRec(2,8,-1,0,6,ch49data);
+
+// char: 0x30 '0'
+
+ static final byte[] ch48data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch48 = new BitmapCharRec(5,8,0,0,6,ch48data);
+
+// char: 0x2f '/'
+
+ static final byte[] ch47data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch47 = new BitmapCharRec(3,8,0,0,3,ch47data);
+
+// char: 0x2e '.'
+
+ static final byte[] ch46data = {
+ (byte) 0x80,
+ };
+
+ static final BitmapCharRec ch46 = new BitmapCharRec(1,1,-1,0,3,ch46data);
+
+// char: 0x2d '-'
+
+ static final byte[] ch45data = {
+ (byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch45 = new BitmapCharRec(5,1,-1,-3,7,ch45data);
+
+// char: 0x2c ','
+
+ static final byte[] ch44data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch44 = new BitmapCharRec(2,3,0,2,3,ch44data);
+
+// char: 0x2b '+'
+
+ static final byte[] ch43data = {
+ (byte) 0x20,(byte) 0x20,(byte) 0xf8,(byte) 0x20,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch43 = new BitmapCharRec(5,5,0,-1,6,ch43data);
+
+// char: 0x2a '*'
+
+ static final byte[] ch42data = {
+ (byte) 0xa0,(byte) 0x40,(byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch42 = new BitmapCharRec(3,3,0,-5,4,ch42data);
+
+// char: 0x29 ')'
+
+ static final byte[] ch41data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x40,(byte) 0x40,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch41 = new BitmapCharRec(3,10,-1,2,4,ch41data);
+
+// char: 0x28 '('
+
+ static final byte[] ch40data = {
+ (byte) 0x20,(byte) 0x40,(byte) 0x40,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch40 = new BitmapCharRec(3,10,0,2,4,ch40data);
+
+// char: 0x27 '''
+
+ static final byte[] ch39data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch39 = new BitmapCharRec(2,3,-1,-5,3,ch39data);
+
+// char: 0x26 '&'
+
+ static final byte[] ch38data = {
+ (byte) 0x64,(byte) 0x98,(byte) 0x98,(byte) 0xa4,(byte) 0x60,(byte) 0x50,(byte) 0x50,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch38 = new BitmapCharRec(6,8,-1,0,8,ch38data);
+
+// char: 0x25 '%'
+
+ static final byte[] ch37data = {
+ (byte) 0x26,(byte) 0x29,(byte) 0x16,(byte) 0x10,(byte) 0x8,(byte) 0x68,(byte) 0x94,(byte) 0x64,
+ };
+
+ static final BitmapCharRec ch37 = new BitmapCharRec(8,8,0,0,9,ch37data);
+
+// char: 0x24 '$'
+
+ static final byte[] ch36data = {
+ (byte) 0x20,(byte) 0x70,(byte) 0xa8,(byte) 0x28,(byte) 0x70,(byte) 0xa0,(byte) 0xa8,(byte) 0x70,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch36 = new BitmapCharRec(5,9,0,1,6,ch36data);
+
+// char: 0x23 '#'
+
+ static final byte[] ch35data = {
+ (byte) 0x50,(byte) 0x50,(byte) 0xf8,(byte) 0x28,(byte) 0x7c,(byte) 0x28,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch35 = new BitmapCharRec(6,7,0,0,6,ch35data);
+
+// char: 0x22 '"'
+
+ static final byte[] ch34data = {
+ (byte) 0xa0,(byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch34 = new BitmapCharRec(3,2,-1,-6,4,ch34data);
+
+// char: 0x21 '!'
+
+ static final byte[] ch33data = {
+ (byte) 0x80,(byte) 0x0,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch33 = new BitmapCharRec(1,8,-1,0,3,ch33data);
+
+// char: 0x20 ' '
+
+ static final BitmapCharRec ch32 = new BitmapCharRec(0,0,0,0,3,zerodata);
+
+ static final BitmapCharRec chars[] = {
+ ch32,
+ ch33,
+ ch34,
+ ch35,
+ ch36,
+ ch37,
+ ch38,
+ ch39,
+ ch40,
+ ch41,
+ ch42,
+ ch43,
+ ch44,
+ ch45,
+ ch46,
+ ch47,
+ ch48,
+ ch49,
+ ch50,
+ ch51,
+ ch52,
+ ch53,
+ ch54,
+ ch55,
+ ch56,
+ ch57,
+ ch58,
+ ch59,
+ ch60,
+ ch61,
+ ch62,
+ ch63,
+ ch64,
+ ch65,
+ ch66,
+ ch67,
+ ch68,
+ ch69,
+ ch70,
+ ch71,
+ ch72,
+ ch73,
+ ch74,
+ ch75,
+ ch76,
+ ch77,
+ ch78,
+ ch79,
+ ch80,
+ ch81,
+ ch82,
+ ch83,
+ ch84,
+ ch85,
+ ch86,
+ ch87,
+ ch88,
+ ch89,
+ ch90,
+ ch91,
+ ch92,
+ ch93,
+ ch94,
+ ch95,
+ ch96,
+ ch97,
+ ch98,
+ ch99,
+ ch100,
+ ch101,
+ ch102,
+ ch103,
+ ch104,
+ ch105,
+ ch106,
+ ch107,
+ ch108,
+ ch109,
+ ch110,
+ ch111,
+ ch112,
+ ch113,
+ ch114,
+ ch115,
+ ch116,
+ ch117,
+ ch118,
+ ch119,
+ ch120,
+ ch121,
+ ch122,
+ ch123,
+ ch124,
+ ch125,
+ ch126,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ ch160,
+ ch161,
+ ch162,
+ ch163,
+ ch164,
+ ch165,
+ ch166,
+ ch167,
+ ch168,
+ ch169,
+ ch170,
+ ch171,
+ ch172,
+ ch173,
+ ch174,
+ ch175,
+ ch176,
+ ch177,
+ ch178,
+ ch179,
+ ch180,
+ ch181,
+ ch182,
+ ch183,
+ ch184,
+ ch185,
+ ch186,
+ ch187,
+ ch188,
+ ch189,
+ ch190,
+ ch191,
+ ch192,
+ ch193,
+ ch194,
+ ch195,
+ ch196,
+ ch197,
+ ch198,
+ ch199,
+ ch200,
+ ch201,
+ ch202,
+ ch203,
+ ch204,
+ ch205,
+ ch206,
+ ch207,
+ ch208,
+ ch209,
+ ch210,
+ ch211,
+ ch212,
+ ch213,
+ ch214,
+ ch215,
+ ch216,
+ ch217,
+ ch218,
+ ch219,
+ ch220,
+ ch221,
+ ch222,
+ ch223,
+ ch224,
+ ch225,
+ ch226,
+ ch227,
+ ch228,
+ ch229,
+ ch230,
+ ch231,
+ ch232,
+ ch233,
+ ch234,
+ ch235,
+ ch236,
+ ch237,
+ ch238,
+ ch239,
+ ch240,
+ ch241,
+ ch242,
+ ch243,
+ ch244,
+ ch245,
+ ch246,
+ ch247,
+ ch248,
+ ch249,
+ ch250,
+ ch251,
+ ch252,
+ ch253,
+ ch254,
+ ch255,
+ };
+
+ static final BitmapFontRec fontinfo = new BitmapFontRec(
+ "-adobe-helvetica-medium-r-*--10-*-*-*-p-*-iso8859-1",
+ 224,
+ 32,
+ chars
+ );
+
+ public static BitmapFontRec getBitmapFontRec() {
+ return fontinfo;
+ }
+} // end of class glutBitmapHelvetica10
diff --git a/gl4java/utils/glut/fonts/data/glutBitmapHelvetica12.java b/gl4java/utils/glut/fonts/data/glutBitmapHelvetica12.java
new file mode 100644
index 0000000..0a24726
--- /dev/null
+++ b/gl4java/utils/glut/fonts/data/glutBitmapHelvetica12.java
@@ -0,0 +1,1779 @@
+
+// GENERATED FILE -- DO NOT MODIFY
+
+package gl4java.utils.glut.fonts.data;
+
+import gl4java.utils.glut.fonts.*;
+
+
+public class glutBitmapHelvetica12 implements GLUTBitmapFont {
+ private static byte[] zerodata={ 0 };
+// char: 0xff
+
+ static final byte[] ch255data = {
+ (byte) 0xc0,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x30,(byte) 0x50,(byte) 0x50,(byte) 0x48,(byte) 0x88,(byte) 0x88,(byte) 0x0,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch255 = new BitmapCharRec(5,12,-1,3,7,ch255data);
+
+// char: 0xfe
+
+ static final byte[] ch254data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xb0,(byte) 0xc8,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0xc8,(byte) 0xb0,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch254 = new BitmapCharRec(5,12,-1,3,7,ch254data);
+
+// char: 0xfd
+
+ static final byte[] ch253data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x20,(byte) 0x20,(byte) 0x50,(byte) 0x50,(byte) 0x90,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x0,(byte) 0x20,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch253 = new BitmapCharRec(5,13,-1,3,7,ch253data);
+
+// char: 0xfc
+
+ static final byte[] ch252data = {
+ (byte) 0x68,(byte) 0x98,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x0,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch252 = new BitmapCharRec(5,9,-1,0,7,ch252data);
+
+// char: 0xfb
+
+ static final byte[] ch251data = {
+ (byte) 0x68,(byte) 0x98,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x0,(byte) 0x50,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch251 = new BitmapCharRec(5,10,-1,0,7,ch251data);
+
+// char: 0xfa
+
+ static final byte[] ch250data = {
+ (byte) 0x68,(byte) 0x98,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x0,(byte) 0x20,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch250 = new BitmapCharRec(5,10,-1,0,7,ch250data);
+
+// char: 0xf9
+
+ static final byte[] ch249data = {
+ (byte) 0x68,(byte) 0x98,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x0,(byte) 0x20,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch249 = new BitmapCharRec(5,10,-1,0,7,ch249data);
+
+// char: 0xf8
+
+ static final byte[] ch248data = {
+ (byte) 0xb8,(byte) 0x44,(byte) 0x64,(byte) 0x54,(byte) 0x4c,(byte) 0x44,(byte) 0x3a,
+ };
+
+ static final BitmapCharRec ch248 = new BitmapCharRec(7,7,0,0,7,ch248data);
+
+// char: 0xf7
+
+ static final byte[] ch247data = {
+ (byte) 0x20,(byte) 0x0,(byte) 0xf8,(byte) 0x0,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch247 = new BitmapCharRec(5,5,-1,-1,7,ch247data);
+
+// char: 0xf6
+
+ static final byte[] ch246data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x70,(byte) 0x0,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch246 = new BitmapCharRec(5,9,-1,0,7,ch246data);
+
+// char: 0xf5
+
+ static final byte[] ch245data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x70,(byte) 0x0,(byte) 0x50,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch245 = new BitmapCharRec(5,10,-1,0,7,ch245data);
+
+// char: 0xf4
+
+ static final byte[] ch244data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x70,(byte) 0x0,(byte) 0x50,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch244 = new BitmapCharRec(5,10,-1,0,7,ch244data);
+
+// char: 0xf3
+
+ static final byte[] ch243data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x70,(byte) 0x0,(byte) 0x20,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch243 = new BitmapCharRec(5,10,-1,0,7,ch243data);
+
+// char: 0xf2
+
+ static final byte[] ch242data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x70,(byte) 0x0,(byte) 0x20,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch242 = new BitmapCharRec(5,10,-1,0,7,ch242data);
+
+// char: 0xf1
+
+ static final byte[] ch241data = {
+ (byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0xc8,(byte) 0xb0,(byte) 0x0,(byte) 0x50,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch241 = new BitmapCharRec(5,10,-1,0,7,ch241data);
+
+// char: 0xf0
+
+ static final byte[] ch240data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x78,(byte) 0x8,(byte) 0x50,(byte) 0x30,(byte) 0x68,
+ };
+
+ static final BitmapCharRec ch240 = new BitmapCharRec(5,10,-1,0,7,ch240data);
+
+// char: 0xef
+
+ static final byte[] ch239data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x0,(byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch239 = new BitmapCharRec(3,9,0,0,3,ch239data);
+
+// char: 0xee
+
+ static final byte[] ch238data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x0,(byte) 0xa0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch238 = new BitmapCharRec(3,10,0,0,3,ch238data);
+
+// char: 0xed
+
+ static final byte[] ch237data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x0,(byte) 0x80,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch237 = new BitmapCharRec(2,10,-1,0,3,ch237data);
+
+// char: 0xec
+
+ static final byte[] ch236data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x0,(byte) 0x40,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch236 = new BitmapCharRec(2,10,0,0,3,ch236data);
+
+// char: 0xeb
+
+ static final byte[] ch235data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x80,(byte) 0xf8,(byte) 0x88,(byte) 0x88,(byte) 0x70,(byte) 0x0,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch235 = new BitmapCharRec(5,9,-1,0,7,ch235data);
+
+// char: 0xea
+
+ static final byte[] ch234data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x80,(byte) 0xf8,(byte) 0x88,(byte) 0x88,(byte) 0x70,(byte) 0x0,(byte) 0x50,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch234 = new BitmapCharRec(5,10,-1,0,7,ch234data);
+
+// char: 0xe9
+
+ static final byte[] ch233data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x80,(byte) 0xf8,(byte) 0x88,(byte) 0x88,(byte) 0x70,(byte) 0x0,(byte) 0x20,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch233 = new BitmapCharRec(5,10,-1,0,7,ch233data);
+
+// char: 0xe8
+
+ static final byte[] ch232data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x80,(byte) 0xf8,(byte) 0x88,(byte) 0x88,(byte) 0x70,(byte) 0x0,(byte) 0x20,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch232 = new BitmapCharRec(5,10,-1,0,7,ch232data);
+
+// char: 0xe7
+
+ static final byte[] ch231data = {
+ (byte) 0x60,(byte) 0x10,(byte) 0x20,(byte) 0x70,(byte) 0x88,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch231 = new BitmapCharRec(5,10,-1,3,7,ch231data);
+
+// char: 0xe6
+
+ static final byte[] ch230data = {
+ (byte) 0x77,(byte) 0x0,(byte) 0x88,(byte) 0x80,(byte) 0x88,(byte) 0x0,(byte) 0x7f,(byte) 0x80,(byte) 0x8,(byte) 0x80,(byte) 0x88,(byte) 0x80,(byte) 0x77,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch230 = new BitmapCharRec(9,7,-1,0,11,ch230data);
+
+// char: 0xe5
+
+ static final byte[] ch229data = {
+ (byte) 0x74,(byte) 0x88,(byte) 0x88,(byte) 0x78,(byte) 0x8,(byte) 0x88,(byte) 0x70,(byte) 0x30,(byte) 0x48,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch229 = new BitmapCharRec(6,10,-1,0,7,ch229data);
+
+// char: 0xe4
+
+ static final byte[] ch228data = {
+ (byte) 0x74,(byte) 0x88,(byte) 0x88,(byte) 0x78,(byte) 0x8,(byte) 0x88,(byte) 0x70,(byte) 0x0,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch228 = new BitmapCharRec(6,9,-1,0,7,ch228data);
+
+// char: 0xe3
+
+ static final byte[] ch227data = {
+ (byte) 0x74,(byte) 0x88,(byte) 0x88,(byte) 0x78,(byte) 0x8,(byte) 0x88,(byte) 0x70,(byte) 0x0,(byte) 0x50,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch227 = new BitmapCharRec(6,10,-1,0,7,ch227data);
+
+// char: 0xe2
+
+ static final byte[] ch226data = {
+ (byte) 0x74,(byte) 0x88,(byte) 0x88,(byte) 0x78,(byte) 0x8,(byte) 0x88,(byte) 0x70,(byte) 0x0,(byte) 0x50,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch226 = new BitmapCharRec(6,10,-1,0,7,ch226data);
+
+// char: 0xe1
+
+ static final byte[] ch225data = {
+ (byte) 0x74,(byte) 0x88,(byte) 0x88,(byte) 0x78,(byte) 0x8,(byte) 0x88,(byte) 0x70,(byte) 0x0,(byte) 0x20,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch225 = new BitmapCharRec(6,10,-1,0,7,ch225data);
+
+// char: 0xe0
+
+ static final byte[] ch224data = {
+ (byte) 0x74,(byte) 0x88,(byte) 0x88,(byte) 0x78,(byte) 0x8,(byte) 0x88,(byte) 0x70,(byte) 0x0,(byte) 0x10,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch224 = new BitmapCharRec(6,10,-1,0,7,ch224data);
+
+// char: 0xdf
+
+ static final byte[] ch223data = {
+ (byte) 0xb0,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0xb0,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch223 = new BitmapCharRec(5,9,-1,0,7,ch223data);
+
+// char: 0xde
+
+ static final byte[] ch222data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0xf8,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0xf8,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch222 = new BitmapCharRec(6,9,-1,0,8,ch222data);
+
+// char: 0xdd
+
+ static final byte[] ch221data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x28,(byte) 0x44,(byte) 0x44,(byte) 0x82,(byte) 0x82,(byte) 0x0,(byte) 0x10,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch221 = new BitmapCharRec(7,12,-1,0,9,ch221data);
+
+// char: 0xdc
+
+ static final byte[] ch220data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x0,(byte) 0x48,
+ };
+
+ static final BitmapCharRec ch220 = new BitmapCharRec(6,11,-1,0,8,ch220data);
+
+// char: 0xdb
+
+ static final byte[] ch219data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x0,(byte) 0x28,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch219 = new BitmapCharRec(6,12,-1,0,8,ch219data);
+
+// char: 0xda
+
+ static final byte[] ch218data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x0,(byte) 0x10,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch218 = new BitmapCharRec(6,12,-1,0,8,ch218data);
+
+// char: 0xd9
+
+ static final byte[] ch217data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x0,(byte) 0x10,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch217 = new BitmapCharRec(6,12,-1,0,8,ch217data);
+
+// char: 0xd8
+
+ static final byte[] ch216data = {
+ (byte) 0x80,(byte) 0x0,(byte) 0x5e,(byte) 0x0,(byte) 0x21,(byte) 0x0,(byte) 0x50,(byte) 0x80,(byte) 0x48,(byte) 0x80,(byte) 0x44,(byte) 0x80,(byte) 0x44,(byte) 0x80,(byte) 0x42,(byte) 0x80,
+(byte) 0x21,(byte) 0x0,(byte) 0x1e,(byte) 0x80,(byte) 0x0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch216 = new BitmapCharRec(10,11,0,1,10,ch216data);
+
+// char: 0xd7
+
+ static final byte[] ch215data = {
+ (byte) 0x88,(byte) 0x50,(byte) 0x20,(byte) 0x50,(byte) 0x88,
+ };
+
+ static final BitmapCharRec ch215 = new BitmapCharRec(5,5,-1,-1,7,ch215data);
+
+// char: 0xd6
+
+ static final byte[] ch214data = {
+ (byte) 0x3c,(byte) 0x42,(byte) 0x81,(byte) 0x81,(byte) 0x81,(byte) 0x81,(byte) 0x81,(byte) 0x42,(byte) 0x3c,(byte) 0x0,(byte) 0x24,
+ };
+
+ static final BitmapCharRec ch214 = new BitmapCharRec(8,11,-1,0,10,ch214data);
+
+// char: 0xd5
+
+ static final byte[] ch213data = {
+ (byte) 0x3c,(byte) 0x42,(byte) 0x81,(byte) 0x81,(byte) 0x81,(byte) 0x81,(byte) 0x81,(byte) 0x42,(byte) 0x3c,(byte) 0x0,(byte) 0x28,(byte) 0x14,
+ };
+
+ static final BitmapCharRec ch213 = new BitmapCharRec(8,12,-1,0,10,ch213data);
+
+// char: 0xd4
+
+ static final byte[] ch212data = {
+ (byte) 0x3c,(byte) 0x42,(byte) 0x81,(byte) 0x81,(byte) 0x81,(byte) 0x81,(byte) 0x81,(byte) 0x42,(byte) 0x3c,(byte) 0x0,(byte) 0x14,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch212 = new BitmapCharRec(8,12,-1,0,10,ch212data);
+
+// char: 0xd3
+
+ static final byte[] ch211data = {
+ (byte) 0x3c,(byte) 0x42,(byte) 0x81,(byte) 0x81,(byte) 0x81,(byte) 0x81,(byte) 0x81,(byte) 0x42,(byte) 0x3c,(byte) 0x0,(byte) 0x8,(byte) 0x4,
+ };
+
+ static final BitmapCharRec ch211 = new BitmapCharRec(8,12,-1,0,10,ch211data);
+
+// char: 0xd2
+
+ static final byte[] ch210data = {
+ (byte) 0x3c,(byte) 0x42,(byte) 0x81,(byte) 0x81,(byte) 0x81,(byte) 0x81,(byte) 0x81,(byte) 0x42,(byte) 0x3c,(byte) 0x0,(byte) 0x8,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch210 = new BitmapCharRec(8,12,-1,0,10,ch210data);
+
+// char: 0xd1
+
+ static final byte[] ch209data = {
+ (byte) 0x82,(byte) 0x86,(byte) 0x8a,(byte) 0x8a,(byte) 0x92,(byte) 0xa2,(byte) 0xa2,(byte) 0xc2,(byte) 0x82,(byte) 0x0,(byte) 0x28,(byte) 0x14,
+ };
+
+ static final BitmapCharRec ch209 = new BitmapCharRec(7,12,-1,0,9,ch209data);
+
+// char: 0xd0
+
+ static final byte[] ch208data = {
+ (byte) 0x7c,(byte) 0x42,(byte) 0x41,(byte) 0x41,(byte) 0xf1,(byte) 0x41,(byte) 0x41,(byte) 0x42,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch208 = new BitmapCharRec(8,9,0,0,9,ch208data);
+
+// char: 0xcf
+
+ static final byte[] ch207data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x0,(byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch207 = new BitmapCharRec(3,11,0,0,3,ch207data);
+
+// char: 0xce
+
+ static final byte[] ch206data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x0,(byte) 0xa0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch206 = new BitmapCharRec(3,12,0,0,3,ch206data);
+
+// char: 0xcd
+
+ static final byte[] ch205data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x0,(byte) 0x80,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch205 = new BitmapCharRec(2,12,-1,0,3,ch205data);
+
+// char: 0xcc
+
+ static final byte[] ch204data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x0,(byte) 0x40,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch204 = new BitmapCharRec(2,12,0,0,3,ch204data);
+
+// char: 0xcb
+
+ static final byte[] ch203data = {
+ (byte) 0xfc,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xfc,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xfc,(byte) 0x0,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch203 = new BitmapCharRec(6,11,-1,0,8,ch203data);
+
+// char: 0xca
+
+ static final byte[] ch202data = {
+ (byte) 0xfc,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xfc,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xfc,(byte) 0x0,(byte) 0x28,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch202 = new BitmapCharRec(6,12,-1,0,8,ch202data);
+
+// char: 0xc9
+
+ static final byte[] ch201data = {
+ (byte) 0xfc,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xfc,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xfc,(byte) 0x0,(byte) 0x10,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch201 = new BitmapCharRec(6,12,-1,0,8,ch201data);
+
+// char: 0xc8
+
+ static final byte[] ch200data = {
+ (byte) 0xfc,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xfc,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xfc,(byte) 0x0,(byte) 0x10,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch200 = new BitmapCharRec(6,12,-1,0,8,ch200data);
+
+// char: 0xc7
+
+ static final byte[] ch199data = {
+ (byte) 0x30,(byte) 0x8,(byte) 0x8,(byte) 0x3c,(byte) 0x42,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x42,(byte) 0x3c,
+ };
+
+ static final BitmapCharRec ch199 = new BitmapCharRec(7,12,-1,3,9,ch199data);
+
+// char: 0xc6
+
+ static final byte[] ch198data = {
+ (byte) 0x8f,(byte) 0x80,(byte) 0x88,(byte) 0x0,(byte) 0x88,(byte) 0x0,(byte) 0x78,(byte) 0x0,(byte) 0x4f,(byte) 0x80,(byte) 0x48,(byte) 0x0,(byte) 0x28,(byte) 0x0,(byte) 0x28,(byte) 0x0,
+(byte) 0x1f,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch198 = new BitmapCharRec(9,9,-1,0,11,ch198data);
+
+// char: 0xc5
+
+ static final byte[] ch197data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x44,(byte) 0x44,(byte) 0x28,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x28,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch197 = new BitmapCharRec(7,12,-1,0,9,ch197data);
+
+// char: 0xc4
+
+ static final byte[] ch196data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x44,(byte) 0x44,(byte) 0x28,(byte) 0x10,(byte) 0x10,(byte) 0x0,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch196 = new BitmapCharRec(7,11,-1,0,9,ch196data);
+
+// char: 0xc3
+
+ static final byte[] ch195data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x44,(byte) 0x44,(byte) 0x28,(byte) 0x10,(byte) 0x10,(byte) 0x0,(byte) 0x28,(byte) 0x14,
+ };
+
+ static final BitmapCharRec ch195 = new BitmapCharRec(7,12,-1,0,9,ch195data);
+
+// char: 0xc2
+
+ static final byte[] ch194data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x44,(byte) 0x44,(byte) 0x28,(byte) 0x10,(byte) 0x10,(byte) 0x0,(byte) 0x28,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch194 = new BitmapCharRec(7,12,-1,0,9,ch194data);
+
+// char: 0xc1
+
+ static final byte[] ch193data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x44,(byte) 0x44,(byte) 0x28,(byte) 0x10,(byte) 0x10,(byte) 0x0,(byte) 0x10,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch193 = new BitmapCharRec(7,12,-1,0,9,ch193data);
+
+// char: 0xc0
+
+ static final byte[] ch192data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x44,(byte) 0x44,(byte) 0x28,(byte) 0x10,(byte) 0x10,(byte) 0x0,(byte) 0x10,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch192 = new BitmapCharRec(7,12,-1,0,9,ch192data);
+
+// char: 0xbf
+
+ static final byte[] ch191data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0x20,(byte) 0x0,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch191 = new BitmapCharRec(5,9,-1,3,7,ch191data);
+
+// char: 0xbe
+
+ static final byte[] ch190data = {
+ (byte) 0x21,(byte) 0x0,(byte) 0x17,(byte) 0x80,(byte) 0x15,(byte) 0x0,(byte) 0xb,(byte) 0x0,(byte) 0xc9,(byte) 0x0,(byte) 0x24,(byte) 0x0,(byte) 0x44,(byte) 0x0,(byte) 0x22,(byte) 0x0,
+(byte) 0xe1,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch190 = new BitmapCharRec(9,9,0,0,10,ch190data);
+
+// char: 0xbd
+
+ static final byte[] ch189data = {
+ (byte) 0x47,(byte) 0x80,(byte) 0x22,(byte) 0x0,(byte) 0x11,(byte) 0x0,(byte) 0x14,(byte) 0x80,(byte) 0x4b,(byte) 0x0,(byte) 0x48,(byte) 0x0,(byte) 0x44,(byte) 0x0,(byte) 0xc2,(byte) 0x0,
+(byte) 0x41,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch189 = new BitmapCharRec(9,9,0,0,10,ch189data);
+
+// char: 0xbc
+
+ static final byte[] ch188data = {
+ (byte) 0x41,(byte) 0x0,(byte) 0x27,(byte) 0x80,(byte) 0x15,(byte) 0x0,(byte) 0x13,(byte) 0x0,(byte) 0x49,(byte) 0x0,(byte) 0x44,(byte) 0x0,(byte) 0x44,(byte) 0x0,(byte) 0xc2,(byte) 0x0,
+(byte) 0x41,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch188 = new BitmapCharRec(9,9,0,0,10,ch188data);
+
+// char: 0xbb
+
+ static final byte[] ch187data = {
+ (byte) 0xa0,(byte) 0x50,(byte) 0x28,(byte) 0x50,(byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch187 = new BitmapCharRec(5,5,-1,-1,7,ch187data);
+
+// char: 0xba
+
+ static final byte[] ch186data = {
+ (byte) 0xe0,(byte) 0x0,(byte) 0xe0,(byte) 0xa0,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch186 = new BitmapCharRec(3,5,-1,-4,5,ch186data);
+
+// char: 0xb9
+
+ static final byte[] ch185data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xc0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch185 = new BitmapCharRec(2,5,-1,-3,4,ch185data);
+
+// char: 0xb8
+
+ static final byte[] ch184data = {
+ (byte) 0xc0,(byte) 0x20,(byte) 0x20,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch184 = new BitmapCharRec(3,4,0,3,3,ch184data);
+
+// char: 0xb7
+
+ static final byte[] ch183data = {
+ (byte) 0x80,
+ };
+
+ static final BitmapCharRec ch183 = new BitmapCharRec(1,1,-1,-3,3,ch183data);
+
+// char: 0xb6
+
+ static final byte[] ch182data = {
+ (byte) 0x28,(byte) 0x28,(byte) 0x28,(byte) 0x28,(byte) 0x28,(byte) 0x28,(byte) 0x68,(byte) 0xe8,(byte) 0xe8,(byte) 0xe8,(byte) 0x68,(byte) 0x3c,
+ };
+
+ static final BitmapCharRec ch182 = new BitmapCharRec(6,12,0,3,7,ch182data);
+
+// char: 0xb5
+
+ static final byte[] ch181data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xe8,(byte) 0x98,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,
+ };
+
+ static final BitmapCharRec ch181 = new BitmapCharRec(5,10,-1,3,7,ch181data);
+
+// char: 0xb4
+
+ static final byte[] ch180data = {
+ (byte) 0x80,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch180 = new BitmapCharRec(2,2,0,-8,2,ch180data);
+
+// char: 0xb3
+
+ static final byte[] ch179data = {
+ (byte) 0xc0,(byte) 0x20,(byte) 0x40,(byte) 0x20,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch179 = new BitmapCharRec(3,5,0,-3,4,ch179data);
+
+// char: 0xb2
+
+ static final byte[] ch178data = {
+ (byte) 0xf0,(byte) 0x40,(byte) 0x20,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch178 = new BitmapCharRec(4,5,0,-3,4,ch178data);
+
+// char: 0xb1
+
+ static final byte[] ch177data = {
+ (byte) 0xf8,(byte) 0x0,(byte) 0x20,(byte) 0x20,(byte) 0xf8,(byte) 0x20,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch177 = new BitmapCharRec(5,7,-1,0,7,ch177data);
+
+// char: 0xb0
+
+ static final byte[] ch176data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch176 = new BitmapCharRec(4,4,0,-4,5,ch176data);
+
+// char: 0xaf
+
+ static final byte[] ch175data = {
+ (byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch175 = new BitmapCharRec(4,1,0,-8,4,ch175data);
+
+// char: 0xae
+
+ static final byte[] ch174data = {
+ (byte) 0x3e,(byte) 0x0,(byte) 0x41,(byte) 0x0,(byte) 0x94,(byte) 0x80,(byte) 0x94,(byte) 0x80,(byte) 0x98,(byte) 0x80,(byte) 0x94,(byte) 0x80,(byte) 0x9c,(byte) 0x80,(byte) 0x41,(byte) 0x0,
+(byte) 0x3e,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch174 = new BitmapCharRec(9,9,-1,0,11,ch174data);
+
+// char: 0xad
+
+ static final byte[] ch173data = {
+ (byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch173 = new BitmapCharRec(4,1,0,-3,5,ch173data);
+
+// char: 0xac
+
+ static final byte[] ch172data = {
+ (byte) 0x4,(byte) 0x4,(byte) 0x4,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch172 = new BitmapCharRec(6,4,-1,-2,8,ch172data);
+
+// char: 0xab
+
+ static final byte[] ch171data = {
+ (byte) 0x28,(byte) 0x50,(byte) 0xa0,(byte) 0x50,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch171 = new BitmapCharRec(5,5,-1,-1,7,ch171data);
+
+// char: 0xaa
+
+ static final byte[] ch170data = {
+ (byte) 0xe0,(byte) 0x0,(byte) 0xa0,(byte) 0x20,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch170 = new BitmapCharRec(3,5,-1,-4,5,ch170data);
+
+// char: 0xa9
+
+ static final byte[] ch169data = {
+ (byte) 0x3e,(byte) 0x0,(byte) 0x41,(byte) 0x0,(byte) 0x9c,(byte) 0x80,(byte) 0xa2,(byte) 0x80,(byte) 0xa0,(byte) 0x80,(byte) 0xa2,(byte) 0x80,(byte) 0x9c,(byte) 0x80,(byte) 0x41,(byte) 0x0,
+(byte) 0x3e,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch169 = new BitmapCharRec(9,9,-1,0,11,ch169data);
+
+// char: 0xa8
+
+ static final byte[] ch168data = {
+ (byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch168 = new BitmapCharRec(3,1,0,-8,3,ch168data);
+
+// char: 0xa7
+
+ static final byte[] ch167data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x8,(byte) 0x30,(byte) 0x48,(byte) 0x88,(byte) 0x88,(byte) 0x90,(byte) 0x60,(byte) 0x80,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch167 = new BitmapCharRec(5,12,0,3,6,ch167data);
+
+// char: 0xa6
+
+ static final byte[] ch166data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch166 = new BitmapCharRec(1,11,-1,2,3,ch166data);
+
+// char: 0xa5
+
+ static final byte[] ch165data = {
+ (byte) 0x20,(byte) 0x20,(byte) 0xf8,(byte) 0x20,(byte) 0xf8,(byte) 0x20,(byte) 0x50,(byte) 0x88,(byte) 0x88,
+ };
+
+ static final BitmapCharRec ch165 = new BitmapCharRec(5,9,-1,0,7,ch165data);
+
+// char: 0xa4
+
+ static final byte[] ch164data = {
+ (byte) 0x84,(byte) 0x78,(byte) 0x48,(byte) 0x48,(byte) 0x78,(byte) 0x84,
+ };
+
+ static final BitmapCharRec ch164 = new BitmapCharRec(6,6,0,-1,7,ch164data);
+
+// char: 0xa3
+
+ static final byte[] ch163data = {
+ (byte) 0xb0,(byte) 0x48,(byte) 0x20,(byte) 0x20,(byte) 0xf0,(byte) 0x40,(byte) 0x40,(byte) 0x48,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch163 = new BitmapCharRec(5,9,-1,0,7,ch163data);
+
+// char: 0xa2
+
+ static final byte[] ch162data = {
+ (byte) 0x40,(byte) 0x70,(byte) 0xc8,(byte) 0xa0,(byte) 0xa0,(byte) 0xa0,(byte) 0xa8,(byte) 0x70,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch162 = new BitmapCharRec(5,9,-1,1,7,ch162data);
+
+// char: 0xa1
+
+ static final byte[] ch161data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x0,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch161 = new BitmapCharRec(1,10,-1,3,3,ch161data);
+
+// char: 0xa0
+
+ static final BitmapCharRec ch160 = new BitmapCharRec(0,0,0,0,4,zerodata);
+
+// char: 0x7e '~'
+
+ static final byte[] ch126data = {
+ (byte) 0x98,(byte) 0x64,
+ };
+
+ static final BitmapCharRec ch126 = new BitmapCharRec(6,2,0,-3,7,ch126data);
+
+// char: 0x7d '}'
+
+ static final byte[] ch125data = {
+ (byte) 0xc0,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x10,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch125 = new BitmapCharRec(4,12,0,3,4,ch125data);
+
+// char: 0x7c '|'
+
+ static final byte[] ch124data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch124 = new BitmapCharRec(1,12,-1,3,3,ch124data);
+
+// char: 0x7b '{'
+
+ static final byte[] ch123data = {
+ (byte) 0x30,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch123 = new BitmapCharRec(4,12,0,3,4,ch123data);
+
+// char: 0x7a 'z'
+
+ static final byte[] ch122data = {
+ (byte) 0xf0,(byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0x10,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch122 = new BitmapCharRec(4,7,-1,0,6,ch122data);
+
+// char: 0x79 'y'
+
+ static final byte[] ch121data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x20,(byte) 0x20,(byte) 0x50,(byte) 0x50,(byte) 0x90,(byte) 0x88,(byte) 0x88,(byte) 0x88,
+ };
+
+ static final BitmapCharRec ch121 = new BitmapCharRec(5,10,-1,3,7,ch121data);
+
+// char: 0x78 'x'
+
+ static final byte[] ch120data = {
+ (byte) 0x84,(byte) 0x84,(byte) 0x48,(byte) 0x30,(byte) 0x30,(byte) 0x48,(byte) 0x84,
+ };
+
+ static final BitmapCharRec ch120 = new BitmapCharRec(6,7,0,0,6,ch120data);
+
+// char: 0x77 'w'
+
+ static final byte[] ch119data = {
+ (byte) 0x22,(byte) 0x0,(byte) 0x22,(byte) 0x0,(byte) 0x55,(byte) 0x0,(byte) 0x49,(byte) 0x0,(byte) 0x49,(byte) 0x0,(byte) 0x88,(byte) 0x80,(byte) 0x88,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch119 = new BitmapCharRec(9,7,0,0,9,ch119data);
+
+// char: 0x76 'v'
+
+ static final byte[] ch118data = {
+ (byte) 0x20,(byte) 0x20,(byte) 0x50,(byte) 0x50,(byte) 0x88,(byte) 0x88,(byte) 0x88,
+ };
+
+ static final BitmapCharRec ch118 = new BitmapCharRec(5,7,-1,0,7,ch118data);
+
+// char: 0x75 'u'
+
+ static final byte[] ch117data = {
+ (byte) 0x68,(byte) 0x98,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,
+ };
+
+ static final BitmapCharRec ch117 = new BitmapCharRec(5,7,-1,0,7,ch117data);
+
+// char: 0x74 't'
+
+ static final byte[] ch116data = {
+ (byte) 0x60,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xe0,(byte) 0x40,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch116 = new BitmapCharRec(3,9,0,0,3,ch116data);
+
+// char: 0x73 's'
+
+ static final byte[] ch115data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x10,(byte) 0x60,(byte) 0x80,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch115 = new BitmapCharRec(4,7,-1,0,6,ch115data);
+
+// char: 0x72 'r'
+
+ static final byte[] ch114data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xc0,(byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch114 = new BitmapCharRec(3,7,-1,0,4,ch114data);
+
+// char: 0x71 'q'
+
+ static final byte[] ch113data = {
+ (byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x68,(byte) 0x98,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x98,(byte) 0x68,
+ };
+
+ static final BitmapCharRec ch113 = new BitmapCharRec(5,10,-1,3,7,ch113data);
+
+// char: 0x70 'p'
+
+ static final byte[] ch112data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xb0,(byte) 0xc8,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0xc8,(byte) 0xb0,
+ };
+
+ static final BitmapCharRec ch112 = new BitmapCharRec(5,10,-1,3,7,ch112data);
+
+// char: 0x6f 'o'
+
+ static final byte[] ch111data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch111 = new BitmapCharRec(5,7,-1,0,7,ch111data);
+
+// char: 0x6e 'n'
+
+ static final byte[] ch110data = {
+ (byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0xc8,(byte) 0xb0,
+ };
+
+ static final BitmapCharRec ch110 = new BitmapCharRec(5,7,-1,0,7,ch110data);
+
+// char: 0x6d 'm'
+
+ static final byte[] ch109data = {
+ (byte) 0x92,(byte) 0x92,(byte) 0x92,(byte) 0x92,(byte) 0x92,(byte) 0xda,(byte) 0xa4,
+ };
+
+ static final BitmapCharRec ch109 = new BitmapCharRec(7,7,-1,0,9,ch109data);
+
+// char: 0x6c 'l'
+
+ static final byte[] ch108data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch108 = new BitmapCharRec(1,9,-1,0,3,ch108data);
+
+// char: 0x6b 'k'
+
+ static final byte[] ch107data = {
+ (byte) 0x88,(byte) 0x90,(byte) 0xa0,(byte) 0xc0,(byte) 0xc0,(byte) 0xa0,(byte) 0x90,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch107 = new BitmapCharRec(5,9,-1,0,6,ch107data);
+
+// char: 0x6a 'j'
+
+ static final byte[] ch106data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch106 = new BitmapCharRec(2,12,0,3,3,ch106data);
+
+// char: 0x69 'i'
+
+ static final byte[] ch105data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x0,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch105 = new BitmapCharRec(1,9,-1,0,3,ch105data);
+
+// char: 0x68 'h'
+
+ static final byte[] ch104data = {
+ (byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0xc8,(byte) 0xb0,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch104 = new BitmapCharRec(5,9,-1,0,7,ch104data);
+
+// char: 0x67 'g'
+
+ static final byte[] ch103data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x8,(byte) 0x68,(byte) 0x98,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x98,(byte) 0x68,
+ };
+
+ static final BitmapCharRec ch103 = new BitmapCharRec(5,10,-1,3,7,ch103data);
+
+// char: 0x66 'f'
+
+ static final byte[] ch102data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xe0,(byte) 0x40,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch102 = new BitmapCharRec(4,9,0,0,3,ch102data);
+
+// char: 0x65 'e'
+
+ static final byte[] ch101data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x80,(byte) 0xf8,(byte) 0x88,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch101 = new BitmapCharRec(5,7,-1,0,7,ch101data);
+
+// char: 0x64 'd'
+
+ static final byte[] ch100data = {
+ (byte) 0x68,(byte) 0x98,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x98,(byte) 0x68,(byte) 0x8,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch100 = new BitmapCharRec(5,9,-1,0,7,ch100data);
+
+// char: 0x63 'c'
+
+ static final byte[] ch99data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch99 = new BitmapCharRec(5,7,-1,0,7,ch99data);
+
+// char: 0x62 'b'
+
+ static final byte[] ch98data = {
+ (byte) 0xb0,(byte) 0xc8,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0xc8,(byte) 0xb0,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch98 = new BitmapCharRec(5,9,-1,0,7,ch98data);
+
+// char: 0x61 'a'
+
+ static final byte[] ch97data = {
+ (byte) 0x74,(byte) 0x88,(byte) 0x88,(byte) 0x78,(byte) 0x8,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch97 = new BitmapCharRec(6,7,-1,0,7,ch97data);
+
+// char: 0x60 '`'
+
+ static final byte[] ch96data = {
+ (byte) 0xc0,(byte) 0x80,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch96 = new BitmapCharRec(2,3,0,-6,3,ch96data);
+
+// char: 0x5f '_'
+
+ static final byte[] ch95data = {
+ (byte) 0xfe,
+ };
+
+ static final BitmapCharRec ch95 = new BitmapCharRec(7,1,0,2,7,ch95data);
+
+// char: 0x5e '^'
+
+ static final byte[] ch94data = {
+ (byte) 0x88,(byte) 0x50,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch94 = new BitmapCharRec(5,3,0,-5,6,ch94data);
+
+// char: 0x5d ']'
+
+ static final byte[] ch93data = {
+ (byte) 0xc0,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch93 = new BitmapCharRec(2,12,0,3,3,ch93data);
+
+// char: 0x5c '\'
+
+ static final byte[] ch92data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x40,(byte) 0x40,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch92 = new BitmapCharRec(4,9,0,0,4,ch92data);
+
+// char: 0x5b '['
+
+ static final byte[] ch91data = {
+ (byte) 0xc0,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch91 = new BitmapCharRec(2,12,-1,3,3,ch91data);
+
+// char: 0x5a 'Z'
+
+ static final byte[] ch90data = {
+ (byte) 0xfe,(byte) 0x80,(byte) 0x40,(byte) 0x20,(byte) 0x10,(byte) 0x8,(byte) 0x4,(byte) 0x2,(byte) 0xfe,
+ };
+
+ static final BitmapCharRec ch90 = new BitmapCharRec(7,9,-1,0,9,ch90data);
+
+// char: 0x59 'Y'
+
+ static final byte[] ch89data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x28,(byte) 0x44,(byte) 0x44,(byte) 0x82,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch89 = new BitmapCharRec(7,9,-1,0,9,ch89data);
+
+// char: 0x58 'X'
+
+ static final byte[] ch88data = {
+ (byte) 0x82,(byte) 0x44,(byte) 0x44,(byte) 0x28,(byte) 0x10,(byte) 0x28,(byte) 0x44,(byte) 0x44,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch88 = new BitmapCharRec(7,9,-1,0,9,ch88data);
+
+// char: 0x57 'W'
+
+ static final byte[] ch87data = {
+ (byte) 0x22,(byte) 0x0,(byte) 0x22,(byte) 0x0,(byte) 0x22,(byte) 0x0,(byte) 0x55,(byte) 0x0,(byte) 0x55,(byte) 0x0,(byte) 0x49,(byte) 0x0,(byte) 0x88,(byte) 0x80,(byte) 0x88,(byte) 0x80,
+(byte) 0x88,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch87 = new BitmapCharRec(9,9,-1,0,11,ch87data);
+
+// char: 0x56 'V'
+
+ static final byte[] ch86data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0x28,(byte) 0x28,(byte) 0x44,(byte) 0x44,(byte) 0x44,(byte) 0x82,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch86 = new BitmapCharRec(7,9,-1,0,9,ch86data);
+
+// char: 0x55 'U'
+
+ static final byte[] ch85data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x84,
+ };
+
+ static final BitmapCharRec ch85 = new BitmapCharRec(6,9,-1,0,8,ch85data);
+
+// char: 0x54 'T'
+
+ static final byte[] ch84data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0xfe,
+ };
+
+ static final BitmapCharRec ch84 = new BitmapCharRec(7,9,0,0,7,ch84data);
+
+// char: 0x53 'S'
+
+ static final byte[] ch83data = {
+ (byte) 0x78,(byte) 0x84,(byte) 0x84,(byte) 0x4,(byte) 0x18,(byte) 0x60,(byte) 0x80,(byte) 0x84,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch83 = new BitmapCharRec(6,9,-1,0,8,ch83data);
+
+// char: 0x52 'R'
+
+ static final byte[] ch82data = {
+ (byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0x88,(byte) 0xf8,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch82 = new BitmapCharRec(6,9,-1,0,8,ch82data);
+
+// char: 0x51 'Q'
+
+ static final byte[] ch81data = {
+ (byte) 0x3d,(byte) 0x42,(byte) 0x85,(byte) 0x89,(byte) 0x81,(byte) 0x81,(byte) 0x81,(byte) 0x42,(byte) 0x3c,
+ };
+
+ static final BitmapCharRec ch81 = new BitmapCharRec(8,9,-1,0,10,ch81data);
+
+// char: 0x50 'P'
+
+ static final byte[] ch80data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xf8,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch80 = new BitmapCharRec(6,9,-1,0,8,ch80data);
+
+// char: 0x4f 'O'
+
+ static final byte[] ch79data = {
+ (byte) 0x3c,(byte) 0x42,(byte) 0x81,(byte) 0x81,(byte) 0x81,(byte) 0x81,(byte) 0x81,(byte) 0x42,(byte) 0x3c,
+ };
+
+ static final BitmapCharRec ch79 = new BitmapCharRec(8,9,-1,0,10,ch79data);
+
+// char: 0x4e 'N'
+
+ static final byte[] ch78data = {
+ (byte) 0x82,(byte) 0x86,(byte) 0x8a,(byte) 0x8a,(byte) 0x92,(byte) 0xa2,(byte) 0xa2,(byte) 0xc2,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch78 = new BitmapCharRec(7,9,-1,0,9,ch78data);
+
+// char: 0x4d 'M'
+
+ static final byte[] ch77data = {
+ (byte) 0x88,(byte) 0x80,(byte) 0x88,(byte) 0x80,(byte) 0x94,(byte) 0x80,(byte) 0x94,(byte) 0x80,(byte) 0xa2,(byte) 0x80,(byte) 0xa2,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,
+(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch77 = new BitmapCharRec(9,9,-1,0,11,ch77data);
+
+// char: 0x4c 'L'
+
+ static final byte[] ch76data = {
+ (byte) 0xf8,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch76 = new BitmapCharRec(5,9,-1,0,7,ch76data);
+
+// char: 0x4b 'K'
+
+ static final byte[] ch75data = {
+ (byte) 0x82,(byte) 0x84,(byte) 0x88,(byte) 0x90,(byte) 0xe0,(byte) 0xa0,(byte) 0x90,(byte) 0x88,(byte) 0x84,
+ };
+
+ static final BitmapCharRec ch75 = new BitmapCharRec(7,9,-1,0,8,ch75data);
+
+// char: 0x4a 'J'
+
+ static final byte[] ch74data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch74 = new BitmapCharRec(5,9,-1,0,7,ch74data);
+
+// char: 0x49 'I'
+
+ static final byte[] ch73data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch73 = new BitmapCharRec(1,9,-1,0,3,ch73data);
+
+// char: 0x48 'H'
+
+ static final byte[] ch72data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0xfe,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,
+ };
+
+ static final BitmapCharRec ch72 = new BitmapCharRec(7,9,-1,0,9,ch72data);
+
+// char: 0x47 'G'
+
+ static final byte[] ch71data = {
+ (byte) 0x3a,(byte) 0x46,(byte) 0x82,(byte) 0x82,(byte) 0x8e,(byte) 0x80,(byte) 0x80,(byte) 0x42,(byte) 0x3c,
+ };
+
+ static final BitmapCharRec ch71 = new BitmapCharRec(7,9,-1,0,9,ch71data);
+
+// char: 0x46 'F'
+
+ static final byte[] ch70data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xf8,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch70 = new BitmapCharRec(6,9,-1,0,8,ch70data);
+
+// char: 0x45 'E'
+
+ static final byte[] ch69data = {
+ (byte) 0xfc,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xfc,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch69 = new BitmapCharRec(6,9,-1,0,8,ch69data);
+
+// char: 0x44 'D'
+
+ static final byte[] ch68data = {
+ (byte) 0xf8,(byte) 0x84,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x84,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch68 = new BitmapCharRec(7,9,-1,0,9,ch68data);
+
+// char: 0x43 'C'
+
+ static final byte[] ch67data = {
+ (byte) 0x3c,(byte) 0x42,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x42,(byte) 0x3c,
+ };
+
+ static final BitmapCharRec ch67 = new BitmapCharRec(7,9,-1,0,9,ch67data);
+
+// char: 0x42 'B'
+
+ static final byte[] ch66data = {
+ (byte) 0xf8,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0xf8,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch66 = new BitmapCharRec(6,9,-1,0,8,ch66data);
+
+// char: 0x41 'A'
+
+ static final byte[] ch65data = {
+ (byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x7c,(byte) 0x44,(byte) 0x44,(byte) 0x28,(byte) 0x28,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch65 = new BitmapCharRec(7,9,-1,0,9,ch65data);
+
+// char: 0x40 '@'
+
+ static final byte[] ch64data = {
+ (byte) 0x3e,(byte) 0x0,(byte) 0x40,(byte) 0x0,(byte) 0x9b,(byte) 0x0,(byte) 0xa6,(byte) 0x80,(byte) 0xa2,(byte) 0x40,(byte) 0xa2,(byte) 0x40,(byte) 0x92,(byte) 0x40,(byte) 0x4d,(byte) 0x40,
+(byte) 0x60,(byte) 0x80,(byte) 0x1f,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch64 = new BitmapCharRec(10,10,-1,1,12,ch64data);
+
+// char: 0x3f '?'
+
+ static final byte[] ch63data = {
+ (byte) 0x20,(byte) 0x0,(byte) 0x20,(byte) 0x20,(byte) 0x10,(byte) 0x10,(byte) 0x88,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch63 = new BitmapCharRec(5,9,-1,0,7,ch63data);
+
+// char: 0x3e '>'
+
+ static final byte[] ch62data = {
+ (byte) 0xc0,(byte) 0x30,(byte) 0xc,(byte) 0x30,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch62 = new BitmapCharRec(6,5,-1,-1,7,ch62data);
+
+// char: 0x3d '='
+
+ static final byte[] ch61data = {
+ (byte) 0xf8,(byte) 0x0,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch61 = new BitmapCharRec(5,3,-1,-2,7,ch61data);
+
+// char: 0x3c '<'
+
+ static final byte[] ch60data = {
+ (byte) 0xc,(byte) 0x30,(byte) 0xc0,(byte) 0x30,(byte) 0xc,
+ };
+
+ static final BitmapCharRec ch60 = new BitmapCharRec(6,5,0,-1,7,ch60data);
+
+// char: 0x3b ';'
+
+ static final byte[] ch59data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch59 = new BitmapCharRec(2,8,0,2,3,ch59data);
+
+// char: 0x3a ':'
+
+ static final byte[] ch58data = {
+ (byte) 0x80,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch58 = new BitmapCharRec(1,6,-1,0,3,ch58data);
+
+// char: 0x39 '9'
+
+ static final byte[] ch57data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x8,(byte) 0x8,(byte) 0x78,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch57 = new BitmapCharRec(5,9,-1,0,7,ch57data);
+
+// char: 0x38 '8'
+
+ static final byte[] ch56data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch56 = new BitmapCharRec(5,9,-1,0,7,ch56data);
+
+// char: 0x37 '7'
+
+ static final byte[] ch55data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x10,(byte) 0x10,(byte) 0x8,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch55 = new BitmapCharRec(5,9,-1,0,7,ch55data);
+
+// char: 0x36 '6'
+
+ static final byte[] ch54data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0xc8,(byte) 0xb0,(byte) 0x80,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch54 = new BitmapCharRec(5,9,-1,0,7,ch54data);
+
+// char: 0x35 '5'
+
+ static final byte[] ch53data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x8,(byte) 0x8,(byte) 0xf0,(byte) 0x80,(byte) 0x80,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch53 = new BitmapCharRec(5,9,-1,0,7,ch53data);
+
+// char: 0x34 '4'
+
+ static final byte[] ch52data = {
+ (byte) 0x8,(byte) 0x8,(byte) 0xfc,(byte) 0x88,(byte) 0x48,(byte) 0x28,(byte) 0x28,(byte) 0x18,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch52 = new BitmapCharRec(6,9,0,0,7,ch52data);
+
+// char: 0x33 '3'
+
+ static final byte[] ch51data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x8,(byte) 0x8,(byte) 0x30,(byte) 0x8,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch51 = new BitmapCharRec(5,9,-1,0,7,ch51data);
+
+// char: 0x32 '2'
+
+ static final byte[] ch50data = {
+ (byte) 0xf8,(byte) 0x80,(byte) 0x80,(byte) 0x40,(byte) 0x20,(byte) 0x10,(byte) 0x8,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch50 = new BitmapCharRec(5,9,-1,0,7,ch50data);
+
+// char: 0x31 '1'
+
+ static final byte[] ch49data = {
+ (byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xe0,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch49 = new BitmapCharRec(3,9,-1,0,7,ch49data);
+
+// char: 0x30 '0'
+
+ static final byte[] ch48data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x88,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch48 = new BitmapCharRec(5,9,-1,0,7,ch48data);
+
+// char: 0x2f '/'
+
+ static final byte[] ch47data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0x20,(byte) 0x10,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch47 = new BitmapCharRec(4,9,0,0,4,ch47data);
+
+// char: 0x2e '.'
+
+ static final byte[] ch46data = {
+ (byte) 0x80,
+ };
+
+ static final BitmapCharRec ch46 = new BitmapCharRec(1,1,-1,0,3,ch46data);
+
+// char: 0x2d '-'
+
+ static final byte[] ch45data = {
+ (byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch45 = new BitmapCharRec(5,1,-1,-3,8,ch45data);
+
+// char: 0x2c ','
+
+ static final byte[] ch44data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch44 = new BitmapCharRec(2,3,-1,2,4,ch44data);
+
+// char: 0x2b '+'
+
+ static final byte[] ch43data = {
+ (byte) 0x20,(byte) 0x20,(byte) 0xf8,(byte) 0x20,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch43 = new BitmapCharRec(5,5,-1,-1,7,ch43data);
+
+// char: 0x2a '*'
+
+ static final byte[] ch42data = {
+ (byte) 0xa0,(byte) 0x40,(byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch42 = new BitmapCharRec(3,3,-1,-6,5,ch42data);
+
+// char: 0x29 ')'
+
+ static final byte[] ch41data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x40,(byte) 0x40,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch41 = new BitmapCharRec(3,12,0,3,4,ch41data);
+
+// char: 0x28 '('
+
+ static final byte[] ch40data = {
+ (byte) 0x20,(byte) 0x40,(byte) 0x40,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch40 = new BitmapCharRec(3,12,-1,3,4,ch40data);
+
+// char: 0x27 '''
+
+ static final byte[] ch39data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch39 = new BitmapCharRec(2,3,-1,-6,3,ch39data);
+
+// char: 0x26 '&'
+
+ static final byte[] ch38data = {
+ (byte) 0x72,(byte) 0x8c,(byte) 0x84,(byte) 0x8a,(byte) 0x50,(byte) 0x30,(byte) 0x48,(byte) 0x48,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch38 = new BitmapCharRec(7,9,-1,0,9,ch38data);
+
+// char: 0x25 '%'
+
+ static final byte[] ch37data = {
+ (byte) 0x23,(byte) 0x0,(byte) 0x14,(byte) 0x80,(byte) 0x14,(byte) 0x80,(byte) 0x13,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x68,(byte) 0x0,(byte) 0x94,(byte) 0x0,(byte) 0x94,(byte) 0x0,
+(byte) 0x62,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch37 = new BitmapCharRec(9,9,-1,0,11,ch37data);
+
+// char: 0x24 '$'
+
+ static final byte[] ch36data = {
+ (byte) 0x20,(byte) 0x70,(byte) 0xa8,(byte) 0xa8,(byte) 0x28,(byte) 0x70,(byte) 0xa0,(byte) 0xa8,(byte) 0x70,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch36 = new BitmapCharRec(5,10,-1,1,7,ch36data);
+
+// char: 0x23 '#'
+
+ static final byte[] ch35data = {
+ (byte) 0x50,(byte) 0x50,(byte) 0x50,(byte) 0xfc,(byte) 0x28,(byte) 0xfc,(byte) 0x28,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch35 = new BitmapCharRec(6,8,0,0,7,ch35data);
+
+// char: 0x22 '"'
+
+ static final byte[] ch34data = {
+ (byte) 0xa0,(byte) 0xa0,(byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch34 = new BitmapCharRec(3,3,-1,-6,5,ch34data);
+
+// char: 0x21 '!'
+
+ static final byte[] ch33data = {
+ (byte) 0x80,(byte) 0x0,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch33 = new BitmapCharRec(1,9,-1,0,3,ch33data);
+
+// char: 0x20 ' '
+
+ static final BitmapCharRec ch32 = new BitmapCharRec(0,0,0,0,4,zerodata);
+
+ static final BitmapCharRec chars[] = {
+ ch32,
+ ch33,
+ ch34,
+ ch35,
+ ch36,
+ ch37,
+ ch38,
+ ch39,
+ ch40,
+ ch41,
+ ch42,
+ ch43,
+ ch44,
+ ch45,
+ ch46,
+ ch47,
+ ch48,
+ ch49,
+ ch50,
+ ch51,
+ ch52,
+ ch53,
+ ch54,
+ ch55,
+ ch56,
+ ch57,
+ ch58,
+ ch59,
+ ch60,
+ ch61,
+ ch62,
+ ch63,
+ ch64,
+ ch65,
+ ch66,
+ ch67,
+ ch68,
+ ch69,
+ ch70,
+ ch71,
+ ch72,
+ ch73,
+ ch74,
+ ch75,
+ ch76,
+ ch77,
+ ch78,
+ ch79,
+ ch80,
+ ch81,
+ ch82,
+ ch83,
+ ch84,
+ ch85,
+ ch86,
+ ch87,
+ ch88,
+ ch89,
+ ch90,
+ ch91,
+ ch92,
+ ch93,
+ ch94,
+ ch95,
+ ch96,
+ ch97,
+ ch98,
+ ch99,
+ ch100,
+ ch101,
+ ch102,
+ ch103,
+ ch104,
+ ch105,
+ ch106,
+ ch107,
+ ch108,
+ ch109,
+ ch110,
+ ch111,
+ ch112,
+ ch113,
+ ch114,
+ ch115,
+ ch116,
+ ch117,
+ ch118,
+ ch119,
+ ch120,
+ ch121,
+ ch122,
+ ch123,
+ ch124,
+ ch125,
+ ch126,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ ch160,
+ ch161,
+ ch162,
+ ch163,
+ ch164,
+ ch165,
+ ch166,
+ ch167,
+ ch168,
+ ch169,
+ ch170,
+ ch171,
+ ch172,
+ ch173,
+ ch174,
+ ch175,
+ ch176,
+ ch177,
+ ch178,
+ ch179,
+ ch180,
+ ch181,
+ ch182,
+ ch183,
+ ch184,
+ ch185,
+ ch186,
+ ch187,
+ ch188,
+ ch189,
+ ch190,
+ ch191,
+ ch192,
+ ch193,
+ ch194,
+ ch195,
+ ch196,
+ ch197,
+ ch198,
+ ch199,
+ ch200,
+ ch201,
+ ch202,
+ ch203,
+ ch204,
+ ch205,
+ ch206,
+ ch207,
+ ch208,
+ ch209,
+ ch210,
+ ch211,
+ ch212,
+ ch213,
+ ch214,
+ ch215,
+ ch216,
+ ch217,
+ ch218,
+ ch219,
+ ch220,
+ ch221,
+ ch222,
+ ch223,
+ ch224,
+ ch225,
+ ch226,
+ ch227,
+ ch228,
+ ch229,
+ ch230,
+ ch231,
+ ch232,
+ ch233,
+ ch234,
+ ch235,
+ ch236,
+ ch237,
+ ch238,
+ ch239,
+ ch240,
+ ch241,
+ ch242,
+ ch243,
+ ch244,
+ ch245,
+ ch246,
+ ch247,
+ ch248,
+ ch249,
+ ch250,
+ ch251,
+ ch252,
+ ch253,
+ ch254,
+ ch255,
+ };
+
+ static final BitmapFontRec fontinfo = new BitmapFontRec(
+ "-adobe-helvetica-medium-r-*--12-*-*-*-p-*-iso8859-1",
+ 224,
+ 32,
+ chars
+ );
+
+ public static BitmapFontRec getBitmapFontRec() {
+ return fontinfo;
+ }
+} // end of class glutBitmapHelvetica12
diff --git a/gl4java/utils/glut/fonts/data/glutBitmapHelvetica18.java b/gl4java/utils/glut/fonts/data/glutBitmapHelvetica18.java
new file mode 100644
index 0000000..4f5ba1b
--- /dev/null
+++ b/gl4java/utils/glut/fonts/data/glutBitmapHelvetica18.java
@@ -0,0 +1,1888 @@
+
+// GENERATED FILE -- DO NOT MODIFY
+
+package gl4java.utils.glut.fonts.data;
+
+import gl4java.utils.glut.fonts.*;
+
+
+public class glutBitmapHelvetica18 implements GLUTBitmapFont {
+ private static byte[] zerodata={ 0 };
+// char: 0xff
+
+ static final byte[] ch255data = {
+ (byte) 0x70,(byte) 0x70,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x3c,(byte) 0x24,(byte) 0x66,(byte) 0x66,(byte) 0x66,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0x0,(byte) 0x66,
+(byte) 0x66,
+ };
+
+ static final BitmapCharRec ch255 = new BitmapCharRec(8,17,-1,4,10,ch255data);
+
+// char: 0xfe
+
+ static final byte[] ch254data = {
+ (byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xde,(byte) 0x0,(byte) 0xff,(byte) 0x0,(byte) 0xe3,(byte) 0x0,(byte) 0xc1,(byte) 0x80,
+(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xe3,(byte) 0x0,(byte) 0xff,(byte) 0x0,(byte) 0xde,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,
+(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch254 = new BitmapCharRec(9,18,-1,4,11,ch254data);
+
+// char: 0xfd
+
+ static final byte[] ch253data = {
+ (byte) 0x70,(byte) 0x70,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x3c,(byte) 0x24,(byte) 0x66,(byte) 0x66,(byte) 0x66,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0x0,(byte) 0x18,
+(byte) 0xc,(byte) 0x6,
+ };
+
+ static final BitmapCharRec ch253 = new BitmapCharRec(8,18,-1,4,10,ch253data);
+
+// char: 0xfc
+
+ static final byte[] ch252data = {
+ (byte) 0x73,(byte) 0xfb,(byte) 0xc7,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0x0,(byte) 0x66,(byte) 0x66,
+ };
+
+ static final BitmapCharRec ch252 = new BitmapCharRec(8,13,-1,0,10,ch252data);
+
+// char: 0xfb
+
+ static final byte[] ch251data = {
+ (byte) 0x73,(byte) 0xfb,(byte) 0xc7,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0x0,(byte) 0x66,(byte) 0x3c,(byte) 0x18,
+ };
+
+ static final BitmapCharRec ch251 = new BitmapCharRec(8,14,-1,0,10,ch251data);
+
+// char: 0xfa
+
+ static final byte[] ch250data = {
+ (byte) 0x73,(byte) 0xfb,(byte) 0xc7,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0x0,(byte) 0x18,(byte) 0xc,(byte) 0x6,
+ };
+
+ static final BitmapCharRec ch250 = new BitmapCharRec(8,14,-1,0,10,ch250data);
+
+// char: 0xf9
+
+ static final byte[] ch249data = {
+ (byte) 0x73,(byte) 0xfb,(byte) 0xc7,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0x0,(byte) 0xc,(byte) 0x18,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch249 = new BitmapCharRec(8,14,-1,0,10,ch249data);
+
+// char: 0xf8
+
+ static final byte[] ch248data = {
+ (byte) 0xce,(byte) 0x0,(byte) 0x7f,(byte) 0x80,(byte) 0x31,(byte) 0x80,(byte) 0x78,(byte) 0xc0,(byte) 0x6c,(byte) 0xc0,(byte) 0x66,(byte) 0xc0,(byte) 0x63,(byte) 0xc0,(byte) 0x31,(byte) 0x80,
+(byte) 0x3f,(byte) 0xc0,(byte) 0xe,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch248 = new BitmapCharRec(11,10,0,0,11,ch248data);
+
+// char: 0xf7
+
+ static final byte[] ch247data = {
+ (byte) 0x18,(byte) 0x18,(byte) 0x0,(byte) 0xff,(byte) 0xff,(byte) 0x0,(byte) 0x18,(byte) 0x18,
+ };
+
+ static final BitmapCharRec ch247 = new BitmapCharRec(8,8,-1,-1,10,ch247data);
+
+// char: 0xf6
+
+ static final byte[] ch246data = {
+ (byte) 0x3e,(byte) 0x0,(byte) 0x7f,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0x63,(byte) 0x0,
+(byte) 0x7f,(byte) 0x0,(byte) 0x3e,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x36,(byte) 0x0,(byte) 0x36,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch246 = new BitmapCharRec(9,13,-1,0,11,ch246data);
+
+// char: 0xf5
+
+ static final byte[] ch245data = {
+ (byte) 0x3e,(byte) 0x0,(byte) 0x7f,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0x63,(byte) 0x0,
+(byte) 0x7f,(byte) 0x0,(byte) 0x3e,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x26,(byte) 0x0,(byte) 0x2d,(byte) 0x0,(byte) 0x19,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch245 = new BitmapCharRec(9,14,-1,0,11,ch245data);
+
+// char: 0xf4
+
+ static final byte[] ch244data = {
+ (byte) 0x3e,(byte) 0x0,(byte) 0x7f,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0x63,(byte) 0x0,
+(byte) 0x7f,(byte) 0x0,(byte) 0x3e,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x33,(byte) 0x0,(byte) 0x1e,(byte) 0x0,(byte) 0xc,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch244 = new BitmapCharRec(9,14,-1,0,11,ch244data);
+
+// char: 0xf3
+
+ static final byte[] ch243data = {
+ (byte) 0x3e,(byte) 0x0,(byte) 0x7f,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0x63,(byte) 0x0,
+(byte) 0x7f,(byte) 0x0,(byte) 0x3e,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x18,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0x6,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch243 = new BitmapCharRec(9,14,-1,0,11,ch243data);
+
+// char: 0xf2
+
+ static final byte[] ch242data = {
+ (byte) 0x3e,(byte) 0x0,(byte) 0x7f,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0x63,(byte) 0x0,
+(byte) 0x7f,(byte) 0x0,(byte) 0x3e,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0x18,(byte) 0x0,(byte) 0x30,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch242 = new BitmapCharRec(9,14,-1,0,11,ch242data);
+
+// char: 0xf1
+
+ static final byte[] ch241data = {
+ (byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xe3,(byte) 0xdf,(byte) 0xce,(byte) 0x0,(byte) 0x4c,(byte) 0x5a,(byte) 0x32,
+ };
+
+ static final BitmapCharRec ch241 = new BitmapCharRec(8,14,-1,0,10,ch241data);
+
+// char: 0xf0
+
+ static final byte[] ch240data = {
+ (byte) 0x3e,(byte) 0x0,(byte) 0x7f,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0x63,(byte) 0x0,
+(byte) 0x7f,(byte) 0x0,(byte) 0x3e,(byte) 0x0,(byte) 0x4c,(byte) 0x0,(byte) 0x38,(byte) 0x0,(byte) 0x36,(byte) 0x0,(byte) 0x60,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch240 = new BitmapCharRec(9,14,-1,0,11,ch240data);
+
+// char: 0xef
+
+ static final byte[] ch239data = {
+ (byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x0,(byte) 0xd8,(byte) 0xd8,
+ };
+
+ static final BitmapCharRec ch239 = new BitmapCharRec(5,13,0,0,4,ch239data);
+
+// char: 0xee
+
+ static final byte[] ch238data = {
+ (byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x0,(byte) 0xcc,(byte) 0x78,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch238 = new BitmapCharRec(6,14,1,0,4,ch238data);
+
+// char: 0xed
+
+ static final byte[] ch237data = {
+ (byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x0,(byte) 0xc0,(byte) 0x60,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch237 = new BitmapCharRec(4,14,0,0,4,ch237data);
+
+// char: 0xec
+
+ static final byte[] ch236data = {
+ (byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x0,(byte) 0x30,(byte) 0x60,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch236 = new BitmapCharRec(4,14,0,0,4,ch236data);
+
+// char: 0xeb
+
+ static final byte[] ch235data = {
+ (byte) 0x3c,(byte) 0x7f,(byte) 0xe3,(byte) 0xc0,(byte) 0xc0,(byte) 0xff,(byte) 0xc3,(byte) 0xc3,(byte) 0x7e,(byte) 0x3c,(byte) 0x0,(byte) 0x36,(byte) 0x36,
+ };
+
+ static final BitmapCharRec ch235 = new BitmapCharRec(8,13,-1,0,10,ch235data);
+
+// char: 0xea
+
+ static final byte[] ch234data = {
+ (byte) 0x3c,(byte) 0x7f,(byte) 0xe3,(byte) 0xc0,(byte) 0xc0,(byte) 0xff,(byte) 0xc3,(byte) 0xc3,(byte) 0x7e,(byte) 0x3c,(byte) 0x0,(byte) 0x66,(byte) 0x3c,(byte) 0x18,
+ };
+
+ static final BitmapCharRec ch234 = new BitmapCharRec(8,14,-1,0,10,ch234data);
+
+// char: 0xe9
+
+ static final byte[] ch233data = {
+ (byte) 0x3c,(byte) 0x7f,(byte) 0xe3,(byte) 0xc0,(byte) 0xc0,(byte) 0xff,(byte) 0xc3,(byte) 0xc3,(byte) 0x7e,(byte) 0x3c,(byte) 0x0,(byte) 0x18,(byte) 0xc,(byte) 0x6,
+ };
+
+ static final BitmapCharRec ch233 = new BitmapCharRec(8,14,-1,0,10,ch233data);
+
+// char: 0xe8
+
+ static final byte[] ch232data = {
+ (byte) 0x3c,(byte) 0x7f,(byte) 0xe3,(byte) 0xc0,(byte) 0xc0,(byte) 0xff,(byte) 0xc3,(byte) 0xc3,(byte) 0x7e,(byte) 0x3c,(byte) 0x0,(byte) 0x18,(byte) 0x30,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch232 = new BitmapCharRec(8,14,-1,0,10,ch232data);
+
+// char: 0xe7
+
+ static final byte[] ch231data = {
+ (byte) 0x78,(byte) 0x6c,(byte) 0xc,(byte) 0x38,(byte) 0x3e,(byte) 0x7f,(byte) 0x63,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0x63,(byte) 0x7f,(byte) 0x3e,
+ };
+
+ static final BitmapCharRec ch231 = new BitmapCharRec(8,14,-1,4,10,ch231data);
+
+// char: 0xe6
+
+ static final byte[] ch230data = {
+ (byte) 0x75,(byte) 0xe0,(byte) 0xef,(byte) 0xf8,(byte) 0xc7,(byte) 0x18,(byte) 0xc6,(byte) 0x0,(byte) 0xe6,(byte) 0x0,(byte) 0x7f,(byte) 0xf8,(byte) 0xe,(byte) 0x18,(byte) 0xc6,(byte) 0x18,
+(byte) 0xef,(byte) 0xf0,(byte) 0x7d,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch230 = new BitmapCharRec(13,10,-1,0,15,ch230data);
+
+// char: 0xe5
+
+ static final byte[] ch229data = {
+ (byte) 0x76,(byte) 0xee,(byte) 0xc6,(byte) 0xc6,(byte) 0xe6,(byte) 0x7e,(byte) 0xe,(byte) 0xc6,(byte) 0xee,(byte) 0x7c,(byte) 0x38,(byte) 0x6c,(byte) 0x6c,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch229 = new BitmapCharRec(7,14,-1,0,9,ch229data);
+
+// char: 0xe4
+
+ static final byte[] ch228data = {
+ (byte) 0x76,(byte) 0xee,(byte) 0xc6,(byte) 0xc6,(byte) 0xe6,(byte) 0x7e,(byte) 0xe,(byte) 0xc6,(byte) 0xee,(byte) 0x7c,(byte) 0x0,(byte) 0x6c,(byte) 0x6c,
+ };
+
+ static final BitmapCharRec ch228 = new BitmapCharRec(7,13,-1,0,9,ch228data);
+
+// char: 0xe3
+
+ static final byte[] ch227data = {
+ (byte) 0x76,(byte) 0xee,(byte) 0xc6,(byte) 0xc6,(byte) 0xe6,(byte) 0x7e,(byte) 0xe,(byte) 0xc6,(byte) 0xee,(byte) 0x7c,(byte) 0x0,(byte) 0x4c,(byte) 0x5a,(byte) 0x32,
+ };
+
+ static final BitmapCharRec ch227 = new BitmapCharRec(7,14,-1,0,9,ch227data);
+
+// char: 0xe2
+
+ static final byte[] ch226data = {
+ (byte) 0x76,(byte) 0xee,(byte) 0xc6,(byte) 0xc6,(byte) 0xe6,(byte) 0x7e,(byte) 0xe,(byte) 0xc6,(byte) 0xee,(byte) 0x7c,(byte) 0x0,(byte) 0x66,(byte) 0x3c,(byte) 0x18,
+ };
+
+ static final BitmapCharRec ch226 = new BitmapCharRec(7,14,-1,0,9,ch226data);
+
+// char: 0xe1
+
+ static final byte[] ch225data = {
+ (byte) 0x76,(byte) 0xee,(byte) 0xc6,(byte) 0xc6,(byte) 0xe6,(byte) 0x7e,(byte) 0xe,(byte) 0xc6,(byte) 0xee,(byte) 0x7c,(byte) 0x0,(byte) 0x30,(byte) 0x18,(byte) 0xc,
+ };
+
+ static final BitmapCharRec ch225 = new BitmapCharRec(7,14,-1,0,9,ch225data);
+
+// char: 0xe0
+
+ static final byte[] ch224data = {
+ (byte) 0x76,(byte) 0xee,(byte) 0xc6,(byte) 0xc6,(byte) 0xe6,(byte) 0x7e,(byte) 0xe,(byte) 0xc6,(byte) 0xee,(byte) 0x7c,(byte) 0x0,(byte) 0x18,(byte) 0x30,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch224 = new BitmapCharRec(7,14,-1,0,9,ch224data);
+
+// char: 0xdf
+
+ static final byte[] ch223data = {
+ (byte) 0xdc,(byte) 0xde,(byte) 0xc6,(byte) 0xc6,(byte) 0xc6,(byte) 0xc6,(byte) 0xdc,(byte) 0xdc,(byte) 0xc6,(byte) 0xc6,(byte) 0xc6,(byte) 0xc6,(byte) 0x7c,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch223 = new BitmapCharRec(7,14,-1,0,9,ch223data);
+
+// char: 0xde
+
+ static final byte[] ch222data = {
+ (byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xff,(byte) 0x0,(byte) 0xff,(byte) 0x80,(byte) 0xc1,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,
+(byte) 0xc1,(byte) 0xc0,(byte) 0xff,(byte) 0x80,(byte) 0xff,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch222 = new BitmapCharRec(10,14,-1,0,12,ch222data);
+
+// char: 0xdd
+
+ static final byte[] ch221data = {
+ (byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0xf,(byte) 0x0,(byte) 0x19,(byte) 0x80,
+(byte) 0x30,(byte) 0xc0,(byte) 0x30,(byte) 0xc0,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0xc0,(byte) 0x30,(byte) 0xc0,(byte) 0x30,(byte) 0x0,(byte) 0x0,(byte) 0x6,(byte) 0x0,
+(byte) 0x3,(byte) 0x0,(byte) 0x1,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch221 = new BitmapCharRec(12,18,-1,0,14,ch221data);
+
+// char: 0xdc
+
+ static final byte[] ch220data = {
+ (byte) 0x1f,(byte) 0x0,(byte) 0x7f,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,
+(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0x0,(byte) 0x0,(byte) 0x19,(byte) 0x80,
+(byte) 0x19,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch220 = new BitmapCharRec(11,17,-1,0,13,ch220data);
+
+// char: 0xdb
+
+ static final byte[] ch219data = {
+ (byte) 0x1f,(byte) 0x0,(byte) 0x7f,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,
+(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0x0,(byte) 0x0,(byte) 0x19,(byte) 0x80,
+(byte) 0xf,(byte) 0x0,(byte) 0x6,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch219 = new BitmapCharRec(11,18,-1,0,13,ch219data);
+
+// char: 0xda
+
+ static final byte[] ch218data = {
+ (byte) 0x1f,(byte) 0x0,(byte) 0x7f,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,
+(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0x0,(byte) 0x0,(byte) 0xc,(byte) 0x0,
+(byte) 0x6,(byte) 0x0,(byte) 0x3,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch218 = new BitmapCharRec(11,18,-1,0,13,ch218data);
+
+// char: 0xd9
+
+ static final byte[] ch217data = {
+ (byte) 0x1f,(byte) 0x0,(byte) 0x7f,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,
+(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0x0,(byte) 0x0,(byte) 0x6,(byte) 0x0,
+(byte) 0xc,(byte) 0x0,(byte) 0x18,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch217 = new BitmapCharRec(11,18,-1,0,13,ch217data);
+
+// char: 0xd8
+
+ static final byte[] ch216data = {
+ (byte) 0xc7,(byte) 0xc0,(byte) 0xff,(byte) 0xf0,(byte) 0x78,(byte) 0x38,(byte) 0x38,(byte) 0x18,(byte) 0x6c,(byte) 0x1c,(byte) 0x6e,(byte) 0xc,(byte) 0x67,(byte) 0xc,(byte) 0x63,(byte) 0x8c,
+(byte) 0x61,(byte) 0xcc,(byte) 0x70,(byte) 0xdc,(byte) 0x30,(byte) 0x78,(byte) 0x38,(byte) 0x38,(byte) 0x1f,(byte) 0xfc,(byte) 0x7,(byte) 0xcc,
+ };
+
+ static final BitmapCharRec ch216 = new BitmapCharRec(14,14,0,0,15,ch216data);
+
+// char: 0xd7
+
+ static final byte[] ch215data = {
+ (byte) 0xc0,(byte) 0xc0,(byte) 0x61,(byte) 0x80,(byte) 0x33,(byte) 0x0,(byte) 0x1e,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0x1e,(byte) 0x0,(byte) 0x33,(byte) 0x0,(byte) 0x61,(byte) 0x80,
+(byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch215 = new BitmapCharRec(10,9,0,0,10,ch215data);
+
+// char: 0xd6
+
+ static final byte[] ch214data = {
+ (byte) 0xf,(byte) 0x80,(byte) 0x3f,(byte) 0xe0,(byte) 0x70,(byte) 0x70,(byte) 0x60,(byte) 0x30,(byte) 0xe0,(byte) 0x38,(byte) 0xc0,(byte) 0x18,(byte) 0xc0,(byte) 0x18,(byte) 0xc0,(byte) 0x18,
+(byte) 0xc0,(byte) 0x18,(byte) 0xe0,(byte) 0x38,(byte) 0x60,(byte) 0x30,(byte) 0x70,(byte) 0x70,(byte) 0x3f,(byte) 0xe0,(byte) 0xf,(byte) 0x80,(byte) 0x0,(byte) 0x0,(byte) 0xd,(byte) 0x80,
+(byte) 0xd,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch214 = new BitmapCharRec(13,17,-1,0,15,ch214data);
+
+// char: 0xd5
+
+ static final byte[] ch213data = {
+ (byte) 0xf,(byte) 0x80,(byte) 0x3f,(byte) 0xe0,(byte) 0x70,(byte) 0x70,(byte) 0x60,(byte) 0x30,(byte) 0xe0,(byte) 0x38,(byte) 0xc0,(byte) 0x18,(byte) 0xc0,(byte) 0x18,(byte) 0xc0,(byte) 0x18,
+(byte) 0xc0,(byte) 0x18,(byte) 0xe0,(byte) 0x38,(byte) 0x60,(byte) 0x30,(byte) 0x70,(byte) 0x70,(byte) 0x3f,(byte) 0xe0,(byte) 0xf,(byte) 0x80,(byte) 0x0,(byte) 0x0,(byte) 0x9,(byte) 0x80,
+(byte) 0xb,(byte) 0x40,(byte) 0x6,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch213 = new BitmapCharRec(13,18,-1,0,15,ch213data);
+
+// char: 0xd4
+
+ static final byte[] ch212data = {
+ (byte) 0xf,(byte) 0x80,(byte) 0x3f,(byte) 0xe0,(byte) 0x70,(byte) 0x70,(byte) 0x60,(byte) 0x30,(byte) 0xe0,(byte) 0x38,(byte) 0xc0,(byte) 0x18,(byte) 0xc0,(byte) 0x18,(byte) 0xc0,(byte) 0x18,
+(byte) 0xc0,(byte) 0x18,(byte) 0xe0,(byte) 0x38,(byte) 0x60,(byte) 0x30,(byte) 0x70,(byte) 0x70,(byte) 0x3f,(byte) 0xe0,(byte) 0xf,(byte) 0x80,(byte) 0x0,(byte) 0x0,(byte) 0xc,(byte) 0xc0,
+(byte) 0x7,(byte) 0x80,(byte) 0x3,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch212 = new BitmapCharRec(13,18,-1,0,15,ch212data);
+
+// char: 0xd3
+
+ static final byte[] ch211data = {
+ (byte) 0xf,(byte) 0x80,(byte) 0x3f,(byte) 0xe0,(byte) 0x70,(byte) 0x70,(byte) 0x60,(byte) 0x30,(byte) 0xe0,(byte) 0x38,(byte) 0xc0,(byte) 0x18,(byte) 0xc0,(byte) 0x18,(byte) 0xc0,(byte) 0x18,
+(byte) 0xc0,(byte) 0x18,(byte) 0xe0,(byte) 0x38,(byte) 0x60,(byte) 0x30,(byte) 0x70,(byte) 0x70,(byte) 0x3f,(byte) 0xe0,(byte) 0xf,(byte) 0x80,(byte) 0x0,(byte) 0x0,(byte) 0x3,(byte) 0x0,
+(byte) 0x1,(byte) 0x80,(byte) 0x0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch211 = new BitmapCharRec(13,18,-1,0,15,ch211data);
+
+// char: 0xd2
+
+ static final byte[] ch210data = {
+ (byte) 0xf,(byte) 0x80,(byte) 0x3f,(byte) 0xe0,(byte) 0x70,(byte) 0x70,(byte) 0x60,(byte) 0x30,(byte) 0xe0,(byte) 0x38,(byte) 0xc0,(byte) 0x18,(byte) 0xc0,(byte) 0x18,(byte) 0xc0,(byte) 0x18,
+(byte) 0xc0,(byte) 0x18,(byte) 0xe0,(byte) 0x38,(byte) 0x60,(byte) 0x30,(byte) 0x70,(byte) 0x70,(byte) 0x3f,(byte) 0xe0,(byte) 0xf,(byte) 0x80,(byte) 0x0,(byte) 0x0,(byte) 0x3,(byte) 0x0,
+(byte) 0x6,(byte) 0x0,(byte) 0xc,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch210 = new BitmapCharRec(13,18,-1,0,15,ch210data);
+
+// char: 0xd1
+
+ static final byte[] ch209data = {
+ (byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0xe0,(byte) 0xc1,(byte) 0xe0,(byte) 0xc1,(byte) 0xe0,(byte) 0xc3,(byte) 0x60,(byte) 0xc6,(byte) 0x60,(byte) 0xc6,(byte) 0x60,(byte) 0xcc,(byte) 0x60,
+(byte) 0xcc,(byte) 0x60,(byte) 0xd8,(byte) 0x60,(byte) 0xd8,(byte) 0x60,(byte) 0xf0,(byte) 0x60,(byte) 0xe0,(byte) 0x60,(byte) 0xe0,(byte) 0x60,(byte) 0x0,(byte) 0x0,(byte) 0x13,(byte) 0x0,
+(byte) 0x16,(byte) 0x80,(byte) 0xc,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch209 = new BitmapCharRec(11,18,-1,0,13,ch209data);
+
+// char: 0xd0
+
+ static final byte[] ch208data = {
+ (byte) 0x7f,(byte) 0x80,(byte) 0x7f,(byte) 0xc0,(byte) 0x60,(byte) 0xe0,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x30,(byte) 0x60,(byte) 0x30,(byte) 0xfc,(byte) 0x30,(byte) 0xfc,(byte) 0x30,
+(byte) 0x60,(byte) 0x30,(byte) 0x60,(byte) 0x30,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0xe0,(byte) 0x7f,(byte) 0xc0,(byte) 0x7f,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch208 = new BitmapCharRec(12,14,0,0,13,ch208data);
+
+// char: 0xcf
+
+ static final byte[] ch207data = {
+ (byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x0,(byte) 0xcc,
+(byte) 0xcc,
+ };
+
+ static final BitmapCharRec ch207 = new BitmapCharRec(6,17,0,0,6,ch207data);
+
+// char: 0xce
+
+ static final byte[] ch206data = {
+ (byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x0,(byte) 0xcc,
+(byte) 0x78,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch206 = new BitmapCharRec(6,18,0,0,6,ch206data);
+
+// char: 0xcd
+
+ static final byte[] ch205data = {
+ (byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,
+(byte) 0x60,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch205 = new BitmapCharRec(4,18,-2,0,6,ch205data);
+
+// char: 0xcc
+
+ static final byte[] ch204data = {
+ (byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x0,(byte) 0x30,
+(byte) 0x60,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch204 = new BitmapCharRec(4,18,0,0,6,ch204data);
+
+// char: 0xcb
+
+ static final byte[] ch203data = {
+ (byte) 0xff,(byte) 0x80,(byte) 0xff,(byte) 0x80,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xff,(byte) 0x0,(byte) 0xff,(byte) 0x0,
+(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xff,(byte) 0x80,(byte) 0xff,(byte) 0x80,(byte) 0x0,(byte) 0x0,(byte) 0x33,(byte) 0x0,
+(byte) 0x33,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch203 = new BitmapCharRec(9,17,-1,0,11,ch203data);
+
+// char: 0xca
+
+ static final byte[] ch202data = {
+ (byte) 0xff,(byte) 0x80,(byte) 0xff,(byte) 0x80,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xff,(byte) 0x0,(byte) 0xff,(byte) 0x0,
+(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xff,(byte) 0x80,(byte) 0xff,(byte) 0x80,(byte) 0x0,(byte) 0x0,(byte) 0x33,(byte) 0x0,
+(byte) 0x1e,(byte) 0x0,(byte) 0xc,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch202 = new BitmapCharRec(9,18,-1,0,11,ch202data);
+
+// char: 0xc9
+
+ static final byte[] ch201data = {
+ (byte) 0xff,(byte) 0x80,(byte) 0xff,(byte) 0x80,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xff,(byte) 0x0,(byte) 0xff,(byte) 0x0,
+(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xff,(byte) 0x80,(byte) 0xff,(byte) 0x80,(byte) 0x0,(byte) 0x0,(byte) 0xc,(byte) 0x0,
+(byte) 0x6,(byte) 0x0,(byte) 0x3,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch201 = new BitmapCharRec(9,18,-1,0,11,ch201data);
+
+// char: 0xc8
+
+ static final byte[] ch200data = {
+ (byte) 0xff,(byte) 0x80,(byte) 0xff,(byte) 0x80,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xff,(byte) 0x0,(byte) 0xff,(byte) 0x0,
+(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xff,(byte) 0x80,(byte) 0xff,(byte) 0x80,(byte) 0x0,(byte) 0x0,(byte) 0xc,(byte) 0x0,
+(byte) 0x18,(byte) 0x0,(byte) 0x30,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch200 = new BitmapCharRec(9,18,-1,0,11,ch200data);
+
+// char: 0xc7
+
+ static final byte[] ch199data = {
+ (byte) 0x1e,(byte) 0x0,(byte) 0x1b,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0xe,(byte) 0x0,(byte) 0xf,(byte) 0x80,(byte) 0x3f,(byte) 0xe0,(byte) 0x70,(byte) 0x70,(byte) 0x60,(byte) 0x30,
+(byte) 0xe0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xe0,(byte) 0x0,(byte) 0x60,(byte) 0x30,(byte) 0x70,(byte) 0x70,
+(byte) 0x3f,(byte) 0xe0,(byte) 0xf,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch199 = new BitmapCharRec(12,18,-1,4,14,ch199data);
+
+// char: 0xc6
+
+ static final byte[] ch198data = {
+ (byte) 0xc1,(byte) 0xff,(byte) 0xc1,(byte) 0xff,(byte) 0x61,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0x7f,(byte) 0x80,(byte) 0x3f,(byte) 0x80,(byte) 0x31,(byte) 0xfe,(byte) 0x31,(byte) 0xfe,
+(byte) 0x19,(byte) 0x80,(byte) 0x19,(byte) 0x80,(byte) 0xd,(byte) 0x80,(byte) 0xd,(byte) 0x80,(byte) 0x7,(byte) 0xff,(byte) 0x7,(byte) 0xff,
+ };
+
+ static final BitmapCharRec ch198 = new BitmapCharRec(16,14,-1,0,18,ch198data);
+
+// char: 0xc5
+
+ static final byte[] ch197data = {
+ (byte) 0xc0,(byte) 0x30,(byte) 0xc0,(byte) 0x30,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x7f,(byte) 0xe0,(byte) 0x3f,(byte) 0xc0,(byte) 0x30,(byte) 0xc0,(byte) 0x30,(byte) 0xc0,
+(byte) 0x19,(byte) 0x80,(byte) 0x19,(byte) 0x80,(byte) 0xf,(byte) 0x0,(byte) 0xf,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0xf,(byte) 0x0,(byte) 0x19,(byte) 0x80,
+(byte) 0x19,(byte) 0x80,(byte) 0xf,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch197 = new BitmapCharRec(12,18,0,0,12,ch197data);
+
+// char: 0xc4
+
+ static final byte[] ch196data = {
+ (byte) 0xc0,(byte) 0x30,(byte) 0xc0,(byte) 0x30,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x7f,(byte) 0xe0,(byte) 0x3f,(byte) 0xc0,(byte) 0x30,(byte) 0xc0,(byte) 0x30,(byte) 0xc0,
+(byte) 0x19,(byte) 0x80,(byte) 0x19,(byte) 0x80,(byte) 0xf,(byte) 0x0,(byte) 0xf,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x19,(byte) 0x80,
+(byte) 0x19,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch196 = new BitmapCharRec(12,17,0,0,12,ch196data);
+
+// char: 0xc3
+
+ static final byte[] ch195data = {
+ (byte) 0xc0,(byte) 0x30,(byte) 0xc0,(byte) 0x30,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x7f,(byte) 0xe0,(byte) 0x3f,(byte) 0xc0,(byte) 0x30,(byte) 0xc0,(byte) 0x30,(byte) 0xc0,
+(byte) 0x19,(byte) 0x80,(byte) 0x19,(byte) 0x80,(byte) 0xf,(byte) 0x0,(byte) 0xf,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x13,(byte) 0x0,
+(byte) 0x16,(byte) 0x80,(byte) 0xc,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch195 = new BitmapCharRec(12,18,0,0,12,ch195data);
+
+// char: 0xc2
+
+ static final byte[] ch194data = {
+ (byte) 0xc0,(byte) 0x30,(byte) 0xc0,(byte) 0x30,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x7f,(byte) 0xe0,(byte) 0x3f,(byte) 0xc0,(byte) 0x30,(byte) 0xc0,(byte) 0x30,(byte) 0xc0,
+(byte) 0x19,(byte) 0x80,(byte) 0x19,(byte) 0x80,(byte) 0xf,(byte) 0x0,(byte) 0xf,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x19,(byte) 0x80,
+(byte) 0xf,(byte) 0x0,(byte) 0x6,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch194 = new BitmapCharRec(12,18,0,0,12,ch194data);
+
+// char: 0xc1
+
+ static final byte[] ch193data = {
+ (byte) 0xc0,(byte) 0x30,(byte) 0xc0,(byte) 0x30,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x7f,(byte) 0xe0,(byte) 0x3f,(byte) 0xc0,(byte) 0x30,(byte) 0xc0,(byte) 0x30,(byte) 0xc0,
+(byte) 0x19,(byte) 0x80,(byte) 0x19,(byte) 0x80,(byte) 0xf,(byte) 0x0,(byte) 0xf,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x6,(byte) 0x0,
+(byte) 0x3,(byte) 0x0,(byte) 0x1,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch193 = new BitmapCharRec(12,18,0,0,12,ch193data);
+
+// char: 0xc0
+
+ static final byte[] ch192data = {
+ (byte) 0xc0,(byte) 0x30,(byte) 0xc0,(byte) 0x30,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x7f,(byte) 0xe0,(byte) 0x3f,(byte) 0xc0,(byte) 0x30,(byte) 0xc0,(byte) 0x30,(byte) 0xc0,
+(byte) 0x19,(byte) 0x80,(byte) 0x19,(byte) 0x80,(byte) 0xf,(byte) 0x0,(byte) 0xf,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x6,(byte) 0x0,
+(byte) 0xc,(byte) 0x0,(byte) 0x18,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch192 = new BitmapCharRec(12,18,0,0,12,ch192data);
+
+// char: 0xbf
+
+ static final byte[] ch191data = {
+ (byte) 0x7c,(byte) 0xfe,(byte) 0xc6,(byte) 0xc6,(byte) 0xe0,(byte) 0x70,(byte) 0x38,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x0,(byte) 0x0,(byte) 0x18,(byte) 0x18,
+ };
+
+ static final BitmapCharRec ch191 = new BitmapCharRec(7,14,-1,4,10,ch191data);
+
+// char: 0xbe
+
+ static final byte[] ch190data = {
+ (byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0xc,(byte) 0xfc,(byte) 0x6,(byte) 0xd8,(byte) 0x6,(byte) 0x78,(byte) 0x73,(byte) 0x38,(byte) 0xf9,(byte) 0x18,(byte) 0x99,(byte) 0x88,
+(byte) 0x30,(byte) 0xc0,(byte) 0x30,(byte) 0xc0,(byte) 0x98,(byte) 0x60,(byte) 0xf8,(byte) 0x30,(byte) 0x70,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch190 = new BitmapCharRec(14,13,0,0,15,ch190data);
+
+// char: 0xbd
+
+ static final byte[] ch189data = {
+ (byte) 0x30,(byte) 0xf8,(byte) 0x30,(byte) 0xf8,(byte) 0x18,(byte) 0x60,(byte) 0xc,(byte) 0x30,(byte) 0xc,(byte) 0x18,(byte) 0x66,(byte) 0x98,(byte) 0x62,(byte) 0xf8,(byte) 0x63,(byte) 0x70,
+(byte) 0x61,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0xe0,(byte) 0xc0,(byte) 0xe0,(byte) 0x60,(byte) 0x60,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch189 = new BitmapCharRec(13,13,-1,0,15,ch189data);
+
+// char: 0xbc
+
+ static final byte[] ch188data = {
+ (byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x19,(byte) 0xf8,(byte) 0xd,(byte) 0xb0,(byte) 0xc,(byte) 0xf0,(byte) 0x66,(byte) 0x70,(byte) 0x62,(byte) 0x30,(byte) 0x63,(byte) 0x10,
+(byte) 0x61,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0xe0,(byte) 0xc0,(byte) 0xe0,(byte) 0x60,(byte) 0x60,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch188 = new BitmapCharRec(13,13,-1,0,15,ch188data);
+
+// char: 0xbb
+
+ static final byte[] ch187data = {
+ (byte) 0x90,(byte) 0xd8,(byte) 0x6c,(byte) 0x36,(byte) 0x36,(byte) 0x6c,(byte) 0xd8,(byte) 0x90,
+ };
+
+ static final BitmapCharRec ch187 = new BitmapCharRec(7,8,-1,-1,9,ch187data);
+
+// char: 0xba
+
+ static final byte[] ch186data = {
+ (byte) 0xf8,(byte) 0x0,(byte) 0x70,(byte) 0xd8,(byte) 0x88,(byte) 0x88,(byte) 0xd8,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch186 = new BitmapCharRec(5,8,-1,-6,7,ch186data);
+
+// char: 0xb9
+
+ static final byte[] ch185data = {
+ (byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0xe0,(byte) 0xe0,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch185 = new BitmapCharRec(3,8,-1,-5,6,ch185data);
+
+// char: 0xb8
+
+ static final byte[] ch184data = {
+ (byte) 0xf0,(byte) 0xd8,(byte) 0x18,(byte) 0x70,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch184 = new BitmapCharRec(5,5,0,4,5,ch184data);
+
+// char: 0xb7
+
+ static final byte[] ch183data = {
+ (byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch183 = new BitmapCharRec(2,2,-1,-4,4,ch183data);
+
+// char: 0xb6
+
+ static final byte[] ch182data = {
+ (byte) 0x12,(byte) 0x12,(byte) 0x12,(byte) 0x12,(byte) 0x12,(byte) 0x12,(byte) 0x12,(byte) 0x12,(byte) 0x12,(byte) 0x12,(byte) 0x32,(byte) 0x72,(byte) 0xf2,(byte) 0xf2,(byte) 0xf2,(byte) 0xf2,
+(byte) 0x72,(byte) 0x3f,
+ };
+
+ static final BitmapCharRec ch182 = new BitmapCharRec(8,18,-1,4,10,ch182data);
+
+// char: 0xb5
+
+ static final byte[] ch181data = {
+ (byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xdb,(byte) 0xff,(byte) 0xe7,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,
+ };
+
+ static final BitmapCharRec ch181 = new BitmapCharRec(8,14,-1,4,10,ch181data);
+
+// char: 0xb4
+
+ static final byte[] ch180data = {
+ (byte) 0xc0,(byte) 0x60,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch180 = new BitmapCharRec(4,3,0,-11,4,ch180data);
+
+// char: 0xb3
+
+ static final byte[] ch179data = {
+ (byte) 0x70,(byte) 0xf8,(byte) 0x98,(byte) 0x30,(byte) 0x30,(byte) 0x98,(byte) 0xf8,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch179 = new BitmapCharRec(5,8,0,-5,6,ch179data);
+
+// char: 0xb2
+
+ static final byte[] ch178data = {
+ (byte) 0xf8,(byte) 0xf8,(byte) 0x60,(byte) 0x30,(byte) 0x18,(byte) 0x98,(byte) 0xf8,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch178 = new BitmapCharRec(5,8,0,-5,6,ch178data);
+
+// char: 0xb1
+
+ static final byte[] ch177data = {
+ (byte) 0xff,(byte) 0xff,(byte) 0x0,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0xff,(byte) 0xff,(byte) 0x18,(byte) 0x18,(byte) 0x18,
+ };
+
+ static final BitmapCharRec ch177 = new BitmapCharRec(8,11,-1,0,10,ch177data);
+
+// char: 0xb0
+
+ static final byte[] ch176data = {
+ (byte) 0x70,(byte) 0xd8,(byte) 0x88,(byte) 0xd8,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch176 = new BitmapCharRec(5,5,-1,-8,7,ch176data);
+
+// char: 0xaf
+
+ static final byte[] ch175data = {
+ (byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch175 = new BitmapCharRec(5,1,0,-12,5,ch175data);
+
+// char: 0xae
+
+ static final byte[] ch174data = {
+ (byte) 0xf,(byte) 0x80,(byte) 0x30,(byte) 0x60,(byte) 0x40,(byte) 0x10,(byte) 0x48,(byte) 0x50,(byte) 0x88,(byte) 0x88,(byte) 0x89,(byte) 0x8,(byte) 0x8f,(byte) 0x88,(byte) 0x88,(byte) 0x48,
+(byte) 0x88,(byte) 0x48,(byte) 0x4f,(byte) 0x90,(byte) 0x40,(byte) 0x10,(byte) 0x30,(byte) 0x60,(byte) 0xf,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch174 = new BitmapCharRec(13,13,-1,0,14,ch174data);
+
+// char: 0xad
+
+ static final byte[] ch173data = {
+ (byte) 0xf8,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch173 = new BitmapCharRec(5,2,-1,-4,7,ch173data);
+
+// char: 0xac
+
+ static final byte[] ch172data = {
+ (byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0xff,(byte) 0x80,(byte) 0xff,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch172 = new BitmapCharRec(9,5,-1,-3,11,ch172data);
+
+// char: 0xab
+
+ static final byte[] ch171data = {
+ (byte) 0x12,(byte) 0x36,(byte) 0x6c,(byte) 0xd8,(byte) 0xd8,(byte) 0x6c,(byte) 0x36,(byte) 0x12,
+ };
+
+ static final BitmapCharRec ch171 = new BitmapCharRec(7,8,-1,-1,9,ch171data);
+
+// char: 0xaa
+
+ static final byte[] ch170data = {
+ (byte) 0xf8,(byte) 0x0,(byte) 0x68,(byte) 0xd8,(byte) 0x48,(byte) 0x38,(byte) 0xc8,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch170 = new BitmapCharRec(5,8,-1,-6,7,ch170data);
+
+// char: 0xa9
+
+ static final byte[] ch169data = {
+ (byte) 0xf,(byte) 0x80,(byte) 0x30,(byte) 0x60,(byte) 0x40,(byte) 0x10,(byte) 0x47,(byte) 0x10,(byte) 0x88,(byte) 0x88,(byte) 0x90,(byte) 0x8,(byte) 0x90,(byte) 0x8,(byte) 0x90,(byte) 0x8,
+(byte) 0x88,(byte) 0x88,(byte) 0x47,(byte) 0x10,(byte) 0x40,(byte) 0x10,(byte) 0x30,(byte) 0x60,(byte) 0xf,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch169 = new BitmapCharRec(13,13,-1,0,15,ch169data);
+
+// char: 0xa8
+
+ static final byte[] ch168data = {
+ (byte) 0xd8,(byte) 0xd8,
+ };
+
+ static final BitmapCharRec ch168 = new BitmapCharRec(5,2,0,-11,6,ch168data);
+
+// char: 0xa7
+
+ static final byte[] ch167data = {
+ (byte) 0x3c,(byte) 0x7e,(byte) 0xc3,(byte) 0xc3,(byte) 0x7,(byte) 0xe,(byte) 0x3e,(byte) 0x73,(byte) 0xe3,(byte) 0xc3,(byte) 0xc7,(byte) 0x6e,(byte) 0x7c,(byte) 0xf0,(byte) 0xc3,(byte) 0xc3,
+(byte) 0x7e,(byte) 0x3c,
+ };
+
+ static final BitmapCharRec ch167 = new BitmapCharRec(8,18,-1,4,10,ch167data);
+
+// char: 0xa6
+
+ static final byte[] ch166data = {
+ (byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,
+(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch166 = new BitmapCharRec(2,17,-1,3,4,ch166data);
+
+// char: 0xa5
+
+ static final byte[] ch165data = {
+ (byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0xff,(byte) 0x18,(byte) 0xff,(byte) 0x3c,(byte) 0x66,(byte) 0x66,(byte) 0x66,(byte) 0xc3,(byte) 0xc3,
+ };
+
+ static final BitmapCharRec ch165 = new BitmapCharRec(8,13,-1,0,10,ch165data);
+
+// char: 0xa4
+
+ static final byte[] ch164data = {
+ (byte) 0xc3,(byte) 0xff,(byte) 0x66,(byte) 0x66,(byte) 0x66,(byte) 0xff,(byte) 0xc3,
+ };
+
+ static final BitmapCharRec ch164 = new BitmapCharRec(8,7,-1,-3,10,ch164data);
+
+// char: 0xa3
+
+ static final byte[] ch163data = {
+ (byte) 0xdf,(byte) 0x0,(byte) 0xff,(byte) 0x80,(byte) 0x60,(byte) 0x80,(byte) 0x30,(byte) 0x0,(byte) 0x18,(byte) 0x0,(byte) 0x18,(byte) 0x0,(byte) 0x7e,(byte) 0x0,(byte) 0x30,(byte) 0x0,
+(byte) 0x60,(byte) 0x0,(byte) 0x61,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0x3f,(byte) 0x0,(byte) 0x1e,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch163 = new BitmapCharRec(9,13,0,0,10,ch163data);
+
+// char: 0xa2
+
+ static final byte[] ch162data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0x3e,(byte) 0x7f,(byte) 0x6b,(byte) 0xc8,(byte) 0xc8,(byte) 0xc8,(byte) 0xc8,(byte) 0x6b,(byte) 0x7f,(byte) 0x3e,(byte) 0x4,(byte) 0x4,
+ };
+
+ static final BitmapCharRec ch162 = new BitmapCharRec(8,14,-1,2,10,ch162data);
+
+// char: 0xa1
+
+ static final byte[] ch161data = {
+ (byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0x40,(byte) 0x40,(byte) 0x0,(byte) 0x0,(byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch161 = new BitmapCharRec(2,14,-2,4,6,ch161data);
+
+// char: 0xa0
+
+ static final BitmapCharRec ch160 = new BitmapCharRec(0,0,0,0,5,zerodata);
+
+// char: 0x7e '~'
+
+ static final byte[] ch126data = {
+ (byte) 0xcc,(byte) 0x7e,(byte) 0x33,
+ };
+
+ static final BitmapCharRec ch126 = new BitmapCharRec(8,3,-1,-4,10,ch126data);
+
+// char: 0x7d '}'
+
+ static final byte[] ch125data = {
+ (byte) 0xc0,(byte) 0x60,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x18,(byte) 0xc,(byte) 0x18,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,
+(byte) 0x60,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch125 = new BitmapCharRec(6,18,0,4,6,ch125data);
+
+// char: 0x7c '|'
+
+ static final byte[] ch124data = {
+ (byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,
+(byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch124 = new BitmapCharRec(2,18,-1,4,4,ch124data);
+
+// char: 0x7b '{'
+
+ static final byte[] ch123data = {
+ (byte) 0xc,(byte) 0x18,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,
+(byte) 0x18,(byte) 0xc,
+ };
+
+ static final BitmapCharRec ch123 = new BitmapCharRec(6,18,0,4,6,ch123data);
+
+// char: 0x7a 'z'
+
+ static final byte[] ch122data = {
+ (byte) 0xfe,(byte) 0xfe,(byte) 0xc0,(byte) 0x60,(byte) 0x30,(byte) 0x18,(byte) 0xc,(byte) 0x6,(byte) 0xfe,(byte) 0xfe,
+ };
+
+ static final BitmapCharRec ch122 = new BitmapCharRec(7,10,-1,0,9,ch122data);
+
+// char: 0x79 'y'
+
+ static final byte[] ch121data = {
+ (byte) 0x70,(byte) 0x70,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x3c,(byte) 0x24,(byte) 0x66,(byte) 0x66,(byte) 0x66,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,
+ };
+
+ static final BitmapCharRec ch121 = new BitmapCharRec(8,14,-1,4,10,ch121data);
+
+// char: 0x78 'x'
+
+ static final byte[] ch120data = {
+ (byte) 0xc3,(byte) 0xe7,(byte) 0x66,(byte) 0x3c,(byte) 0x18,(byte) 0x18,(byte) 0x3c,(byte) 0x66,(byte) 0xe7,(byte) 0xc3,
+ };
+
+ static final BitmapCharRec ch120 = new BitmapCharRec(8,10,-1,0,10,ch120data);
+
+// char: 0x77 'w'
+
+ static final byte[] ch119data = {
+ (byte) 0x19,(byte) 0x80,(byte) 0x19,(byte) 0x80,(byte) 0x39,(byte) 0xc0,(byte) 0x29,(byte) 0x40,(byte) 0x69,(byte) 0x60,(byte) 0x66,(byte) 0x60,(byte) 0x66,(byte) 0x60,(byte) 0xc6,(byte) 0x30,
+(byte) 0xc6,(byte) 0x30,(byte) 0xc6,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch119 = new BitmapCharRec(12,10,-1,0,14,ch119data);
+
+// char: 0x76 'v'
+
+ static final byte[] ch118data = {
+ (byte) 0x18,(byte) 0x18,(byte) 0x3c,(byte) 0x24,(byte) 0x66,(byte) 0x66,(byte) 0x66,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,
+ };
+
+ static final BitmapCharRec ch118 = new BitmapCharRec(8,10,-1,0,10,ch118data);
+
+// char: 0x75 'u'
+
+ static final byte[] ch117data = {
+ (byte) 0x73,(byte) 0xfb,(byte) 0xc7,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,
+ };
+
+ static final BitmapCharRec ch117 = new BitmapCharRec(8,10,-1,0,10,ch117data);
+
+// char: 0x74 't'
+
+ static final byte[] ch116data = {
+ (byte) 0x18,(byte) 0x38,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0xfc,(byte) 0xfc,(byte) 0x30,(byte) 0x30,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch116 = new BitmapCharRec(6,13,0,0,6,ch116data);
+
+// char: 0x73 's'
+
+ static final byte[] ch115data = {
+ (byte) 0x78,(byte) 0xfc,(byte) 0xc6,(byte) 0x6,(byte) 0x3e,(byte) 0xfc,(byte) 0xc0,(byte) 0xc6,(byte) 0x7e,(byte) 0x3c,
+ };
+
+ static final BitmapCharRec ch115 = new BitmapCharRec(7,10,-1,0,9,ch115data);
+
+// char: 0x72 'r'
+
+ static final byte[] ch114data = {
+ (byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xe0,(byte) 0xd8,(byte) 0xd8,
+ };
+
+ static final BitmapCharRec ch114 = new BitmapCharRec(5,10,-1,0,6,ch114data);
+
+// char: 0x71 'q'
+
+ static final byte[] ch113data = {
+ (byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x3d,(byte) 0x80,(byte) 0x7f,(byte) 0x80,(byte) 0x63,(byte) 0x80,(byte) 0xc1,(byte) 0x80,
+(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0x63,(byte) 0x80,(byte) 0x7f,(byte) 0x80,(byte) 0x3d,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch113 = new BitmapCharRec(9,14,-1,4,11,ch113data);
+
+// char: 0x70 'p'
+
+ static final byte[] ch112data = {
+ (byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xde,(byte) 0x0,(byte) 0xff,(byte) 0x0,(byte) 0xe3,(byte) 0x0,(byte) 0xc1,(byte) 0x80,
+(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xe3,(byte) 0x0,(byte) 0xff,(byte) 0x0,(byte) 0xde,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch112 = new BitmapCharRec(9,14,-1,4,11,ch112data);
+
+// char: 0x6f 'o'
+
+ static final byte[] ch111data = {
+ (byte) 0x3e,(byte) 0x0,(byte) 0x7f,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0x63,(byte) 0x0,
+(byte) 0x7f,(byte) 0x0,(byte) 0x3e,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch111 = new BitmapCharRec(9,10,-1,0,11,ch111data);
+
+// char: 0x6e 'n'
+
+ static final byte[] ch110data = {
+ (byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xe3,(byte) 0xdf,(byte) 0xce,
+ };
+
+ static final BitmapCharRec ch110 = new BitmapCharRec(8,10,-1,0,10,ch110data);
+
+// char: 0x6d 'm'
+
+ static final byte[] ch109data = {
+ (byte) 0xc6,(byte) 0x30,(byte) 0xc6,(byte) 0x30,(byte) 0xc6,(byte) 0x30,(byte) 0xc6,(byte) 0x30,(byte) 0xc6,(byte) 0x30,(byte) 0xc6,(byte) 0x30,(byte) 0xc6,(byte) 0x30,(byte) 0xe7,(byte) 0x30,
+(byte) 0xde,(byte) 0xf0,(byte) 0xcc,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch109 = new BitmapCharRec(12,10,-1,0,14,ch109data);
+
+// char: 0x6c 'l'
+
+ static final byte[] ch108data = {
+ (byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch108 = new BitmapCharRec(2,14,-1,0,4,ch108data);
+
+// char: 0x6b 'k'
+
+ static final byte[] ch107data = {
+ (byte) 0xc7,(byte) 0xc6,(byte) 0xce,(byte) 0xcc,(byte) 0xd8,(byte) 0xf8,(byte) 0xf0,(byte) 0xd8,(byte) 0xcc,(byte) 0xc6,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch107 = new BitmapCharRec(8,14,-1,0,9,ch107data);
+
+// char: 0x6a 'j'
+
+ static final byte[] ch106data = {
+ (byte) 0xe0,(byte) 0xf0,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x0,(byte) 0x0,
+(byte) 0x30,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch106 = new BitmapCharRec(4,18,1,4,4,ch106data);
+
+// char: 0x69 'i'
+
+ static final byte[] ch105data = {
+ (byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0x0,(byte) 0x0,(byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch105 = new BitmapCharRec(2,14,-1,0,4,ch105data);
+
+// char: 0x68 'h'
+
+ static final byte[] ch104data = {
+ (byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xe3,(byte) 0xdf,(byte) 0xce,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch104 = new BitmapCharRec(8,14,-1,0,10,ch104data);
+
+// char: 0x67 'g'
+
+ static final byte[] ch103data = {
+ (byte) 0x1c,(byte) 0x0,(byte) 0x7f,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0x1,(byte) 0x80,(byte) 0x3d,(byte) 0x80,(byte) 0x7f,(byte) 0x80,(byte) 0x63,(byte) 0x80,(byte) 0xc1,(byte) 0x80,
+(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0x7f,(byte) 0x80,(byte) 0x3d,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch103 = new BitmapCharRec(9,14,-1,4,11,ch103data);
+
+// char: 0x66 'f'
+
+ static final byte[] ch102data = {
+ (byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0xfc,(byte) 0xfc,(byte) 0x30,(byte) 0x30,(byte) 0x3c,(byte) 0x1c,
+ };
+
+ static final BitmapCharRec ch102 = new BitmapCharRec(6,14,0,0,6,ch102data);
+
+// char: 0x65 'e'
+
+ static final byte[] ch101data = {
+ (byte) 0x3c,(byte) 0x7f,(byte) 0xe3,(byte) 0xc0,(byte) 0xc0,(byte) 0xff,(byte) 0xc3,(byte) 0xc3,(byte) 0x7e,(byte) 0x3c,
+ };
+
+ static final BitmapCharRec ch101 = new BitmapCharRec(8,10,-1,0,10,ch101data);
+
+// char: 0x64 'd'
+
+ static final byte[] ch100data = {
+ (byte) 0x3d,(byte) 0x80,(byte) 0x7f,(byte) 0x80,(byte) 0x63,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0x63,(byte) 0x80,
+(byte) 0x7f,(byte) 0x80,(byte) 0x3d,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch100 = new BitmapCharRec(9,14,-1,0,11,ch100data);
+
+// char: 0x63 'c'
+
+ static final byte[] ch99data = {
+ (byte) 0x3e,(byte) 0x7f,(byte) 0x63,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0x63,(byte) 0x7f,(byte) 0x3e,
+ };
+
+ static final BitmapCharRec ch99 = new BitmapCharRec(8,10,-1,0,10,ch99data);
+
+// char: 0x62 'b'
+
+ static final byte[] ch98data = {
+ (byte) 0xde,(byte) 0x0,(byte) 0xff,(byte) 0x0,(byte) 0xe3,(byte) 0x0,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xe3,(byte) 0x0,
+(byte) 0xff,(byte) 0x0,(byte) 0xde,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch98 = new BitmapCharRec(9,14,-1,0,11,ch98data);
+
+// char: 0x61 'a'
+
+ static final byte[] ch97data = {
+ (byte) 0x76,(byte) 0xee,(byte) 0xc6,(byte) 0xc6,(byte) 0xe6,(byte) 0x7e,(byte) 0xe,(byte) 0xc6,(byte) 0xee,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch97 = new BitmapCharRec(7,10,-1,0,9,ch97data);
+
+// char: 0x60 '`'
+
+ static final byte[] ch96data = {
+ (byte) 0xc0,(byte) 0xc0,(byte) 0x80,(byte) 0x80,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch96 = new BitmapCharRec(2,5,-1,-9,4,ch96data);
+
+// char: 0x5f '_'
+
+ static final byte[] ch95data = {
+ (byte) 0xff,(byte) 0xc0,(byte) 0xff,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch95 = new BitmapCharRec(10,2,0,4,10,ch95data);
+
+// char: 0x5e '^'
+
+ static final byte[] ch94data = {
+ (byte) 0x82,(byte) 0xc6,(byte) 0x6c,(byte) 0x38,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch94 = new BitmapCharRec(7,5,-1,-8,9,ch94data);
+
+// char: 0x5d ']'
+
+ static final byte[] ch93data = {
+ (byte) 0xf0,(byte) 0xf0,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,
+(byte) 0xf0,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch93 = new BitmapCharRec(4,18,0,4,5,ch93data);
+
+// char: 0x5c '\'
+
+ static final byte[] ch92data = {
+ (byte) 0x18,(byte) 0x18,(byte) 0x10,(byte) 0x10,(byte) 0x30,(byte) 0x30,(byte) 0x20,(byte) 0x20,(byte) 0x60,(byte) 0x60,(byte) 0x40,(byte) 0x40,(byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch92 = new BitmapCharRec(5,14,0,0,5,ch92data);
+
+// char: 0x5b '['
+
+ static final byte[] ch91data = {
+ (byte) 0xf0,(byte) 0xf0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,
+(byte) 0xf0,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch91 = new BitmapCharRec(4,18,-1,4,5,ch91data);
+
+// char: 0x5a 'Z'
+
+ static final byte[] ch90data = {
+ (byte) 0xff,(byte) 0xc0,(byte) 0xff,(byte) 0xc0,(byte) 0xc0,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x18,(byte) 0x0,(byte) 0x1c,(byte) 0x0,(byte) 0xc,(byte) 0x0,
+(byte) 0x6,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0x1,(byte) 0x80,(byte) 0x0,(byte) 0xc0,(byte) 0xff,(byte) 0xc0,(byte) 0xff,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch90 = new BitmapCharRec(10,14,-1,0,12,ch90data);
+
+// char: 0x59 'Y'
+
+ static final byte[] ch89data = {
+ (byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0xf,(byte) 0x0,(byte) 0x19,(byte) 0x80,
+(byte) 0x30,(byte) 0xc0,(byte) 0x30,(byte) 0xc0,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0xc0,(byte) 0x30,(byte) 0xc0,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch89 = new BitmapCharRec(12,14,-1,0,14,ch89data);
+
+// char: 0x58 'X'
+
+ static final byte[] ch88data = {
+ (byte) 0xc0,(byte) 0x60,(byte) 0xe0,(byte) 0xe0,(byte) 0x60,(byte) 0xc0,(byte) 0x71,(byte) 0xc0,(byte) 0x31,(byte) 0x80,(byte) 0x1b,(byte) 0x0,(byte) 0xe,(byte) 0x0,(byte) 0xe,(byte) 0x0,
+(byte) 0x1b,(byte) 0x0,(byte) 0x31,(byte) 0x80,(byte) 0x71,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0xe0,(byte) 0xe0,(byte) 0xc0,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch88 = new BitmapCharRec(11,14,-1,0,13,ch88data);
+
+// char: 0x57 'W'
+
+ static final byte[] ch87data = {
+ (byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x1c,(byte) 0x38,(byte) 0x34,(byte) 0x2c,(byte) 0x36,(byte) 0x6c,(byte) 0x36,(byte) 0x6c,(byte) 0x66,(byte) 0x66,(byte) 0x66,(byte) 0x66,
+(byte) 0x62,(byte) 0x46,(byte) 0x63,(byte) 0xc6,(byte) 0xc3,(byte) 0xc3,(byte) 0xc1,(byte) 0x83,(byte) 0xc1,(byte) 0x83,(byte) 0xc1,(byte) 0x83,
+ };
+
+ static final BitmapCharRec ch87 = new BitmapCharRec(16,14,-1,0,18,ch87data);
+
+// char: 0x56 'V'
+
+ static final byte[] ch86data = {
+ (byte) 0x6,(byte) 0x0,(byte) 0xf,(byte) 0x0,(byte) 0xf,(byte) 0x0,(byte) 0x19,(byte) 0x80,(byte) 0x19,(byte) 0x80,(byte) 0x19,(byte) 0x80,(byte) 0x30,(byte) 0xc0,(byte) 0x30,(byte) 0xc0,
+(byte) 0x30,(byte) 0xc0,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0xc0,(byte) 0x30,(byte) 0xc0,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch86 = new BitmapCharRec(12,14,-1,0,14,ch86data);
+
+// char: 0x55 'U'
+
+ static final byte[] ch85data = {
+ (byte) 0x1f,(byte) 0x0,(byte) 0x7f,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,
+(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch85 = new BitmapCharRec(11,14,-1,0,13,ch85data);
+
+// char: 0x54 'T'
+
+ static final byte[] ch84data = {
+ (byte) 0xc,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0xc,(byte) 0x0,
+(byte) 0xc,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0xff,(byte) 0xc0,(byte) 0xff,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch84 = new BitmapCharRec(10,14,-1,0,12,ch84data);
+
+// char: 0x53 'S'
+
+ static final byte[] ch83data = {
+ (byte) 0x3f,(byte) 0x0,(byte) 0x7f,(byte) 0xc0,(byte) 0xe0,(byte) 0xe0,(byte) 0xc0,(byte) 0x60,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0xe0,(byte) 0x3,(byte) 0xc0,(byte) 0x1f,(byte) 0x0,
+(byte) 0x7c,(byte) 0x0,(byte) 0xe0,(byte) 0x0,(byte) 0xc0,(byte) 0x60,(byte) 0xe0,(byte) 0xe0,(byte) 0x7f,(byte) 0xc0,(byte) 0x1f,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch83 = new BitmapCharRec(11,14,-1,0,13,ch83data);
+
+// char: 0x52 'R'
+
+ static final byte[] ch82data = {
+ (byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xff,(byte) 0x0,(byte) 0xff,(byte) 0x80,
+(byte) 0xc1,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc1,(byte) 0xc0,(byte) 0xff,(byte) 0x80,(byte) 0xff,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch82 = new BitmapCharRec(10,14,-1,0,12,ch82data);
+
+// char: 0x51 'Q'
+
+ static final byte[] ch81data = {
+ (byte) 0x0,(byte) 0x30,(byte) 0xf,(byte) 0xb0,(byte) 0x3f,(byte) 0xe0,(byte) 0x70,(byte) 0xf0,(byte) 0x61,(byte) 0xb0,(byte) 0xe1,(byte) 0xb8,(byte) 0xc0,(byte) 0x18,(byte) 0xc0,(byte) 0x18,
+(byte) 0xc0,(byte) 0x18,(byte) 0xc0,(byte) 0x18,(byte) 0xe0,(byte) 0x38,(byte) 0x60,(byte) 0x30,(byte) 0x70,(byte) 0x70,(byte) 0x3f,(byte) 0xe0,(byte) 0xf,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch81 = new BitmapCharRec(13,15,-1,1,15,ch81data);
+
+// char: 0x50 'P'
+
+ static final byte[] ch80data = {
+ (byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xff,(byte) 0x0,(byte) 0xff,(byte) 0x80,
+(byte) 0xc1,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc1,(byte) 0xc0,(byte) 0xff,(byte) 0x80,(byte) 0xff,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch80 = new BitmapCharRec(10,14,-1,0,12,ch80data);
+
+// char: 0x4f 'O'
+
+ static final byte[] ch79data = {
+ (byte) 0xf,(byte) 0x80,(byte) 0x3f,(byte) 0xe0,(byte) 0x70,(byte) 0x70,(byte) 0x60,(byte) 0x30,(byte) 0xe0,(byte) 0x38,(byte) 0xc0,(byte) 0x18,(byte) 0xc0,(byte) 0x18,(byte) 0xc0,(byte) 0x18,
+(byte) 0xc0,(byte) 0x18,(byte) 0xe0,(byte) 0x38,(byte) 0x60,(byte) 0x30,(byte) 0x70,(byte) 0x70,(byte) 0x3f,(byte) 0xe0,(byte) 0xf,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch79 = new BitmapCharRec(13,14,-1,0,15,ch79data);
+
+// char: 0x4e 'N'
+
+ static final byte[] ch78data = {
+ (byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0xe0,(byte) 0xc1,(byte) 0xe0,(byte) 0xc1,(byte) 0xe0,(byte) 0xc3,(byte) 0x60,(byte) 0xc6,(byte) 0x60,(byte) 0xc6,(byte) 0x60,(byte) 0xcc,(byte) 0x60,
+(byte) 0xcc,(byte) 0x60,(byte) 0xd8,(byte) 0x60,(byte) 0xf0,(byte) 0x60,(byte) 0xf0,(byte) 0x60,(byte) 0xe0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch78 = new BitmapCharRec(11,14,-1,0,13,ch78data);
+
+// char: 0x4d 'M'
+
+ static final byte[] ch77data = {
+ (byte) 0xc3,(byte) 0xc,(byte) 0xc3,(byte) 0xc,(byte) 0xc7,(byte) 0x8c,(byte) 0xc4,(byte) 0x8c,(byte) 0xcc,(byte) 0xcc,(byte) 0xcc,(byte) 0xcc,(byte) 0xd8,(byte) 0x6c,(byte) 0xd8,(byte) 0x6c,
+(byte) 0xf0,(byte) 0x3c,(byte) 0xf0,(byte) 0x3c,(byte) 0xe0,(byte) 0x1c,(byte) 0xe0,(byte) 0x1c,(byte) 0xc0,(byte) 0xc,(byte) 0xc0,(byte) 0xc,
+ };
+
+ static final BitmapCharRec ch77 = new BitmapCharRec(14,14,-1,0,16,ch77data);
+
+// char: 0x4c 'L'
+
+ static final byte[] ch76data = {
+ (byte) 0xff,(byte) 0xff,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch76 = new BitmapCharRec(8,14,-1,0,10,ch76data);
+
+// char: 0x4b 'K'
+
+ static final byte[] ch75data = {
+ (byte) 0xc0,(byte) 0x70,(byte) 0xc0,(byte) 0xe0,(byte) 0xc1,(byte) 0xc0,(byte) 0xc3,(byte) 0x80,(byte) 0xc7,(byte) 0x0,(byte) 0xce,(byte) 0x0,(byte) 0xfc,(byte) 0x0,(byte) 0xf8,(byte) 0x0,
+(byte) 0xdc,(byte) 0x0,(byte) 0xce,(byte) 0x0,(byte) 0xc7,(byte) 0x0,(byte) 0xc3,(byte) 0x80,(byte) 0xc1,(byte) 0xc0,(byte) 0xc0,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch75 = new BitmapCharRec(12,14,-1,0,13,ch75data);
+
+// char: 0x4a 'J'
+
+ static final byte[] ch74data = {
+ (byte) 0x3c,(byte) 0x7e,(byte) 0xe7,(byte) 0xc3,(byte) 0xc3,(byte) 0x3,(byte) 0x3,(byte) 0x3,(byte) 0x3,(byte) 0x3,(byte) 0x3,(byte) 0x3,(byte) 0x3,(byte) 0x3,
+ };
+
+ static final BitmapCharRec ch74 = new BitmapCharRec(8,14,-1,0,10,ch74data);
+
+// char: 0x49 'I'
+
+ static final byte[] ch73data = {
+ (byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch73 = new BitmapCharRec(2,14,-2,0,6,ch73data);
+
+// char: 0x48 'H'
+
+ static final byte[] ch72data = {
+ (byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xff,(byte) 0xe0,(byte) 0xff,(byte) 0xe0,
+(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch72 = new BitmapCharRec(11,14,-1,0,13,ch72data);
+
+// char: 0x47 'G'
+
+ static final byte[] ch71data = {
+ (byte) 0xf,(byte) 0xb0,(byte) 0x3f,(byte) 0xf0,(byte) 0x70,(byte) 0x70,(byte) 0x60,(byte) 0x30,(byte) 0xe0,(byte) 0x30,(byte) 0xc1,(byte) 0xf0,(byte) 0xc1,(byte) 0xf0,(byte) 0xc0,(byte) 0x0,
+(byte) 0xc0,(byte) 0x0,(byte) 0xe0,(byte) 0x30,(byte) 0x60,(byte) 0x30,(byte) 0x70,(byte) 0x70,(byte) 0x3f,(byte) 0xe0,(byte) 0xf,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch71 = new BitmapCharRec(12,14,-1,0,14,ch71data);
+
+// char: 0x46 'F'
+
+ static final byte[] ch70data = {
+ (byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xff,(byte) 0x0,(byte) 0xff,(byte) 0x0,
+(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xff,(byte) 0x80,(byte) 0xff,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch70 = new BitmapCharRec(9,14,-1,0,11,ch70data);
+
+// char: 0x45 'E'
+
+ static final byte[] ch69data = {
+ (byte) 0xff,(byte) 0x80,(byte) 0xff,(byte) 0x80,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xff,(byte) 0x0,(byte) 0xff,(byte) 0x0,
+(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xff,(byte) 0x80,(byte) 0xff,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch69 = new BitmapCharRec(9,14,-1,0,11,ch69data);
+
+// char: 0x44 'D'
+
+ static final byte[] ch68data = {
+ (byte) 0xff,(byte) 0x0,(byte) 0xff,(byte) 0x80,(byte) 0xc1,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,
+(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0xc0,(byte) 0xc1,(byte) 0xc0,(byte) 0xff,(byte) 0x80,(byte) 0xff,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch68 = new BitmapCharRec(11,14,-1,0,13,ch68data);
+
+// char: 0x43 'C'
+
+ static final byte[] ch67data = {
+ (byte) 0xf,(byte) 0x80,(byte) 0x3f,(byte) 0xe0,(byte) 0x70,(byte) 0x70,(byte) 0x60,(byte) 0x30,(byte) 0xe0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,
+(byte) 0xc0,(byte) 0x0,(byte) 0xe0,(byte) 0x0,(byte) 0x60,(byte) 0x30,(byte) 0x70,(byte) 0x70,(byte) 0x3f,(byte) 0xe0,(byte) 0xf,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch67 = new BitmapCharRec(12,14,-1,0,14,ch67data);
+
+// char: 0x42 'B'
+
+ static final byte[] ch66data = {
+ (byte) 0xff,(byte) 0x80,(byte) 0xff,(byte) 0xc0,(byte) 0xc0,(byte) 0xe0,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0xe0,(byte) 0xff,(byte) 0xc0,(byte) 0xff,(byte) 0x80,
+(byte) 0xc1,(byte) 0x80,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc1,(byte) 0xc0,(byte) 0xff,(byte) 0x80,(byte) 0xff,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch66 = new BitmapCharRec(11,14,-1,0,13,ch66data);
+
+// char: 0x41 'A'
+
+ static final byte[] ch65data = {
+ (byte) 0xc0,(byte) 0x30,(byte) 0xc0,(byte) 0x30,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x7f,(byte) 0xe0,(byte) 0x3f,(byte) 0xc0,(byte) 0x30,(byte) 0xc0,(byte) 0x30,(byte) 0xc0,
+(byte) 0x19,(byte) 0x80,(byte) 0x19,(byte) 0x80,(byte) 0xf,(byte) 0x0,(byte) 0xf,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch65 = new BitmapCharRec(12,14,0,0,12,ch65data);
+
+// char: 0x40 '@'
+
+ static final byte[] ch64data = {
+ (byte) 0x7,(byte) 0xe0,(byte) 0x1f,(byte) 0xf0,(byte) 0x38,(byte) 0x0,(byte) 0x70,(byte) 0x0,(byte) 0x67,(byte) 0x70,(byte) 0xcf,(byte) 0xf8,(byte) 0xcc,(byte) 0xcc,(byte) 0xcc,(byte) 0x66,
+(byte) 0xcc,(byte) 0x66,(byte) 0xcc,(byte) 0x63,(byte) 0xc6,(byte) 0x33,(byte) 0x67,(byte) 0x73,(byte) 0x63,(byte) 0xb3,(byte) 0x30,(byte) 0x6,(byte) 0x1c,(byte) 0xe,(byte) 0xf,(byte) 0xfc,
+(byte) 0x3,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch64 = new BitmapCharRec(16,17,-1,3,18,ch64data);
+
+// char: 0x3f '?'
+
+ static final byte[] ch63data = {
+ (byte) 0x30,(byte) 0x30,(byte) 0x0,(byte) 0x0,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x38,(byte) 0x1c,(byte) 0xe,(byte) 0xc6,(byte) 0xc6,(byte) 0xfe,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch63 = new BitmapCharRec(7,14,-1,0,10,ch63data);
+
+// char: 0x3e '>'
+
+ static final byte[] ch62data = {
+ (byte) 0xc0,(byte) 0xf0,(byte) 0x3c,(byte) 0xe,(byte) 0x3,(byte) 0xe,(byte) 0x3c,(byte) 0xf0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch62 = new BitmapCharRec(8,9,-1,0,10,ch62data);
+
+// char: 0x3d '='
+
+ static final byte[] ch61data = {
+ (byte) 0xfe,(byte) 0xfe,(byte) 0x0,(byte) 0x0,(byte) 0xfe,(byte) 0xfe,
+ };
+
+ static final BitmapCharRec ch61 = new BitmapCharRec(7,6,-2,-2,11,ch61data);
+
+// char: 0x3c '<'
+
+ static final byte[] ch60data = {
+ (byte) 0x3,(byte) 0xf,(byte) 0x3c,(byte) 0x70,(byte) 0xc0,(byte) 0x70,(byte) 0x3c,(byte) 0xf,(byte) 0x3,
+ };
+
+ static final BitmapCharRec ch60 = new BitmapCharRec(8,9,-1,0,10,ch60data);
+
+// char: 0x3b ';'
+
+ static final byte[] ch59data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0xc0,(byte) 0xc0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch59 = new BitmapCharRec(2,13,-1,3,5,ch59data);
+
+// char: 0x3a ':'
+
+ static final byte[] ch58data = {
+ (byte) 0xc0,(byte) 0xc0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch58 = new BitmapCharRec(2,10,-1,0,5,ch58data);
+
+// char: 0x39 '9'
+
+ static final byte[] ch57data = {
+ (byte) 0x7c,(byte) 0xfe,(byte) 0xc6,(byte) 0x3,(byte) 0x3,(byte) 0x3b,(byte) 0x7f,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc7,(byte) 0x7e,(byte) 0x3c,
+ };
+
+ static final BitmapCharRec ch57 = new BitmapCharRec(8,13,-1,0,10,ch57data);
+
+// char: 0x38 '8'
+
+ static final byte[] ch56data = {
+ (byte) 0x3c,(byte) 0x7e,(byte) 0xe7,(byte) 0xc3,(byte) 0xc3,(byte) 0x66,(byte) 0x7e,(byte) 0x66,(byte) 0xc3,(byte) 0xc3,(byte) 0xe7,(byte) 0x7e,(byte) 0x3c,
+ };
+
+ static final BitmapCharRec ch56 = new BitmapCharRec(8,13,-1,0,10,ch56data);
+
+// char: 0x37 '7'
+
+ static final byte[] ch55data = {
+ (byte) 0x60,(byte) 0x60,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x18,(byte) 0x18,(byte) 0xc,(byte) 0xc,(byte) 0x6,(byte) 0x3,(byte) 0xff,(byte) 0xff,
+ };
+
+ static final BitmapCharRec ch55 = new BitmapCharRec(8,13,-1,0,10,ch55data);
+
+// char: 0x36 '6'
+
+ static final byte[] ch54data = {
+ (byte) 0x3c,(byte) 0x7e,(byte) 0xe3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xfe,(byte) 0xdc,(byte) 0xc0,(byte) 0xc0,(byte) 0x63,(byte) 0x7f,(byte) 0x3c,
+ };
+
+ static final BitmapCharRec ch54 = new BitmapCharRec(8,13,-1,0,10,ch54data);
+
+// char: 0x35 '5'
+
+ static final byte[] ch53data = {
+ (byte) 0x7c,(byte) 0xfe,(byte) 0xc7,(byte) 0xc3,(byte) 0x3,(byte) 0x3,(byte) 0xc7,(byte) 0xfe,(byte) 0xfc,(byte) 0xc0,(byte) 0xc0,(byte) 0xfe,(byte) 0xfe,
+ };
+
+ static final BitmapCharRec ch53 = new BitmapCharRec(8,13,-1,0,10,ch53data);
+
+// char: 0x34 '4'
+
+ static final byte[] ch52data = {
+ (byte) 0x3,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0xff,(byte) 0x80,(byte) 0xff,(byte) 0x80,(byte) 0xc3,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0x33,(byte) 0x0,
+(byte) 0x33,(byte) 0x0,(byte) 0x1b,(byte) 0x0,(byte) 0xf,(byte) 0x0,(byte) 0x7,(byte) 0x0,(byte) 0x3,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch52 = new BitmapCharRec(9,13,-1,0,10,ch52data);
+
+// char: 0x33 '3'
+
+ static final byte[] ch51data = {
+ (byte) 0x3c,(byte) 0x7e,(byte) 0xc7,(byte) 0xc3,(byte) 0x3,(byte) 0x7,(byte) 0x1e,(byte) 0x1c,(byte) 0x6,(byte) 0xc3,(byte) 0xc3,(byte) 0x7e,(byte) 0x3c,
+ };
+
+ static final BitmapCharRec ch51 = new BitmapCharRec(8,13,-1,0,10,ch51data);
+
+// char: 0x32 '2'
+
+ static final byte[] ch50data = {
+ (byte) 0xff,(byte) 0xff,(byte) 0xc0,(byte) 0xe0,(byte) 0x70,(byte) 0x38,(byte) 0x1c,(byte) 0xe,(byte) 0x7,(byte) 0x3,(byte) 0xc3,(byte) 0xfe,(byte) 0x3c,
+ };
+
+ static final BitmapCharRec ch50 = new BitmapCharRec(8,13,-1,0,10,ch50data);
+
+// char: 0x31 '1'
+
+ static final byte[] ch49data = {
+ (byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0xf8,(byte) 0xf8,(byte) 0x18,
+ };
+
+ static final BitmapCharRec ch49 = new BitmapCharRec(5,13,-2,0,10,ch49data);
+
+// char: 0x30 '0'
+
+ static final byte[] ch48data = {
+ (byte) 0x3c,(byte) 0x7e,(byte) 0x66,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0xc3,(byte) 0x66,(byte) 0x7e,(byte) 0x3c,
+ };
+
+ static final BitmapCharRec ch48 = new BitmapCharRec(8,13,-1,0,10,ch48data);
+
+// char: 0x2f '/'
+
+ static final byte[] ch47data = {
+ (byte) 0xc0,(byte) 0xc0,(byte) 0x40,(byte) 0x40,(byte) 0x60,(byte) 0x60,(byte) 0x20,(byte) 0x20,(byte) 0x30,(byte) 0x30,(byte) 0x10,(byte) 0x10,(byte) 0x18,(byte) 0x18,
+ };
+
+ static final BitmapCharRec ch47 = new BitmapCharRec(5,14,0,0,5,ch47data);
+
+// char: 0x2e '.'
+
+ static final byte[] ch46data = {
+ (byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch46 = new BitmapCharRec(2,2,-1,0,5,ch46data);
+
+// char: 0x2d '-'
+
+ static final byte[] ch45data = {
+ (byte) 0xff,(byte) 0xff,
+ };
+
+ static final BitmapCharRec ch45 = new BitmapCharRec(8,2,-1,-4,11,ch45data);
+
+// char: 0x2c ','
+
+ static final byte[] ch44data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch44 = new BitmapCharRec(2,5,-1,3,5,ch44data);
+
+// char: 0x2b '+'
+
+ static final byte[] ch43data = {
+ (byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0xff,(byte) 0xff,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,
+ };
+
+ static final BitmapCharRec ch43 = new BitmapCharRec(8,10,-1,0,10,ch43data);
+
+// char: 0x2a '*'
+
+ static final byte[] ch42data = {
+ (byte) 0x88,(byte) 0x70,(byte) 0x70,(byte) 0xf8,(byte) 0x20,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch42 = new BitmapCharRec(5,6,-1,-8,7,ch42data);
+
+// char: 0x29 ')'
+
+ static final byte[] ch41data = {
+ (byte) 0x80,(byte) 0xc0,(byte) 0x60,(byte) 0x60,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x60,(byte) 0x60,
+(byte) 0xc0,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch41 = new BitmapCharRec(4,18,-1,4,6,ch41data);
+
+// char: 0x28 '('
+
+ static final byte[] ch40data = {
+ (byte) 0x10,(byte) 0x30,(byte) 0x60,(byte) 0x60,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0x60,(byte) 0x60,
+(byte) 0x30,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch40 = new BitmapCharRec(4,18,-1,4,6,ch40data);
+
+// char: 0x27 '''
+
+ static final byte[] ch39data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch39 = new BitmapCharRec(2,5,-1,-9,4,ch39data);
+
+// char: 0x26 '&'
+
+ static final byte[] ch38data = {
+ (byte) 0x3c,(byte) 0x70,(byte) 0x7e,(byte) 0xe0,(byte) 0xe7,(byte) 0xc0,(byte) 0xc3,(byte) 0x80,(byte) 0xc3,(byte) 0xc0,(byte) 0xc6,(byte) 0xc0,(byte) 0xee,(byte) 0xc0,(byte) 0x7c,(byte) 0x0,
+(byte) 0x3c,(byte) 0x0,(byte) 0x66,(byte) 0x0,(byte) 0x66,(byte) 0x0,(byte) 0x7e,(byte) 0x0,(byte) 0x3c,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch38 = new BitmapCharRec(12,13,-1,0,13,ch38data);
+
+// char: 0x25 '%'
+
+ static final byte[] ch37data = {
+ (byte) 0x18,(byte) 0x78,(byte) 0x18,(byte) 0xfc,(byte) 0xc,(byte) 0xcc,(byte) 0xc,(byte) 0xcc,(byte) 0x6,(byte) 0xfc,(byte) 0x6,(byte) 0x78,(byte) 0x3,(byte) 0x0,(byte) 0x7b,(byte) 0x0,
+(byte) 0xfd,(byte) 0x80,(byte) 0xcd,(byte) 0x80,(byte) 0xcc,(byte) 0xc0,(byte) 0xfc,(byte) 0xc0,(byte) 0x78,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch37 = new BitmapCharRec(14,13,-1,0,16,ch37data);
+
+// char: 0x24 '$'
+
+ static final byte[] ch36data = {
+ (byte) 0x8,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x3e,(byte) 0x0,(byte) 0x7f,(byte) 0x0,(byte) 0xeb,(byte) 0x80,(byte) 0xc9,(byte) 0x80,(byte) 0x9,(byte) 0x80,(byte) 0xf,(byte) 0x0,
+(byte) 0x3e,(byte) 0x0,(byte) 0x78,(byte) 0x0,(byte) 0xe8,(byte) 0x0,(byte) 0xc8,(byte) 0x0,(byte) 0xcb,(byte) 0x0,(byte) 0x7f,(byte) 0x0,(byte) 0x3e,(byte) 0x0,(byte) 0x8,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch36 = new BitmapCharRec(9,16,-1,2,10,ch36data);
+
+// char: 0x23 '#'
+
+ static final byte[] ch35data = {
+ (byte) 0x24,(byte) 0x0,(byte) 0x24,(byte) 0x0,(byte) 0x24,(byte) 0x0,(byte) 0xff,(byte) 0x80,(byte) 0xff,(byte) 0x80,(byte) 0x12,(byte) 0x0,(byte) 0x12,(byte) 0x0,(byte) 0x12,(byte) 0x0,
+(byte) 0x7f,(byte) 0xc0,(byte) 0x7f,(byte) 0xc0,(byte) 0x9,(byte) 0x0,(byte) 0x9,(byte) 0x0,(byte) 0x9,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch35 = new BitmapCharRec(10,13,0,0,10,ch35data);
+
+// char: 0x22 '"'
+
+ static final byte[] ch34data = {
+ (byte) 0x90,(byte) 0x90,(byte) 0xd8,(byte) 0xd8,(byte) 0xd8,
+ };
+
+ static final BitmapCharRec ch34 = new BitmapCharRec(5,5,0,-9,5,ch34data);
+
+// char: 0x21 '!'
+
+ static final byte[] ch33data = {
+ (byte) 0xc0,(byte) 0xc0,(byte) 0x0,(byte) 0x0,(byte) 0x80,(byte) 0x80,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch33 = new BitmapCharRec(2,14,-2,0,6,ch33data);
+
+// char: 0x20 ' '
+
+ static final BitmapCharRec ch32 = new BitmapCharRec(0,0,0,0,5,zerodata);
+
+ static final BitmapCharRec chars[] = {
+ ch32,
+ ch33,
+ ch34,
+ ch35,
+ ch36,
+ ch37,
+ ch38,
+ ch39,
+ ch40,
+ ch41,
+ ch42,
+ ch43,
+ ch44,
+ ch45,
+ ch46,
+ ch47,
+ ch48,
+ ch49,
+ ch50,
+ ch51,
+ ch52,
+ ch53,
+ ch54,
+ ch55,
+ ch56,
+ ch57,
+ ch58,
+ ch59,
+ ch60,
+ ch61,
+ ch62,
+ ch63,
+ ch64,
+ ch65,
+ ch66,
+ ch67,
+ ch68,
+ ch69,
+ ch70,
+ ch71,
+ ch72,
+ ch73,
+ ch74,
+ ch75,
+ ch76,
+ ch77,
+ ch78,
+ ch79,
+ ch80,
+ ch81,
+ ch82,
+ ch83,
+ ch84,
+ ch85,
+ ch86,
+ ch87,
+ ch88,
+ ch89,
+ ch90,
+ ch91,
+ ch92,
+ ch93,
+ ch94,
+ ch95,
+ ch96,
+ ch97,
+ ch98,
+ ch99,
+ ch100,
+ ch101,
+ ch102,
+ ch103,
+ ch104,
+ ch105,
+ ch106,
+ ch107,
+ ch108,
+ ch109,
+ ch110,
+ ch111,
+ ch112,
+ ch113,
+ ch114,
+ ch115,
+ ch116,
+ ch117,
+ ch118,
+ ch119,
+ ch120,
+ ch121,
+ ch122,
+ ch123,
+ ch124,
+ ch125,
+ ch126,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ ch160,
+ ch161,
+ ch162,
+ ch163,
+ ch164,
+ ch165,
+ ch166,
+ ch167,
+ ch168,
+ ch169,
+ ch170,
+ ch171,
+ ch172,
+ ch173,
+ ch174,
+ ch175,
+ ch176,
+ ch177,
+ ch178,
+ ch179,
+ ch180,
+ ch181,
+ ch182,
+ ch183,
+ ch184,
+ ch185,
+ ch186,
+ ch187,
+ ch188,
+ ch189,
+ ch190,
+ ch191,
+ ch192,
+ ch193,
+ ch194,
+ ch195,
+ ch196,
+ ch197,
+ ch198,
+ ch199,
+ ch200,
+ ch201,
+ ch202,
+ ch203,
+ ch204,
+ ch205,
+ ch206,
+ ch207,
+ ch208,
+ ch209,
+ ch210,
+ ch211,
+ ch212,
+ ch213,
+ ch214,
+ ch215,
+ ch216,
+ ch217,
+ ch218,
+ ch219,
+ ch220,
+ ch221,
+ ch222,
+ ch223,
+ ch224,
+ ch225,
+ ch226,
+ ch227,
+ ch228,
+ ch229,
+ ch230,
+ ch231,
+ ch232,
+ ch233,
+ ch234,
+ ch235,
+ ch236,
+ ch237,
+ ch238,
+ ch239,
+ ch240,
+ ch241,
+ ch242,
+ ch243,
+ ch244,
+ ch245,
+ ch246,
+ ch247,
+ ch248,
+ ch249,
+ ch250,
+ ch251,
+ ch252,
+ ch253,
+ ch254,
+ ch255,
+ };
+
+ static final BitmapFontRec fontinfo = new BitmapFontRec(
+ "-adobe-helvetica-medium-r-*--18-*-*-*-p-*-iso8859-1",
+ 224,
+ 32,
+ chars
+ );
+
+ public static BitmapFontRec getBitmapFontRec() {
+ return fontinfo;
+ }
+} // end of class glutBitmapHelvetica18
diff --git a/gl4java/utils/glut/fonts/data/glutBitmapTimesRoman10.java b/gl4java/utils/glut/fonts/data/glutBitmapTimesRoman10.java
new file mode 100644
index 0000000..4c69b9d
--- /dev/null
+++ b/gl4java/utils/glut/fonts/data/glutBitmapTimesRoman10.java
@@ -0,0 +1,1768 @@
+
+// GENERATED FILE -- DO NOT MODIFY
+
+package gl4java.utils.glut.fonts.data;
+
+import gl4java.utils.glut.fonts.*;
+
+
+public class glutBitmapTimesRoman10 implements GLUTBitmapFont {
+ private static byte[] zerodata={ 0 };
+// char: 0xff
+
+ static final byte[] ch255data = {
+ (byte) 0x80,(byte) 0xc0,(byte) 0x40,(byte) 0x60,(byte) 0xa0,(byte) 0x90,(byte) 0xb8,(byte) 0x0,(byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch255 = new BitmapCharRec(5,9,0,2,5,ch255data);
+
+// char: 0xfe
+
+ static final byte[] ch254data = {
+ (byte) 0xc0,(byte) 0x80,(byte) 0xe0,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0xe0,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch254 = new BitmapCharRec(4,9,0,2,5,ch254data);
+
+// char: 0xfd
+
+ static final byte[] ch253data = {
+ (byte) 0x80,(byte) 0xc0,(byte) 0x40,(byte) 0x60,(byte) 0xa0,(byte) 0x90,(byte) 0xb8,(byte) 0x0,(byte) 0x20,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch253 = new BitmapCharRec(5,10,0,2,5,ch253data);
+
+// char: 0xfc
+
+ static final byte[] ch252data = {
+ (byte) 0x68,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x0,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch252 = new BitmapCharRec(5,7,0,0,5,ch252data);
+
+// char: 0xfb
+
+ static final byte[] ch251data = {
+ (byte) 0x68,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x0,(byte) 0x50,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch251 = new BitmapCharRec(5,8,0,0,5,ch251data);
+
+// char: 0xfa
+
+ static final byte[] ch250data = {
+ (byte) 0x68,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x0,(byte) 0x40,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch250 = new BitmapCharRec(5,8,0,0,5,ch250data);
+
+// char: 0xf9
+
+ static final byte[] ch249data = {
+ (byte) 0x68,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x0,(byte) 0x20,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch249 = new BitmapCharRec(5,8,0,0,5,ch249data);
+
+// char: 0xf8
+
+ static final byte[] ch248data = {
+ (byte) 0x80,(byte) 0x70,(byte) 0x48,(byte) 0x48,(byte) 0x48,(byte) 0x38,(byte) 0x4,
+ };
+
+ static final BitmapCharRec ch248 = new BitmapCharRec(6,7,1,1,5,ch248data);
+
+// char: 0xf7
+
+ static final byte[] ch247data = {
+ (byte) 0x20,(byte) 0x0,(byte) 0xf8,(byte) 0x0,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch247 = new BitmapCharRec(5,5,0,0,6,ch247data);
+
+// char: 0xf6
+
+ static final byte[] ch246data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x60,(byte) 0x0,(byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch246 = new BitmapCharRec(4,7,0,0,5,ch246data);
+
+// char: 0xf5
+
+ static final byte[] ch245data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x60,(byte) 0x0,(byte) 0xa0,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch245 = new BitmapCharRec(4,8,0,0,5,ch245data);
+
+// char: 0xf4
+
+ static final byte[] ch244data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x60,(byte) 0x0,(byte) 0xa0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch244 = new BitmapCharRec(4,8,0,0,5,ch244data);
+
+// char: 0xf3
+
+ static final byte[] ch243data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x60,(byte) 0x0,(byte) 0x40,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch243 = new BitmapCharRec(4,8,0,0,5,ch243data);
+
+// char: 0xf2
+
+ static final byte[] ch242data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x60,(byte) 0x0,(byte) 0x20,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch242 = new BitmapCharRec(4,8,0,0,5,ch242data);
+
+// char: 0xf1
+
+ static final byte[] ch241data = {
+ (byte) 0xd8,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0xe0,(byte) 0x0,(byte) 0xa0,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch241 = new BitmapCharRec(5,8,0,0,5,ch241data);
+
+// char: 0xf0
+
+ static final byte[] ch240data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x70,(byte) 0xa0,(byte) 0x70,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch240 = new BitmapCharRec(4,8,0,0,5,ch240data);
+
+// char: 0xef
+
+ static final byte[] ch239data = {
+ (byte) 0xe0,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xc0,(byte) 0x0,(byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch239 = new BitmapCharRec(3,7,0,0,4,ch239data);
+
+// char: 0xee
+
+ static final byte[] ch238data = {
+ (byte) 0xe0,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xc0,(byte) 0x0,(byte) 0xa0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch238 = new BitmapCharRec(3,8,0,0,4,ch238data);
+
+// char: 0xed
+
+ static final byte[] ch237data = {
+ (byte) 0xe0,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xc0,(byte) 0x0,(byte) 0x40,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch237 = new BitmapCharRec(3,8,0,0,4,ch237data);
+
+// char: 0xec
+
+ static final byte[] ch236data = {
+ (byte) 0xe0,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xc0,(byte) 0x0,(byte) 0x40,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch236 = new BitmapCharRec(3,8,0,0,4,ch236data);
+
+// char: 0xeb
+
+ static final byte[] ch235data = {
+ (byte) 0x60,(byte) 0x80,(byte) 0xc0,(byte) 0xa0,(byte) 0x60,(byte) 0x0,(byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch235 = new BitmapCharRec(3,7,0,0,4,ch235data);
+
+// char: 0xea
+
+ static final byte[] ch234data = {
+ (byte) 0x60,(byte) 0x80,(byte) 0xc0,(byte) 0xa0,(byte) 0x60,(byte) 0x0,(byte) 0xa0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch234 = new BitmapCharRec(3,8,0,0,4,ch234data);
+
+// char: 0xe9
+
+ static final byte[] ch233data = {
+ (byte) 0x60,(byte) 0x80,(byte) 0xc0,(byte) 0xa0,(byte) 0x60,(byte) 0x0,(byte) 0x40,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch233 = new BitmapCharRec(3,8,0,0,4,ch233data);
+
+// char: 0xe8
+
+ static final byte[] ch232data = {
+ (byte) 0x60,(byte) 0x80,(byte) 0xc0,(byte) 0xa0,(byte) 0x60,(byte) 0x0,(byte) 0x40,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch232 = new BitmapCharRec(3,8,0,0,4,ch232data);
+
+// char: 0xe7
+
+ static final byte[] ch231data = {
+ (byte) 0xc0,(byte) 0x20,(byte) 0x40,(byte) 0x60,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch231 = new BitmapCharRec(3,8,0,3,4,ch231data);
+
+// char: 0xe6
+
+ static final byte[] ch230data = {
+ (byte) 0xd8,(byte) 0xa0,(byte) 0x70,(byte) 0x28,(byte) 0xd8,
+ };
+
+ static final BitmapCharRec ch230 = new BitmapCharRec(5,5,0,0,6,ch230data);
+
+// char: 0xe5
+
+ static final byte[] ch229data = {
+ (byte) 0xe0,(byte) 0xa0,(byte) 0x60,(byte) 0x20,(byte) 0xc0,(byte) 0x40,(byte) 0xa0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch229 = new BitmapCharRec(3,8,0,0,4,ch229data);
+
+// char: 0xe4
+
+ static final byte[] ch228data = {
+ (byte) 0xe0,(byte) 0xa0,(byte) 0x60,(byte) 0x20,(byte) 0xc0,(byte) 0x0,(byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch228 = new BitmapCharRec(3,7,0,0,4,ch228data);
+
+// char: 0xe3
+
+ static final byte[] ch227data = {
+ (byte) 0xe0,(byte) 0xa0,(byte) 0x60,(byte) 0x20,(byte) 0xc0,(byte) 0x0,(byte) 0xa0,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch227 = new BitmapCharRec(4,8,0,0,4,ch227data);
+
+// char: 0xe2
+
+ static final byte[] ch226data = {
+ (byte) 0xe0,(byte) 0xa0,(byte) 0x60,(byte) 0x20,(byte) 0xc0,(byte) 0x0,(byte) 0xa0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch226 = new BitmapCharRec(3,8,0,0,4,ch226data);
+
+// char: 0xe1
+
+ static final byte[] ch225data = {
+ (byte) 0xe0,(byte) 0xa0,(byte) 0x60,(byte) 0x20,(byte) 0xc0,(byte) 0x0,(byte) 0x40,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch225 = new BitmapCharRec(3,8,0,0,4,ch225data);
+
+// char: 0xe0
+
+ static final byte[] ch224data = {
+ (byte) 0xe0,(byte) 0xa0,(byte) 0x60,(byte) 0x20,(byte) 0xc0,(byte) 0x0,(byte) 0x40,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch224 = new BitmapCharRec(3,8,0,0,4,ch224data);
+
+// char: 0xdf
+
+ static final byte[] ch223data = {
+ (byte) 0xe0,(byte) 0x50,(byte) 0x50,(byte) 0x60,(byte) 0x50,(byte) 0x50,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch223 = new BitmapCharRec(4,7,0,0,5,ch223data);
+
+// char: 0xde
+
+ static final byte[] ch222data = {
+ (byte) 0xe0,(byte) 0x40,(byte) 0x70,(byte) 0x48,(byte) 0x70,(byte) 0x40,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch222 = new BitmapCharRec(5,7,0,0,6,ch222data);
+
+// char: 0xdd
+
+ static final byte[] ch221data = {
+ (byte) 0x38,(byte) 0x10,(byte) 0x10,(byte) 0x28,(byte) 0x28,(byte) 0x44,(byte) 0xee,(byte) 0x0,(byte) 0x10,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch221 = new BitmapCharRec(7,10,0,0,8,ch221data);
+
+// char: 0xdc
+
+ static final byte[] ch220data = {
+ (byte) 0x38,(byte) 0x6c,(byte) 0x44,(byte) 0x44,(byte) 0x44,(byte) 0x44,(byte) 0xee,(byte) 0x0,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch220 = new BitmapCharRec(7,9,0,0,8,ch220data);
+
+// char: 0xdb
+
+ static final byte[] ch219data = {
+ (byte) 0x38,(byte) 0x6c,(byte) 0x44,(byte) 0x44,(byte) 0x44,(byte) 0x44,(byte) 0xee,(byte) 0x0,(byte) 0x28,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch219 = new BitmapCharRec(7,10,0,0,8,ch219data);
+
+// char: 0xda
+
+ static final byte[] ch218data = {
+ (byte) 0x38,(byte) 0x6c,(byte) 0x44,(byte) 0x44,(byte) 0x44,(byte) 0x44,(byte) 0xee,(byte) 0x0,(byte) 0x10,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch218 = new BitmapCharRec(7,10,0,0,8,ch218data);
+
+// char: 0xd9
+
+ static final byte[] ch217data = {
+ (byte) 0x38,(byte) 0x6c,(byte) 0x44,(byte) 0x44,(byte) 0x44,(byte) 0x44,(byte) 0xee,(byte) 0x0,(byte) 0x10,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch217 = new BitmapCharRec(7,10,0,0,8,ch217data);
+
+// char: 0xd8
+
+ static final byte[] ch216data = {
+ (byte) 0x80,(byte) 0x7c,(byte) 0x66,(byte) 0x52,(byte) 0x52,(byte) 0x4a,(byte) 0x66,(byte) 0x3e,(byte) 0x1,
+ };
+
+ static final BitmapCharRec ch216 = new BitmapCharRec(8,9,0,1,8,ch216data);
+
+// char: 0xd7
+
+ static final byte[] ch215data = {
+ (byte) 0x88,(byte) 0x50,(byte) 0x20,(byte) 0x50,(byte) 0x88,
+ };
+
+ static final BitmapCharRec ch215 = new BitmapCharRec(5,5,0,0,6,ch215data);
+
+// char: 0xd6
+
+ static final byte[] ch214data = {
+ (byte) 0x78,(byte) 0xcc,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0xcc,(byte) 0x78,(byte) 0x0,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch214 = new BitmapCharRec(6,9,0,0,7,ch214data);
+
+// char: 0xd5
+
+ static final byte[] ch213data = {
+ (byte) 0x78,(byte) 0xcc,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0xcc,(byte) 0x78,(byte) 0x0,(byte) 0x50,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch213 = new BitmapCharRec(6,10,0,0,7,ch213data);
+
+// char: 0xd4
+
+ static final byte[] ch212data = {
+ (byte) 0x78,(byte) 0xcc,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0xcc,(byte) 0x78,(byte) 0x0,(byte) 0x50,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch212 = new BitmapCharRec(6,10,0,0,7,ch212data);
+
+// char: 0xd3
+
+ static final byte[] ch211data = {
+ (byte) 0x78,(byte) 0xcc,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0xcc,(byte) 0x78,(byte) 0x0,(byte) 0x10,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch211 = new BitmapCharRec(6,10,0,0,7,ch211data);
+
+// char: 0xd2
+
+ static final byte[] ch210data = {
+ (byte) 0x78,(byte) 0xcc,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0xcc,(byte) 0x78,(byte) 0x0,(byte) 0x20,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch210 = new BitmapCharRec(6,10,0,0,7,ch210data);
+
+// char: 0xd1
+
+ static final byte[] ch209data = {
+ (byte) 0xe4,(byte) 0x4c,(byte) 0x4c,(byte) 0x54,(byte) 0x54,(byte) 0x64,(byte) 0xee,(byte) 0x0,(byte) 0x50,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch209 = new BitmapCharRec(7,10,0,0,8,ch209data);
+
+// char: 0xd0
+
+ static final byte[] ch208data = {
+ (byte) 0xf8,(byte) 0x4c,(byte) 0x44,(byte) 0xe4,(byte) 0x44,(byte) 0x4c,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch208 = new BitmapCharRec(6,7,0,0,7,ch208data);
+
+// char: 0xcf
+
+ static final byte[] ch207data = {
+ (byte) 0xe0,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xe0,(byte) 0x0,(byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch207 = new BitmapCharRec(3,9,0,0,4,ch207data);
+
+// char: 0xce
+
+ static final byte[] ch206data = {
+ (byte) 0xe0,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xe0,(byte) 0x0,(byte) 0xa0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch206 = new BitmapCharRec(3,10,0,0,4,ch206data);
+
+// char: 0xcd
+
+ static final byte[] ch205data = {
+ (byte) 0xe0,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xe0,(byte) 0x0,(byte) 0x40,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch205 = new BitmapCharRec(3,10,0,0,4,ch205data);
+
+// char: 0xcc
+
+ static final byte[] ch204data = {
+ (byte) 0xe0,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xe0,(byte) 0x0,(byte) 0x40,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch204 = new BitmapCharRec(3,10,0,0,4,ch204data);
+
+// char: 0xcb
+
+ static final byte[] ch203data = {
+ (byte) 0xf8,(byte) 0x48,(byte) 0x40,(byte) 0x70,(byte) 0x40,(byte) 0x48,(byte) 0xf8,(byte) 0x0,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch203 = new BitmapCharRec(5,9,0,0,6,ch203data);
+
+// char: 0xca
+
+ static final byte[] ch202data = {
+ (byte) 0xf8,(byte) 0x48,(byte) 0x40,(byte) 0x70,(byte) 0x40,(byte) 0x48,(byte) 0xf8,(byte) 0x0,(byte) 0x50,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch202 = new BitmapCharRec(5,10,0,0,6,ch202data);
+
+// char: 0xc9
+
+ static final byte[] ch201data = {
+ (byte) 0xf8,(byte) 0x48,(byte) 0x40,(byte) 0x70,(byte) 0x40,(byte) 0x48,(byte) 0xf8,(byte) 0x0,(byte) 0x20,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch201 = new BitmapCharRec(5,10,0,0,6,ch201data);
+
+// char: 0xc8
+
+ static final byte[] ch200data = {
+ (byte) 0xf8,(byte) 0x48,(byte) 0x40,(byte) 0x70,(byte) 0x40,(byte) 0x48,(byte) 0xf8,(byte) 0x0,(byte) 0x20,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch200 = new BitmapCharRec(5,10,0,0,6,ch200data);
+
+// char: 0xc7
+
+ static final byte[] ch199data = {
+ (byte) 0x60,(byte) 0x10,(byte) 0x20,(byte) 0x78,(byte) 0xc4,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xc4,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch199 = new BitmapCharRec(6,10,0,3,7,ch199data);
+
+// char: 0xc6
+
+ static final byte[] ch198data = {
+ (byte) 0xef,(byte) 0x49,(byte) 0x78,(byte) 0x2e,(byte) 0x28,(byte) 0x39,(byte) 0x1f,
+ };
+
+ static final BitmapCharRec ch198 = new BitmapCharRec(8,7,0,0,9,ch198data);
+
+// char: 0xc5
+
+ static final byte[] ch197data = {
+ (byte) 0xee,(byte) 0x44,(byte) 0x7c,(byte) 0x28,(byte) 0x28,(byte) 0x38,(byte) 0x10,(byte) 0x10,(byte) 0x28,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch197 = new BitmapCharRec(7,10,0,0,8,ch197data);
+
+// char: 0xc4
+
+ static final byte[] ch196data = {
+ (byte) 0xee,(byte) 0x44,(byte) 0x7c,(byte) 0x28,(byte) 0x28,(byte) 0x38,(byte) 0x10,(byte) 0x0,(byte) 0x28,
+ };
+
+ static final BitmapCharRec ch196 = new BitmapCharRec(7,9,0,0,8,ch196data);
+
+// char: 0xc3
+
+ static final byte[] ch195data = {
+ (byte) 0xee,(byte) 0x44,(byte) 0x7c,(byte) 0x28,(byte) 0x28,(byte) 0x38,(byte) 0x10,(byte) 0x0,(byte) 0x28,(byte) 0x14,
+ };
+
+ static final BitmapCharRec ch195 = new BitmapCharRec(7,10,0,0,8,ch195data);
+
+// char: 0xc2
+
+ static final byte[] ch194data = {
+ (byte) 0xee,(byte) 0x44,(byte) 0x7c,(byte) 0x28,(byte) 0x28,(byte) 0x38,(byte) 0x10,(byte) 0x0,(byte) 0x28,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch194 = new BitmapCharRec(7,10,0,0,8,ch194data);
+
+// char: 0xc1
+
+ static final byte[] ch193data = {
+ (byte) 0xee,(byte) 0x44,(byte) 0x7c,(byte) 0x28,(byte) 0x28,(byte) 0x38,(byte) 0x10,(byte) 0x0,(byte) 0x10,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch193 = new BitmapCharRec(7,10,0,0,8,ch193data);
+
+// char: 0xc0
+
+ static final byte[] ch192data = {
+ (byte) 0xee,(byte) 0x44,(byte) 0x7c,(byte) 0x28,(byte) 0x28,(byte) 0x38,(byte) 0x10,(byte) 0x0,(byte) 0x10,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch192 = new BitmapCharRec(7,10,0,0,8,ch192data);
+
+// char: 0xbf
+
+ static final byte[] ch191data = {
+ (byte) 0xe0,(byte) 0xa0,(byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch191 = new BitmapCharRec(3,7,0,2,4,ch191data);
+
+// char: 0xbe
+
+ static final byte[] ch190data = {
+ (byte) 0x44,(byte) 0x3e,(byte) 0x2c,(byte) 0xd4,(byte) 0x28,(byte) 0x48,(byte) 0xe4,
+ };
+
+ static final BitmapCharRec ch190 = new BitmapCharRec(7,7,0,0,8,ch190data);
+
+// char: 0xbd
+
+ static final byte[] ch189data = {
+ (byte) 0x4e,(byte) 0x24,(byte) 0x2a,(byte) 0xf6,(byte) 0x48,(byte) 0xc8,(byte) 0x44,
+ };
+
+ static final BitmapCharRec ch189 = new BitmapCharRec(7,7,0,0,8,ch189data);
+
+// char: 0xbc
+
+ static final byte[] ch188data = {
+ (byte) 0x44,(byte) 0x3e,(byte) 0x2c,(byte) 0xf4,(byte) 0x48,(byte) 0xc8,(byte) 0x44,
+ };
+
+ static final BitmapCharRec ch188 = new BitmapCharRec(7,7,0,0,8,ch188data);
+
+// char: 0xbb
+
+ static final byte[] ch187data = {
+ (byte) 0xa0,(byte) 0x50,(byte) 0x50,(byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch187 = new BitmapCharRec(4,4,0,-1,5,ch187data);
+
+// char: 0xba
+
+ static final byte[] ch186data = {
+ (byte) 0xe0,(byte) 0x0,(byte) 0x40,(byte) 0xa0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch186 = new BitmapCharRec(3,5,0,-2,4,ch186data);
+
+// char: 0xb9
+
+ static final byte[] ch185data = {
+ (byte) 0xe0,(byte) 0x40,(byte) 0xc0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch185 = new BitmapCharRec(3,4,0,-3,3,ch185data);
+
+// char: 0xb8
+
+ static final byte[] ch184data = {
+ (byte) 0xc0,(byte) 0x20,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch184 = new BitmapCharRec(3,3,0,3,4,ch184data);
+
+// char: 0xb7
+
+ static final byte[] ch183data = {
+ (byte) 0x80,
+ };
+
+ static final BitmapCharRec ch183 = new BitmapCharRec(1,1,0,-2,2,ch183data);
+
+// char: 0xb6
+
+ static final byte[] ch182data = {
+ (byte) 0x28,(byte) 0x28,(byte) 0x28,(byte) 0x28,(byte) 0x68,(byte) 0xe8,(byte) 0xe8,(byte) 0xe8,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch182 = new BitmapCharRec(6,9,0,2,6,ch182data);
+
+// char: 0xb5
+
+ static final byte[] ch181data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0xe8,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x90,
+ };
+
+ static final BitmapCharRec ch181 = new BitmapCharRec(5,7,0,2,5,ch181data);
+
+// char: 0xb4
+
+ static final byte[] ch180data = {
+ (byte) 0x80,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch180 = new BitmapCharRec(2,2,0,-5,3,ch180data);
+
+// char: 0xb3
+
+ static final byte[] ch179data = {
+ (byte) 0xc0,(byte) 0x20,(byte) 0x40,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch179 = new BitmapCharRec(3,4,0,-3,3,ch179data);
+
+// char: 0xb2
+
+ static final byte[] ch178data = {
+ (byte) 0xe0,(byte) 0x40,(byte) 0xa0,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch178 = new BitmapCharRec(3,4,0,-3,3,ch178data);
+
+// char: 0xb1
+
+ static final byte[] ch177data = {
+ (byte) 0xf8,(byte) 0x0,(byte) 0x20,(byte) 0x20,(byte) 0xf8,(byte) 0x20,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch177 = new BitmapCharRec(5,7,0,0,6,ch177data);
+
+// char: 0xb0
+
+ static final byte[] ch176data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch176 = new BitmapCharRec(4,4,0,-3,4,ch176data);
+
+// char: 0xaf
+
+ static final byte[] ch175data = {
+ (byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch175 = new BitmapCharRec(3,1,0,-6,4,ch175data);
+
+// char: 0xae
+
+ static final byte[] ch174data = {
+ (byte) 0x38,(byte) 0x44,(byte) 0xaa,(byte) 0xb2,(byte) 0xba,(byte) 0x44,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch174 = new BitmapCharRec(7,7,-1,0,9,ch174data);
+
+// char: 0xad
+
+ static final byte[] ch173data = {
+ (byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch173 = new BitmapCharRec(3,1,0,-2,4,ch173data);
+
+// char: 0xac
+
+ static final byte[] ch172data = {
+ (byte) 0x8,(byte) 0x8,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch172 = new BitmapCharRec(5,3,-1,-1,7,ch172data);
+
+// char: 0xab
+
+ static final byte[] ch171data = {
+ (byte) 0x50,(byte) 0xa0,(byte) 0xa0,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch171 = new BitmapCharRec(4,4,0,-1,5,ch171data);
+
+// char: 0xaa
+
+ static final byte[] ch170data = {
+ (byte) 0xe0,(byte) 0x0,(byte) 0xa0,(byte) 0x20,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch170 = new BitmapCharRec(3,5,0,-2,4,ch170data);
+
+// char: 0xa9
+
+ static final byte[] ch169data = {
+ (byte) 0x38,(byte) 0x44,(byte) 0x9a,(byte) 0xa2,(byte) 0x9a,(byte) 0x44,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch169 = new BitmapCharRec(7,7,-1,0,9,ch169data);
+
+// char: 0xa8
+
+ static final byte[] ch168data = {
+ (byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch168 = new BitmapCharRec(3,1,-1,-6,5,ch168data);
+
+// char: 0xa7
+
+ static final byte[] ch167data = {
+ (byte) 0xe0,(byte) 0x90,(byte) 0x20,(byte) 0x50,(byte) 0x90,(byte) 0xa0,(byte) 0x40,(byte) 0x90,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch167 = new BitmapCharRec(4,9,0,1,5,ch167data);
+
+// char: 0xa6
+
+ static final byte[] ch166data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x0,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch166 = new BitmapCharRec(1,7,0,0,2,ch166data);
+
+// char: 0xa5
+
+ static final byte[] ch165data = {
+ (byte) 0x70,(byte) 0x20,(byte) 0xf8,(byte) 0x20,(byte) 0xd8,(byte) 0x50,(byte) 0x88,
+ };
+
+ static final BitmapCharRec ch165 = new BitmapCharRec(5,7,0,0,5,ch165data);
+
+// char: 0xa4
+
+ static final byte[] ch164data = {
+ (byte) 0x88,(byte) 0x70,(byte) 0x50,(byte) 0x50,(byte) 0x70,(byte) 0x88,
+ };
+
+ static final BitmapCharRec ch164 = new BitmapCharRec(5,6,0,-1,5,ch164data);
+
+// char: 0xa3
+
+ static final byte[] ch163data = {
+ (byte) 0xf0,(byte) 0xc8,(byte) 0x40,(byte) 0xe0,(byte) 0x40,(byte) 0x50,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch163 = new BitmapCharRec(5,7,0,0,5,ch163data);
+
+// char: 0xa2
+
+ static final byte[] ch162data = {
+ (byte) 0x80,(byte) 0xe0,(byte) 0x90,(byte) 0x80,(byte) 0x90,(byte) 0x70,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch162 = new BitmapCharRec(4,7,0,1,5,ch162data);
+
+// char: 0xa1
+
+ static final byte[] ch161data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x0,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch161 = new BitmapCharRec(1,7,-1,2,3,ch161data);
+
+// char: 0xa0
+
+ static final BitmapCharRec ch160 = new BitmapCharRec(0,0,0,0,2,zerodata);
+
+// char: 0x7e '~'
+
+ static final byte[] ch126data = {
+ (byte) 0x98,(byte) 0x64,
+ };
+
+ static final BitmapCharRec ch126 = new BitmapCharRec(6,2,0,-2,7,ch126data);
+
+// char: 0x7d '}'
+
+ static final byte[] ch125data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch125 = new BitmapCharRec(3,9,0,2,4,ch125data);
+
+// char: 0x7c '|'
+
+ static final byte[] ch124data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch124 = new BitmapCharRec(1,9,0,2,2,ch124data);
+
+// char: 0x7b '{'
+
+ static final byte[] ch123data = {
+ (byte) 0x20,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch123 = new BitmapCharRec(3,9,0,2,4,ch123data);
+
+// char: 0x7a 'z'
+
+ static final byte[] ch122data = {
+ (byte) 0xf0,(byte) 0x90,(byte) 0x40,(byte) 0x20,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch122 = new BitmapCharRec(4,5,0,0,5,ch122data);
+
+// char: 0x79 'y'
+
+ static final byte[] ch121data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0x30,(byte) 0x50,(byte) 0x48,(byte) 0xdc,
+ };
+
+ static final BitmapCharRec ch121 = new BitmapCharRec(6,7,1,2,5,ch121data);
+
+// char: 0x78 'x'
+
+ static final byte[] ch120data = {
+ (byte) 0xd8,(byte) 0x50,(byte) 0x20,(byte) 0x50,(byte) 0xd8,
+ };
+
+ static final BitmapCharRec ch120 = new BitmapCharRec(5,5,0,0,6,ch120data);
+
+// char: 0x77 'w'
+
+ static final byte[] ch119data = {
+ (byte) 0x28,(byte) 0x6c,(byte) 0x54,(byte) 0x92,(byte) 0xdb,
+ };
+
+ static final BitmapCharRec ch119 = new BitmapCharRec(8,5,0,0,8,ch119data);
+
+// char: 0x76 'v'
+
+ static final byte[] ch118data = {
+ (byte) 0x20,(byte) 0x60,(byte) 0x50,(byte) 0x90,(byte) 0xd8,
+ };
+
+ static final BitmapCharRec ch118 = new BitmapCharRec(5,5,0,0,5,ch118data);
+
+// char: 0x75 'u'
+
+ static final byte[] ch117data = {
+ (byte) 0x68,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x90,
+ };
+
+ static final BitmapCharRec ch117 = new BitmapCharRec(5,5,0,0,5,ch117data);
+
+// char: 0x74 't'
+
+ static final byte[] ch116data = {
+ (byte) 0x30,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xe0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch116 = new BitmapCharRec(4,6,0,0,4,ch116data);
+
+// char: 0x73 's'
+
+ static final byte[] ch115data = {
+ (byte) 0xe0,(byte) 0x20,(byte) 0x60,(byte) 0x80,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch115 = new BitmapCharRec(3,5,0,0,4,ch115data);
+
+// char: 0x72 'r'
+
+ static final byte[] ch114data = {
+ (byte) 0xe0,(byte) 0x40,(byte) 0x40,(byte) 0x60,(byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch114 = new BitmapCharRec(3,5,0,0,4,ch114data);
+
+// char: 0x71 'q'
+
+ static final byte[] ch113data = {
+ (byte) 0x38,(byte) 0x10,(byte) 0x70,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch113 = new BitmapCharRec(5,7,0,2,5,ch113data);
+
+// char: 0x70 'p'
+
+ static final byte[] ch112data = {
+ (byte) 0xc0,(byte) 0x80,(byte) 0xe0,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch112 = new BitmapCharRec(4,7,0,2,5,ch112data);
+
+// char: 0x6f 'o'
+
+ static final byte[] ch111data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch111 = new BitmapCharRec(4,5,0,0,5,ch111data);
+
+// char: 0x6e 'n'
+
+ static final byte[] ch110data = {
+ (byte) 0xd8,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch110 = new BitmapCharRec(5,5,0,0,5,ch110data);
+
+// char: 0x6d 'm'
+
+ static final byte[] ch109data = {
+ (byte) 0xdb,(byte) 0x92,(byte) 0x92,(byte) 0x92,(byte) 0xec,
+ };
+
+ static final BitmapCharRec ch109 = new BitmapCharRec(8,5,0,0,8,ch109data);
+
+// char: 0x6c 'l'
+
+ static final byte[] ch108data = {
+ (byte) 0xe0,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch108 = new BitmapCharRec(3,7,0,0,4,ch108data);
+
+// char: 0x6b 'k'
+
+ static final byte[] ch107data = {
+ (byte) 0x98,(byte) 0x90,(byte) 0xe0,(byte) 0xa0,(byte) 0x90,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch107 = new BitmapCharRec(5,7,0,0,5,ch107data);
+
+// char: 0x6a 'j'
+
+ static final byte[] ch106data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xc0,(byte) 0x0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch106 = new BitmapCharRec(2,9,0,2,3,ch106data);
+
+// char: 0x69 'i'
+
+ static final byte[] ch105data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xc0,(byte) 0x0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch105 = new BitmapCharRec(2,7,0,0,3,ch105data);
+
+// char: 0x68 'h'
+
+ static final byte[] ch104data = {
+ (byte) 0xd8,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0xe0,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch104 = new BitmapCharRec(5,7,0,0,5,ch104data);
+
+// char: 0x67 'g'
+
+ static final byte[] ch103data = {
+ (byte) 0xe0,(byte) 0x90,(byte) 0x60,(byte) 0x40,(byte) 0xa0,(byte) 0xa0,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch103 = new BitmapCharRec(4,7,0,2,5,ch103data);
+
+// char: 0x66 'f'
+
+ static final byte[] ch102data = {
+ (byte) 0xe0,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xe0,(byte) 0x40,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch102 = new BitmapCharRec(4,7,0,0,4,ch102data);
+
+// char: 0x65 'e'
+
+ static final byte[] ch101data = {
+ (byte) 0x60,(byte) 0x80,(byte) 0xc0,(byte) 0xa0,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch101 = new BitmapCharRec(3,5,0,0,4,ch101data);
+
+// char: 0x64 'd'
+
+ static final byte[] ch100data = {
+ (byte) 0x68,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x70,(byte) 0x10,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch100 = new BitmapCharRec(5,7,0,0,5,ch100data);
+
+// char: 0x63 'c'
+
+ static final byte[] ch99data = {
+ (byte) 0x60,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch99 = new BitmapCharRec(3,5,0,0,4,ch99data);
+
+// char: 0x62 'b'
+
+ static final byte[] ch98data = {
+ (byte) 0xe0,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0xe0,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch98 = new BitmapCharRec(4,7,0,0,5,ch98data);
+
+// char: 0x61 'a'
+
+ static final byte[] ch97data = {
+ (byte) 0xe0,(byte) 0xa0,(byte) 0x60,(byte) 0x20,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch97 = new BitmapCharRec(3,5,0,0,4,ch97data);
+
+// char: 0x60 '`'
+
+ static final byte[] ch96data = {
+ (byte) 0xc0,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch96 = new BitmapCharRec(2,2,0,-5,3,ch96data);
+
+// char: 0x5f '_'
+
+ static final byte[] ch95data = {
+ (byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch95 = new BitmapCharRec(5,1,0,3,5,ch95data);
+
+// char: 0x5e '^'
+
+ static final byte[] ch94data = {
+ (byte) 0xa0,(byte) 0xa0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch94 = new BitmapCharRec(3,3,-1,-4,5,ch94data);
+
+// char: 0x5d ']'
+
+ static final byte[] ch93data = {
+ (byte) 0xc0,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch93 = new BitmapCharRec(2,9,0,2,3,ch93data);
+
+// char: 0x5c '\'
+
+ static final byte[] ch92data = {
+ (byte) 0x20,(byte) 0x20,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch92 = new BitmapCharRec(3,7,0,0,3,ch92data);
+
+// char: 0x5b '['
+
+ static final byte[] ch91data = {
+ (byte) 0xc0,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch91 = new BitmapCharRec(2,9,0,2,3,ch91data);
+
+// char: 0x5a 'Z'
+
+ static final byte[] ch90data = {
+ (byte) 0xf8,(byte) 0x88,(byte) 0x40,(byte) 0x20,(byte) 0x10,(byte) 0x88,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch90 = new BitmapCharRec(5,7,0,0,6,ch90data);
+
+// char: 0x59 'Y'
+
+ static final byte[] ch89data = {
+ (byte) 0x38,(byte) 0x10,(byte) 0x10,(byte) 0x28,(byte) 0x28,(byte) 0x44,(byte) 0xee,
+ };
+
+ static final BitmapCharRec ch89 = new BitmapCharRec(7,7,0,0,8,ch89data);
+
+// char: 0x58 'X'
+
+ static final byte[] ch88data = {
+ (byte) 0xee,(byte) 0x44,(byte) 0x28,(byte) 0x10,(byte) 0x28,(byte) 0x44,(byte) 0xee,
+ };
+
+ static final BitmapCharRec ch88 = new BitmapCharRec(7,7,0,0,8,ch88data);
+
+// char: 0x57 'W'
+
+ static final byte[] ch87data = {
+ (byte) 0x22,(byte) 0x0,(byte) 0x22,(byte) 0x0,(byte) 0x55,(byte) 0x0,(byte) 0x55,(byte) 0x0,(byte) 0xc9,(byte) 0x80,(byte) 0x88,(byte) 0x80,(byte) 0xdd,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch87 = new BitmapCharRec(10,7,0,0,10,ch87data);
+
+// char: 0x56 'V'
+
+ static final byte[] ch86data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0x28,(byte) 0x28,(byte) 0x6c,(byte) 0x44,(byte) 0xee,
+ };
+
+ static final BitmapCharRec ch86 = new BitmapCharRec(7,7,0,0,8,ch86data);
+
+// char: 0x55 'U'
+
+ static final byte[] ch85data = {
+ (byte) 0x38,(byte) 0x6c,(byte) 0x44,(byte) 0x44,(byte) 0x44,(byte) 0x44,(byte) 0xee,
+ };
+
+ static final BitmapCharRec ch85 = new BitmapCharRec(7,7,0,0,8,ch85data);
+
+// char: 0x54 'T'
+
+ static final byte[] ch84data = {
+ (byte) 0x70,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xa8,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch84 = new BitmapCharRec(5,7,0,0,6,ch84data);
+
+// char: 0x53 'S'
+
+ static final byte[] ch83data = {
+ (byte) 0xe0,(byte) 0x90,(byte) 0x10,(byte) 0x60,(byte) 0xc0,(byte) 0x90,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch83 = new BitmapCharRec(4,7,0,0,5,ch83data);
+
+// char: 0x52 'R'
+
+ static final byte[] ch82data = {
+ (byte) 0xec,(byte) 0x48,(byte) 0x50,(byte) 0x70,(byte) 0x48,(byte) 0x48,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch82 = new BitmapCharRec(6,7,0,0,7,ch82data);
+
+// char: 0x51 'Q'
+
+ static final byte[] ch81data = {
+ (byte) 0xc,(byte) 0x18,(byte) 0x70,(byte) 0xcc,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0xcc,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch81 = new BitmapCharRec(6,9,0,2,7,ch81data);
+
+// char: 0x50 'P'
+
+ static final byte[] ch80data = {
+ (byte) 0xe0,(byte) 0x40,(byte) 0x40,(byte) 0x70,(byte) 0x48,(byte) 0x48,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch80 = new BitmapCharRec(5,7,0,0,6,ch80data);
+
+// char: 0x4f 'O'
+
+ static final byte[] ch79data = {
+ (byte) 0x78,(byte) 0xcc,(byte) 0x84,(byte) 0x84,(byte) 0x84,(byte) 0xcc,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch79 = new BitmapCharRec(6,7,0,0,7,ch79data);
+
+// char: 0x4e 'N'
+
+ static final byte[] ch78data = {
+ (byte) 0xe4,(byte) 0x4c,(byte) 0x4c,(byte) 0x54,(byte) 0x54,(byte) 0x64,(byte) 0xee,
+ };
+
+ static final BitmapCharRec ch78 = new BitmapCharRec(7,7,0,0,8,ch78data);
+
+// char: 0x4d 'M'
+
+ static final byte[] ch77data = {
+ (byte) 0xeb,(byte) 0x80,(byte) 0x49,(byte) 0x0,(byte) 0x55,(byte) 0x0,(byte) 0x55,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0xe3,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch77 = new BitmapCharRec(9,7,0,0,10,ch77data);
+
+// char: 0x4c 'L'
+
+ static final byte[] ch76data = {
+ (byte) 0xf8,(byte) 0x48,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch76 = new BitmapCharRec(5,7,0,0,6,ch76data);
+
+// char: 0x4b 'K'
+
+ static final byte[] ch75data = {
+ (byte) 0xec,(byte) 0x48,(byte) 0x50,(byte) 0x60,(byte) 0x50,(byte) 0x48,(byte) 0xec,
+ };
+
+ static final BitmapCharRec ch75 = new BitmapCharRec(6,7,0,0,7,ch75data);
+
+// char: 0x4a 'J'
+
+ static final byte[] ch74data = {
+ (byte) 0xc0,(byte) 0xa0,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch74 = new BitmapCharRec(4,7,0,0,4,ch74data);
+
+// char: 0x49 'I'
+
+ static final byte[] ch73data = {
+ (byte) 0xe0,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch73 = new BitmapCharRec(3,7,0,0,4,ch73data);
+
+// char: 0x48 'H'
+
+ static final byte[] ch72data = {
+ (byte) 0xee,(byte) 0x44,(byte) 0x44,(byte) 0x7c,(byte) 0x44,(byte) 0x44,(byte) 0xee,
+ };
+
+ static final BitmapCharRec ch72 = new BitmapCharRec(7,7,0,0,8,ch72data);
+
+// char: 0x47 'G'
+
+ static final byte[] ch71data = {
+ (byte) 0x78,(byte) 0xc4,(byte) 0x84,(byte) 0x9c,(byte) 0x80,(byte) 0xc4,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch71 = new BitmapCharRec(6,7,0,0,7,ch71data);
+
+// char: 0x46 'F'
+
+ static final byte[] ch70data = {
+ (byte) 0xe0,(byte) 0x40,(byte) 0x40,(byte) 0x70,(byte) 0x40,(byte) 0x48,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch70 = new BitmapCharRec(5,7,0,0,6,ch70data);
+
+// char: 0x45 'E'
+
+ static final byte[] ch69data = {
+ (byte) 0xf8,(byte) 0x48,(byte) 0x40,(byte) 0x70,(byte) 0x40,(byte) 0x48,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch69 = new BitmapCharRec(5,7,0,0,6,ch69data);
+
+// char: 0x44 'D'
+
+ static final byte[] ch68data = {
+ (byte) 0xf8,(byte) 0x4c,(byte) 0x44,(byte) 0x44,(byte) 0x44,(byte) 0x4c,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch68 = new BitmapCharRec(6,7,0,0,7,ch68data);
+
+// char: 0x43 'C'
+
+ static final byte[] ch67data = {
+ (byte) 0x78,(byte) 0xc4,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0xc4,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch67 = new BitmapCharRec(6,7,0,0,7,ch67data);
+
+// char: 0x42 'B'
+
+ static final byte[] ch66data = {
+ (byte) 0xf0,(byte) 0x48,(byte) 0x48,(byte) 0x70,(byte) 0x48,(byte) 0x48,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch66 = new BitmapCharRec(5,7,0,0,6,ch66data);
+
+// char: 0x41 'A'
+
+ static final byte[] ch65data = {
+ (byte) 0xee,(byte) 0x44,(byte) 0x7c,(byte) 0x28,(byte) 0x28,(byte) 0x38,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch65 = new BitmapCharRec(7,7,0,0,8,ch65data);
+
+// char: 0x40 '@'
+
+ static final byte[] ch64data = {
+ (byte) 0x3e,(byte) 0x40,(byte) 0x92,(byte) 0xad,(byte) 0xa5,(byte) 0xa5,(byte) 0x9d,(byte) 0x42,(byte) 0x3c,
+ };
+
+ static final BitmapCharRec ch64 = new BitmapCharRec(8,9,0,2,9,ch64data);
+
+// char: 0x3f '?'
+
+ static final byte[] ch63data = {
+ (byte) 0x40,(byte) 0x0,(byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0xa0,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch63 = new BitmapCharRec(3,7,0,0,4,ch63data);
+
+// char: 0x3e '>'
+
+ static final byte[] ch62data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x20,(byte) 0x40,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch62 = new BitmapCharRec(3,5,0,0,5,ch62data);
+
+// char: 0x3d '='
+
+ static final byte[] ch61data = {
+ (byte) 0xf8,(byte) 0x0,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch61 = new BitmapCharRec(5,3,0,-1,6,ch61data);
+
+// char: 0x3c '<'
+
+ static final byte[] ch60data = {
+ (byte) 0x20,(byte) 0x40,(byte) 0x80,(byte) 0x40,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch60 = new BitmapCharRec(3,5,-1,0,5,ch60data);
+
+// char: 0x3b ';'
+
+ static final byte[] ch59data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch59 = new BitmapCharRec(1,7,-1,2,3,ch59data);
+
+// char: 0x3a ':'
+
+ static final byte[] ch58data = {
+ (byte) 0x80,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch58 = new BitmapCharRec(1,5,-1,0,3,ch58data);
+
+// char: 0x39 '9'
+
+ static final byte[] ch57data = {
+ (byte) 0xc0,(byte) 0x20,(byte) 0x70,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch57 = new BitmapCharRec(4,7,0,0,5,ch57data);
+
+// char: 0x38 '8'
+
+ static final byte[] ch56data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x90,(byte) 0x60,(byte) 0x90,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch56 = new BitmapCharRec(4,7,0,0,5,ch56data);
+
+// char: 0x37 '7'
+
+ static final byte[] ch55data = {
+ (byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0x20,(byte) 0x90,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch55 = new BitmapCharRec(4,7,0,0,5,ch55data);
+
+// char: 0x36 '6'
+
+ static final byte[] ch54data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0xe0,(byte) 0x40,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch54 = new BitmapCharRec(4,7,0,0,5,ch54data);
+
+// char: 0x35 '5'
+
+ static final byte[] ch53data = {
+ (byte) 0xe0,(byte) 0x90,(byte) 0x10,(byte) 0x10,(byte) 0xe0,(byte) 0x40,(byte) 0x70,
+ };
+
+ static final BitmapCharRec ch53 = new BitmapCharRec(4,7,0,0,5,ch53data);
+
+// char: 0x34 '4'
+
+ static final byte[] ch52data = {
+ (byte) 0x10,(byte) 0x10,(byte) 0xf8,(byte) 0x90,(byte) 0x50,(byte) 0x30,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch52 = new BitmapCharRec(5,7,0,0,5,ch52data);
+
+// char: 0x33 '3'
+
+ static final byte[] ch51data = {
+ (byte) 0xe0,(byte) 0x10,(byte) 0x10,(byte) 0x60,(byte) 0x10,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch51 = new BitmapCharRec(4,7,0,0,5,ch51data);
+
+// char: 0x32 '2'
+
+ static final byte[] ch50data = {
+ (byte) 0xf0,(byte) 0x40,(byte) 0x20,(byte) 0x20,(byte) 0x10,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch50 = new BitmapCharRec(4,7,0,0,5,ch50data);
+
+// char: 0x31 '1'
+
+ static final byte[] ch49data = {
+ (byte) 0xe0,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0xc0,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch49 = new BitmapCharRec(3,7,-1,0,5,ch49data);
+
+// char: 0x30 '0'
+
+ static final byte[] ch48data = {
+ (byte) 0x60,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x90,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch48 = new BitmapCharRec(4,7,0,0,5,ch48data);
+
+// char: 0x2f '/'
+
+ static final byte[] ch47data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch47 = new BitmapCharRec(3,7,0,0,3,ch47data);
+
+// char: 0x2e '.'
+
+ static final byte[] ch46data = {
+ (byte) 0x80,
+ };
+
+ static final BitmapCharRec ch46 = new BitmapCharRec(1,1,-1,0,3,ch46data);
+
+// char: 0x2d '-'
+
+ static final byte[] ch45data = {
+ (byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch45 = new BitmapCharRec(4,1,-1,-2,7,ch45data);
+
+// char: 0x2c ','
+
+ static final byte[] ch44data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch44 = new BitmapCharRec(1,3,-1,2,3,ch44data);
+
+// char: 0x2b '+'
+
+ static final byte[] ch43data = {
+ (byte) 0x20,(byte) 0x20,(byte) 0xf8,(byte) 0x20,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch43 = new BitmapCharRec(5,5,0,0,6,ch43data);
+
+// char: 0x2a '*'
+
+ static final byte[] ch42data = {
+ (byte) 0xa0,(byte) 0x40,(byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch42 = new BitmapCharRec(3,3,0,-4,5,ch42data);
+
+// char: 0x29 ')'
+
+ static final byte[] ch41data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x40,(byte) 0x40,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch41 = new BitmapCharRec(3,9,0,2,4,ch41data);
+
+// char: 0x28 '('
+
+ static final byte[] ch40data = {
+ (byte) 0x20,(byte) 0x40,(byte) 0x40,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x40,(byte) 0x40,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch40 = new BitmapCharRec(3,9,0,2,4,ch40data);
+
+// char: 0x27 '''
+
+ static final byte[] ch39data = {
+ (byte) 0x40,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch39 = new BitmapCharRec(2,2,0,-5,3,ch39data);
+
+// char: 0x26 '&'
+
+ static final byte[] ch38data = {
+ (byte) 0x76,(byte) 0x8d,(byte) 0x98,(byte) 0x74,(byte) 0x6e,(byte) 0x50,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch38 = new BitmapCharRec(8,7,0,0,8,ch38data);
+
+// char: 0x25 '%'
+
+ static final byte[] ch37data = {
+ (byte) 0x44,(byte) 0x2a,(byte) 0x2a,(byte) 0x56,(byte) 0xa8,(byte) 0xa4,(byte) 0x7e,
+ };
+
+ static final BitmapCharRec ch37 = new BitmapCharRec(7,7,0,0,8,ch37data);
+
+// char: 0x24 '$'
+
+ static final byte[] ch36data = {
+ (byte) 0x20,(byte) 0xe0,(byte) 0x90,(byte) 0x10,(byte) 0x60,(byte) 0x80,(byte) 0x90,(byte) 0x70,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch36 = new BitmapCharRec(4,9,0,1,5,ch36data);
+
+// char: 0x23 '#'
+
+ static final byte[] ch35data = {
+ (byte) 0x50,(byte) 0x50,(byte) 0xf8,(byte) 0x50,(byte) 0xf8,(byte) 0x50,(byte) 0x50,
+ };
+
+ static final BitmapCharRec ch35 = new BitmapCharRec(5,7,0,0,5,ch35data);
+
+// char: 0x22 '"'
+
+ static final byte[] ch34data = {
+ (byte) 0xa0,(byte) 0xa0,
+ };
+
+ static final BitmapCharRec ch34 = new BitmapCharRec(3,2,0,-5,4,ch34data);
+
+// char: 0x21 '!'
+
+ static final byte[] ch33data = {
+ (byte) 0x80,(byte) 0x0,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch33 = new BitmapCharRec(1,7,-1,0,3,ch33data);
+
+// char: 0x20 ' '
+
+ static final BitmapCharRec ch32 = new BitmapCharRec(0,0,0,0,2,zerodata);
+
+ static final BitmapCharRec chars[] = {
+ ch32,
+ ch33,
+ ch34,
+ ch35,
+ ch36,
+ ch37,
+ ch38,
+ ch39,
+ ch40,
+ ch41,
+ ch42,
+ ch43,
+ ch44,
+ ch45,
+ ch46,
+ ch47,
+ ch48,
+ ch49,
+ ch50,
+ ch51,
+ ch52,
+ ch53,
+ ch54,
+ ch55,
+ ch56,
+ ch57,
+ ch58,
+ ch59,
+ ch60,
+ ch61,
+ ch62,
+ ch63,
+ ch64,
+ ch65,
+ ch66,
+ ch67,
+ ch68,
+ ch69,
+ ch70,
+ ch71,
+ ch72,
+ ch73,
+ ch74,
+ ch75,
+ ch76,
+ ch77,
+ ch78,
+ ch79,
+ ch80,
+ ch81,
+ ch82,
+ ch83,
+ ch84,
+ ch85,
+ ch86,
+ ch87,
+ ch88,
+ ch89,
+ ch90,
+ ch91,
+ ch92,
+ ch93,
+ ch94,
+ ch95,
+ ch96,
+ ch97,
+ ch98,
+ ch99,
+ ch100,
+ ch101,
+ ch102,
+ ch103,
+ ch104,
+ ch105,
+ ch106,
+ ch107,
+ ch108,
+ ch109,
+ ch110,
+ ch111,
+ ch112,
+ ch113,
+ ch114,
+ ch115,
+ ch116,
+ ch117,
+ ch118,
+ ch119,
+ ch120,
+ ch121,
+ ch122,
+ ch123,
+ ch124,
+ ch125,
+ ch126,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ ch160,
+ ch161,
+ ch162,
+ ch163,
+ ch164,
+ ch165,
+ ch166,
+ ch167,
+ ch168,
+ ch169,
+ ch170,
+ ch171,
+ ch172,
+ ch173,
+ ch174,
+ ch175,
+ ch176,
+ ch177,
+ ch178,
+ ch179,
+ ch180,
+ ch181,
+ ch182,
+ ch183,
+ ch184,
+ ch185,
+ ch186,
+ ch187,
+ ch188,
+ ch189,
+ ch190,
+ ch191,
+ ch192,
+ ch193,
+ ch194,
+ ch195,
+ ch196,
+ ch197,
+ ch198,
+ ch199,
+ ch200,
+ ch201,
+ ch202,
+ ch203,
+ ch204,
+ ch205,
+ ch206,
+ ch207,
+ ch208,
+ ch209,
+ ch210,
+ ch211,
+ ch212,
+ ch213,
+ ch214,
+ ch215,
+ ch216,
+ ch217,
+ ch218,
+ ch219,
+ ch220,
+ ch221,
+ ch222,
+ ch223,
+ ch224,
+ ch225,
+ ch226,
+ ch227,
+ ch228,
+ ch229,
+ ch230,
+ ch231,
+ ch232,
+ ch233,
+ ch234,
+ ch235,
+ ch236,
+ ch237,
+ ch238,
+ ch239,
+ ch240,
+ ch241,
+ ch242,
+ ch243,
+ ch244,
+ ch245,
+ ch246,
+ ch247,
+ ch248,
+ ch249,
+ ch250,
+ ch251,
+ ch252,
+ ch253,
+ ch254,
+ ch255,
+ };
+
+ static final BitmapFontRec fontinfo = new BitmapFontRec(
+ "-adobe-times-medium-r-*--10-*-*-*-p-*-iso8859-1",
+ 224,
+ 32,
+ chars
+ );
+
+ public static BitmapFontRec getBitmapFontRec() {
+ return fontinfo;
+ }
+} // end of class glutBitmapTimesRoman10
diff --git a/gl4java/utils/glut/fonts/data/glutBitmapTimesRoman24.java b/gl4java/utils/glut/fonts/data/glutBitmapTimesRoman24.java
new file mode 100644
index 0000000..2a00176
--- /dev/null
+++ b/gl4java/utils/glut/fonts/data/glutBitmapTimesRoman24.java
@@ -0,0 +1,2051 @@
+
+// GENERATED FILE -- DO NOT MODIFY
+
+package gl4java.utils.glut.fonts.data;
+
+import gl4java.utils.glut.fonts.*;
+
+
+public class glutBitmapTimesRoman24 implements GLUTBitmapFont {
+ private static byte[] zerodata={ 0 };
+// char: 0xff
+
+ static final byte[] ch255data = {
+ (byte) 0xe0,(byte) 0x0,(byte) 0xf0,(byte) 0x0,(byte) 0x18,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0x4,(byte) 0x0,(byte) 0xe,(byte) 0x0,(byte) 0xe,(byte) 0x0,
+(byte) 0x1a,(byte) 0x0,(byte) 0x19,(byte) 0x0,(byte) 0x19,(byte) 0x0,(byte) 0x31,(byte) 0x0,(byte) 0x30,(byte) 0x80,(byte) 0x30,(byte) 0x80,(byte) 0x60,(byte) 0x80,(byte) 0x60,(byte) 0xc0,
+(byte) 0xf1,(byte) 0xe0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x33,(byte) 0x0,(byte) 0x33,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch255 = new BitmapCharRec(11,21,0,5,11,ch255data);
+
+// char: 0xfe
+
+ static final byte[] ch254data = {
+ (byte) 0xf0,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0x6e,(byte) 0x0,(byte) 0x73,(byte) 0x80,(byte) 0x61,(byte) 0x80,
+(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x61,(byte) 0x80,(byte) 0x73,(byte) 0x80,
+(byte) 0x6e,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0xe0,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch254 = new BitmapCharRec(10,22,-1,5,12,ch254data);
+
+// char: 0xfd
+
+ static final byte[] ch253data = {
+ (byte) 0xe0,(byte) 0x0,(byte) 0xf0,(byte) 0x0,(byte) 0x18,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0x4,(byte) 0x0,(byte) 0xe,(byte) 0x0,(byte) 0xe,(byte) 0x0,
+(byte) 0x1a,(byte) 0x0,(byte) 0x19,(byte) 0x0,(byte) 0x19,(byte) 0x0,(byte) 0x31,(byte) 0x0,(byte) 0x30,(byte) 0x80,(byte) 0x30,(byte) 0x80,(byte) 0x60,(byte) 0x80,(byte) 0x60,(byte) 0xc0,
+(byte) 0xf1,(byte) 0xe0,(byte) 0x0,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x3,(byte) 0x80,(byte) 0x1,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch253 = new BitmapCharRec(11,22,0,5,11,ch253data);
+
+// char: 0xfc
+
+ static final byte[] ch252data = {
+ (byte) 0x1c,(byte) 0xe0,(byte) 0x3e,(byte) 0xc0,(byte) 0x71,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,
+(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0xe1,(byte) 0xc0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x33,(byte) 0x0,(byte) 0x33,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch252 = new BitmapCharRec(11,16,-1,0,13,ch252data);
+
+// char: 0xfb
+
+ static final byte[] ch251data = {
+ (byte) 0x1c,(byte) 0xe0,(byte) 0x3e,(byte) 0xc0,(byte) 0x71,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,
+(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0xe1,(byte) 0xc0,(byte) 0x0,(byte) 0x0,(byte) 0x21,(byte) 0x0,(byte) 0x12,(byte) 0x0,(byte) 0x1e,(byte) 0x0,
+(byte) 0xc,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch251 = new BitmapCharRec(11,17,-1,0,13,ch251data);
+
+// char: 0xfa
+
+ static final byte[] ch250data = {
+ (byte) 0x1c,(byte) 0xe0,(byte) 0x3e,(byte) 0xc0,(byte) 0x71,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,
+(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0xe1,(byte) 0xc0,(byte) 0x0,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x3,(byte) 0x80,
+(byte) 0x1,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch250 = new BitmapCharRec(11,17,-1,0,13,ch250data);
+
+// char: 0xf9
+
+ static final byte[] ch249data = {
+ (byte) 0x1c,(byte) 0xe0,(byte) 0x3e,(byte) 0xc0,(byte) 0x71,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,
+(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0xe1,(byte) 0xc0,(byte) 0x0,(byte) 0x0,(byte) 0x2,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0x38,(byte) 0x0,
+(byte) 0x30,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch249 = new BitmapCharRec(11,17,-1,0,13,ch249data);
+
+// char: 0xf8
+
+ static final byte[] ch248data = {
+ (byte) 0xc0,(byte) 0x0,(byte) 0xde,(byte) 0x0,(byte) 0x73,(byte) 0x80,(byte) 0x71,(byte) 0x80,(byte) 0xd0,(byte) 0xc0,(byte) 0xd8,(byte) 0xc0,(byte) 0xc8,(byte) 0xc0,(byte) 0xcc,(byte) 0xc0,
+(byte) 0xc4,(byte) 0xc0,(byte) 0xc6,(byte) 0xc0,(byte) 0x63,(byte) 0x80,(byte) 0x73,(byte) 0x80,(byte) 0x1e,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch248 = new BitmapCharRec(10,14,-1,1,12,ch248data);
+
+// char: 0xf7
+
+ static final byte[] ch247data = {
+ (byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0xff,(byte) 0xf0,(byte) 0xff,(byte) 0xf0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,
+(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch247 = new BitmapCharRec(12,10,-1,-2,14,ch247data);
+
+// char: 0xf6
+
+ static final byte[] ch246data = {
+ (byte) 0x1e,(byte) 0x0,(byte) 0x73,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,
+(byte) 0xc0,(byte) 0xc0,(byte) 0x61,(byte) 0x80,(byte) 0x73,(byte) 0x80,(byte) 0x1e,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x33,(byte) 0x0,(byte) 0x33,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch246 = new BitmapCharRec(10,16,-1,0,12,ch246data);
+
+// char: 0xf5
+
+ static final byte[] ch245data = {
+ (byte) 0x1e,(byte) 0x0,(byte) 0x73,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,
+(byte) 0xc0,(byte) 0xc0,(byte) 0x61,(byte) 0x80,(byte) 0x73,(byte) 0x80,(byte) 0x1e,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x27,(byte) 0x0,(byte) 0x1c,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch245 = new BitmapCharRec(10,16,-1,0,12,ch245data);
+
+// char: 0xf4
+
+ static final byte[] ch244data = {
+ (byte) 0x1e,(byte) 0x0,(byte) 0x73,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,
+(byte) 0xc0,(byte) 0xc0,(byte) 0x61,(byte) 0x80,(byte) 0x73,(byte) 0x80,(byte) 0x1e,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x21,(byte) 0x0,(byte) 0x12,(byte) 0x0,(byte) 0x1e,(byte) 0x0,
+(byte) 0xc,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch244 = new BitmapCharRec(10,17,-1,0,12,ch244data);
+
+// char: 0xf3
+
+ static final byte[] ch243data = {
+ (byte) 0x1e,(byte) 0x0,(byte) 0x73,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,
+(byte) 0xc0,(byte) 0xc0,(byte) 0x61,(byte) 0x80,(byte) 0x73,(byte) 0x80,(byte) 0x1e,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x3,(byte) 0x80,
+(byte) 0x1,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch243 = new BitmapCharRec(10,17,-1,0,12,ch243data);
+
+// char: 0xf2
+
+ static final byte[] ch242data = {
+ (byte) 0x1e,(byte) 0x0,(byte) 0x73,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,
+(byte) 0xc0,(byte) 0xc0,(byte) 0x61,(byte) 0x80,(byte) 0x73,(byte) 0x80,(byte) 0x1e,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x2,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0x38,(byte) 0x0,
+(byte) 0x30,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch242 = new BitmapCharRec(10,17,-1,0,12,ch242data);
+
+// char: 0xf1
+
+ static final byte[] ch241data = {
+ (byte) 0xf1,(byte) 0xe0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,
+(byte) 0x60,(byte) 0xc0,(byte) 0x71,(byte) 0xc0,(byte) 0x6f,(byte) 0x80,(byte) 0xe7,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x27,(byte) 0x0,(byte) 0x1c,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch241 = new BitmapCharRec(11,16,-1,0,13,ch241data);
+
+// char: 0xf0
+
+ static final byte[] ch240data = {
+ (byte) 0x1e,(byte) 0x0,(byte) 0x73,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,
+(byte) 0xc0,(byte) 0xc0,(byte) 0x61,(byte) 0x80,(byte) 0x73,(byte) 0x80,(byte) 0x1f,(byte) 0x0,(byte) 0xc6,(byte) 0x0,(byte) 0x3c,(byte) 0x0,(byte) 0x1e,(byte) 0x0,(byte) 0x71,(byte) 0x80,
+(byte) 0xc0,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch240 = new BitmapCharRec(10,17,-1,0,12,ch240data);
+
+// char: 0xef
+
+ static final byte[] ch239data = {
+ (byte) 0x78,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x70,(byte) 0x0,(byte) 0x0,(byte) 0xcc,(byte) 0xcc,
+ };
+
+ static final BitmapCharRec ch239 = new BitmapCharRec(6,16,0,0,6,ch239data);
+
+// char: 0xee
+
+ static final byte[] ch238data = {
+ (byte) 0x78,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x70,(byte) 0x0,(byte) 0x84,(byte) 0x48,(byte) 0x78,
+(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch238 = new BitmapCharRec(6,17,0,0,6,ch238data);
+
+// char: 0xed
+
+ static final byte[] ch237data = {
+ (byte) 0xf0,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0xe0,(byte) 0x0,(byte) 0x80,(byte) 0x60,(byte) 0x38,
+(byte) 0x18,
+ };
+
+ static final BitmapCharRec ch237 = new BitmapCharRec(5,17,-1,0,6,ch237data);
+
+// char: 0xec
+
+ static final byte[] ch236data = {
+ (byte) 0x78,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x70,(byte) 0x0,(byte) 0x8,(byte) 0x30,(byte) 0xe0,
+(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch236 = new BitmapCharRec(5,17,0,0,6,ch236data);
+
+// char: 0xeb
+
+ static final byte[] ch235data = {
+ (byte) 0x1e,(byte) 0x0,(byte) 0x7f,(byte) 0x0,(byte) 0x70,(byte) 0x80,(byte) 0xe0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xff,(byte) 0x80,
+(byte) 0xc1,(byte) 0x80,(byte) 0x41,(byte) 0x80,(byte) 0x63,(byte) 0x0,(byte) 0x1e,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x33,(byte) 0x0,(byte) 0x33,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch235 = new BitmapCharRec(9,16,-1,0,11,ch235data);
+
+// char: 0xea
+
+ static final byte[] ch234data = {
+ (byte) 0x1e,(byte) 0x0,(byte) 0x7f,(byte) 0x0,(byte) 0x70,(byte) 0x80,(byte) 0xe0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xff,(byte) 0x80,
+(byte) 0xc1,(byte) 0x80,(byte) 0x41,(byte) 0x80,(byte) 0x63,(byte) 0x0,(byte) 0x1e,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x21,(byte) 0x0,(byte) 0x12,(byte) 0x0,(byte) 0x1e,(byte) 0x0,
+(byte) 0xc,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch234 = new BitmapCharRec(9,17,-1,0,11,ch234data);
+
+// char: 0xe9
+
+ static final byte[] ch233data = {
+ (byte) 0x1e,(byte) 0x0,(byte) 0x7f,(byte) 0x0,(byte) 0x70,(byte) 0x80,(byte) 0xe0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xff,(byte) 0x80,
+(byte) 0xc1,(byte) 0x80,(byte) 0x41,(byte) 0x80,(byte) 0x63,(byte) 0x0,(byte) 0x1e,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x10,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0x7,(byte) 0x0,
+(byte) 0x3,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch233 = new BitmapCharRec(9,17,-1,0,11,ch233data);
+
+// char: 0xe8
+
+ static final byte[] ch232data = {
+ (byte) 0x1e,(byte) 0x0,(byte) 0x7f,(byte) 0x0,(byte) 0x70,(byte) 0x80,(byte) 0xe0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xff,(byte) 0x80,
+(byte) 0xc1,(byte) 0x80,(byte) 0x41,(byte) 0x80,(byte) 0x63,(byte) 0x0,(byte) 0x1e,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x4,(byte) 0x0,(byte) 0x18,(byte) 0x0,(byte) 0x70,(byte) 0x0,
+(byte) 0x60,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch232 = new BitmapCharRec(9,17,-1,0,11,ch232data);
+
+// char: 0xe7
+
+ static final byte[] ch231data = {
+ (byte) 0x3c,(byte) 0x0,(byte) 0x66,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x1e,(byte) 0x0,(byte) 0x18,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0x1e,(byte) 0x0,(byte) 0x7f,(byte) 0x0,
+(byte) 0x70,(byte) 0x80,(byte) 0xe0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0x41,(byte) 0x80,
+(byte) 0x63,(byte) 0x80,(byte) 0x1f,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch231 = new BitmapCharRec(9,18,-1,6,11,ch231data);
+
+// char: 0xe6
+
+ static final byte[] ch230data = {
+ (byte) 0x70,(byte) 0xf0,(byte) 0xfb,(byte) 0xf8,(byte) 0xc7,(byte) 0x84,(byte) 0xc3,(byte) 0x0,(byte) 0xc3,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0x3b,(byte) 0x0,(byte) 0xf,(byte) 0xfc,
+(byte) 0x3,(byte) 0xc,(byte) 0x63,(byte) 0xc,(byte) 0x67,(byte) 0x98,(byte) 0x3c,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch230 = new BitmapCharRec(14,12,-1,0,16,ch230data);
+
+// char: 0xe5
+
+ static final byte[] ch229data = {
+ (byte) 0x71,(byte) 0x80,(byte) 0xfb,(byte) 0x0,(byte) 0xc7,(byte) 0x0,(byte) 0xc3,(byte) 0x0,(byte) 0xc3,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0x3b,(byte) 0x0,(byte) 0xf,(byte) 0x0,
+(byte) 0x3,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0x67,(byte) 0x0,(byte) 0x3e,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x1c,(byte) 0x0,(byte) 0x22,(byte) 0x0,(byte) 0x22,(byte) 0x0,
+(byte) 0x1c,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch229 = new BitmapCharRec(9,17,-1,0,11,ch229data);
+
+// char: 0xe4
+
+ static final byte[] ch228data = {
+ (byte) 0x71,(byte) 0x80,(byte) 0xfb,(byte) 0x0,(byte) 0xc7,(byte) 0x0,(byte) 0xc3,(byte) 0x0,(byte) 0xc3,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0x3b,(byte) 0x0,(byte) 0xf,(byte) 0x0,
+(byte) 0x3,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0x67,(byte) 0x0,(byte) 0x3e,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x66,(byte) 0x0,(byte) 0x66,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch228 = new BitmapCharRec(9,16,-1,0,11,ch228data);
+
+// char: 0xe3
+
+ static final byte[] ch227data = {
+ (byte) 0x71,(byte) 0x80,(byte) 0xfb,(byte) 0x0,(byte) 0xc7,(byte) 0x0,(byte) 0xc3,(byte) 0x0,(byte) 0xc3,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0x3b,(byte) 0x0,(byte) 0xf,(byte) 0x0,
+(byte) 0x3,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0x67,(byte) 0x0,(byte) 0x3e,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x5c,(byte) 0x0,(byte) 0x3a,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch227 = new BitmapCharRec(9,16,-1,0,11,ch227data);
+
+// char: 0xe2
+
+ static final byte[] ch226data = {
+ (byte) 0x71,(byte) 0x80,(byte) 0xfb,(byte) 0x0,(byte) 0xc7,(byte) 0x0,(byte) 0xc3,(byte) 0x0,(byte) 0xc3,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0x3b,(byte) 0x0,(byte) 0xf,(byte) 0x0,
+(byte) 0x3,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0x67,(byte) 0x0,(byte) 0x3e,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x42,(byte) 0x0,(byte) 0x24,(byte) 0x0,(byte) 0x3c,(byte) 0x0,
+(byte) 0x18,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch226 = new BitmapCharRec(9,17,-1,0,11,ch226data);
+
+// char: 0xe1
+
+ static final byte[] ch225data = {
+ (byte) 0x71,(byte) 0x80,(byte) 0xfb,(byte) 0x0,(byte) 0xc7,(byte) 0x0,(byte) 0xc3,(byte) 0x0,(byte) 0xc3,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0x3b,(byte) 0x0,(byte) 0xf,(byte) 0x0,
+(byte) 0x3,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0x67,(byte) 0x0,(byte) 0x3e,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x10,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0x7,(byte) 0x0,
+(byte) 0x3,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch225 = new BitmapCharRec(9,17,-1,0,11,ch225data);
+
+// char: 0xe0
+
+ static final byte[] ch224data = {
+ (byte) 0x71,(byte) 0x80,(byte) 0xfb,(byte) 0x0,(byte) 0xc7,(byte) 0x0,(byte) 0xc3,(byte) 0x0,(byte) 0xc3,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0x3b,(byte) 0x0,(byte) 0xf,(byte) 0x0,
+(byte) 0x3,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0x67,(byte) 0x0,(byte) 0x3e,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x4,(byte) 0x0,(byte) 0x18,(byte) 0x0,(byte) 0x70,(byte) 0x0,
+(byte) 0x60,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch224 = new BitmapCharRec(9,17,-1,0,11,ch224data);
+
+// char: 0xdf
+
+ static final byte[] ch223data = {
+ (byte) 0xe7,(byte) 0x0,(byte) 0x6c,(byte) 0x80,(byte) 0x6c,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x61,(byte) 0xc0,(byte) 0x61,(byte) 0x80,(byte) 0x63,(byte) 0x80,
+(byte) 0x67,(byte) 0x0,(byte) 0x6c,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0x61,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0x33,(byte) 0x0,
+(byte) 0x1e,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch223 = new BitmapCharRec(10,17,-1,0,12,ch223data);
+
+// char: 0xde
+
+ static final byte[] ch222data = {
+ (byte) 0xfc,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x3f,(byte) 0xc0,(byte) 0x30,(byte) 0x70,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x18,
+(byte) 0x30,(byte) 0x18,(byte) 0x30,(byte) 0x18,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x70,(byte) 0x3f,(byte) 0xc0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,
+(byte) 0xfc,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch222 = new BitmapCharRec(13,17,-1,0,15,ch222data);
+
+// char: 0xdd
+
+ static final byte[] ch221data = {
+ (byte) 0x7,(byte) 0xe0,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x3,(byte) 0xc0,
+(byte) 0x3,(byte) 0x40,(byte) 0x6,(byte) 0x60,(byte) 0x6,(byte) 0x20,(byte) 0xc,(byte) 0x30,(byte) 0x1c,(byte) 0x10,(byte) 0x18,(byte) 0x18,(byte) 0x38,(byte) 0x8,(byte) 0x30,(byte) 0xc,
+(byte) 0xfc,(byte) 0x3f,(byte) 0x0,(byte) 0x0,(byte) 0x1,(byte) 0x0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0x70,(byte) 0x0,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch221 = new BitmapCharRec(16,22,0,0,16,ch221data);
+
+// char: 0xdc
+
+ static final byte[] ch220data = {
+ (byte) 0x7,(byte) 0xe0,(byte) 0x1c,(byte) 0x30,(byte) 0x18,(byte) 0x8,(byte) 0x30,(byte) 0x8,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,
+(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,
+(byte) 0xfc,(byte) 0x1f,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x6,(byte) 0x30,(byte) 0x6,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch220 = new BitmapCharRec(16,21,-1,0,18,ch220data);
+
+// char: 0xdb
+
+ static final byte[] ch219data = {
+ (byte) 0x7,(byte) 0xe0,(byte) 0x1c,(byte) 0x30,(byte) 0x18,(byte) 0x8,(byte) 0x30,(byte) 0x8,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,
+(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,
+(byte) 0xfc,(byte) 0x1f,(byte) 0x0,(byte) 0x0,(byte) 0x8,(byte) 0x10,(byte) 0x6,(byte) 0x60,(byte) 0x3,(byte) 0xc0,(byte) 0x1,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch219 = new BitmapCharRec(16,22,-1,0,18,ch219data);
+
+// char: 0xda
+
+ static final byte[] ch218data = {
+ (byte) 0x7,(byte) 0xe0,(byte) 0x1c,(byte) 0x30,(byte) 0x18,(byte) 0x8,(byte) 0x30,(byte) 0x8,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,
+(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,
+(byte) 0xfc,(byte) 0x1f,(byte) 0x0,(byte) 0x0,(byte) 0x1,(byte) 0x0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0x70,(byte) 0x0,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch218 = new BitmapCharRec(16,22,-1,0,18,ch218data);
+
+// char: 0xd9
+
+ static final byte[] ch217data = {
+ (byte) 0x7,(byte) 0xe0,(byte) 0x1c,(byte) 0x30,(byte) 0x18,(byte) 0x8,(byte) 0x30,(byte) 0x8,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,
+(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,
+(byte) 0xfc,(byte) 0x1f,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x40,(byte) 0x1,(byte) 0x80,(byte) 0x7,(byte) 0x0,(byte) 0x6,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch217 = new BitmapCharRec(16,22,-1,0,18,ch217data);
+
+// char: 0xd8
+
+ static final byte[] ch216data = {
+ (byte) 0x20,(byte) 0x0,(byte) 0x27,(byte) 0xe0,(byte) 0x1c,(byte) 0x38,(byte) 0x38,(byte) 0x1c,(byte) 0x68,(byte) 0x6,(byte) 0x64,(byte) 0x6,(byte) 0xc2,(byte) 0x3,(byte) 0xc2,(byte) 0x3,
+(byte) 0xc1,(byte) 0x3,(byte) 0xc1,(byte) 0x3,(byte) 0xc0,(byte) 0x83,(byte) 0xc0,(byte) 0x83,(byte) 0xc0,(byte) 0x43,(byte) 0x60,(byte) 0x46,(byte) 0x60,(byte) 0x26,(byte) 0x38,(byte) 0x1c,
+(byte) 0x1c,(byte) 0x38,(byte) 0x7,(byte) 0xe4,(byte) 0x0,(byte) 0x4,
+ };
+
+ static final BitmapCharRec ch216 = new BitmapCharRec(16,19,-1,1,18,ch216data);
+
+// char: 0xd7
+
+ static final byte[] ch215data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0xc0,(byte) 0xc0,(byte) 0x61,(byte) 0x80,(byte) 0x33,(byte) 0x0,(byte) 0x1e,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0x1e,(byte) 0x0,(byte) 0x33,(byte) 0x0,
+(byte) 0x61,(byte) 0x80,(byte) 0xc0,(byte) 0xc0,(byte) 0x80,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch215 = new BitmapCharRec(10,11,-2,-1,14,ch215data);
+
+// char: 0xd6
+
+ static final byte[] ch214data = {
+ (byte) 0x7,(byte) 0xe0,(byte) 0x1c,(byte) 0x38,(byte) 0x38,(byte) 0x1c,(byte) 0x60,(byte) 0x6,(byte) 0x60,(byte) 0x6,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,
+(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0x60,(byte) 0x6,(byte) 0x60,(byte) 0x6,(byte) 0x38,(byte) 0x1c,(byte) 0x1c,(byte) 0x38,
+(byte) 0x7,(byte) 0xe0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x6,(byte) 0x60,(byte) 0x6,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch214 = new BitmapCharRec(16,21,-1,0,18,ch214data);
+
+// char: 0xd5
+
+ static final byte[] ch213data = {
+ (byte) 0x7,(byte) 0xe0,(byte) 0x1c,(byte) 0x38,(byte) 0x38,(byte) 0x1c,(byte) 0x60,(byte) 0x6,(byte) 0x60,(byte) 0x6,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,
+(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0x60,(byte) 0x6,(byte) 0x60,(byte) 0x6,(byte) 0x38,(byte) 0x1c,(byte) 0x1c,(byte) 0x38,
+(byte) 0x7,(byte) 0xe0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x4,(byte) 0xe0,(byte) 0x3,(byte) 0x90,
+ };
+
+ static final BitmapCharRec ch213 = new BitmapCharRec(16,21,-1,0,18,ch213data);
+
+// char: 0xd4
+
+ static final byte[] ch212data = {
+ (byte) 0x7,(byte) 0xe0,(byte) 0x1c,(byte) 0x38,(byte) 0x38,(byte) 0x1c,(byte) 0x60,(byte) 0x6,(byte) 0x60,(byte) 0x6,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,
+(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0x60,(byte) 0x6,(byte) 0x60,(byte) 0x6,(byte) 0x38,(byte) 0x1c,(byte) 0x1c,(byte) 0x38,
+(byte) 0x7,(byte) 0xe0,(byte) 0x0,(byte) 0x0,(byte) 0x8,(byte) 0x10,(byte) 0x6,(byte) 0x60,(byte) 0x3,(byte) 0xc0,(byte) 0x1,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch212 = new BitmapCharRec(16,22,-1,0,18,ch212data);
+
+// char: 0xd3
+
+ static final byte[] ch211data = {
+ (byte) 0x7,(byte) 0xe0,(byte) 0x1c,(byte) 0x38,(byte) 0x38,(byte) 0x1c,(byte) 0x60,(byte) 0x6,(byte) 0x60,(byte) 0x6,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,
+(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0x60,(byte) 0x6,(byte) 0x60,(byte) 0x6,(byte) 0x38,(byte) 0x1c,(byte) 0x1c,(byte) 0x38,
+(byte) 0x7,(byte) 0xe0,(byte) 0x0,(byte) 0x0,(byte) 0x1,(byte) 0x0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0x70,(byte) 0x0,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch211 = new BitmapCharRec(16,22,-1,0,18,ch211data);
+
+// char: 0xd2
+
+ static final byte[] ch210data = {
+ (byte) 0x7,(byte) 0xe0,(byte) 0x1c,(byte) 0x38,(byte) 0x38,(byte) 0x1c,(byte) 0x60,(byte) 0x6,(byte) 0x60,(byte) 0x6,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,
+(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0x60,(byte) 0x6,(byte) 0x60,(byte) 0x6,(byte) 0x38,(byte) 0x1c,(byte) 0x1c,(byte) 0x38,
+(byte) 0x7,(byte) 0xe0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x40,(byte) 0x1,(byte) 0x80,(byte) 0x7,(byte) 0x0,(byte) 0x6,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch210 = new BitmapCharRec(16,22,-1,0,18,ch210data);
+
+// char: 0xd1
+
+ static final byte[] ch209data = {
+ (byte) 0xf8,(byte) 0xc,(byte) 0x20,(byte) 0x1c,(byte) 0x20,(byte) 0x1c,(byte) 0x20,(byte) 0x34,(byte) 0x20,(byte) 0x64,(byte) 0x20,(byte) 0x64,(byte) 0x20,(byte) 0xc4,(byte) 0x21,(byte) 0x84,
+(byte) 0x21,(byte) 0x84,(byte) 0x23,(byte) 0x4,(byte) 0x26,(byte) 0x4,(byte) 0x26,(byte) 0x4,(byte) 0x2c,(byte) 0x4,(byte) 0x38,(byte) 0x4,(byte) 0x38,(byte) 0x4,(byte) 0x30,(byte) 0x4,
+(byte) 0xf0,(byte) 0x1f,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x4,(byte) 0xe0,(byte) 0x3,(byte) 0x90,
+ };
+
+ static final BitmapCharRec ch209 = new BitmapCharRec(16,21,-1,0,18,ch209data);
+
+// char: 0xd0
+
+ static final byte[] ch208data = {
+ (byte) 0x7f,(byte) 0xe0,(byte) 0x18,(byte) 0x38,(byte) 0x18,(byte) 0x1c,(byte) 0x18,(byte) 0x6,(byte) 0x18,(byte) 0x6,(byte) 0x18,(byte) 0x3,(byte) 0x18,(byte) 0x3,(byte) 0x18,(byte) 0x3,
+(byte) 0xff,(byte) 0x3,(byte) 0x18,(byte) 0x3,(byte) 0x18,(byte) 0x3,(byte) 0x18,(byte) 0x3,(byte) 0x18,(byte) 0x6,(byte) 0x18,(byte) 0x6,(byte) 0x18,(byte) 0x1c,(byte) 0x18,(byte) 0x38,
+(byte) 0x7f,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch208 = new BitmapCharRec(16,17,0,0,17,ch208data);
+
+// char: 0xcf
+
+ static final byte[] ch207data = {
+ (byte) 0xfc,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,
+(byte) 0xfc,(byte) 0x0,(byte) 0x0,(byte) 0xcc,(byte) 0xcc,
+ };
+
+ static final BitmapCharRec ch207 = new BitmapCharRec(6,21,-1,0,8,ch207data);
+
+// char: 0xce
+
+ static final byte[] ch206data = {
+ (byte) 0x7e,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,
+(byte) 0x7e,(byte) 0x0,(byte) 0x81,(byte) 0x66,(byte) 0x3c,(byte) 0x18,
+ };
+
+ static final BitmapCharRec ch206 = new BitmapCharRec(8,22,-1,0,8,ch206data);
+
+// char: 0xcd
+
+ static final byte[] ch205data = {
+ (byte) 0xfc,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,
+(byte) 0xfc,(byte) 0x0,(byte) 0x40,(byte) 0x30,(byte) 0x1c,(byte) 0xc,
+ };
+
+ static final BitmapCharRec ch205 = new BitmapCharRec(6,22,-1,0,8,ch205data);
+
+// char: 0xcc
+
+ static final byte[] ch204data = {
+ (byte) 0xfc,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,
+(byte) 0xfc,(byte) 0x0,(byte) 0x8,(byte) 0x30,(byte) 0xe0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch204 = new BitmapCharRec(6,22,-1,0,8,ch204data);
+
+// char: 0xcb
+
+ static final byte[] ch203data = {
+ (byte) 0xff,(byte) 0xf8,(byte) 0x30,(byte) 0x18,(byte) 0x30,(byte) 0x8,(byte) 0x30,(byte) 0x8,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x40,(byte) 0x30,(byte) 0x40,
+(byte) 0x3f,(byte) 0xc0,(byte) 0x30,(byte) 0x40,(byte) 0x30,(byte) 0x40,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x10,(byte) 0x30,(byte) 0x10,(byte) 0x30,(byte) 0x30,
+(byte) 0xff,(byte) 0xf0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x19,(byte) 0x80,(byte) 0x19,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch203 = new BitmapCharRec(13,21,-1,0,15,ch203data);
+
+// char: 0xca
+
+ static final byte[] ch202data = {
+ (byte) 0xff,(byte) 0xf8,(byte) 0x30,(byte) 0x18,(byte) 0x30,(byte) 0x8,(byte) 0x30,(byte) 0x8,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x40,(byte) 0x30,(byte) 0x40,
+(byte) 0x3f,(byte) 0xc0,(byte) 0x30,(byte) 0x40,(byte) 0x30,(byte) 0x40,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x10,(byte) 0x30,(byte) 0x10,(byte) 0x30,(byte) 0x30,
+(byte) 0xff,(byte) 0xf0,(byte) 0x0,(byte) 0x0,(byte) 0x10,(byte) 0x20,(byte) 0xc,(byte) 0xc0,(byte) 0x7,(byte) 0x80,(byte) 0x3,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch202 = new BitmapCharRec(13,22,-1,0,15,ch202data);
+
+// char: 0xc9
+
+ static final byte[] ch201data = {
+ (byte) 0xff,(byte) 0xf8,(byte) 0x30,(byte) 0x18,(byte) 0x30,(byte) 0x8,(byte) 0x30,(byte) 0x8,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x40,(byte) 0x30,(byte) 0x40,
+(byte) 0x3f,(byte) 0xc0,(byte) 0x30,(byte) 0x40,(byte) 0x30,(byte) 0x40,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x10,(byte) 0x30,(byte) 0x10,(byte) 0x30,(byte) 0x30,
+(byte) 0xff,(byte) 0xf0,(byte) 0x0,(byte) 0x0,(byte) 0x4,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0x1,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch201 = new BitmapCharRec(13,22,-1,0,15,ch201data);
+
+// char: 0xc8
+
+ static final byte[] ch200data = {
+ (byte) 0xff,(byte) 0xf8,(byte) 0x30,(byte) 0x18,(byte) 0x30,(byte) 0x8,(byte) 0x30,(byte) 0x8,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x40,(byte) 0x30,(byte) 0x40,
+(byte) 0x3f,(byte) 0xc0,(byte) 0x30,(byte) 0x40,(byte) 0x30,(byte) 0x40,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x10,(byte) 0x30,(byte) 0x10,(byte) 0x30,(byte) 0x30,
+(byte) 0xff,(byte) 0xf0,(byte) 0x0,(byte) 0x0,(byte) 0x1,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x1c,(byte) 0x0,(byte) 0x18,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch200 = new BitmapCharRec(13,22,-1,0,15,ch200data);
+
+// char: 0xc7
+
+ static final byte[] ch199data = {
+ (byte) 0x7,(byte) 0x80,(byte) 0xc,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0x0,(byte) 0x1,(byte) 0x0,(byte) 0x7,(byte) 0xe0,(byte) 0x1e,(byte) 0x38,
+(byte) 0x38,(byte) 0x8,(byte) 0x60,(byte) 0x4,(byte) 0x60,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,
+(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0x60,(byte) 0x4,(byte) 0x60,(byte) 0x4,(byte) 0x38,(byte) 0xc,(byte) 0x1c,(byte) 0x3c,(byte) 0x7,(byte) 0xe4,
+ };
+
+ static final BitmapCharRec ch199 = new BitmapCharRec(14,23,-1,6,16,ch199data);
+
+// char: 0xc6
+
+ static final byte[] ch198data = {
+ (byte) 0xf9,(byte) 0xff,(byte) 0xf0,(byte) 0x30,(byte) 0x60,(byte) 0x30,(byte) 0x10,(byte) 0x60,(byte) 0x10,(byte) 0x10,(byte) 0x60,(byte) 0x10,(byte) 0x18,(byte) 0x60,(byte) 0x0,(byte) 0x8,
+(byte) 0x60,(byte) 0x0,(byte) 0xf,(byte) 0xe0,(byte) 0x80,(byte) 0xc,(byte) 0x60,(byte) 0x80,(byte) 0x4,(byte) 0x7f,(byte) 0x80,(byte) 0x4,(byte) 0x60,(byte) 0x80,(byte) 0x6,(byte) 0x60,
+(byte) 0x80,(byte) 0x2,(byte) 0x60,(byte) 0x0,(byte) 0x2,(byte) 0x60,(byte) 0x0,(byte) 0x1,(byte) 0x60,(byte) 0x20,(byte) 0x1,(byte) 0x60,(byte) 0x20,(byte) 0x1,(byte) 0xe0,(byte) 0x60,
+(byte) 0x3,(byte) 0xff,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch198 = new BitmapCharRec(20,17,0,0,21,ch198data);
+
+// char: 0xc5
+
+ static final byte[] ch197data = {
+ (byte) 0xfc,(byte) 0x1f,(byte) 0x80,(byte) 0x30,(byte) 0x6,(byte) 0x0,(byte) 0x10,(byte) 0x6,(byte) 0x0,(byte) 0x10,(byte) 0xc,(byte) 0x0,(byte) 0x18,(byte) 0xc,(byte) 0x0,(byte) 0x8,
+(byte) 0xc,(byte) 0x0,(byte) 0xf,(byte) 0xf8,(byte) 0x0,(byte) 0xc,(byte) 0x18,(byte) 0x0,(byte) 0x4,(byte) 0x18,(byte) 0x0,(byte) 0x4,(byte) 0x30,(byte) 0x0,(byte) 0x6,(byte) 0x30,
+(byte) 0x0,(byte) 0x2,(byte) 0x30,(byte) 0x0,(byte) 0x2,(byte) 0x60,(byte) 0x0,(byte) 0x1,(byte) 0x60,(byte) 0x0,(byte) 0x1,(byte) 0xc0,(byte) 0x0,(byte) 0x1,(byte) 0xc0,(byte) 0x0,
+(byte) 0x0,(byte) 0x80,(byte) 0x0,(byte) 0x1,(byte) 0xc0,(byte) 0x0,(byte) 0x2,(byte) 0x20,(byte) 0x0,(byte) 0x2,(byte) 0x20,(byte) 0x0,(byte) 0x1,(byte) 0xc0,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch197 = new BitmapCharRec(17,21,0,0,17,ch197data);
+
+// char: 0xc4
+
+ static final byte[] ch196data = {
+ (byte) 0xfc,(byte) 0x1f,(byte) 0x80,(byte) 0x30,(byte) 0x6,(byte) 0x0,(byte) 0x10,(byte) 0x6,(byte) 0x0,(byte) 0x10,(byte) 0xc,(byte) 0x0,(byte) 0x18,(byte) 0xc,(byte) 0x0,(byte) 0x8,
+(byte) 0xc,(byte) 0x0,(byte) 0xf,(byte) 0xf8,(byte) 0x0,(byte) 0xc,(byte) 0x18,(byte) 0x0,(byte) 0x4,(byte) 0x18,(byte) 0x0,(byte) 0x4,(byte) 0x30,(byte) 0x0,(byte) 0x6,(byte) 0x30,
+(byte) 0x0,(byte) 0x2,(byte) 0x30,(byte) 0x0,(byte) 0x2,(byte) 0x60,(byte) 0x0,(byte) 0x1,(byte) 0x60,(byte) 0x0,(byte) 0x1,(byte) 0xc0,(byte) 0x0,(byte) 0x1,(byte) 0xc0,(byte) 0x0,
+(byte) 0x0,(byte) 0x80,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x6,(byte) 0x30,(byte) 0x0,(byte) 0x6,(byte) 0x30,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch196 = new BitmapCharRec(17,21,0,0,17,ch196data);
+
+// char: 0xc3
+
+ static final byte[] ch195data = {
+ (byte) 0xfc,(byte) 0x1f,(byte) 0x80,(byte) 0x30,(byte) 0x7,(byte) 0x0,(byte) 0x10,(byte) 0x6,(byte) 0x0,(byte) 0x10,(byte) 0xc,(byte) 0x0,(byte) 0x18,(byte) 0xc,(byte) 0x0,(byte) 0x8,
+(byte) 0xc,(byte) 0x0,(byte) 0xf,(byte) 0xf8,(byte) 0x0,(byte) 0xc,(byte) 0x18,(byte) 0x0,(byte) 0x4,(byte) 0x18,(byte) 0x0,(byte) 0x4,(byte) 0x30,(byte) 0x0,(byte) 0x6,(byte) 0x30,
+(byte) 0x0,(byte) 0x2,(byte) 0x30,(byte) 0x0,(byte) 0x2,(byte) 0x60,(byte) 0x0,(byte) 0x1,(byte) 0x60,(byte) 0x0,(byte) 0x1,(byte) 0xc0,(byte) 0x0,(byte) 0x1,(byte) 0xc0,(byte) 0x0,
+(byte) 0x0,(byte) 0x80,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x4,(byte) 0xe0,(byte) 0x0,(byte) 0x3,(byte) 0x90,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch195 = new BitmapCharRec(17,21,0,0,17,ch195data);
+
+// char: 0xc2
+
+ static final byte[] ch194data = {
+ (byte) 0xfc,(byte) 0x1f,(byte) 0x80,(byte) 0x30,(byte) 0x6,(byte) 0x0,(byte) 0x10,(byte) 0x6,(byte) 0x0,(byte) 0x10,(byte) 0xc,(byte) 0x0,(byte) 0x18,(byte) 0xc,(byte) 0x0,(byte) 0x8,
+(byte) 0xc,(byte) 0x0,(byte) 0xf,(byte) 0xf8,(byte) 0x0,(byte) 0xc,(byte) 0x18,(byte) 0x0,(byte) 0x4,(byte) 0x18,(byte) 0x0,(byte) 0x4,(byte) 0x30,(byte) 0x0,(byte) 0x6,(byte) 0x30,
+(byte) 0x0,(byte) 0x2,(byte) 0x30,(byte) 0x0,(byte) 0x2,(byte) 0x60,(byte) 0x0,(byte) 0x1,(byte) 0x60,(byte) 0x0,(byte) 0x1,(byte) 0xc0,(byte) 0x0,(byte) 0x1,(byte) 0xc0,(byte) 0x0,
+(byte) 0x0,(byte) 0x80,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x8,(byte) 0x10,(byte) 0x0,(byte) 0x6,(byte) 0x60,(byte) 0x0,(byte) 0x3,(byte) 0xc0,(byte) 0x0,(byte) 0x1,
+(byte) 0x80,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch194 = new BitmapCharRec(17,22,0,0,17,ch194data);
+
+// char: 0xc1
+
+ static final byte[] ch193data = {
+ (byte) 0xfc,(byte) 0x1f,(byte) 0x80,(byte) 0x30,(byte) 0x6,(byte) 0x0,(byte) 0x10,(byte) 0x6,(byte) 0x0,(byte) 0x10,(byte) 0xc,(byte) 0x0,(byte) 0x18,(byte) 0xc,(byte) 0x0,(byte) 0x8,
+(byte) 0xc,(byte) 0x0,(byte) 0xf,(byte) 0xf8,(byte) 0x0,(byte) 0xc,(byte) 0x18,(byte) 0x0,(byte) 0x4,(byte) 0x18,(byte) 0x0,(byte) 0x4,(byte) 0x30,(byte) 0x0,(byte) 0x6,(byte) 0x30,
+(byte) 0x0,(byte) 0x2,(byte) 0x30,(byte) 0x0,(byte) 0x2,(byte) 0x60,(byte) 0x0,(byte) 0x1,(byte) 0x60,(byte) 0x0,(byte) 0x1,(byte) 0xc0,(byte) 0x0,(byte) 0x1,(byte) 0xc0,(byte) 0x0,
+(byte) 0x0,(byte) 0x80,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x1,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0x0,(byte) 0x70,(byte) 0x0,(byte) 0x0,
+(byte) 0x30,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch193 = new BitmapCharRec(17,22,0,0,17,ch193data);
+
+// char: 0xc0
+
+ static final byte[] ch192data = {
+ (byte) 0xfc,(byte) 0x1f,(byte) 0x80,(byte) 0x30,(byte) 0x6,(byte) 0x0,(byte) 0x10,(byte) 0x6,(byte) 0x0,(byte) 0x10,(byte) 0xc,(byte) 0x0,(byte) 0x18,(byte) 0xc,(byte) 0x0,(byte) 0x8,
+(byte) 0xc,(byte) 0x0,(byte) 0xf,(byte) 0xf8,(byte) 0x0,(byte) 0xc,(byte) 0x18,(byte) 0x0,(byte) 0x4,(byte) 0x18,(byte) 0x0,(byte) 0x4,(byte) 0x30,(byte) 0x0,(byte) 0x6,(byte) 0x30,
+(byte) 0x0,(byte) 0x2,(byte) 0x30,(byte) 0x0,(byte) 0x2,(byte) 0x60,(byte) 0x0,(byte) 0x1,(byte) 0x60,(byte) 0x0,(byte) 0x1,(byte) 0xc0,(byte) 0x0,(byte) 0x1,(byte) 0xc0,(byte) 0x0,
+(byte) 0x0,(byte) 0x80,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x20,(byte) 0x0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0x3,(byte) 0x80,(byte) 0x0,(byte) 0x3,
+(byte) 0x0,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch192 = new BitmapCharRec(17,22,0,0,17,ch192data);
+
+// char: 0xbf
+
+ static final byte[] ch191data = {
+ (byte) 0x3e,(byte) 0x63,(byte) 0xc1,(byte) 0xc3,(byte) 0xc3,(byte) 0xe0,(byte) 0x70,(byte) 0x30,(byte) 0x38,(byte) 0x18,(byte) 0x18,(byte) 0x8,(byte) 0x8,(byte) 0x0,(byte) 0x0,(byte) 0xc,
+(byte) 0xc,
+ };
+
+ static final BitmapCharRec ch191 = new BitmapCharRec(8,17,-1,5,11,ch191data);
+
+// char: 0xbe
+
+ static final byte[] ch190data = {
+ (byte) 0x18,(byte) 0x2,(byte) 0x0,(byte) 0x8,(byte) 0x2,(byte) 0x0,(byte) 0xc,(byte) 0x7f,(byte) 0x80,(byte) 0x4,(byte) 0x22,(byte) 0x0,(byte) 0x6,(byte) 0x32,(byte) 0x0,(byte) 0x3,
+(byte) 0x12,(byte) 0x0,(byte) 0x1,(byte) 0xa,(byte) 0x0,(byte) 0x71,(byte) 0x8e,(byte) 0x0,(byte) 0x88,(byte) 0x86,(byte) 0x0,(byte) 0x8c,(byte) 0xc2,(byte) 0x0,(byte) 0xc,(byte) 0x60,
+(byte) 0x0,(byte) 0x8,(byte) 0x20,(byte) 0x0,(byte) 0x30,(byte) 0x30,(byte) 0x0,(byte) 0x8,(byte) 0x10,(byte) 0x0,(byte) 0x8c,(byte) 0x18,(byte) 0x0,(byte) 0x4c,(byte) 0xc,(byte) 0x0,
+(byte) 0x38,(byte) 0x4,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch190 = new BitmapCharRec(17,17,0,0,18,ch190data);
+
+// char: 0xbd
+
+ static final byte[] ch189data = {
+ (byte) 0x30,(byte) 0x7e,(byte) 0x10,(byte) 0x22,(byte) 0x18,(byte) 0x10,(byte) 0x8,(byte) 0x18,(byte) 0xc,(byte) 0x8,(byte) 0x6,(byte) 0x4,(byte) 0x2,(byte) 0x6,(byte) 0xfb,(byte) 0x46,
+(byte) 0x21,(byte) 0x26,(byte) 0x21,(byte) 0x9c,(byte) 0x20,(byte) 0xc0,(byte) 0x20,(byte) 0x40,(byte) 0x20,(byte) 0x60,(byte) 0x20,(byte) 0x20,(byte) 0xa0,(byte) 0x30,(byte) 0x60,(byte) 0x18,
+(byte) 0x20,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch189 = new BitmapCharRec(15,17,-1,0,18,ch189data);
+
+// char: 0xbc
+
+ static final byte[] ch188data = {
+ (byte) 0x30,(byte) 0x4,(byte) 0x10,(byte) 0x4,(byte) 0x18,(byte) 0xff,(byte) 0x8,(byte) 0x44,(byte) 0xc,(byte) 0x64,(byte) 0x6,(byte) 0x24,(byte) 0x2,(byte) 0x14,(byte) 0xfb,(byte) 0x1c,
+(byte) 0x21,(byte) 0xc,(byte) 0x21,(byte) 0x84,(byte) 0x20,(byte) 0xc0,(byte) 0x20,(byte) 0x40,(byte) 0x20,(byte) 0x60,(byte) 0x20,(byte) 0x20,(byte) 0xa0,(byte) 0x30,(byte) 0x60,(byte) 0x18,
+(byte) 0x20,(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch188 = new BitmapCharRec(16,17,-1,0,18,ch188data);
+
+// char: 0xbb
+
+ static final byte[] ch187data = {
+ (byte) 0x88,(byte) 0x0,(byte) 0xcc,(byte) 0x0,(byte) 0x66,(byte) 0x0,(byte) 0x33,(byte) 0x0,(byte) 0x19,(byte) 0x80,(byte) 0x19,(byte) 0x80,(byte) 0x33,(byte) 0x0,(byte) 0x66,(byte) 0x0,
+(byte) 0xcc,(byte) 0x0,(byte) 0x88,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch187 = new BitmapCharRec(9,10,-2,-1,12,ch187data);
+
+// char: 0xba
+
+ static final byte[] ch186data = {
+ (byte) 0xfc,(byte) 0x0,(byte) 0x78,(byte) 0xcc,(byte) 0xcc,(byte) 0xcc,(byte) 0xcc,(byte) 0xcc,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch186 = new BitmapCharRec(6,9,-1,-8,8,ch186data);
+
+// char: 0xb9
+
+ static final byte[] ch185data = {
+ (byte) 0xf8,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0x20,(byte) 0xa0,(byte) 0x60,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch185 = new BitmapCharRec(5,10,-1,-7,7,ch185data);
+
+// char: 0xb8
+
+ static final byte[] ch184data = {
+ (byte) 0x78,(byte) 0xcc,(byte) 0xc,(byte) 0x3c,(byte) 0x30,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch184 = new BitmapCharRec(6,6,-1,6,8,ch184data);
+
+// char: 0xb7
+
+ static final byte[] ch183data = {
+ (byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch183 = new BitmapCharRec(2,2,-2,-6,6,ch183data);
+
+// char: 0xb6
+
+ static final byte[] ch182data = {
+ (byte) 0x9,(byte) 0x0,(byte) 0x9,(byte) 0x0,(byte) 0x9,(byte) 0x0,(byte) 0x9,(byte) 0x0,(byte) 0x9,(byte) 0x0,(byte) 0x9,(byte) 0x0,(byte) 0x9,(byte) 0x0,(byte) 0x9,(byte) 0x0,
+(byte) 0x9,(byte) 0x0,(byte) 0x9,(byte) 0x0,(byte) 0x9,(byte) 0x0,(byte) 0x19,(byte) 0x0,(byte) 0x39,(byte) 0x0,(byte) 0x79,(byte) 0x0,(byte) 0x79,(byte) 0x0,(byte) 0xf9,(byte) 0x0,
+(byte) 0xf9,(byte) 0x0,(byte) 0xf9,(byte) 0x0,(byte) 0x79,(byte) 0x0,(byte) 0x79,(byte) 0x0,(byte) 0x39,(byte) 0x0,(byte) 0x1f,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch182 = new BitmapCharRec(9,22,-1,5,11,ch182data);
+
+// char: 0xb5
+
+ static final byte[] ch181data = {
+ (byte) 0x40,(byte) 0x0,(byte) 0xe0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0x40,(byte) 0x0,(byte) 0x40,(byte) 0x0,(byte) 0x5c,(byte) 0xe0,(byte) 0x7e,(byte) 0xc0,(byte) 0x71,(byte) 0xc0,
+(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,
+(byte) 0xe1,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch181 = new BitmapCharRec(11,17,-1,5,13,ch181data);
+
+// char: 0xb4
+
+ static final byte[] ch180data = {
+ (byte) 0x80,(byte) 0x60,(byte) 0x38,(byte) 0x18,
+ };
+
+ static final BitmapCharRec ch180 = new BitmapCharRec(5,4,-2,-13,8,ch180data);
+
+// char: 0xb3
+
+ static final byte[] ch179data = {
+ (byte) 0x70,(byte) 0x88,(byte) 0x8c,(byte) 0xc,(byte) 0x8,(byte) 0x30,(byte) 0x8,(byte) 0x8c,(byte) 0x4c,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch179 = new BitmapCharRec(6,10,0,-7,7,ch179data);
+
+// char: 0xb2
+
+ static final byte[] ch178data = {
+ (byte) 0xfc,(byte) 0x44,(byte) 0x20,(byte) 0x30,(byte) 0x10,(byte) 0x8,(byte) 0xc,(byte) 0x8c,(byte) 0x4c,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch178 = new BitmapCharRec(6,10,0,-7,7,ch178data);
+
+// char: 0xb1
+
+ static final byte[] ch177data = {
+ (byte) 0xff,(byte) 0xf0,(byte) 0xff,(byte) 0xf0,(byte) 0x0,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,
+(byte) 0xff,(byte) 0xf0,(byte) 0xff,(byte) 0xf0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch177 = new BitmapCharRec(12,15,-1,0,14,ch177data);
+
+// char: 0xb0
+
+ static final byte[] ch176data = {
+ (byte) 0x38,(byte) 0x44,(byte) 0x82,(byte) 0x82,(byte) 0x82,(byte) 0x44,(byte) 0x38,
+ };
+
+ static final BitmapCharRec ch176 = new BitmapCharRec(7,7,-1,-10,9,ch176data);
+
+// char: 0xaf
+
+ static final byte[] ch175data = {
+ (byte) 0xfc,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch175 = new BitmapCharRec(6,2,-1,-14,8,ch175data);
+
+// char: 0xae
+
+ static final byte[] ch174data = {
+ (byte) 0x7,(byte) 0xf0,(byte) 0x0,(byte) 0x1c,(byte) 0x1c,(byte) 0x0,(byte) 0x30,(byte) 0x6,(byte) 0x0,(byte) 0x60,(byte) 0x3,(byte) 0x0,(byte) 0x47,(byte) 0x19,(byte) 0x0,(byte) 0xc2,
+(byte) 0x31,(byte) 0x80,(byte) 0x82,(byte) 0x20,(byte) 0x80,(byte) 0x82,(byte) 0x40,(byte) 0x80,(byte) 0x83,(byte) 0xe0,(byte) 0x80,(byte) 0x82,(byte) 0x30,(byte) 0x80,(byte) 0x82,(byte) 0x10,
+(byte) 0x80,(byte) 0xc2,(byte) 0x11,(byte) 0x80,(byte) 0x42,(byte) 0x31,(byte) 0x0,(byte) 0x67,(byte) 0xe3,(byte) 0x0,(byte) 0x30,(byte) 0x6,(byte) 0x0,(byte) 0x1c,(byte) 0x1c,(byte) 0x0,
+(byte) 0x7,(byte) 0xf0,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch174 = new BitmapCharRec(17,17,-1,0,19,ch174data);
+
+// char: 0xad
+
+ static final byte[] ch173data = {
+ (byte) 0xfe,(byte) 0xfe,
+ };
+
+ static final BitmapCharRec ch173 = new BitmapCharRec(7,2,-1,-5,9,ch173data);
+
+// char: 0xac
+
+ static final byte[] ch172data = {
+ (byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0xff,(byte) 0xf0,(byte) 0xff,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch172 = new BitmapCharRec(12,7,-1,-3,14,ch172data);
+
+// char: 0xab
+
+ static final byte[] ch171data = {
+ (byte) 0x8,(byte) 0x80,(byte) 0x19,(byte) 0x80,(byte) 0x33,(byte) 0x0,(byte) 0x66,(byte) 0x0,(byte) 0xcc,(byte) 0x0,(byte) 0xcc,(byte) 0x0,(byte) 0x66,(byte) 0x0,(byte) 0x33,(byte) 0x0,
+(byte) 0x19,(byte) 0x80,(byte) 0x8,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch171 = new BitmapCharRec(9,10,-2,-1,13,ch171data);
+
+// char: 0xaa
+
+ static final byte[] ch170data = {
+ (byte) 0x7e,(byte) 0x0,(byte) 0x76,(byte) 0xcc,(byte) 0xcc,(byte) 0x7c,(byte) 0xc,(byte) 0xcc,(byte) 0x78,
+ };
+
+ static final BitmapCharRec ch170 = new BitmapCharRec(7,9,0,-8,8,ch170data);
+
+// char: 0xa9
+
+ static final byte[] ch169data = {
+ (byte) 0x7,(byte) 0xf0,(byte) 0x0,(byte) 0x1c,(byte) 0x1c,(byte) 0x0,(byte) 0x30,(byte) 0x6,(byte) 0x0,(byte) 0x61,(byte) 0xc3,(byte) 0x0,(byte) 0x47,(byte) 0x71,(byte) 0x0,(byte) 0xc4,
+(byte) 0x19,(byte) 0x80,(byte) 0x8c,(byte) 0x0,(byte) 0x80,(byte) 0x88,(byte) 0x0,(byte) 0x80,(byte) 0x88,(byte) 0x0,(byte) 0x80,(byte) 0x88,(byte) 0x0,(byte) 0x80,(byte) 0x8c,(byte) 0x0,
+(byte) 0x80,(byte) 0xc4,(byte) 0x19,(byte) 0x80,(byte) 0x47,(byte) 0x31,(byte) 0x0,(byte) 0x61,(byte) 0xe3,(byte) 0x0,(byte) 0x30,(byte) 0x6,(byte) 0x0,(byte) 0x1c,(byte) 0x1c,(byte) 0x0,
+(byte) 0x7,(byte) 0xf0,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch169 = new BitmapCharRec(17,17,-1,0,19,ch169data);
+
+// char: 0xa8
+
+ static final byte[] ch168data = {
+ (byte) 0xcc,(byte) 0xcc,
+ };
+
+ static final BitmapCharRec ch168 = new BitmapCharRec(6,2,-1,-14,8,ch168data);
+
+// char: 0xa7
+
+ static final byte[] ch167data = {
+ (byte) 0x38,(byte) 0x64,(byte) 0x62,(byte) 0x6,(byte) 0xe,(byte) 0x1c,(byte) 0x38,(byte) 0x74,(byte) 0xe2,(byte) 0xc3,(byte) 0x83,(byte) 0x87,(byte) 0x4e,(byte) 0x3c,(byte) 0x38,(byte) 0x70,
+(byte) 0x60,(byte) 0x46,(byte) 0x26,(byte) 0x1c,
+ };
+
+ static final BitmapCharRec ch167 = new BitmapCharRec(8,20,-2,2,12,ch167data);
+
+// char: 0xa6
+
+ static final byte[] ch166data = {
+ (byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,
+(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch166 = new BitmapCharRec(2,17,-2,0,6,ch166data);
+
+// char: 0xa5
+
+ static final byte[] ch165data = {
+ (byte) 0xf,(byte) 0xc0,(byte) 0x3,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0x1f,(byte) 0xe0,(byte) 0x3,(byte) 0x0,(byte) 0x1f,(byte) 0xe0,
+(byte) 0x3,(byte) 0x0,(byte) 0x7,(byte) 0x80,(byte) 0xc,(byte) 0x80,(byte) 0xc,(byte) 0xc0,(byte) 0x18,(byte) 0x40,(byte) 0x18,(byte) 0x60,(byte) 0x30,(byte) 0x20,(byte) 0x70,(byte) 0x30,
+(byte) 0xf8,(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch165 = new BitmapCharRec(14,17,0,0,14,ch165data);
+
+// char: 0xa4
+
+ static final byte[] ch164data = {
+ (byte) 0xc0,(byte) 0x60,(byte) 0xee,(byte) 0xe0,(byte) 0x7f,(byte) 0xc0,(byte) 0x31,(byte) 0x80,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,
+(byte) 0x31,(byte) 0x80,(byte) 0x7f,(byte) 0xc0,(byte) 0xee,(byte) 0xe0,(byte) 0xc0,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch164 = new BitmapCharRec(11,12,-1,-3,13,ch164data);
+
+// char: 0xa3
+
+ static final byte[] ch163data = {
+ (byte) 0xe7,(byte) 0x80,(byte) 0xbe,(byte) 0xc0,(byte) 0x78,(byte) 0x40,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,
+(byte) 0x30,(byte) 0x0,(byte) 0xfc,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x31,(byte) 0x80,(byte) 0x19,(byte) 0x80,
+(byte) 0xf,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch163 = new BitmapCharRec(10,17,-1,0,12,ch163data);
+
+// char: 0xa2
+
+ static final byte[] ch162data = {
+ (byte) 0x40,(byte) 0x0,(byte) 0x40,(byte) 0x0,(byte) 0x3e,(byte) 0x0,(byte) 0x7f,(byte) 0x0,(byte) 0x70,(byte) 0x80,(byte) 0xd0,(byte) 0x0,(byte) 0xc8,(byte) 0x0,(byte) 0xc8,(byte) 0x0,
+(byte) 0xc8,(byte) 0x0,(byte) 0xc4,(byte) 0x0,(byte) 0xc4,(byte) 0x0,(byte) 0x43,(byte) 0x80,(byte) 0x63,(byte) 0x80,(byte) 0x1f,(byte) 0x0,(byte) 0x1,(byte) 0x0,(byte) 0x1,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch162 = new BitmapCharRec(9,16,-1,2,12,ch162data);
+
+// char: 0xa1
+
+ static final byte[] ch161data = {
+ (byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0xc0,
+(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch161 = new BitmapCharRec(2,17,-4,5,8,ch161data);
+
+// char: 0xa0
+
+ static final BitmapCharRec ch160 = new BitmapCharRec(0,0,0,0,6,zerodata);
+
+// char: 0x7e '~'
+
+ static final byte[] ch126data = {
+ (byte) 0x83,(byte) 0x80,(byte) 0xc7,(byte) 0xc0,(byte) 0x7c,(byte) 0x60,(byte) 0x38,(byte) 0x20,
+ };
+
+ static final BitmapCharRec ch126 = new BitmapCharRec(11,4,-1,-5,13,ch126data);
+
+// char: 0x7d '}'
+
+ static final byte[] ch125data = {
+ (byte) 0xe0,(byte) 0x30,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x8,(byte) 0xc,(byte) 0x4,(byte) 0x3,(byte) 0x4,(byte) 0xc,(byte) 0x8,(byte) 0x18,
+(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x30,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch125 = new BitmapCharRec(8,22,-1,5,10,ch125data);
+
+// char: 0x7c '|'
+
+ static final byte[] ch124data = {
+ (byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,
+(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch124 = new BitmapCharRec(2,17,-2,0,6,ch124data);
+
+// char: 0x7b '{'
+
+ static final byte[] ch123data = {
+ (byte) 0x7,(byte) 0xc,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x10,(byte) 0x30,(byte) 0x20,(byte) 0xc0,(byte) 0x20,(byte) 0x30,(byte) 0x10,(byte) 0x18,
+(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0xc,(byte) 0x7,
+ };
+
+ static final BitmapCharRec ch123 = new BitmapCharRec(8,22,-1,5,10,ch123data);
+
+// char: 0x7a 'z'
+
+ static final byte[] ch122data = {
+ (byte) 0xff,(byte) 0xc3,(byte) 0x61,(byte) 0x70,(byte) 0x30,(byte) 0x38,(byte) 0x18,(byte) 0x1c,(byte) 0xe,(byte) 0x86,(byte) 0xc3,(byte) 0xff,
+ };
+
+ static final BitmapCharRec ch122 = new BitmapCharRec(8,12,-1,0,10,ch122data);
+
+// char: 0x79 'y'
+
+ static final byte[] ch121data = {
+ (byte) 0xe0,(byte) 0x0,(byte) 0xf0,(byte) 0x0,(byte) 0x18,(byte) 0x0,(byte) 0x8,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0x4,(byte) 0x0,(byte) 0xe,(byte) 0x0,(byte) 0xe,(byte) 0x0,
+(byte) 0x1a,(byte) 0x0,(byte) 0x19,(byte) 0x0,(byte) 0x19,(byte) 0x0,(byte) 0x31,(byte) 0x0,(byte) 0x30,(byte) 0x80,(byte) 0x30,(byte) 0x80,(byte) 0x60,(byte) 0x80,(byte) 0x60,(byte) 0xc0,
+(byte) 0xf1,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch121 = new BitmapCharRec(11,17,0,5,11,ch121data);
+
+// char: 0x78 'x'
+
+ static final byte[] ch120data = {
+ (byte) 0xf1,(byte) 0xe0,(byte) 0x60,(byte) 0xc0,(byte) 0x21,(byte) 0x80,(byte) 0x33,(byte) 0x80,(byte) 0x1b,(byte) 0x0,(byte) 0xe,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0x1a,(byte) 0x0,
+(byte) 0x39,(byte) 0x0,(byte) 0x31,(byte) 0x80,(byte) 0x60,(byte) 0xc0,(byte) 0xf1,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch120 = new BitmapCharRec(11,12,-1,0,13,ch120data);
+
+// char: 0x77 'w'
+
+ static final byte[] ch119data = {
+ (byte) 0x4,(byte) 0x10,(byte) 0x0,(byte) 0xe,(byte) 0x38,(byte) 0x0,(byte) 0xe,(byte) 0x38,(byte) 0x0,(byte) 0x1a,(byte) 0x28,(byte) 0x0,(byte) 0x1a,(byte) 0x64,(byte) 0x0,(byte) 0x19,
+(byte) 0x64,(byte) 0x0,(byte) 0x31,(byte) 0x64,(byte) 0x0,(byte) 0x30,(byte) 0xc2,(byte) 0x0,(byte) 0x30,(byte) 0xc2,(byte) 0x0,(byte) 0x60,(byte) 0xc2,(byte) 0x0,(byte) 0x60,(byte) 0xc3,
+(byte) 0x0,(byte) 0xf1,(byte) 0xe7,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch119 = new BitmapCharRec(17,12,0,0,17,ch119data);
+
+// char: 0x76 'v'
+
+ static final byte[] ch118data = {
+ (byte) 0x4,(byte) 0x0,(byte) 0xe,(byte) 0x0,(byte) 0xe,(byte) 0x0,(byte) 0x1a,(byte) 0x0,(byte) 0x19,(byte) 0x0,(byte) 0x19,(byte) 0x0,(byte) 0x31,(byte) 0x0,(byte) 0x30,(byte) 0x80,
+(byte) 0x30,(byte) 0x80,(byte) 0x60,(byte) 0x80,(byte) 0x60,(byte) 0xc0,(byte) 0xf1,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch118 = new BitmapCharRec(11,12,0,0,11,ch118data);
+
+// char: 0x75 'u'
+
+ static final byte[] ch117data = {
+ (byte) 0x1c,(byte) 0xe0,(byte) 0x3e,(byte) 0xc0,(byte) 0x71,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,
+(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0xe1,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch117 = new BitmapCharRec(11,12,-1,0,13,ch117data);
+
+// char: 0x74 't'
+
+ static final byte[] ch116data = {
+ (byte) 0x1c,(byte) 0x32,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0xfe,(byte) 0x70,(byte) 0x30,(byte) 0x10,
+ };
+
+ static final BitmapCharRec ch116 = new BitmapCharRec(7,15,0,0,7,ch116data);
+
+// char: 0x73 's'
+
+ static final byte[] ch115data = {
+ (byte) 0xf8,(byte) 0xc6,(byte) 0x83,(byte) 0x3,(byte) 0x7,(byte) 0x1e,(byte) 0x7c,(byte) 0x70,(byte) 0xe0,(byte) 0xc2,(byte) 0x66,(byte) 0x3e,
+ };
+
+ static final BitmapCharRec ch115 = new BitmapCharRec(8,12,-1,0,10,ch115data);
+
+// char: 0x72 'r'
+
+ static final byte[] ch114data = {
+ (byte) 0xf0,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x76,(byte) 0x6e,(byte) 0xe6,
+ };
+
+ static final BitmapCharRec ch114 = new BitmapCharRec(7,12,-1,0,8,ch114data);
+
+// char: 0x71 'q'
+
+ static final byte[] ch113data = {
+ (byte) 0x3,(byte) 0xc0,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x1d,(byte) 0x80,(byte) 0x73,(byte) 0x80,(byte) 0x61,(byte) 0x80,
+(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0x73,(byte) 0x80,
+(byte) 0x1d,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch113 = new BitmapCharRec(10,17,-1,5,12,ch113data);
+
+// char: 0x70 'p'
+
+ static final byte[] ch112data = {
+ (byte) 0xf0,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0x6e,(byte) 0x0,(byte) 0x73,(byte) 0x80,(byte) 0x61,(byte) 0x80,
+(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x61,(byte) 0x80,(byte) 0x73,(byte) 0x80,
+(byte) 0xee,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch112 = new BitmapCharRec(10,17,-1,5,12,ch112data);
+
+// char: 0x6f 'o'
+
+ static final byte[] ch111data = {
+ (byte) 0x1e,(byte) 0x0,(byte) 0x73,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,
+(byte) 0xc0,(byte) 0xc0,(byte) 0x61,(byte) 0x80,(byte) 0x73,(byte) 0x80,(byte) 0x1e,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch111 = new BitmapCharRec(10,12,-1,0,12,ch111data);
+
+// char: 0x6e 'n'
+
+ static final byte[] ch110data = {
+ (byte) 0xf1,(byte) 0xe0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,
+(byte) 0x60,(byte) 0xc0,(byte) 0x71,(byte) 0xc0,(byte) 0x6f,(byte) 0x80,(byte) 0xe7,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch110 = new BitmapCharRec(11,12,-1,0,13,ch110data);
+
+// char: 0x6d 'm'
+
+ static final byte[] ch109data = {
+ (byte) 0xf1,(byte) 0xe3,(byte) 0xc0,(byte) 0x60,(byte) 0xc1,(byte) 0x80,(byte) 0x60,(byte) 0xc1,(byte) 0x80,(byte) 0x60,(byte) 0xc1,(byte) 0x80,(byte) 0x60,(byte) 0xc1,(byte) 0x80,(byte) 0x60,
+(byte) 0xc1,(byte) 0x80,(byte) 0x60,(byte) 0xc1,(byte) 0x80,(byte) 0x60,(byte) 0xc1,(byte) 0x80,(byte) 0x60,(byte) 0xc1,(byte) 0x80,(byte) 0x71,(byte) 0xe3,(byte) 0x80,(byte) 0x6f,(byte) 0x9f,
+(byte) 0x0,(byte) 0xe7,(byte) 0xe,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch109 = new BitmapCharRec(18,12,-1,0,20,ch109data);
+
+// char: 0x6c 'l'
+
+ static final byte[] ch108data = {
+ (byte) 0xf0,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,
+(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch108 = new BitmapCharRec(4,17,-1,0,6,ch108data);
+
+// char: 0x6b 'k'
+
+ static final byte[] ch107data = {
+ (byte) 0xf3,(byte) 0xe0,(byte) 0x61,(byte) 0xc0,(byte) 0x63,(byte) 0x80,(byte) 0x67,(byte) 0x0,(byte) 0x6e,(byte) 0x0,(byte) 0x6c,(byte) 0x0,(byte) 0x78,(byte) 0x0,(byte) 0x68,(byte) 0x0,
+(byte) 0x64,(byte) 0x0,(byte) 0x66,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0x67,(byte) 0xc0,(byte) 0x60,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0x60,(byte) 0x0,
+(byte) 0xe0,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch107 = new BitmapCharRec(11,17,-1,0,12,ch107data);
+
+// char: 0x6a 'j'
+
+ static final byte[] ch106data = {
+ (byte) 0xc0,(byte) 0xe0,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,
+(byte) 0x70,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x30,(byte) 0x30,
+ };
+
+ static final BitmapCharRec ch106 = new BitmapCharRec(4,22,0,5,6,ch106data);
+
+// char: 0x69 'i'
+
+ static final byte[] ch105data = {
+ (byte) 0xf0,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0x60,(byte) 0xe0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x60,
+(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch105 = new BitmapCharRec(4,17,-1,0,6,ch105data);
+
+// char: 0x68 'h'
+
+ static final byte[] ch104data = {
+ (byte) 0xf1,(byte) 0xe0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,
+(byte) 0x60,(byte) 0xc0,(byte) 0x71,(byte) 0xc0,(byte) 0x6f,(byte) 0x80,(byte) 0x67,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0x60,(byte) 0x0,
+(byte) 0xe0,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch104 = new BitmapCharRec(11,17,-1,0,13,ch104data);
+
+// char: 0x67 'g'
+
+ static final byte[] ch103data = {
+ (byte) 0x3f,(byte) 0x0,(byte) 0xf1,(byte) 0xc0,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x20,(byte) 0x60,(byte) 0x60,(byte) 0x3f,(byte) 0xc0,(byte) 0x7f,(byte) 0x0,(byte) 0x60,(byte) 0x0,
+(byte) 0x30,(byte) 0x0,(byte) 0x3e,(byte) 0x0,(byte) 0x33,(byte) 0x0,(byte) 0x61,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0x33,(byte) 0x0,
+(byte) 0x1f,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch103 = new BitmapCharRec(11,17,-1,5,12,ch103data);
+
+// char: 0x66 'f'
+
+ static final byte[] ch102data = {
+ (byte) 0x78,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0xfe,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x16,
+(byte) 0xe,
+ };
+
+ static final BitmapCharRec ch102 = new BitmapCharRec(7,17,0,0,7,ch102data);
+
+// char: 0x65 'e'
+
+ static final byte[] ch101data = {
+ (byte) 0x1e,(byte) 0x0,(byte) 0x7f,(byte) 0x0,(byte) 0x70,(byte) 0x80,(byte) 0xe0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xff,(byte) 0x80,
+(byte) 0xc1,(byte) 0x80,(byte) 0x41,(byte) 0x80,(byte) 0x63,(byte) 0x0,(byte) 0x1e,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch101 = new BitmapCharRec(9,12,-1,0,11,ch101data);
+
+// char: 0x64 'd'
+
+ static final byte[] ch100data = {
+ (byte) 0x1e,(byte) 0xc0,(byte) 0x73,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0xc1,(byte) 0x80,
+(byte) 0xc1,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0x73,(byte) 0x80,(byte) 0x1d,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,
+(byte) 0x3,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch100 = new BitmapCharRec(10,17,-1,0,12,ch100data);
+
+// char: 0x63 'c'
+
+ static final byte[] ch99data = {
+ (byte) 0x1e,(byte) 0x0,(byte) 0x7f,(byte) 0x0,(byte) 0x70,(byte) 0x80,(byte) 0xe0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,
+(byte) 0xc0,(byte) 0x0,(byte) 0x41,(byte) 0x80,(byte) 0x63,(byte) 0x80,(byte) 0x1f,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch99 = new BitmapCharRec(9,12,-1,0,11,ch99data);
+
+// char: 0x62 'b'
+
+ static final byte[] ch98data = {
+ (byte) 0x5e,(byte) 0x0,(byte) 0x73,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,(byte) 0x60,(byte) 0xc0,
+(byte) 0x60,(byte) 0xc0,(byte) 0x61,(byte) 0x80,(byte) 0x73,(byte) 0x80,(byte) 0x6e,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0x60,(byte) 0x0,
+(byte) 0xe0,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch98 = new BitmapCharRec(10,17,-1,0,12,ch98data);
+
+// char: 0x61 'a'
+
+ static final byte[] ch97data = {
+ (byte) 0x71,(byte) 0x80,(byte) 0xfb,(byte) 0x0,(byte) 0xc7,(byte) 0x0,(byte) 0xc3,(byte) 0x0,(byte) 0xc3,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0x3b,(byte) 0x0,(byte) 0xf,(byte) 0x0,
+(byte) 0x3,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0x67,(byte) 0x0,(byte) 0x3e,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch97 = new BitmapCharRec(9,12,-1,0,11,ch97data);
+
+// char: 0x60 '`'
+
+ static final byte[] ch96data = {
+ (byte) 0x60,(byte) 0xe0,(byte) 0x80,(byte) 0xc0,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch96 = new BitmapCharRec(3,5,-2,-12,7,ch96data);
+
+// char: 0x5f '_'
+
+ static final byte[] ch95data = {
+ (byte) 0xff,(byte) 0xf8,(byte) 0xff,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch95 = new BitmapCharRec(13,2,0,5,13,ch95data);
+
+// char: 0x5e '^'
+
+ static final byte[] ch94data = {
+ (byte) 0x80,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0x41,(byte) 0x0,(byte) 0x63,(byte) 0x0,(byte) 0x22,(byte) 0x0,(byte) 0x36,(byte) 0x0,(byte) 0x14,(byte) 0x0,(byte) 0x1c,(byte) 0x0,
+(byte) 0x8,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch94 = new BitmapCharRec(9,9,-1,-8,11,ch94data);
+
+// char: 0x5d ']'
+
+ static final byte[] ch93data = {
+ (byte) 0xf8,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,
+(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch93 = new BitmapCharRec(5,21,-1,4,8,ch93data);
+
+// char: 0x5c '\'
+
+ static final byte[] ch92data = {
+ (byte) 0x6,(byte) 0x6,(byte) 0x4,(byte) 0xc,(byte) 0xc,(byte) 0x8,(byte) 0x18,(byte) 0x18,(byte) 0x10,(byte) 0x30,(byte) 0x30,(byte) 0x20,(byte) 0x60,(byte) 0x60,(byte) 0x40,(byte) 0xc0,
+(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch92 = new BitmapCharRec(7,17,0,0,7,ch92data);
+
+// char: 0x5b '['
+
+ static final byte[] ch91data = {
+ (byte) 0xf8,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,
+(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch91 = new BitmapCharRec(5,21,-2,4,8,ch91data);
+
+// char: 0x5a 'Z'
+
+ static final byte[] ch90data = {
+ (byte) 0xff,(byte) 0xf8,(byte) 0xe0,(byte) 0x18,(byte) 0x70,(byte) 0x8,(byte) 0x30,(byte) 0x8,(byte) 0x38,(byte) 0x0,(byte) 0x18,(byte) 0x0,(byte) 0x1c,(byte) 0x0,(byte) 0xe,(byte) 0x0,
+(byte) 0x6,(byte) 0x0,(byte) 0x7,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0x3,(byte) 0x80,(byte) 0x1,(byte) 0xc0,(byte) 0x80,(byte) 0xc0,(byte) 0x80,(byte) 0xe0,(byte) 0xc0,(byte) 0x70,
+(byte) 0xff,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch90 = new BitmapCharRec(13,17,-1,0,15,ch90data);
+
+// char: 0x59 'Y'
+
+ static final byte[] ch89data = {
+ (byte) 0x7,(byte) 0xe0,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x3,(byte) 0xc0,
+(byte) 0x3,(byte) 0x40,(byte) 0x6,(byte) 0x60,(byte) 0x6,(byte) 0x20,(byte) 0xc,(byte) 0x30,(byte) 0x1c,(byte) 0x10,(byte) 0x18,(byte) 0x18,(byte) 0x38,(byte) 0x8,(byte) 0x30,(byte) 0xc,
+(byte) 0xfc,(byte) 0x3f,
+ };
+
+ static final BitmapCharRec ch89 = new BitmapCharRec(16,17,0,0,16,ch89data);
+
+// char: 0x58 'X'
+
+ static final byte[] ch88data = {
+ (byte) 0xfc,(byte) 0xf,(byte) 0xc0,(byte) 0x30,(byte) 0x3,(byte) 0x80,(byte) 0x18,(byte) 0x7,(byte) 0x0,(byte) 0x8,(byte) 0xe,(byte) 0x0,(byte) 0x4,(byte) 0xc,(byte) 0x0,(byte) 0x6,
+(byte) 0x18,(byte) 0x0,(byte) 0x2,(byte) 0x38,(byte) 0x0,(byte) 0x1,(byte) 0x70,(byte) 0x0,(byte) 0x0,(byte) 0xe0,(byte) 0x0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0x1,(byte) 0xc0,
+(byte) 0x0,(byte) 0x3,(byte) 0xa0,(byte) 0x0,(byte) 0x3,(byte) 0x10,(byte) 0x0,(byte) 0x6,(byte) 0x8,(byte) 0x0,(byte) 0xe,(byte) 0xc,(byte) 0x0,(byte) 0x1c,(byte) 0x6,(byte) 0x0,
+(byte) 0x7e,(byte) 0xf,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch88 = new BitmapCharRec(18,17,0,0,18,ch88data);
+
+// char: 0x57 'W'
+
+ static final byte[] ch87data = {
+ (byte) 0x1,(byte) 0x83,(byte) 0x0,(byte) 0x1,(byte) 0x83,(byte) 0x0,(byte) 0x1,(byte) 0x83,(byte) 0x80,(byte) 0x3,(byte) 0x87,(byte) 0x80,(byte) 0x3,(byte) 0x46,(byte) 0x80,(byte) 0x3,
+(byte) 0x46,(byte) 0xc0,(byte) 0x6,(byte) 0x46,(byte) 0x40,(byte) 0x6,(byte) 0x4c,(byte) 0x40,(byte) 0x6,(byte) 0x4c,(byte) 0x60,(byte) 0xc,(byte) 0x2c,(byte) 0x60,(byte) 0xc,(byte) 0x2c,
+(byte) 0x20,(byte) 0x18,(byte) 0x2c,(byte) 0x20,(byte) 0x18,(byte) 0x18,(byte) 0x30,(byte) 0x18,(byte) 0x18,(byte) 0x10,(byte) 0x30,(byte) 0x18,(byte) 0x10,(byte) 0x30,(byte) 0x18,(byte) 0x18,
+(byte) 0xfc,(byte) 0x7e,(byte) 0x7e,
+ };
+
+ static final BitmapCharRec ch87 = new BitmapCharRec(23,17,0,0,23,ch87data);
+
+// char: 0x56 'V'
+
+ static final byte[] ch86data = {
+ (byte) 0x1,(byte) 0x80,(byte) 0x0,(byte) 0x1,(byte) 0x80,(byte) 0x0,(byte) 0x1,(byte) 0x80,(byte) 0x0,(byte) 0x3,(byte) 0xc0,(byte) 0x0,(byte) 0x3,(byte) 0x40,(byte) 0x0,(byte) 0x3,
+(byte) 0x60,(byte) 0x0,(byte) 0x6,(byte) 0x20,(byte) 0x0,(byte) 0x6,(byte) 0x20,(byte) 0x0,(byte) 0x6,(byte) 0x30,(byte) 0x0,(byte) 0xc,(byte) 0x10,(byte) 0x0,(byte) 0xc,(byte) 0x18,
+(byte) 0x0,(byte) 0x18,(byte) 0x8,(byte) 0x0,(byte) 0x18,(byte) 0x8,(byte) 0x0,(byte) 0x18,(byte) 0xc,(byte) 0x0,(byte) 0x30,(byte) 0x4,(byte) 0x0,(byte) 0x30,(byte) 0x6,(byte) 0x0,
+(byte) 0xfc,(byte) 0x1f,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch86 = new BitmapCharRec(17,17,0,0,17,ch86data);
+
+// char: 0x55 'U'
+
+ static final byte[] ch85data = {
+ (byte) 0x7,(byte) 0xe0,(byte) 0x1c,(byte) 0x30,(byte) 0x18,(byte) 0x8,(byte) 0x30,(byte) 0x8,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,
+(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,(byte) 0x30,(byte) 0x4,
+(byte) 0xfc,(byte) 0x1f,
+ };
+
+ static final BitmapCharRec ch85 = new BitmapCharRec(16,17,-1,0,18,ch85data);
+
+// char: 0x54 'T'
+
+ static final byte[] ch84data = {
+ (byte) 0xf,(byte) 0xc0,(byte) 0x3,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0x3,(byte) 0x0,
+(byte) 0x3,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0x83,(byte) 0x4,(byte) 0x83,(byte) 0x4,(byte) 0xc3,(byte) 0xc,
+(byte) 0xff,(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch84 = new BitmapCharRec(14,17,-1,0,16,ch84data);
+
+// char: 0x53 'S'
+
+ static final byte[] ch83data = {
+ (byte) 0x9e,(byte) 0x0,(byte) 0xf1,(byte) 0x80,(byte) 0xc0,(byte) 0xc0,(byte) 0x80,(byte) 0x60,(byte) 0x80,(byte) 0x60,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0xe0,(byte) 0x3,(byte) 0xc0,
+(byte) 0xf,(byte) 0x80,(byte) 0x1e,(byte) 0x0,(byte) 0x78,(byte) 0x0,(byte) 0xe0,(byte) 0x0,(byte) 0xc0,(byte) 0x40,(byte) 0xc0,(byte) 0x40,(byte) 0xc0,(byte) 0xc0,(byte) 0x63,(byte) 0xc0,
+(byte) 0x1e,(byte) 0x40,
+ };
+
+ static final BitmapCharRec ch83 = new BitmapCharRec(11,17,-1,0,13,ch83data);
+
+// char: 0x52 'R'
+
+ static final byte[] ch82data = {
+ (byte) 0xfc,(byte) 0x1e,(byte) 0x30,(byte) 0x1c,(byte) 0x30,(byte) 0x38,(byte) 0x30,(byte) 0x70,(byte) 0x30,(byte) 0x60,(byte) 0x30,(byte) 0xc0,(byte) 0x31,(byte) 0xc0,(byte) 0x33,(byte) 0x80,
+(byte) 0x3f,(byte) 0xc0,(byte) 0x30,(byte) 0x70,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x38,(byte) 0x30,(byte) 0x18,(byte) 0x30,(byte) 0x38,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x70,
+(byte) 0xff,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch82 = new BitmapCharRec(15,17,-1,0,16,ch82data);
+
+// char: 0x51 'Q'
+
+ static final byte[] ch81data = {
+ (byte) 0x0,(byte) 0xf,(byte) 0x0,(byte) 0x38,(byte) 0x0,(byte) 0x70,(byte) 0x0,(byte) 0xe0,(byte) 0x1,(byte) 0xc0,(byte) 0x7,(byte) 0xe0,(byte) 0x1c,(byte) 0x38,(byte) 0x38,(byte) 0x1c,
+(byte) 0x60,(byte) 0x6,(byte) 0x60,(byte) 0x6,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,
+(byte) 0xc0,(byte) 0x3,(byte) 0x60,(byte) 0x6,(byte) 0x60,(byte) 0x6,(byte) 0x38,(byte) 0x1c,(byte) 0x1c,(byte) 0x38,(byte) 0x7,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch81 = new BitmapCharRec(16,22,-1,5,18,ch81data);
+
+// char: 0x50 'P'
+
+ static final byte[] ch80data = {
+ (byte) 0xfc,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,
+(byte) 0x3f,(byte) 0xc0,(byte) 0x30,(byte) 0x70,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x18,(byte) 0x30,(byte) 0x18,(byte) 0x30,(byte) 0x18,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x70,
+(byte) 0xff,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch80 = new BitmapCharRec(13,17,-1,0,15,ch80data);
+
+// char: 0x4f 'O'
+
+ static final byte[] ch79data = {
+ (byte) 0x7,(byte) 0xe0,(byte) 0x1c,(byte) 0x38,(byte) 0x38,(byte) 0x1c,(byte) 0x60,(byte) 0x6,(byte) 0x60,(byte) 0x6,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,
+(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0xc0,(byte) 0x3,(byte) 0x60,(byte) 0x6,(byte) 0x60,(byte) 0x6,(byte) 0x38,(byte) 0x1c,(byte) 0x1c,(byte) 0x38,
+(byte) 0x7,(byte) 0xe0,
+ };
+
+ static final BitmapCharRec ch79 = new BitmapCharRec(16,17,-1,0,18,ch79data);
+
+// char: 0x4e 'N'
+
+ static final byte[] ch78data = {
+ (byte) 0xf8,(byte) 0xc,(byte) 0x20,(byte) 0x1c,(byte) 0x20,(byte) 0x1c,(byte) 0x20,(byte) 0x34,(byte) 0x20,(byte) 0x64,(byte) 0x20,(byte) 0x64,(byte) 0x20,(byte) 0xc4,(byte) 0x21,(byte) 0x84,
+(byte) 0x21,(byte) 0x84,(byte) 0x23,(byte) 0x4,(byte) 0x26,(byte) 0x4,(byte) 0x26,(byte) 0x4,(byte) 0x2c,(byte) 0x4,(byte) 0x38,(byte) 0x4,(byte) 0x38,(byte) 0x4,(byte) 0x30,(byte) 0x4,
+(byte) 0xf0,(byte) 0x1f,
+ };
+
+ static final BitmapCharRec ch78 = new BitmapCharRec(16,17,-1,0,18,ch78data);
+
+// char: 0x4d 'M'
+
+ static final byte[] ch77data = {
+ (byte) 0xf8,(byte) 0x21,(byte) 0xf8,(byte) 0x20,(byte) 0x60,(byte) 0x60,(byte) 0x20,(byte) 0x60,(byte) 0x60,(byte) 0x20,(byte) 0xd0,(byte) 0x60,(byte) 0x20,(byte) 0xd0,(byte) 0x60,(byte) 0x21,
+(byte) 0x88,(byte) 0x60,(byte) 0x21,(byte) 0x88,(byte) 0x60,(byte) 0x23,(byte) 0x8,(byte) 0x60,(byte) 0x23,(byte) 0x4,(byte) 0x60,(byte) 0x26,(byte) 0x4,(byte) 0x60,(byte) 0x26,(byte) 0x2,
+(byte) 0x60,(byte) 0x2c,(byte) 0x2,(byte) 0x60,(byte) 0x2c,(byte) 0x2,(byte) 0x60,(byte) 0x38,(byte) 0x1,(byte) 0x60,(byte) 0x38,(byte) 0x1,(byte) 0x60,(byte) 0x30,(byte) 0x0,(byte) 0xe0,
+(byte) 0xf0,(byte) 0x0,(byte) 0xf8,
+ };
+
+ static final BitmapCharRec ch77 = new BitmapCharRec(21,17,-1,0,22,ch77data);
+
+// char: 0x4c 'L'
+
+ static final byte[] ch76data = {
+ (byte) 0xff,(byte) 0xf8,(byte) 0x30,(byte) 0x18,(byte) 0x30,(byte) 0x8,(byte) 0x30,(byte) 0x8,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,
+(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,
+(byte) 0xfc,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch76 = new BitmapCharRec(13,17,-1,0,14,ch76data);
+
+// char: 0x4b 'K'
+
+ static final byte[] ch75data = {
+ (byte) 0xfc,(byte) 0x1f,(byte) 0x30,(byte) 0xe,(byte) 0x30,(byte) 0x1c,(byte) 0x30,(byte) 0x38,(byte) 0x30,(byte) 0x70,(byte) 0x30,(byte) 0xe0,(byte) 0x31,(byte) 0xc0,(byte) 0x33,(byte) 0x80,
+(byte) 0x3f,(byte) 0x0,(byte) 0x3e,(byte) 0x0,(byte) 0x33,(byte) 0x0,(byte) 0x31,(byte) 0x80,(byte) 0x30,(byte) 0xc0,(byte) 0x30,(byte) 0x60,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x18,
+(byte) 0xfc,(byte) 0x7e,
+ };
+
+ static final BitmapCharRec ch75 = new BitmapCharRec(16,17,-1,0,17,ch75data);
+
+// char: 0x4a 'J'
+
+ static final byte[] ch74data = {
+ (byte) 0x78,(byte) 0x0,(byte) 0xcc,(byte) 0x0,(byte) 0xc6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,
+(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,
+(byte) 0x1f,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch74 = new BitmapCharRec(9,17,-1,0,11,ch74data);
+
+// char: 0x49 'I'
+
+ static final byte[] ch73data = {
+ (byte) 0xfc,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x30,
+(byte) 0xfc,
+ };
+
+ static final BitmapCharRec ch73 = new BitmapCharRec(6,17,-1,0,8,ch73data);
+
+// char: 0x48 'H'
+
+ static final byte[] ch72data = {
+ (byte) 0xfc,(byte) 0x1f,(byte) 0x80,(byte) 0x30,(byte) 0x6,(byte) 0x0,(byte) 0x30,(byte) 0x6,(byte) 0x0,(byte) 0x30,(byte) 0x6,(byte) 0x0,(byte) 0x30,(byte) 0x6,(byte) 0x0,(byte) 0x30,
+(byte) 0x6,(byte) 0x0,(byte) 0x30,(byte) 0x6,(byte) 0x0,(byte) 0x30,(byte) 0x6,(byte) 0x0,(byte) 0x3f,(byte) 0xfe,(byte) 0x0,(byte) 0x30,(byte) 0x6,(byte) 0x0,(byte) 0x30,(byte) 0x6,
+(byte) 0x0,(byte) 0x30,(byte) 0x6,(byte) 0x0,(byte) 0x30,(byte) 0x6,(byte) 0x0,(byte) 0x30,(byte) 0x6,(byte) 0x0,(byte) 0x30,(byte) 0x6,(byte) 0x0,(byte) 0x30,(byte) 0x6,(byte) 0x0,
+(byte) 0xfc,(byte) 0x1f,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch72 = new BitmapCharRec(17,17,-1,0,19,ch72data);
+
+// char: 0x47 'G'
+
+ static final byte[] ch71data = {
+ (byte) 0x7,(byte) 0xe0,(byte) 0x1e,(byte) 0x38,(byte) 0x38,(byte) 0x1c,(byte) 0x60,(byte) 0xc,(byte) 0x60,(byte) 0xc,(byte) 0xc0,(byte) 0xc,(byte) 0xc0,(byte) 0xc,(byte) 0xc0,(byte) 0x3f,
+(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0x60,(byte) 0x4,(byte) 0x60,(byte) 0x4,(byte) 0x38,(byte) 0xc,(byte) 0x1c,(byte) 0x3c,
+(byte) 0x7,(byte) 0xe4,
+ };
+
+ static final BitmapCharRec ch71 = new BitmapCharRec(16,17,-1,0,18,ch71data);
+
+// char: 0x46 'F'
+
+ static final byte[] ch70data = {
+ (byte) 0xfc,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x20,(byte) 0x30,(byte) 0x20,
+(byte) 0x3f,(byte) 0xe0,(byte) 0x30,(byte) 0x20,(byte) 0x30,(byte) 0x20,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x10,(byte) 0x30,(byte) 0x10,(byte) 0x30,(byte) 0x30,
+(byte) 0xff,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch70 = new BitmapCharRec(12,17,-1,0,14,ch70data);
+
+// char: 0x45 'E'
+
+ static final byte[] ch69data = {
+ (byte) 0xff,(byte) 0xf8,(byte) 0x30,(byte) 0x18,(byte) 0x30,(byte) 0x8,(byte) 0x30,(byte) 0x8,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x40,(byte) 0x30,(byte) 0x40,
+(byte) 0x3f,(byte) 0xc0,(byte) 0x30,(byte) 0x40,(byte) 0x30,(byte) 0x40,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x30,(byte) 0x10,(byte) 0x30,(byte) 0x10,(byte) 0x30,(byte) 0x30,
+(byte) 0xff,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch69 = new BitmapCharRec(13,17,-1,0,15,ch69data);
+
+// char: 0x44 'D'
+
+ static final byte[] ch68data = {
+ (byte) 0xff,(byte) 0xc0,(byte) 0x30,(byte) 0x70,(byte) 0x30,(byte) 0x38,(byte) 0x30,(byte) 0xc,(byte) 0x30,(byte) 0xc,(byte) 0x30,(byte) 0x6,(byte) 0x30,(byte) 0x6,(byte) 0x30,(byte) 0x6,
+(byte) 0x30,(byte) 0x6,(byte) 0x30,(byte) 0x6,(byte) 0x30,(byte) 0x6,(byte) 0x30,(byte) 0x6,(byte) 0x30,(byte) 0xc,(byte) 0x30,(byte) 0xc,(byte) 0x30,(byte) 0x38,(byte) 0x30,(byte) 0x70,
+(byte) 0xff,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch68 = new BitmapCharRec(15,17,-1,0,17,ch68data);
+
+// char: 0x43 'C'
+
+ static final byte[] ch67data = {
+ (byte) 0x7,(byte) 0xe0,(byte) 0x1e,(byte) 0x38,(byte) 0x38,(byte) 0x8,(byte) 0x60,(byte) 0x4,(byte) 0x60,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,
+(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0x60,(byte) 0x4,(byte) 0x60,(byte) 0x4,(byte) 0x38,(byte) 0xc,(byte) 0x1c,(byte) 0x3c,
+(byte) 0x7,(byte) 0xe4,
+ };
+
+ static final BitmapCharRec ch67 = new BitmapCharRec(14,17,-1,0,16,ch67data);
+
+// char: 0x42 'B'
+
+ static final byte[] ch66data = {
+ (byte) 0xff,(byte) 0xe0,(byte) 0x30,(byte) 0x78,(byte) 0x30,(byte) 0x18,(byte) 0x30,(byte) 0xc,(byte) 0x30,(byte) 0xc,(byte) 0x30,(byte) 0xc,(byte) 0x30,(byte) 0x18,(byte) 0x30,(byte) 0x38,
+(byte) 0x3f,(byte) 0xe0,(byte) 0x30,(byte) 0x40,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x18,(byte) 0x30,(byte) 0x18,(byte) 0x30,(byte) 0x18,(byte) 0x30,(byte) 0x30,(byte) 0x30,(byte) 0x70,
+(byte) 0xff,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch66 = new BitmapCharRec(14,17,-1,0,16,ch66data);
+
+// char: 0x41 'A'
+
+ static final byte[] ch65data = {
+ (byte) 0xfc,(byte) 0x1f,(byte) 0x80,(byte) 0x30,(byte) 0x6,(byte) 0x0,(byte) 0x10,(byte) 0x6,(byte) 0x0,(byte) 0x10,(byte) 0xc,(byte) 0x0,(byte) 0x18,(byte) 0xc,(byte) 0x0,(byte) 0x8,
+(byte) 0xc,(byte) 0x0,(byte) 0xf,(byte) 0xf8,(byte) 0x0,(byte) 0xc,(byte) 0x18,(byte) 0x0,(byte) 0x4,(byte) 0x18,(byte) 0x0,(byte) 0x4,(byte) 0x30,(byte) 0x0,(byte) 0x6,(byte) 0x30,
+(byte) 0x0,(byte) 0x2,(byte) 0x30,(byte) 0x0,(byte) 0x2,(byte) 0x60,(byte) 0x0,(byte) 0x1,(byte) 0x60,(byte) 0x0,(byte) 0x1,(byte) 0xc0,(byte) 0x0,(byte) 0x1,(byte) 0xc0,(byte) 0x0,
+(byte) 0x0,(byte) 0x80,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch65 = new BitmapCharRec(17,17,0,0,17,ch65data);
+
+// char: 0x40 '@'
+
+ static final byte[] ch64data = {
+ (byte) 0x3,(byte) 0xf0,(byte) 0x0,(byte) 0xe,(byte) 0xc,(byte) 0x0,(byte) 0x18,(byte) 0x0,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x0,(byte) 0x61,(byte) 0xde,(byte) 0x0,(byte) 0x63,
+(byte) 0x7b,(byte) 0x0,(byte) 0xc6,(byte) 0x39,(byte) 0x80,(byte) 0xc6,(byte) 0x18,(byte) 0x80,(byte) 0xc6,(byte) 0x18,(byte) 0xc0,(byte) 0xc6,(byte) 0x18,(byte) 0x40,(byte) 0xc6,(byte) 0xc,
+(byte) 0x40,(byte) 0xc3,(byte) 0xc,(byte) 0x40,(byte) 0xc3,(byte) 0x8c,(byte) 0x40,(byte) 0xe1,(byte) 0xfc,(byte) 0x40,(byte) 0x60,(byte) 0xec,(byte) 0xc0,(byte) 0x70,(byte) 0x0,(byte) 0x80,
+(byte) 0x38,(byte) 0x1,(byte) 0x80,(byte) 0x1c,(byte) 0x3,(byte) 0x0,(byte) 0xf,(byte) 0xe,(byte) 0x0,(byte) 0x3,(byte) 0xf8,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch64 = new BitmapCharRec(18,20,-2,3,22,ch64data);
+
+// char: 0x3f '?'
+
+ static final byte[] ch63data = {
+ (byte) 0x30,(byte) 0x30,(byte) 0x0,(byte) 0x0,(byte) 0x10,(byte) 0x10,(byte) 0x10,(byte) 0x18,(byte) 0x18,(byte) 0xc,(byte) 0xe,(byte) 0x7,(byte) 0xc3,(byte) 0xc3,(byte) 0x83,(byte) 0xc6,
+(byte) 0x7c,
+ };
+
+ static final BitmapCharRec ch63 = new BitmapCharRec(8,17,-2,0,11,ch63data);
+
+// char: 0x3e '>'
+
+ static final byte[] ch62data = {
+ (byte) 0xc0,(byte) 0x0,(byte) 0x70,(byte) 0x0,(byte) 0x1c,(byte) 0x0,(byte) 0x7,(byte) 0x0,(byte) 0x1,(byte) 0xc0,(byte) 0x0,(byte) 0x60,(byte) 0x1,(byte) 0xc0,(byte) 0x7,(byte) 0x0,
+(byte) 0x1c,(byte) 0x0,(byte) 0x70,(byte) 0x0,(byte) 0xc0,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch62 = new BitmapCharRec(11,11,-1,-1,13,ch62data);
+
+// char: 0x3d '='
+
+ static final byte[] ch61data = {
+ (byte) 0xff,(byte) 0xf0,(byte) 0xff,(byte) 0xf0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0xff,(byte) 0xf0,(byte) 0xff,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch61 = new BitmapCharRec(12,6,-1,-4,14,ch61data);
+
+// char: 0x3c '<'
+
+ static final byte[] ch60data = {
+ (byte) 0x0,(byte) 0x60,(byte) 0x1,(byte) 0xc0,(byte) 0x7,(byte) 0x0,(byte) 0x1c,(byte) 0x0,(byte) 0x70,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0x70,(byte) 0x0,(byte) 0x1c,(byte) 0x0,
+(byte) 0x7,(byte) 0x0,(byte) 0x1,(byte) 0xc0,(byte) 0x0,(byte) 0x60,
+ };
+
+ static final BitmapCharRec ch60 = new BitmapCharRec(11,11,-1,-1,13,ch60data);
+
+// char: 0x3b ';'
+
+ static final byte[] ch59data = {
+ (byte) 0xc0,(byte) 0x60,(byte) 0x20,(byte) 0xe0,(byte) 0xc0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch59 = new BitmapCharRec(3,14,-2,3,7,ch59data);
+
+// char: 0x3a ':'
+
+ static final byte[] ch58data = {
+ (byte) 0xc0,(byte) 0xc0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch58 = new BitmapCharRec(2,11,-2,0,6,ch58data);
+
+// char: 0x39 '9'
+
+ static final byte[] ch57data = {
+ (byte) 0xf0,(byte) 0x0,(byte) 0x1c,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0x3,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x1d,(byte) 0x80,(byte) 0x73,(byte) 0xc0,
+(byte) 0x61,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc1,(byte) 0xc0,(byte) 0x61,(byte) 0x80,(byte) 0x77,(byte) 0x80,
+(byte) 0x1e,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch57 = new BitmapCharRec(10,17,-1,0,12,ch57data);
+
+// char: 0x38 '8'
+
+ static final byte[] ch56data = {
+ (byte) 0x1e,(byte) 0x0,(byte) 0x73,(byte) 0x80,(byte) 0xe1,(byte) 0x80,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0x41,(byte) 0xc0,(byte) 0x61,(byte) 0x80,
+(byte) 0x37,(byte) 0x0,(byte) 0x1e,(byte) 0x0,(byte) 0x1e,(byte) 0x0,(byte) 0x33,(byte) 0x0,(byte) 0x61,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0x33,(byte) 0x0,
+(byte) 0x1e,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch56 = new BitmapCharRec(10,17,-1,0,12,ch56data);
+
+// char: 0x37 '7'
+
+ static final byte[] ch55data = {
+ (byte) 0x18,(byte) 0x0,(byte) 0x18,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0x4,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,
+(byte) 0x2,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0x1,(byte) 0x0,(byte) 0x1,(byte) 0x80,(byte) 0x81,(byte) 0x80,(byte) 0xc0,(byte) 0xc0,(byte) 0xff,(byte) 0xc0,
+(byte) 0x7f,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch55 = new BitmapCharRec(10,17,-1,0,12,ch55data);
+
+// char: 0x36 '6'
+
+ static final byte[] ch54data = {
+ (byte) 0x1e,(byte) 0x0,(byte) 0x7b,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0xe0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,
+(byte) 0xc1,(byte) 0x80,(byte) 0xf3,(byte) 0x80,(byte) 0xee,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0x70,(byte) 0x0,(byte) 0x30,(byte) 0x0,(byte) 0x18,(byte) 0x0,(byte) 0xe,(byte) 0x0,
+(byte) 0x3,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch54 = new BitmapCharRec(10,17,-1,0,12,ch54data);
+
+// char: 0x35 '5'
+
+ static final byte[] ch53data = {
+ (byte) 0x7e,(byte) 0x0,(byte) 0xe3,(byte) 0x80,(byte) 0xc1,(byte) 0x80,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x0,(byte) 0xc0,(byte) 0x1,(byte) 0xc0,
+(byte) 0x3,(byte) 0x80,(byte) 0xf,(byte) 0x80,(byte) 0x7e,(byte) 0x0,(byte) 0x78,(byte) 0x0,(byte) 0x60,(byte) 0x0,(byte) 0x20,(byte) 0x0,(byte) 0x20,(byte) 0x0,(byte) 0x1f,(byte) 0x80,
+(byte) 0x1f,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch53 = new BitmapCharRec(10,17,-1,0,12,ch53data);
+
+// char: 0x34 '4'
+
+ static final byte[] ch52data = {
+ (byte) 0x3,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0xff,(byte) 0xc0,(byte) 0xff,(byte) 0xc0,(byte) 0xc3,(byte) 0x0,(byte) 0x43,(byte) 0x0,
+(byte) 0x63,(byte) 0x0,(byte) 0x23,(byte) 0x0,(byte) 0x33,(byte) 0x0,(byte) 0x13,(byte) 0x0,(byte) 0x1b,(byte) 0x0,(byte) 0xb,(byte) 0x0,(byte) 0x7,(byte) 0x0,(byte) 0x7,(byte) 0x0,
+(byte) 0x3,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch52 = new BitmapCharRec(10,17,-1,0,12,ch52data);
+
+// char: 0x33 '3'
+
+ static final byte[] ch51data = {
+ (byte) 0x78,(byte) 0x0,(byte) 0xe6,(byte) 0x0,(byte) 0xc3,(byte) 0x0,(byte) 0x1,(byte) 0x0,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x3,(byte) 0x80,
+(byte) 0x7,(byte) 0x0,(byte) 0x1e,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x83,(byte) 0x0,(byte) 0x83,(byte) 0x0,(byte) 0x47,(byte) 0x0,(byte) 0x7e,(byte) 0x0,
+(byte) 0x1c,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch51 = new BitmapCharRec(9,17,-1,0,12,ch51data);
+
+// char: 0x32 '2'
+
+ static final byte[] ch50data = {
+ (byte) 0xff,(byte) 0x80,(byte) 0xff,(byte) 0xc0,(byte) 0x60,(byte) 0x40,(byte) 0x30,(byte) 0x0,(byte) 0x18,(byte) 0x0,(byte) 0xc,(byte) 0x0,(byte) 0x4,(byte) 0x0,(byte) 0x6,(byte) 0x0,
+(byte) 0x3,(byte) 0x0,(byte) 0x3,(byte) 0x0,(byte) 0x1,(byte) 0x80,(byte) 0x1,(byte) 0x80,(byte) 0x81,(byte) 0x80,(byte) 0x81,(byte) 0x80,(byte) 0x43,(byte) 0x80,(byte) 0x7f,(byte) 0x0,
+(byte) 0x1c,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch50 = new BitmapCharRec(10,17,-1,0,12,ch50data);
+
+// char: 0x31 '1'
+
+ static final byte[] ch49data = {
+ (byte) 0xff,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x18,(byte) 0x78,(byte) 0x18,
+(byte) 0x8,
+ };
+
+ static final BitmapCharRec ch49 = new BitmapCharRec(8,17,-2,0,12,ch49data);
+
+// char: 0x30 '0'
+
+ static final byte[] ch48data = {
+ (byte) 0x1e,(byte) 0x0,(byte) 0x33,(byte) 0x0,(byte) 0x61,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0xe1,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,
+(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0x61,(byte) 0x80,(byte) 0x61,(byte) 0x80,(byte) 0x33,(byte) 0x0,
+(byte) 0x1e,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch48 = new BitmapCharRec(10,17,-1,0,12,ch48data);
+
+// char: 0x2f '/'
+
+ static final byte[] ch47data = {
+ (byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0x60,(byte) 0x60,(byte) 0x20,(byte) 0x30,(byte) 0x30,(byte) 0x10,(byte) 0x18,(byte) 0x18,(byte) 0x8,(byte) 0xc,(byte) 0xc,(byte) 0x4,(byte) 0x6,
+(byte) 0x6,(byte) 0x3,(byte) 0x3,(byte) 0x3,
+ };
+
+ static final BitmapCharRec ch47 = new BitmapCharRec(8,20,1,3,7,ch47data);
+
+// char: 0x2e '.'
+
+ static final byte[] ch46data = {
+ (byte) 0xc0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch46 = new BitmapCharRec(2,2,-2,0,6,ch46data);
+
+// char: 0x2d '-'
+
+ static final byte[] ch45data = {
+ (byte) 0xff,(byte) 0xf0,(byte) 0xff,(byte) 0xf0,
+ };
+
+ static final BitmapCharRec ch45 = new BitmapCharRec(12,2,-1,-6,14,ch45data);
+
+// char: 0x2c ','
+
+ static final byte[] ch44data = {
+ (byte) 0xc0,(byte) 0x60,(byte) 0x20,(byte) 0xe0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch44 = new BitmapCharRec(3,5,-2,3,7,ch44data);
+
+// char: 0x2b '+'
+
+ static final byte[] ch43data = {
+ (byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0xff,(byte) 0xf0,(byte) 0xff,(byte) 0xf0,(byte) 0x6,(byte) 0x0,
+(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,(byte) 0x6,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch43 = new BitmapCharRec(12,12,-1,-1,14,ch43data);
+
+// char: 0x2a '*'
+
+ static final byte[] ch42data = {
+ (byte) 0x8,(byte) 0x0,(byte) 0x1c,(byte) 0x0,(byte) 0xc9,(byte) 0x80,(byte) 0xeb,(byte) 0x80,(byte) 0x1c,(byte) 0x0,(byte) 0xeb,(byte) 0x80,(byte) 0xc9,(byte) 0x80,(byte) 0x1c,(byte) 0x0,
+(byte) 0x8,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch42 = new BitmapCharRec(9,9,-2,-8,12,ch42data);
+
+// char: 0x29 ')'
+
+ static final byte[] ch41data = {
+ (byte) 0x80,(byte) 0x40,(byte) 0x20,(byte) 0x30,(byte) 0x10,(byte) 0x18,(byte) 0x18,(byte) 0xc,(byte) 0xc,(byte) 0xc,(byte) 0xc,(byte) 0xc,(byte) 0xc,(byte) 0xc,(byte) 0xc,(byte) 0x18,
+(byte) 0x18,(byte) 0x10,(byte) 0x30,(byte) 0x20,(byte) 0x40,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch41 = new BitmapCharRec(6,22,-1,5,8,ch41data);
+
+// char: 0x28 '('
+
+ static final byte[] ch40data = {
+ (byte) 0x4,(byte) 0x8,(byte) 0x10,(byte) 0x30,(byte) 0x20,(byte) 0x60,(byte) 0x60,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0x60,
+(byte) 0x60,(byte) 0x20,(byte) 0x30,(byte) 0x10,(byte) 0x8,(byte) 0x4,
+ };
+
+ static final BitmapCharRec ch40 = new BitmapCharRec(6,22,-1,5,8,ch40data);
+
+// char: 0x27 '''
+
+ static final byte[] ch39data = {
+ (byte) 0xc0,(byte) 0x60,(byte) 0x20,(byte) 0xe0,(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch39 = new BitmapCharRec(3,5,-3,-12,8,ch39data);
+
+// char: 0x26 '&'
+
+ static final byte[] ch38data = {
+ (byte) 0x3c,(byte) 0x3c,(byte) 0x7f,(byte) 0x7e,(byte) 0xe1,(byte) 0xe1,(byte) 0xc0,(byte) 0xc0,(byte) 0xc1,(byte) 0xc0,(byte) 0xc1,(byte) 0xa0,(byte) 0x63,(byte) 0x20,(byte) 0x37,(byte) 0x10,
+(byte) 0x1e,(byte) 0x18,(byte) 0xe,(byte) 0x3e,(byte) 0xf,(byte) 0x0,(byte) 0x1d,(byte) 0x80,(byte) 0x18,(byte) 0xc0,(byte) 0x18,(byte) 0x40,(byte) 0x18,(byte) 0x40,(byte) 0xc,(byte) 0xc0,
+(byte) 0x7,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch38 = new BitmapCharRec(16,17,-1,0,18,ch38data);
+
+// char: 0x25 '%'
+
+ static final byte[] ch37data = {
+ (byte) 0x30,(byte) 0x3c,(byte) 0x0,(byte) 0x18,(byte) 0x72,(byte) 0x0,(byte) 0xc,(byte) 0x61,(byte) 0x0,(byte) 0x4,(byte) 0x60,(byte) 0x80,(byte) 0x6,(byte) 0x60,(byte) 0x80,(byte) 0x3,
+(byte) 0x30,(byte) 0x80,(byte) 0x1,(byte) 0x19,(byte) 0x80,(byte) 0x1,(byte) 0x8f,(byte) 0x0,(byte) 0x78,(byte) 0xc0,(byte) 0x0,(byte) 0xe4,(byte) 0x40,(byte) 0x0,(byte) 0xc2,(byte) 0x60,
+(byte) 0x0,(byte) 0xc1,(byte) 0x30,(byte) 0x0,(byte) 0xc1,(byte) 0x10,(byte) 0x0,(byte) 0x61,(byte) 0x18,(byte) 0x0,(byte) 0x33,(byte) 0xfc,(byte) 0x0,(byte) 0x1e,(byte) 0xc,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch37 = new BitmapCharRec(17,16,-1,0,19,ch37data);
+
+// char: 0x24 '$'
+
+ static final byte[] ch36data = {
+ (byte) 0x4,(byte) 0x0,(byte) 0x4,(byte) 0x0,(byte) 0x3f,(byte) 0x0,(byte) 0xe5,(byte) 0xc0,(byte) 0xc4,(byte) 0xc0,(byte) 0x84,(byte) 0x60,(byte) 0x84,(byte) 0x60,(byte) 0x4,(byte) 0x60,
+(byte) 0x4,(byte) 0xe0,(byte) 0x7,(byte) 0xc0,(byte) 0x7,(byte) 0x80,(byte) 0x1e,(byte) 0x0,(byte) 0x3c,(byte) 0x0,(byte) 0x74,(byte) 0x0,(byte) 0x64,(byte) 0x0,(byte) 0x64,(byte) 0x20,
+(byte) 0x64,(byte) 0x60,(byte) 0x34,(byte) 0xe0,(byte) 0x1f,(byte) 0x80,(byte) 0x4,(byte) 0x0,(byte) 0x4,(byte) 0x0,
+ };
+
+ static final BitmapCharRec ch36 = new BitmapCharRec(11,21,0,2,12,ch36data);
+
+// char: 0x23 '#'
+
+ static final byte[] ch35data = {
+ (byte) 0x22,(byte) 0x0,(byte) 0x22,(byte) 0x0,(byte) 0x22,(byte) 0x0,(byte) 0x22,(byte) 0x0,(byte) 0x22,(byte) 0x0,(byte) 0xff,(byte) 0xc0,(byte) 0xff,(byte) 0xc0,(byte) 0x11,(byte) 0x0,
+(byte) 0x11,(byte) 0x0,(byte) 0x11,(byte) 0x0,(byte) 0x7f,(byte) 0xe0,(byte) 0x7f,(byte) 0xe0,(byte) 0x8,(byte) 0x80,(byte) 0x8,(byte) 0x80,(byte) 0x8,(byte) 0x80,(byte) 0x8,(byte) 0x80,
+(byte) 0x8,(byte) 0x80,
+ };
+
+ static final BitmapCharRec ch35 = new BitmapCharRec(11,17,-1,0,13,ch35data);
+
+// char: 0x22 '"'
+
+ static final byte[] ch34data = {
+ (byte) 0x88,(byte) 0xcc,(byte) 0xcc,(byte) 0xcc,(byte) 0xcc,
+ };
+
+ static final BitmapCharRec ch34 = new BitmapCharRec(6,5,-1,-12,10,ch34data);
+
+// char: 0x21 '!'
+
+ static final byte[] ch33data = {
+ (byte) 0xc0,(byte) 0xc0,(byte) 0x0,(byte) 0x0,(byte) 0x0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,(byte) 0xc0,
+(byte) 0xc0,
+ };
+
+ static final BitmapCharRec ch33 = new BitmapCharRec(2,17,-3,0,8,ch33data);
+
+// char: 0x20 ' '
+
+ static final BitmapCharRec ch32 = new BitmapCharRec(0,0,0,0,6,zerodata);
+
+ static final BitmapCharRec chars[] = {
+ ch32,
+ ch33,
+ ch34,
+ ch35,
+ ch36,
+ ch37,
+ ch38,
+ ch39,
+ ch40,
+ ch41,
+ ch42,
+ ch43,
+ ch44,
+ ch45,
+ ch46,
+ ch47,
+ ch48,
+ ch49,
+ ch50,
+ ch51,
+ ch52,
+ ch53,
+ ch54,
+ ch55,
+ ch56,
+ ch57,
+ ch58,
+ ch59,
+ ch60,
+ ch61,
+ ch62,
+ ch63,
+ ch64,
+ ch65,
+ ch66,
+ ch67,
+ ch68,
+ ch69,
+ ch70,
+ ch71,
+ ch72,
+ ch73,
+ ch74,
+ ch75,
+ ch76,
+ ch77,
+ ch78,
+ ch79,
+ ch80,
+ ch81,
+ ch82,
+ ch83,
+ ch84,
+ ch85,
+ ch86,
+ ch87,
+ ch88,
+ ch89,
+ ch90,
+ ch91,
+ ch92,
+ ch93,
+ ch94,
+ ch95,
+ ch96,
+ ch97,
+ ch98,
+ ch99,
+ ch100,
+ ch101,
+ ch102,
+ ch103,
+ ch104,
+ ch105,
+ ch106,
+ ch107,
+ ch108,
+ ch109,
+ ch110,
+ ch111,
+ ch112,
+ ch113,
+ ch114,
+ ch115,
+ ch116,
+ ch117,
+ ch118,
+ ch119,
+ ch120,
+ ch121,
+ ch122,
+ ch123,
+ ch124,
+ ch125,
+ ch126,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ ch160,
+ ch161,
+ ch162,
+ ch163,
+ ch164,
+ ch165,
+ ch166,
+ ch167,
+ ch168,
+ ch169,
+ ch170,
+ ch171,
+ ch172,
+ ch173,
+ ch174,
+ ch175,
+ ch176,
+ ch177,
+ ch178,
+ ch179,
+ ch180,
+ ch181,
+ ch182,
+ ch183,
+ ch184,
+ ch185,
+ ch186,
+ ch187,
+ ch188,
+ ch189,
+ ch190,
+ ch191,
+ ch192,
+ ch193,
+ ch194,
+ ch195,
+ ch196,
+ ch197,
+ ch198,
+ ch199,
+ ch200,
+ ch201,
+ ch202,
+ ch203,
+ ch204,
+ ch205,
+ ch206,
+ ch207,
+ ch208,
+ ch209,
+ ch210,
+ ch211,
+ ch212,
+ ch213,
+ ch214,
+ ch215,
+ ch216,
+ ch217,
+ ch218,
+ ch219,
+ ch220,
+ ch221,
+ ch222,
+ ch223,
+ ch224,
+ ch225,
+ ch226,
+ ch227,
+ ch228,
+ ch229,
+ ch230,
+ ch231,
+ ch232,
+ ch233,
+ ch234,
+ ch235,
+ ch236,
+ ch237,
+ ch238,
+ ch239,
+ ch240,
+ ch241,
+ ch242,
+ ch243,
+ ch244,
+ ch245,
+ ch246,
+ ch247,
+ ch248,
+ ch249,
+ ch250,
+ ch251,
+ ch252,
+ ch253,
+ ch254,
+ ch255,
+ };
+
+ static final BitmapFontRec fontinfo = new BitmapFontRec(
+ "-adobe-times-medium-r-*--24-*-*-*-p-*-iso8859-1",
+ 224,
+ 32,
+ chars
+ );
+
+ public static BitmapFontRec getBitmapFontRec() {
+ return fontinfo;
+ }
+} // end of class glutBitmapTimesRoman24
diff --git a/gl4java/utils/glut/fonts/data/glutStrokeMonoRoman.java b/gl4java/utils/glut/fonts/data/glutStrokeMonoRoman.java
new file mode 100644
index 0000000..3f8b511
--- /dev/null
+++ b/gl4java/utils/glut/fonts/data/glutStrokeMonoRoman.java
@@ -0,0 +1,2458 @@
+
+/* GENERATED FILE -- DO NOT MODIFY */
+
+package gl4java.utils.glut.fonts.data;
+
+import gl4java.utils.glut.fonts.*;
+
+public class glutStrokeMonoRoman implements GLUTStrokeFont {
+/* char: 33 '!' */
+
+static final CoordRec[] char33_stroke0 = {
+ new CoordRec( (float) 52.381, (float) 100 ),
+ new CoordRec( (float) 52.381, (float) 33.3333 ),
+};
+
+static final CoordRec[] char33_stroke1 = {
+ new CoordRec( (float) 52.381, (float) 9.5238 ),
+ new CoordRec( (float) 47.6191, (float) 4.7619 ),
+ new CoordRec( (float) 52.381, (float) 0 ),
+ new CoordRec( (float) 57.1429, (float) 4.7619 ),
+ new CoordRec( (float) 52.381, (float) 9.5238 ),
+};
+
+static final StrokeRec char33[] = {
+ new StrokeRec(2, char33_stroke0),
+ new StrokeRec(5, char33_stroke1),
+};
+
+/* char: 34 '"' */
+
+static final CoordRec[] char34_stroke0 = {
+ new CoordRec( (float) 33.3334, (float) 100 ),
+ new CoordRec( (float) 33.3334, (float) 66.6667 ),
+};
+
+static final CoordRec[] char34_stroke1 = {
+ new CoordRec( (float) 71.4286, (float) 100 ),
+ new CoordRec( (float) 71.4286, (float) 66.6667 ),
+};
+
+static final StrokeRec char34[] = {
+ new StrokeRec(2, char34_stroke0),
+ new StrokeRec(2, char34_stroke1),
+};
+
+/* char: 35 '#' */
+
+static final CoordRec[] char35_stroke0 = {
+ new CoordRec( (float) 54.7619, (float) 119.048 ),
+ new CoordRec( (float) 21.4286, (float) -33.3333 ),
+};
+
+static final CoordRec[] char35_stroke1 = {
+ new CoordRec( (float) 83.3334, (float) 119.048 ),
+ new CoordRec( (float) 50, (float) -33.3333 ),
+};
+
+static final CoordRec[] char35_stroke2 = {
+ new CoordRec( (float) 21.4286, (float) 57.1429 ),
+ new CoordRec( (float) 88.0952, (float) 57.1429 ),
+};
+
+static final CoordRec[] char35_stroke3 = {
+ new CoordRec( (float) 16.6667, (float) 28.5714 ),
+ new CoordRec( (float) 83.3334, (float) 28.5714 ),
+};
+
+static final StrokeRec char35[] = {
+ new StrokeRec(2, char35_stroke0),
+ new StrokeRec(2, char35_stroke1),
+ new StrokeRec(2, char35_stroke2),
+ new StrokeRec(2, char35_stroke3),
+};
+
+/* char: 36 '$' */
+
+static final CoordRec[] char36_stroke0 = {
+ new CoordRec( (float) 42.8571, (float) 119.048 ),
+ new CoordRec( (float) 42.8571, (float) -19.0476 ),
+};
+
+static final CoordRec[] char36_stroke1 = {
+ new CoordRec( (float) 61.9047, (float) 119.048 ),
+ new CoordRec( (float) 61.9047, (float) -19.0476 ),
+};
+
+static final CoordRec[] char36_stroke2 = {
+ new CoordRec( (float) 85.7143, (float) 85.7143 ),
+ new CoordRec( (float) 76.1905, (float) 95.2381 ),
+ new CoordRec( (float) 61.9047, (float) 100 ),
+ new CoordRec( (float) 42.8571, (float) 100 ),
+ new CoordRec( (float) 28.5714, (float) 95.2381 ),
+ new CoordRec( (float) 19.0476, (float) 85.7143 ),
+ new CoordRec( (float) 19.0476, (float) 76.1905 ),
+ new CoordRec( (float) 23.8095, (float) 66.6667 ),
+ new CoordRec( (float) 28.5714, (float) 61.9048 ),
+ new CoordRec( (float) 38.0952, (float) 57.1429 ),
+ new CoordRec( (float) 66.6666, (float) 47.619 ),
+ new CoordRec( (float) 76.1905, (float) 42.8571 ),
+ new CoordRec( (float) 80.9524, (float) 38.0952 ),
+ new CoordRec( (float) 85.7143, (float) 28.5714 ),
+ new CoordRec( (float) 85.7143, (float) 14.2857 ),
+ new CoordRec( (float) 76.1905, (float) 4.7619 ),
+ new CoordRec( (float) 61.9047, (float) 0 ),
+ new CoordRec( (float) 42.8571, (float) 0 ),
+ new CoordRec( (float) 28.5714, (float) 4.7619 ),
+ new CoordRec( (float) 19.0476, (float) 14.2857 ),
+};
+
+static final StrokeRec char36[] = {
+ new StrokeRec(2, char36_stroke0),
+ new StrokeRec(2, char36_stroke1),
+ new StrokeRec(20, char36_stroke2),
+};
+
+/* char: 37 '%' */
+
+static final CoordRec[] char37_stroke0 = {
+ new CoordRec( (float) 95.2381, (float) 100 ),
+ new CoordRec( (float) 9.5238, (float) 0 ),
+};
+
+static final CoordRec[] char37_stroke1 = {
+ new CoordRec( (float) 33.3333, (float) 100 ),
+ new CoordRec( (float) 42.8571, (float) 90.4762 ),
+ new CoordRec( (float) 42.8571, (float) 80.9524 ),
+ new CoordRec( (float) 38.0952, (float) 71.4286 ),
+ new CoordRec( (float) 28.5714, (float) 66.6667 ),
+ new CoordRec( (float) 19.0476, (float) 66.6667 ),
+ new CoordRec( (float) 9.5238, (float) 76.1905 ),
+ new CoordRec( (float) 9.5238, (float) 85.7143 ),
+ new CoordRec( (float) 14.2857, (float) 95.2381 ),
+ new CoordRec( (float) 23.8095, (float) 100 ),
+ new CoordRec( (float) 33.3333, (float) 100 ),
+ new CoordRec( (float) 42.8571, (float) 95.2381 ),
+ new CoordRec( (float) 57.1428, (float) 90.4762 ),
+ new CoordRec( (float) 71.4286, (float) 90.4762 ),
+ new CoordRec( (float) 85.7143, (float) 95.2381 ),
+ new CoordRec( (float) 95.2381, (float) 100 ),
+};
+
+static final CoordRec[] char37_stroke2 = {
+ new CoordRec( (float) 76.1905, (float) 33.3333 ),
+ new CoordRec( (float) 66.6667, (float) 28.5714 ),
+ new CoordRec( (float) 61.9048, (float) 19.0476 ),
+ new CoordRec( (float) 61.9048, (float) 9.5238 ),
+ new CoordRec( (float) 71.4286, (float) 0 ),
+ new CoordRec( (float) 80.9524, (float) 0 ),
+ new CoordRec( (float) 90.4762, (float) 4.7619 ),
+ new CoordRec( (float) 95.2381, (float) 14.2857 ),
+ new CoordRec( (float) 95.2381, (float) 23.8095 ),
+ new CoordRec( (float) 85.7143, (float) 33.3333 ),
+ new CoordRec( (float) 76.1905, (float) 33.3333 ),
+};
+
+static final StrokeRec char37[] = {
+ new StrokeRec(2, char37_stroke0),
+ new StrokeRec(16, char37_stroke1),
+ new StrokeRec(11, char37_stroke2),
+};
+
+/* char: 38 '&' */
+
+static final CoordRec[] char38_stroke0 = {
+ new CoordRec( (float) 100, (float) 57.1429 ),
+ new CoordRec( (float) 100, (float) 61.9048 ),
+ new CoordRec( (float) 95.2381, (float) 66.6667 ),
+ new CoordRec( (float) 90.4762, (float) 66.6667 ),
+ new CoordRec( (float) 85.7143, (float) 61.9048 ),
+ new CoordRec( (float) 80.9524, (float) 52.381 ),
+ new CoordRec( (float) 71.4286, (float) 28.5714 ),
+ new CoordRec( (float) 61.9048, (float) 14.2857 ),
+ new CoordRec( (float) 52.3809, (float) 4.7619 ),
+ new CoordRec( (float) 42.8571, (float) 0 ),
+ new CoordRec( (float) 23.8095, (float) 0 ),
+ new CoordRec( (float) 14.2857, (float) 4.7619 ),
+ new CoordRec( (float) 9.5238, (float) 9.5238 ),
+ new CoordRec( (float) 4.7619, (float) 19.0476 ),
+ new CoordRec( (float) 4.7619, (float) 28.5714 ),
+ new CoordRec( (float) 9.5238, (float) 38.0952 ),
+ new CoordRec( (float) 14.2857, (float) 42.8571 ),
+ new CoordRec( (float) 47.619, (float) 61.9048 ),
+ new CoordRec( (float) 52.3809, (float) 66.6667 ),
+ new CoordRec( (float) 57.1429, (float) 76.1905 ),
+ new CoordRec( (float) 57.1429, (float) 85.7143 ),
+ new CoordRec( (float) 52.3809, (float) 95.2381 ),
+ new CoordRec( (float) 42.8571, (float) 100 ),
+ new CoordRec( (float) 33.3333, (float) 95.2381 ),
+ new CoordRec( (float) 28.5714, (float) 85.7143 ),
+ new CoordRec( (float) 28.5714, (float) 76.1905 ),
+ new CoordRec( (float) 33.3333, (float) 61.9048 ),
+ new CoordRec( (float) 42.8571, (float) 47.619 ),
+ new CoordRec( (float) 66.6667, (float) 14.2857 ),
+ new CoordRec( (float) 76.1905, (float) 4.7619 ),
+ new CoordRec( (float) 85.7143, (float) 0 ),
+ new CoordRec( (float) 95.2381, (float) 0 ),
+ new CoordRec( (float) 100, (float) 4.7619 ),
+ new CoordRec( (float) 100, (float) 9.5238 ),
+};
+
+static final StrokeRec char38[] = {
+ new StrokeRec(34, char38_stroke0),
+};
+
+/* char: 39 ''' */
+
+static final CoordRec[] char39_stroke0 = {
+ new CoordRec( (float) 52.381, (float) 100 ),
+ new CoordRec( (float) 52.381, (float) 66.6667 ),
+};
+
+static final StrokeRec char39[] = {
+ new StrokeRec(2, char39_stroke0),
+};
+
+/* char: 40 '(' */
+
+static final CoordRec[] char40_stroke0 = {
+ new CoordRec( (float) 69.0476, (float) 119.048 ),
+ new CoordRec( (float) 59.5238, (float) 109.524 ),
+ new CoordRec( (float) 50, (float) 95.2381 ),
+ new CoordRec( (float) 40.4762, (float) 76.1905 ),
+ new CoordRec( (float) 35.7143, (float) 52.381 ),
+ new CoordRec( (float) 35.7143, (float) 33.3333 ),
+ new CoordRec( (float) 40.4762, (float) 9.5238 ),
+ new CoordRec( (float) 50, (float) -9.5238 ),
+ new CoordRec( (float) 59.5238, (float) -23.8095 ),
+ new CoordRec( (float) 69.0476, (float) -33.3333 ),
+};
+
+static final StrokeRec char40[] = {
+ new StrokeRec(10, char40_stroke0),
+};
+
+/* char: 41 ')' */
+
+static final CoordRec[] char41_stroke0 = {
+ new CoordRec( (float) 35.7143, (float) 119.048 ),
+ new CoordRec( (float) 45.2381, (float) 109.524 ),
+ new CoordRec( (float) 54.7619, (float) 95.2381 ),
+ new CoordRec( (float) 64.2857, (float) 76.1905 ),
+ new CoordRec( (float) 69.0476, (float) 52.381 ),
+ new CoordRec( (float) 69.0476, (float) 33.3333 ),
+ new CoordRec( (float) 64.2857, (float) 9.5238 ),
+ new CoordRec( (float) 54.7619, (float) -9.5238 ),
+ new CoordRec( (float) 45.2381, (float) -23.8095 ),
+ new CoordRec( (float) 35.7143, (float) -33.3333 ),
+};
+
+static final StrokeRec char41[] = {
+ new StrokeRec(10, char41_stroke0),
+};
+
+/* char: 42 '*' */
+
+static final CoordRec[] char42_stroke0 = {
+ new CoordRec( (float) 52.381, (float) 71.4286 ),
+ new CoordRec( (float) 52.381, (float) 14.2857 ),
+};
+
+static final CoordRec[] char42_stroke1 = {
+ new CoordRec( (float) 28.5715, (float) 57.1429 ),
+ new CoordRec( (float) 76.1905, (float) 28.5714 ),
+};
+
+static final CoordRec[] char42_stroke2 = {
+ new CoordRec( (float) 76.1905, (float) 57.1429 ),
+ new CoordRec( (float) 28.5715, (float) 28.5714 ),
+};
+
+static final StrokeRec char42[] = {
+ new StrokeRec(2, char42_stroke0),
+ new StrokeRec(2, char42_stroke1),
+ new StrokeRec(2, char42_stroke2),
+};
+
+/* char: 43 '+' */
+
+static final CoordRec[] char43_stroke0 = {
+ new CoordRec( (float) 52.3809, (float) 85.7143 ),
+ new CoordRec( (float) 52.3809, (float) 0 ),
+};
+
+static final CoordRec[] char43_stroke1 = {
+ new CoordRec( (float) 9.5238, (float) 42.8571 ),
+ new CoordRec( (float) 95.2381, (float) 42.8571 ),
+};
+
+static final StrokeRec char43[] = {
+ new StrokeRec(2, char43_stroke0),
+ new StrokeRec(2, char43_stroke1),
+};
+
+/* char: 44 ',' */
+
+static final CoordRec[] char44_stroke0 = {
+ new CoordRec( (float) 57.1429, (float) 4.7619 ),
+ new CoordRec( (float) 52.381, (float) 0 ),
+ new CoordRec( (float) 47.6191, (float) 4.7619 ),
+ new CoordRec( (float) 52.381, (float) 9.5238 ),
+ new CoordRec( (float) 57.1429, (float) 4.7619 ),
+ new CoordRec( (float) 57.1429, (float) -4.7619 ),
+ new CoordRec( (float) 52.381, (float) -14.2857 ),
+ new CoordRec( (float) 47.6191, (float) -19.0476 ),
+};
+
+static final StrokeRec char44[] = {
+ new StrokeRec(8, char44_stroke0),
+};
+
+/* char: 45 '-' */
+
+static final CoordRec[] char45_stroke0 = {
+ new CoordRec( (float) 9.5238, (float) 42.8571 ),
+ new CoordRec( (float) 95.2381, (float) 42.8571 ),
+};
+
+static final StrokeRec char45[] = {
+ new StrokeRec(2, char45_stroke0),
+};
+
+/* char: 46 '.' */
+
+static final CoordRec[] char46_stroke0 = {
+ new CoordRec( (float) 52.381, (float) 9.5238 ),
+ new CoordRec( (float) 47.6191, (float) 4.7619 ),
+ new CoordRec( (float) 52.381, (float) 0 ),
+ new CoordRec( (float) 57.1429, (float) 4.7619 ),
+ new CoordRec( (float) 52.381, (float) 9.5238 ),
+};
+
+static final StrokeRec char46[] = {
+ new StrokeRec(5, char46_stroke0),
+};
+
+/* char: 47 '/' */
+
+static final CoordRec[] char47_stroke0 = {
+ new CoordRec( (float) 19.0476, (float) -14.2857 ),
+ new CoordRec( (float) 85.7143, (float) 100 ),
+};
+
+static final StrokeRec char47[] = {
+ new StrokeRec(2, char47_stroke0),
+};
+
+/* char: 48 '0' */
+
+static final CoordRec[] char48_stroke0 = {
+ new CoordRec( (float) 47.619, (float) 100 ),
+ new CoordRec( (float) 33.3333, (float) 95.2381 ),
+ new CoordRec( (float) 23.8095, (float) 80.9524 ),
+ new CoordRec( (float) 19.0476, (float) 57.1429 ),
+ new CoordRec( (float) 19.0476, (float) 42.8571 ),
+ new CoordRec( (float) 23.8095, (float) 19.0476 ),
+ new CoordRec( (float) 33.3333, (float) 4.7619 ),
+ new CoordRec( (float) 47.619, (float) 0 ),
+ new CoordRec( (float) 57.1428, (float) 0 ),
+ new CoordRec( (float) 71.4286, (float) 4.7619 ),
+ new CoordRec( (float) 80.9524, (float) 19.0476 ),
+ new CoordRec( (float) 85.7143, (float) 42.8571 ),
+ new CoordRec( (float) 85.7143, (float) 57.1429 ),
+ new CoordRec( (float) 80.9524, (float) 80.9524 ),
+ new CoordRec( (float) 71.4286, (float) 95.2381 ),
+ new CoordRec( (float) 57.1428, (float) 100 ),
+ new CoordRec( (float) 47.619, (float) 100 ),
+};
+
+static final StrokeRec char48[] = {
+ new StrokeRec(17, char48_stroke0),
+};
+
+/* char: 49 '1' */
+
+static final CoordRec[] char49_stroke0 = {
+ new CoordRec( (float) 40.4762, (float) 80.9524 ),
+ new CoordRec( (float) 50, (float) 85.7143 ),
+ new CoordRec( (float) 64.2857, (float) 100 ),
+ new CoordRec( (float) 64.2857, (float) 0 ),
+};
+
+static final StrokeRec char49[] = {
+ new StrokeRec(4, char49_stroke0),
+};
+
+/* char: 50 '2' */
+
+static final CoordRec[] char50_stroke0 = {
+ new CoordRec( (float) 23.8095, (float) 76.1905 ),
+ new CoordRec( (float) 23.8095, (float) 80.9524 ),
+ new CoordRec( (float) 28.5714, (float) 90.4762 ),
+ new CoordRec( (float) 33.3333, (float) 95.2381 ),
+ new CoordRec( (float) 42.8571, (float) 100 ),
+ new CoordRec( (float) 61.9047, (float) 100 ),
+ new CoordRec( (float) 71.4286, (float) 95.2381 ),
+ new CoordRec( (float) 76.1905, (float) 90.4762 ),
+ new CoordRec( (float) 80.9524, (float) 80.9524 ),
+ new CoordRec( (float) 80.9524, (float) 71.4286 ),
+ new CoordRec( (float) 76.1905, (float) 61.9048 ),
+ new CoordRec( (float) 66.6666, (float) 47.619 ),
+ new CoordRec( (float) 19.0476, (float) 0 ),
+ new CoordRec( (float) 85.7143, (float) 0 ),
+};
+
+static final StrokeRec char50[] = {
+ new StrokeRec(14, char50_stroke0),
+};
+
+/* char: 51 '3' */
+
+static final CoordRec[] char51_stroke0 = {
+ new CoordRec( (float) 28.5714, (float) 100 ),
+ new CoordRec( (float) 80.9524, (float) 100 ),
+ new CoordRec( (float) 52.3809, (float) 61.9048 ),
+ new CoordRec( (float) 66.6666, (float) 61.9048 ),
+ new CoordRec( (float) 76.1905, (float) 57.1429 ),
+ new CoordRec( (float) 80.9524, (float) 52.381 ),
+ new CoordRec( (float) 85.7143, (float) 38.0952 ),
+ new CoordRec( (float) 85.7143, (float) 28.5714 ),
+ new CoordRec( (float) 80.9524, (float) 14.2857 ),
+ new CoordRec( (float) 71.4286, (float) 4.7619 ),
+ new CoordRec( (float) 57.1428, (float) 0 ),
+ new CoordRec( (float) 42.8571, (float) 0 ),
+ new CoordRec( (float) 28.5714, (float) 4.7619 ),
+ new CoordRec( (float) 23.8095, (float) 9.5238 ),
+ new CoordRec( (float) 19.0476, (float) 19.0476 ),
+};
+
+static final StrokeRec char51[] = {
+ new StrokeRec(15, char51_stroke0),
+};
+
+/* char: 52 '4' */
+
+static final CoordRec[] char52_stroke0 = {
+ new CoordRec( (float) 64.2857, (float) 100 ),
+ new CoordRec( (float) 16.6667, (float) 33.3333 ),
+ new CoordRec( (float) 88.0952, (float) 33.3333 ),
+};
+
+static final CoordRec[] char52_stroke1 = {
+ new CoordRec( (float) 64.2857, (float) 100 ),
+ new CoordRec( (float) 64.2857, (float) 0 ),
+};
+
+static final StrokeRec char52[] = {
+ new StrokeRec(3, char52_stroke0),
+ new StrokeRec(2, char52_stroke1),
+};
+
+/* char: 53 '5' */
+
+static final CoordRec[] char53_stroke0 = {
+ new CoordRec( (float) 76.1905, (float) 100 ),
+ new CoordRec( (float) 28.5714, (float) 100 ),
+ new CoordRec( (float) 23.8095, (float) 57.1429 ),
+ new CoordRec( (float) 28.5714, (float) 61.9048 ),
+ new CoordRec( (float) 42.8571, (float) 66.6667 ),
+ new CoordRec( (float) 57.1428, (float) 66.6667 ),
+ new CoordRec( (float) 71.4286, (float) 61.9048 ),
+ new CoordRec( (float) 80.9524, (float) 52.381 ),
+ new CoordRec( (float) 85.7143, (float) 38.0952 ),
+ new CoordRec( (float) 85.7143, (float) 28.5714 ),
+ new CoordRec( (float) 80.9524, (float) 14.2857 ),
+ new CoordRec( (float) 71.4286, (float) 4.7619 ),
+ new CoordRec( (float) 57.1428, (float) 0 ),
+ new CoordRec( (float) 42.8571, (float) 0 ),
+ new CoordRec( (float) 28.5714, (float) 4.7619 ),
+ new CoordRec( (float) 23.8095, (float) 9.5238 ),
+ new CoordRec( (float) 19.0476, (float) 19.0476 ),
+};
+
+static final StrokeRec char53[] = {
+ new StrokeRec(17, char53_stroke0),
+};
+
+/* char: 54 '6' */
+
+static final CoordRec[] char54_stroke0 = {
+ new CoordRec( (float) 78.5714, (float) 85.7143 ),
+ new CoordRec( (float) 73.8096, (float) 95.2381 ),
+ new CoordRec( (float) 59.5238, (float) 100 ),
+ new CoordRec( (float) 50, (float) 100 ),
+ new CoordRec( (float) 35.7143, (float) 95.2381 ),
+ new CoordRec( (float) 26.1905, (float) 80.9524 ),
+ new CoordRec( (float) 21.4286, (float) 57.1429 ),
+ new CoordRec( (float) 21.4286, (float) 33.3333 ),
+ new CoordRec( (float) 26.1905, (float) 14.2857 ),
+ new CoordRec( (float) 35.7143, (float) 4.7619 ),
+ new CoordRec( (float) 50, (float) 0 ),
+ new CoordRec( (float) 54.7619, (float) 0 ),
+ new CoordRec( (float) 69.0476, (float) 4.7619 ),
+ new CoordRec( (float) 78.5714, (float) 14.2857 ),
+ new CoordRec( (float) 83.3334, (float) 28.5714 ),
+ new CoordRec( (float) 83.3334, (float) 33.3333 ),
+ new CoordRec( (float) 78.5714, (float) 47.619 ),
+ new CoordRec( (float) 69.0476, (float) 57.1429 ),
+ new CoordRec( (float) 54.7619, (float) 61.9048 ),
+ new CoordRec( (float) 50, (float) 61.9048 ),
+ new CoordRec( (float) 35.7143, (float) 57.1429 ),
+ new CoordRec( (float) 26.1905, (float) 47.619 ),
+ new CoordRec( (float) 21.4286, (float) 33.3333 ),
+};
+
+static final StrokeRec char54[] = {
+ new StrokeRec(23, char54_stroke0),
+};
+
+/* char: 55 '7' */
+
+static final CoordRec[] char55_stroke0 = {
+ new CoordRec( (float) 85.7143, (float) 100 ),
+ new CoordRec( (float) 38.0952, (float) 0 ),
+};
+
+static final CoordRec[] char55_stroke1 = {
+ new CoordRec( (float) 19.0476, (float) 100 ),
+ new CoordRec( (float) 85.7143, (float) 100 ),
+};
+
+static final StrokeRec char55[] = {
+ new StrokeRec(2, char55_stroke0),
+ new StrokeRec(2, char55_stroke1),
+};
+
+/* char: 56 '8' */
+
+static final CoordRec[] char56_stroke0 = {
+ new CoordRec( (float) 42.8571, (float) 100 ),
+ new CoordRec( (float) 28.5714, (float) 95.2381 ),
+ new CoordRec( (float) 23.8095, (float) 85.7143 ),
+ new CoordRec( (float) 23.8095, (float) 76.1905 ),
+ new CoordRec( (float) 28.5714, (float) 66.6667 ),
+ new CoordRec( (float) 38.0952, (float) 61.9048 ),
+ new CoordRec( (float) 57.1428, (float) 57.1429 ),
+ new CoordRec( (float) 71.4286, (float) 52.381 ),
+ new CoordRec( (float) 80.9524, (float) 42.8571 ),
+ new CoordRec( (float) 85.7143, (float) 33.3333 ),
+ new CoordRec( (float) 85.7143, (float) 19.0476 ),
+ new CoordRec( (float) 80.9524, (float) 9.5238 ),
+ new CoordRec( (float) 76.1905, (float) 4.7619 ),
+ new CoordRec( (float) 61.9047, (float) 0 ),
+ new CoordRec( (float) 42.8571, (float) 0 ),
+ new CoordRec( (float) 28.5714, (float) 4.7619 ),
+ new CoordRec( (float) 23.8095, (float) 9.5238 ),
+ new CoordRec( (float) 19.0476, (float) 19.0476 ),
+ new CoordRec( (float) 19.0476, (float) 33.3333 ),
+ new CoordRec( (float) 23.8095, (float) 42.8571 ),
+ new CoordRec( (float) 33.3333, (float) 52.381 ),
+ new CoordRec( (float) 47.619, (float) 57.1429 ),
+ new CoordRec( (float) 66.6666, (float) 61.9048 ),
+ new CoordRec( (float) 76.1905, (float) 66.6667 ),
+ new CoordRec( (float) 80.9524, (float) 76.1905 ),
+ new CoordRec( (float) 80.9524, (float) 85.7143 ),
+ new CoordRec( (float) 76.1905, (float) 95.2381 ),
+ new CoordRec( (float) 61.9047, (float) 100 ),
+ new CoordRec( (float) 42.8571, (float) 100 ),
+};
+
+static final StrokeRec char56[] = {
+ new StrokeRec(29, char56_stroke0),
+};
+
+/* char: 57 '9' */
+
+static final CoordRec[] char57_stroke0 = {
+ new CoordRec( (float) 83.3334, (float) 66.6667 ),
+ new CoordRec( (float) 78.5714, (float) 52.381 ),
+ new CoordRec( (float) 69.0476, (float) 42.8571 ),
+ new CoordRec( (float) 54.7619, (float) 38.0952 ),
+ new CoordRec( (float) 50, (float) 38.0952 ),
+ new CoordRec( (float) 35.7143, (float) 42.8571 ),
+ new CoordRec( (float) 26.1905, (float) 52.381 ),
+ new CoordRec( (float) 21.4286, (float) 66.6667 ),
+ new CoordRec( (float) 21.4286, (float) 71.4286 ),
+ new CoordRec( (float) 26.1905, (float) 85.7143 ),
+ new CoordRec( (float) 35.7143, (float) 95.2381 ),
+ new CoordRec( (float) 50, (float) 100 ),
+ new CoordRec( (float) 54.7619, (float) 100 ),
+ new CoordRec( (float) 69.0476, (float) 95.2381 ),
+ new CoordRec( (float) 78.5714, (float) 85.7143 ),
+ new CoordRec( (float) 83.3334, (float) 66.6667 ),
+ new CoordRec( (float) 83.3334, (float) 42.8571 ),
+ new CoordRec( (float) 78.5714, (float) 19.0476 ),
+ new CoordRec( (float) 69.0476, (float) 4.7619 ),
+ new CoordRec( (float) 54.7619, (float) 0 ),
+ new CoordRec( (float) 45.2381, (float) 0 ),
+ new CoordRec( (float) 30.9524, (float) 4.7619 ),
+ new CoordRec( (float) 26.1905, (float) 14.2857 ),
+};
+
+static final StrokeRec char57[] = {
+ new StrokeRec(23, char57_stroke0),
+};
+
+/* char: 58 ':' */
+
+static final CoordRec[] char58_stroke0 = {
+ new CoordRec( (float) 52.381, (float) 66.6667 ),
+ new CoordRec( (float) 47.6191, (float) 61.9048 ),
+ new CoordRec( (float) 52.381, (float) 57.1429 ),
+ new CoordRec( (float) 57.1429, (float) 61.9048 ),
+ new CoordRec( (float) 52.381, (float) 66.6667 ),
+};
+
+static final CoordRec[] char58_stroke1 = {
+ new CoordRec( (float) 52.381, (float) 9.5238 ),
+ new CoordRec( (float) 47.6191, (float) 4.7619 ),
+ new CoordRec( (float) 52.381, (float) 0 ),
+ new CoordRec( (float) 57.1429, (float) 4.7619 ),
+ new CoordRec( (float) 52.381, (float) 9.5238 ),
+};
+
+static final StrokeRec char58[] = {
+ new StrokeRec(5, char58_stroke0),
+ new StrokeRec(5, char58_stroke1),
+};
+
+/* char: 59 ';' */
+
+static final CoordRec[] char59_stroke0 = {
+ new CoordRec( (float) 52.381, (float) 66.6667 ),
+ new CoordRec( (float) 47.6191, (float) 61.9048 ),
+ new CoordRec( (float) 52.381, (float) 57.1429 ),
+ new CoordRec( (float) 57.1429, (float) 61.9048 ),
+ new CoordRec( (float) 52.381, (float) 66.6667 ),
+};
+
+static final CoordRec[] char59_stroke1 = {
+ new CoordRec( (float) 57.1429, (float) 4.7619 ),
+ new CoordRec( (float) 52.381, (float) 0 ),
+ new CoordRec( (float) 47.6191, (float) 4.7619 ),
+ new CoordRec( (float) 52.381, (float) 9.5238 ),
+ new CoordRec( (float) 57.1429, (float) 4.7619 ),
+ new CoordRec( (float) 57.1429, (float) -4.7619 ),
+ new CoordRec( (float) 52.381, (float) -14.2857 ),
+ new CoordRec( (float) 47.6191, (float) -19.0476 ),
+};
+
+static final StrokeRec char59[] = {
+ new StrokeRec(5, char59_stroke0),
+ new StrokeRec(8, char59_stroke1),
+};
+
+/* char: 60 '<' */
+
+static final CoordRec[] char60_stroke0 = {
+ new CoordRec( (float) 90.4762, (float) 85.7143 ),
+ new CoordRec( (float) 14.2857, (float) 42.8571 ),
+ new CoordRec( (float) 90.4762, (float) 0 ),
+};
+
+static final StrokeRec char60[] = {
+ new StrokeRec(3, char60_stroke0),
+};
+
+/* char: 61 '=' */
+
+static final CoordRec[] char61_stroke0 = {
+ new CoordRec( (float) 9.5238, (float) 57.1429 ),
+ new CoordRec( (float) 95.2381, (float) 57.1429 ),
+};
+
+static final CoordRec[] char61_stroke1 = {
+ new CoordRec( (float) 9.5238, (float) 28.5714 ),
+ new CoordRec( (float) 95.2381, (float) 28.5714 ),
+};
+
+static final StrokeRec char61[] = {
+ new StrokeRec(2, char61_stroke0),
+ new StrokeRec(2, char61_stroke1),
+};
+
+/* char: 62 '>' */
+
+static final CoordRec[] char62_stroke0 = {
+ new CoordRec( (float) 14.2857, (float) 85.7143 ),
+ new CoordRec( (float) 90.4762, (float) 42.8571 ),
+ new CoordRec( (float) 14.2857, (float) 0 ),
+};
+
+static final StrokeRec char62[] = {
+ new StrokeRec(3, char62_stroke0),
+};
+
+/* char: 63 '?' */
+
+static final CoordRec[] char63_stroke0 = {
+ new CoordRec( (float) 23.8095, (float) 76.1905 ),
+ new CoordRec( (float) 23.8095, (float) 80.9524 ),
+ new CoordRec( (float) 28.5714, (float) 90.4762 ),
+ new CoordRec( (float) 33.3333, (float) 95.2381 ),
+ new CoordRec( (float) 42.8571, (float) 100 ),
+ new CoordRec( (float) 61.9047, (float) 100 ),
+ new CoordRec( (float) 71.4285, (float) 95.2381 ),
+ new CoordRec( (float) 76.1905, (float) 90.4762 ),
+ new CoordRec( (float) 80.9524, (float) 80.9524 ),
+ new CoordRec( (float) 80.9524, (float) 71.4286 ),
+ new CoordRec( (float) 76.1905, (float) 61.9048 ),
+ new CoordRec( (float) 71.4285, (float) 57.1429 ),
+ new CoordRec( (float) 52.3809, (float) 47.619 ),
+ new CoordRec( (float) 52.3809, (float) 33.3333 ),
+};
+
+static final CoordRec[] char63_stroke1 = {
+ new CoordRec( (float) 52.3809, (float) 9.5238 ),
+ new CoordRec( (float) 47.619, (float) 4.7619 ),
+ new CoordRec( (float) 52.3809, (float) 0 ),
+ new CoordRec( (float) 57.1428, (float) 4.7619 ),
+ new CoordRec( (float) 52.3809, (float) 9.5238 ),
+};
+
+static final StrokeRec char63[] = {
+ new StrokeRec(14, char63_stroke0),
+ new StrokeRec(5, char63_stroke1),
+};
+
+/* char: 64 '@' */
+
+static final CoordRec[] char64_stroke0 = {
+ new CoordRec( (float) 64.2857, (float) 52.381 ),
+ new CoordRec( (float) 54.7619, (float) 57.1429 ),
+ new CoordRec( (float) 45.2381, (float) 57.1429 ),
+ new CoordRec( (float) 40.4762, (float) 47.619 ),
+ new CoordRec( (float) 40.4762, (float) 42.8571 ),
+ new CoordRec( (float) 45.2381, (float) 33.3333 ),
+ new CoordRec( (float) 54.7619, (float) 33.3333 ),
+ new CoordRec( (float) 64.2857, (float) 38.0952 ),
+};
+
+static final CoordRec[] char64_stroke1 = {
+ new CoordRec( (float) 64.2857, (float) 57.1429 ),
+ new CoordRec( (float) 64.2857, (float) 38.0952 ),
+ new CoordRec( (float) 69.0476, (float) 33.3333 ),
+ new CoordRec( (float) 78.5714, (float) 33.3333 ),
+ new CoordRec( (float) 83.3334, (float) 42.8571 ),
+ new CoordRec( (float) 83.3334, (float) 47.619 ),
+ new CoordRec( (float) 78.5714, (float) 61.9048 ),
+ new CoordRec( (float) 69.0476, (float) 71.4286 ),
+ new CoordRec( (float) 54.7619, (float) 76.1905 ),
+ new CoordRec( (float) 50, (float) 76.1905 ),
+ new CoordRec( (float) 35.7143, (float) 71.4286 ),
+ new CoordRec( (float) 26.1905, (float) 61.9048 ),
+ new CoordRec( (float) 21.4286, (float) 47.619 ),
+ new CoordRec( (float) 21.4286, (float) 42.8571 ),
+ new CoordRec( (float) 26.1905, (float) 28.5714 ),
+ new CoordRec( (float) 35.7143, (float) 19.0476 ),
+ new CoordRec( (float) 50, (float) 14.2857 ),
+ new CoordRec( (float) 54.7619, (float) 14.2857 ),
+ new CoordRec( (float) 69.0476, (float) 19.0476 ),
+};
+
+static final StrokeRec char64[] = {
+ new StrokeRec(8, char64_stroke0),
+ new StrokeRec(19, char64_stroke1),
+};
+
+/* char: 65 'A' */
+
+static final CoordRec[] char65_stroke0 = {
+ new CoordRec( (float) 52.3809, (float) 100 ),
+ new CoordRec( (float) 14.2857, (float) 0 ),
+};
+
+static final CoordRec[] char65_stroke1 = {
+ new CoordRec( (float) 52.3809, (float) 100 ),
+ new CoordRec( (float) 90.4762, (float) 0 ),
+};
+
+static final CoordRec[] char65_stroke2 = {
+ new CoordRec( (float) 28.5714, (float) 33.3333 ),
+ new CoordRec( (float) 76.1905, (float) 33.3333 ),
+};
+
+static final StrokeRec char65[] = {
+ new StrokeRec(2, char65_stroke0),
+ new StrokeRec(2, char65_stroke1),
+ new StrokeRec(2, char65_stroke2),
+};
+
+/* char: 66 'B' */
+
+static final CoordRec[] char66_stroke0 = {
+ new CoordRec( (float) 19.0476, (float) 100 ),
+ new CoordRec( (float) 19.0476, (float) 0 ),
+};
+
+static final CoordRec[] char66_stroke1 = {
+ new CoordRec( (float) 19.0476, (float) 100 ),
+ new CoordRec( (float) 61.9047, (float) 100 ),
+ new CoordRec( (float) 76.1905, (float) 95.2381 ),
+ new CoordRec( (float) 80.9524, (float) 90.4762 ),
+ new CoordRec( (float) 85.7143, (float) 80.9524 ),
+ new CoordRec( (float) 85.7143, (float) 71.4286 ),
+ new CoordRec( (float) 80.9524, (float) 61.9048 ),
+ new CoordRec( (float) 76.1905, (float) 57.1429 ),
+ new CoordRec( (float) 61.9047, (float) 52.381 ),
+};
+
+static final CoordRec[] char66_stroke2 = {
+ new CoordRec( (float) 19.0476, (float) 52.381 ),
+ new CoordRec( (float) 61.9047, (float) 52.381 ),
+ new CoordRec( (float) 76.1905, (float) 47.619 ),
+ new CoordRec( (float) 80.9524, (float) 42.8571 ),
+ new CoordRec( (float) 85.7143, (float) 33.3333 ),
+ new CoordRec( (float) 85.7143, (float) 19.0476 ),
+ new CoordRec( (float) 80.9524, (float) 9.5238 ),
+ new CoordRec( (float) 76.1905, (float) 4.7619 ),
+ new CoordRec( (float) 61.9047, (float) 0 ),
+ new CoordRec( (float) 19.0476, (float) 0 ),
+};
+
+static final StrokeRec char66[] = {
+ new StrokeRec(2, char66_stroke0),
+ new StrokeRec(9, char66_stroke1),
+ new StrokeRec(10, char66_stroke2),
+};
+
+/* char: 67 'C' */
+
+static final CoordRec[] char67_stroke0 = {
+ new CoordRec( (float) 88.0952, (float) 76.1905 ),
+ new CoordRec( (float) 83.3334, (float) 85.7143 ),
+ new CoordRec( (float) 73.8096, (float) 95.2381 ),
+ new CoordRec( (float) 64.2857, (float) 100 ),
+ new CoordRec( (float) 45.2381, (float) 100 ),
+ new CoordRec( (float) 35.7143, (float) 95.2381 ),
+ new CoordRec( (float) 26.1905, (float) 85.7143 ),
+ new CoordRec( (float) 21.4286, (float) 76.1905 ),
+ new CoordRec( (float) 16.6667, (float) 61.9048 ),
+ new CoordRec( (float) 16.6667, (float) 38.0952 ),
+ new CoordRec( (float) 21.4286, (float) 23.8095 ),
+ new CoordRec( (float) 26.1905, (float) 14.2857 ),
+ new CoordRec( (float) 35.7143, (float) 4.7619 ),
+ new CoordRec( (float) 45.2381, (float) 0 ),
+ new CoordRec( (float) 64.2857, (float) 0 ),
+ new CoordRec( (float) 73.8096, (float) 4.7619 ),
+ new CoordRec( (float) 83.3334, (float) 14.2857 ),
+ new CoordRec( (float) 88.0952, (float) 23.8095 ),
+};
+
+static final StrokeRec char67[] = {
+ new StrokeRec(18, char67_stroke0),
+};
+
+/* char: 68 'D' */
+
+static final CoordRec[] char68_stroke0 = {
+ new CoordRec( (float) 19.0476, (float) 100 ),
+ new CoordRec( (float) 19.0476, (float) 0 ),
+};
+
+static final CoordRec[] char68_stroke1 = {
+ new CoordRec( (float) 19.0476, (float) 100 ),
+ new CoordRec( (float) 52.3809, (float) 100 ),
+ new CoordRec( (float) 66.6666, (float) 95.2381 ),
+ new CoordRec( (float) 76.1905, (float) 85.7143 ),
+ new CoordRec( (float) 80.9524, (float) 76.1905 ),
+ new CoordRec( (float) 85.7143, (float) 61.9048 ),
+ new CoordRec( (float) 85.7143, (float) 38.0952 ),
+ new CoordRec( (float) 80.9524, (float) 23.8095 ),
+ new CoordRec( (float) 76.1905, (float) 14.2857 ),
+ new CoordRec( (float) 66.6666, (float) 4.7619 ),
+ new CoordRec( (float) 52.3809, (float) 0 ),
+ new CoordRec( (float) 19.0476, (float) 0 ),
+};
+
+static final StrokeRec char68[] = {
+ new StrokeRec(2, char68_stroke0),
+ new StrokeRec(12, char68_stroke1),
+};
+
+/* char: 69 'E' */
+
+static final CoordRec[] char69_stroke0 = {
+ new CoordRec( (float) 21.4286, (float) 100 ),
+ new CoordRec( (float) 21.4286, (float) 0 ),
+};
+
+static final CoordRec[] char69_stroke1 = {
+ new CoordRec( (float) 21.4286, (float) 100 ),
+ new CoordRec( (float) 83.3334, (float) 100 ),
+};
+
+static final CoordRec[] char69_stroke2 = {
+ new CoordRec( (float) 21.4286, (float) 52.381 ),
+ new CoordRec( (float) 59.5238, (float) 52.381 ),
+};
+
+static final CoordRec[] char69_stroke3 = {
+ new CoordRec( (float) 21.4286, (float) 0 ),
+ new CoordRec( (float) 83.3334, (float) 0 ),
+};
+
+static final StrokeRec char69[] = {
+ new StrokeRec(2, char69_stroke0),
+ new StrokeRec(2, char69_stroke1),
+ new StrokeRec(2, char69_stroke2),
+ new StrokeRec(2, char69_stroke3),
+};
+
+/* char: 70 'F' */
+
+static final CoordRec[] char70_stroke0 = {
+ new CoordRec( (float) 21.4286, (float) 100 ),
+ new CoordRec( (float) 21.4286, (float) 0 ),
+};
+
+static final CoordRec[] char70_stroke1 = {
+ new CoordRec( (float) 21.4286, (float) 100 ),
+ new CoordRec( (float) 83.3334, (float) 100 ),
+};
+
+static final CoordRec[] char70_stroke2 = {
+ new CoordRec( (float) 21.4286, (float) 52.381 ),
+ new CoordRec( (float) 59.5238, (float) 52.381 ),
+};
+
+static final StrokeRec char70[] = {
+ new StrokeRec(2, char70_stroke0),
+ new StrokeRec(2, char70_stroke1),
+ new StrokeRec(2, char70_stroke2),
+};
+
+/* char: 71 'G' */
+
+static final CoordRec[] char71_stroke0 = {
+ new CoordRec( (float) 88.0952, (float) 76.1905 ),
+ new CoordRec( (float) 83.3334, (float) 85.7143 ),
+ new CoordRec( (float) 73.8096, (float) 95.2381 ),
+ new CoordRec( (float) 64.2857, (float) 100 ),
+ new CoordRec( (float) 45.2381, (float) 100 ),
+ new CoordRec( (float) 35.7143, (float) 95.2381 ),
+ new CoordRec( (float) 26.1905, (float) 85.7143 ),
+ new CoordRec( (float) 21.4286, (float) 76.1905 ),
+ new CoordRec( (float) 16.6667, (float) 61.9048 ),
+ new CoordRec( (float) 16.6667, (float) 38.0952 ),
+ new CoordRec( (float) 21.4286, (float) 23.8095 ),
+ new CoordRec( (float) 26.1905, (float) 14.2857 ),
+ new CoordRec( (float) 35.7143, (float) 4.7619 ),
+ new CoordRec( (float) 45.2381, (float) 0 ),
+ new CoordRec( (float) 64.2857, (float) 0 ),
+ new CoordRec( (float) 73.8096, (float) 4.7619 ),
+ new CoordRec( (float) 83.3334, (float) 14.2857 ),
+ new CoordRec( (float) 88.0952, (float) 23.8095 ),
+ new CoordRec( (float) 88.0952, (float) 38.0952 ),
+};
+
+static final CoordRec[] char71_stroke1 = {
+ new CoordRec( (float) 64.2857, (float) 38.0952 ),
+ new CoordRec( (float) 88.0952, (float) 38.0952 ),
+};
+
+static final StrokeRec char71[] = {
+ new StrokeRec(19, char71_stroke0),
+ new StrokeRec(2, char71_stroke1),
+};
+
+/* char: 72 'H' */
+
+static final CoordRec[] char72_stroke0 = {
+ new CoordRec( (float) 19.0476, (float) 100 ),
+ new CoordRec( (float) 19.0476, (float) 0 ),
+};
+
+static final CoordRec[] char72_stroke1 = {
+ new CoordRec( (float) 85.7143, (float) 100 ),
+ new CoordRec( (float) 85.7143, (float) 0 ),
+};
+
+static final CoordRec[] char72_stroke2 = {
+ new CoordRec( (float) 19.0476, (float) 52.381 ),
+ new CoordRec( (float) 85.7143, (float) 52.381 ),
+};
+
+static final StrokeRec char72[] = {
+ new StrokeRec(2, char72_stroke0),
+ new StrokeRec(2, char72_stroke1),
+ new StrokeRec(2, char72_stroke2),
+};
+
+/* char: 73 'I' */
+
+static final CoordRec[] char73_stroke0 = {
+ new CoordRec( (float) 52.381, (float) 100 ),
+ new CoordRec( (float) 52.381, (float) 0 ),
+};
+
+static final StrokeRec char73[] = {
+ new StrokeRec(2, char73_stroke0),
+};
+
+/* char: 74 'J' */
+
+static final CoordRec[] char74_stroke0 = {
+ new CoordRec( (float) 76.1905, (float) 100 ),
+ new CoordRec( (float) 76.1905, (float) 23.8095 ),
+ new CoordRec( (float) 71.4286, (float) 9.5238 ),
+ new CoordRec( (float) 66.6667, (float) 4.7619 ),
+ new CoordRec( (float) 57.1429, (float) 0 ),
+ new CoordRec( (float) 47.6191, (float) 0 ),
+ new CoordRec( (float) 38.0953, (float) 4.7619 ),
+ new CoordRec( (float) 33.3334, (float) 9.5238 ),
+ new CoordRec( (float) 28.5715, (float) 23.8095 ),
+ new CoordRec( (float) 28.5715, (float) 33.3333 ),
+};
+
+static final StrokeRec char74[] = {
+ new StrokeRec(10, char74_stroke0),
+};
+
+/* char: 75 'K' */
+
+static final CoordRec[] char75_stroke0 = {
+ new CoordRec( (float) 19.0476, (float) 100 ),
+ new CoordRec( (float) 19.0476, (float) 0 ),
+};
+
+static final CoordRec[] char75_stroke1 = {
+ new CoordRec( (float) 85.7143, (float) 100 ),
+ new CoordRec( (float) 19.0476, (float) 33.3333 ),
+};
+
+static final CoordRec[] char75_stroke2 = {
+ new CoordRec( (float) 42.8571, (float) 57.1429 ),
+ new CoordRec( (float) 85.7143, (float) 0 ),
+};
+
+static final StrokeRec char75[] = {
+ new StrokeRec(2, char75_stroke0),
+ new StrokeRec(2, char75_stroke1),
+ new StrokeRec(2, char75_stroke2),
+};
+
+/* char: 76 'L' */
+
+static final CoordRec[] char76_stroke0 = {
+ new CoordRec( (float) 23.8095, (float) 100 ),
+ new CoordRec( (float) 23.8095, (float) 0 ),
+};
+
+static final CoordRec[] char76_stroke1 = {
+ new CoordRec( (float) 23.8095, (float) 0 ),
+ new CoordRec( (float) 80.9524, (float) 0 ),
+};
+
+static final StrokeRec char76[] = {
+ new StrokeRec(2, char76_stroke0),
+ new StrokeRec(2, char76_stroke1),
+};
+
+/* char: 77 'M' */
+
+static final CoordRec[] char77_stroke0 = {
+ new CoordRec( (float) 14.2857, (float) 100 ),
+ new CoordRec( (float) 14.2857, (float) 0 ),
+};
+
+static final CoordRec[] char77_stroke1 = {
+ new CoordRec( (float) 14.2857, (float) 100 ),
+ new CoordRec( (float) 52.3809, (float) 0 ),
+};
+
+static final CoordRec[] char77_stroke2 = {
+ new CoordRec( (float) 90.4762, (float) 100 ),
+ new CoordRec( (float) 52.3809, (float) 0 ),
+};
+
+static final CoordRec[] char77_stroke3 = {
+ new CoordRec( (float) 90.4762, (float) 100 ),
+ new CoordRec( (float) 90.4762, (float) 0 ),
+};
+
+static final StrokeRec char77[] = {
+ new StrokeRec(2, char77_stroke0),
+ new StrokeRec(2, char77_stroke1),
+ new StrokeRec(2, char77_stroke2),
+ new StrokeRec(2, char77_stroke3),
+};
+
+/* char: 78 'N' */
+
+static final CoordRec[] char78_stroke0 = {
+ new CoordRec( (float) 19.0476, (float) 100 ),
+ new CoordRec( (float) 19.0476, (float) 0 ),
+};
+
+static final CoordRec[] char78_stroke1 = {
+ new CoordRec( (float) 19.0476, (float) 100 ),
+ new CoordRec( (float) 85.7143, (float) 0 ),
+};
+
+static final CoordRec[] char78_stroke2 = {
+ new CoordRec( (float) 85.7143, (float) 100 ),
+ new CoordRec( (float) 85.7143, (float) 0 ),
+};
+
+static final StrokeRec char78[] = {
+ new StrokeRec(2, char78_stroke0),
+ new StrokeRec(2, char78_stroke1),
+ new StrokeRec(2, char78_stroke2),
+};
+
+/* char: 79 'O' */
+
+static final CoordRec[] char79_stroke0 = {
+ new CoordRec( (float) 42.8571, (float) 100 ),
+ new CoordRec( (float) 33.3333, (float) 95.2381 ),
+ new CoordRec( (float) 23.8095, (float) 85.7143 ),
+ new CoordRec( (float) 19.0476, (float) 76.1905 ),
+ new CoordRec( (float) 14.2857, (float) 61.9048 ),
+ new CoordRec( (float) 14.2857, (float) 38.0952 ),
+ new CoordRec( (float) 19.0476, (float) 23.8095 ),
+ new CoordRec( (float) 23.8095, (float) 14.2857 ),
+ new CoordRec( (float) 33.3333, (float) 4.7619 ),
+ new CoordRec( (float) 42.8571, (float) 0 ),
+ new CoordRec( (float) 61.9047, (float) 0 ),
+ new CoordRec( (float) 71.4286, (float) 4.7619 ),
+ new CoordRec( (float) 80.9524, (float) 14.2857 ),
+ new CoordRec( (float) 85.7143, (float) 23.8095 ),
+ new CoordRec( (float) 90.4762, (float) 38.0952 ),
+ new CoordRec( (float) 90.4762, (float) 61.9048 ),
+ new CoordRec( (float) 85.7143, (float) 76.1905 ),
+ new CoordRec( (float) 80.9524, (float) 85.7143 ),
+ new CoordRec( (float) 71.4286, (float) 95.2381 ),
+ new CoordRec( (float) 61.9047, (float) 100 ),
+ new CoordRec( (float) 42.8571, (float) 100 ),
+};
+
+static final StrokeRec char79[] = {
+ new StrokeRec(21, char79_stroke0),
+};
+
+/* char: 80 'P' */
+
+static final CoordRec[] char80_stroke0 = {
+ new CoordRec( (float) 19.0476, (float) 100 ),
+ new CoordRec( (float) 19.0476, (float) 0 ),
+};
+
+static final CoordRec[] char80_stroke1 = {
+ new CoordRec( (float) 19.0476, (float) 100 ),
+ new CoordRec( (float) 61.9047, (float) 100 ),
+ new CoordRec( (float) 76.1905, (float) 95.2381 ),
+ new CoordRec( (float) 80.9524, (float) 90.4762 ),
+ new CoordRec( (float) 85.7143, (float) 80.9524 ),
+ new CoordRec( (float) 85.7143, (float) 66.6667 ),
+ new CoordRec( (float) 80.9524, (float) 57.1429 ),
+ new CoordRec( (float) 76.1905, (float) 52.381 ),
+ new CoordRec( (float) 61.9047, (float) 47.619 ),
+ new CoordRec( (float) 19.0476, (float) 47.619 ),
+};
+
+static final StrokeRec char80[] = {
+ new StrokeRec(2, char80_stroke0),
+ new StrokeRec(10, char80_stroke1),
+};
+
+/* char: 81 'Q' */
+
+static final CoordRec[] char81_stroke0 = {
+ new CoordRec( (float) 42.8571, (float) 100 ),
+ new CoordRec( (float) 33.3333, (float) 95.2381 ),
+ new CoordRec( (float) 23.8095, (float) 85.7143 ),
+ new CoordRec( (float) 19.0476, (float) 76.1905 ),
+ new CoordRec( (float) 14.2857, (float) 61.9048 ),
+ new CoordRec( (float) 14.2857, (float) 38.0952 ),
+ new CoordRec( (float) 19.0476, (float) 23.8095 ),
+ new CoordRec( (float) 23.8095, (float) 14.2857 ),
+ new CoordRec( (float) 33.3333, (float) 4.7619 ),
+ new CoordRec( (float) 42.8571, (float) 0 ),
+ new CoordRec( (float) 61.9047, (float) 0 ),
+ new CoordRec( (float) 71.4286, (float) 4.7619 ),
+ new CoordRec( (float) 80.9524, (float) 14.2857 ),
+ new CoordRec( (float) 85.7143, (float) 23.8095 ),
+ new CoordRec( (float) 90.4762, (float) 38.0952 ),
+ new CoordRec( (float) 90.4762, (float) 61.9048 ),
+ new CoordRec( (float) 85.7143, (float) 76.1905 ),
+ new CoordRec( (float) 80.9524, (float) 85.7143 ),
+ new CoordRec( (float) 71.4286, (float) 95.2381 ),
+ new CoordRec( (float) 61.9047, (float) 100 ),
+ new CoordRec( (float) 42.8571, (float) 100 ),
+};
+
+static final CoordRec[] char81_stroke1 = {
+ new CoordRec( (float) 57.1428, (float) 19.0476 ),
+ new CoordRec( (float) 85.7143, (float) -9.5238 ),
+};
+
+static final StrokeRec char81[] = {
+ new StrokeRec(21, char81_stroke0),
+ new StrokeRec(2, char81_stroke1),
+};
+
+/* char: 82 'R' */
+
+static final CoordRec[] char82_stroke0 = {
+ new CoordRec( (float) 19.0476, (float) 100 ),
+ new CoordRec( (float) 19.0476, (float) 0 ),
+};
+
+static final CoordRec[] char82_stroke1 = {
+ new CoordRec( (float) 19.0476, (float) 100 ),
+ new CoordRec( (float) 61.9047, (float) 100 ),
+ new CoordRec( (float) 76.1905, (float) 95.2381 ),
+ new CoordRec( (float) 80.9524, (float) 90.4762 ),
+ new CoordRec( (float) 85.7143, (float) 80.9524 ),
+ new CoordRec( (float) 85.7143, (float) 71.4286 ),
+ new CoordRec( (float) 80.9524, (float) 61.9048 ),
+ new CoordRec( (float) 76.1905, (float) 57.1429 ),
+ new CoordRec( (float) 61.9047, (float) 52.381 ),
+ new CoordRec( (float) 19.0476, (float) 52.381 ),
+};
+
+static final CoordRec[] char82_stroke2 = {
+ new CoordRec( (float) 52.3809, (float) 52.381 ),
+ new CoordRec( (float) 85.7143, (float) 0 ),
+};
+
+static final StrokeRec char82[] = {
+ new StrokeRec(2, char82_stroke0),
+ new StrokeRec(10, char82_stroke1),
+ new StrokeRec(2, char82_stroke2),
+};
+
+/* char: 83 'S' */
+
+static final CoordRec[] char83_stroke0 = {
+ new CoordRec( (float) 85.7143, (float) 85.7143 ),
+ new CoordRec( (float) 76.1905, (float) 95.2381 ),
+ new CoordRec( (float) 61.9047, (float) 100 ),
+ new CoordRec( (float) 42.8571, (float) 100 ),
+ new CoordRec( (float) 28.5714, (float) 95.2381 ),
+ new CoordRec( (float) 19.0476, (float) 85.7143 ),
+ new CoordRec( (float) 19.0476, (float) 76.1905 ),
+ new CoordRec( (float) 23.8095, (float) 66.6667 ),
+ new CoordRec( (float) 28.5714, (float) 61.9048 ),
+ new CoordRec( (float) 38.0952, (float) 57.1429 ),
+ new CoordRec( (float) 66.6666, (float) 47.619 ),
+ new CoordRec( (float) 76.1905, (float) 42.8571 ),
+ new CoordRec( (float) 80.9524, (float) 38.0952 ),
+ new CoordRec( (float) 85.7143, (float) 28.5714 ),
+ new CoordRec( (float) 85.7143, (float) 14.2857 ),
+ new CoordRec( (float) 76.1905, (float) 4.7619 ),
+ new CoordRec( (float) 61.9047, (float) 0 ),
+ new CoordRec( (float) 42.8571, (float) 0 ),
+ new CoordRec( (float) 28.5714, (float) 4.7619 ),
+ new CoordRec( (float) 19.0476, (float) 14.2857 ),
+};
+
+static final StrokeRec char83[] = {
+ new StrokeRec(20, char83_stroke0),
+};
+
+/* char: 84 'T' */
+
+static final CoordRec[] char84_stroke0 = {
+ new CoordRec( (float) 52.3809, (float) 100 ),
+ new CoordRec( (float) 52.3809, (float) 0 ),
+};
+
+static final CoordRec[] char84_stroke1 = {
+ new CoordRec( (float) 19.0476, (float) 100 ),
+ new CoordRec( (float) 85.7143, (float) 100 ),
+};
+
+static final StrokeRec char84[] = {
+ new StrokeRec(2, char84_stroke0),
+ new StrokeRec(2, char84_stroke1),
+};
+
+/* char: 85 'U' */
+
+static final CoordRec[] char85_stroke0 = {
+ new CoordRec( (float) 19.0476, (float) 100 ),
+ new CoordRec( (float) 19.0476, (float) 28.5714 ),
+ new CoordRec( (float) 23.8095, (float) 14.2857 ),
+ new CoordRec( (float) 33.3333, (float) 4.7619 ),
+ new CoordRec( (float) 47.619, (float) 0 ),
+ new CoordRec( (float) 57.1428, (float) 0 ),
+ new CoordRec( (float) 71.4286, (float) 4.7619 ),
+ new CoordRec( (float) 80.9524, (float) 14.2857 ),
+ new CoordRec( (float) 85.7143, (float) 28.5714 ),
+ new CoordRec( (float) 85.7143, (float) 100 ),
+};
+
+static final StrokeRec char85[] = {
+ new StrokeRec(10, char85_stroke0),
+};
+
+/* char: 86 'V' */
+
+static final CoordRec[] char86_stroke0 = {
+ new CoordRec( (float) 14.2857, (float) 100 ),
+ new CoordRec( (float) 52.3809, (float) 0 ),
+};
+
+static final CoordRec[] char86_stroke1 = {
+ new CoordRec( (float) 90.4762, (float) 100 ),
+ new CoordRec( (float) 52.3809, (float) 0 ),
+};
+
+static final StrokeRec char86[] = {
+ new StrokeRec(2, char86_stroke0),
+ new StrokeRec(2, char86_stroke1),
+};
+
+/* char: 87 'W' */
+
+static final CoordRec[] char87_stroke0 = {
+ new CoordRec( (float) 4.7619, (float) 100 ),
+ new CoordRec( (float) 28.5714, (float) 0 ),
+};
+
+static final CoordRec[] char87_stroke1 = {
+ new CoordRec( (float) 52.3809, (float) 100 ),
+ new CoordRec( (float) 28.5714, (float) 0 ),
+};
+
+static final CoordRec[] char87_stroke2 = {
+ new CoordRec( (float) 52.3809, (float) 100 ),
+ new CoordRec( (float) 76.1905, (float) 0 ),
+};
+
+static final CoordRec[] char87_stroke3 = {
+ new CoordRec( (float) 100, (float) 100 ),
+ new CoordRec( (float) 76.1905, (float) 0 ),
+};
+
+static final StrokeRec char87[] = {
+ new StrokeRec(2, char87_stroke0),
+ new StrokeRec(2, char87_stroke1),
+ new StrokeRec(2, char87_stroke2),
+ new StrokeRec(2, char87_stroke3),
+};
+
+/* char: 88 'X' */
+
+static final CoordRec[] char88_stroke0 = {
+ new CoordRec( (float) 19.0476, (float) 100 ),
+ new CoordRec( (float) 85.7143, (float) 0 ),
+};
+
+static final CoordRec[] char88_stroke1 = {
+ new CoordRec( (float) 85.7143, (float) 100 ),
+ new CoordRec( (float) 19.0476, (float) 0 ),
+};
+
+static final StrokeRec char88[] = {
+ new StrokeRec(2, char88_stroke0),
+ new StrokeRec(2, char88_stroke1),
+};
+
+/* char: 89 'Y' */
+
+static final CoordRec[] char89_stroke0 = {
+ new CoordRec( (float) 14.2857, (float) 100 ),
+ new CoordRec( (float) 52.3809, (float) 52.381 ),
+ new CoordRec( (float) 52.3809, (float) 0 ),
+};
+
+static final CoordRec[] char89_stroke1 = {
+ new CoordRec( (float) 90.4762, (float) 100 ),
+ new CoordRec( (float) 52.3809, (float) 52.381 ),
+};
+
+static final StrokeRec char89[] = {
+ new StrokeRec(3, char89_stroke0),
+ new StrokeRec(2, char89_stroke1),
+};
+
+/* char: 90 'Z' */
+
+static final CoordRec[] char90_stroke0 = {
+ new CoordRec( (float) 85.7143, (float) 100 ),
+ new CoordRec( (float) 19.0476, (float) 0 ),
+};
+
+static final CoordRec[] char90_stroke1 = {
+ new CoordRec( (float) 19.0476, (float) 100 ),
+ new CoordRec( (float) 85.7143, (float) 100 ),
+};
+
+static final CoordRec[] char90_stroke2 = {
+ new CoordRec( (float) 19.0476, (float) 0 ),
+ new CoordRec( (float) 85.7143, (float) 0 ),
+};
+
+static final StrokeRec char90[] = {
+ new StrokeRec(2, char90_stroke0),
+ new StrokeRec(2, char90_stroke1),
+ new StrokeRec(2, char90_stroke2),
+};
+
+/* char: 91 '[' */
+
+static final CoordRec[] char91_stroke0 = {
+ new CoordRec( (float) 35.7143, (float) 119.048 ),
+ new CoordRec( (float) 35.7143, (float) -33.3333 ),
+};
+
+static final CoordRec[] char91_stroke1 = {
+ new CoordRec( (float) 40.4762, (float) 119.048 ),
+ new CoordRec( (float) 40.4762, (float) -33.3333 ),
+};
+
+static final CoordRec[] char91_stroke2 = {
+ new CoordRec( (float) 35.7143, (float) 119.048 ),
+ new CoordRec( (float) 69.0476, (float) 119.048 ),
+};
+
+static final CoordRec[] char91_stroke3 = {
+ new CoordRec( (float) 35.7143, (float) -33.3333 ),
+ new CoordRec( (float) 69.0476, (float) -33.3333 ),
+};
+
+static final StrokeRec char91[] = {
+ new StrokeRec(2, char91_stroke0),
+ new StrokeRec(2, char91_stroke1),
+ new StrokeRec(2, char91_stroke2),
+ new StrokeRec(2, char91_stroke3),
+};
+
+/* char: 92 '\' */
+
+static final CoordRec[] char92_stroke0 = {
+ new CoordRec( (float) 19.0476, (float) 100 ),
+ new CoordRec( (float) 85.7143, (float) -14.2857 ),
+};
+
+static final StrokeRec char92[] = {
+ new StrokeRec(2, char92_stroke0),
+};
+
+/* char: 93 ']' */
+
+static final CoordRec[] char93_stroke0 = {
+ new CoordRec( (float) 64.2857, (float) 119.048 ),
+ new CoordRec( (float) 64.2857, (float) -33.3333 ),
+};
+
+static final CoordRec[] char93_stroke1 = {
+ new CoordRec( (float) 69.0476, (float) 119.048 ),
+ new CoordRec( (float) 69.0476, (float) -33.3333 ),
+};
+
+static final CoordRec[] char93_stroke2 = {
+ new CoordRec( (float) 35.7143, (float) 119.048 ),
+ new CoordRec( (float) 69.0476, (float) 119.048 ),
+};
+
+static final CoordRec[] char93_stroke3 = {
+ new CoordRec( (float) 35.7143, (float) -33.3333 ),
+ new CoordRec( (float) 69.0476, (float) -33.3333 ),
+};
+
+static final StrokeRec char93[] = {
+ new StrokeRec(2, char93_stroke0),
+ new StrokeRec(2, char93_stroke1),
+ new StrokeRec(2, char93_stroke2),
+ new StrokeRec(2, char93_stroke3),
+};
+
+/* char: 94 '^' */
+
+static final CoordRec[] char94_stroke0 = {
+ new CoordRec( (float) 52.3809, (float) 109.524 ),
+ new CoordRec( (float) 14.2857, (float) 42.8571 ),
+};
+
+static final CoordRec[] char94_stroke1 = {
+ new CoordRec( (float) 52.3809, (float) 109.524 ),
+ new CoordRec( (float) 90.4762, (float) 42.8571 ),
+};
+
+static final StrokeRec char94[] = {
+ new StrokeRec(2, char94_stroke0),
+ new StrokeRec(2, char94_stroke1),
+};
+
+/* char: 95 '_' */
+
+static final CoordRec[] char95_stroke0 = {
+ new CoordRec( (float) 0, (float) -33.3333 ),
+ new CoordRec( (float) 104.762, (float) -33.3333 ),
+ new CoordRec( (float) 104.762, (float) -28.5714 ),
+ new CoordRec( (float) 0, (float) -28.5714 ),
+ new CoordRec( (float) 0, (float) -33.3333 ),
+};
+
+static final StrokeRec char95[] = {
+ new StrokeRec(5, char95_stroke0),
+};
+
+/* char: 96 '`' */
+
+static final CoordRec[] char96_stroke0 = {
+ new CoordRec( (float) 42.8572, (float) 100 ),
+ new CoordRec( (float) 66.6667, (float) 71.4286 ),
+};
+
+static final CoordRec[] char96_stroke1 = {
+ new CoordRec( (float) 42.8572, (float) 100 ),
+ new CoordRec( (float) 38.0953, (float) 95.2381 ),
+ new CoordRec( (float) 66.6667, (float) 71.4286 ),
+};
+
+static final StrokeRec char96[] = {
+ new StrokeRec(2, char96_stroke0),
+ new StrokeRec(3, char96_stroke1),
+};
+
+/* char: 97 'a' */
+
+static final CoordRec[] char97_stroke0 = {
+ new CoordRec( (float) 80.9524, (float) 66.6667 ),
+ new CoordRec( (float) 80.9524, (float) 0 ),
+};
+
+static final CoordRec[] char97_stroke1 = {
+ new CoordRec( (float) 80.9524, (float) 52.381 ),
+ new CoordRec( (float) 71.4285, (float) 61.9048 ),
+ new CoordRec( (float) 61.9047, (float) 66.6667 ),
+ new CoordRec( (float) 47.619, (float) 66.6667 ),
+ new CoordRec( (float) 38.0952, (float) 61.9048 ),
+ new CoordRec( (float) 28.5714, (float) 52.381 ),
+ new CoordRec( (float) 23.8095, (float) 38.0952 ),
+ new CoordRec( (float) 23.8095, (float) 28.5714 ),
+ new CoordRec( (float) 28.5714, (float) 14.2857 ),
+ new CoordRec( (float) 38.0952, (float) 4.7619 ),
+ new CoordRec( (float) 47.619, (float) 0 ),
+ new CoordRec( (float) 61.9047, (float) 0 ),
+ new CoordRec( (float) 71.4285, (float) 4.7619 ),
+ new CoordRec( (float) 80.9524, (float) 14.2857 ),
+};
+
+static final StrokeRec char97[] = {
+ new StrokeRec(2, char97_stroke0),
+ new StrokeRec(14, char97_stroke1),
+};
+
+/* char: 98 'b' */
+
+static final CoordRec[] char98_stroke0 = {
+ new CoordRec( (float) 23.8095, (float) 100 ),
+ new CoordRec( (float) 23.8095, (float) 0 ),
+};
+
+static final CoordRec[] char98_stroke1 = {
+ new CoordRec( (float) 23.8095, (float) 52.381 ),
+ new CoordRec( (float) 33.3333, (float) 61.9048 ),
+ new CoordRec( (float) 42.8571, (float) 66.6667 ),
+ new CoordRec( (float) 57.1428, (float) 66.6667 ),
+ new CoordRec( (float) 66.6666, (float) 61.9048 ),
+ new CoordRec( (float) 76.1905, (float) 52.381 ),
+ new CoordRec( (float) 80.9524, (float) 38.0952 ),
+ new CoordRec( (float) 80.9524, (float) 28.5714 ),
+ new CoordRec( (float) 76.1905, (float) 14.2857 ),
+ new CoordRec( (float) 66.6666, (float) 4.7619 ),
+ new CoordRec( (float) 57.1428, (float) 0 ),
+ new CoordRec( (float) 42.8571, (float) 0 ),
+ new CoordRec( (float) 33.3333, (float) 4.7619 ),
+ new CoordRec( (float) 23.8095, (float) 14.2857 ),
+};
+
+static final StrokeRec char98[] = {
+ new StrokeRec(2, char98_stroke0),
+ new StrokeRec(14, char98_stroke1),
+};
+
+/* char: 99 'c' */
+
+static final CoordRec[] char99_stroke0 = {
+ new CoordRec( (float) 80.9524, (float) 52.381 ),
+ new CoordRec( (float) 71.4285, (float) 61.9048 ),
+ new CoordRec( (float) 61.9047, (float) 66.6667 ),
+ new CoordRec( (float) 47.619, (float) 66.6667 ),
+ new CoordRec( (float) 38.0952, (float) 61.9048 ),
+ new CoordRec( (float) 28.5714, (float) 52.381 ),
+ new CoordRec( (float) 23.8095, (float) 38.0952 ),
+ new CoordRec( (float) 23.8095, (float) 28.5714 ),
+ new CoordRec( (float) 28.5714, (float) 14.2857 ),
+ new CoordRec( (float) 38.0952, (float) 4.7619 ),
+ new CoordRec( (float) 47.619, (float) 0 ),
+ new CoordRec( (float) 61.9047, (float) 0 ),
+ new CoordRec( (float) 71.4285, (float) 4.7619 ),
+ new CoordRec( (float) 80.9524, (float) 14.2857 ),
+};
+
+static final StrokeRec char99[] = {
+ new StrokeRec(14, char99_stroke0),
+};
+
+/* char: 100 'd' */
+
+static final CoordRec[] char100_stroke0 = {
+ new CoordRec( (float) 80.9524, (float) 100 ),
+ new CoordRec( (float) 80.9524, (float) 0 ),
+};
+
+static final CoordRec[] char100_stroke1 = {
+ new CoordRec( (float) 80.9524, (float) 52.381 ),
+ new CoordRec( (float) 71.4285, (float) 61.9048 ),
+ new CoordRec( (float) 61.9047, (float) 66.6667 ),
+ new CoordRec( (float) 47.619, (float) 66.6667 ),
+ new CoordRec( (float) 38.0952, (float) 61.9048 ),
+ new CoordRec( (float) 28.5714, (float) 52.381 ),
+ new CoordRec( (float) 23.8095, (float) 38.0952 ),
+ new CoordRec( (float) 23.8095, (float) 28.5714 ),
+ new CoordRec( (float) 28.5714, (float) 14.2857 ),
+ new CoordRec( (float) 38.0952, (float) 4.7619 ),
+ new CoordRec( (float) 47.619, (float) 0 ),
+ new CoordRec( (float) 61.9047, (float) 0 ),
+ new CoordRec( (float) 71.4285, (float) 4.7619 ),
+ new CoordRec( (float) 80.9524, (float) 14.2857 ),
+};
+
+static final StrokeRec char100[] = {
+ new StrokeRec(2, char100_stroke0),
+ new StrokeRec(14, char100_stroke1),
+};
+
+/* char: 101 'e' */
+
+static final CoordRec[] char101_stroke0 = {
+ new CoordRec( (float) 23.8095, (float) 38.0952 ),
+ new CoordRec( (float) 80.9524, (float) 38.0952 ),
+ new CoordRec( (float) 80.9524, (float) 47.619 ),
+ new CoordRec( (float) 76.1905, (float) 57.1429 ),
+ new CoordRec( (float) 71.4285, (float) 61.9048 ),
+ new CoordRec( (float) 61.9047, (float) 66.6667 ),
+ new CoordRec( (float) 47.619, (float) 66.6667 ),
+ new CoordRec( (float) 38.0952, (float) 61.9048 ),
+ new CoordRec( (float) 28.5714, (float) 52.381 ),
+ new CoordRec( (float) 23.8095, (float) 38.0952 ),
+ new CoordRec( (float) 23.8095, (float) 28.5714 ),
+ new CoordRec( (float) 28.5714, (float) 14.2857 ),
+ new CoordRec( (float) 38.0952, (float) 4.7619 ),
+ new CoordRec( (float) 47.619, (float) 0 ),
+ new CoordRec( (float) 61.9047, (float) 0 ),
+ new CoordRec( (float) 71.4285, (float) 4.7619 ),
+ new CoordRec( (float) 80.9524, (float) 14.2857 ),
+};
+
+static final StrokeRec char101[] = {
+ new StrokeRec(17, char101_stroke0),
+};
+
+/* char: 102 'f' */
+
+static final CoordRec[] char102_stroke0 = {
+ new CoordRec( (float) 71.4286, (float) 100 ),
+ new CoordRec( (float) 61.9048, (float) 100 ),
+ new CoordRec( (float) 52.381, (float) 95.2381 ),
+ new CoordRec( (float) 47.6191, (float) 80.9524 ),
+ new CoordRec( (float) 47.6191, (float) 0 ),
+};
+
+static final CoordRec[] char102_stroke1 = {
+ new CoordRec( (float) 33.3334, (float) 66.6667 ),
+ new CoordRec( (float) 66.6667, (float) 66.6667 ),
+};
+
+static final StrokeRec char102[] = {
+ new StrokeRec(5, char102_stroke0),
+ new StrokeRec(2, char102_stroke1),
+};
+
+/* char: 103 'g' */
+
+static final CoordRec[] char103_stroke0 = {
+ new CoordRec( (float) 80.9524, (float) 66.6667 ),
+ new CoordRec( (float) 80.9524, (float) -9.5238 ),
+ new CoordRec( (float) 76.1905, (float) -23.8095 ),
+ new CoordRec( (float) 71.4285, (float) -28.5714 ),
+ new CoordRec( (float) 61.9047, (float) -33.3333 ),
+ new CoordRec( (float) 47.619, (float) -33.3333 ),
+ new CoordRec( (float) 38.0952, (float) -28.5714 ),
+};
+
+static final CoordRec[] char103_stroke1 = {
+ new CoordRec( (float) 80.9524, (float) 52.381 ),
+ new CoordRec( (float) 71.4285, (float) 61.9048 ),
+ new CoordRec( (float) 61.9047, (float) 66.6667 ),
+ new CoordRec( (float) 47.619, (float) 66.6667 ),
+ new CoordRec( (float) 38.0952, (float) 61.9048 ),
+ new CoordRec( (float) 28.5714, (float) 52.381 ),
+ new CoordRec( (float) 23.8095, (float) 38.0952 ),
+ new CoordRec( (float) 23.8095, (float) 28.5714 ),
+ new CoordRec( (float) 28.5714, (float) 14.2857 ),
+ new CoordRec( (float) 38.0952, (float) 4.7619 ),
+ new CoordRec( (float) 47.619, (float) 0 ),
+ new CoordRec( (float) 61.9047, (float) 0 ),
+ new CoordRec( (float) 71.4285, (float) 4.7619 ),
+ new CoordRec( (float) 80.9524, (float) 14.2857 ),
+};
+
+static final StrokeRec char103[] = {
+ new StrokeRec(7, char103_stroke0),
+ new StrokeRec(14, char103_stroke1),
+};
+
+/* char: 104 'h' */
+
+static final CoordRec[] char104_stroke0 = {
+ new CoordRec( (float) 26.1905, (float) 100 ),
+ new CoordRec( (float) 26.1905, (float) 0 ),
+};
+
+static final CoordRec[] char104_stroke1 = {
+ new CoordRec( (float) 26.1905, (float) 47.619 ),
+ new CoordRec( (float) 40.4762, (float) 61.9048 ),
+ new CoordRec( (float) 50, (float) 66.6667 ),
+ new CoordRec( (float) 64.2857, (float) 66.6667 ),
+ new CoordRec( (float) 73.8095, (float) 61.9048 ),
+ new CoordRec( (float) 78.5715, (float) 47.619 ),
+ new CoordRec( (float) 78.5715, (float) 0 ),
+};
+
+static final StrokeRec char104[] = {
+ new StrokeRec(2, char104_stroke0),
+ new StrokeRec(7, char104_stroke1),
+};
+
+/* char: 105 'i' */
+
+static final CoordRec[] char105_stroke0 = {
+ new CoordRec( (float) 47.6191, (float) 100 ),
+ new CoordRec( (float) 52.381, (float) 95.2381 ),
+ new CoordRec( (float) 57.1429, (float) 100 ),
+ new CoordRec( (float) 52.381, (float) 104.762 ),
+ new CoordRec( (float) 47.6191, (float) 100 ),
+};
+
+static final CoordRec[] char105_stroke1 = {
+ new CoordRec( (float) 52.381, (float) 66.6667 ),
+ new CoordRec( (float) 52.381, (float) 0 ),
+};
+
+static final StrokeRec char105[] = {
+ new StrokeRec(5, char105_stroke0),
+ new StrokeRec(2, char105_stroke1),
+};
+
+/* char: 106 'j' */
+
+static final CoordRec[] char106_stroke0 = {
+ new CoordRec( (float) 57.1429, (float) 100 ),
+ new CoordRec( (float) 61.9048, (float) 95.2381 ),
+ new CoordRec( (float) 66.6667, (float) 100 ),
+ new CoordRec( (float) 61.9048, (float) 104.762 ),
+ new CoordRec( (float) 57.1429, (float) 100 ),
+};
+
+static final CoordRec[] char106_stroke1 = {
+ new CoordRec( (float) 61.9048, (float) 66.6667 ),
+ new CoordRec( (float) 61.9048, (float) -14.2857 ),
+ new CoordRec( (float) 57.1429, (float) -28.5714 ),
+ new CoordRec( (float) 47.6191, (float) -33.3333 ),
+ new CoordRec( (float) 38.0953, (float) -33.3333 ),
+};
+
+static final StrokeRec char106[] = {
+ new StrokeRec(5, char106_stroke0),
+ new StrokeRec(5, char106_stroke1),
+};
+
+/* char: 107 'k' */
+
+static final CoordRec[] char107_stroke0 = {
+ new CoordRec( (float) 26.1905, (float) 100 ),
+ new CoordRec( (float) 26.1905, (float) 0 ),
+};
+
+static final CoordRec[] char107_stroke1 = {
+ new CoordRec( (float) 73.8095, (float) 66.6667 ),
+ new CoordRec( (float) 26.1905, (float) 19.0476 ),
+};
+
+static final CoordRec[] char107_stroke2 = {
+ new CoordRec( (float) 45.2381, (float) 38.0952 ),
+ new CoordRec( (float) 78.5715, (float) 0 ),
+};
+
+static final StrokeRec char107[] = {
+ new StrokeRec(2, char107_stroke0),
+ new StrokeRec(2, char107_stroke1),
+ new StrokeRec(2, char107_stroke2),
+};
+
+/* char: 108 'l' */
+
+static final CoordRec[] char108_stroke0 = {
+ new CoordRec( (float) 52.381, (float) 100 ),
+ new CoordRec( (float) 52.381, (float) 0 ),
+};
+
+static final StrokeRec char108[] = {
+ new StrokeRec(2, char108_stroke0),
+};
+
+/* char: 109 'm' */
+
+static final CoordRec[] char109_stroke0 = {
+ new CoordRec( (float) 0, (float) 66.6667 ),
+ new CoordRec( (float) 0, (float) 0 ),
+};
+
+static final CoordRec[] char109_stroke1 = {
+ new CoordRec( (float) 0, (float) 47.619 ),
+ new CoordRec( (float) 14.2857, (float) 61.9048 ),
+ new CoordRec( (float) 23.8095, (float) 66.6667 ),
+ new CoordRec( (float) 38.0952, (float) 66.6667 ),
+ new CoordRec( (float) 47.619, (float) 61.9048 ),
+ new CoordRec( (float) 52.381, (float) 47.619 ),
+ new CoordRec( (float) 52.381, (float) 0 ),
+};
+
+static final CoordRec[] char109_stroke2 = {
+ new CoordRec( (float) 52.381, (float) 47.619 ),
+ new CoordRec( (float) 66.6667, (float) 61.9048 ),
+ new CoordRec( (float) 76.1905, (float) 66.6667 ),
+ new CoordRec( (float) 90.4762, (float) 66.6667 ),
+ new CoordRec( (float) 100, (float) 61.9048 ),
+ new CoordRec( (float) 104.762, (float) 47.619 ),
+ new CoordRec( (float) 104.762, (float) 0 ),
+};
+
+static final StrokeRec char109[] = {
+ new StrokeRec(2, char109_stroke0),
+ new StrokeRec(7, char109_stroke1),
+ new StrokeRec(7, char109_stroke2),
+};
+
+/* char: 110 'n' */
+
+static final CoordRec[] char110_stroke0 = {
+ new CoordRec( (float) 26.1905, (float) 66.6667 ),
+ new CoordRec( (float) 26.1905, (float) 0 ),
+};
+
+static final CoordRec[] char110_stroke1 = {
+ new CoordRec( (float) 26.1905, (float) 47.619 ),
+ new CoordRec( (float) 40.4762, (float) 61.9048 ),
+ new CoordRec( (float) 50, (float) 66.6667 ),
+ new CoordRec( (float) 64.2857, (float) 66.6667 ),
+ new CoordRec( (float) 73.8095, (float) 61.9048 ),
+ new CoordRec( (float) 78.5715, (float) 47.619 ),
+ new CoordRec( (float) 78.5715, (float) 0 ),
+};
+
+static final StrokeRec char110[] = {
+ new StrokeRec(2, char110_stroke0),
+ new StrokeRec(7, char110_stroke1),
+};
+
+/* char: 111 'o' */
+
+static final CoordRec[] char111_stroke0 = {
+ new CoordRec( (float) 45.2381, (float) 66.6667 ),
+ new CoordRec( (float) 35.7143, (float) 61.9048 ),
+ new CoordRec( (float) 26.1905, (float) 52.381 ),
+ new CoordRec( (float) 21.4286, (float) 38.0952 ),
+ new CoordRec( (float) 21.4286, (float) 28.5714 ),
+ new CoordRec( (float) 26.1905, (float) 14.2857 ),
+ new CoordRec( (float) 35.7143, (float) 4.7619 ),
+ new CoordRec( (float) 45.2381, (float) 0 ),
+ new CoordRec( (float) 59.5238, (float) 0 ),
+ new CoordRec( (float) 69.0476, (float) 4.7619 ),
+ new CoordRec( (float) 78.5714, (float) 14.2857 ),
+ new CoordRec( (float) 83.3334, (float) 28.5714 ),
+ new CoordRec( (float) 83.3334, (float) 38.0952 ),
+ new CoordRec( (float) 78.5714, (float) 52.381 ),
+ new CoordRec( (float) 69.0476, (float) 61.9048 ),
+ new CoordRec( (float) 59.5238, (float) 66.6667 ),
+ new CoordRec( (float) 45.2381, (float) 66.6667 ),
+};
+
+static final StrokeRec char111[] = {
+ new StrokeRec(17, char111_stroke0),
+};
+
+/* char: 112 'p' */
+
+static final CoordRec[] char112_stroke0 = {
+ new CoordRec( (float) 23.8095, (float) 66.6667 ),
+ new CoordRec( (float) 23.8095, (float) -33.3333 ),
+};
+
+static final CoordRec[] char112_stroke1 = {
+ new CoordRec( (float) 23.8095, (float) 52.381 ),
+ new CoordRec( (float) 33.3333, (float) 61.9048 ),
+ new CoordRec( (float) 42.8571, (float) 66.6667 ),
+ new CoordRec( (float) 57.1428, (float) 66.6667 ),
+ new CoordRec( (float) 66.6666, (float) 61.9048 ),
+ new CoordRec( (float) 76.1905, (float) 52.381 ),
+ new CoordRec( (float) 80.9524, (float) 38.0952 ),
+ new CoordRec( (float) 80.9524, (float) 28.5714 ),
+ new CoordRec( (float) 76.1905, (float) 14.2857 ),
+ new CoordRec( (float) 66.6666, (float) 4.7619 ),
+ new CoordRec( (float) 57.1428, (float) 0 ),
+ new CoordRec( (float) 42.8571, (float) 0 ),
+ new CoordRec( (float) 33.3333, (float) 4.7619 ),
+ new CoordRec( (float) 23.8095, (float) 14.2857 ),
+};
+
+static final StrokeRec char112[] = {
+ new StrokeRec(2, char112_stroke0),
+ new StrokeRec(14, char112_stroke1),
+};
+
+/* char: 113 'q' */
+
+static final CoordRec[] char113_stroke0 = {
+ new CoordRec( (float) 80.9524, (float) 66.6667 ),
+ new CoordRec( (float) 80.9524, (float) -33.3333 ),
+};
+
+static final CoordRec[] char113_stroke1 = {
+ new CoordRec( (float) 80.9524, (float) 52.381 ),
+ new CoordRec( (float) 71.4285, (float) 61.9048 ),
+ new CoordRec( (float) 61.9047, (float) 66.6667 ),
+ new CoordRec( (float) 47.619, (float) 66.6667 ),
+ new CoordRec( (float) 38.0952, (float) 61.9048 ),
+ new CoordRec( (float) 28.5714, (float) 52.381 ),
+ new CoordRec( (float) 23.8095, (float) 38.0952 ),
+ new CoordRec( (float) 23.8095, (float) 28.5714 ),
+ new CoordRec( (float) 28.5714, (float) 14.2857 ),
+ new CoordRec( (float) 38.0952, (float) 4.7619 ),
+ new CoordRec( (float) 47.619, (float) 0 ),
+ new CoordRec( (float) 61.9047, (float) 0 ),
+ new CoordRec( (float) 71.4285, (float) 4.7619 ),
+ new CoordRec( (float) 80.9524, (float) 14.2857 ),
+};
+
+static final StrokeRec char113[] = {
+ new StrokeRec(2, char113_stroke0),
+ new StrokeRec(14, char113_stroke1),
+};
+
+/* char: 114 'r' */
+
+static final CoordRec[] char114_stroke0 = {
+ new CoordRec( (float) 33.3334, (float) 66.6667 ),
+ new CoordRec( (float) 33.3334, (float) 0 ),
+};
+
+static final CoordRec[] char114_stroke1 = {
+ new CoordRec( (float) 33.3334, (float) 38.0952 ),
+ new CoordRec( (float) 38.0953, (float) 52.381 ),
+ new CoordRec( (float) 47.6191, (float) 61.9048 ),
+ new CoordRec( (float) 57.1429, (float) 66.6667 ),
+ new CoordRec( (float) 71.4286, (float) 66.6667 ),
+};
+
+static final StrokeRec char114[] = {
+ new StrokeRec(2, char114_stroke0),
+ new StrokeRec(5, char114_stroke1),
+};
+
+/* char: 115 's' */
+
+static final CoordRec[] char115_stroke0 = {
+ new CoordRec( (float) 78.5715, (float) 52.381 ),
+ new CoordRec( (float) 73.8095, (float) 61.9048 ),
+ new CoordRec( (float) 59.5238, (float) 66.6667 ),
+ new CoordRec( (float) 45.2381, (float) 66.6667 ),
+ new CoordRec( (float) 30.9524, (float) 61.9048 ),
+ new CoordRec( (float) 26.1905, (float) 52.381 ),
+ new CoordRec( (float) 30.9524, (float) 42.8571 ),
+ new CoordRec( (float) 40.4762, (float) 38.0952 ),
+ new CoordRec( (float) 64.2857, (float) 33.3333 ),
+ new CoordRec( (float) 73.8095, (float) 28.5714 ),
+ new CoordRec( (float) 78.5715, (float) 19.0476 ),
+ new CoordRec( (float) 78.5715, (float) 14.2857 ),
+ new CoordRec( (float) 73.8095, (float) 4.7619 ),
+ new CoordRec( (float) 59.5238, (float) 0 ),
+ new CoordRec( (float) 45.2381, (float) 0 ),
+ new CoordRec( (float) 30.9524, (float) 4.7619 ),
+ new CoordRec( (float) 26.1905, (float) 14.2857 ),
+};
+
+static final StrokeRec char115[] = {
+ new StrokeRec(17, char115_stroke0),
+};
+
+/* char: 116 't' */
+
+static final CoordRec[] char116_stroke0 = {
+ new CoordRec( (float) 47.6191, (float) 100 ),
+ new CoordRec( (float) 47.6191, (float) 19.0476 ),
+ new CoordRec( (float) 52.381, (float) 4.7619 ),
+ new CoordRec( (float) 61.9048, (float) 0 ),
+ new CoordRec( (float) 71.4286, (float) 0 ),
+};
+
+static final CoordRec[] char116_stroke1 = {
+ new CoordRec( (float) 33.3334, (float) 66.6667 ),
+ new CoordRec( (float) 66.6667, (float) 66.6667 ),
+};
+
+static final StrokeRec char116[] = {
+ new StrokeRec(5, char116_stroke0),
+ new StrokeRec(2, char116_stroke1),
+};
+
+/* char: 117 'u' */
+
+static final CoordRec[] char117_stroke0 = {
+ new CoordRec( (float) 26.1905, (float) 66.6667 ),
+ new CoordRec( (float) 26.1905, (float) 19.0476 ),
+ new CoordRec( (float) 30.9524, (float) 4.7619 ),
+ new CoordRec( (float) 40.4762, (float) 0 ),
+ new CoordRec( (float) 54.7619, (float) 0 ),
+ new CoordRec( (float) 64.2857, (float) 4.7619 ),
+ new CoordRec( (float) 78.5715, (float) 19.0476 ),
+};
+
+static final CoordRec[] char117_stroke1 = {
+ new CoordRec( (float) 78.5715, (float) 66.6667 ),
+ new CoordRec( (float) 78.5715, (float) 0 ),
+};
+
+static final StrokeRec char117[] = {
+ new StrokeRec(7, char117_stroke0),
+ new StrokeRec(2, char117_stroke1),
+};
+
+/* char: 118 'v' */
+
+static final CoordRec[] char118_stroke0 = {
+ new CoordRec( (float) 23.8095, (float) 66.6667 ),
+ new CoordRec( (float) 52.3809, (float) 0 ),
+};
+
+static final CoordRec[] char118_stroke1 = {
+ new CoordRec( (float) 80.9524, (float) 66.6667 ),
+ new CoordRec( (float) 52.3809, (float) 0 ),
+};
+
+static final StrokeRec char118[] = {
+ new StrokeRec(2, char118_stroke0),
+ new StrokeRec(2, char118_stroke1),
+};
+
+/* char: 119 'w' */
+
+static final CoordRec[] char119_stroke0 = {
+ new CoordRec( (float) 14.2857, (float) 66.6667 ),
+ new CoordRec( (float) 33.3333, (float) 0 ),
+};
+
+static final CoordRec[] char119_stroke1 = {
+ new CoordRec( (float) 52.3809, (float) 66.6667 ),
+ new CoordRec( (float) 33.3333, (float) 0 ),
+};
+
+static final CoordRec[] char119_stroke2 = {
+ new CoordRec( (float) 52.3809, (float) 66.6667 ),
+ new CoordRec( (float) 71.4286, (float) 0 ),
+};
+
+static final CoordRec[] char119_stroke3 = {
+ new CoordRec( (float) 90.4762, (float) 66.6667 ),
+ new CoordRec( (float) 71.4286, (float) 0 ),
+};
+
+static final StrokeRec char119[] = {
+ new StrokeRec(2, char119_stroke0),
+ new StrokeRec(2, char119_stroke1),
+ new StrokeRec(2, char119_stroke2),
+ new StrokeRec(2, char119_stroke3),
+};
+
+/* char: 120 'x' */
+
+static final CoordRec[] char120_stroke0 = {
+ new CoordRec( (float) 26.1905, (float) 66.6667 ),
+ new CoordRec( (float) 78.5715, (float) 0 ),
+};
+
+static final CoordRec[] char120_stroke1 = {
+ new CoordRec( (float) 78.5715, (float) 66.6667 ),
+ new CoordRec( (float) 26.1905, (float) 0 ),
+};
+
+static final StrokeRec char120[] = {
+ new StrokeRec(2, char120_stroke0),
+ new StrokeRec(2, char120_stroke1),
+};
+
+/* char: 121 'y' */
+
+static final CoordRec[] char121_stroke0 = {
+ new CoordRec( (float) 26.1905, (float) 66.6667 ),
+ new CoordRec( (float) 54.7619, (float) 0 ),
+};
+
+static final CoordRec[] char121_stroke1 = {
+ new CoordRec( (float) 83.3334, (float) 66.6667 ),
+ new CoordRec( (float) 54.7619, (float) 0 ),
+ new CoordRec( (float) 45.2381, (float) -19.0476 ),
+ new CoordRec( (float) 35.7143, (float) -28.5714 ),
+ new CoordRec( (float) 26.1905, (float) -33.3333 ),
+ new CoordRec( (float) 21.4286, (float) -33.3333 ),
+};
+
+static final StrokeRec char121[] = {
+ new StrokeRec(2, char121_stroke0),
+ new StrokeRec(6, char121_stroke1),
+};
+
+/* char: 122 'z' */
+
+static final CoordRec[] char122_stroke0 = {
+ new CoordRec( (float) 78.5715, (float) 66.6667 ),
+ new CoordRec( (float) 26.1905, (float) 0 ),
+};
+
+static final CoordRec[] char122_stroke1 = {
+ new CoordRec( (float) 26.1905, (float) 66.6667 ),
+ new CoordRec( (float) 78.5715, (float) 66.6667 ),
+};
+
+static final CoordRec[] char122_stroke2 = {
+ new CoordRec( (float) 26.1905, (float) 0 ),
+ new CoordRec( (float) 78.5715, (float) 0 ),
+};
+
+static final StrokeRec char122[] = {
+ new StrokeRec(2, char122_stroke0),
+ new StrokeRec(2, char122_stroke1),
+ new StrokeRec(2, char122_stroke2),
+};
+
+/* char: 123 '{' */
+
+static final CoordRec[] char123_stroke0 = {
+ new CoordRec( (float) 64.2857, (float) 119.048 ),
+ new CoordRec( (float) 54.7619, (float) 114.286 ),
+ new CoordRec( (float) 50, (float) 109.524 ),
+ new CoordRec( (float) 45.2381, (float) 100 ),
+ new CoordRec( (float) 45.2381, (float) 90.4762 ),
+ new CoordRec( (float) 50, (float) 80.9524 ),
+ new CoordRec( (float) 54.7619, (float) 76.1905 ),
+ new CoordRec( (float) 59.5238, (float) 66.6667 ),
+ new CoordRec( (float) 59.5238, (float) 57.1429 ),
+ new CoordRec( (float) 50, (float) 47.619 ),
+};
+
+static final CoordRec[] char123_stroke1 = {
+ new CoordRec( (float) 54.7619, (float) 114.286 ),
+ new CoordRec( (float) 50, (float) 104.762 ),
+ new CoordRec( (float) 50, (float) 95.2381 ),
+ new CoordRec( (float) 54.7619, (float) 85.7143 ),
+ new CoordRec( (float) 59.5238, (float) 80.9524 ),
+ new CoordRec( (float) 64.2857, (float) 71.4286 ),
+ new CoordRec( (float) 64.2857, (float) 61.9048 ),
+ new CoordRec( (float) 59.5238, (float) 52.381 ),
+ new CoordRec( (float) 40.4762, (float) 42.8571 ),
+ new CoordRec( (float) 59.5238, (float) 33.3333 ),
+ new CoordRec( (float) 64.2857, (float) 23.8095 ),
+ new CoordRec( (float) 64.2857, (float) 14.2857 ),
+ new CoordRec( (float) 59.5238, (float) 4.7619 ),
+ new CoordRec( (float) 54.7619, (float) 0 ),
+ new CoordRec( (float) 50, (float) -9.5238 ),
+ new CoordRec( (float) 50, (float) -19.0476 ),
+ new CoordRec( (float) 54.7619, (float) -28.5714 ),
+};
+
+static final CoordRec[] char123_stroke2 = {
+ new CoordRec( (float) 50, (float) 38.0952 ),
+ new CoordRec( (float) 59.5238, (float) 28.5714 ),
+ new CoordRec( (float) 59.5238, (float) 19.0476 ),
+ new CoordRec( (float) 54.7619, (float) 9.5238 ),
+ new CoordRec( (float) 50, (float) 4.7619 ),
+ new CoordRec( (float) 45.2381, (float) -4.7619 ),
+ new CoordRec( (float) 45.2381, (float) -14.2857 ),
+ new CoordRec( (float) 50, (float) -23.8095 ),
+ new CoordRec( (float) 54.7619, (float) -28.5714 ),
+ new CoordRec( (float) 64.2857, (float) -33.3333 ),
+};
+
+static final StrokeRec char123[] = {
+ new StrokeRec(10, char123_stroke0),
+ new StrokeRec(17, char123_stroke1),
+ new StrokeRec(10, char123_stroke2),
+};
+
+/* char: 124 '|' */
+
+static final CoordRec[] char124_stroke0 = {
+ new CoordRec( (float) 52.381, (float) 119.048 ),
+ new CoordRec( (float) 52.381, (float) -33.3333 ),
+};
+
+static final StrokeRec char124[] = {
+ new StrokeRec(2, char124_stroke0),
+};
+
+/* char: 125 '}' */
+
+static final CoordRec[] char125_stroke0 = {
+ new CoordRec( (float) 40.4762, (float) 119.048 ),
+ new CoordRec( (float) 50, (float) 114.286 ),
+ new CoordRec( (float) 54.7619, (float) 109.524 ),
+ new CoordRec( (float) 59.5238, (float) 100 ),
+ new CoordRec( (float) 59.5238, (float) 90.4762 ),
+ new CoordRec( (float) 54.7619, (float) 80.9524 ),
+ new CoordRec( (float) 50, (float) 76.1905 ),
+ new CoordRec( (float) 45.2381, (float) 66.6667 ),
+ new CoordRec( (float) 45.2381, (float) 57.1429 ),
+ new CoordRec( (float) 54.7619, (float) 47.619 ),
+};
+
+static final CoordRec[] char125_stroke1 = {
+ new CoordRec( (float) 50, (float) 114.286 ),
+ new CoordRec( (float) 54.7619, (float) 104.762 ),
+ new CoordRec( (float) 54.7619, (float) 95.2381 ),
+ new CoordRec( (float) 50, (float) 85.7143 ),
+ new CoordRec( (float) 45.2381, (float) 80.9524 ),
+ new CoordRec( (float) 40.4762, (float) 71.4286 ),
+ new CoordRec( (float) 40.4762, (float) 61.9048 ),
+ new CoordRec( (float) 45.2381, (float) 52.381 ),
+ new CoordRec( (float) 64.2857, (float) 42.8571 ),
+ new CoordRec( (float) 45.2381, (float) 33.3333 ),
+ new CoordRec( (float) 40.4762, (float) 23.8095 ),
+ new CoordRec( (float) 40.4762, (float) 14.2857 ),
+ new CoordRec( (float) 45.2381, (float) 4.7619 ),
+ new CoordRec( (float) 50, (float) 0 ),
+ new CoordRec( (float) 54.7619, (float) -9.5238 ),
+ new CoordRec( (float) 54.7619, (float) -19.0476 ),
+ new CoordRec( (float) 50, (float) -28.5714 ),
+};
+
+static final CoordRec[] char125_stroke2 = {
+ new CoordRec( (float) 54.7619, (float) 38.0952 ),
+ new CoordRec( (float) 45.2381, (float) 28.5714 ),
+ new CoordRec( (float) 45.2381, (float) 19.0476 ),
+ new CoordRec( (float) 50, (float) 9.5238 ),
+ new CoordRec( (float) 54.7619, (float) 4.7619 ),
+ new CoordRec( (float) 59.5238, (float) -4.7619 ),
+ new CoordRec( (float) 59.5238, (float) -14.2857 ),
+ new CoordRec( (float) 54.7619, (float) -23.8095 ),
+ new CoordRec( (float) 50, (float) -28.5714 ),
+ new CoordRec( (float) 40.4762, (float) -33.3333 ),
+};
+
+static final StrokeRec char125[] = {
+ new StrokeRec(10, char125_stroke0),
+ new StrokeRec(17, char125_stroke1),
+ new StrokeRec(10, char125_stroke2),
+};
+
+/* char: 126 '~' */
+
+static final CoordRec[] char126_stroke0 = {
+ new CoordRec( (float) 9.5238, (float) 28.5714 ),
+ new CoordRec( (float) 9.5238, (float) 38.0952 ),
+ new CoordRec( (float) 14.2857, (float) 52.381 ),
+ new CoordRec( (float) 23.8095, (float) 57.1429 ),
+ new CoordRec( (float) 33.3333, (float) 57.1429 ),
+ new CoordRec( (float) 42.8571, (float) 52.381 ),
+ new CoordRec( (float) 61.9048, (float) 38.0952 ),
+ new CoordRec( (float) 71.4286, (float) 33.3333 ),
+ new CoordRec( (float) 80.9524, (float) 33.3333 ),
+ new CoordRec( (float) 90.4762, (float) 38.0952 ),
+ new CoordRec( (float) 95.2381, (float) 47.619 ),
+};
+
+static final CoordRec[] char126_stroke1 = {
+ new CoordRec( (float) 9.5238, (float) 38.0952 ),
+ new CoordRec( (float) 14.2857, (float) 47.619 ),
+ new CoordRec( (float) 23.8095, (float) 52.381 ),
+ new CoordRec( (float) 33.3333, (float) 52.381 ),
+ new CoordRec( (float) 42.8571, (float) 47.619 ),
+ new CoordRec( (float) 61.9048, (float) 33.3333 ),
+ new CoordRec( (float) 71.4286, (float) 28.5714 ),
+ new CoordRec( (float) 80.9524, (float) 28.5714 ),
+ new CoordRec( (float) 90.4762, (float) 33.3333 ),
+ new CoordRec( (float) 95.2381, (float) 47.619 ),
+ new CoordRec( (float) 95.2381, (float) 57.1429 ),
+};
+
+static final StrokeRec char126[] = {
+ new StrokeRec(11, char126_stroke0),
+ new StrokeRec(11, char126_stroke1),
+};
+
+/* char: 127 */
+
+static final CoordRec[] char127_stroke0 = {
+ new CoordRec( (float) 71.4286, (float) 100 ),
+ new CoordRec( (float) 33.3333, (float) -33.3333 ),
+};
+
+static final CoordRec[] char127_stroke1 = {
+ new CoordRec( (float) 47.619, (float) 66.6667 ),
+ new CoordRec( (float) 33.3333, (float) 61.9048 ),
+ new CoordRec( (float) 23.8095, (float) 52.381 ),
+ new CoordRec( (float) 19.0476, (float) 38.0952 ),
+ new CoordRec( (float) 19.0476, (float) 23.8095 ),
+ new CoordRec( (float) 23.8095, (float) 14.2857 ),
+ new CoordRec( (float) 33.3333, (float) 4.7619 ),
+ new CoordRec( (float) 47.619, (float) 0 ),
+ new CoordRec( (float) 57.1428, (float) 0 ),
+ new CoordRec( (float) 71.4286, (float) 4.7619 ),
+ new CoordRec( (float) 80.9524, (float) 14.2857 ),
+ new CoordRec( (float) 85.7143, (float) 28.5714 ),
+ new CoordRec( (float) 85.7143, (float) 42.8571 ),
+ new CoordRec( (float) 80.9524, (float) 52.381 ),
+ new CoordRec( (float) 71.4286, (float) 61.9048 ),
+ new CoordRec( (float) 57.1428, (float) 66.6667 ),
+ new CoordRec( (float) 47.619, (float) 66.6667 ),
+};
+
+static final StrokeRec char127[] = {
+ new StrokeRec(2, char127_stroke0),
+ new StrokeRec(17, char127_stroke1),
+};
+
+static final StrokeCharRec chars[] = {
+ new StrokeCharRec( 0, /* char0 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char1 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char2 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char3 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char4 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char5 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char6 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char7 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char8 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char9 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char10 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char11 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char12 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char13 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char14 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char15 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char16 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char17 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char18 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char19 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char20 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char21 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char22 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char23 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char24 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char25 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char26 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char27 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char28 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char29 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char30 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char31 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char32 */ null, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char33, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char34, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 4, char35, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 3, char36, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 3, char37, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char38, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char39, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char40, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char41, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 3, char42, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char43, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char44, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char45, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char46, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char47, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char48, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char49, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char50, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char51, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char52, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char53, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char54, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char55, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char56, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char57, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char58, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char59, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char60, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char61, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char62, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char63, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char64, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 3, char65, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 3, char66, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char67, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char68, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 4, char69, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 3, char70, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char71, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 3, char72, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char73, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char74, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 3, char75, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char76, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 4, char77, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 3, char78, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char79, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char80, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char81, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 3, char82, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char83, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char84, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char85, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char86, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 4, char87, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char88, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char89, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 3, char90, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 4, char91, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char92, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 4, char93, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char94, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char95, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char96, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char97, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char98, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char99, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char100, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char101, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char102, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char103, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char104, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char105, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char106, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 3, char107, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char108, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 3, char109, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char110, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char111, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char112, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char113, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char114, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char115, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char116, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char117, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char118, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 4, char119, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char120, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char121, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 3, char122, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 3, char123, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 1, char124, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 3, char125, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char126, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char127, (float)52.381, (float)104.762 ),
+};
+
+final static StrokeFontRec fontinfo = new StrokeFontRec( "Roman", 128, chars, (float)119.048, (float)-33.3333 );
+
+ static public StrokeFontRec getStrokeFontRec() {
+ return fontinfo;
+ }
+}
diff --git a/gl4java/utils/glut/fonts/data/glutStrokeRoman.java b/gl4java/utils/glut/fonts/data/glutStrokeRoman.java
new file mode 100644
index 0000000..614454d
--- /dev/null
+++ b/gl4java/utils/glut/fonts/data/glutStrokeRoman.java
@@ -0,0 +1,2458 @@
+
+/* GENERATED FILE -- DO NOT MODIFY */
+
+package gl4java.utils.glut.fonts.data;
+
+import gl4java.utils.glut.fonts.*;
+
+public class glutStrokeRoman implements GLUTStrokeFont {
+/* char: 33 '!' */
+
+static final CoordRec[] char33_stroke0 = {
+ new CoordRec( (float) 13.3819, (float) 100 ),
+ new CoordRec( (float) 13.3819, (float) 33.3333 ),
+};
+
+static final CoordRec[] char33_stroke1 = {
+ new CoordRec( (float) 13.3819, (float) 9.5238 ),
+ new CoordRec( (float) 8.62, (float) 4.7619 ),
+ new CoordRec( (float) 13.3819, (float) 0 ),
+ new CoordRec( (float) 18.1438, (float) 4.7619 ),
+ new CoordRec( (float) 13.3819, (float) 9.5238 ),
+};
+
+static final StrokeRec char33[] = {
+ new StrokeRec(2, char33_stroke0),
+ new StrokeRec(5, char33_stroke1),
+};
+
+/* char: 34 '"' */
+
+static final CoordRec[] char34_stroke0 = {
+ new CoordRec( (float) 4.02, (float) 100 ),
+ new CoordRec( (float) 4.02, (float) 66.6667 ),
+};
+
+static final CoordRec[] char34_stroke1 = {
+ new CoordRec( (float) 42.1152, (float) 100 ),
+ new CoordRec( (float) 42.1152, (float) 66.6667 ),
+};
+
+static final StrokeRec char34[] = {
+ new StrokeRec(2, char34_stroke0),
+ new StrokeRec(2, char34_stroke1),
+};
+
+/* char: 35 '#' */
+
+static final CoordRec[] char35_stroke0 = {
+ new CoordRec( (float) 41.2952, (float) 119.048 ),
+ new CoordRec( (float) 7.9619, (float) -33.3333 ),
+};
+
+static final CoordRec[] char35_stroke1 = {
+ new CoordRec( (float) 69.8667, (float) 119.048 ),
+ new CoordRec( (float) 36.5333, (float) -33.3333 ),
+};
+
+static final CoordRec[] char35_stroke2 = {
+ new CoordRec( (float) 7.9619, (float) 57.1429 ),
+ new CoordRec( (float) 74.6286, (float) 57.1429 ),
+};
+
+static final CoordRec[] char35_stroke3 = {
+ new CoordRec( (float) 3.2, (float) 28.5714 ),
+ new CoordRec( (float) 69.8667, (float) 28.5714 ),
+};
+
+static final StrokeRec char35[] = {
+ new StrokeRec(2, char35_stroke0),
+ new StrokeRec(2, char35_stroke1),
+ new StrokeRec(2, char35_stroke2),
+ new StrokeRec(2, char35_stroke3),
+};
+
+/* char: 36 '$' */
+
+static final CoordRec[] char36_stroke0 = {
+ new CoordRec( (float) 28.6295, (float) 119.048 ),
+ new CoordRec( (float) 28.6295, (float) -19.0476 ),
+};
+
+static final CoordRec[] char36_stroke1 = {
+ new CoordRec( (float) 47.6771, (float) 119.048 ),
+ new CoordRec( (float) 47.6771, (float) -19.0476 ),
+};
+
+static final CoordRec[] char36_stroke2 = {
+ new CoordRec( (float) 71.4867, (float) 85.7143 ),
+ new CoordRec( (float) 61.9629, (float) 95.2381 ),
+ new CoordRec( (float) 47.6771, (float) 100 ),
+ new CoordRec( (float) 28.6295, (float) 100 ),
+ new CoordRec( (float) 14.3438, (float) 95.2381 ),
+ new CoordRec( (float) 4.82, (float) 85.7143 ),
+ new CoordRec( (float) 4.82, (float) 76.1905 ),
+ new CoordRec( (float) 9.5819, (float) 66.6667 ),
+ new CoordRec( (float) 14.3438, (float) 61.9048 ),
+ new CoordRec( (float) 23.8676, (float) 57.1429 ),
+ new CoordRec( (float) 52.439, (float) 47.619 ),
+ new CoordRec( (float) 61.9629, (float) 42.8571 ),
+ new CoordRec( (float) 66.7248, (float) 38.0952 ),
+ new CoordRec( (float) 71.4867, (float) 28.5714 ),
+ new CoordRec( (float) 71.4867, (float) 14.2857 ),
+ new CoordRec( (float) 61.9629, (float) 4.7619 ),
+ new CoordRec( (float) 47.6771, (float) 0 ),
+ new CoordRec( (float) 28.6295, (float) 0 ),
+ new CoordRec( (float) 14.3438, (float) 4.7619 ),
+ new CoordRec( (float) 4.82, (float) 14.2857 ),
+};
+
+static final StrokeRec char36[] = {
+ new StrokeRec(2, char36_stroke0),
+ new StrokeRec(2, char36_stroke1),
+ new StrokeRec(20, char36_stroke2),
+};
+
+/* char: 37 '%' */
+
+static final CoordRec[] char37_stroke0 = {
+ new CoordRec( (float) 92.0743, (float) 100 ),
+ new CoordRec( (float) 6.36, (float) 0 ),
+};
+
+static final CoordRec[] char37_stroke1 = {
+ new CoordRec( (float) 30.1695, (float) 100 ),
+ new CoordRec( (float) 39.6933, (float) 90.4762 ),
+ new CoordRec( (float) 39.6933, (float) 80.9524 ),
+ new CoordRec( (float) 34.9314, (float) 71.4286 ),
+ new CoordRec( (float) 25.4076, (float) 66.6667 ),
+ new CoordRec( (float) 15.8838, (float) 66.6667 ),
+ new CoordRec( (float) 6.36, (float) 76.1905 ),
+ new CoordRec( (float) 6.36, (float) 85.7143 ),
+ new CoordRec( (float) 11.1219, (float) 95.2381 ),
+ new CoordRec( (float) 20.6457, (float) 100 ),
+ new CoordRec( (float) 30.1695, (float) 100 ),
+ new CoordRec( (float) 39.6933, (float) 95.2381 ),
+ new CoordRec( (float) 53.979, (float) 90.4762 ),
+ new CoordRec( (float) 68.2648, (float) 90.4762 ),
+ new CoordRec( (float) 82.5505, (float) 95.2381 ),
+ new CoordRec( (float) 92.0743, (float) 100 ),
+};
+
+static final CoordRec[] char37_stroke2 = {
+ new CoordRec( (float) 73.0267, (float) 33.3333 ),
+ new CoordRec( (float) 63.5029, (float) 28.5714 ),
+ new CoordRec( (float) 58.741, (float) 19.0476 ),
+ new CoordRec( (float) 58.741, (float) 9.5238 ),
+ new CoordRec( (float) 68.2648, (float) 0 ),
+ new CoordRec( (float) 77.7886, (float) 0 ),
+ new CoordRec( (float) 87.3124, (float) 4.7619 ),
+ new CoordRec( (float) 92.0743, (float) 14.2857 ),
+ new CoordRec( (float) 92.0743, (float) 23.8095 ),
+ new CoordRec( (float) 82.5505, (float) 33.3333 ),
+ new CoordRec( (float) 73.0267, (float) 33.3333 ),
+};
+
+static final StrokeRec char37[] = {
+ new StrokeRec(2, char37_stroke0),
+ new StrokeRec(16, char37_stroke1),
+ new StrokeRec(11, char37_stroke2),
+};
+
+/* char: 38 '&' */
+
+static final CoordRec[] char38_stroke0 = {
+ new CoordRec( (float) 101.218, (float) 57.1429 ),
+ new CoordRec( (float) 101.218, (float) 61.9048 ),
+ new CoordRec( (float) 96.4562, (float) 66.6667 ),
+ new CoordRec( (float) 91.6943, (float) 66.6667 ),
+ new CoordRec( (float) 86.9324, (float) 61.9048 ),
+ new CoordRec( (float) 82.1705, (float) 52.381 ),
+ new CoordRec( (float) 72.6467, (float) 28.5714 ),
+ new CoordRec( (float) 63.1229, (float) 14.2857 ),
+ new CoordRec( (float) 53.599, (float) 4.7619 ),
+ new CoordRec( (float) 44.0752, (float) 0 ),
+ new CoordRec( (float) 25.0276, (float) 0 ),
+ new CoordRec( (float) 15.5038, (float) 4.7619 ),
+ new CoordRec( (float) 10.7419, (float) 9.5238 ),
+ new CoordRec( (float) 5.98, (float) 19.0476 ),
+ new CoordRec( (float) 5.98, (float) 28.5714 ),
+ new CoordRec( (float) 10.7419, (float) 38.0952 ),
+ new CoordRec( (float) 15.5038, (float) 42.8571 ),
+ new CoordRec( (float) 48.8371, (float) 61.9048 ),
+ new CoordRec( (float) 53.599, (float) 66.6667 ),
+ new CoordRec( (float) 58.361, (float) 76.1905 ),
+ new CoordRec( (float) 58.361, (float) 85.7143 ),
+ new CoordRec( (float) 53.599, (float) 95.2381 ),
+ new CoordRec( (float) 44.0752, (float) 100 ),
+ new CoordRec( (float) 34.5514, (float) 95.2381 ),
+ new CoordRec( (float) 29.7895, (float) 85.7143 ),
+ new CoordRec( (float) 29.7895, (float) 76.1905 ),
+ new CoordRec( (float) 34.5514, (float) 61.9048 ),
+ new CoordRec( (float) 44.0752, (float) 47.619 ),
+ new CoordRec( (float) 67.8848, (float) 14.2857 ),
+ new CoordRec( (float) 77.4086, (float) 4.7619 ),
+ new CoordRec( (float) 86.9324, (float) 0 ),
+ new CoordRec( (float) 96.4562, (float) 0 ),
+ new CoordRec( (float) 101.218, (float) 4.7619 ),
+ new CoordRec( (float) 101.218, (float) 9.5238 ),
+};
+
+static final StrokeRec char38[] = {
+ new StrokeRec(34, char38_stroke0),
+};
+
+/* char: 39 ''' */
+
+static final CoordRec[] char39_stroke0 = {
+ new CoordRec( (float) 4.44, (float) 100 ),
+ new CoordRec( (float) 4.44, (float) 66.6667 ),
+};
+
+static final StrokeRec char39[] = {
+ new StrokeRec(2, char39_stroke0),
+};
+
+/* char: 40 '(' */
+
+static final CoordRec[] char40_stroke0 = {
+ new CoordRec( (float) 40.9133, (float) 119.048 ),
+ new CoordRec( (float) 31.3895, (float) 109.524 ),
+ new CoordRec( (float) 21.8657, (float) 95.2381 ),
+ new CoordRec( (float) 12.3419, (float) 76.1905 ),
+ new CoordRec( (float) 7.58, (float) 52.381 ),
+ new CoordRec( (float) 7.58, (float) 33.3333 ),
+ new CoordRec( (float) 12.3419, (float) 9.5238 ),
+ new CoordRec( (float) 21.8657, (float) -9.5238 ),
+ new CoordRec( (float) 31.3895, (float) -23.8095 ),
+ new CoordRec( (float) 40.9133, (float) -33.3333 ),
+};
+
+static final StrokeRec char40[] = {
+ new StrokeRec(10, char40_stroke0),
+};
+
+/* char: 41 ')' */
+
+static final CoordRec[] char41_stroke0 = {
+ new CoordRec( (float) 5.28, (float) 119.048 ),
+ new CoordRec( (float) 14.8038, (float) 109.524 ),
+ new CoordRec( (float) 24.3276, (float) 95.2381 ),
+ new CoordRec( (float) 33.8514, (float) 76.1905 ),
+ new CoordRec( (float) 38.6133, (float) 52.381 ),
+ new CoordRec( (float) 38.6133, (float) 33.3333 ),
+ new CoordRec( (float) 33.8514, (float) 9.5238 ),
+ new CoordRec( (float) 24.3276, (float) -9.5238 ),
+ new CoordRec( (float) 14.8038, (float) -23.8095 ),
+ new CoordRec( (float) 5.28, (float) -33.3333 ),
+};
+
+static final StrokeRec char41[] = {
+ new StrokeRec(10, char41_stroke0),
+};
+
+/* char: 42 '*' */
+
+static final CoordRec[] char42_stroke0 = {
+ new CoordRec( (float) 30.7695, (float) 71.4286 ),
+ new CoordRec( (float) 30.7695, (float) 14.2857 ),
+};
+
+static final CoordRec[] char42_stroke1 = {
+ new CoordRec( (float) 6.96, (float) 57.1429 ),
+ new CoordRec( (float) 54.579, (float) 28.5714 ),
+};
+
+static final CoordRec[] char42_stroke2 = {
+ new CoordRec( (float) 54.579, (float) 57.1429 ),
+ new CoordRec( (float) 6.96, (float) 28.5714 ),
+};
+
+static final StrokeRec char42[] = {
+ new StrokeRec(2, char42_stroke0),
+ new StrokeRec(2, char42_stroke1),
+ new StrokeRec(2, char42_stroke2),
+};
+
+/* char: 43 '+' */
+
+static final CoordRec[] char43_stroke0 = {
+ new CoordRec( (float) 48.8371, (float) 85.7143 ),
+ new CoordRec( (float) 48.8371, (float) 0 ),
+};
+
+static final CoordRec[] char43_stroke1 = {
+ new CoordRec( (float) 5.98, (float) 42.8571 ),
+ new CoordRec( (float) 91.6943, (float) 42.8571 ),
+};
+
+static final StrokeRec char43[] = {
+ new StrokeRec(2, char43_stroke0),
+ new StrokeRec(2, char43_stroke1),
+};
+
+/* char: 44 ',' */
+
+static final CoordRec[] char44_stroke0 = {
+ new CoordRec( (float) 18.2838, (float) 4.7619 ),
+ new CoordRec( (float) 13.5219, (float) 0 ),
+ new CoordRec( (float) 8.76, (float) 4.7619 ),
+ new CoordRec( (float) 13.5219, (float) 9.5238 ),
+ new CoordRec( (float) 18.2838, (float) 4.7619 ),
+ new CoordRec( (float) 18.2838, (float) -4.7619 ),
+ new CoordRec( (float) 13.5219, (float) -14.2857 ),
+ new CoordRec( (float) 8.76, (float) -19.0476 ),
+};
+
+static final StrokeRec char44[] = {
+ new StrokeRec(8, char44_stroke0),
+};
+
+/* char: 45 '-' */
+
+static final CoordRec[] char45_stroke0 = {
+ new CoordRec( (float) 7.38, (float) 42.8571 ),
+ new CoordRec( (float) 93.0943, (float) 42.8571 ),
+};
+
+static final StrokeRec char45[] = {
+ new StrokeRec(2, char45_stroke0),
+};
+
+/* char: 46 '.' */
+
+static final CoordRec[] char46_stroke0 = {
+ new CoordRec( (float) 13.1019, (float) 9.5238 ),
+ new CoordRec( (float) 8.34, (float) 4.7619 ),
+ new CoordRec( (float) 13.1019, (float) 0 ),
+ new CoordRec( (float) 17.8638, (float) 4.7619 ),
+ new CoordRec( (float) 13.1019, (float) 9.5238 ),
+};
+
+static final StrokeRec char46[] = {
+ new StrokeRec(5, char46_stroke0),
+};
+
+/* char: 47 '/' */
+
+static final CoordRec[] char47_stroke0 = {
+ new CoordRec( (float) 7.24, (float) -14.2857 ),
+ new CoordRec( (float) 73.9067, (float) 100 ),
+};
+
+static final StrokeRec char47[] = {
+ new StrokeRec(2, char47_stroke0),
+};
+
+/* char: 48 '0' */
+
+static final CoordRec[] char48_stroke0 = {
+ new CoordRec( (float) 33.5514, (float) 100 ),
+ new CoordRec( (float) 19.2657, (float) 95.2381 ),
+ new CoordRec( (float) 9.7419, (float) 80.9524 ),
+ new CoordRec( (float) 4.98, (float) 57.1429 ),
+ new CoordRec( (float) 4.98, (float) 42.8571 ),
+ new CoordRec( (float) 9.7419, (float) 19.0476 ),
+ new CoordRec( (float) 19.2657, (float) 4.7619 ),
+ new CoordRec( (float) 33.5514, (float) 0 ),
+ new CoordRec( (float) 43.0752, (float) 0 ),
+ new CoordRec( (float) 57.361, (float) 4.7619 ),
+ new CoordRec( (float) 66.8848, (float) 19.0476 ),
+ new CoordRec( (float) 71.6467, (float) 42.8571 ),
+ new CoordRec( (float) 71.6467, (float) 57.1429 ),
+ new CoordRec( (float) 66.8848, (float) 80.9524 ),
+ new CoordRec( (float) 57.361, (float) 95.2381 ),
+ new CoordRec( (float) 43.0752, (float) 100 ),
+ new CoordRec( (float) 33.5514, (float) 100 ),
+};
+
+static final StrokeRec char48[] = {
+ new StrokeRec(17, char48_stroke0),
+};
+
+/* char: 49 '1' */
+
+static final CoordRec[] char49_stroke0 = {
+ new CoordRec( (float) 11.82, (float) 80.9524 ),
+ new CoordRec( (float) 21.3438, (float) 85.7143 ),
+ new CoordRec( (float) 35.6295, (float) 100 ),
+ new CoordRec( (float) 35.6295, (float) 0 ),
+};
+
+static final StrokeRec char49[] = {
+ new StrokeRec(4, char49_stroke0),
+};
+
+/* char: 50 '2' */
+
+static final CoordRec[] char50_stroke0 = {
+ new CoordRec( (float) 10.1819, (float) 76.1905 ),
+ new CoordRec( (float) 10.1819, (float) 80.9524 ),
+ new CoordRec( (float) 14.9438, (float) 90.4762 ),
+ new CoordRec( (float) 19.7057, (float) 95.2381 ),
+ new CoordRec( (float) 29.2295, (float) 100 ),
+ new CoordRec( (float) 48.2771, (float) 100 ),
+ new CoordRec( (float) 57.801, (float) 95.2381 ),
+ new CoordRec( (float) 62.5629, (float) 90.4762 ),
+ new CoordRec( (float) 67.3248, (float) 80.9524 ),
+ new CoordRec( (float) 67.3248, (float) 71.4286 ),
+ new CoordRec( (float) 62.5629, (float) 61.9048 ),
+ new CoordRec( (float) 53.039, (float) 47.619 ),
+ new CoordRec( (float) 5.42, (float) 0 ),
+ new CoordRec( (float) 72.0867, (float) 0 ),
+};
+
+static final StrokeRec char50[] = {
+ new StrokeRec(14, char50_stroke0),
+};
+
+/* char: 51 '3' */
+
+static final CoordRec[] char51_stroke0 = {
+ new CoordRec( (float) 14.5238, (float) 100 ),
+ new CoordRec( (float) 66.9048, (float) 100 ),
+ new CoordRec( (float) 38.3333, (float) 61.9048 ),
+ new CoordRec( (float) 52.619, (float) 61.9048 ),
+ new CoordRec( (float) 62.1429, (float) 57.1429 ),
+ new CoordRec( (float) 66.9048, (float) 52.381 ),
+ new CoordRec( (float) 71.6667, (float) 38.0952 ),
+ new CoordRec( (float) 71.6667, (float) 28.5714 ),
+ new CoordRec( (float) 66.9048, (float) 14.2857 ),
+ new CoordRec( (float) 57.381, (float) 4.7619 ),
+ new CoordRec( (float) 43.0952, (float) 0 ),
+ new CoordRec( (float) 28.8095, (float) 0 ),
+ new CoordRec( (float) 14.5238, (float) 4.7619 ),
+ new CoordRec( (float) 9.7619, (float) 9.5238 ),
+ new CoordRec( (float) 5, (float) 19.0476 ),
+};
+
+static final StrokeRec char51[] = {
+ new StrokeRec(15, char51_stroke0),
+};
+
+/* char: 52 '4' */
+
+static final CoordRec[] char52_stroke0 = {
+ new CoordRec( (float) 51.499, (float) 100 ),
+ new CoordRec( (float) 3.88, (float) 33.3333 ),
+ new CoordRec( (float) 75.3086, (float) 33.3333 ),
+};
+
+static final CoordRec[] char52_stroke1 = {
+ new CoordRec( (float) 51.499, (float) 100 ),
+ new CoordRec( (float) 51.499, (float) 0 ),
+};
+
+static final StrokeRec char52[] = {
+ new StrokeRec(3, char52_stroke0),
+ new StrokeRec(2, char52_stroke1),
+};
+
+/* char: 53 '5' */
+
+static final CoordRec[] char53_stroke0 = {
+ new CoordRec( (float) 62.0029, (float) 100 ),
+ new CoordRec( (float) 14.3838, (float) 100 ),
+ new CoordRec( (float) 9.6219, (float) 57.1429 ),
+ new CoordRec( (float) 14.3838, (float) 61.9048 ),
+ new CoordRec( (float) 28.6695, (float) 66.6667 ),
+ new CoordRec( (float) 42.9552, (float) 66.6667 ),
+ new CoordRec( (float) 57.241, (float) 61.9048 ),
+ new CoordRec( (float) 66.7648, (float) 52.381 ),
+ new CoordRec( (float) 71.5267, (float) 38.0952 ),
+ new CoordRec( (float) 71.5267, (float) 28.5714 ),
+ new CoordRec( (float) 66.7648, (float) 14.2857 ),
+ new CoordRec( (float) 57.241, (float) 4.7619 ),
+ new CoordRec( (float) 42.9552, (float) 0 ),
+ new CoordRec( (float) 28.6695, (float) 0 ),
+ new CoordRec( (float) 14.3838, (float) 4.7619 ),
+ new CoordRec( (float) 9.6219, (float) 9.5238 ),
+ new CoordRec( (float) 4.86, (float) 19.0476 ),
+};
+
+static final StrokeRec char53[] = {
+ new StrokeRec(17, char53_stroke0),
+};
+
+/* char: 54 '6' */
+
+static final CoordRec[] char54_stroke0 = {
+ new CoordRec( (float) 62.7229, (float) 85.7143 ),
+ new CoordRec( (float) 57.961, (float) 95.2381 ),
+ new CoordRec( (float) 43.6752, (float) 100 ),
+ new CoordRec( (float) 34.1514, (float) 100 ),
+ new CoordRec( (float) 19.8657, (float) 95.2381 ),
+ new CoordRec( (float) 10.3419, (float) 80.9524 ),
+ new CoordRec( (float) 5.58, (float) 57.1429 ),
+ new CoordRec( (float) 5.58, (float) 33.3333 ),
+ new CoordRec( (float) 10.3419, (float) 14.2857 ),
+ new CoordRec( (float) 19.8657, (float) 4.7619 ),
+ new CoordRec( (float) 34.1514, (float) 0 ),
+ new CoordRec( (float) 38.9133, (float) 0 ),
+ new CoordRec( (float) 53.199, (float) 4.7619 ),
+ new CoordRec( (float) 62.7229, (float) 14.2857 ),
+ new CoordRec( (float) 67.4848, (float) 28.5714 ),
+ new CoordRec( (float) 67.4848, (float) 33.3333 ),
+ new CoordRec( (float) 62.7229, (float) 47.619 ),
+ new CoordRec( (float) 53.199, (float) 57.1429 ),
+ new CoordRec( (float) 38.9133, (float) 61.9048 ),
+ new CoordRec( (float) 34.1514, (float) 61.9048 ),
+ new CoordRec( (float) 19.8657, (float) 57.1429 ),
+ new CoordRec( (float) 10.3419, (float) 47.619 ),
+ new CoordRec( (float) 5.58, (float) 33.3333 ),
+};
+
+static final StrokeRec char54[] = {
+ new StrokeRec(23, char54_stroke0),
+};
+
+/* char: 55 '7' */
+
+static final CoordRec[] char55_stroke0 = {
+ new CoordRec( (float) 72.2267, (float) 100 ),
+ new CoordRec( (float) 24.6076, (float) 0 ),
+};
+
+static final CoordRec[] char55_stroke1 = {
+ new CoordRec( (float) 5.56, (float) 100 ),
+ new CoordRec( (float) 72.2267, (float) 100 ),
+};
+
+static final StrokeRec char55[] = {
+ new StrokeRec(2, char55_stroke0),
+ new StrokeRec(2, char55_stroke1),
+};
+
+/* char: 56 '8' */
+
+static final CoordRec[] char56_stroke0 = {
+ new CoordRec( (float) 29.4095, (float) 100 ),
+ new CoordRec( (float) 15.1238, (float) 95.2381 ),
+ new CoordRec( (float) 10.3619, (float) 85.7143 ),
+ new CoordRec( (float) 10.3619, (float) 76.1905 ),
+ new CoordRec( (float) 15.1238, (float) 66.6667 ),
+ new CoordRec( (float) 24.6476, (float) 61.9048 ),
+ new CoordRec( (float) 43.6952, (float) 57.1429 ),
+ new CoordRec( (float) 57.981, (float) 52.381 ),
+ new CoordRec( (float) 67.5048, (float) 42.8571 ),
+ new CoordRec( (float) 72.2667, (float) 33.3333 ),
+ new CoordRec( (float) 72.2667, (float) 19.0476 ),
+ new CoordRec( (float) 67.5048, (float) 9.5238 ),
+ new CoordRec( (float) 62.7429, (float) 4.7619 ),
+ new CoordRec( (float) 48.4571, (float) 0 ),
+ new CoordRec( (float) 29.4095, (float) 0 ),
+ new CoordRec( (float) 15.1238, (float) 4.7619 ),
+ new CoordRec( (float) 10.3619, (float) 9.5238 ),
+ new CoordRec( (float) 5.6, (float) 19.0476 ),
+ new CoordRec( (float) 5.6, (float) 33.3333 ),
+ new CoordRec( (float) 10.3619, (float) 42.8571 ),
+ new CoordRec( (float) 19.8857, (float) 52.381 ),
+ new CoordRec( (float) 34.1714, (float) 57.1429 ),
+ new CoordRec( (float) 53.219, (float) 61.9048 ),
+ new CoordRec( (float) 62.7429, (float) 66.6667 ),
+ new CoordRec( (float) 67.5048, (float) 76.1905 ),
+ new CoordRec( (float) 67.5048, (float) 85.7143 ),
+ new CoordRec( (float) 62.7429, (float) 95.2381 ),
+ new CoordRec( (float) 48.4571, (float) 100 ),
+ new CoordRec( (float) 29.4095, (float) 100 ),
+};
+
+static final StrokeRec char56[] = {
+ new StrokeRec(29, char56_stroke0),
+};
+
+/* char: 57 '9' */
+
+static final CoordRec[] char57_stroke0 = {
+ new CoordRec( (float) 68.5048, (float) 66.6667 ),
+ new CoordRec( (float) 63.7429, (float) 52.381 ),
+ new CoordRec( (float) 54.219, (float) 42.8571 ),
+ new CoordRec( (float) 39.9333, (float) 38.0952 ),
+ new CoordRec( (float) 35.1714, (float) 38.0952 ),
+ new CoordRec( (float) 20.8857, (float) 42.8571 ),
+ new CoordRec( (float) 11.3619, (float) 52.381 ),
+ new CoordRec( (float) 6.6, (float) 66.6667 ),
+ new CoordRec( (float) 6.6, (float) 71.4286 ),
+ new CoordRec( (float) 11.3619, (float) 85.7143 ),
+ new CoordRec( (float) 20.8857, (float) 95.2381 ),
+ new CoordRec( (float) 35.1714, (float) 100 ),
+ new CoordRec( (float) 39.9333, (float) 100 ),
+ new CoordRec( (float) 54.219, (float) 95.2381 ),
+ new CoordRec( (float) 63.7429, (float) 85.7143 ),
+ new CoordRec( (float) 68.5048, (float) 66.6667 ),
+ new CoordRec( (float) 68.5048, (float) 42.8571 ),
+ new CoordRec( (float) 63.7429, (float) 19.0476 ),
+ new CoordRec( (float) 54.219, (float) 4.7619 ),
+ new CoordRec( (float) 39.9333, (float) 0 ),
+ new CoordRec( (float) 30.4095, (float) 0 ),
+ new CoordRec( (float) 16.1238, (float) 4.7619 ),
+ new CoordRec( (float) 11.3619, (float) 14.2857 ),
+};
+
+static final StrokeRec char57[] = {
+ new StrokeRec(23, char57_stroke0),
+};
+
+/* char: 58 ':' */
+
+static final CoordRec[] char58_stroke0 = {
+ new CoordRec( (float) 14.0819, (float) 66.6667 ),
+ new CoordRec( (float) 9.32, (float) 61.9048 ),
+ new CoordRec( (float) 14.0819, (float) 57.1429 ),
+ new CoordRec( (float) 18.8438, (float) 61.9048 ),
+ new CoordRec( (float) 14.0819, (float) 66.6667 ),
+};
+
+static final CoordRec[] char58_stroke1 = {
+ new CoordRec( (float) 14.0819, (float) 9.5238 ),
+ new CoordRec( (float) 9.32, (float) 4.7619 ),
+ new CoordRec( (float) 14.0819, (float) 0 ),
+ new CoordRec( (float) 18.8438, (float) 4.7619 ),
+ new CoordRec( (float) 14.0819, (float) 9.5238 ),
+};
+
+static final StrokeRec char58[] = {
+ new StrokeRec(5, char58_stroke0),
+ new StrokeRec(5, char58_stroke1),
+};
+
+/* char: 59 ';' */
+
+static final CoordRec[] char59_stroke0 = {
+ new CoordRec( (float) 12.9619, (float) 66.6667 ),
+ new CoordRec( (float) 8.2, (float) 61.9048 ),
+ new CoordRec( (float) 12.9619, (float) 57.1429 ),
+ new CoordRec( (float) 17.7238, (float) 61.9048 ),
+ new CoordRec( (float) 12.9619, (float) 66.6667 ),
+};
+
+static final CoordRec[] char59_stroke1 = {
+ new CoordRec( (float) 17.7238, (float) 4.7619 ),
+ new CoordRec( (float) 12.9619, (float) 0 ),
+ new CoordRec( (float) 8.2, (float) 4.7619 ),
+ new CoordRec( (float) 12.9619, (float) 9.5238 ),
+ new CoordRec( (float) 17.7238, (float) 4.7619 ),
+ new CoordRec( (float) 17.7238, (float) -4.7619 ),
+ new CoordRec( (float) 12.9619, (float) -14.2857 ),
+ new CoordRec( (float) 8.2, (float) -19.0476 ),
+};
+
+static final StrokeRec char59[] = {
+ new StrokeRec(5, char59_stroke0),
+ new StrokeRec(8, char59_stroke1),
+};
+
+/* char: 60 '<' */
+
+static final CoordRec[] char60_stroke0 = {
+ new CoordRec( (float) 79.2505, (float) 85.7143 ),
+ new CoordRec( (float) 3.06, (float) 42.8571 ),
+ new CoordRec( (float) 79.2505, (float) 0 ),
+};
+
+static final StrokeRec char60[] = {
+ new StrokeRec(3, char60_stroke0),
+};
+
+/* char: 61 '=' */
+
+static final CoordRec[] char61_stroke0 = {
+ new CoordRec( (float) 5.7, (float) 57.1429 ),
+ new CoordRec( (float) 91.4143, (float) 57.1429 ),
+};
+
+static final CoordRec[] char61_stroke1 = {
+ new CoordRec( (float) 5.7, (float) 28.5714 ),
+ new CoordRec( (float) 91.4143, (float) 28.5714 ),
+};
+
+static final StrokeRec char61[] = {
+ new StrokeRec(2, char61_stroke0),
+ new StrokeRec(2, char61_stroke1),
+};
+
+/* char: 62 '>' */
+
+static final CoordRec[] char62_stroke0 = {
+ new CoordRec( (float) 2.78, (float) 85.7143 ),
+ new CoordRec( (float) 78.9705, (float) 42.8571 ),
+ new CoordRec( (float) 2.78, (float) 0 ),
+};
+
+static final StrokeRec char62[] = {
+ new StrokeRec(3, char62_stroke0),
+};
+
+/* char: 63 '?' */
+
+static final CoordRec[] char63_stroke0 = {
+ new CoordRec( (float) 8.42, (float) 76.1905 ),
+ new CoordRec( (float) 8.42, (float) 80.9524 ),
+ new CoordRec( (float) 13.1819, (float) 90.4762 ),
+ new CoordRec( (float) 17.9438, (float) 95.2381 ),
+ new CoordRec( (float) 27.4676, (float) 100 ),
+ new CoordRec( (float) 46.5152, (float) 100 ),
+ new CoordRec( (float) 56.039, (float) 95.2381 ),
+ new CoordRec( (float) 60.801, (float) 90.4762 ),
+ new CoordRec( (float) 65.5629, (float) 80.9524 ),
+ new CoordRec( (float) 65.5629, (float) 71.4286 ),
+ new CoordRec( (float) 60.801, (float) 61.9048 ),
+ new CoordRec( (float) 56.039, (float) 57.1429 ),
+ new CoordRec( (float) 36.9914, (float) 47.619 ),
+ new CoordRec( (float) 36.9914, (float) 33.3333 ),
+};
+
+static final CoordRec[] char63_stroke1 = {
+ new CoordRec( (float) 36.9914, (float) 9.5238 ),
+ new CoordRec( (float) 32.2295, (float) 4.7619 ),
+ new CoordRec( (float) 36.9914, (float) 0 ),
+ new CoordRec( (float) 41.7533, (float) 4.7619 ),
+ new CoordRec( (float) 36.9914, (float) 9.5238 ),
+};
+
+static final StrokeRec char63[] = {
+ new StrokeRec(14, char63_stroke0),
+ new StrokeRec(5, char63_stroke1),
+};
+
+/* char: 64 '@' */
+
+static final CoordRec[] char64_stroke0 = {
+ new CoordRec( (float) 49.2171, (float) 52.381 ),
+ new CoordRec( (float) 39.6933, (float) 57.1429 ),
+ new CoordRec( (float) 30.1695, (float) 57.1429 ),
+ new CoordRec( (float) 25.4076, (float) 47.619 ),
+ new CoordRec( (float) 25.4076, (float) 42.8571 ),
+ new CoordRec( (float) 30.1695, (float) 33.3333 ),
+ new CoordRec( (float) 39.6933, (float) 33.3333 ),
+ new CoordRec( (float) 49.2171, (float) 38.0952 ),
+};
+
+static final CoordRec[] char64_stroke1 = {
+ new CoordRec( (float) 49.2171, (float) 57.1429 ),
+ new CoordRec( (float) 49.2171, (float) 38.0952 ),
+ new CoordRec( (float) 53.979, (float) 33.3333 ),
+ new CoordRec( (float) 63.5029, (float) 33.3333 ),
+ new CoordRec( (float) 68.2648, (float) 42.8571 ),
+ new CoordRec( (float) 68.2648, (float) 47.619 ),
+ new CoordRec( (float) 63.5029, (float) 61.9048 ),
+ new CoordRec( (float) 53.979, (float) 71.4286 ),
+ new CoordRec( (float) 39.6933, (float) 76.1905 ),
+ new CoordRec( (float) 34.9314, (float) 76.1905 ),
+ new CoordRec( (float) 20.6457, (float) 71.4286 ),
+ new CoordRec( (float) 11.1219, (float) 61.9048 ),
+ new CoordRec( (float) 6.36, (float) 47.619 ),
+ new CoordRec( (float) 6.36, (float) 42.8571 ),
+ new CoordRec( (float) 11.1219, (float) 28.5714 ),
+ new CoordRec( (float) 20.6457, (float) 19.0476 ),
+ new CoordRec( (float) 34.9314, (float) 14.2857 ),
+ new CoordRec( (float) 39.6933, (float) 14.2857 ),
+ new CoordRec( (float) 53.979, (float) 19.0476 ),
+};
+
+static final StrokeRec char64[] = {
+ new StrokeRec(8, char64_stroke0),
+ new StrokeRec(19, char64_stroke1),
+};
+
+/* char: 65 'A' */
+
+static final CoordRec[] char65_stroke0 = {
+ new CoordRec( (float) 40.5952, (float) 100 ),
+ new CoordRec( (float) 2.5, (float) 0 ),
+};
+
+static final CoordRec[] char65_stroke1 = {
+ new CoordRec( (float) 40.5952, (float) 100 ),
+ new CoordRec( (float) 78.6905, (float) 0 ),
+};
+
+static final CoordRec[] char65_stroke2 = {
+ new CoordRec( (float) 16.7857, (float) 33.3333 ),
+ new CoordRec( (float) 64.4048, (float) 33.3333 ),
+};
+
+static final StrokeRec char65[] = {
+ new StrokeRec(2, char65_stroke0),
+ new StrokeRec(2, char65_stroke1),
+ new StrokeRec(2, char65_stroke2),
+};
+
+/* char: 66 'B' */
+
+static final CoordRec[] char66_stroke0 = {
+ new CoordRec( (float) 11.42, (float) 100 ),
+ new CoordRec( (float) 11.42, (float) 0 ),
+};
+
+static final CoordRec[] char66_stroke1 = {
+ new CoordRec( (float) 11.42, (float) 100 ),
+ new CoordRec( (float) 54.2771, (float) 100 ),
+ new CoordRec( (float) 68.5629, (float) 95.2381 ),
+ new CoordRec( (float) 73.3248, (float) 90.4762 ),
+ new CoordRec( (float) 78.0867, (float) 80.9524 ),
+ new CoordRec( (float) 78.0867, (float) 71.4286 ),
+ new CoordRec( (float) 73.3248, (float) 61.9048 ),
+ new CoordRec( (float) 68.5629, (float) 57.1429 ),
+ new CoordRec( (float) 54.2771, (float) 52.381 ),
+};
+
+static final CoordRec[] char66_stroke2 = {
+ new CoordRec( (float) 11.42, (float) 52.381 ),
+ new CoordRec( (float) 54.2771, (float) 52.381 ),
+ new CoordRec( (float) 68.5629, (float) 47.619 ),
+ new CoordRec( (float) 73.3248, (float) 42.8571 ),
+ new CoordRec( (float) 78.0867, (float) 33.3333 ),
+ new CoordRec( (float) 78.0867, (float) 19.0476 ),
+ new CoordRec( (float) 73.3248, (float) 9.5238 ),
+ new CoordRec( (float) 68.5629, (float) 4.7619 ),
+ new CoordRec( (float) 54.2771, (float) 0 ),
+ new CoordRec( (float) 11.42, (float) 0 ),
+};
+
+static final StrokeRec char66[] = {
+ new StrokeRec(2, char66_stroke0),
+ new StrokeRec(9, char66_stroke1),
+ new StrokeRec(10, char66_stroke2),
+};
+
+/* char: 67 'C' */
+
+static final CoordRec[] char67_stroke0 = {
+ new CoordRec( (float) 78.0886, (float) 76.1905 ),
+ new CoordRec( (float) 73.3267, (float) 85.7143 ),
+ new CoordRec( (float) 63.8029, (float) 95.2381 ),
+ new CoordRec( (float) 54.279, (float) 100 ),
+ new CoordRec( (float) 35.2314, (float) 100 ),
+ new CoordRec( (float) 25.7076, (float) 95.2381 ),
+ new CoordRec( (float) 16.1838, (float) 85.7143 ),
+ new CoordRec( (float) 11.4219, (float) 76.1905 ),
+ new CoordRec( (float) 6.66, (float) 61.9048 ),
+ new CoordRec( (float) 6.66, (float) 38.0952 ),
+ new CoordRec( (float) 11.4219, (float) 23.8095 ),
+ new CoordRec( (float) 16.1838, (float) 14.2857 ),
+ new CoordRec( (float) 25.7076, (float) 4.7619 ),
+ new CoordRec( (float) 35.2314, (float) 0 ),
+ new CoordRec( (float) 54.279, (float) 0 ),
+ new CoordRec( (float) 63.8029, (float) 4.7619 ),
+ new CoordRec( (float) 73.3267, (float) 14.2857 ),
+ new CoordRec( (float) 78.0886, (float) 23.8095 ),
+};
+
+static final StrokeRec char67[] = {
+ new StrokeRec(18, char67_stroke0),
+};
+
+/* char: 68 'D' */
+
+static final CoordRec[] char68_stroke0 = {
+ new CoordRec( (float) 11.96, (float) 100 ),
+ new CoordRec( (float) 11.96, (float) 0 ),
+};
+
+static final CoordRec[] char68_stroke1 = {
+ new CoordRec( (float) 11.96, (float) 100 ),
+ new CoordRec( (float) 45.2933, (float) 100 ),
+ new CoordRec( (float) 59.579, (float) 95.2381 ),
+ new CoordRec( (float) 69.1029, (float) 85.7143 ),
+ new CoordRec( (float) 73.8648, (float) 76.1905 ),
+ new CoordRec( (float) 78.6267, (float) 61.9048 ),
+ new CoordRec( (float) 78.6267, (float) 38.0952 ),
+ new CoordRec( (float) 73.8648, (float) 23.8095 ),
+ new CoordRec( (float) 69.1029, (float) 14.2857 ),
+ new CoordRec( (float) 59.579, (float) 4.7619 ),
+ new CoordRec( (float) 45.2933, (float) 0 ),
+ new CoordRec( (float) 11.96, (float) 0 ),
+};
+
+static final StrokeRec char68[] = {
+ new StrokeRec(2, char68_stroke0),
+ new StrokeRec(12, char68_stroke1),
+};
+
+/* char: 69 'E' */
+
+static final CoordRec[] char69_stroke0 = {
+ new CoordRec( (float) 11.42, (float) 100 ),
+ new CoordRec( (float) 11.42, (float) 0 ),
+};
+
+static final CoordRec[] char69_stroke1 = {
+ new CoordRec( (float) 11.42, (float) 100 ),
+ new CoordRec( (float) 73.3248, (float) 100 ),
+};
+
+static final CoordRec[] char69_stroke2 = {
+ new CoordRec( (float) 11.42, (float) 52.381 ),
+ new CoordRec( (float) 49.5152, (float) 52.381 ),
+};
+
+static final CoordRec[] char69_stroke3 = {
+ new CoordRec( (float) 11.42, (float) 0 ),
+ new CoordRec( (float) 73.3248, (float) 0 ),
+};
+
+static final StrokeRec char69[] = {
+ new StrokeRec(2, char69_stroke0),
+ new StrokeRec(2, char69_stroke1),
+ new StrokeRec(2, char69_stroke2),
+ new StrokeRec(2, char69_stroke3),
+};
+
+/* char: 70 'F' */
+
+static final CoordRec[] char70_stroke0 = {
+ new CoordRec( (float) 11.42, (float) 100 ),
+ new CoordRec( (float) 11.42, (float) 0 ),
+};
+
+static final CoordRec[] char70_stroke1 = {
+ new CoordRec( (float) 11.42, (float) 100 ),
+ new CoordRec( (float) 73.3248, (float) 100 ),
+};
+
+static final CoordRec[] char70_stroke2 = {
+ new CoordRec( (float) 11.42, (float) 52.381 ),
+ new CoordRec( (float) 49.5152, (float) 52.381 ),
+};
+
+static final StrokeRec char70[] = {
+ new StrokeRec(2, char70_stroke0),
+ new StrokeRec(2, char70_stroke1),
+ new StrokeRec(2, char70_stroke2),
+};
+
+/* char: 71 'G' */
+
+static final CoordRec[] char71_stroke0 = {
+ new CoordRec( (float) 78.4886, (float) 76.1905 ),
+ new CoordRec( (float) 73.7267, (float) 85.7143 ),
+ new CoordRec( (float) 64.2029, (float) 95.2381 ),
+ new CoordRec( (float) 54.679, (float) 100 ),
+ new CoordRec( (float) 35.6314, (float) 100 ),
+ new CoordRec( (float) 26.1076, (float) 95.2381 ),
+ new CoordRec( (float) 16.5838, (float) 85.7143 ),
+ new CoordRec( (float) 11.8219, (float) 76.1905 ),
+ new CoordRec( (float) 7.06, (float) 61.9048 ),
+ new CoordRec( (float) 7.06, (float) 38.0952 ),
+ new CoordRec( (float) 11.8219, (float) 23.8095 ),
+ new CoordRec( (float) 16.5838, (float) 14.2857 ),
+ new CoordRec( (float) 26.1076, (float) 4.7619 ),
+ new CoordRec( (float) 35.6314, (float) 0 ),
+ new CoordRec( (float) 54.679, (float) 0 ),
+ new CoordRec( (float) 64.2029, (float) 4.7619 ),
+ new CoordRec( (float) 73.7267, (float) 14.2857 ),
+ new CoordRec( (float) 78.4886, (float) 23.8095 ),
+ new CoordRec( (float) 78.4886, (float) 38.0952 ),
+};
+
+static final CoordRec[] char71_stroke1 = {
+ new CoordRec( (float) 54.679, (float) 38.0952 ),
+ new CoordRec( (float) 78.4886, (float) 38.0952 ),
+};
+
+static final StrokeRec char71[] = {
+ new StrokeRec(19, char71_stroke0),
+ new StrokeRec(2, char71_stroke1),
+};
+
+/* char: 72 'H' */
+
+static final CoordRec[] char72_stroke0 = {
+ new CoordRec( (float) 11.42, (float) 100 ),
+ new CoordRec( (float) 11.42, (float) 0 ),
+};
+
+static final CoordRec[] char72_stroke1 = {
+ new CoordRec( (float) 78.0867, (float) 100 ),
+ new CoordRec( (float) 78.0867, (float) 0 ),
+};
+
+static final CoordRec[] char72_stroke2 = {
+ new CoordRec( (float) 11.42, (float) 52.381 ),
+ new CoordRec( (float) 78.0867, (float) 52.381 ),
+};
+
+static final StrokeRec char72[] = {
+ new StrokeRec(2, char72_stroke0),
+ new StrokeRec(2, char72_stroke1),
+ new StrokeRec(2, char72_stroke2),
+};
+
+/* char: 73 'I' */
+
+static final CoordRec[] char73_stroke0 = {
+ new CoordRec( (float) 10.86, (float) 100 ),
+ new CoordRec( (float) 10.86, (float) 0 ),
+};
+
+static final StrokeRec char73[] = {
+ new StrokeRec(2, char73_stroke0),
+};
+
+/* char: 74 'J' */
+
+static final CoordRec[] char74_stroke0 = {
+ new CoordRec( (float) 50.119, (float) 100 ),
+ new CoordRec( (float) 50.119, (float) 23.8095 ),
+ new CoordRec( (float) 45.3571, (float) 9.5238 ),
+ new CoordRec( (float) 40.5952, (float) 4.7619 ),
+ new CoordRec( (float) 31.0714, (float) 0 ),
+ new CoordRec( (float) 21.5476, (float) 0 ),
+ new CoordRec( (float) 12.0238, (float) 4.7619 ),
+ new CoordRec( (float) 7.2619, (float) 9.5238 ),
+ new CoordRec( (float) 2.5, (float) 23.8095 ),
+ new CoordRec( (float) 2.5, (float) 33.3333 ),
+};
+
+static final StrokeRec char74[] = {
+ new StrokeRec(10, char74_stroke0),
+};
+
+/* char: 75 'K' */
+
+static final CoordRec[] char75_stroke0 = {
+ new CoordRec( (float) 11.28, (float) 100 ),
+ new CoordRec( (float) 11.28, (float) 0 ),
+};
+
+static final CoordRec[] char75_stroke1 = {
+ new CoordRec( (float) 77.9467, (float) 100 ),
+ new CoordRec( (float) 11.28, (float) 33.3333 ),
+};
+
+static final CoordRec[] char75_stroke2 = {
+ new CoordRec( (float) 35.0895, (float) 57.1429 ),
+ new CoordRec( (float) 77.9467, (float) 0 ),
+};
+
+static final StrokeRec char75[] = {
+ new StrokeRec(2, char75_stroke0),
+ new StrokeRec(2, char75_stroke1),
+ new StrokeRec(2, char75_stroke2),
+};
+
+/* char: 76 'L' */
+
+static final CoordRec[] char76_stroke0 = {
+ new CoordRec( (float) 11.68, (float) 100 ),
+ new CoordRec( (float) 11.68, (float) 0 ),
+};
+
+static final CoordRec[] char76_stroke1 = {
+ new CoordRec( (float) 11.68, (float) 0 ),
+ new CoordRec( (float) 68.8229, (float) 0 ),
+};
+
+static final StrokeRec char76[] = {
+ new StrokeRec(2, char76_stroke0),
+ new StrokeRec(2, char76_stroke1),
+};
+
+/* char: 77 'M' */
+
+static final CoordRec[] char77_stroke0 = {
+ new CoordRec( (float) 10.86, (float) 100 ),
+ new CoordRec( (float) 10.86, (float) 0 ),
+};
+
+static final CoordRec[] char77_stroke1 = {
+ new CoordRec( (float) 10.86, (float) 100 ),
+ new CoordRec( (float) 48.9552, (float) 0 ),
+};
+
+static final CoordRec[] char77_stroke2 = {
+ new CoordRec( (float) 87.0505, (float) 100 ),
+ new CoordRec( (float) 48.9552, (float) 0 ),
+};
+
+static final CoordRec[] char77_stroke3 = {
+ new CoordRec( (float) 87.0505, (float) 100 ),
+ new CoordRec( (float) 87.0505, (float) 0 ),
+};
+
+static final StrokeRec char77[] = {
+ new StrokeRec(2, char77_stroke0),
+ new StrokeRec(2, char77_stroke1),
+ new StrokeRec(2, char77_stroke2),
+ new StrokeRec(2, char77_stroke3),
+};
+
+/* char: 78 'N' */
+
+static final CoordRec[] char78_stroke0 = {
+ new CoordRec( (float) 11.14, (float) 100 ),
+ new CoordRec( (float) 11.14, (float) 0 ),
+};
+
+static final CoordRec[] char78_stroke1 = {
+ new CoordRec( (float) 11.14, (float) 100 ),
+ new CoordRec( (float) 77.8067, (float) 0 ),
+};
+
+static final CoordRec[] char78_stroke2 = {
+ new CoordRec( (float) 77.8067, (float) 100 ),
+ new CoordRec( (float) 77.8067, (float) 0 ),
+};
+
+static final StrokeRec char78[] = {
+ new StrokeRec(2, char78_stroke0),
+ new StrokeRec(2, char78_stroke1),
+ new StrokeRec(2, char78_stroke2),
+};
+
+/* char: 79 'O' */
+
+static final CoordRec[] char79_stroke0 = {
+ new CoordRec( (float) 34.8114, (float) 100 ),
+ new CoordRec( (float) 25.2876, (float) 95.2381 ),
+ new CoordRec( (float) 15.7638, (float) 85.7143 ),
+ new CoordRec( (float) 11.0019, (float) 76.1905 ),
+ new CoordRec( (float) 6.24, (float) 61.9048 ),
+ new CoordRec( (float) 6.24, (float) 38.0952 ),
+ new CoordRec( (float) 11.0019, (float) 23.8095 ),
+ new CoordRec( (float) 15.7638, (float) 14.2857 ),
+ new CoordRec( (float) 25.2876, (float) 4.7619 ),
+ new CoordRec( (float) 34.8114, (float) 0 ),
+ new CoordRec( (float) 53.859, (float) 0 ),
+ new CoordRec( (float) 63.3829, (float) 4.7619 ),
+ new CoordRec( (float) 72.9067, (float) 14.2857 ),
+ new CoordRec( (float) 77.6686, (float) 23.8095 ),
+ new CoordRec( (float) 82.4305, (float) 38.0952 ),
+ new CoordRec( (float) 82.4305, (float) 61.9048 ),
+ new CoordRec( (float) 77.6686, (float) 76.1905 ),
+ new CoordRec( (float) 72.9067, (float) 85.7143 ),
+ new CoordRec( (float) 63.3829, (float) 95.2381 ),
+ new CoordRec( (float) 53.859, (float) 100 ),
+ new CoordRec( (float) 34.8114, (float) 100 ),
+};
+
+static final StrokeRec char79[] = {
+ new StrokeRec(21, char79_stroke0),
+};
+
+/* char: 80 'P' */
+
+static final CoordRec[] char80_stroke0 = {
+ new CoordRec( (float) 12.1, (float) 100 ),
+ new CoordRec( (float) 12.1, (float) 0 ),
+};
+
+static final CoordRec[] char80_stroke1 = {
+ new CoordRec( (float) 12.1, (float) 100 ),
+ new CoordRec( (float) 54.9571, (float) 100 ),
+ new CoordRec( (float) 69.2429, (float) 95.2381 ),
+ new CoordRec( (float) 74.0048, (float) 90.4762 ),
+ new CoordRec( (float) 78.7667, (float) 80.9524 ),
+ new CoordRec( (float) 78.7667, (float) 66.6667 ),
+ new CoordRec( (float) 74.0048, (float) 57.1429 ),
+ new CoordRec( (float) 69.2429, (float) 52.381 ),
+ new CoordRec( (float) 54.9571, (float) 47.619 ),
+ new CoordRec( (float) 12.1, (float) 47.619 ),
+};
+
+static final StrokeRec char80[] = {
+ new StrokeRec(2, char80_stroke0),
+ new StrokeRec(10, char80_stroke1),
+};
+
+/* char: 81 'Q' */
+
+static final CoordRec[] char81_stroke0 = {
+ new CoordRec( (float) 33.8714, (float) 100 ),
+ new CoordRec( (float) 24.3476, (float) 95.2381 ),
+ new CoordRec( (float) 14.8238, (float) 85.7143 ),
+ new CoordRec( (float) 10.0619, (float) 76.1905 ),
+ new CoordRec( (float) 5.3, (float) 61.9048 ),
+ new CoordRec( (float) 5.3, (float) 38.0952 ),
+ new CoordRec( (float) 10.0619, (float) 23.8095 ),
+ new CoordRec( (float) 14.8238, (float) 14.2857 ),
+ new CoordRec( (float) 24.3476, (float) 4.7619 ),
+ new CoordRec( (float) 33.8714, (float) 0 ),
+ new CoordRec( (float) 52.919, (float) 0 ),
+ new CoordRec( (float) 62.4429, (float) 4.7619 ),
+ new CoordRec( (float) 71.9667, (float) 14.2857 ),
+ new CoordRec( (float) 76.7286, (float) 23.8095 ),
+ new CoordRec( (float) 81.4905, (float) 38.0952 ),
+ new CoordRec( (float) 81.4905, (float) 61.9048 ),
+ new CoordRec( (float) 76.7286, (float) 76.1905 ),
+ new CoordRec( (float) 71.9667, (float) 85.7143 ),
+ new CoordRec( (float) 62.4429, (float) 95.2381 ),
+ new CoordRec( (float) 52.919, (float) 100 ),
+ new CoordRec( (float) 33.8714, (float) 100 ),
+};
+
+static final CoordRec[] char81_stroke1 = {
+ new CoordRec( (float) 48.1571, (float) 19.0476 ),
+ new CoordRec( (float) 76.7286, (float) -9.5238 ),
+};
+
+static final StrokeRec char81[] = {
+ new StrokeRec(21, char81_stroke0),
+ new StrokeRec(2, char81_stroke1),
+};
+
+/* char: 82 'R' */
+
+static final CoordRec[] char82_stroke0 = {
+ new CoordRec( (float) 11.68, (float) 100 ),
+ new CoordRec( (float) 11.68, (float) 0 ),
+};
+
+static final CoordRec[] char82_stroke1 = {
+ new CoordRec( (float) 11.68, (float) 100 ),
+ new CoordRec( (float) 54.5371, (float) 100 ),
+ new CoordRec( (float) 68.8229, (float) 95.2381 ),
+ new CoordRec( (float) 73.5848, (float) 90.4762 ),
+ new CoordRec( (float) 78.3467, (float) 80.9524 ),
+ new CoordRec( (float) 78.3467, (float) 71.4286 ),
+ new CoordRec( (float) 73.5848, (float) 61.9048 ),
+ new CoordRec( (float) 68.8229, (float) 57.1429 ),
+ new CoordRec( (float) 54.5371, (float) 52.381 ),
+ new CoordRec( (float) 11.68, (float) 52.381 ),
+};
+
+static final CoordRec[] char82_stroke2 = {
+ new CoordRec( (float) 45.0133, (float) 52.381 ),
+ new CoordRec( (float) 78.3467, (float) 0 ),
+};
+
+static final StrokeRec char82[] = {
+ new StrokeRec(2, char82_stroke0),
+ new StrokeRec(10, char82_stroke1),
+ new StrokeRec(2, char82_stroke2),
+};
+
+/* char: 83 'S' */
+
+static final CoordRec[] char83_stroke0 = {
+ new CoordRec( (float) 74.6667, (float) 85.7143 ),
+ new CoordRec( (float) 65.1429, (float) 95.2381 ),
+ new CoordRec( (float) 50.8571, (float) 100 ),
+ new CoordRec( (float) 31.8095, (float) 100 ),
+ new CoordRec( (float) 17.5238, (float) 95.2381 ),
+ new CoordRec( (float) 8, (float) 85.7143 ),
+ new CoordRec( (float) 8, (float) 76.1905 ),
+ new CoordRec( (float) 12.7619, (float) 66.6667 ),
+ new CoordRec( (float) 17.5238, (float) 61.9048 ),
+ new CoordRec( (float) 27.0476, (float) 57.1429 ),
+ new CoordRec( (float) 55.619, (float) 47.619 ),
+ new CoordRec( (float) 65.1429, (float) 42.8571 ),
+ new CoordRec( (float) 69.9048, (float) 38.0952 ),
+ new CoordRec( (float) 74.6667, (float) 28.5714 ),
+ new CoordRec( (float) 74.6667, (float) 14.2857 ),
+ new CoordRec( (float) 65.1429, (float) 4.7619 ),
+ new CoordRec( (float) 50.8571, (float) 0 ),
+ new CoordRec( (float) 31.8095, (float) 0 ),
+ new CoordRec( (float) 17.5238, (float) 4.7619 ),
+ new CoordRec( (float) 8, (float) 14.2857 ),
+};
+
+static final StrokeRec char83[] = {
+ new StrokeRec(20, char83_stroke0),
+};
+
+/* char: 84 'T' */
+
+static final CoordRec[] char84_stroke0 = {
+ new CoordRec( (float) 35.6933, (float) 100 ),
+ new CoordRec( (float) 35.6933, (float) 0 ),
+};
+
+static final CoordRec[] char84_stroke1 = {
+ new CoordRec( (float) 2.36, (float) 100 ),
+ new CoordRec( (float) 69.0267, (float) 100 ),
+};
+
+static final StrokeRec char84[] = {
+ new StrokeRec(2, char84_stroke0),
+ new StrokeRec(2, char84_stroke1),
+};
+
+/* char: 85 'U' */
+
+static final CoordRec[] char85_stroke0 = {
+ new CoordRec( (float) 11.54, (float) 100 ),
+ new CoordRec( (float) 11.54, (float) 28.5714 ),
+ new CoordRec( (float) 16.3019, (float) 14.2857 ),
+ new CoordRec( (float) 25.8257, (float) 4.7619 ),
+ new CoordRec( (float) 40.1114, (float) 0 ),
+ new CoordRec( (float) 49.6352, (float) 0 ),
+ new CoordRec( (float) 63.921, (float) 4.7619 ),
+ new CoordRec( (float) 73.4448, (float) 14.2857 ),
+ new CoordRec( (float) 78.2067, (float) 28.5714 ),
+ new CoordRec( (float) 78.2067, (float) 100 ),
+};
+
+static final StrokeRec char85[] = {
+ new StrokeRec(10, char85_stroke0),
+};
+
+/* char: 86 'V' */
+
+static final CoordRec[] char86_stroke0 = {
+ new CoordRec( (float) 2.36, (float) 100 ),
+ new CoordRec( (float) 40.4552, (float) 0 ),
+};
+
+static final CoordRec[] char86_stroke1 = {
+ new CoordRec( (float) 78.5505, (float) 100 ),
+ new CoordRec( (float) 40.4552, (float) 0 ),
+};
+
+static final StrokeRec char86[] = {
+ new StrokeRec(2, char86_stroke0),
+ new StrokeRec(2, char86_stroke1),
+};
+
+/* char: 87 'W' */
+
+static final CoordRec[] char87_stroke0 = {
+ new CoordRec( (float) 2.22, (float) 100 ),
+ new CoordRec( (float) 26.0295, (float) 0 ),
+};
+
+static final CoordRec[] char87_stroke1 = {
+ new CoordRec( (float) 49.839, (float) 100 ),
+ new CoordRec( (float) 26.0295, (float) 0 ),
+};
+
+static final CoordRec[] char87_stroke2 = {
+ new CoordRec( (float) 49.839, (float) 100 ),
+ new CoordRec( (float) 73.6486, (float) 0 ),
+};
+
+static final CoordRec[] char87_stroke3 = {
+ new CoordRec( (float) 97.4581, (float) 100 ),
+ new CoordRec( (float) 73.6486, (float) 0 ),
+};
+
+static final StrokeRec char87[] = {
+ new StrokeRec(2, char87_stroke0),
+ new StrokeRec(2, char87_stroke1),
+ new StrokeRec(2, char87_stroke2),
+ new StrokeRec(2, char87_stroke3),
+};
+
+/* char: 88 'X' */
+
+static final CoordRec[] char88_stroke0 = {
+ new CoordRec( (float) 2.5, (float) 100 ),
+ new CoordRec( (float) 69.1667, (float) 0 ),
+};
+
+static final CoordRec[] char88_stroke1 = {
+ new CoordRec( (float) 69.1667, (float) 100 ),
+ new CoordRec( (float) 2.5, (float) 0 ),
+};
+
+static final StrokeRec char88[] = {
+ new StrokeRec(2, char88_stroke0),
+ new StrokeRec(2, char88_stroke1),
+};
+
+/* char: 89 'Y' */
+
+static final CoordRec[] char89_stroke0 = {
+ new CoordRec( (float) 1.52, (float) 100 ),
+ new CoordRec( (float) 39.6152, (float) 52.381 ),
+ new CoordRec( (float) 39.6152, (float) 0 ),
+};
+
+static final CoordRec[] char89_stroke1 = {
+ new CoordRec( (float) 77.7105, (float) 100 ),
+ new CoordRec( (float) 39.6152, (float) 52.381 ),
+};
+
+static final StrokeRec char89[] = {
+ new StrokeRec(3, char89_stroke0),
+ new StrokeRec(2, char89_stroke1),
+};
+
+/* char: 90 'Z' */
+
+static final CoordRec[] char90_stroke0 = {
+ new CoordRec( (float) 69.1667, (float) 100 ),
+ new CoordRec( (float) 2.5, (float) 0 ),
+};
+
+static final CoordRec[] char90_stroke1 = {
+ new CoordRec( (float) 2.5, (float) 100 ),
+ new CoordRec( (float) 69.1667, (float) 100 ),
+};
+
+static final CoordRec[] char90_stroke2 = {
+ new CoordRec( (float) 2.5, (float) 0 ),
+ new CoordRec( (float) 69.1667, (float) 0 ),
+};
+
+static final StrokeRec char90[] = {
+ new StrokeRec(2, char90_stroke0),
+ new StrokeRec(2, char90_stroke1),
+ new StrokeRec(2, char90_stroke2),
+};
+
+/* char: 91 '[' */
+
+static final CoordRec[] char91_stroke0 = {
+ new CoordRec( (float) 7.78, (float) 119.048 ),
+ new CoordRec( (float) 7.78, (float) -33.3333 ),
+};
+
+static final CoordRec[] char91_stroke1 = {
+ new CoordRec( (float) 12.5419, (float) 119.048 ),
+ new CoordRec( (float) 12.5419, (float) -33.3333 ),
+};
+
+static final CoordRec[] char91_stroke2 = {
+ new CoordRec( (float) 7.78, (float) 119.048 ),
+ new CoordRec( (float) 41.1133, (float) 119.048 ),
+};
+
+static final CoordRec[] char91_stroke3 = {
+ new CoordRec( (float) 7.78, (float) -33.3333 ),
+ new CoordRec( (float) 41.1133, (float) -33.3333 ),
+};
+
+static final StrokeRec char91[] = {
+ new StrokeRec(2, char91_stroke0),
+ new StrokeRec(2, char91_stroke1),
+ new StrokeRec(2, char91_stroke2),
+ new StrokeRec(2, char91_stroke3),
+};
+
+/* char: 92 '\' */
+
+static final CoordRec[] char92_stroke0 = {
+ new CoordRec( (float) 5.84, (float) 100 ),
+ new CoordRec( (float) 72.5067, (float) -14.2857 ),
+};
+
+static final StrokeRec char92[] = {
+ new StrokeRec(2, char92_stroke0),
+};
+
+/* char: 93 ']' */
+
+static final CoordRec[] char93_stroke0 = {
+ new CoordRec( (float) 33.0114, (float) 119.048 ),
+ new CoordRec( (float) 33.0114, (float) -33.3333 ),
+};
+
+static final CoordRec[] char93_stroke1 = {
+ new CoordRec( (float) 37.7733, (float) 119.048 ),
+ new CoordRec( (float) 37.7733, (float) -33.3333 ),
+};
+
+static final CoordRec[] char93_stroke2 = {
+ new CoordRec( (float) 4.44, (float) 119.048 ),
+ new CoordRec( (float) 37.7733, (float) 119.048 ),
+};
+
+static final CoordRec[] char93_stroke3 = {
+ new CoordRec( (float) 4.44, (float) -33.3333 ),
+ new CoordRec( (float) 37.7733, (float) -33.3333 ),
+};
+
+static final StrokeRec char93[] = {
+ new StrokeRec(2, char93_stroke0),
+ new StrokeRec(2, char93_stroke1),
+ new StrokeRec(2, char93_stroke2),
+ new StrokeRec(2, char93_stroke3),
+};
+
+/* char: 94 '^' */
+
+static final CoordRec[] char94_stroke0 = {
+ new CoordRec( (float) 44.0752, (float) 109.524 ),
+ new CoordRec( (float) 5.98, (float) 42.8571 ),
+};
+
+static final CoordRec[] char94_stroke1 = {
+ new CoordRec( (float) 44.0752, (float) 109.524 ),
+ new CoordRec( (float) 82.1705, (float) 42.8571 ),
+};
+
+static final StrokeRec char94[] = {
+ new StrokeRec(2, char94_stroke0),
+ new StrokeRec(2, char94_stroke1),
+};
+
+/* char: 95 '_' */
+
+static final CoordRec[] char95_stroke0 = {
+ new CoordRec( (float) -1.1, (float) -33.3333 ),
+ new CoordRec( (float) 103.662, (float) -33.3333 ),
+ new CoordRec( (float) 103.662, (float) -28.5714 ),
+ new CoordRec( (float) -1.1, (float) -28.5714 ),
+ new CoordRec( (float) -1.1, (float) -33.3333 ),
+};
+
+static final StrokeRec char95[] = {
+ new StrokeRec(5, char95_stroke0),
+};
+
+/* char: 96 '`' */
+
+static final CoordRec[] char96_stroke0 = {
+ new CoordRec( (float) 33.0219, (float) 100 ),
+ new CoordRec( (float) 56.8314, (float) 71.4286 ),
+};
+
+static final CoordRec[] char96_stroke1 = {
+ new CoordRec( (float) 33.0219, (float) 100 ),
+ new CoordRec( (float) 28.26, (float) 95.2381 ),
+ new CoordRec( (float) 56.8314, (float) 71.4286 ),
+};
+
+static final StrokeRec char96[] = {
+ new StrokeRec(2, char96_stroke0),
+ new StrokeRec(3, char96_stroke1),
+};
+
+/* char: 97 'a' */
+
+static final CoordRec[] char97_stroke0 = {
+ new CoordRec( (float) 63.8229, (float) 66.6667 ),
+ new CoordRec( (float) 63.8229, (float) 0 ),
+};
+
+static final CoordRec[] char97_stroke1 = {
+ new CoordRec( (float) 63.8229, (float) 52.381 ),
+ new CoordRec( (float) 54.299, (float) 61.9048 ),
+ new CoordRec( (float) 44.7752, (float) 66.6667 ),
+ new CoordRec( (float) 30.4895, (float) 66.6667 ),
+ new CoordRec( (float) 20.9657, (float) 61.9048 ),
+ new CoordRec( (float) 11.4419, (float) 52.381 ),
+ new CoordRec( (float) 6.68, (float) 38.0952 ),
+ new CoordRec( (float) 6.68, (float) 28.5714 ),
+ new CoordRec( (float) 11.4419, (float) 14.2857 ),
+ new CoordRec( (float) 20.9657, (float) 4.7619 ),
+ new CoordRec( (float) 30.4895, (float) 0 ),
+ new CoordRec( (float) 44.7752, (float) 0 ),
+ new CoordRec( (float) 54.299, (float) 4.7619 ),
+ new CoordRec( (float) 63.8229, (float) 14.2857 ),
+};
+
+static final StrokeRec char97[] = {
+ new StrokeRec(2, char97_stroke0),
+ new StrokeRec(14, char97_stroke1),
+};
+
+/* char: 98 'b' */
+
+static final CoordRec[] char98_stroke0 = {
+ new CoordRec( (float) 8.76, (float) 100 ),
+ new CoordRec( (float) 8.76, (float) 0 ),
+};
+
+static final CoordRec[] char98_stroke1 = {
+ new CoordRec( (float) 8.76, (float) 52.381 ),
+ new CoordRec( (float) 18.2838, (float) 61.9048 ),
+ new CoordRec( (float) 27.8076, (float) 66.6667 ),
+ new CoordRec( (float) 42.0933, (float) 66.6667 ),
+ new CoordRec( (float) 51.6171, (float) 61.9048 ),
+ new CoordRec( (float) 61.141, (float) 52.381 ),
+ new CoordRec( (float) 65.9029, (float) 38.0952 ),
+ new CoordRec( (float) 65.9029, (float) 28.5714 ),
+ new CoordRec( (float) 61.141, (float) 14.2857 ),
+ new CoordRec( (float) 51.6171, (float) 4.7619 ),
+ new CoordRec( (float) 42.0933, (float) 0 ),
+ new CoordRec( (float) 27.8076, (float) 0 ),
+ new CoordRec( (float) 18.2838, (float) 4.7619 ),
+ new CoordRec( (float) 8.76, (float) 14.2857 ),
+};
+
+static final StrokeRec char98[] = {
+ new StrokeRec(2, char98_stroke0),
+ new StrokeRec(14, char98_stroke1),
+};
+
+/* char: 99 'c' */
+
+static final CoordRec[] char99_stroke0 = {
+ new CoordRec( (float) 62.6629, (float) 52.381 ),
+ new CoordRec( (float) 53.139, (float) 61.9048 ),
+ new CoordRec( (float) 43.6152, (float) 66.6667 ),
+ new CoordRec( (float) 29.3295, (float) 66.6667 ),
+ new CoordRec( (float) 19.8057, (float) 61.9048 ),
+ new CoordRec( (float) 10.2819, (float) 52.381 ),
+ new CoordRec( (float) 5.52, (float) 38.0952 ),
+ new CoordRec( (float) 5.52, (float) 28.5714 ),
+ new CoordRec( (float) 10.2819, (float) 14.2857 ),
+ new CoordRec( (float) 19.8057, (float) 4.7619 ),
+ new CoordRec( (float) 29.3295, (float) 0 ),
+ new CoordRec( (float) 43.6152, (float) 0 ),
+ new CoordRec( (float) 53.139, (float) 4.7619 ),
+ new CoordRec( (float) 62.6629, (float) 14.2857 ),
+};
+
+static final StrokeRec char99[] = {
+ new StrokeRec(14, char99_stroke0),
+};
+
+/* char: 100 'd' */
+
+static final CoordRec[] char100_stroke0 = {
+ new CoordRec( (float) 61.7829, (float) 100 ),
+ new CoordRec( (float) 61.7829, (float) 0 ),
+};
+
+static final CoordRec[] char100_stroke1 = {
+ new CoordRec( (float) 61.7829, (float) 52.381 ),
+ new CoordRec( (float) 52.259, (float) 61.9048 ),
+ new CoordRec( (float) 42.7352, (float) 66.6667 ),
+ new CoordRec( (float) 28.4495, (float) 66.6667 ),
+ new CoordRec( (float) 18.9257, (float) 61.9048 ),
+ new CoordRec( (float) 9.4019, (float) 52.381 ),
+ new CoordRec( (float) 4.64, (float) 38.0952 ),
+ new CoordRec( (float) 4.64, (float) 28.5714 ),
+ new CoordRec( (float) 9.4019, (float) 14.2857 ),
+ new CoordRec( (float) 18.9257, (float) 4.7619 ),
+ new CoordRec( (float) 28.4495, (float) 0 ),
+ new CoordRec( (float) 42.7352, (float) 0 ),
+ new CoordRec( (float) 52.259, (float) 4.7619 ),
+ new CoordRec( (float) 61.7829, (float) 14.2857 ),
+};
+
+static final StrokeRec char100[] = {
+ new StrokeRec(2, char100_stroke0),
+ new StrokeRec(14, char100_stroke1),
+};
+
+/* char: 101 'e' */
+
+static final CoordRec[] char101_stroke0 = {
+ new CoordRec( (float) 5.72, (float) 38.0952 ),
+ new CoordRec( (float) 62.8629, (float) 38.0952 ),
+ new CoordRec( (float) 62.8629, (float) 47.619 ),
+ new CoordRec( (float) 58.101, (float) 57.1429 ),
+ new CoordRec( (float) 53.339, (float) 61.9048 ),
+ new CoordRec( (float) 43.8152, (float) 66.6667 ),
+ new CoordRec( (float) 29.5295, (float) 66.6667 ),
+ new CoordRec( (float) 20.0057, (float) 61.9048 ),
+ new CoordRec( (float) 10.4819, (float) 52.381 ),
+ new CoordRec( (float) 5.72, (float) 38.0952 ),
+ new CoordRec( (float) 5.72, (float) 28.5714 ),
+ new CoordRec( (float) 10.4819, (float) 14.2857 ),
+ new CoordRec( (float) 20.0057, (float) 4.7619 ),
+ new CoordRec( (float) 29.5295, (float) 0 ),
+ new CoordRec( (float) 43.8152, (float) 0 ),
+ new CoordRec( (float) 53.339, (float) 4.7619 ),
+ new CoordRec( (float) 62.8629, (float) 14.2857 ),
+};
+
+static final StrokeRec char101[] = {
+ new StrokeRec(17, char101_stroke0),
+};
+
+/* char: 102 'f' */
+
+static final CoordRec[] char102_stroke0 = {
+ new CoordRec( (float) 38.7752, (float) 100 ),
+ new CoordRec( (float) 29.2514, (float) 100 ),
+ new CoordRec( (float) 19.7276, (float) 95.2381 ),
+ new CoordRec( (float) 14.9657, (float) 80.9524 ),
+ new CoordRec( (float) 14.9657, (float) 0 ),
+};
+
+static final CoordRec[] char102_stroke1 = {
+ new CoordRec( (float) 0.68, (float) 66.6667 ),
+ new CoordRec( (float) 34.0133, (float) 66.6667 ),
+};
+
+static final StrokeRec char102[] = {
+ new StrokeRec(5, char102_stroke0),
+ new StrokeRec(2, char102_stroke1),
+};
+
+/* char: 103 'g' */
+
+static final CoordRec[] char103_stroke0 = {
+ new CoordRec( (float) 62.5029, (float) 66.6667 ),
+ new CoordRec( (float) 62.5029, (float) -9.5238 ),
+ new CoordRec( (float) 57.741, (float) -23.8095 ),
+ new CoordRec( (float) 52.979, (float) -28.5714 ),
+ new CoordRec( (float) 43.4552, (float) -33.3333 ),
+ new CoordRec( (float) 29.1695, (float) -33.3333 ),
+ new CoordRec( (float) 19.6457, (float) -28.5714 ),
+};
+
+static final CoordRec[] char103_stroke1 = {
+ new CoordRec( (float) 62.5029, (float) 52.381 ),
+ new CoordRec( (float) 52.979, (float) 61.9048 ),
+ new CoordRec( (float) 43.4552, (float) 66.6667 ),
+ new CoordRec( (float) 29.1695, (float) 66.6667 ),
+ new CoordRec( (float) 19.6457, (float) 61.9048 ),
+ new CoordRec( (float) 10.1219, (float) 52.381 ),
+ new CoordRec( (float) 5.36, (float) 38.0952 ),
+ new CoordRec( (float) 5.36, (float) 28.5714 ),
+ new CoordRec( (float) 10.1219, (float) 14.2857 ),
+ new CoordRec( (float) 19.6457, (float) 4.7619 ),
+ new CoordRec( (float) 29.1695, (float) 0 ),
+ new CoordRec( (float) 43.4552, (float) 0 ),
+ new CoordRec( (float) 52.979, (float) 4.7619 ),
+ new CoordRec( (float) 62.5029, (float) 14.2857 ),
+};
+
+static final StrokeRec char103[] = {
+ new StrokeRec(7, char103_stroke0),
+ new StrokeRec(14, char103_stroke1),
+};
+
+/* char: 104 'h' */
+
+static final CoordRec[] char104_stroke0 = {
+ new CoordRec( (float) 9.6, (float) 100 ),
+ new CoordRec( (float) 9.6, (float) 0 ),
+};
+
+static final CoordRec[] char104_stroke1 = {
+ new CoordRec( (float) 9.6, (float) 47.619 ),
+ new CoordRec( (float) 23.8857, (float) 61.9048 ),
+ new CoordRec( (float) 33.4095, (float) 66.6667 ),
+ new CoordRec( (float) 47.6952, (float) 66.6667 ),
+ new CoordRec( (float) 57.219, (float) 61.9048 ),
+ new CoordRec( (float) 61.981, (float) 47.619 ),
+ new CoordRec( (float) 61.981, (float) 0 ),
+};
+
+static final StrokeRec char104[] = {
+ new StrokeRec(2, char104_stroke0),
+ new StrokeRec(7, char104_stroke1),
+};
+
+/* char: 105 'i' */
+
+static final CoordRec[] char105_stroke0 = {
+ new CoordRec( (float) 10.02, (float) 100 ),
+ new CoordRec( (float) 14.7819, (float) 95.2381 ),
+ new CoordRec( (float) 19.5438, (float) 100 ),
+ new CoordRec( (float) 14.7819, (float) 104.762 ),
+ new CoordRec( (float) 10.02, (float) 100 ),
+};
+
+static final CoordRec[] char105_stroke1 = {
+ new CoordRec( (float) 14.7819, (float) 66.6667 ),
+ new CoordRec( (float) 14.7819, (float) 0 ),
+};
+
+static final StrokeRec char105[] = {
+ new StrokeRec(5, char105_stroke0),
+ new StrokeRec(2, char105_stroke1),
+};
+
+/* char: 106 'j' */
+
+static final CoordRec[] char106_stroke0 = {
+ new CoordRec( (float) 17.3876, (float) 100 ),
+ new CoordRec( (float) 22.1495, (float) 95.2381 ),
+ new CoordRec( (float) 26.9114, (float) 100 ),
+ new CoordRec( (float) 22.1495, (float) 104.762 ),
+ new CoordRec( (float) 17.3876, (float) 100 ),
+};
+
+static final CoordRec[] char106_stroke1 = {
+ new CoordRec( (float) 22.1495, (float) 66.6667 ),
+ new CoordRec( (float) 22.1495, (float) -14.2857 ),
+ new CoordRec( (float) 17.3876, (float) -28.5714 ),
+ new CoordRec( (float) 7.8638, (float) -33.3333 ),
+ new CoordRec( (float) -1.66, (float) -33.3333 ),
+};
+
+static final StrokeRec char106[] = {
+ new StrokeRec(5, char106_stroke0),
+ new StrokeRec(5, char106_stroke1),
+};
+
+/* char: 107 'k' */
+
+static final CoordRec[] char107_stroke0 = {
+ new CoordRec( (float) 9.6, (float) 100 ),
+ new CoordRec( (float) 9.6, (float) 0 ),
+};
+
+static final CoordRec[] char107_stroke1 = {
+ new CoordRec( (float) 57.219, (float) 66.6667 ),
+ new CoordRec( (float) 9.6, (float) 19.0476 ),
+};
+
+static final CoordRec[] char107_stroke2 = {
+ new CoordRec( (float) 28.6476, (float) 38.0952 ),
+ new CoordRec( (float) 61.981, (float) 0 ),
+};
+
+static final StrokeRec char107[] = {
+ new StrokeRec(2, char107_stroke0),
+ new StrokeRec(2, char107_stroke1),
+ new StrokeRec(2, char107_stroke2),
+};
+
+/* char: 108 'l' */
+
+static final CoordRec[] char108_stroke0 = {
+ new CoordRec( (float) 10.02, (float) 100 ),
+ new CoordRec( (float) 10.02, (float) 0 ),
+};
+
+static final StrokeRec char108[] = {
+ new StrokeRec(2, char108_stroke0),
+};
+
+/* char: 109 'm' */
+
+static final CoordRec[] char109_stroke0 = {
+ new CoordRec( (float) 9.6, (float) 66.6667 ),
+ new CoordRec( (float) 9.6, (float) 0 ),
+};
+
+static final CoordRec[] char109_stroke1 = {
+ new CoordRec( (float) 9.6, (float) 47.619 ),
+ new CoordRec( (float) 23.8857, (float) 61.9048 ),
+ new CoordRec( (float) 33.4095, (float) 66.6667 ),
+ new CoordRec( (float) 47.6952, (float) 66.6667 ),
+ new CoordRec( (float) 57.219, (float) 61.9048 ),
+ new CoordRec( (float) 61.981, (float) 47.619 ),
+ new CoordRec( (float) 61.981, (float) 0 ),
+};
+
+static final CoordRec[] char109_stroke2 = {
+ new CoordRec( (float) 61.981, (float) 47.619 ),
+ new CoordRec( (float) 76.2667, (float) 61.9048 ),
+ new CoordRec( (float) 85.7905, (float) 66.6667 ),
+ new CoordRec( (float) 100.076, (float) 66.6667 ),
+ new CoordRec( (float) 109.6, (float) 61.9048 ),
+ new CoordRec( (float) 114.362, (float) 47.619 ),
+ new CoordRec( (float) 114.362, (float) 0 ),
+};
+
+static final StrokeRec char109[] = {
+ new StrokeRec(2, char109_stroke0),
+ new StrokeRec(7, char109_stroke1),
+ new StrokeRec(7, char109_stroke2),
+};
+
+/* char: 110 'n' */
+
+static final CoordRec[] char110_stroke0 = {
+ new CoordRec( (float) 9.18, (float) 66.6667 ),
+ new CoordRec( (float) 9.18, (float) 0 ),
+};
+
+static final CoordRec[] char110_stroke1 = {
+ new CoordRec( (float) 9.18, (float) 47.619 ),
+ new CoordRec( (float) 23.4657, (float) 61.9048 ),
+ new CoordRec( (float) 32.9895, (float) 66.6667 ),
+ new CoordRec( (float) 47.2752, (float) 66.6667 ),
+ new CoordRec( (float) 56.799, (float) 61.9048 ),
+ new CoordRec( (float) 61.561, (float) 47.619 ),
+ new CoordRec( (float) 61.561, (float) 0 ),
+};
+
+static final StrokeRec char110[] = {
+ new StrokeRec(2, char110_stroke0),
+ new StrokeRec(7, char110_stroke1),
+};
+
+/* char: 111 'o' */
+
+static final CoordRec[] char111_stroke0 = {
+ new CoordRec( (float) 28.7895, (float) 66.6667 ),
+ new CoordRec( (float) 19.2657, (float) 61.9048 ),
+ new CoordRec( (float) 9.7419, (float) 52.381 ),
+ new CoordRec( (float) 4.98, (float) 38.0952 ),
+ new CoordRec( (float) 4.98, (float) 28.5714 ),
+ new CoordRec( (float) 9.7419, (float) 14.2857 ),
+ new CoordRec( (float) 19.2657, (float) 4.7619 ),
+ new CoordRec( (float) 28.7895, (float) 0 ),
+ new CoordRec( (float) 43.0752, (float) 0 ),
+ new CoordRec( (float) 52.599, (float) 4.7619 ),
+ new CoordRec( (float) 62.1229, (float) 14.2857 ),
+ new CoordRec( (float) 66.8848, (float) 28.5714 ),
+ new CoordRec( (float) 66.8848, (float) 38.0952 ),
+ new CoordRec( (float) 62.1229, (float) 52.381 ),
+ new CoordRec( (float) 52.599, (float) 61.9048 ),
+ new CoordRec( (float) 43.0752, (float) 66.6667 ),
+ new CoordRec( (float) 28.7895, (float) 66.6667 ),
+};
+
+static final StrokeRec char111[] = {
+ new StrokeRec(17, char111_stroke0),
+};
+
+/* char: 112 'p' */
+
+static final CoordRec[] char112_stroke0 = {
+ new CoordRec( (float) 9.46, (float) 66.6667 ),
+ new CoordRec( (float) 9.46, (float) -33.3333 ),
+};
+
+static final CoordRec[] char112_stroke1 = {
+ new CoordRec( (float) 9.46, (float) 52.381 ),
+ new CoordRec( (float) 18.9838, (float) 61.9048 ),
+ new CoordRec( (float) 28.5076, (float) 66.6667 ),
+ new CoordRec( (float) 42.7933, (float) 66.6667 ),
+ new CoordRec( (float) 52.3171, (float) 61.9048 ),
+ new CoordRec( (float) 61.841, (float) 52.381 ),
+ new CoordRec( (float) 66.6029, (float) 38.0952 ),
+ new CoordRec( (float) 66.6029, (float) 28.5714 ),
+ new CoordRec( (float) 61.841, (float) 14.2857 ),
+ new CoordRec( (float) 52.3171, (float) 4.7619 ),
+ new CoordRec( (float) 42.7933, (float) 0 ),
+ new CoordRec( (float) 28.5076, (float) 0 ),
+ new CoordRec( (float) 18.9838, (float) 4.7619 ),
+ new CoordRec( (float) 9.46, (float) 14.2857 ),
+};
+
+static final StrokeRec char112[] = {
+ new StrokeRec(2, char112_stroke0),
+ new StrokeRec(14, char112_stroke1),
+};
+
+/* char: 113 'q' */
+
+static final CoordRec[] char113_stroke0 = {
+ new CoordRec( (float) 61.9829, (float) 66.6667 ),
+ new CoordRec( (float) 61.9829, (float) -33.3333 ),
+};
+
+static final CoordRec[] char113_stroke1 = {
+ new CoordRec( (float) 61.9829, (float) 52.381 ),
+ new CoordRec( (float) 52.459, (float) 61.9048 ),
+ new CoordRec( (float) 42.9352, (float) 66.6667 ),
+ new CoordRec( (float) 28.6495, (float) 66.6667 ),
+ new CoordRec( (float) 19.1257, (float) 61.9048 ),
+ new CoordRec( (float) 9.6019, (float) 52.381 ),
+ new CoordRec( (float) 4.84, (float) 38.0952 ),
+ new CoordRec( (float) 4.84, (float) 28.5714 ),
+ new CoordRec( (float) 9.6019, (float) 14.2857 ),
+ new CoordRec( (float) 19.1257, (float) 4.7619 ),
+ new CoordRec( (float) 28.6495, (float) 0 ),
+ new CoordRec( (float) 42.9352, (float) 0 ),
+ new CoordRec( (float) 52.459, (float) 4.7619 ),
+ new CoordRec( (float) 61.9829, (float) 14.2857 ),
+};
+
+static final StrokeRec char113[] = {
+ new StrokeRec(2, char113_stroke0),
+ new StrokeRec(14, char113_stroke1),
+};
+
+/* char: 114 'r' */
+
+static final CoordRec[] char114_stroke0 = {
+ new CoordRec( (float) 9.46, (float) 66.6667 ),
+ new CoordRec( (float) 9.46, (float) 0 ),
+};
+
+static final CoordRec[] char114_stroke1 = {
+ new CoordRec( (float) 9.46, (float) 38.0952 ),
+ new CoordRec( (float) 14.2219, (float) 52.381 ),
+ new CoordRec( (float) 23.7457, (float) 61.9048 ),
+ new CoordRec( (float) 33.2695, (float) 66.6667 ),
+ new CoordRec( (float) 47.5552, (float) 66.6667 ),
+};
+
+static final StrokeRec char114[] = {
+ new StrokeRec(2, char114_stroke0),
+ new StrokeRec(5, char114_stroke1),
+};
+
+/* char: 115 's' */
+
+static final CoordRec[] char115_stroke0 = {
+ new CoordRec( (float) 57.081, (float) 52.381 ),
+ new CoordRec( (float) 52.319, (float) 61.9048 ),
+ new CoordRec( (float) 38.0333, (float) 66.6667 ),
+ new CoordRec( (float) 23.7476, (float) 66.6667 ),
+ new CoordRec( (float) 9.4619, (float) 61.9048 ),
+ new CoordRec( (float) 4.7, (float) 52.381 ),
+ new CoordRec( (float) 9.4619, (float) 42.8571 ),
+ new CoordRec( (float) 18.9857, (float) 38.0952 ),
+ new CoordRec( (float) 42.7952, (float) 33.3333 ),
+ new CoordRec( (float) 52.319, (float) 28.5714 ),
+ new CoordRec( (float) 57.081, (float) 19.0476 ),
+ new CoordRec( (float) 57.081, (float) 14.2857 ),
+ new CoordRec( (float) 52.319, (float) 4.7619 ),
+ new CoordRec( (float) 38.0333, (float) 0 ),
+ new CoordRec( (float) 23.7476, (float) 0 ),
+ new CoordRec( (float) 9.4619, (float) 4.7619 ),
+ new CoordRec( (float) 4.7, (float) 14.2857 ),
+};
+
+static final StrokeRec char115[] = {
+ new StrokeRec(17, char115_stroke0),
+};
+
+/* char: 116 't' */
+
+static final CoordRec[] char116_stroke0 = {
+ new CoordRec( (float) 14.8257, (float) 100 ),
+ new CoordRec( (float) 14.8257, (float) 19.0476 ),
+ new CoordRec( (float) 19.5876, (float) 4.7619 ),
+ new CoordRec( (float) 29.1114, (float) 0 ),
+ new CoordRec( (float) 38.6352, (float) 0 ),
+};
+
+static final CoordRec[] char116_stroke1 = {
+ new CoordRec( (float) 0.54, (float) 66.6667 ),
+ new CoordRec( (float) 33.8733, (float) 66.6667 ),
+};
+
+static final StrokeRec char116[] = {
+ new StrokeRec(5, char116_stroke0),
+ new StrokeRec(2, char116_stroke1),
+};
+
+/* char: 117 'u' */
+
+static final CoordRec[] char117_stroke0 = {
+ new CoordRec( (float) 9.46, (float) 66.6667 ),
+ new CoordRec( (float) 9.46, (float) 19.0476 ),
+ new CoordRec( (float) 14.2219, (float) 4.7619 ),
+ new CoordRec( (float) 23.7457, (float) 0 ),
+ new CoordRec( (float) 38.0314, (float) 0 ),
+ new CoordRec( (float) 47.5552, (float) 4.7619 ),
+ new CoordRec( (float) 61.841, (float) 19.0476 ),
+};
+
+static final CoordRec[] char117_stroke1 = {
+ new CoordRec( (float) 61.841, (float) 66.6667 ),
+ new CoordRec( (float) 61.841, (float) 0 ),
+};
+
+static final StrokeRec char117[] = {
+ new StrokeRec(7, char117_stroke0),
+ new StrokeRec(2, char117_stroke1),
+};
+
+/* char: 118 'v' */
+
+static final CoordRec[] char118_stroke0 = {
+ new CoordRec( (float) 1.8, (float) 66.6667 ),
+ new CoordRec( (float) 30.3714, (float) 0 ),
+};
+
+static final CoordRec[] char118_stroke1 = {
+ new CoordRec( (float) 58.9429, (float) 66.6667 ),
+ new CoordRec( (float) 30.3714, (float) 0 ),
+};
+
+static final StrokeRec char118[] = {
+ new StrokeRec(2, char118_stroke0),
+ new StrokeRec(2, char118_stroke1),
+};
+
+/* char: 119 'w' */
+
+static final CoordRec[] char119_stroke0 = {
+ new CoordRec( (float) 2.5, (float) 66.6667 ),
+ new CoordRec( (float) 21.5476, (float) 0 ),
+};
+
+static final CoordRec[] char119_stroke1 = {
+ new CoordRec( (float) 40.5952, (float) 66.6667 ),
+ new CoordRec( (float) 21.5476, (float) 0 ),
+};
+
+static final CoordRec[] char119_stroke2 = {
+ new CoordRec( (float) 40.5952, (float) 66.6667 ),
+ new CoordRec( (float) 59.6429, (float) 0 ),
+};
+
+static final CoordRec[] char119_stroke3 = {
+ new CoordRec( (float) 78.6905, (float) 66.6667 ),
+ new CoordRec( (float) 59.6429, (float) 0 ),
+};
+
+static final StrokeRec char119[] = {
+ new StrokeRec(2, char119_stroke0),
+ new StrokeRec(2, char119_stroke1),
+ new StrokeRec(2, char119_stroke2),
+ new StrokeRec(2, char119_stroke3),
+};
+
+/* char: 120 'x' */
+
+static final CoordRec[] char120_stroke0 = {
+ new CoordRec( (float) 1.66, (float) 66.6667 ),
+ new CoordRec( (float) 54.041, (float) 0 ),
+};
+
+static final CoordRec[] char120_stroke1 = {
+ new CoordRec( (float) 54.041, (float) 66.6667 ),
+ new CoordRec( (float) 1.66, (float) 0 ),
+};
+
+static final StrokeRec char120[] = {
+ new StrokeRec(2, char120_stroke0),
+ new StrokeRec(2, char120_stroke1),
+};
+
+/* char: 121 'y' */
+
+static final CoordRec[] char121_stroke0 = {
+ new CoordRec( (float) 6.5619, (float) 66.6667 ),
+ new CoordRec( (float) 35.1333, (float) 0 ),
+};
+
+static final CoordRec[] char121_stroke1 = {
+ new CoordRec( (float) 63.7048, (float) 66.6667 ),
+ new CoordRec( (float) 35.1333, (float) 0 ),
+ new CoordRec( (float) 25.6095, (float) -19.0476 ),
+ new CoordRec( (float) 16.0857, (float) -28.5714 ),
+ new CoordRec( (float) 6.5619, (float) -33.3333 ),
+ new CoordRec( (float) 1.8, (float) -33.3333 ),
+};
+
+static final StrokeRec char121[] = {
+ new StrokeRec(2, char121_stroke0),
+ new StrokeRec(6, char121_stroke1),
+};
+
+/* char: 122 'z' */
+
+static final CoordRec[] char122_stroke0 = {
+ new CoordRec( (float) 56.821, (float) 66.6667 ),
+ new CoordRec( (float) 4.44, (float) 0 ),
+};
+
+static final CoordRec[] char122_stroke1 = {
+ new CoordRec( (float) 4.44, (float) 66.6667 ),
+ new CoordRec( (float) 56.821, (float) 66.6667 ),
+};
+
+static final CoordRec[] char122_stroke2 = {
+ new CoordRec( (float) 4.44, (float) 0 ),
+ new CoordRec( (float) 56.821, (float) 0 ),
+};
+
+static final StrokeRec char122[] = {
+ new StrokeRec(2, char122_stroke0),
+ new StrokeRec(2, char122_stroke1),
+ new StrokeRec(2, char122_stroke2),
+};
+
+/* char: 123 '{' */
+
+static final CoordRec[] char123_stroke0 = {
+ new CoordRec( (float) 31.1895, (float) 119.048 ),
+ new CoordRec( (float) 21.6657, (float) 114.286 ),
+ new CoordRec( (float) 16.9038, (float) 109.524 ),
+ new CoordRec( (float) 12.1419, (float) 100 ),
+ new CoordRec( (float) 12.1419, (float) 90.4762 ),
+ new CoordRec( (float) 16.9038, (float) 80.9524 ),
+ new CoordRec( (float) 21.6657, (float) 76.1905 ),
+ new CoordRec( (float) 26.4276, (float) 66.6667 ),
+ new CoordRec( (float) 26.4276, (float) 57.1429 ),
+ new CoordRec( (float) 16.9038, (float) 47.619 ),
+};
+
+static final CoordRec[] char123_stroke1 = {
+ new CoordRec( (float) 21.6657, (float) 114.286 ),
+ new CoordRec( (float) 16.9038, (float) 104.762 ),
+ new CoordRec( (float) 16.9038, (float) 95.2381 ),
+ new CoordRec( (float) 21.6657, (float) 85.7143 ),
+ new CoordRec( (float) 26.4276, (float) 80.9524 ),
+ new CoordRec( (float) 31.1895, (float) 71.4286 ),
+ new CoordRec( (float) 31.1895, (float) 61.9048 ),
+ new CoordRec( (float) 26.4276, (float) 52.381 ),
+ new CoordRec( (float) 7.38, (float) 42.8571 ),
+ new CoordRec( (float) 26.4276, (float) 33.3333 ),
+ new CoordRec( (float) 31.1895, (float) 23.8095 ),
+ new CoordRec( (float) 31.1895, (float) 14.2857 ),
+ new CoordRec( (float) 26.4276, (float) 4.7619 ),
+ new CoordRec( (float) 21.6657, (float) 0 ),
+ new CoordRec( (float) 16.9038, (float) -9.5238 ),
+ new CoordRec( (float) 16.9038, (float) -19.0476 ),
+ new CoordRec( (float) 21.6657, (float) -28.5714 ),
+};
+
+static final CoordRec[] char123_stroke2 = {
+ new CoordRec( (float) 16.9038, (float) 38.0952 ),
+ new CoordRec( (float) 26.4276, (float) 28.5714 ),
+ new CoordRec( (float) 26.4276, (float) 19.0476 ),
+ new CoordRec( (float) 21.6657, (float) 9.5238 ),
+ new CoordRec( (float) 16.9038, (float) 4.7619 ),
+ new CoordRec( (float) 12.1419, (float) -4.7619 ),
+ new CoordRec( (float) 12.1419, (float) -14.2857 ),
+ new CoordRec( (float) 16.9038, (float) -23.8095 ),
+ new CoordRec( (float) 21.6657, (float) -28.5714 ),
+ new CoordRec( (float) 31.1895, (float) -33.3333 ),
+};
+
+static final StrokeRec char123[] = {
+ new StrokeRec(10, char123_stroke0),
+ new StrokeRec(17, char123_stroke1),
+ new StrokeRec(10, char123_stroke2),
+};
+
+/* char: 124 '|' */
+
+static final CoordRec[] char124_stroke0 = {
+ new CoordRec( (float) 11.54, (float) 119.048 ),
+ new CoordRec( (float) 11.54, (float) -33.3333 ),
+};
+
+static final StrokeRec char124[] = {
+ new StrokeRec(2, char124_stroke0),
+};
+
+/* char: 125 '}' */
+
+static final CoordRec[] char125_stroke0 = {
+ new CoordRec( (float) 9.18, (float) 119.048 ),
+ new CoordRec( (float) 18.7038, (float) 114.286 ),
+ new CoordRec( (float) 23.4657, (float) 109.524 ),
+ new CoordRec( (float) 28.2276, (float) 100 ),
+ new CoordRec( (float) 28.2276, (float) 90.4762 ),
+ new CoordRec( (float) 23.4657, (float) 80.9524 ),
+ new CoordRec( (float) 18.7038, (float) 76.1905 ),
+ new CoordRec( (float) 13.9419, (float) 66.6667 ),
+ new CoordRec( (float) 13.9419, (float) 57.1429 ),
+ new CoordRec( (float) 23.4657, (float) 47.619 ),
+};
+
+static final CoordRec[] char125_stroke1 = {
+ new CoordRec( (float) 18.7038, (float) 114.286 ),
+ new CoordRec( (float) 23.4657, (float) 104.762 ),
+ new CoordRec( (float) 23.4657, (float) 95.2381 ),
+ new CoordRec( (float) 18.7038, (float) 85.7143 ),
+ new CoordRec( (float) 13.9419, (float) 80.9524 ),
+ new CoordRec( (float) 9.18, (float) 71.4286 ),
+ new CoordRec( (float) 9.18, (float) 61.9048 ),
+ new CoordRec( (float) 13.9419, (float) 52.381 ),
+ new CoordRec( (float) 32.9895, (float) 42.8571 ),
+ new CoordRec( (float) 13.9419, (float) 33.3333 ),
+ new CoordRec( (float) 9.18, (float) 23.8095 ),
+ new CoordRec( (float) 9.18, (float) 14.2857 ),
+ new CoordRec( (float) 13.9419, (float) 4.7619 ),
+ new CoordRec( (float) 18.7038, (float) 0 ),
+ new CoordRec( (float) 23.4657, (float) -9.5238 ),
+ new CoordRec( (float) 23.4657, (float) -19.0476 ),
+ new CoordRec( (float) 18.7038, (float) -28.5714 ),
+};
+
+static final CoordRec[] char125_stroke2 = {
+ new CoordRec( (float) 23.4657, (float) 38.0952 ),
+ new CoordRec( (float) 13.9419, (float) 28.5714 ),
+ new CoordRec( (float) 13.9419, (float) 19.0476 ),
+ new CoordRec( (float) 18.7038, (float) 9.5238 ),
+ new CoordRec( (float) 23.4657, (float) 4.7619 ),
+ new CoordRec( (float) 28.2276, (float) -4.7619 ),
+ new CoordRec( (float) 28.2276, (float) -14.2857 ),
+ new CoordRec( (float) 23.4657, (float) -23.8095 ),
+ new CoordRec( (float) 18.7038, (float) -28.5714 ),
+ new CoordRec( (float) 9.18, (float) -33.3333 ),
+};
+
+static final StrokeRec char125[] = {
+ new StrokeRec(10, char125_stroke0),
+ new StrokeRec(17, char125_stroke1),
+ new StrokeRec(10, char125_stroke2),
+};
+
+/* char: 126 '~' */
+
+static final CoordRec[] char126_stroke0 = {
+ new CoordRec( (float) 2.92, (float) 28.5714 ),
+ new CoordRec( (float) 2.92, (float) 38.0952 ),
+ new CoordRec( (float) 7.6819, (float) 52.381 ),
+ new CoordRec( (float) 17.2057, (float) 57.1429 ),
+ new CoordRec( (float) 26.7295, (float) 57.1429 ),
+ new CoordRec( (float) 36.2533, (float) 52.381 ),
+ new CoordRec( (float) 55.301, (float) 38.0952 ),
+ new CoordRec( (float) 64.8248, (float) 33.3333 ),
+ new CoordRec( (float) 74.3486, (float) 33.3333 ),
+ new CoordRec( (float) 83.8724, (float) 38.0952 ),
+ new CoordRec( (float) 88.6343, (float) 47.619 ),
+};
+
+static final CoordRec[] char126_stroke1 = {
+ new CoordRec( (float) 2.92, (float) 38.0952 ),
+ new CoordRec( (float) 7.6819, (float) 47.619 ),
+ new CoordRec( (float) 17.2057, (float) 52.381 ),
+ new CoordRec( (float) 26.7295, (float) 52.381 ),
+ new CoordRec( (float) 36.2533, (float) 47.619 ),
+ new CoordRec( (float) 55.301, (float) 33.3333 ),
+ new CoordRec( (float) 64.8248, (float) 28.5714 ),
+ new CoordRec( (float) 74.3486, (float) 28.5714 ),
+ new CoordRec( (float) 83.8724, (float) 33.3333 ),
+ new CoordRec( (float) 88.6343, (float) 47.619 ),
+ new CoordRec( (float) 88.6343, (float) 57.1429 ),
+};
+
+static final StrokeRec char126[] = {
+ new StrokeRec(11, char126_stroke0),
+ new StrokeRec(11, char126_stroke1),
+};
+
+/* char: 127 */
+
+static final CoordRec[] char127_stroke0 = {
+ new CoordRec( (float) 52.381, (float) 100 ),
+ new CoordRec( (float) 14.2857, (float) -33.3333 ),
+};
+
+static final CoordRec[] char127_stroke1 = {
+ new CoordRec( (float) 28.5714, (float) 66.6667 ),
+ new CoordRec( (float) 14.2857, (float) 61.9048 ),
+ new CoordRec( (float) 4.7619, (float) 52.381 ),
+ new CoordRec( (float) 0, (float) 38.0952 ),
+ new CoordRec( (float) 0, (float) 23.8095 ),
+ new CoordRec( (float) 4.7619, (float) 14.2857 ),
+ new CoordRec( (float) 14.2857, (float) 4.7619 ),
+ new CoordRec( (float) 28.5714, (float) 0 ),
+ new CoordRec( (float) 38.0952, (float) 0 ),
+ new CoordRec( (float) 52.381, (float) 4.7619 ),
+ new CoordRec( (float) 61.9048, (float) 14.2857 ),
+ new CoordRec( (float) 66.6667, (float) 28.5714 ),
+ new CoordRec( (float) 66.6667, (float) 42.8571 ),
+ new CoordRec( (float) 61.9048, (float) 52.381 ),
+ new CoordRec( (float) 52.381, (float) 61.9048 ),
+ new CoordRec( (float) 38.0952, (float) 66.6667 ),
+ new CoordRec( (float) 28.5714, (float) 66.6667 ),
+};
+
+static final StrokeRec char127[] = {
+ new StrokeRec(2, char127_stroke0),
+ new StrokeRec(17, char127_stroke1),
+};
+
+static final StrokeCharRec chars[] = {
+ new StrokeCharRec( 0, /* char0 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char1 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char2 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char3 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char4 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char5 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char6 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char7 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char8 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char9 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char10 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char11 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char12 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char13 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char14 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char15 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char16 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char17 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char18 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char19 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char20 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char21 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char22 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char23 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char24 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char25 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char26 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char27 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char28 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char29 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char30 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char31 */ null, (float)0, (float)0 ),
+ new StrokeCharRec( 0, /* char32 */ null, (float)52.381, (float)104.762 ),
+ new StrokeCharRec( 2, char33, (float)13.3819, (float)26.6238 ),
+ new StrokeCharRec( 2, char34, (float)23.0676, (float)51.4352 ),
+ new StrokeCharRec( 4, char35, (float)36.5333, (float)79.4886 ),
+ new StrokeCharRec( 3, char36, (float)38.1533, (float)76.2067 ),
+ new StrokeCharRec( 3, char37, (float)49.2171, (float)96.5743 ),
+ new StrokeCharRec( 1, char38, (float)53.599, (float)101.758 ),
+ new StrokeCharRec( 1, char39, (float)4.44, (float)13.62 ),
+ new StrokeCharRec( 1, char40, (float)21.8657, (float)47.1733 ),
+ new StrokeCharRec( 1, char41, (float)24.3276, (float)47.5333 ),
+ new StrokeCharRec( 3, char42, (float)30.7695, (float)59.439 ),
+ new StrokeCharRec( 2, char43, (float)48.8371, (float)97.2543 ),
+ new StrokeCharRec( 1, char44, (float)13.5219, (float)26.0638 ),
+ new StrokeCharRec( 1, char45, (float)50.2371, (float)100.754 ),
+ new StrokeCharRec( 1, char46, (float)13.1019, (float)26.4838 ),
+ new StrokeCharRec( 1, char47, (float)40.5733, (float)82.1067 ),
+ new StrokeCharRec( 1, char48, (float)38.3133, (float)77.0667 ),
+ new StrokeCharRec( 1, char49, (float)30.8676, (float)66.5295 ),
+ new StrokeCharRec( 1, char50, (float)38.7533, (float)77.6467 ),
+ new StrokeCharRec( 1, char51, (float)38.3333, (float)77.0467 ),
+ new StrokeCharRec( 2, char52, (float)37.2133, (float)80.1686 ),
+ new StrokeCharRec( 1, char53, (float)38.1933, (float)77.6867 ),
+ new StrokeCharRec( 1, char54, (float)34.1514, (float)73.8048 ),
+ new StrokeCharRec( 2, char55, (float)38.8933, (float)77.2267 ),
+ new StrokeCharRec( 1, char56, (float)38.9333, (float)77.6667 ),
+ new StrokeCharRec( 1, char57, (float)39.9333, (float)74.0648 ),
+ new StrokeCharRec( 2, char58, (float)14.0819, (float)26.2238 ),
+ new StrokeCharRec( 2, char59, (float)12.9619, (float)26.3038 ),
+ new StrokeCharRec( 1, char60, (float)41.1552, (float)81.6105 ),
+ new StrokeCharRec( 2, char61, (float)48.5571, (float)97.2543 ),
+ new StrokeCharRec( 1, char62, (float)40.8752, (float)81.6105 ),
+ new StrokeCharRec( 2, char63, (float)36.9914, (float)73.9029 ),
+ new StrokeCharRec( 2, char64, (float)34.9314, (float)74.3648 ),
+ new StrokeCharRec( 3, char65, (float)40.5952, (float)80.4905 ),
+ new StrokeCharRec( 3, char66, (float)44.7533, (float)83.6267 ),
+ new StrokeCharRec( 1, char67, (float)39.9933, (float)84.4886 ),
+ new StrokeCharRec( 2, char68, (float)45.2933, (float)85.2867 ),
+ new StrokeCharRec( 4, char69, (float)39.9914, (float)78.1848 ),
+ new StrokeCharRec( 3, char70, (float)39.9914, (float)78.7448 ),
+ new StrokeCharRec( 2, char71, (float)40.3933, (float)89.7686 ),
+ new StrokeCharRec( 3, char72, (float)44.7533, (float)89.0867 ),
+ new StrokeCharRec( 1, char73, (float)10.86, (float)21.3 ),
+ new StrokeCharRec( 1, char74, (float)31.0714, (float)59.999 ),
+ new StrokeCharRec( 3, char75, (float)44.6133, (float)79.3267 ),
+ new StrokeCharRec( 2, char76, (float)40.2514, (float)71.3229 ),
+ new StrokeCharRec( 4, char77, (float)48.9552, (float)97.2105 ),
+ new StrokeCharRec( 3, char78, (float)44.4733, (float)88.8067 ),
+ new StrokeCharRec( 1, char79, (float)44.3352, (float)88.8305 ),
+ new StrokeCharRec( 2, char80, (float)45.4333, (float)85.6667 ),
+ new StrokeCharRec( 2, char81, (float)43.3952, (float)88.0905 ),
+ new StrokeCharRec( 3, char82, (float)45.0133, (float)82.3667 ),
+ new StrokeCharRec( 1, char83, (float)41.3333, (float)80.8267 ),
+ new StrokeCharRec( 2, char84, (float)35.6933, (float)71.9467 ),
+ new StrokeCharRec( 1, char85, (float)44.8733, (float)89.4867 ),
+ new StrokeCharRec( 2, char86, (float)40.4552, (float)81.6105 ),
+ new StrokeCharRec( 4, char87, (float)49.839, (float)100.518 ),
+ new StrokeCharRec( 2, char88, (float)35.8333, (float)72.3667 ),
+ new StrokeCharRec( 2, char89, (float)39.6152, (float)79.6505 ),
+ new StrokeCharRec( 3, char90, (float)35.8333, (float)73.7467 ),
+ new StrokeCharRec( 4, char91, (float)22.0657, (float)46.1133 ),
+ new StrokeCharRec( 1, char92, (float)39.1733, (float)78.2067 ),
+ new StrokeCharRec( 4, char93, (float)23.4876, (float)46.3933 ),
+ new StrokeCharRec( 2, char94, (float)44.0752, (float)90.2305 ),
+ new StrokeCharRec( 1, char95, (float)51.281, (float)104.062 ),
+ new StrokeCharRec( 2, char96, (float)42.5457, (float)83.5714 ),
+ new StrokeCharRec( 2, char97, (float)35.2514, (float)66.6029 ),
+ new StrokeCharRec( 2, char98, (float)37.3314, (float)70.4629 ),
+ new StrokeCharRec( 1, char99, (float)34.0914, (float)68.9229 ),
+ new StrokeCharRec( 2, char100, (float)33.2114, (float)70.2629 ),
+ new StrokeCharRec( 1, char101, (float)34.2914, (float)68.5229 ),
+ new StrokeCharRec( 2, char102, (float)14.9657, (float)38.6552 ),
+ new StrokeCharRec( 2, char103, (float)33.9314, (float)70.9829 ),
+ new StrokeCharRec( 2, char104, (float)33.4095, (float)71.021 ),
+ new StrokeCharRec( 2, char105, (float)14.7819, (float)28.8638 ),
+ new StrokeCharRec( 2, char106, (float)17.3876, (float)36.2314 ),
+ new StrokeCharRec( 3, char107, (float)33.4095, (float)62.521 ),
+ new StrokeCharRec( 1, char108, (float)10.02, (float)19.34 ),
+ new StrokeCharRec( 3, char109, (float)61.981, (float)123.962 ),
+ new StrokeCharRec( 2, char110, (float)32.9895, (float)70.881 ),
+ new StrokeCharRec( 1, char111, (float)33.5514, (float)71.7448 ),
+ new StrokeCharRec( 2, char112, (float)38.0314, (float)70.8029 ),
+ new StrokeCharRec( 2, char113, (float)33.4114, (float)70.7429 ),
+ new StrokeCharRec( 2, char114, (float)23.7457, (float)49.4952 ),
+ new StrokeCharRec( 1, char115, (float)28.5095, (float)62.321 ),
+ new StrokeCharRec( 2, char116, (float)14.8257, (float)39.3152 ),
+ new StrokeCharRec( 2, char117, (float)33.2695, (float)71.161 ),
+ new StrokeCharRec( 2, char118, (float)30.3714, (float)60.6029 ),
+ new StrokeCharRec( 4, char119, (float)40.5952, (float)80.4905 ),
+ new StrokeCharRec( 2, char120, (float)25.4695, (float)56.401 ),
+ new StrokeCharRec( 2, char121, (float)35.1333, (float)66.0648 ),
+ new StrokeCharRec( 3, char122, (float)28.2495, (float)61.821 ),
+ new StrokeCharRec( 3, char123, (float)21.6657, (float)41.6295 ),
+ new StrokeCharRec( 1, char124, (float)11.54, (float)23.78 ),
+ new StrokeCharRec( 3, char125, (float)18.7038, (float)41.4695 ),
+ new StrokeCharRec( 2, char126, (float)45.7771, (float)91.2743 ),
+ new StrokeCharRec( 2, char127, (float)33.3333, (float)66.6667 ),
+};
+
+final static StrokeFontRec fontinfo = new StrokeFontRec( "Roman", 128, chars, (float)119.048, (float)-33.3333 );
+
+ static public StrokeFontRec getStrokeFontRec() {
+ return fontinfo;
+ }
+}
diff --git a/gl4java/utils/glut/fonts/stroke.h b/gl4java/utils/glut/fonts/stroke.h
new file mode 100644
index 0000000..fc29680
--- /dev/null
+++ b/gl4java/utils/glut/fonts/stroke.h
@@ -0,0 +1,134 @@
+/* $XConsortium: wfont.h,v 5.1 91/02/16 09:46:37 rws Exp $ */
+
+/*****************************************************************
+Copyright (c) 1989,1990, 1991 by Sun Microsystems, Inc. and the X Consortium.
+
+ All Rights Reserved
+
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
+provided that the above copyright notice appear in all copies and that
+both that copyright notice and this permission notice appear in
+supporting documentation, and that the names of Sun Microsystems,
+the X Consortium, and MIT not be used in advertising or publicity
+pertaining to distribution of the software without specific, written
+prior permission.
+
+SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
+SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
+SOFTWARE.
+
+******************************************************************/
+
+#ifndef WFONT_INCLUDED
+#define WFONT_INCLUDED
+
+#define WFONT_MAGIC 0x813
+#define WFONT_MAGIC_PLUS 0x715
+#define WFONT_MAGIC_PEX 0x70686e74
+#define START_PROPS 0x100
+#define START_DISPATCH(_num_props) (START_PROPS + 160 * _num_props)
+#define START_PATH(_num_ch_, _num_props) (START_DISPATCH(_num_props) + sizeof(Dispatch) * _num_ch_)
+#define NUM_DISPATCH 128
+
+typedef struct {
+ unsigned short x;
+ unsigned short y;
+} Path_point2dpx;
+
+typedef struct {
+ float x;
+ float y;
+} Path_point2df;
+
+typedef struct {
+ int x;
+ int y;
+ int z;
+} Path_point3di;
+
+typedef struct {
+ float x;
+ float y;
+ float z;
+} Path_point3df;
+
+typedef struct {
+ float x;
+ float y;
+ float z;
+ float w;
+} Path_point4df;
+
+typedef union {
+ Path_point2dpx *pt2dpx;
+ Path_point2df *pt2df;
+ Path_point3di *pt3di;
+ Path_point3df *pt3df;
+ Path_point4df *pt4df;
+} Path_pt_ptr;
+
+typedef enum {
+ PATH_2DF,
+ PATH_2DPX,
+ PATH_3DF,
+ PATH_3DI,
+ PATH_4DF
+} Path_type;
+
+typedef struct {
+ int n_pts; /* number of points in the subpath */
+ Path_pt_ptr pts; /* pointer to them */
+ int closed; /* true if the subpath is closed */
+ int dcmp_flag; /* flag for pgon dcmp, pgon type
+ * and dcmped triangle type */
+} Path_subpath;
+
+typedef struct {
+ Path_type type; /* type of vertices in this path */
+ int n_subpaths; /* number of subpaths */
+ int n_vertices; /* total number of vertices */
+ Path_subpath *subpaths; /* array of subpaths */
+} Path;
+
+typedef Path *Path_handle;
+
+typedef struct {
+ char propname[80]; /* font property name */
+ char propvalue[80]; /* font property value */
+} Property;
+
+typedef struct {
+ int magic; /* magic number */
+ char name[80]; /* name of this font */
+ float top, /* extreme values */
+ bottom, max_width;
+ int num_ch; /* no. of fonts in the set */
+ int num_props; /* no. of font properties */
+ Property *properties; /* array of properties */
+} Font_header;
+
+typedef struct {
+ float center, /* center of the character */
+ right; /* right edge */
+ long offset; /* offset in the file of the character
+ * * description */
+} Dispatch;
+
+typedef struct {
+ float center, right;
+ Path strokes;
+} Ch_font;
+
+typedef struct {
+ char name[80];
+ float top, bottom, max_width;
+ int num_ch; /* # characters in the font */
+ Ch_font **ch_data;
+} Phg_font;
+
+#endif /*WFONT_INCLUDED */
diff --git a/gl4java/utils/glut/fonts/strokegen.y b/gl4java/utils/glut/fonts/strokegen.y
new file mode 100644
index 0000000..83614fc
--- /dev/null
+++ b/gl4java/utils/glut/fonts/strokegen.y
@@ -0,0 +1,658 @@
+%{
+/* $XConsortium: to_wfont.y,v 5.7 94/04/17 20:10:08 rws Exp $ */
+
+/*****************************************************************
+
+Copyright (c) 1989,1990, 1991 X Consortium
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Except as contained in this notice, the name of the X Consortium shall not be
+used in advertising or otherwise to promote the sale, use or other dealings
+in this Software without prior written authorization from the X Consortium.
+
+Copyright (c) 1989,1990, 1991 by Sun Microsystems, Inc.
+
+ All Rights Reserved
+
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
+provided that the above copyright notice appear in all copies and that
+both that copyright notice and this permission notice appear in
+supporting documentation, and that the names of Sun Microsystems,
+and the X Consortium, not be used in advertising or publicity
+pertaining to distribution of the software without specific, written
+prior permission.
+
+SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
+SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
+SOFTWARE.
+
+******************************************************************/
+
+/* Adapted to produce Java output by Pontus Lidman
+ portions copyright 2000 MathCore AB */
+
+#define YYMAXDEPTH 10000
+
+#include <X11/Xos.h>
+#include <stdio.h>
+#include <ctype.h>
+#ifndef L_SET
+#define L_SET SEEK_SET
+#endif
+#include "stroke.h"
+
+#ifdef X_NOT_STDC_ENV
+FILE *fopen();
+#endif
+
+typedef struct {
+
+ float std_left, /* NCGA standard left spacing */
+ std_wide, /* character width */
+ std_rght; /* Right spacing */
+} Standard;
+
+
+char fname[80];
+char symname[80] = "FONT";
+Dispatch *Table; /* dispatch table */
+Standard *sp_table; /* NCGA font spacings */
+Path *strokes; /* strokes of each character */
+Property *property; /* property list */
+
+struct {
+ int path, point, props;
+} count, expect;
+
+Path_subpath *current_path;
+
+Font_header head; /* font header */
+int tableindex; /* which character */
+int yyerrno; /* error number */
+
+%}
+
+%union {
+ int nil; /* void is reserved */
+ int ival;
+ float dval;
+ char *cval;
+}
+
+%start font
+
+%token <dval> REAL
+%token <ival> INTEGER
+%token <cval> STRING
+
+%token <nil> BOTTOM
+%token <nil> CENTER
+%token <nil> CLOSE
+%token <nil> FONTNAME
+%token <nil> PROPERTIES
+%token <nil> NUM_CH
+%token <nil> INDEX
+%token <nil> L_SPACE
+%token <nil> MAGIC
+%token <nil> OPEN
+%token <nil> RIGHT
+%token <nil> R_SPACE
+%token <nil> STROKE
+%token <nil> TOP
+%token <nil> VERTICES
+%token <nil> BEARING
+%token <nil> WIDTH
+
+%type <cval> fontname
+%type <ival> properties
+%type <dval> top bottom center right
+%type <ival> nstroke nvertice n_pts index num_ch
+%type <ival> closeflag
+%type <ival> counter
+%type <dval> sp_left wide sp_right
+
+%%
+
+font : fontheader num_ch fontprops fontbody spacing { fini(); }|
+ fontheader fontbody { fini(); };
+
+fontheader : fontname top bottom
+ { wf_header($1, $2, $3); };
+
+fontname : FONTNAME STRING
+ { $$ = $2; };
+
+top : TOP REAL { $$ = $2;};
+
+bottom : BOTTOM REAL { $$ = $2;};
+
+num_ch: NUM_CH INTEGER { set_num_ch($2);};
+
+fontprops : /* empty */ | properties { } ;
+
+properties : PROPERTIES INTEGER { init_properties ($2); } property_list
+ { check_num_props (); }
+
+property_list : /* empty */ | single_property property_list
+
+single_property : STRING STRING { add_property($1, $2); };
+
+fontbody : /* empty */
+ | glyph fontbody;
+
+glyph : glyph_header strokes
+ { check_nstroke(); };
+
+glyph_header : index { tableindex = $1; } sym_headinfo;
+
+sym_headinfo : nstroke center right nvertice
+ { glyph_header($1, $2, $3, $4); };
+
+index : INDEX INTEGER { check_num_ch(); $$ = $2; };
+
+nstroke : STROKE INTEGER { $$ = $2; expect.path = $2; };
+
+nvertice: {$$ = 0;} | VERTICES INTEGER { $$ = $2; } ;
+
+center : CENTER REAL{ $$ = $2; };
+
+right : RIGHT REAL{ $$ = $2; };
+
+strokes : /* empty */ | path strokes;
+
+path : closeflag n_pts { init_path($1, $2); } points
+ { check_npts(); }
+
+points : /* empty */ | coord points;
+
+closeflag : CLOSE { $$ = $1 == CLOSE; } | OPEN { $$ = $1 == CLOSE; } ;
+
+n_pts : INTEGER { $$ = $1; };
+
+coord : REAL REAL { add_point($1, $2); };
+
+spacing : /* empty */
+ | item spacing;
+
+item : counter {tableindex = $1;} sp_left wide sp_right
+ { std_space($3, $4, $5); };
+
+counter : BEARING INTEGER {$$ = $2;};
+
+sp_left: L_SPACE REAL {$$ = $2;};
+
+wide : WIDTH REAL {$$ = $2;};
+
+sp_right: R_SPACE REAL {$$ = $2;};
+
+%%
+
+#define BYE(err) yyerrno = (err), yyerror()
+
+#define ERR_BASE 1000
+#define OPEN_ERROR 1001
+#define WRITE_ERROR 1002
+#define WRONG_NAME 1003
+#define NO_MEMORY 1004
+#define EXCEED_PATH 1005
+#define EXCEED_POINT 1006
+#define PATH_MISMATCH 1007
+#define POINT_MISMATCH 1008
+#define PROP_MISMATCH 1009
+#define EXCEED_PROPS 1010
+
+char *prog;
+
+main(argc, argv)
+ int argc;
+ char *argv[];
+
+{
+ /* Usage : to_wfont [-o outfile] [infile] */
+ char *s;
+
+ fname[0] = 0;
+ tableindex = 0;
+ head.num_ch = -1;
+
+ prog = *argv;
+ while (--argc > 0 && *++argv != NULL) {
+ s = *argv;
+ if (*s++ == '-')
+ switch (*s) {
+ case 's':
+ if (*++argv != NULL)
+ {
+ --argc;
+ (void) strcpy(symname, *argv);
+ }
+ break;
+ case 'o':
+ if (*++argv != NULL)
+ {
+ --argc;
+ (void) strcpy(fname, *argv);
+ }
+ break;
+ default: /* ignore other options */
+ ;
+ }
+ else {
+ FILE *fp;
+
+ /* standard input redirection */
+ fp = fopen(*argv, "r");
+ if (fp != NULL) {
+ if (close(fileno(stdin)) < 0)
+ {
+ perror(prog);
+ return;
+ }
+ if (dup(fileno(fp)) < 0)
+ {
+ perror(prog);
+ return;
+ }
+ (void) fclose(fp);
+ }
+ }
+ }
+ return (yyparse());
+}
+
+/* set number of characters */
+set_num_ch(num_ch)
+int num_ch;
+{
+ yyerrno = 0;
+ head.num_ch = num_ch;
+ if (num_ch > 0) {
+ Table = (Dispatch *) malloc(num_ch * sizeof(Dispatch));
+ sp_table = (Standard *) malloc(num_ch * sizeof(Standard));
+ strokes = (Path *) malloc(num_ch * sizeof(Path));
+ }
+
+ for (tableindex = 0; tableindex < num_ch; tableindex++) {
+ Table[tableindex].center = 0.0;
+ Table[tableindex].right = 0.0;
+ Table[tableindex].offset = 0;
+
+ sp_table[tableindex].std_left = 0.0;
+ sp_table[tableindex].std_wide = 0.0;
+ sp_table[tableindex].std_rght = 0.0;
+
+ strokes[tableindex].n_subpaths = 0;
+ strokes[tableindex].n_vertices = 0;
+ strokes[tableindex].subpaths = NULL;
+ }
+}
+
+/* initialize the property info in the header */
+init_properties(num_props)
+ int num_props;
+{
+ if (num_props > 0) {
+ head.properties = (Property *)
+ malloc (num_props * sizeof (Property));
+ head.num_props = expect.props = num_props;
+ }
+ else {
+ head.properties = NULL;
+ head.num_props = expect.props = 0;
+ }
+ count.props = -1;
+ property = head.properties; /* initialize the list pointer */
+}
+
+check_num_props()
+{
+ count.props++;
+ if (count.props != expect.props)
+ BYE (PROP_MISMATCH);
+}
+
+/* add individual property info into the buffer */
+add_property(name, value)
+ char *name,
+ *value;
+{
+ /* check if the property exceeds allocated space */
+
+ if (++count.props >= head.num_props)
+ BYE(EXCEED_PROPS);
+
+ /* copy the strings into the buffer */
+
+ (void) strcpy (property->propname, name);
+ (void) strcpy (property->propvalue, value);
+
+ /* increment the property pointer */
+
+ property++;
+}
+
+check_num_ch()
+{
+
+ if (head.num_ch == -1)
+ set_num_ch(128);
+
+}
+
+yyerror()
+{
+#ifndef __bsdi__
+ extern int yylineno;
+#endif
+# define ERR_SIZE (sizeof(err_string) / sizeof(char *))
+ static char *err_string[] = {
+ "Cannot open file",
+ "Write fails",
+ "Illegal font name",
+ "Memory allocation failure",
+ "Specified number of strokes exceeded",
+ "Specified number of points exceeded",
+ "Number of strokes do not match",
+ "Number of points do not match",
+ "Number of properties do not match",
+ "Specified number of properties exceeded",
+ 0};
+ char *str;
+
+ yyerrno -= ERR_BASE;
+ if (yyerrno > 0 && yyerrno < ERR_SIZE)
+ str = err_string[yyerrno-1];
+ else
+ str = "Syntax error";
+#ifdef __bsdi__
+ fprintf(stderr, "%s.\n", str);
+#else
+ fprintf(stderr, "line %d: %s.\n", yylineno, str);
+#endif
+ freeall();
+ (void) unlink(fname);
+ exit(1);
+}
+
+/* create wfont header */
+wf_header(name, top, bottom)
+ char *name;
+ float top,
+ bottom;
+{
+
+ if (name == NULL)
+ BYE(WRONG_NAME);
+ head.top = (float) top;
+ head.bottom = (float) bottom;
+ head.magic = WFONT_MAGIC_PEX;
+ (void) strcpy(head.name, name);
+ free(name);
+}
+
+/* create header for each glyph */
+glyph_header(npath, center, right, npts)
+ int npath,
+ npts;
+ float center,
+ right;
+{
+ {
+ register Path *strk = strokes + tableindex;
+
+ if (npath > 0) /* Don't allocate space unless the character
+ has strokes associated with it. */
+ {
+ strk->subpaths = (Path_subpath *)
+ malloc(npath * sizeof (Path_subpath));
+
+ if (strk->subpaths == NULL)
+ BYE(NO_MEMORY);
+
+ strk->type = PATH_2DF;
+ strk->n_subpaths = npath;
+ strk->n_vertices = npts;
+ }
+ else { /* Just initialize the entry */
+ strk->subpaths = NULL;
+ strk->type = PATH_2DF;
+ strk->n_subpaths = 0;
+ strk->n_vertices = 0;
+ }
+ }
+ {
+ register Dispatch *tbl = Table + tableindex;
+
+ tbl->offset = 0;
+ tbl->center = center;
+ tbl->right = right;
+ }
+ count.path = -1; /* initialize path counter, not to
+ * exceed n_subpath */
+}
+
+/* create standard spacing info for each glyph */
+std_space(l_bear, wide, r_bear)
+
+ float l_bear,
+ wide,
+ r_bear;
+{
+ register Standard *tbl = sp_table +tableindex;
+ tbl->std_left = l_bear;
+ tbl->std_wide = wide;
+ tbl->std_rght = r_bear;
+}
+
+/* initialize each sub_path */
+init_path(close, n)
+ int close,
+ n;
+{
+ register Path_subpath *path;
+
+ if (++count.path >= strokes[tableindex].n_subpaths)
+ BYE(EXCEED_PATH);
+ path = current_path = strokes[tableindex].subpaths + count.path;
+ path->n_pts = n;
+ path->closed = close;
+ if (n > 0)
+ path->pts.pt2df = (Path_point2df *)
+ malloc(n * sizeof (Path_point2df));
+ if (path->pts.pt2df == NULL)
+ BYE(NO_MEMORY);
+ expect.point = path->n_pts;
+ count.point = -1; /* initialize point counter, not to
+ * exceed n_pts */
+}
+
+/* accumulating points for each sub_path */
+add_point(x, y)
+ float x,
+ y;
+{
+ register Path_subpath *path;
+ register Path_point2df *pt_ptr;
+
+ path = current_path;
+ if (++count.point >= path->n_pts)
+ BYE(EXCEED_POINT);
+ pt_ptr = path->pts.pt2df + count.point;
+ pt_ptr->x = x;
+ pt_ptr->y = y;
+}
+
+/* Path_type + n_subpaths + n_vertices */
+#define STROKE_HEAD (sizeof (Path_type) + sizeof (int) + sizeof (int))
+
+/* write out file, close everything, free everything */
+fini()
+{
+ static long zero = 0;
+
+ /* pointers used to walk the arrays */
+ register Path_subpath *spath;
+ register Dispatch *tbl_ptr;
+ register Path *strptr;
+ register Property *prop_ptr;
+
+ FILE *fp;
+ int npath;
+ register int i,
+ j,
+ k;
+ Standard *sp_ptr;
+ Path_point2df *pt;
+
+ printf("\n/* GENERATED FILE -- DO NOT MODIFY */\n\n");
+/* printf("#include \"glutstroke.h\"\n\n"); */
+
+ printf("package gl4java.utils.glut.fonts.data;\n\n");
+ printf("import gl4java.utils.glut.fonts.*;\n\n");
+ printf("public class %s implements GLUTStrokeFont {\n",symname);
+
+# define BY_BYE(err) fclose(fp), BYE(err)
+
+ /* adjust the characters for spacing, note max char width */
+ head.max_width = 0.0;
+ for (i = 0, tbl_ptr = Table, strptr = strokes, sp_ptr = sp_table;
+ i < head.num_ch; i++, tbl_ptr++, strptr++, sp_ptr++) {
+ tbl_ptr->center += sp_ptr->std_left;
+ tbl_ptr->right += sp_ptr->std_left + sp_ptr->std_rght;
+ if (tbl_ptr->right > head.max_width)
+ head.max_width = tbl_ptr->right;
+ npath = strptr->n_subpaths;
+ if (npath > 0 || tbl_ptr->center != 0.0 ||
+ tbl_ptr->right != 0.0) {
+ for (j = 0, spath = strptr->subpaths;
+ j < npath; j++, spath++) {
+ for(k=0, pt = spath->pts.pt2df;
+ k<spath->n_pts; k++, pt++) {
+ pt->x += sp_ptr->std_left;
+ }
+ }
+ }
+ }
+
+ /* write the stroke table */
+ for (i = 0, tbl_ptr = Table, strptr = strokes;
+ i < head.num_ch; i++, tbl_ptr++, strptr++) {
+ if (strptr->n_subpaths > 0 &&
+ tbl_ptr->center != 0.0 &&
+ tbl_ptr->right != 0.0) {
+ if(isprint(i)) {
+ printf("/* char: %d '%c' */\n\n", i, i);
+ } else {
+ printf("/* char: %d */\n\n", i);
+ }
+
+ for (j = 0, spath = strptr->subpaths;
+ j < strptr->n_subpaths; j++, spath++) {
+ int z;
+
+ printf("static final CoordRec[] char%d_stroke%d = {\n", i, j);
+ for(z = 0; z < spath->n_pts; z++) {
+ printf(" new CoordRec( (float) %g, (float) %g ),\n",
+ spath->pts.pt2df[z].x, spath->pts.pt2df[z].y);
+ }
+ printf("};\n\n");
+ }
+
+ printf("static final StrokeRec char%d[] = {\n", i);
+ for (j = 0, spath = strptr->subpaths;
+ j < strptr->n_subpaths; j++, spath++) {
+ printf(" new StrokeRec(%d, char%d_stroke%d),\n",
+ spath->n_pts, i, j);
+ }
+ printf("};\n\n");
+ }
+ }
+ printf("static final StrokeCharRec chars[] = {\n");
+ for (i = 0, tbl_ptr = Table, strptr = strokes;
+ i < head.num_ch; i++, tbl_ptr++, strptr++) {
+ if (strptr->n_subpaths > 0 &&
+ tbl_ptr->center != 0.0 &&
+ tbl_ptr->right != 0.0) {
+ printf(" new StrokeCharRec( %d, char%d, (float)%g, (float)%g ),\n",
+ strptr->n_subpaths, i, tbl_ptr->center, tbl_ptr->right);
+ } else {
+ printf(" new StrokeCharRec( 0, /* char%d */ null, (float)%g, (float)%g ),\n",
+ i, tbl_ptr->center, tbl_ptr->right);
+ }
+ }
+ printf("};\n\n");
+
+ printf("final static StrokeFontRec fontinfo = new StrokeFontRec( \"%s\", %d, chars, (float)%.6g, (float)%.6g );\n\n",
+ head.name, head.num_ch,
+ (double) head.top, (double) head.bottom);
+ printf(" static public StrokeFontRec getStrokeFontRec() {\n");
+ printf(" return fontinfo;\n");
+ printf(" }\n");
+ printf("}\n"); // end of class
+ fflush(stdout);
+
+ freeall();
+# undef BY_BYE
+}
+
+freeall()
+{
+ register Path *path;
+ register Path_subpath *spath;
+ register int i,
+ j,
+ n;
+
+ path = strokes;
+ for (i = 0; i < head.num_ch; i++, path++) {
+ n = path->n_subpaths;
+ if (n <= 0)
+ continue;
+ spath = path->subpaths;
+ for (j = 0; j < n; j++, spath++)
+ if (spath->pts.pt2df != NULL)
+ free((char *) spath->pts.pt2df);
+ if (path->subpaths != NULL)
+ free((char *) path->subpaths);
+ }
+ free(Table);
+ free(sp_table);
+ free(strokes);
+ if (head.properties != NULL)
+ free((char *) head.properties);
+}
+
+check_nstroke()
+{
+ count.path++;
+ if (expect.path != count.path)
+ BYE(PATH_MISMATCH);
+}
+
+check_npts()
+{
+ count.point++;
+ if (expect.point != count.point)
+ BYE(POINT_MISMATCH);
+}
diff --git a/gl4java/utils/glut/fonts/strokelex.l b/gl4java/utils/glut/fonts/strokelex.l
new file mode 100644
index 0000000..bfde066
--- /dev/null
+++ b/gl4java/utils/glut/fonts/strokelex.l
@@ -0,0 +1,134 @@
+%option noyywrap
+
+%{
+/* $XConsortium: lex.l,v 5.4 91/08/26 10:55:26 gildea Exp $ */
+
+/*****************************************************************
+Copyright (c) 1989,1990, 1991 by Sun Microsystems, Inc. and the X Consortium.
+
+ All Rights Reserved
+
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
+provided that the above copyright notice appear in all copies and that
+both that copyright notice and this permission notice appear in
+supporting documentation, and that the names of Sun Microsystems,
+the X Consortium, and MIT not be used in advertising or publicity
+pertaining to distribution of the software without specific, written
+prior permission.
+
+SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
+SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
+SOFTWARE.
+
+******************************************************************/
+
+
+#include <stdlib.h>
+#include <ctype.h>
+#include <math.h>
+#include "strokegen.h"
+
+#if defined(ISC) && defined(SYSV) && defined(SYSV386) && __STDC__
+extern double atof(char *);
+#endif
+
+#ifdef FLEX_SCANNER
+int yylineno;
+#endif
+
+%}
+%%
+\'[^']*\' |
+\"[^"]*\" return string(yytext, yyleng);
+#.* ;
+[ ,;\t\n]* /* natural dilimters */ ;
+
+[a-zA-Z][a-zA-Z0-9_.]* {
+ int token;
+ if (token = res_words(yytext))
+ return token;
+ return string(yytext, yyleng);
+ }
+
+[+-]?[0-9]+\.?[0-9]*[eE][+-]?[0-9]+ |
+[+-]?[0-9]+\.[0-9]* |
+\.[0-9]+ {
+ yylval.dval = atof(yytext);
+ return REAL;
+ }
+[+-]?[0-9]+#[0-9]+ {
+ return INTEGER;
+ }
+[+-]?[0-9]+ {
+ yylval.ival = atoi(yytext);
+ return INTEGER;
+ }
+[()] ;
+[\r] ;
+%%
+
+int
+res_words(str)
+char str[];
+{
+ static struct res_strct {
+ char *word;
+ int token;
+ } res_table[] = {
+ {"BOTTOM", BOTTOM},
+ {"CENTER", CENTER},
+ {"PROPERTIES", PROPERTIES},
+ {"CLOSE", CLOSE},
+ {"FONTNAME", FONTNAME},
+ {"INDEX", INDEX},
+ {"MAGIC", MAGIC},
+ {"OPEN", OPEN},
+ {"RIGHT", RIGHT},
+ {"STROKE", STROKE},
+ {"TOP", TOP},
+ {"VERTICES", VERTICES},
+ {"BEARING", BEARING},
+ {"L_SPACE", L_SPACE},
+ {"WIDTH", WIDTH},
+ {"R_SPACE", R_SPACE},
+ {"NUM_CH", NUM_CH},
+ {0, 0}
+ };
+
+ {
+ register struct res_strct *reserved;
+
+ reserved = res_table;
+
+ do
+ if (!strcmp(str, reserved->word))
+ break;
+ while ((++reserved)->word != 0);
+ return reserved->token;
+ }
+}
+
+int
+string(str, n)
+char *str;
+int n;
+{
+ if (*str == '\"' || *str == '\'')
+ {
+ str++;
+ n -= 2; /* one for EOL, one for end quote */
+ }
+ if ((yylval.cval = (char *)malloc(n+1)) != NULL)
+ {
+ strncpy(yylval.cval, str, n);
+ yylval.cval[n] = '\0';
+ return STRING;
+ }
+ else
+ return 0;
+}
diff --git a/gl4java/utils/textures/AWTTextureLoader.java b/gl4java/utils/textures/AWTTextureLoader.java
new file mode 100644
index 0000000..2df3145
--- /dev/null
+++ b/gl4java/utils/textures/AWTTextureLoader.java
@@ -0,0 +1,169 @@
+package gl4java.utils.textures;
+
+import gl4java.*;
+
+import java.awt.*;
+import java.awt.image.*;
+// import java.awt.Color.*;
+// import java.awt.color.*;
+import java.awt.event.*;
+import java.applet.*;
+import java.io.*;
+import java.net.*;
+
+/**
+ * This Class implements the universal
+ * texture-loader using the AWT's standard interface !
+ *
+ * The number of image-types depends
+ * on the JDK version you use !
+ *
+ * @see TextureLoader
+ */
+public class AWTTextureLoader
+extends TextureLoader
+{
+ Component comp;
+
+ public AWTTextureLoader(Component comp, GLFunc gl, GLUFunc glu)
+ {
+ super(gl, glu);
+ this.comp=comp;
+ }
+
+ public boolean readTexture(String fname)
+ {
+ Image img = comp.getToolkit().getImage(fname);
+ return readTexture(comp, img);
+ }
+
+ public boolean readTexture(URL base, String uri)
+ {
+ try {
+ URL url = new URL (base, uri);
+ Image img = comp.getToolkit().getImage(url);
+ return readTexture(comp, img);
+ } catch (Exception ex) {
+ System.out.println("AWTTextureLoader.readTexture <"+
+ base+" / "+uri+"> failed !\n"+ex);
+ }
+ return false;
+ }
+
+ private boolean readTexture(Component comp, Image img)
+ {
+ try {
+ try {
+ MediaTracker tracker = new MediaTracker(comp);
+ tracker.addImage(img, 0);
+ tracker.waitForID(0);
+ }
+ catch ( Exception e ) {}
+
+ imageWidth = img.getWidth(comp);
+ imageHeight = img.getHeight(comp);
+ /* This is Java2 only code :-(
+ BufferedImage image =
+ new BufferedImage(imageWidth, imageHeight,
+ BufferedImage.TYPE_INT_RGB);
+
+ Graphics g = image.createGraphics();
+ g.drawImage(img,0,0,comp);
+
+ imageWidth = image.getWidth();
+ imageHeight = image.getHeight();
+ */
+
+ // Read entire PNG image (doesn't throw exceptions)
+ int[] iPixels = new int[imageWidth * imageHeight];
+
+ PixelGrabber pp=new PixelGrabber(img,
+ 0,0,
+ imageWidth, imageHeight,
+ iPixels,
+ 0,
+ imageWidth);
+ try
+ {
+ pp.grabPixels();
+ }
+ catch (InterruptedException e)
+ {
+ System.err.println("interrupted waiting for pixel!");
+ error=true;
+ return false;
+ }
+ if ((pp.getStatus() & ImageObserver.ABORT) != 0)
+ {
+ System.err.println("image fetch aborted or errored");
+ error=true;
+ return false;
+ }
+
+ /* This is Java2 only code :-(
+ int imagetype = image.getType();
+ switch(imagetype)
+ {
+ case BufferedImage.TYPE_INT_RGB:
+ glFormat=GL_RGB;
+ break;
+ case BufferedImage.TYPE_INT_ARGB:
+ case BufferedImage.TYPE_INT_ARGB_PRE:
+ glFormat=GL_RGBA;
+ break;
+ default:
+ error=true;
+ System.err.println("unsupported format: "+imagetype);
+ return false;
+ };
+ */
+ //
+ // we are guessing the RGB type,
+ // because fetching the true type
+ // is Java2 only code :-(
+ //
+ glFormat=GL_RGB;
+
+ setTextureSize();
+ pixel=new byte[imageWidth * imageHeight * getComponents()];
+
+ int offset=0;
+ int aPixel;
+ int y_desc;
+ for(y_desc=imageHeight-1; y_desc>=0; y_desc--)
+ {
+ for(int x=0;x<imageWidth;x++)
+ {
+ aPixel = iPixels[y_desc*imageWidth + x];
+
+ // red
+ pixel[offset++]=
+ new Integer( (aPixel >> 16) & 0xff ).byteValue();
+
+ // green
+ pixel[offset++]=
+ new Integer( (aPixel >> 8) & 0xff ).byteValue();
+
+ // blue
+ pixel[offset++]=
+ new Integer( (aPixel ) & 0xff ).byteValue();
+
+ // alpha
+ if(glFormat==GL_RGBA)
+ pixel[offset++]=
+ new Integer( (aPixel >> 24) & 0xff ).byteValue();
+ }
+ }
+
+ return true;
+
+ } catch (Exception e) {
+ System.out.println("An exception occured, while loading a AWTTexture");
+ System.out.println(e);
+ error=true;
+ }
+ return false;
+ }
+
+}
+
diff --git a/gl4java/utils/textures/IOTextureLoader.java b/gl4java/utils/textures/IOTextureLoader.java
new file mode 100644
index 0000000..4b06b93
--- /dev/null
+++ b/gl4java/utils/textures/IOTextureLoader.java
@@ -0,0 +1,67 @@
+package gl4java.utils.textures;
+
+import gl4java.*;
+import gl4java.utils.glut.*;
+
+import java.awt.*;
+import java.awt.Color.*;
+import java.awt.event.*;
+import java.applet.*;
+import java.io.*;
+import java.net.*;
+
+/**
+ * This abstract Class implements the
+ * file and url based methods "readTexture",
+ * to call the specialised implementation
+ * of the stream based "readTexture" method !
+ *
+ * @see TextureLoader
+ */
+public abstract class IOTextureLoader
+extends TextureLoader
+{
+ protected IOTextureLoader(GLFunc gl, GLUFunc glu)
+ { super(gl, glu); }
+
+ public boolean readTexture(String fname)
+ {
+ boolean result = false;
+ InputStream is= null;
+ try {
+ is= new java.io.FileInputStream(fname);
+ result = readTexture(is);
+ } catch (Exception ex) {
+ System.out.println("IOTextureLoader.readTexture <"+
+ fname+"> failed !\n"+ex);
+ }
+ try {
+ if(is!=null) is.close();
+ } catch (Exception ex) {}
+ return result;
+ }
+
+ public boolean readTexture(URL base, String uri)
+ {
+ boolean result = false;
+ InputStream is= null;
+ try {
+ URL url = new URL (base, uri);
+ URLConnection urlcon = url.openConnection();
+ urlcon.setDoOutput(false);
+ urlcon.setDoInput(true);
+ is = urlcon.getInputStream();
+ result = readTexture(is);
+ } catch (Exception ex) {
+ System.out.println("IOTextureLoader.readTexture <"+
+ base+" / "+uri+"> failed !\n"+ex);
+ }
+ try {
+ if(is!=null) is.close();
+ } catch (Exception ex) {}
+ return result;
+ }
+
+ protected abstract boolean readTexture(InputStream is);
+}
+
diff --git a/gl4java/utils/textures/PPMAsciiTextureLoader.java b/gl4java/utils/textures/PPMAsciiTextureLoader.java
new file mode 100644
index 0000000..b8d1610
--- /dev/null
+++ b/gl4java/utils/textures/PPMAsciiTextureLoader.java
@@ -0,0 +1,88 @@
+package gl4java.utils.textures;
+
+import gl4java.*;
+
+import java.awt.*;
+import java.awt.image.*;
+import java.awt.Color.*;
+import java.awt.event.*;
+import java.applet.*;
+import java.io.*;
+import java.net.*;
+
+/**
+ * This is Class implements the PPM-Ascii
+ * texture-loader !
+ *
+ * @see IOTextureLoader
+ * @see TextureLoader
+ */
+public class PPMAsciiTextureLoader
+extends IOTextureLoader
+{
+ public PPMAsciiTextureLoader(GLFunc gl, GLUFunc glu)
+ {
+ super(gl, glu);
+ }
+
+ protected boolean readTexture(InputStream is)
+ {
+ try {
+ glFormat=GL_RGB;
+
+ DataInputStream reader = new DataInputStream ( is );
+
+ String lin=reader.readLine(); //P6
+ String subLin=lin.substring(0,1);
+
+ lin=reader.readLine();
+ subLin=lin.substring(0,1);
+
+ while (subLin.compareTo("#")==0)
+ {
+ lin=reader.readLine();
+ subLin=lin.substring(0,1);
+ }
+
+ char[] dim=lin.toCharArray();
+
+ int i=0;
+ char car=lin.charAt(i);
+ String blanco=new String(" ");
+ Character C=new Character(car);
+ car=C.charValue();
+ while (C.isDigit(car))
+ {
+ i++;
+ car=lin.charAt(i);
+ C=new Character(car);
+ }
+
+ String alto=lin.substring(0,i);
+ String ancho=lin.substring(i+1,lin.length());
+
+ Integer hh=new Integer(alto);
+ imageWidth=hh.intValue();
+ hh=new Integer(ancho);
+ imageHeight=hh.intValue();
+
+ pixel=new byte[imageWidth * imageHeight * getComponents()];
+
+ lin=reader.readLine(); //255
+
+ reader.read(pixel, 0, pixel.length);
+
+ reader.close();
+ setTextureSize();
+ return true;
+
+ } catch (Exception e) {
+ System.out.println("An exception occured, while loading a PPMAsciiTextureLoader");
+ System.out.println(e);
+ error=true;
+ }
+ return false;
+ }
+
+}
+
diff --git a/gl4java/utils/textures/PngTextureLoader.java b/gl4java/utils/textures/PngTextureLoader.java
new file mode 100644
index 0000000..6cc9bb2
--- /dev/null
+++ b/gl4java/utils/textures/PngTextureLoader.java
@@ -0,0 +1,160 @@
+package gl4java.utils.textures;
+
+import gl4java.*;
+
+import java.awt.*;
+import java.awt.image.*;
+import java.awt.Color.*;
+import java.awt.event.*;
+import java.applet.*;
+import java.io.*;
+import java.net.*;
+
+import com.sixlegs.image.png.*;
+
+/**
+ * This is Class implements the PNG texture-loader
+ * while using the png-library in package
+ * "com.sixlegs.image.png" !
+ *
+ * @see IOTextureLoader
+ * @see TextureLoader
+ */
+public class PngTextureLoader
+extends IOTextureLoader
+{
+ protected boolean grayToAlpha = false;
+
+ public PngTextureLoader(GLFunc gl, GLUFunc glu)
+ {
+ super(gl, glu);
+ }
+
+ /**
+ * Set to 'true' to load grayscale images as alpha images
+ * (in other words, GL_ALPHA instead of GL_LUMINANCE)
+ */
+ public void setGrayToAlpha(boolean b)
+ {
+ this.grayToAlpha = b;
+ }
+
+ protected boolean readTexture(InputStream is)
+ {
+ try {
+ int len;
+ PngImage png = new PngImage(is);
+
+ imageWidth = png.getWidth();
+ imageHeight = png.getHeight();
+
+ // Read entire PNG image (doesn't throw exceptions)
+ int[] iPixels = new int[imageWidth * imageHeight];
+
+ PixelGrabber pp=new PixelGrabber(png,
+ 0,0,
+ imageWidth, imageHeight,
+ iPixels,
+ 0,
+ imageWidth);
+ try
+ {
+ pp.grabPixels();
+ }
+ catch (InterruptedException e)
+ {
+ System.err.println("interrupted waiting for pixel!");
+ error=true;
+ return false;
+ }
+ if ((pp.getStatus() & ImageObserver.ABORT) != 0)
+ {
+ System.err.println("image fetch aborted or errored");
+ error=true;
+ return false;
+ }
+
+ // bitDepth beachten
+ switch(png.getColorType())
+ {
+ case PngImage.COLOR_TYPE_GRAY:
+ glFormat= grayToAlpha ? GL_ALPHA : GL_LUMINANCE;
+ break;
+ case PngImage.COLOR_TYPE_GRAY_ALPHA:
+ glFormat=GL_LUMINANCE_ALPHA;
+ break;
+ case PngImage.COLOR_TYPE_RGB:
+ glFormat=GL_RGB;
+ break;
+ case PngImage.COLOR_TYPE_RGB_ALPHA:
+ glFormat=GL_RGBA;
+ break;
+ case PngImage.COLOR_TYPE_PALETTE:
+ // todo: support COLOR_TYPE_INDEXED?
+ glFormat=GL_RGB;
+ break;
+ default:
+ error=true;
+ System.err.println("unsupported png color type: "+
+ png.getColorType());
+ return false;
+ };
+
+ int ncmpts = getComponents();
+ pixel=new byte[imageWidth * imageHeight * ncmpts];
+
+ byte alpha=0;
+ byte red=0;
+ byte green=0;
+ byte blue=0;
+ int offset=0;
+ int aPixel;
+ for(int y=imageHeight-1; y>=0; y--)
+ {
+ for(int x=0;x<imageWidth;x++)
+ {
+ aPixel = iPixels[y*imageWidth + x];
+
+ switch (glFormat)
+ {
+ case GL_RGBA:
+ pixel[offset] = (byte)(aPixel>>16);
+ pixel[offset+1] = (byte)(aPixel>>8);
+ pixel[offset+2] = (byte)(aPixel>>0);
+ pixel[offset+3] = (byte)(aPixel>>24);
+ offset += 4;
+ break;
+ case GL_RGB:
+ pixel[offset] = (byte)(aPixel>>16);
+ pixel[offset+1] = (byte)(aPixel>>8);
+ pixel[offset+2] = (byte)(aPixel>>0);
+ offset += 3;
+ break;
+ case GL_LUMINANCE:
+ case GL_COLOR_INDEX:
+ pixel[offset] = (byte)(aPixel);
+ offset += 1;
+ break;
+ case GL_LUMINANCE_ALPHA: // todo: untested
+ pixel[offset] = (byte)(aPixel);
+ pixel[offset+1] = (byte)(aPixel>>24);
+ offset += 2;
+ break;
+ }
+
+ }
+ }
+
+ setTextureSize();
+ return true;
+
+ } catch (Exception e) {
+ System.out.println("An exception occured, while loading a PngTexture");
+ System.out.println(e);
+ error=true;
+ }
+ return false;
+ }
+
+}
+
diff --git a/gl4java/utils/textures/TGATextureGrabber.java b/gl4java/utils/textures/TGATextureGrabber.java
new file mode 100644
index 0000000..2d1c432
--- /dev/null
+++ b/gl4java/utils/textures/TGATextureGrabber.java
@@ -0,0 +1,61 @@
+package gl4java.utils.textures;
+
+import gl4java.*;
+
+import java.io.*;
+import java.net.*;
+
+public class TGATextureGrabber
+extends TextureGrabber
+{
+ public TGATextureGrabber(GLFunc gl)
+ {
+ super(gl);
+ }
+
+ public boolean write2File(OutputStream os)
+ {
+ try {
+ DataOutputStream fout= new DataOutputStream(os);
+
+ //write TGA header
+ fout.writeByte(0); //ID length, 0 because no image id field
+ fout.writeByte(0); //no color map
+ fout.writeByte(2); //image type (24 bit RGB, uncompressed)
+ fout.writeShort(0); //color map origin, ignore because no color map
+ fout.writeShort(0); //color map length, ignore because no color map
+ fout.writeByte(0); //color map entry size, ignore because no color map
+ fout.writeShort(0); //x origin
+ fout.writeShort(0); //y origin
+ short s = (short)width;
+ fout.writeByte((byte)(s & 0x00ff)); //image width low byte
+ fout.writeByte((byte)((s & 0xff00)>>8)); //image width high byte
+ s = (short)height;
+ fout.writeByte((byte)(s & 0x00ff)); //image height low byte
+ fout.writeByte((byte)((s & 0xff00)>>8)); //image height high byte
+ fout.writeByte(24); //bpp
+ fout.writeByte(0); //description bits
+
+ //process image data:
+ // TGA pixels should be written in BGR format,
+ // so R en B should be switched
+ byte tmp;
+ for (int i=0; i<(width*height*3); i+=3) {
+ tmp=pixels[i];
+ pixels[i]=pixels[i+2];
+ pixels[i+2]=tmp;
+ }
+
+ //write TGA image data
+ fout.write(pixels, 0, pixels.length);
+
+ fout.flush();
+ fout.close();
+ } catch (Exception ex) {
+ System.out.println("TGATextureGrabber.write2File <os> failed !\n"+ex);
+ return false;
+ }
+ return true;
+ }
+}
+
diff --git a/gl4java/utils/textures/TGATextureLoader.java b/gl4java/utils/textures/TGATextureLoader.java
new file mode 100644
index 0000000..b0c915f
--- /dev/null
+++ b/gl4java/utils/textures/TGATextureLoader.java
@@ -0,0 +1,111 @@
+package gl4java.utils.textures;
+
+import gl4java.*;
+
+import java.io.*;
+import java.net.*;
+
+/**
+ * This is Class implements a TGA texture-loader !
+ * At this time, this loader only supports
+ * loading files, which are saved with
+ * the TGATextureGrabber !
+ * This means: 24 bpp, RGB, uncompressed, no-colormap,
+ * no image id-field !
+ *
+ * @see IOTextureLoader
+ * @see TextureLoader
+ */
+public class TGATextureLoader
+extends IOTextureLoader
+{
+ public TGATextureLoader(GLFunc gl, GLUFunc glu)
+ {
+ super(gl, glu);
+ }
+
+ protected boolean readTexture(InputStream is)
+ {
+ try {
+ int cc;
+
+ glFormat=GL_RGB;
+
+ DataInputStream reader = new DataInputStream ( is );
+
+ //write TGA header
+ reader.readByte(); //ID length, 0 because no image id field
+ reader.readByte(); //no color map
+ cc = reader.readByte(); //image type (24 bit RGB, uncompressed)
+ if(cc!=2)
+ {
+ reader.close();
+ System.out.println("TGATextureLoader: File is not 24bit RGB Data !");
+ error=true;
+ return false;
+ }
+ reader.readShort(); //color map origin, ignore because no color map
+ reader.readShort(); //color map length, ignore because no color map
+ reader.readByte(); //color map entry size, ignore because no color map
+ reader.readShort(); //x origin
+ reader.readShort(); //y origin
+
+ cc = reader.readByte(); // image width low byte
+ short s = (short)((short)cc & 0x00ff);
+ cc = reader.readByte(); // image width high byte
+ s = (short) ( (short)( ((short)cc & 0x00ff)<<8 ) | s );
+ imageWidth = (int)s;
+
+ cc = reader.readByte(); // image height low byte
+ s = (short)((short)cc & 0x00ff);
+ cc = reader.readByte(); // image height high byte
+ s = (short) ( (short)( ((short)cc & 0x00ff)<<8 ) | s );
+ imageHeight = (int)s;
+
+ cc=reader.readByte(); // 24bpp
+ if(cc!=24)
+ {
+ reader.close();
+ System.out.println("TGATextureLoader: File is not 24bpp Data !");
+ error=true;
+ return false;
+ }
+ reader.readByte(); //description bits
+
+ if(3!=getComponents())
+ {
+ reader.close();
+ System.out.println("TGATextureLoader: Currenly only RGB (24bit) data is supported !");
+ error=true;
+ return false;
+ }
+
+ pixel=new byte[imageWidth * imageHeight * 3];
+
+ //read TGA image data
+ reader.read(pixel, 0, pixel.length);
+
+ //process image data:
+ // TGA pixels should be written in BGR format,
+ // so R en B should be switched
+ byte tmp;
+ for (int i=0; i<imageWidth*imageHeight*3; i+=3)
+ {
+ tmp=pixel[i];
+ pixel[i]=pixel[i+2];
+ pixel[i+2]=tmp;
+ }
+
+ reader.close();
+ setTextureSize();
+ return true;
+
+ } catch (Exception ex) {
+ System.out.println("An exception occured, while loading a TGATexture");
+ System.out.println(ex);
+ error=true;
+ }
+ return false;
+ }
+}
+
diff --git a/gl4java/utils/textures/TextureGrabber.java b/gl4java/utils/textures/TextureGrabber.java
new file mode 100644
index 0000000..d7d3bff
--- /dev/null
+++ b/gl4java/utils/textures/TextureGrabber.java
@@ -0,0 +1,116 @@
+package gl4java.utils.textures;
+
+import gl4java.*;
+
+import java.io.*;
+import java.net.*;
+
+/**
+ * This abstract Class defines the interface
+ * for ALL texture Grabbers !
+ * The TextureGrabber's implementations are used to
+ * save the pixels of the GL Context to a file !
+ *
+ * @see TextureTool
+ * @see GLImageCanvas
+ */
+public abstract class TextureGrabber
+implements GLEnum, GLUEnum
+{
+ protected byte[] pixels=null;
+ protected int xpos;
+ protected int ypos;
+ protected int width;
+ protected int height;
+ protected GLFunc gl;
+
+ public TextureGrabber(GLFunc gl)
+ {
+ this.gl=gl;
+ }
+
+ /**
+ * Grab the pixels outta the OpenGL Frambuffer
+ *
+ * @param source the frambuffer source (like glReadBuffer),
+ * can be: GL_FRONT, GL_BACK, ....
+ * @param x the xpos
+ * @param y the ypos
+ * @param w the width
+ * @param h the height
+ *
+ * @see GLFunc#glReadBuffer
+ */
+ public void grabPixels(int source, int x, int y, int w, int h)
+ {
+ int swapbytes[]={0}, lsbfirst[]={0}, rowlength[]={0};
+ int skiprows[]={0}, skippixels[]={0}, alignment[]={0};
+
+ xpos=x;
+ ypos=y;
+ width=w;
+ height=h;
+ pixels=new byte[w * h * 3];
+
+ /* Save current modes. */
+ gl.glGetIntegerv(GL_PACK_SWAP_BYTES, swapbytes);
+ gl.glGetIntegerv(GL_PACK_LSB_FIRST, lsbfirst);
+ gl.glGetIntegerv(GL_PACK_ROW_LENGTH, rowlength);
+ gl.glGetIntegerv(GL_PACK_SKIP_ROWS, skiprows);
+ gl.glGetIntegerv(GL_PACK_SKIP_PIXELS, skippixels);
+ gl.glGetIntegerv(GL_PACK_ALIGNMENT, alignment);
+
+ /* Little endian machines (DEC Alpha, Intel 80x86, ... for example) could
+ benefit from setting GL_PACK_LSB_FIRST to GL_TRUE
+ instead of GL_FALSE, but this would require changing the
+ generated bitmaps too. */
+ gl.glPixelStorei(GL_PACK_SWAP_BYTES, 0);
+ gl.glPixelStorei(GL_PACK_LSB_FIRST, 1);
+ gl.glPixelStorei(GL_PACK_ROW_LENGTH, w);
+ gl.glPixelStorei(GL_PACK_SKIP_ROWS, 0);
+ gl.glPixelStorei(GL_PACK_SKIP_PIXELS, 0);
+ gl.glPixelStorei(GL_PACK_ALIGNMENT, 1);
+
+ //get viewport data
+ gl.glReadBuffer(source);
+ gl.glReadPixels(x, y, w, h, GL_RGB, GL_UNSIGNED_BYTE, pixels);
+
+ gl.glPixelStorei(GL_PACK_SWAP_BYTES, swapbytes[0]);
+ gl.glPixelStorei(GL_PACK_LSB_FIRST, lsbfirst[0]);
+ gl.glPixelStorei(GL_PACK_ROW_LENGTH, rowlength[0]);
+ gl.glPixelStorei(GL_PACK_SKIP_ROWS, skiprows[0]);
+ gl.glPixelStorei(GL_PACK_SKIP_PIXELS, skippixels[0]);
+ gl.glPixelStorei(GL_PACK_ALIGNMENT, alignment[0]);
+
+ }
+
+ public boolean write2File(String fname)
+ {
+ try {
+ OutputStream os= new java.io.FileOutputStream(fname);
+ return write2File(os);
+ } catch (Exception ex) {
+ System.out.println("TGATextureGrabber.write2File <"+
+ fname+"> failed !\n"+ex);
+ }
+ return false;
+ }
+
+ public boolean write2File(URL base, String uri)
+ {
+ try {
+ URL url = new URL (base, uri);
+ URLConnection urlcon = url.openConnection();
+ urlcon.setDoOutput(true);
+ OutputStream os = urlcon.getOutputStream();
+ return write2File(os);
+ } catch (Exception ex) {
+ System.out.println("TGATextureGrabber.write2File <"+
+ base+" / "+uri+"> failed !\n"+ex);
+ }
+ return false;
+ }
+
+ public abstract boolean write2File(OutputStream os);
+}
+
diff --git a/gl4java/utils/textures/TextureLoader.java b/gl4java/utils/textures/TextureLoader.java
new file mode 100644
index 0000000..36a8cfe
--- /dev/null
+++ b/gl4java/utils/textures/TextureLoader.java
@@ -0,0 +1,41 @@
+package gl4java.utils.textures;
+
+import gl4java.*;
+import gl4java.utils.glut.*;
+
+import java.awt.*;
+import java.awt.Color.*;
+import java.awt.event.*;
+import java.applet.*;
+import java.io.*;
+import java.net.*;
+
+/**
+ * This abstract Class defines the interface
+ * for ALL texture loaders !
+ *
+ * @see TextureTool
+ * @see GLImageCanvas
+ */
+public abstract class TextureLoader
+extends TextureTool
+{
+ protected TextureLoader(GLFunc gl, GLUFunc glu)
+ { super(gl, glu); }
+
+ /**
+ * Loads an Texture
+ *
+ * @param fname The filename
+ */
+ public abstract boolean readTexture(String fname);
+
+ /**
+ * Loads an Texture
+ *
+ * @param base The base URL
+ * @param uri The additional uri for the base URL
+ */
+ public abstract boolean readTexture(URL base, String uri);
+}
+
diff --git a/gl4java/utils/textures/TextureTool.java b/gl4java/utils/textures/TextureTool.java
new file mode 100755
index 0000000..a842d1f
--- /dev/null
+++ b/gl4java/utils/textures/TextureTool.java
@@ -0,0 +1,610 @@
+package gl4java.utils.textures;
+
+import gl4java.*;
+
+import java.awt.*;
+import java.awt.Color.*;
+import java.awt.event.*;
+import java.applet.*;
+import java.io.*;
+import java.net.*;
+
+/**
+ * This Class implements basic functions,
+ * which are used by all TextureLoader implementations !
+ *
+ * @see TextureLoader
+ */
+public abstract class TextureTool
+implements GLEnum, GLUEnum
+{
+ protected GLFunc gl;
+ protected GLUFunc glu;
+
+ /**
+ * just a default type ...
+ */
+ protected byte[] pixel;
+ protected boolean pixelScaled;
+
+ protected int imageWidth;
+ protected int imageHeight;
+ protected int textWidth;
+ protected int textHeight;
+
+ protected int glFormat;
+ protected boolean error;
+
+ public String toString()
+ {
+ return "Texture "+textWidth+"x"+textHeight+
+ "[image "+imageWidth+"x"+imageHeight+
+ "[bpc "+getComponents()+"]"+
+ "]";
+ }
+
+ protected TextureTool(GLFunc gl, GLUFunc glu)
+ {
+ this.gl=gl;
+ this.glu=glu;
+ error=false;
+ pixelScaled = false;
+ }
+
+ public final boolean isOk() { return !error; }
+
+ public final int getGLFormat() { return glFormat; }
+ public int getGLBytesPerComponent() { return 1; }
+ public int getGLComponentFormat() { return GL_UNSIGNED_BYTE; }
+
+ /**
+ * just a default for byte sized component's
+ */
+ public int getComponents()
+ {
+ switch (glFormat)
+ {
+ case GL_RGBA:
+ return 4;
+ case GL_RGB:
+ return 3;
+ case GL_LUMINANCE_ALPHA:
+ return 2;
+ case GL_LUMINANCE:
+ case GL_ALPHA:
+ case GL_COLOR_INDEX:
+ return 1;
+ default:
+ return 0;
+ }
+ }
+
+ /**
+ * Dimension
+ */
+ public final int getImageWidth() { return imageWidth; }
+ public final int getImageHeight() { return imageHeight; }
+
+ public final int getTextureWidth() { return textWidth; }
+ public final int getTextureHeight() { return textHeight; }
+
+
+ public static final int getMaxTextureSize(GLFunc gl)
+ {
+ int[] maxSize=new int[1];
+ gl.glGetIntegerv(GL_MAX_TEXTURE_SIZE, maxSize);
+ return maxSize[0];
+ }
+
+ /**
+ * This method is called directly after loading
+ * the texture !
+ * You normally do not need to call this method !
+ *
+ * The textWidth/textHeight data is set correctly
+ * to a power of 2 !
+ */
+ public void setTextureSize()
+ {
+ int e_x, e_y, i;
+
+ /* achieve the 2**e_x>=imageWidth, 2**e_y>=imageHeight */
+ e_x=0; textWidth=1;
+
+ while (textWidth<imageWidth)
+ { textWidth*=2; e_x++; }
+
+ e_y=0; textHeight=1;
+ while (textHeight<imageHeight)
+ { textHeight*=2; e_y++; }
+
+ int[] format = new int[1];
+
+ do {
+ gl.glTexImage2D(GL_PROXY_TEXTURE_2D, 0,
+ getComponents(),
+ textWidth, textHeight,
+ 0,
+ glFormat,
+ GL_UNSIGNED_BYTE,
+ (byte[])null);
+ glutReportErrors();
+
+ gl.glGetTexLevelParameteriv
+ (GL_PROXY_TEXTURE_2D, 0,
+ GL_TEXTURE_INTERNAL_FORMAT, format);
+ glutReportErrors();
+
+
+ //
+ // if(format[0]!=glFormat)
+ //
+ if(format[0]==0)
+ {
+ System.out.println("text size too big: "+this.toString()+", "+format[0]+"!="+glFormat);
+ if(textWidth>textHeight)
+ {
+ e_x--; textWidth=1;
+ for(i=e_x; i>0; i--)
+ textWidth*=2;
+ } else {
+ e_y--; textHeight=1;
+ for(i=e_y; i>0; i--)
+ textHeight*=2;
+ }
+ }
+ } while (format[0]==0 && /* format[0]!=glFormat && */
+ textWidth>1 && textHeight>1);
+
+ }
+
+ /**
+ * The image data, with the given
+ * Dimension and Format !
+ */
+ public final byte[] getTexture() { return pixel; }
+
+ /**
+ * This method can be called,
+ * if you want to have a normal image-data size
+ * with the power of two !
+ *
+ * The Ascpect-Ratio is dropped !
+ *
+ * You can call this method directly after loading a
+ * texture !
+ *
+ * The pixel store mode GL_UNPACK_ALIGNMENT & GL_PACK_ALIGNMENT,
+ * is set temporary to byte alignment, then back to default (4) !
+ *
+ * The pixel store mode GL_UNPACK_ROW_LENGTH & GL_PACK_ROW_LENGTH,
+ * is set temporary to imageWidth, then back to default (0) !
+ *
+ * @see GLUFunc#gluScaleImage
+ * @see GLFunc#glPixelStorei
+ */
+ public boolean scaleTexture2Pow2()
+ {
+ if(pixelScaled)
+ return true;
+
+ int swapbytes[]={0}, lsbfirst[]={0}, rowlength[]={0};
+ int skiprows[]={0}, skippixels[]={0}, alignment[]={0};
+ int unswapbytes[]={0}, unlsbfirst[]={0}, unrowlength[]={0};
+ int unskiprows[]={0}, unskippixels[]={0}, unalignment[]={0};
+
+ setTextureSize();
+
+ if (textWidth != imageWidth ||
+ textHeight != imageHeight)
+ {
+ int colorBytes;
+
+ // speicher fuer scaliertes bild anlegen
+ byte[] buffer=new byte[textWidth * textHeight *
+ getComponents()];
+
+ /* Save current modes. */
+ gl.glGetIntegerv(GL_PACK_SWAP_BYTES, swapbytes);
+ gl.glGetIntegerv(GL_PACK_LSB_FIRST, lsbfirst);
+ gl.glGetIntegerv(GL_PACK_ROW_LENGTH, rowlength);
+ gl.glGetIntegerv(GL_PACK_SKIP_ROWS, skiprows);
+ gl.glGetIntegerv(GL_PACK_SKIP_PIXELS, skippixels);
+ gl.glGetIntegerv(GL_PACK_ALIGNMENT, alignment);
+ gl.glGetIntegerv(GL_UNPACK_SWAP_BYTES, unswapbytes);
+ gl.glGetIntegerv(GL_UNPACK_LSB_FIRST, unlsbfirst);
+ gl.glGetIntegerv(GL_UNPACK_ROW_LENGTH, unrowlength);
+ gl.glGetIntegerv(GL_UNPACK_SKIP_ROWS, unskiprows);
+ gl.glGetIntegerv(GL_UNPACK_SKIP_PIXELS, unskippixels);
+ gl.glGetIntegerv(GL_UNPACK_ALIGNMENT, unalignment);
+
+ gl.glPixelStorei(GL_PACK_SWAP_BYTES, 0);
+ gl.glPixelStorei(GL_PACK_LSB_FIRST, 1);
+ gl.glPixelStorei(GL_PACK_ROW_LENGTH, 0);
+ gl.glPixelStorei(GL_PACK_SKIP_ROWS, 0);
+ gl.glPixelStorei(GL_PACK_SKIP_PIXELS, 0);
+ gl.glPixelStorei(GL_PACK_ALIGNMENT, 1);
+ gl.glPixelStorei(GL_UNPACK_SWAP_BYTES, 0);
+ gl.glPixelStorei(GL_UNPACK_LSB_FIRST, 1);
+ gl.glPixelStorei(GL_UNPACK_ROW_LENGTH, imageWidth);
+ gl.glPixelStorei(GL_UNPACK_SKIP_ROWS, 0);
+ gl.glPixelStorei(GL_UNPACK_SKIP_PIXELS, 0);
+ gl.glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
+
+ if( glu.gluScaleImage(glFormat,
+ imageWidth, imageHeight,
+ GL_UNSIGNED_BYTE,
+ pixel,
+ textWidth, textHeight,
+ GL_UNSIGNED_BYTE,
+ buffer)!=0 )
+ {
+ // glu failure
+ error=true;
+ } else {
+ pixel = buffer;
+ }
+
+ gl.glPixelStorei(GL_PACK_SWAP_BYTES, swapbytes[0]);
+ gl.glPixelStorei(GL_PACK_LSB_FIRST, lsbfirst[0]);
+ gl.glPixelStorei(GL_PACK_ROW_LENGTH, rowlength[0]);
+ gl.glPixelStorei(GL_PACK_SKIP_ROWS, skiprows[0]);
+ gl.glPixelStorei(GL_PACK_SKIP_PIXELS, skippixels[0]);
+ gl.glPixelStorei(GL_PACK_ALIGNMENT, alignment[0]);
+ gl.glPixelStorei(GL_UNPACK_SWAP_BYTES, unswapbytes[0]);
+ gl.glPixelStorei(GL_UNPACK_LSB_FIRST, unlsbfirst[0]);
+ gl.glPixelStorei(GL_UNPACK_ROW_LENGTH, unrowlength[0]);
+ gl.glPixelStorei(GL_UNPACK_SKIP_ROWS, unskiprows[0]);
+ gl.glPixelStorei(GL_UNPACK_SKIP_PIXELS, unskippixels[0]);
+ gl.glPixelStorei(GL_UNPACK_ALIGNMENT, unalignment[0]);
+ }
+ if(!error)
+ pixelScaled = true;
+ return pixelScaled;
+ }
+
+ /**
+ * This method can be called,
+ * if you want to have an optimal image-data size
+ * which fits best into the texture-MEMORY !
+ *
+ * The Ascpect-Ratio is not changed
+ * - seen from the texture-MEMORY-ratio
+ * to the netto-image-MEMORY-ratio !
+ *
+ * If you want to render this result with the correct
+ * apsect-ration,
+ * you MUST set the vertices in relation to
+ * the textureWidth and textureHeight !
+ * Look in the demo: "demos/MiscDemos/GLImageWorld1" !
+ *
+ * You can call this method directly after loading a
+ * texture !
+ *
+ * The pixel store mode GL_UNPACK_ALIGNMENT & GL_PACK_ALIGNMENT,
+ * is set temporary to byte alignment, then back to default (4) !
+ *
+ * The pixel store mode GL_UNPACK_ROW_LENGTH & GL_PACK_ROW_LENGTH,
+ * is set temporary to imageWidth, then back to default (0) !
+ *
+ * @see GLUFunc#gluScaleImage
+ * @see GLFunc#glPixelStorei
+ */
+ public boolean scaleTexture4BestSize()
+ {
+ if(pixelScaled)
+ return true;
+
+ setTextureSize();
+
+ if (textWidth != imageWidth ||
+ textHeight != imageHeight)
+ {
+ int swapbytes[]={0}, lsbfirst[]={0}, rowlength[]={0};
+ int skiprows[]={0}, skippixels[]={0}, alignment[]={0};
+ int unswapbytes[]={0}, unlsbfirst[]={0}, unrowlength[]={0};
+ int unskiprows[]={0}, unskippixels[]={0}, unalignment[]={0};
+ int colorBytes;
+
+ // speicher fuer scaliertes bild anlegen
+ byte[] buffer=new byte[textWidth * textHeight *
+ getComponents()];
+
+ int w=textWidth;
+ int h=textHeight;
+
+ double iaspect = (double)imageWidth/
+ (double)imageHeight;
+
+ if(textWidth<textHeight)
+ h = (int) ((textWidth / iaspect)+0.5);
+ else
+ w = (int) ((textHeight * iaspect)+0.5);
+
+ /*
+ System.out.println("scale4Best: size "+
+ imageWidth+"/"+imageHeight+" -> "+w+"/"+h);
+ System.out.println("scale4Best: aspect (w/h) "+
+ iaspect+" -> "+(double)w/(double)h);
+ */
+
+ /* Save current modes. */
+ gl.glGetIntegerv(GL_PACK_SWAP_BYTES, swapbytes);
+ gl.glGetIntegerv(GL_PACK_LSB_FIRST, lsbfirst);
+ gl.glGetIntegerv(GL_PACK_ROW_LENGTH, rowlength);
+ gl.glGetIntegerv(GL_PACK_SKIP_ROWS, skiprows);
+ gl.glGetIntegerv(GL_PACK_SKIP_PIXELS, skippixels);
+ gl.glGetIntegerv(GL_PACK_ALIGNMENT, alignment);
+ gl.glGetIntegerv(GL_UNPACK_SWAP_BYTES, unswapbytes);
+ gl.glGetIntegerv(GL_UNPACK_LSB_FIRST, unlsbfirst);
+ gl.glGetIntegerv(GL_UNPACK_ROW_LENGTH, unrowlength);
+ gl.glGetIntegerv(GL_UNPACK_SKIP_ROWS, unskiprows);
+ gl.glGetIntegerv(GL_UNPACK_SKIP_PIXELS, unskippixels);
+ gl.glGetIntegerv(GL_UNPACK_ALIGNMENT, unalignment);
+
+ gl.glPixelStorei(GL_PACK_SWAP_BYTES, 0);
+ gl.glPixelStorei(GL_PACK_LSB_FIRST, 1);
+ gl.glPixelStorei(GL_PACK_ROW_LENGTH, textWidth);
+ gl.glPixelStorei(GL_PACK_SKIP_ROWS, 0);
+ gl.glPixelStorei(GL_PACK_SKIP_PIXELS, 0);
+ gl.glPixelStorei(GL_PACK_ALIGNMENT, 1);
+ gl.glPixelStorei(GL_UNPACK_SWAP_BYTES, 0);
+ gl.glPixelStorei(GL_UNPACK_LSB_FIRST, 1);
+ gl.glPixelStorei(GL_UNPACK_ROW_LENGTH, imageWidth);
+ gl.glPixelStorei(GL_UNPACK_SKIP_ROWS, 0);
+ gl.glPixelStorei(GL_UNPACK_SKIP_PIXELS, 0);
+ gl.glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
+
+ if( glu.gluScaleImage(glFormat,
+ imageWidth, imageHeight,
+ GL_UNSIGNED_BYTE,
+ pixel,
+ w, h,
+ GL_UNSIGNED_BYTE,
+ buffer)!=0 )
+ {
+ // glu failure
+ error=true;
+ } else {
+ pixel = buffer;
+ imageWidth=w;
+ imageHeight=h;
+ }
+
+ gl.glPixelStorei(GL_PACK_SWAP_BYTES, swapbytes[0]);
+ gl.glPixelStorei(GL_PACK_LSB_FIRST, lsbfirst[0]);
+ gl.glPixelStorei(GL_PACK_ROW_LENGTH, rowlength[0]);
+ gl.glPixelStorei(GL_PACK_SKIP_ROWS, skiprows[0]);
+ gl.glPixelStorei(GL_PACK_SKIP_PIXELS, skippixels[0]);
+ gl.glPixelStorei(GL_PACK_ALIGNMENT, alignment[0]);
+ gl.glPixelStorei(GL_UNPACK_SWAP_BYTES, unswapbytes[0]);
+ gl.glPixelStorei(GL_UNPACK_LSB_FIRST, unlsbfirst[0]);
+ gl.glPixelStorei(GL_UNPACK_ROW_LENGTH, unrowlength[0]);
+ gl.glPixelStorei(GL_UNPACK_SKIP_ROWS, unskiprows[0]);
+ gl.glPixelStorei(GL_UNPACK_SKIP_PIXELS, unskippixels[0]);
+ gl.glPixelStorei(GL_UNPACK_ALIGNMENT, unalignment[0]);
+ }
+ if(!error)
+ pixelScaled = true;
+ return pixelScaled;
+ }
+
+ /**
+ * This method loads the image into
+ * the current bind GL_TEXTURE_2D texture !
+ *
+ * Be sure to have the GL-Context being current !
+ *
+ * Be sure to have the GL_TEXTURE_2D bind to
+ * a textureName !
+ *
+ * This method calls scaleTexture2Pow2() to
+ * make the image of the normal texture size := pow2 !
+ * Then glTexImage2D is called with the texture properties !
+ *
+ * The Ascpect-Ratio is dropped !
+ *
+ * @see TextureTool#scaleTexture2Pow2
+ * @see GLFunc#glGenTextures
+ * @see GLFunc#glBindTexture
+ * @see GLFunc#glTexImage2D
+ * @see GLFunc#glPixelStorei
+ */
+ public boolean texImage2DScaled2Pow2()
+ {
+ // The Scaled Way
+ if(!scaleTexture2Pow2())
+ return false;
+
+ gl.glTexImage2D(GL_TEXTURE_2D,
+ 0,
+ getComponents(),
+ getTextureWidth(),
+ getTextureHeight(),
+ 0,
+ getGLFormat(),
+ getGLComponentFormat(),
+ getTexture()); // The Scaled Way
+
+ return glutReportErrors();
+ }
+
+ /**
+ * This method loads the image into
+ * the current bind GL_TEXTURE_2D texture !
+ *
+ * Be sure to have the GL-Context being current !
+ *
+ * Be sure to have the GL_TEXTURE_2D bind to
+ * a textureName !
+ *
+ * This method calls scaleTexture4BestSize() to
+ * make the image of the best fitting size
+ * relative to the texture-size!
+ * Then glTexImage2D is called with the texture properties !
+ *
+ * The Ascpect-Ratio is not changed !
+ *
+ * A fine example exists in "demos/MiscDemos/GLImageViewerWorld" !
+ *
+ * @see TextureTool#scaleTexture4BestSize
+ * @see GLFunc#glGenTextures
+ * @see GLFunc#glBindTexture
+ * @see GLFunc#glTexImage2D
+ * @see GLFunc#glPixelStorei
+ */
+ public boolean texImage2DScaled4BestSize()
+ {
+ // The Scaled Way
+ if(!scaleTexture4BestSize())
+ return false;
+
+ gl.glTexImage2D(GL_TEXTURE_2D,
+ 0,
+ getComponents(),
+ getTextureWidth(),
+ getTextureHeight(),
+ 0,
+ getGLFormat(),
+ getGLComponentFormat(),
+ getTexture()); // The Scaled Way
+
+ return glutReportErrors();
+ }
+
+ /**
+ * This method loads the image into
+ * the current bind GL_TEXTURE_2D texture !
+ *
+ * Be sure to have the GL-Context being current !
+ *
+ * Be sure to have the GL_TEXTURE_2D bind to
+ * a textureName !
+ *
+ * This method creates a target texture (glTexImage2D)
+ * without data,
+ * and substitutes only the unscaled image data (glTexSubImage2D) !
+ *
+ * The benefits of this functions is,
+ * that the image/texture is not scaled !
+ * A fine example exists in "demos/MiscDemos/GLImageViewerCanvas" !
+ *
+ * The pixel store mode GL_UNPACK_ALIGNMENT,
+ * is set temporary to byte alignment, then back to default (4) !
+ *
+ * The pixel store mode GL_UNPACK_ROW_LENGTH,
+ * is set temporary to imageWidth, then back to default (0) !
+ *
+ * @param clear if true, the texture will be initially loaded with
+ * a dummy blank (black) array
+ *
+ * @see GLFunc#glGenTextures
+ * @see GLFunc#glBindTexture
+ * @see GLFunc#glTexImage2D
+ * @see GLFunc#glTexSubImage2D
+ * @see GLFunc#glPixelStorei
+ * @see GLImageCanvas
+ */
+ public boolean texImage2DNonScaled(boolean clear)
+ {
+ int swapbytes[]={0}, lsbfirst[]={0}, rowlength[]={0};
+ int skiprows[]={0}, skippixels[]={0}, alignment[]={0};
+ int unswapbytes[]={0}, unlsbfirst[]={0}, unrowlength[]={0};
+ int unskiprows[]={0}, unskippixels[]={0}, unalignment[]={0};
+
+ /* Save current modes. */
+ gl.glGetIntegerv(GL_PACK_SWAP_BYTES, swapbytes);
+ gl.glGetIntegerv(GL_PACK_LSB_FIRST, lsbfirst);
+ gl.glGetIntegerv(GL_PACK_ROW_LENGTH, rowlength);
+ gl.glGetIntegerv(GL_PACK_SKIP_ROWS, skiprows);
+ gl.glGetIntegerv(GL_PACK_SKIP_PIXELS, skippixels);
+ gl.glGetIntegerv(GL_PACK_ALIGNMENT, alignment);
+ gl.glGetIntegerv(GL_UNPACK_SWAP_BYTES, unswapbytes);
+ gl.glGetIntegerv(GL_UNPACK_LSB_FIRST, unlsbfirst);
+ gl.glGetIntegerv(GL_UNPACK_ROW_LENGTH, unrowlength);
+ gl.glGetIntegerv(GL_UNPACK_SKIP_ROWS, unskiprows);
+ gl.glGetIntegerv(GL_UNPACK_SKIP_PIXELS, unskippixels);
+ gl.glGetIntegerv(GL_UNPACK_ALIGNMENT, unalignment);
+
+ gl.glPixelStorei(GL_PACK_SWAP_BYTES, 0);
+ gl.glPixelStorei(GL_PACK_LSB_FIRST, 1);
+ gl.glPixelStorei(GL_PACK_ROW_LENGTH, 0);
+ gl.glPixelStorei(GL_PACK_SKIP_ROWS, 0);
+ gl.glPixelStorei(GL_PACK_SKIP_PIXELS, 0);
+ gl.glPixelStorei(GL_PACK_ALIGNMENT, 1);
+ gl.glPixelStorei(GL_UNPACK_SWAP_BYTES, 0);
+ gl.glPixelStorei(GL_UNPACK_LSB_FIRST, 1);
+ gl.glPixelStorei(GL_UNPACK_ROW_LENGTH, imageWidth);
+ gl.glPixelStorei(GL_UNPACK_SKIP_ROWS, 0);
+ gl.glPixelStorei(GL_UNPACK_SKIP_PIXELS, 0);
+ gl.glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
+
+ byte[] clrPixel = null;
+
+ if(clear)
+ {
+ clrPixel=
+ new byte[textWidth * textHeight * getComponents()];
+ }
+
+ gl.glTexImage2D(GL_TEXTURE_2D,
+ 0,
+ getComponents(),
+ getTextureWidth(),
+ getTextureHeight(),
+ 0,
+ getGLFormat(),
+ getGLComponentFormat(),
+ clrPixel);
+
+ // The unscaled way
+ /*
+ System.out.println("******* width "+getImageWidth());
+ System.out.println("******* height "+getImageHeight());
+ System.out.println("******* format "+getGLFormat());
+ System.out.println("******* comps "+getGLComponentFormat());
+ System.out.println("******* text "+getTexture());
+ System.out.println("******* text.length "+getTexture().length);
+ */
+
+ gl.glTexSubImage2D(GL_TEXTURE_2D,
+ 0,
+ 0, 0,
+ getImageWidth(),
+ getImageHeight(),
+ getGLFormat(),
+ getGLComponentFormat(),
+ getTexture());
+
+ // System.out.println("+++++++++");
+
+ gl.glPixelStorei(GL_PACK_SWAP_BYTES, swapbytes[0]);
+ gl.glPixelStorei(GL_PACK_LSB_FIRST, lsbfirst[0]);
+ gl.glPixelStorei(GL_PACK_ROW_LENGTH, rowlength[0]);
+ gl.glPixelStorei(GL_PACK_SKIP_ROWS, skiprows[0]);
+ gl.glPixelStorei(GL_PACK_SKIP_PIXELS, skippixels[0]);
+ gl.glPixelStorei(GL_PACK_ALIGNMENT, alignment[0]);
+ gl.glPixelStorei(GL_UNPACK_SWAP_BYTES, unswapbytes[0]);
+ gl.glPixelStorei(GL_UNPACK_LSB_FIRST, unlsbfirst[0]);
+ gl.glPixelStorei(GL_UNPACK_ROW_LENGTH, unrowlength[0]);
+ gl.glPixelStorei(GL_UNPACK_SKIP_ROWS, unskiprows[0]);
+ gl.glPixelStorei(GL_UNPACK_SKIP_PIXELS, unskippixels[0]);
+ gl.glPixelStorei(GL_UNPACK_ALIGNMENT, unalignment[0]);
+ return glutReportErrors();
+ }
+
+ protected final boolean glutReportErrors()
+ {
+ int error;
+
+ while ((error = gl.glGetError()) != GL_NO_ERROR)
+ __glutWarning("GL error: "+glu.gluErrorString(error));
+ return error==GL_NO_ERROR;
+ }
+
+ protected static final void __glutWarning(String str)
+ {
+ System.out.println("GLUT: Warning in (unamed): "+str+"\n");
+ }
+}
+
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..494cfc5
--- /dev/null
+++ b/makefile
@@ -0,0 +1,851 @@
+#
+# Makefile for the GL4Java
+#
+# THIS MAKEFILE IS COMPLETELY REENGINEERED
+# NOW - WE HAVE SUFFIX RULES - JUST ONE MAKEFILE
+# JUST ONE SYMBOLS.MAK FILE (WHERE ALL DIRS and TOOLS ARE)
+#
+#
+# for general creation (java + native-lib) invoke:
+#
+# make x11 : create java and native lib for unix/x11
+# make w32 : create java and native lib for windows32 (SUN & MSJVM)
+# make mac : create java and native lib for Macintosh
+#
+#
+# to copy the class-files to DEST_CLASSES_DIR, invoke:
+#
+# make classcpy
+#
+#
+# to save the native-library invoke after general creation:
+#
+# make unix2binpkg : put the created unix-lib to the binpkg-dir
+# make win2binpkg : put the created win-lib (SUN & MSJVM)
+# to the binpkg-dir
+# make mac2binpkg : put the created macintosh-lib to the binpkg-dir
+#
+# to create the complete html documentation invoke
+#
+# make htmldoc : unix
+# make javadoc : unix (javadoc only)
+# make htmldocw32 : win32
+# make javadocw32 : win32 (javadoc only)
+#
+#
+# to put all together as an tar-gzip archive in the archive-dir, invoke:
+#
+# make archiv
+#
+#
+# for cleanup (without archive and binpkg !!) invoke:
+#
+# make clean : only temp-files (java, native)
+# make cleannative : only temp-files (native)
+# make cleanall : all temp-,java-,and native-files
+#
+# * ---------------
+# *
+# * Sven Goethel
+# *
+# * September 1997
+#
+# 25. Juni 1998
+#
+# ---------
+#
+# changed: now unix2binpkg replaces: linux2binpkg, aix2binpkg and solaris2binpkg
+# the UNIXLIBDIR and WIN32LIBDIR
+# resides now in the symbol.mak.* files !
+#
+# 15. January 1999
+#
+# -----------
+#
+# changed: Now having UNIXTYPE/WIN32TYPE defined
+# instead of UNIXLIBDIR/WIN32LIBDIR in symbols.mak,
+# where only the OS is specified - not the GL4Java version !
+# Now - a tar-gz/zip file is generated for the specific
+# OS-type - not a directory. The filename contains the
+# GL4Java name+version and the OS type information !
+#
+
+######################################################################
+# Locations that are environment specific. You will need to
+# change these to reflect the location of Java and Mesa (or OpenGL)
+# on your system
+######################################################################
+
+include symbols.mak
+
+######################################################################
+# end of location specifications -- the rest of this file should not
+# need to be changed to compile and link OpenGLwidget applets
+######################################################################
+
+
+# subdirectory to put the C header files produced by JAVAH
+
+CHEADERDIR = CClassHeaders
+
+
+# subdirectory where the C Native code files live
+
+CNATIVEDIR = CNativeCode
+
+# LIBRARY DEFINITION
+
+LIBMAJOR = 2
+LIBMINOR = 5
+LIBBUGFIX = 0
+RELEASE = 0
+
+#
+# The demo release number
+#
+DEMORELEASE = 3
+
+#lib GLContext
+LIBBASENAME1b = GL4JavaJauGljJNI12
+LIBNAME1b = lib$(LIBBASENAME1b)
+LIBRARY1b = $(LIBNAME1b).so
+
+#lib GLContext
+LIBBASENAME1 = GL4JavaJauGljJNI
+LIBNAME1 = lib$(LIBBASENAME1)
+LIBRARY1 = $(LIBNAME1).so
+
+#lib GLFunc - 1
+LIBBASENAME2 = GL4JavaJauGLJNI
+LIBNAME2 = lib$(LIBBASENAME2)
+LIBRARY2 = $(LIBNAME2).so
+
+#lib GLFunc - 1
+LIBBASENAME2b = GL4JavaJauGLJNI12
+LIBNAME2b = lib$(LIBBASENAME2b)
+LIBRARY2b = $(LIBNAME2b).so
+
+#lib GLUFunc - 1
+LIBBASENAME3 = GL4JavaJauGLUJNI
+LIBNAME3 = lib$(LIBBASENAME3)
+LIBRARY3 = $(LIBNAME3).so
+
+#lib GLUFunc - 1
+LIBBASENAME3b = GL4JavaJauGLUJNI12
+LIBNAME3b = lib$(LIBBASENAME3b)
+LIBRARY3b = $(LIBNAME3b).so
+
+#lib GLFunc - 2
+LIBBASENAME4 = GL4JavaJauGLJNInf
+LIBNAME4 = lib$(LIBBASENAME4)
+LIBRARY4 = $(LIBNAME4).so
+
+#lib GLUFunc - 2
+LIBBASENAME5 = GL4JavaJauGLUJNInf
+LIBNAME5 = lib$(LIBBASENAME5)
+LIBRARY5 = $(LIBNAME5).so
+
+#lib GLFunc - 3
+LIBBASENAME6 = GL4JavaJauGLJNItst
+LIBNAME6 = lib$(LIBBASENAME6)
+LIBRARY6 = $(LIBNAME6).so
+
+#lib GLFunc - 3
+LIBBASENAME6b = GL4JavaJauGLJNI12tst
+LIBNAME6b = lib$(LIBBASENAME6b)
+LIBRARY6b = $(LIBNAME6b).so
+
+#lib GLUFunc - 3
+LIBBASENAME7 = GL4JavaJauGLUJNItst
+LIBNAME7 = lib$(LIBBASENAME7)
+LIBRARY7 = $(LIBNAME7).so
+
+#lib GLUFunc - 3
+LIBBASENAME7b = GL4JavaJauGLUJNI12tst
+LIBNAME7b = lib$(LIBBASENAME7b)
+LIBRARY7b = $(LIBNAME7b).so
+
+# the name of the package has to match the name of the subdirectory that
+# the java source and java class files sit in
+# PACKAGEDIR is relative to THISDIR
+
+PACKAGEDIR = gl4java
+
+
+INCL_PRJ = -I$(CHEADERDIR)
+
+CC_OPTS = $(INCL_OS) $(INCL_PRJ) $(CFLAGS)
+
+MK_GL4JAVA_JAR = ( cd $(DEST_CLASSES_DIR) ; \
+ rm -f gl4java.jar ; \
+ $(JAR) cf gl4java.jar \
+ gl4java/*.class \
+ gl4java/applet \
+ gl4java/awt \
+ gl4java/swing \
+ gl4java/jau \
+ gl4java/system \
+ gl4java/utils/*.class \
+ gl4java/utils/textures \
+ gl4java/utils/glut/*.class ; \
+ rm -f gl4java-glutfonts.jar ; \
+ $(JAR) cf gl4java-glutfonts.jar \
+ gl4java/utils/glut/fonts ; \
+ )
+
+######################################################################
+# SPECIFY ALL JAVA FILES
+# ... AND ALL JAVA-C-MAPPING FILES (generated *.c and *.h)
+######################################################################
+
+# classes which rely on native methods
+#
+#lib GLContext
+JAVA_C_MAP1_FILE = GLContext.java
+
+#lib GLFunc - 1
+JAVA_C_MAP2_FILE = GLFuncJauJNI.java
+
+#lib GLUFunc - 1
+JAVA_C_MAP3_FILE = GLUFuncJauJNI.java
+
+#lib GLFunc - 2
+JAVA_C_MAP4_FILE = GLFuncJauJNInf.java
+
+#lib GLUFunc - 2
+JAVA_C_MAP5_FILE = GLUFuncJauJNInf.java
+
+FILES_GLUT_FONT.java = \
+ $(PACKAGEDIR)/utils/glut/fonts/GLUTBitmapFont.java \
+ $(PACKAGEDIR)/utils/glut/fonts/GLUTStrokeFont.java \
+ $(PACKAGEDIR)/utils/glut/fonts/BitmapCharRec.java \
+ $(PACKAGEDIR)/utils/glut/fonts/BitmapFontRec.java \
+ $(PACKAGEDIR)/utils/glut/fonts/CoordRec.java \
+ $(PACKAGEDIR)/utils/glut/fonts/StrokeCharRec.java \
+ $(PACKAGEDIR)/utils/glut/fonts/StrokeFontRec.java \
+ $(PACKAGEDIR)/utils/glut/fonts/StrokeRec.java \
+ $(PACKAGEDIR)/utils/glut/fonts/data/glutBitmap8By13.java \
+ $(PACKAGEDIR)/utils/glut/fonts/data/glutBitmap9By15.java \
+ $(PACKAGEDIR)/utils/glut/fonts/data/glutBitmapHelvetica10.java \
+ $(PACKAGEDIR)/utils/glut/fonts/data/glutBitmapHelvetica12.java \
+ $(PACKAGEDIR)/utils/glut/fonts/data/glutBitmapHelvetica18.java \
+ $(PACKAGEDIR)/utils/glut/fonts/data/glutBitmapTimesRoman10.java \
+ $(PACKAGEDIR)/utils/glut/fonts/data/glutBitmapTimesRoman24.java \
+ $(PACKAGEDIR)/utils/glut/fonts/data/glutStrokeMonoRoman.java \
+ $(PACKAGEDIR)/utils/glut/fonts/data/glutStrokeRoman.java \
+ $(PACKAGEDIR)/utils/glut/fonts/GLUTFuncLightImplWithFonts.java
+
+FILES_GLUT_FONT.class = ${FILES_GLUT_FONT.java:.java=.class}
+
+FILES.java = $(PACKAGEDIR)/GL4JavaInitException.java \
+ $(PACKAGEDIR)/jau/awt/WinHandleAccess.java \
+ $(PACKAGEDIR)/GL4JavaReflections.java \
+ $(PACKAGEDIR)/GLEnum.java \
+ $(PACKAGEDIR)/GLUEnum.java \
+ $(PACKAGEDIR)/GLFunc.java \
+ $(PACKAGEDIR)/GLUFunc.java \
+ $(PACKAGEDIR)/$(JAVA_C_MAP1_FILE) \
+ $(PACKAGEDIR)/$(JAVA_C_MAP2_FILE) \
+ $(PACKAGEDIR)/$(JAVA_C_MAP3_FILE) \
+ $(PACKAGEDIR)/$(JAVA_C_MAP4_FILE) \
+ $(PACKAGEDIR)/$(JAVA_C_MAP5_FILE) \
+ $(PACKAGEDIR)/utils/Tool.java \
+ $(PACKAGEDIR)/utils/Test.java \
+ $(PACKAGEDIR)/awt/GLCanvas.java \
+ $(PACKAGEDIR)/awt/GLAnimCanvas.java \
+ $(PACKAGEDIR)/awt/GLImageCanvas.java \
+ $(PACKAGEDIR)/applet/SimpleGLAnimApplet1.java \
+ $(PACKAGEDIR)/swing/GLJPanel.java \
+ $(PACKAGEDIR)/swing/GLAnimJPanel.java \
+ $(PACKAGEDIR)/swing/SimpleGLJApplet1.java \
+ $(PACKAGEDIR)/utils/glut/GLUTEnum.java \
+ $(PACKAGEDIR)/utils/glut/GLUTFunc.java \
+ $(PACKAGEDIR)/utils/glut/GLUTFuncLightImpl.java \
+ $(FILES_GLUT_FONT.java) \
+ $(PACKAGEDIR)/utils/textures/TextureTool.java \
+ $(PACKAGEDIR)/utils/textures/TextureLoader.java \
+ $(PACKAGEDIR)/utils/textures/IOTextureLoader.java \
+ $(PACKAGEDIR)/utils/textures/PngTextureLoader.java \
+ $(PACKAGEDIR)/utils/textures/PPMAsciiTextureLoader.java \
+ $(PACKAGEDIR)/utils/textures/TGATextureLoader.java \
+ $(PACKAGEDIR)/utils/textures/AWTTextureLoader.java \
+ $(PACKAGEDIR)/utils/textures/TextureGrabber.java \
+ $(PACKAGEDIR)/utils/textures/TGATextureGrabber.java
+
+FILES.class = ${FILES.java:.java=.class}
+
+FILES_mac.java = gl4java/jau/awt/macintosh/MacHandleAccess.java
+
+FILES_mac.class = ${FILES_mac.java:.java=.class}
+
+FILES_w32.java = gl4java/jau/awt/windows/Win32HandleAccess.java
+
+FILES_w32.class = ${FILES_w32.java:.java=.class}
+
+FILES_msw32.java = $(PACKAGEDIR)/system/GljMSJDirect.java \
+ gl4java/jau/awt/windows/MSWin32HandleAccess.java
+
+FILES_msw32.class = ${FILES_msw32.java:.java=.class}
+
+FILES_x11.java = gl4java/jau/awt/motif/X11HandleAccess.java
+
+FILES_x11.class = ${FILES_x11.java:.java=.class}
+
+
+#lib GLContext
+FILES1.c = $(CNATIVEDIR)/OpenGL_X11.c \
+ $(CNATIVEDIR)/OpenGL_misc.c \
+ $(CNATIVEDIR)/jnitools.c \
+ $(CNATIVEDIR)/GLCallbackHelperJNI.c
+
+FILES1b.c = $(CNATIVEDIR)/OpenGL_X11.c \
+ $(CNATIVEDIR)/OpenGL_misc.c \
+ $(CNATIVEDIR)/jni12tools.c \
+ $(CNATIVEDIR)/GLCallbackHelperJNI.c
+
+#lib GLFunc - 1
+FILES2.c = $(CNATIVEDIR)/OpenGL_JauJNI_dynfuncs.c
+
+#lib GLFunc - 1
+FILES2b.c = $(CNATIVEDIR)/OpenGL_JauJNI12_dynfuncs.c
+
+#lib GLUFunc - 1
+FILES3.c = $(CNATIVEDIR)/OpenGLU_JauJNI_funcs.c \
+ $(CNATIVEDIR)/GLUCallbackJNI.c
+
+#lib GLUFunc - 1
+FILES3b.c = $(CNATIVEDIR)/OpenGLU_JauJNI12_funcs.c \
+ $(CNATIVEDIR)/GLUCallbackJNI.c
+
+#lib GLFunc - 2
+FILES4.c = $(CNATIVEDIR)/OpenGL_JauJNInf_dynfuncs.c
+
+#lib GLUFunc - 2
+FILES5.c = $(CNATIVEDIR)/OpenGLU_JauJNInf_funcs.c \
+ $(CNATIVEDIR)/GLUCallbackJNI.c
+
+#lib GLFunc - 3
+FILES6.c = $(CNATIVEDIR)/OpenGL_JauJNItst_dynfuncs.c
+
+#lib GLFunc - 3
+FILES6b.c = $(CNATIVEDIR)/OpenGL_JauJNI12tst_dynfuncs.c
+
+#lib GLUFunc - 3
+FILES7.c = $(CNATIVEDIR)/OpenGLU_JauJNItst_funcs.c \
+ $(CNATIVEDIR)/GLUCallbackJNI.c
+
+#lib GLUFunc - 3
+FILES7b.c = $(CNATIVEDIR)/OpenGLU_JauJNI12tst_funcs.c \
+ $(CNATIVEDIR)/GLUCallbackJNI.c
+
+#lib GLFunc - 3
+FILES1.o = ${FILES1.c:.c=.o}
+FILES1b.o = ${FILES1b.c:.c=.o}
+FILES2.o = ${FILES2.c:.c=.o}
+FILES2b.o = ${FILES2b.c:.c=.o}
+FILES3.o = ${FILES3.c:.c=.o}
+FILES3b.o = ${FILES3b.c:.c=.o}
+FILES4.o = ${FILES4.c:.c=.o}
+FILES5.o = ${FILES5.c:.c=.o}
+FILES6.o = ${FILES6.c:.c=.o}
+FILES6b.o = ${FILES6b.c:.c=.o}
+FILES7.o = ${FILES7.c:.c=.o}
+FILES7b.o = ${FILES7b.c:.c=.o}
+
+#lib GLContext
+FILE.gen1.h = $(CHEADERDIR)/$(PACKAGEDIR)_${JAVA_C_MAP1_FILE:.java=.h}
+
+#lib GLFunc - 1
+FILE.gen2.h = $(CHEADERDIR)/$(PACKAGEDIR)_${JAVA_C_MAP2_FILE:.java=.h}
+
+#lib GLUFunc - 1
+FILE.gen3.h = $(CHEADERDIR)/$(PACKAGEDIR)_${JAVA_C_MAP3_FILE:.java=.h}
+
+#lib GLFunc - 2
+FILE.gen4.h = $(CHEADERDIR)/$(PACKAGEDIR)_${JAVA_C_MAP4_FILE:.java=.h}
+
+#lib GLUFunc - 2
+FILE.gen5.h = $(CHEADERDIR)/$(PACKAGEDIR)_${JAVA_C_MAP5_FILE:.java=.h}
+
+FILES.gen = $(FILE.gen1.h) \
+ $(FILE.gen2.h) \
+ $(FILE.gen3.h) \
+ $(FILE.gen4.h) \
+ $(FILE.gen5.h)
+
+######################################################################
+# SPECIFY ALL SUFFIX-RULES
+######################################################################
+
+.SUFFIXES : .java .class .h .c .o
+
+.class.h:
+ $(JAVAH) -jni -d $(CHEADERDIR) $(PACKAGEDIR).${<F:.class=} 2>&1 \
+ | tee -a $(THISDIR)/errors
+
+.java.class:
+ cd ${<D}; $(JAVAC) -O -deprecation ${<F} 2>&1 \
+ | tee -a $(THISDIR)/errors
+ mkdir -p $(DEST_CLASSES_DIR)/${@D}
+ cp ${@D}/*.class $(DEST_CLASSES_DIR)/${@D}
+
+.c.o:
+ $(CC) $(CC_OPTS) -o $@ $< 2>&1 | tee -a $(THISDIR)/errors
+
+######################################################################
+# SPECIFY ALL TARGETS -- MAIN TARGETS
+######################################################################
+
+x11 : cleanup gljni \
+ $(FILES.class) $(FILES_x11.class) \
+ makeJar \
+ $(HOME_LIB_DIR)/$(LIBRARY1) \
+ $(HOME_LIB_DIR)/$(LIBRARY1b) \
+ $(HOME_LIB_DIR)/$(LIBRARY2) \
+ $(HOME_LIB_DIR)/$(LIBRARY2b) \
+ $(HOME_LIB_DIR)/$(LIBRARY3) \
+ $(HOME_LIB_DIR)/$(LIBRARY3b) \
+ $(HOME_LIB_DIR)/$(LIBRARY4) \
+ $(HOME_LIB_DIR)/$(LIBRARY5) \
+ $(HOME_LIB_DIR)/$(LIBRARY6) \
+ $(HOME_LIB_DIR)/$(LIBRARY6b) \
+ $(HOME_LIB_DIR)/$(LIBRARY7) \
+ $(HOME_LIB_DIR)/$(LIBRARY7b)
+
+mac : cleanup gljni \
+ $(FILES.class) $(FILES_mac.class) \
+ makeJar \
+ $(FILES.gen) \
+ $(CNATIVEDIR)/winstuff.h
+
+
+w32 : cleanup gljni \
+ $(FILES_w32.class) \
+ $(FILES_msw32.class) \
+ $(FILES.class) \
+ makeJar \
+ $(FILES.gen) \
+ $(CNATIVEDIR)/winstuff.h
+
+#gljni : tools gl2j gl2c
+gljni : gl2j gl2c
+
+
+######################################################################
+# GENERATE LIBS ...
+######################################################################
+
+# making the library will create the .so (or only .a)
+# shared library to be loaded in at runtime
+
+$(HOME_LIB_DIR)/$(LIBRARY1): $(FILES1.o)
+ rm -f ${HOME_LIB_DIR}/${LIBNAME1}.*
+ $(MKEXP) $(LIBNAME1) $(FILES1.o)
+ $(MKLIB) $(HOME_LIB_DIR) \
+ $(LIBNAME1) $(LIBMAJOR) $(LIBMINOR) $(LIBBUGFIX) \
+ $(FILES1.o) $(LIBS)
+
+$(HOME_LIB_DIR)/$(LIBRARY1b): $(FILES1b.o)
+ rm -f ${HOME_LIB_DIR}/${LIBNAME1b}.*
+ $(MKEXP) $(LIBNAME1b) $(FILES1b.o)
+ $(MKLIB) $(HOME_LIB_DIR) \
+ $(LIBNAME1b) $(LIBMAJOR) $(LIBMINOR) $(LIBBUGFIX) \
+ $(FILES1b.o) $(LIBS)
+
+$(HOME_LIB_DIR)/$(LIBRARY2): $(FILES2.o)
+ rm -f ${HOME_LIB_DIR}/${LIBNAME2}.*
+ $(MKEXP) $(LIBNAME2) $(FILES2.o)
+ $(MKLIB) $(HOME_LIB_DIR) \
+ $(LIBNAME2) $(LIBMAJOR) $(LIBMINOR) $(LIBBUGFIX) \
+ $(FILES2.o) $(LIBS) -L$(HOME_LIB_DIR) -l$(LIBBASENAME1)
+
+$(HOME_LIB_DIR)/$(LIBRARY2b): $(FILES2b.o)
+ rm -f ${HOME_LIB_DIR}/${LIBNAME2b}.*
+ $(MKEXP) $(LIBNAME2b) $(FILES2b.o)
+ $(MKLIB) $(HOME_LIB_DIR) \
+ $(LIBNAME2b) $(LIBMAJOR) $(LIBMINOR) $(LIBBUGFIX) \
+ $(FILES2b.o) $(LIBS) -L$(HOME_LIB_DIR) -l$(LIBBASENAME1b)
+
+$(HOME_LIB_DIR)/$(LIBRARY3): $(FILES3.o)
+ rm -f ${HOME_LIB_DIR}/${LIBNAME3}.*
+ $(MKEXP) $(LIBNAME3) $(FILES3.o)
+ $(MKLIB) $(HOME_LIB_DIR) \
+ $(LIBNAME3) $(LIBMAJOR) $(LIBMINOR) $(LIBBUGFIX) \
+ $(FILES3.o) $(LIBS) -L$(HOME_LIB_DIR) -l$(LIBBASENAME1)
+
+$(HOME_LIB_DIR)/$(LIBRARY3b): $(FILES3b.o)
+ rm -f ${HOME_LIB_DIR}/${LIBNAME3b}.*
+ $(MKEXP) $(LIBNAME3b) $(FILES3b.o)
+ $(MKLIB) $(HOME_LIB_DIR) \
+ $(LIBNAME3b) $(LIBMAJOR) $(LIBMINOR) $(LIBBUGFIX) \
+ $(FILES3b.o) $(LIBS) -L$(HOME_LIB_DIR) -l$(LIBBASENAME1b)
+
+$(HOME_LIB_DIR)/$(LIBRARY4): $(FILES4.o)
+ rm -f ${HOME_LIB_DIR}/${LIBNAME4}.*
+ $(MKEXP) $(LIBNAME4) $(FILES4.o)
+ $(MKLIB) $(HOME_LIB_DIR) \
+ $(LIBNAME4) $(LIBMAJOR) $(LIBMINOR) $(LIBBUGFIX) \
+ $(FILES4.o) $(LIBS) -L$(HOME_LIB_DIR) -l$(LIBBASENAME1)
+
+$(HOME_LIB_DIR)/$(LIBRARY5): $(FILES5.o)
+ rm -f ${HOME_LIB_DIR}/${LIBNAME5}.*
+ $(MKEXP) $(LIBNAME5) $(FILES5.o)
+ $(MKLIB) $(HOME_LIB_DIR) \
+ $(LIBNAME5) $(LIBMAJOR) $(LIBMINOR) $(LIBBUGFIX) \
+ $(FILES5.o) $(LIBS) -L$(HOME_LIB_DIR) -l$(LIBBASENAME1)
+
+$(HOME_LIB_DIR)/$(LIBRARY6): $(FILES6.o)
+ rm -f ${HOME_LIB_DIR}/${LIBNAME6}.*
+ $(MKEXP) $(LIBNAME6) $(FILES6.o)
+ $(MKLIB) $(HOME_LIB_DIR) \
+ $(LIBNAME6) $(LIBMAJOR) $(LIBMINOR) $(LIBBUGFIX) \
+ $(FILES6.o) $(LIBS) -L$(HOME_LIB_DIR) -l$(LIBBASENAME1)
+
+$(HOME_LIB_DIR)/$(LIBRARY6b): $(FILES6b.o)
+ rm -f ${HOME_LIB_DIR}/${LIBNAME6b}.*
+ $(MKEXP) $(LIBNAME6b) $(FILES6b.o)
+ $(MKLIB) $(HOME_LIB_DIR) \
+ $(LIBNAME6b) $(LIBMAJOR) $(LIBMINOR) $(LIBBUGFIX) \
+ $(FILES6b.o) $(LIBS) -L$(HOME_LIB_DIR) -l$(LIBBASENAME1b)
+
+$(HOME_LIB_DIR)/$(LIBRARY7): $(FILES7.o)
+ rm -f ${HOME_LIB_DIR}/${LIBNAME7}.*
+ $(MKEXP) $(LIBNAME7) $(FILES7.o)
+ $(MKLIB) $(HOME_LIB_DIR) \
+ $(LIBNAME7) $(LIBMAJOR) $(LIBMINOR) $(LIBBUGFIX) \
+ $(FILES7.o) $(LIBS) -L$(HOME_LIB_DIR) -l$(LIBBASENAME1)
+
+$(HOME_LIB_DIR)/$(LIBRARY7b): $(FILES7b.o)
+ rm -f ${HOME_LIB_DIR}/${LIBNAME7b}.*
+ $(MKEXP) $(LIBNAME7b) $(FILES7b.o)
+ $(MKLIB) $(HOME_LIB_DIR) \
+ $(LIBNAME7b) $(LIBMAJOR) $(LIBMINOR) $(LIBBUGFIX) \
+ $(FILES7b.o) $(LIBS) -L$(HOME_LIB_DIR) -l$(LIBBASENAME1b)
+
+######################################################################
+# NEEDED DEPENDENCYs FOR GENERATED FILES ...
+#
+# mapping filenames for suffix rules ...
+######################################################################
+
+#tools :
+# cd C2J ; make C2J
+#
+
+gl2j :
+ cd C2J ; make gl2j
+
+gl2c :
+ cd C2J ; make gl2c
+
+$(PACKAGEDIR)/GLContext.java: makefile $(PACKAGEDIR)/GLContext.java.skel
+ sed -e 's/__SED_CLASS_VERSION__/\"$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)\"/g' \
+ $(PACKAGEDIR)/GLContext.java.skel \
+ > $(PACKAGEDIR)/GLContext.java
+
+$(CNATIVEDIR)/winstuff.h: makefile $(CNATIVEDIR)/winstuff.h.skel
+ sed -e 's/__SED_LIB_VERSION__/\"$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)\"/g' \
+ $(CNATIVEDIR)/winstuff.h.skel \
+ > $(CNATIVEDIR)/winstuff.h
+
+#lib GLContext
+$(CNATIVEDIR)/OpenGL_X11.o: ${FILE.gen1.h}
+
+$(CNATIVEDIR)/OpenGL_misc.o: ${FILE.gen1.h}
+
+$(FILE.gen1.h): $(PACKAGEDIR)/${JAVA_C_MAP1_FILE}
+ $(JAVAH) -jni -d $(CHEADERDIR) $(PACKAGEDIR).${JAVA_C_MAP1_FILE:.java=} 2>&1 \
+ | tee -a $(THISDIR)/errors
+
+$(CNATIVEDIR)/OpenGL_misc.o: $(CNATIVEDIR)/OpenGL_misc.c makefile
+ $(CC) $(CC_OPTS) \
+ -D__LIB_VERSION__=\"$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)\" \
+ -o $@ $< 2>&1 | tee -a $(THISDIR)/errors
+
+#lib GLFunc - 1
+$(CNATIVEDIR)/OpenGL_JauJNI_dynfuncs.o: ${FILE.gen2.h} \
+ $(CNATIVEDIR)/jnitools.h \
+ $(CNATIVEDIR)/GLCallbackHelperJNI.h
+
+$(FILE.gen2.h): $(PACKAGEDIR)/${JAVA_C_MAP2_FILE}
+ $(JAVAH) -jni -d $(CHEADERDIR) $(PACKAGEDIR).${JAVA_C_MAP2_FILE:.java=} 2>&1 \
+ | tee -a $(THISDIR)/errors
+
+
+#lib GLUFunc - 1
+$(CNATIVEDIR)/OpenGLU_JauJNI_funcs.o: ${FILE.gen3.h} \
+ $(CNATIVEDIR)/jnitools.h \
+ $(CNATIVEDIR)/GLCallbackHelperJNI.h
+
+$(FILE.gen3.h): $(PACKAGEDIR)/${JAVA_C_MAP3_FILE}
+ $(JAVAH) -jni -d $(CHEADERDIR) $(PACKAGEDIR).${JAVA_C_MAP3_FILE:.java=} 2>&1 \
+ | tee -a $(THISDIR)/errors
+
+#lib GLFunc - 2
+$(CNATIVEDIR)/OpenGL_JauJNInf_dynfuncs.o: ${FILE.gen4.h} \
+ $(CNATIVEDIR)/jnitools.h \
+ $(CNATIVEDIR)/GLCallbackHelperJNI.h
+
+$(FILE.gen4.h): $(PACKAGEDIR)/${JAVA_C_MAP4_FILE}
+ $(JAVAH) -jni -d $(CHEADERDIR) $(PACKAGEDIR).${JAVA_C_MAP4_FILE:.java=} 2>&1 \
+ | tee -a $(THISDIR)/errors
+
+#lib GLUFunc - 2
+$(CNATIVEDIR)/OpenGLU_JauJNInf_funcs.o: ${FILE.gen5.h} \
+ $(CNATIVEDIR)/jnitools.h \
+ $(CNATIVEDIR)/GLCallbackHelperJNI.h
+
+$(FILE.gen5.h): $(PACKAGEDIR)/${JAVA_C_MAP5_FILE}
+ $(JAVAH) -jni -d $(CHEADERDIR) $(PACKAGEDIR).${JAVA_C_MAP5_FILE:.java=} 2>&1 \
+ | tee -a $(THISDIR)/errors
+
+#
+# This is the stuff for the MS-JVM
+#
+$(PACKAGEDIR)/system/GljMSJDirect.class: $(PACKAGEDIR)/system/GljMSJDirect.java
+ $(MSJAVAC) -O -cp:p .. $< 2>&1 | tee -a errors
+ mkdir -p $(DEST_CLASSES_DIR)/${@D}
+ cp ${@D}/*.class $(DEST_CLASSES_DIR)/${@D}
+
+gl4java/jau/awt/windows/MSWin32HandleAccess.class: gl4java/jau/awt/windows/MSWin32HandleAccess.java
+ $(MSJAVAC) -O -cp:p .. $< 2>&1 | tee -a errors
+ mkdir -p $(DEST_CLASSES_DIR)/${@D}
+ cp ${@D}/*.class $(DEST_CLASSES_DIR)/${@D}
+
+#
+# This is the stuff general
+#
+$(CNATIVEDIR)/GLCallbackHelperJNI.o: $(CNATIVEDIR)/jnitools.h
+
+$(CNATIVEDIR)/GLUCallbackJNI.o: $(CNATIVEDIR)/jnitools.h \
+ $(CNATIVEDIR)/GLCallbackHelperJNI.h
+
+######################################################################
+#
+# now we have some administration/documentation stuff
+#
+######################################################################
+
+cleanup:
+ rm -f errors
+
+# clean out the *.o files and machine generated files from javah
+cleannative:
+ rm -f `find . -name \*~ -o -name \*.swp -o -name \*.bak -o -name \*.obj -o -name \*.o` \
+ $(FILES1.o) $(FILES2.o) \
+ $(FILES3.o) $(FILES4.o) $(FILES5.o) \
+ errors gl4java/*~ CNativeCode/*~ \
+ $(HOME_LIB_DIR)/${LIBNAME1}.* $(HOME_LIB_DIR)/${LIBNAME2}.* \
+ $(HOME_LIB_DIR)/${LIBNAME3}.* $(HOME_LIB_DIR)/${LIBNAME4}.* \
+ $(HOME_LIB_DIR)/${LIBNAME5}.* \
+ $(HOME_LIB_DIR)/${LIBNAME6}.* $(HOME_LIB_DIR)/${LIBNAME7}.* \
+ $(CNATIVEDIR)/winstuff.h
+ cd demos/natives/x11 ; make clean
+
+# clean out the *.o files and machine generated files from javah
+clean: cleannative
+ rm -f CClassHeaders/* errors gl4java/*~ CNativeCode/*~ \
+ $(FILE.gen1.h) $(FILE.gen2.h) \
+ $(FILE.gen3.h) $(FILE.gen4.h) $(FILE.gen5.h) \
+ gl4java/GLContext.java
+ rm -f `find . -name \*.class`
+ cd demos ; make clean
+
+cleanhtmldoc:
+ rm -f docs/html/*.html docs/html/*.css docs/html/*.gif
+ rm -f docs/html/gl4java
+ rm -f docs/*.ps
+
+cleanall: clean cleanhtmldoc
+ rm -f $(FILES.class)
+ rm -f $(FILES_x11.class)
+ rm -f $(FILES_w32.class)
+ rm -f $(FILES_mac.class)
+ rm -f archive/GL4Java*
+ for i in $$(find . -name \*.class) ; do \
+ rm -f $$i ; \
+ done
+ cd demos ; make clean
+ cd demos/natives/x11 ; make cleanall
+
+# ... Copy all *.class files to DEST_CLASSES_DIR
+classcpy:
+ for i in $$(find gl4java -name \*.class ) ; do \
+ if [ ! -e $(DEST_CLASSES_DIR)/$$(dirname $$i) ] ; then \
+ echo mkdir -p $$(dirname $(DEST_CLASSES_DIR)/$$i) ; \
+ mkdir -p $$(dirname $(DEST_CLASSES_DIR)/$$i) ; \
+ fi ; \
+ cp $$i $(DEST_CLASSES_DIR)/$$(dirname $$i) ; \
+ done
+ echo classes copied
+ chmod -R 755 $(DEST_CLASSES_DIR)/gl4java
+ $(MK_GL4JAVA_JAR)
+
+makeJar:
+ $(MK_GL4JAVA_JAR)
+
+htmldoc: latexdoc javadoc
+ cp -Rf docs-src/images docs/html/.
+
+htmldocw32: latexdoc javadocw32
+
+latexdoc: cleanhtmldoc
+ cd docs-src; UpdateHtml
+
+javadoc:
+ cd C2J; make htmldoc
+ $(JAVADOC) -J-Xmx64m -protected -d docs/html \
+ -sourcepath "$(JDK_HOME)/lib/classes.zip:$(THISDIR):$(THISDIR)/demos" \
+ -author -version \
+ -use \
+ -doctitle "GL4Java API" \
+ gl4java gl4java.jau.awt gl4java.awt gl4java.swing \
+ gl4java.system gl4java.applet \
+ gl4java.utils \
+ gl4java.utils.glut \
+ gl4java.utils.glut.fonts \
+ gl4java.utils.glut.fonts.data \
+ gl4java.utils.textures \
+ gl4java.jau.awt.motif \
+ gl4java.jau.awt.windows \
+ gl4java.jau.awt.macintosh \
+ 2>&1 | tee -a errors
+
+javadocw32:
+ cd C2J; make htmldoc
+ $(JAVADOC) -protected -d docs\\html \
+ -sourcepath "$(THISDIR_w32);$(THISDIR_w32)\\demos" \
+ -author -version \
+ gl4java gl4java.jau.awt gl4java.awt gl4java.swing \
+ gl4java.system gl4java.applet \
+ gl4java.utils \
+ gl4java.utils.glut \
+ gl4java.utils.glut.fonts \
+ gl4java.utils.glut.fonts.data \
+ gl4java.utils.textures \
+ gl4java.jau.awt.motif \
+ gl4java.jau.awt.windows \
+ gl4java.jau.awt.macintosh \
+ 2>&1 | tee -a errors
+
+pbinpkg:
+ if [ ! -e binpkg ] ; then mkdir binpkg ; fi
+
+java2binpkg: pbinpkg
+ rm -f binpkg/gl4java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-jar.zip
+ cd $(DEST_CLASSES_DIR) ; \
+ zip -9 $(THISDIR)/binpkg/gl4java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-jar.zip gl4java.jar
+
+ rm -f binpkg/gl4java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-glutfonts-jar.zip
+ cd $(DEST_CLASSES_DIR) ; \
+ zip -9 $(THISDIR)/binpkg/gl4java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-glutfonts-jar.zip gl4java-glutfonts.jar
+
+ rm -f binpkg/gl4java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-classes.zip
+ cd $(DEST_CLASSES_DIR) ; \
+ zip -9r $(THISDIR)/binpkg/gl4java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-classes.zip \
+ gl4java/*.class \
+ gl4java/applet \
+ gl4java/awt \
+ gl4java/swing \
+ gl4java/jau \
+ gl4java/system \
+ gl4java/utils/*.class \
+ gl4java/utils/textures \
+ gl4java/utils/glut/*.class
+
+ rm -f binpkg/gl4java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-glutfonts-classes.zip
+ cd $(DEST_CLASSES_DIR) ; \
+ zip -9r $(THISDIR)/binpkg/gl4java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-glutfonts-classes.zip \
+ gl4java/utils/glut/fonts
+
+ rm -f binpkg/gl4java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-INSTALLER.zip
+ cd .. ; \
+ zip -9 GL4Java/binpkg/gl4java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-INSTALLER.zip \
+ GL4Java/Installer/GL4JInstaller.jar \
+ GL4Java/Installer/install.sh \
+ GL4Java/Installer/install.bat
+
+installer2binpkg: pbinpkg
+ rm -f binpkg/gl4java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-installer.zip
+ zip -9r $(THISDIR)/binpkg/gl4java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-installer.zip \
+ Installer/*.jar Installer/*.cab Installer/*.html \
+ Installer/*.crt
+
+unix2binpkg: pbinpkg java2binpkg
+ rm -f binpkg/libGL4Java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-$(UNIXTYPE).zip
+ cd $(HOME_LIB_DIR) ; \
+ zip -9 $(THISDIR)/binpkg/libGL4Java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-$(UNIXTYPE).zip \
+ $(LIBRARY1) $(LIBRARY2) $(LIBRARY3) \
+ $(LIBRARY1b) $(LIBRARY2b) $(LIBRARY3b)
+ rm -f binpkg/libGL4Java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-$(UNIXTYPE).tar.gz
+ cd $(HOME_LIB_DIR) ; \
+ tar cf $(THISDIR)/binpkg/libGL4Java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-$(UNIXTYPE).tar \
+ $(LIBNAME1).* $(LIBNAME2).* \
+ $(LIBNAME1b).* $(LIBNAME2b).* \
+ $(LIBNAME3).* $(LIBNAME3b).* \
+ $(LIBNAME4).* $(LIBNAME5).* \
+ $(LIBNAME6).* $(LIBNAME7).* \
+ $(LIBNAME6b).* $(LIBNAME7b).*
+ cd binpkg ; gzip -9 libGL4Java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-$(UNIXTYPE).tar
+
+win2binpkg: pbinpkg java2binpkg
+ rm -f binpkg/libGL4Java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-$(WIN32TYPE).zip
+ cd Win32VC6/libs ; zip -9 ../../binpkg/libGL4Java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-$(WIN32TYPE).zip \
+ GL4JavaGljMSJDirect.dll \
+ GL4JavaJauGljJNI.dll GL4JavaJauGljJNI12.dll \
+ GL4JavaJauGLJNI.dll GL4JavaJauGLJNI12.dll \
+ GL4JavaJauGLUJNI.dll GL4JavaJauGLUJNI12.dll
+
+ rm -f binpkg/libGL4Java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-$(WIN32TYPE)-tst.zip
+ cd Win32VC6/libs ; zip -9 ../../binpkg/libGL4Java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-$(WIN32TYPE)-tst.zip \
+ GL4JavaJauGLJNInf.dll GL4JavaJauGLUJNInf.dll \
+ GL4JavaJauGLJNItst.dll GL4JavaJauGLJNI12tst.dll \
+ GL4JavaJauGLUJNItst.dll GL4JavaJauGLUJNI12tst.dll
+
+javacalldemos:
+ cd demos ; javac *.java
+ cd demos/GLLandScape ; javac *.java
+ cd demos/HodglimsNeHe ; javac *.java
+ cd demos/MiscDemos ; javac *.java
+ cd demos/RonsDemos ; javac *.java
+ cd demos/SwingDemos ; javac *.java
+
+archivclean: pbinpkg
+ if [ ! -e archive ] ; then mkdir archive ; fi
+ make clean
+
+archivdemos:
+ rm -f GL4Java/archive/GL4Java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-demosV$(DEMORELEASE).zip
+ cd ..; \
+ zip -9r GL4Java/archive/GL4Java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-demosV$(DEMORELEASE).zip \
+ GL4Java/*.txt GL4Java/demos.html GL4Java/demos
+
+archivsrc: archivclean
+ rm -f GL4Java/archive/GL4Java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-src.*
+ cd ..; \
+ tar cf GL4Java/archive/GL4Java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-src.tar \
+ GL4Java/*.txt GL4Java/symbols.mak.* GL4Java/makefile \
+ GL4Java/capsapi_classes.zip \
+ GL4Java/*.html GL4Java/C2J \
+ GL4Java/CClassHeaders GL4Java/CNativeCode GL4Java/gl4java \
+ GL4Java/Win32VC6 \
+ GL4Java/MacOS9PPC/MacOS9PPC \
+ GL4Java/MacOS9PPC/java11X \
+ GL4Java/docs-src GL4Java/mklibs \
+ GL4Java/Installer/*.java GL4Java/Installer/*.skel \
+ GL4Java/Installer/*.sh GL4Java/Installer/*.bat \
+ GL4Java/Installer/*.txt GL4Java/Installer/*.html \
+ GL4Java/Installer/*.crt
+ cd archive; \
+ $(GZIP) -9 GL4Java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-src.tar
+
+
+archivdoc: archivclean
+ rm -f GL4Java/archive/GL4Java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-doc.zip
+ cd ..; \
+ zip -9r GL4Java/archive/GL4Java$(LIBMAJOR).$(LIBMINOR).$(LIBBUGFIX).$(RELEASE)-doc.zip \
+ GL4Java/docs GL4Java/*.txt
+
+
+archiv: archivdemos archivsrc archivdoc
+
diff --git a/mklibs/mkexp.aix b/mklibs/mkexp.aix
new file mode 100755
index 0000000..f7bae8f
--- /dev/null
+++ b/mklibs/mkexp.aix
@@ -0,0 +1,93 @@
+#!/bin/ksh
+
+# Make an AIX EXPORT FILE FOR shared library (tricky!!!)
+# Based on a script from Athanasios G. Gaitatzes ([email protected])
+# Improved by Greg Thompson <[email protected]> -gt
+#
+# Improved by Sven Goethel <[email protected]>
+# goal: same tool for any machines ...
+#
+
+# First argument is name of output library
+# without dirname and suffix
+#
+# Rest of arguments are object files WHICH SHOULD BE IN THE EXPORT LIST !!
+#
+
+
+# Name of the library which clients will link with (ex: libMesaGL)
+BASENAME=$1
+
+# BASENAME = LIBRARY without .a suffix
+LIBRARY=${BASENAME}.so
+
+# Name of exports file
+EXPFILE=${BASENAME}.exp
+
+# List of object files to put into library
+shift 1
+OBJECTS=$*
+
+
+# Remove any old files from previous make
+rm -f ${EXPFILE}
+
+# Pick a way to use nm -gt
+NM=${NM-/bin/nm -eC}
+
+# Determine which version of AIX this is
+AIXVERSION=`uname -v`
+
+# Make exports (.exp) file header
+echo "#! ${LIBRARY}" > ${EXPFILE}
+
+# Append list of exported symbols to exports file -gt
+case ${AIXVERSION}
+{
+ 3*)
+ ${NM} ${OBJECTS} | awk -F'|' '{
+ if ($3 != "extern" || substr($7,1,1) == " ") continue
+ sub (" *", "", $1); sub (" *", "", $7)
+ if ( (($7 == ".text") || ($7 == ".data") || ($7 == ".bss")) \
+ && ( substr($1,1,1) != ".")) {
+ if (substr ($1, 1, 7) != "__sinit" &&
+ substr ($1, 1, 7) != "__sterm") {
+ if (substr ($1, 1, 5) == "__tf1")
+ print (substr ($1, 7))
+ else if (substr ($1, 1, 5) == "__tf9")
+ print (substr ($1, 15))
+ else
+ print $1
+ }
+ }
+ }' | sort -u >> ${EXPFILE}
+ ;;
+
+ 4*)
+ ${NM} ${OBJECTS} | awk '{
+ if ((($2 == "T") || ($2 == "D") || ($2 == "B")) \
+ && ( substr($1,1,1) != ".")) {
+ if (substr ($1, 1, 7) != "__sinit" &&
+ substr ($1, 1, 7) != "__sterm") {
+ if (substr ($1, 1, 5) == "__tf1")
+ print (substr ($1, 7))
+ else if (substr ($1, 1, 5) == "__tf9")
+ print (substr ($1, 15))
+ else
+ print $1
+ }
+ }
+ }' | sort -u >> ${EXPFILE}
+ ;;
+}
+
+# This next line is a hack to allow full compatibility with IBM's OpenGL
+# libraries. IBM mistakenly exports glLoadIdentity from the libGLU.a
+# library. We have to do the same thing. Problem reported by Yemi Adesanya
+# ([email protected]) and Patrick Brown ([email protected])
+if [ "${BASENAME}" = libMesaGLU ] ; then
+ echo "glLoadIdentity" >> ${EXPFILE}
+fi
+
+
+
diff --git a/mklibs/mkslib-debug.linux b/mklibs/mkslib-debug.linux
new file mode 100755
index 0000000..ba79190
--- /dev/null
+++ b/mklibs/mkslib-debug.linux
@@ -0,0 +1,66 @@
+#!/bin/sh
+
+# Make a Linux ELF shared library
+# Improved by Sven Goethel <[email protected]>
+# goal: same tool for any machines ...
+#
+
+# First argument is name of output library
+# without dirname and suffix
+# second and third are the major and minor number
+# Rest of arguments are object files
+
+LIBDIR=$1
+shift 1
+
+LIBRARY=$1
+shift 1
+
+LIBMAJOR=$1
+shift 1
+
+LIBMINOR=$1
+shift 1
+
+LIBBUGFIX=$1
+shift 1
+
+
+OBJECTS=$*
+
+# the following provided by Thomas Hiller ([email protected])
+
+VERSION="${LIBMAJOR}.${LIBMINOR}.${LIBBUGFIX}"
+
+LIBNAME=${LIBRARY}_g.so
+
+# Remove any old files from previous make
+rm -f ${LIBDIR}/${LIBNAME}*
+
+gcc -shared -Wl,-soname,${LIBNAME}.${LIBMAJOR} \
+ -o ${LIBDIR}/${LIBNAME}.${VERSION} \
+ ${OBJECTS}
+
+( cd ${LIBDIR} ;
+ ln -s ${LIBNAME}.${VERSION} ${LIBNAME}.${LIBMAJOR}.${LIBMINOR}
+)
+
+( cd ${LIBDIR} ;
+ ln -s ${LIBNAME}.${LIBMAJOR}.${LIBMINOR} ${LIBNAME}.${LIBMAJOR}
+)
+
+( cd ${LIBDIR} ;
+ ln -s ${LIBNAME}.${LIBMAJOR} ${LIBNAME}
+)
+
+# Print a reminder about shared libs:
+echo
+echo "******Be sure to add" ${LIBDIR}" to your LD_LIBRARY_PATH variable"
+echo
+sleep 2
+
+
+
+#### NOTES:
+# One Mesa user reports having to run the "ldconfig -v" command to make
+# Linux aware of the shared libs.
diff --git a/mklibs/mkslib.aix b/mklibs/mkslib.aix
new file mode 100755
index 0000000..93d98e5
--- /dev/null
+++ b/mklibs/mkslib.aix
@@ -0,0 +1,92 @@
+#!/bin/ksh
+
+# Make an AIX shared library (tricky!!!)
+# Based on a script from Athanasios G. Gaitatzes ([email protected])
+# Improved by Greg Thompson <[email protected]> -gt
+#
+# Improved by Sven Goethel <[email protected]>
+# goal: same tool for any machines ...
+#
+
+# First argument is name of output library
+# without dirname and suffix
+# second and third are the major and minor number
+# Rest of arguments are object files
+#
+
+LIBDIR=$1
+shift 1
+
+LIBRARY=$1
+shift 1
+
+LIBMAJOR=$1
+shift 1
+
+LIBMINOR=$1
+shift 1
+
+LIBBUGFIX=$1
+shift 1
+
+
+OBJECTS=$*
+
+# the following provided by Thomas Hiller ([email protected])
+
+VERSION="${LIBMAJOR}.${LIBMINOR}.${LIBBUGFIX}"
+
+LIBNAME=${LIBRARY}.so
+EXPFILE=${LIBRARY}.exp
+
+# Remove any old files from previous make
+rm -f ${LIBDIR}/${LIBNAME}*
+
+# Determine which version of AIX this is
+AIXVERSION=`uname -v`
+
+# Pick a way to tell the linker there's no entrypoint -gt
+case ${AIXVERSION}
+{
+ 3*)
+ ENTRY='-e _nostart'
+ ;;
+ 4*)
+ ENTRY=-bnoentry
+ ;;
+ *)
+ echo "Error in mklib.aix!"
+ exit 1
+ ;;
+}
+
+
+# Make the shared lib file
+ld -o ${LIBDIR}/${LIBNAME}.${VERSION} \
+ ${OBJECTS} ${ENTRY} -bM:SRE -bE:${EXPFILE} \
+ -blibpath:/usr/lib/threads:/usr/lib:/lib -lc_r \
+ -L${JAVA_HOME}/lib/aix/native_threads -ljava
+
+( cd ${LIBDIR} ;
+ ln -s ${LIBNAME}.${VERSION} ${LIBNAME}.${LIBMAJOR}.${LIBMINOR}
+)
+
+( cd ${LIBDIR} ;
+ ln -s ${LIBNAME}.${LIBMAJOR}.${LIBMINOR} ${LIBNAME}.${LIBMAJOR}
+)
+
+( cd ${LIBDIR} ;
+ ln -s ${LIBNAME}.${LIBMAJOR} ${LIBNAME}
+)
+
+#NOTES
+# AIX 4.x /usr/bin/nm -B patch from [email protected] (Simon Clift)
+# Robustified symbol extraction for AIX 3 and 4
+# Greg Thompson <[email protected]>
+
+# Print a reminder about shared libs:
+echo
+echo "******Be sure to add" ${LIBDIR}"/lib to your LD_LIBRARY_PATH variable"
+echo
+sleep 2
+
diff --git a/mklibs/mkslib.irix6.2-gcc b/mklibs/mkslib.irix6.2-gcc
new file mode 100755
index 0000000..9514143
--- /dev/null
+++ b/mklibs/mkslib.irix6.2-gcc
@@ -0,0 +1,66 @@
+#!/bin/sh
+
+# Make a Linux ELF shared library
+# Improved by Sven Goethel <[email protected]>
+# goal: same tool for any machines ...
+#
+
+# First argument is name of output library
+# without dirname and suffix
+# second and third are the major and minor number
+# Rest of arguments are object files
+
+LIBDIR=$1
+shift 1
+
+LIBRARY=$1
+shift 1
+
+LIBMAJOR=$1
+shift 1
+
+LIBMINOR=$1
+shift 1
+
+LIBBUGFIX=$1
+shift 1
+
+
+OBJECTS=$*
+
+# the following provided by Thomas Hiller ([email protected])
+
+VERSION="${LIBMAJOR}.${LIBMINOR}.${LIBBUGFIX}"
+
+LIBNAME=${LIBRARY}.so
+
+# Remove any old files from previous make
+rm -f ${LIBDIR}/${LIBNAME}*
+
+gcc -shared -Wl,-soname,${LIBNAME}.${LIBMAJOR} \
+ -o ${LIBDIR}/${LIBNAME}.${VERSION} \
+ ${OBJECTS}
+
+( cd ${LIBDIR} ;
+ ln -s ${LIBNAME}.${VERSION} ${LIBNAME}.${LIBMAJOR}.${LIBMINOR}
+)
+
+( cd ${LIBDIR} ;
+ ln -s ${LIBNAME}.${LIBMAJOR}.${LIBMINOR} ${LIBNAME}.${LIBMAJOR}
+)
+
+( cd ${LIBDIR} ;
+ ln -s ${LIBNAME}.${LIBMAJOR} ${LIBNAME}
+)
+
+# Print a reminder about shared libs:
+echo
+echo "******Be sure to add" ${LIBDIR}" to your LD_LIBRARY_PATH variable"
+echo
+sleep 2
+
+
+
+#### NOTES:
+# One Mesa user reports having to run the "ldconfig -v" command to make
+# Linux aware of the shared libs.
diff --git a/mklibs/mkslib.linux b/mklibs/mkslib.linux
new file mode 100755
index 0000000..9514143
--- /dev/null
+++ b/mklibs/mkslib.linux
@@ -0,0 +1,66 @@
+#!/bin/sh
+
+# Make a Linux ELF shared library
+# Improved by Sven Goethel <[email protected]>
+# goal: same tool for any machines ...
+#
+
+# First argument is name of output library
+# without dirname and suffix
+# second and third are the major and minor number
+# Rest of arguments are object files
+
+LIBDIR=$1
+shift 1
+
+LIBRARY=$1
+shift 1
+
+LIBMAJOR=$1
+shift 1
+
+LIBMINOR=$1
+shift 1
+
+LIBBUGFIX=$1
+shift 1
+
+
+OBJECTS=$*
+
+# the following provided by Thomas Hiller ([email protected])
+
+VERSION="${LIBMAJOR}.${LIBMINOR}.${LIBBUGFIX}"
+
+LIBNAME=${LIBRARY}.so
+
+# Remove any old files from previous make
+rm -f ${LIBDIR}/${LIBNAME}*
+
+gcc -shared -Wl,-soname,${LIBNAME}.${LIBMAJOR} \
+ -o ${LIBDIR}/${LIBNAME}.${VERSION} \
+ ${OBJECTS}
+
+( cd ${LIBDIR} ;
+ ln -s ${LIBNAME}.${VERSION} ${LIBNAME}.${LIBMAJOR}.${LIBMINOR}
+)
+
+( cd ${LIBDIR} ;
+ ln -s ${LIBNAME}.${LIBMAJOR}.${LIBMINOR} ${LIBNAME}.${LIBMAJOR}
+)
+
+( cd ${LIBDIR} ;
+ ln -s ${LIBNAME}.${LIBMAJOR} ${LIBNAME}
+)
+
+# Print a reminder about shared libs:
+echo
+echo "******Be sure to add" ${LIBDIR}" to your LD_LIBRARY_PATH variable"
+echo
+sleep 2
+
+
+
+#### NOTES:
+# One Mesa user reports having to run the "ldconfig -v" command to make
+# Linux aware of the shared libs.
diff --git a/mklibs/mkslib.solaris-gcc b/mklibs/mkslib.solaris-gcc
new file mode 100755
index 0000000..4dda870
--- /dev/null
+++ b/mklibs/mkslib.solaris-gcc
@@ -0,0 +1,63 @@
+#!/bin/sh
+
+# Make a Solaris shared library
+# contributed by Arno Hahma ([email protected])
+# Improved by Sven Goethel <[email protected]>
+# goal: same tool for any machines ...
+#
+
+# First argument is name of output library
+# without dirname and suffix
+# second and third are the major and minor number
+# Rest of arguments are object files
+
+set -x
+
+LIBDIR=$1
+shift 1
+
+LIBRARY=$1
+shift 1
+
+LIBMAJOR=$1
+shift 1
+
+LIBMINOR=$1
+shift 1
+
+LIBBUGFIX=$1
+shift 1
+
+
+OBJECTS=$*
+
+# the following provided by Thomas Hiller ([email protected])
+
+VERSION="${LIBMAJOR}.${LIBMINOR}.${LIBBUGFIX}"
+
+LIBNAME=${LIBRARY}.so
+
+echo "Building shared object $LIBRARY.so.$VERSION and the archive library $LIBRARY.a"
+rm -f ${LIBDIR}/${LIBNAME}*
+
+gcc -G -o ${LIBDIR}/${LIBNAME}.${VERSION} ${OBJECTS}
+
+( cd ${LIBDIR} ;
+ ln -s ${LIBNAME}.${VERSION} ${LIBNAME}.${LIBMAJOR}.${LIBMINOR}
+)
+
+( cd ${LIBDIR} ;
+ ln -s ${LIBNAME}.${LIBMAJOR}.${LIBMINOR} ${LIBNAME}.${LIBMAJOR}
+)
+
+( cd ${LIBDIR} ;
+ ln -s ${LIBNAME}.${LIBMAJOR} ${LIBNAME}
+)
+
+# Print a reminder about shared libs:
+echo
+echo "******Be sure to add" ${LIBDIR}" to your LD_LIBRARY_PATH variable"
+echo
+sleep 2
+
+
diff --git a/symbols.mak.linux-java2-xf86-ppc b/symbols.mak.linux-java2-xf86-ppc
new file mode 100644
index 0000000..c0a1234
--- /dev/null
+++ b/symbols.mak.linux-java2-xf86-ppc
@@ -0,0 +1,47 @@
+######################################################################
+# Locations that are environment specific. You will need to
+# change these to reflect the location of Java and Mesa (or OpenGL)
+# and CC etc. on your system
+######################################################################
+
+SHELL = /bin/bash
+
+THISDIR = ${PWD}
+
+HOME_LIB_DIR = /home/sven/lib
+DEST_CLASSES_DIR = /usr/local/lib-java
+UNIXTYPE = Linux-glibc2-xf86-ppc
+
+JDK_HOME = $(shell dirname $$(which java))/..
+JAVASHAREINC = $(JDK_HOME)/include
+JAVAOSINC = $(JDK_HOME)/include/linux
+
+CC = gcc
+MKLIB = mklibs/mkslib.linux
+MKEXP = echo
+JAVAC = $(JDK_HOME)/bin/javac -classpath ".:$(THISDIR):$(THISDIR)/capsapi_classes.zip"
+JAVADOC = $(JDK_HOME)/bin/javadoc
+JAVAH = $(JDK_HOME)/bin/javah
+JAR = $(JDK_HOME)/bin/jar
+
+OGLINCDIR = /usr/X11/include
+OGLLIBDIR = /usr/X11/lib
+
+XINCDIR = /usr/X11/include
+XLIBDIR = /usr/X11/lib
+
+MATHLIB = -lm
+
+OGLLIBS = -L$(OGLLIBDIR) -lGL -lGLU
+
+XLIBS = -L$(XLIBDIR) -lX11
+
+LIBS = $(OGLLIBS) $(XLIBS) $(MATHLIB) -lpthread -ldl
+
+INCL_OS = -I. -I$(JAVASHAREINC) -I$(JAVAOSINC) \
+ -I$(OGLINCDIR) -I$(XINCDIR)
+
+CFLAGS = -fPIC -D_REENTRANT -c -Wall -O3 \
+ -D_X11_
+
+GZIP = gzip
diff --git a/symbols.mak.linux-java2-xf86-x86 b/symbols.mak.linux-java2-xf86-x86
new file mode 100644
index 0000000..d3e6aa2
--- /dev/null
+++ b/symbols.mak.linux-java2-xf86-x86
@@ -0,0 +1,47 @@
+######################################################################
+# Locations that are environment specific. You will need to
+# change these to reflect the location of Java and Mesa (or OpenGL)
+# and CC etc. on your system
+######################################################################
+
+SHELL = /bin/bash
+
+THISDIR = ${PWD}
+
+HOME_LIB_DIR = /home/sven/lib
+DEST_CLASSES_DIR = /usr/local/lib-java
+UNIXTYPE = Linux-glibc2-xf86-x86
+
+JDK_HOME = $(shell dirname $$(which java))/..
+JAVASHAREINC = $(JDK_HOME)/include
+JAVAOSINC = $(JDK_HOME)/include/linux
+
+CC = gcc
+MKLIB = mklibs/mkslib.linux
+MKEXP = echo
+JAVAC = $(JDK_HOME)/bin/javac -classpath ".:$(THISDIR):$(THISDIR)/capsapi_classes.zip"
+JAVADOC = $(JDK_HOME)/bin/javadoc
+JAVAH = $(JDK_HOME)/bin/javah
+JAR = $(JDK_HOME)/bin/jar
+
+OGLINCDIR = /usr/X11R6/include
+OGLLIBDIR = /usr/X11R6/lib
+
+XINCDIR = /usr/X11R6/include
+XLIBDIR = /usr/X11R6/lib
+
+MATHLIB = -lm
+
+OGLLIBS = -L$(OGLLIBDIR) -lGL -lGLU
+
+XLIBS = -L$(XLIBDIR) -lX11
+
+LIBS = $(OGLLIBS) $(XLIBS) $(MATHLIB) -lpthread -ldl
+
+INCL_OS = -I. -I$(JAVASHAREINC) -I$(JAVAOSINC) \
+ -I$(OGLINCDIR) -I$(XINCDIR)
+
+CFLAGS = -fPIC -D_REENTRANT -c -Wall -O3 \
+ -D_X11_
+
+GZIP = gzip
diff --git a/symbols.mak.sgi-irix65-mips-gcc b/symbols.mak.sgi-irix65-mips-gcc
new file mode 100644
index 0000000..2545a80
--- /dev/null
+++ b/symbols.mak.sgi-irix65-mips-gcc
@@ -0,0 +1,47 @@
+######################################################################
+# Locations that are environment specific. You will need to
+# change these to reflect the location of Java and Mesa (or OpenGL)
+# and CC etc. on your system
+######################################################################
+
+SHELL = /usr/bin/bash
+
+THISDIR = ${PWD}
+HOME_LIB_DIR = ${HOME}/lib
+DEST_CLASSES_DIR = ${HOME}/lib-java
+UNIXTYPE = SGI-IRIX-65-mips
+
+JDK_HOME = $(shell dirname $$(which java))/..
+JAVASHAREINC = $(JDK_HOME)/include
+JAVAOSINC = $(JDK_HOME)/include/irix
+
+CC = gcc
+MKLIB = mklibs/mkslib.irix6.2-gcc
+MKEXP = echo
+JAVAC = $(JDK_HOME)/bin/javac -classpath ".:$(THISDIR):$(THISDIR)/capsapi_classes.zip"
+JAVAH = $(JDK_HOME)/bin/javah
+JAR = $(JDK_HOME)/bin/jar
+
+OGLINCDIR = /usr/include
+OGLLIBDIR = /usr/lib32
+
+XINCDIR = /usr/include/X11
+XLIBDIR = /usr/lib/X11
+
+MATHLIB = -lm
+
+OGLLIBS = -L$(OGLLIBDIR) -lGL -lGLU
+
+XLIBS = -L$(XLIBDIR) -lX11
+
+#LIBS = $(OGLLIBS) $(XLIBS) $(MATHLIB) -lpthread -ldl
+LIBS = $(OGLLIBS) $(XLIBS) $(MATHLIB) -ldl
+
+INCL_OS = -I. -I$(JAVASHAREINC) -I$(JAVAOSINC) \
+ -I$(XINCDIR) -I$(OGLINCDIR)
+
+CFLAGS = -fPIC -D_REENTRANT -c -Wall -O3 \
+ -D_X11_
+
+
+GZIP = gzip
diff --git a/symbols.mak.sgi-irix65-mips-gcc-brian b/symbols.mak.sgi-irix65-mips-gcc-brian
new file mode 100644
index 0000000..7513076
--- /dev/null
+++ b/symbols.mak.sgi-irix65-mips-gcc-brian
@@ -0,0 +1,47 @@
+######################################################################
+# Locations that are environment specific. You will need to
+# change these to reflect the location of Java and Mesa (or OpenGL)
+# and CC etc. on your system
+######################################################################
+
+SHELL = /usr/freeware/bin/bash
+
+THISDIR = ${PWD}
+HOME_LIB_DIR = ${HOME}/lib
+DEST_CLASSES_DIR = ${HOME}/lib-java
+UNIXTYPE = SGI-IRIX-65-mips
+
+JDK_HOME = /usr/java
+JAVASHAREINC = $(JDK_HOME)/include
+JAVAOSINC = $(JDK_HOME)/include/irix
+
+CC = gcc
+MKLIB = mklibs/mkslib.irix6.2-gcc
+MKEXP = echo
+JAVAC = $(JDK_HOME)/bin/javac -classpath ".:$(THISDIR):$(THISDIR)/capsapi_classes.zip"
+JAVAH = $(JDK_HOME)/bin/javah
+JAR = $(JDK_HOME)/bin/jar
+
+OGLINCDIR = /usr/include/GL
+OGLLIBDIR = /usr/lib32
+
+XINCDIR = /usr/include/X11
+XLIBDIR = /usr/lib/X11
+
+MATHLIB = -lm
+
+OGLLIBS = -L$(OGLLIBDIR) -lGL -lGLU
+
+XLIBS = -L$(XLIBDIR) -lX11
+
+#LIBS = $(OGLLIBS) $(XLIBS) $(MATHLIB) -lpthread -ldl
+LIBS = $(OGLLIBS) $(XLIBS) $(MATHLIB) -ldl
+
+INCL_OS = -I. -I$(JAVASHAREINC) -I$(JAVAOSINC) \
+ -I$(XINCDIR) -I$(OGLINCDIR)
+
+CFLAGS = -fPIC -D_REENTRANT -c -Wall -O3 \
+ -D_X11_
+
+
+GZIP = gzip
diff --git a/symbols.mak.solaris-sunos-56-sparc-gcc-brian b/symbols.mak.solaris-sunos-56-sparc-gcc-brian
new file mode 100644
index 0000000..4eea532
--- /dev/null
+++ b/symbols.mak.solaris-sunos-56-sparc-gcc-brian
@@ -0,0 +1,45 @@
+######################################################################
+# Locations that are environment specific. You will need to
+# change these to reflect the location of Java and Mesa (or OpenGL)
+# and CC etc. on your system
+######################################################################
+
+SHELL = /h/bpape/bash-2.04/bash
+
+THISDIR = ${PWD}
+HOME_LIB_DIR = ${HOME}/lib
+DEST_CLASSES_DIR = ${HOME}/lib-java
+UNIXTYPE = SUNOS-56-sparc
+
+JDK_HOME = $(shell dirname $$(which java))/..
+JAVASHAREINC = $(JDK_HOME)/include
+JAVAOSINC = $(JDK_HOME)/include/solaris
+
+CC = gcc
+MKLIB = mklibs/mkslib.solaris-gcc
+MKEXP = echo
+JAVAC = $(JDK_HOME)/bin/javac -classpath ".:$(THISDIR):$(THISDIR)/capsapi_classes.zip"
+JAVAH = $(JDK_HOME)/bin/javah
+JAR = $(JDK_HOME)/bin/jar
+
+OGLINCDIR = /usr/X/include/GL
+OGLLIBDIR = /usr/X/lib
+
+XINCDIR = /usr/X/include
+XLIBDIR = /usr/X/lib
+
+MATHLIB = -lm
+
+OGLLIBS = -L$(OGLLIBDIR) -lGL -lGLU
+
+XLIBS = -L$(XLIBDIR) -lX11
+
+LIBS = $(OGLLIBS) $(XLIBS) $(MATHLIB) -lpthread -ldl
+
+INCL_OS = -I. -I$(JAVASHAREINC) -I$(JAVAOSINC) \
+ -I$(XINCDIR) -I$(OGLINCDIR)
+
+CFLAGS = -fPIC -D_REENTRANT -c -Wall -O3 \
+ -D_X11_ -Dsparc -D__BUILTIN_VA_ARG_INCR
+
+GZIP = gzip
diff --git a/symbols.mak.solaris-sunos-57-sparc-gcc b/symbols.mak.solaris-sunos-57-sparc-gcc
new file mode 100644
index 0000000..8666cde
--- /dev/null
+++ b/symbols.mak.solaris-sunos-57-sparc-gcc
@@ -0,0 +1,45 @@
+######################################################################
+# Locations that are environment specific. You will need to
+# change these to reflect the location of Java and Mesa (or OpenGL)
+# and CC etc. on your system
+######################################################################
+
+SHELL = /usr/bin/bash
+
+THISDIR = ${PWD}
+HOME_LIB_DIR = ${HOME}/lib
+DEST_CLASSES_DIR = ${HOME}/lib-java
+UNIXTYPE = SUNOS-57-sparc
+
+JDK_HOME = $(shell dirname $$(which java))/..
+JAVASHAREINC = $(JDK_HOME)/include
+JAVAOSINC = $(JDK_HOME)/include/solaris
+
+CC = gcc
+MKLIB = mklibs/mkslib.solaris-gcc
+MKEXP = echo
+JAVAC = $(JDK_HOME)/bin/javac -classpath ".:$(THISDIR):$(THISDIR)/capsapi_classes.zip"
+JAVAH = $(JDK_HOME)/bin/javah
+JAR = $(JDK_HOME)/bin/jar
+
+OGLINCDIR = /usr/X/include
+OGLLIBDIR = /usr/X/lib
+
+XINCDIR = /usr/X/include
+XLIBDIR = /usr/X/lib
+
+MATHLIB = -lm
+
+OGLLIBS = -L$(OGLLIBDIR) -lGL -lGLU
+
+XLIBS = -L$(XLIBDIR) -lX11
+
+LIBS = $(OGLLIBS) $(XLIBS) $(MATHLIB) -lpthread -ldl
+
+INCL_OS = -I. -I$(JAVASHAREINC) -I$(JAVAOSINC) \
+ -I$(XINCDIR) -I$(OGLINCDIR)
+
+CFLAGS = -fPIC -D_REENTRANT -c -Wall -O3 \
+ -D_X11_ -Dsparc -D__BUILTIN_VA_ARG_INCR
+
+GZIP = gzip
diff --git a/symbols.mak.win32-java2 b/symbols.mak.win32-java2
new file mode 100644
index 0000000..a23be39
--- /dev/null
+++ b/symbols.mak.win32-java2
@@ -0,0 +1,50 @@
+######################################################################
+# Locations that are environment specific. You will need to
+# change these to reflect the location of Java and Mesa (or OpenGL)
+# and CC etc. on your system
+#
+# for win32 - ONLY the MACROS till JAVAOSINC are relevant ...
+######################################################################
+
+SHELL = /bin/bash
+
+THISDIR = ${PWD}
+THISDIR_w32 = Y:\\projects\\java\\GL4Java
+HOME_LIB_DIR = //D/WINNT/system32
+DEST_CLASSES_DIR = //D/classes-1.1.X
+WIN32TYPE = Win32-x86
+
+JDK_HOME = //D/java2
+JDK_HOME_w32 = D:\\java2
+JAVASHAREINC = $(JDK_HOME)/include
+JAVAOSINC = $(JDK_HOME)/include/win32
+
+CC = gcc
+MKLIB = mklibs/mkslib.linux
+MKEXP = echo
+MSJAVAC = //D/MSJAVASDK/BIN/jvc -nomessage -x- -cp:p .\;$(THISDIR_w32)\;$(THISDIR_w32)\\CAPSAPI_CLASSES.ZIP
+JAVAC = $(JDK_HOME)/bin/javac -classpath ".;$(THISDIR_w32);$(THISDIR_w32)/CAPSAPI_CLASSES.ZIP"
+JAVADOC = $(JDK_HOME)/bin/javadoc
+JAVAH = $(JDK_HOME)/bin/javah
+JAR = $(JDK_HOME)/bin/jar
+
+OGLINCDIR = /usr/local/include
+OGLLIBDIR = /usr/local/lib
+
+XINCDIR = /usr/X11/include
+XLIBDIR = /usr/X11/lib
+
+MATHLIB = -lm
+
+OGLLIBS = -L$(OGLLIBDIR) -lGL -lGLU
+
+XLIBS = -L$(XLIBDIR) -lX11
+
+LIBS = $(OGLLIBS) $(XLIBS) $(MATHLIB)
+
+INCL_OS = -I. -I$(JAVASHAREINC) -I$(JAVAOSINC) \
+ -I$(OGLINCDIR) -I$(XINCDIR)
+
+CFLAGS = -c -Wall -O3
+
+GZIP = gzip